User:ThePokegeek5000/AppJS/Stats/63

v \n   \n    \n         \n    \n<% } %>\n",filename:"."};try{var buf=[];with(locals||{})!function{if(buf.push(""),__stack.lineno=1,loading)buf.push('\n    \x3c!-- Loading game data --\x3e\n    \n        \n    \n'),__stack.lineno=6;else if(error||!data||0==data.length)buf.push("\n    \x3c!-- Error loading data --\x3e\n    \n        Error loading content, please try again. \n    \n"),__stack.lineno=11;else{buf.push("\n    \n         \n    \n    \n         \n    \n"),__stack.lineno=98}buf.push("\n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},"2O6T":function(e,a,t){"use strict";function n(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}var s=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o=function{function e(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(a,t,n){return t&&e(a.prototype,t),n&&e(a,n),a}};t("BQpi"),t("hqSh");var i=t("juYr"),r=t("hfYK"),l=t("5tYD"),c=t("Daeg"),m=t("vIKM"),d=t("rSE8"),u={language:t("oHTN")},p=function{function e{n(this,e),this.useLocalStorage=!0,this.config={},this.onModified=[]}return o(e,[{key:"load",value:function{var e={};try{e=JSON.parse(localStorage.getItem("surviv_config"))}catch(e){this.useLocalStorage=!1}this.config=s({language:"en"},e)}},{key:"store",value:function{if(this.useLocalStorage)try{localStorage.setItem("surviv_config",JSON.stringify(this.config))}catch(e){}}},{key:"set",value:function(e,a){this.config[e]=a,this.store}},{key:"get",value:function(e){return this.config[e]}}]),e},g=function{function e{n(this,e),this.el=i("#content"),this.mainView=new c(this),this.playerView=new m(this);var a=new d(this);a.addRoute("player","stats/([^/?#]+).*$"),a.addRoute("main","stats"),i("#search-players").on("submit",function(e){e.preventDefault;var a=i("#search-players :input").val,t=r(a);window.location.href="/stats/"+t});try{var t=JSON.parse(localStorage.getItem("surviv_config"));t.profile&&t.profile.slug&&i("#my-profile").css("display","block").attr("href","/stats/"+t.profile.slug)}catch(e){}this.config=new p,this.config.load,this.localization=new l,this.localization.setLocale(this.config.get("language")),this.localization.localizeIndex}return o(e,[{key:"setView",value:function(e){this.view="player"==e?this.playerView:this.mainView,this.view.load,this.el.html(this.view.el),this.render}},{key:"render",value:function{var e=this;i("#language-select").html(u.language({code:this.localization.getLocale})),i(".dropdown-language").off("click"),i(".dropdown-language").on("click",function(a){var t=a.target,n=i(t).attr("value");i(t).html;n&&(i("#selected-language").html(n.toUpperCase),e.localization.setLocale(n),e.localization.localizeIndex,e.config.set("language",n))})}}]),e};new g},3:function(e,a){},"5tYD":function(e,a,t){"use strict";function n{this.acceptedLocales=["en","es"],this.translations={};for(var e=0;e<this.acceptedLocales.length;e++){var a=this.acceptedLocales[e],n={};try{n=t("gV60")("./"+a+".js")}catch(e){console.log("localization not found",a)}this.translations[a]=n}this.locale="en"}var s=t("juYr");n.prototype={setLocale:function(e){this.locale=-1!=this.acceptedLocales.indexOf(e)?e:"en"},getLocale:function{return this.locale},translate:function(e){var a=e.replace(" ","-");return this.translations[this.locale][e]||this.translations[this.locale][a]||this.translations.en[e]||""},localizeIndex:function{var e=this;s("*[data-l10n]").each(function(a,t){var n=s(t),o=n.attr("data-l10n"),i=e.translate(o);if(i){if("true"==n.attr("data-caps")&&(i=i.toUpperCase),n.attr("label"))return n.attr("label",i),!0;if(n.attr("placeholder"))return n.attr("placeholder",i),!0;n.html(i),n.attr("data-label")&&n.attr("data-label",i)}})}},e.exports=n},"73yX":function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={mapId:1,desc:{name:"Desert",icon:"img/modes/loot-weapon-flare-gun.svg"},assets:{audio:[{name:"piano_02",channel:"sfx"},{name:"log_03",channel:"sfx"},{name:"log_04",channel:"sfx"},{name:"piano_music_01",channel:"ambient"}],atlases:["gradient","loadout","shared","desert"]},biome:{colors:{background:6976835,water:9083726,waterRipple:13756037,beach:13206586,riverbank:11689508,grass:14657367,underground:4001027,playerSubmerge:5151631},particles:{}},gameMode:{maxPlayers:80,desertMode:!0}};e.exports=n.mergeDeep({},s,o)},A1Tq:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("Rfhq")),o={assets:{audio:[{name:"vault_change_02",channel:"sfx"},{name:"footstep_08",channel:"sfx"},{name:"footstep_09",channel:"sfx"},{name:"helmet03_forest_pickup_01",channel:"ui"},{name:"ability_stim_01",channel:"sfx"},{name:"leader_dead_01",channel:"ui"},{name:"snowball_01",channel:"sfx"},{name:"snowball_02",channel:"sfx"},{name:"snowball_pickup_01",channel:"ui"}],atlases:["gradient","loadout","shared","woods","snow"]},biome:{colors:{background:603705,water:806225,waterRipple:11792639,beach:13480795,riverbank:9461284,grass:12434877,underground:1772803,playerSubmerge:2854052},particles:{camera:"falling_snow_slow"},tracerColors:{"762mm":{regular:9871846,saturated:11257087,alphaRate:.96,alphaMin:.4}}}};e.exports=n.mergeDeep({},s,o)},BERA:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={assets:{audio:[{name:"club_music_01",channel:"ambient"},{name:"club_music_02",channel:"ambient"},{name:"ambient_steam_01",channel:"ambient"}],atlases:["gradient","loadout","shared","main"]},biome:{colors:{background:2118510,water:3310251,waterRipple:11792639,beach:14458408,riverbank:10711321,grass:6460706,underground:1772803,playerSubmerge:2854052}}};e.exports=n.mergeDeep({},s,o)},DSCr:function(e,a,t){"use strict";var n={Locked:0,Faces:1,Food:2,Animals:3,Logos:4,Other:5,Flags:6,Default:99},s={emote_medical:{type:"emote",texture:"emote-medical-healthkit.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo:{type:"emote",texture:"ammo-box.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo9mm:{type:"emote",texture:"ammo-9mm.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo12gauge:{type:"emote",texture:"ammo-12gauge.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo762mm:{type:"emote",texture:"ammo-762mm.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo556mm:{type:"emote",texture:"ammo-556mm.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo50ae:{type:"emote",texture:"ammo-50AE.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo308sub:{type:"emote",texture:"ammo-308sub.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammoflare:{type:"emote",texture:"ammo-flare.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_ammo45acp:{type:"emote",texture:"ammo-45acp.img",sound:"emote_01",channel:"ui",teamOnly:!0,noCustom:!0,category:n.Locked},emote_loot:{type:"emote",texture:"",sound:"emote_01",channel:"ui",teamOnly:!1,noCustom:!0,category:n.Locked},emote_thumbsup:{type:"emote",name:"Thumbs Up",rarity:1,texture:"thumbs-up.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_sadface:{type:"emote",name:"Sad Face",rarity:1,texture:"face-sad.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_happyface:{type:"emote",name:"Happy Face",rarity:1,texture:"face-happy.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_surviv:{type:"emote",name:"Surviv Logo",rarity:1,texture:"surviv.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_gg:{type:"emote",name:"GG",rarity:1,texture:"gg.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_question:{type:"emote",name:"Question Mark",rarity:1,texture:"question.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_tombstone:{type:"emote",name:"Tombstone",rarity:1,texture:"tombstone.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_joyface:{type:"emote",name:"Joyful Face",rarity:1,texture:"face-joy.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_sobface:{type:"emote",name:"Sobbing Face",rarity:1,texture:"face-sob.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_thinkingface:{type:"emote",name:"Thonk",rarity:1,texture:"face-thinking.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_flagus:{type:"emote",name:"Flag United States",rarity:1,texture:"flag-united-states-of-america.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagthailand:{type:"emote",name:"Flag Thailand",rarity:1,texture:"flag-thailand.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaggermany:{type:"emote",name:"Flag Germany",rarity:1,texture:"flag-germany.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagfrance:{type:"emote",name:"Flag France",rarity:1,texture:"flag-france.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagsouthkorea:{type:"emote",name:"Flag South Korea",rarity:1,texture:"flag-south-korea.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagbrazil:{type:"emote",name:"Flag Brazil",rarity:1,texture:"flag-brazil.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagcanada:{type:"emote",name:"Flag Canada",rarity:1,texture:"flag-canada.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagspain:{type:"emote",name:"Flag Spain",rarity:1,texture:"flag-spain.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagrussia:{type:"emote",name:"Flag Russia",rarity:1,texture:"flag-russia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagmexico:{type:"emote",name:"Flag Mexico",rarity:1,texture:"flag-mexico.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagpoland:{type:"emote",name:"Flag Poland",rarity:1,texture:"flag-republic-of-poland.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaguk:{type:"emote",name:"Flag United Kingdom",rarity:1,texture:"flag-united-kingdom.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagcolombia:{type:"emote",name:"Flag Colombia",rarity:1,texture:"flag-colombia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagukraine:{type:"emote",name:"Flag Ukraine",rarity:1,texture:"flag-ukraine.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagturkey:{type:"emote",name:"Flag Turkey",rarity:1,texture:"flag-turkey.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagphilippines:{type:"emote",name:"Flag Philippines",rarity:1,texture:"flag-philippines.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagczechia:{type:"emote",name:"Flag Czechia",rarity:1,texture:"flag-czech-republic.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagperu:{type:"emote",name:"Flag Peru",rarity:1,texture:"flag-peru.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagaustria:{type:"emote",name:"Flag Austria",rarity:1,texture:"flag-austria.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagargentina:{type:"emote",name:"Flag Argentina",rarity:1,texture:"flag-argentina.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagjapan:{type:"emote",name:"Flag Japan",rarity:1,texture:"flag-japan.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagvenezuela:{type:"emote",name:"Flag Venezuela",rarity:1,texture:"flag-venezuela.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagvietnam:{type:"emote",name:"Flag Vietnam",rarity:1,texture:"flag-vietnam.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagswitzerland:{type:"emote",name:"Flag Switzerland",rarity:1,texture:"flag-switzerland.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagnetherlands:{type:"emote",name:"Flag Netherlands",rarity:1,texture:"flag-netherlands.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagchina:{type:"emote",name:"Flag China",rarity:1,texture:"flag-china.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagtaiwan:{type:"emote",name:"Flag Taiwan",rarity:1,texture:"flag-taiwan.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagchile:{type:"emote",name:"Flag Chile",rarity:1,texture:"flag-chile.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagaustralia:{type:"emote",name:"Flag Australia",rarity:1,texture:"flag-australia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagdenmark:{type:"emote",name:"Flag Denmark",rarity:1,texture:"flag-denmark.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagitaly:{type:"emote",name:"Flag Italy",rarity:1,texture:"flag-italy.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagsweden:{type:"emote",name:"Flag Sweden",rarity:1,texture:"flag-sweden.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagecuador:{type:"emote",name:"Flag Ecuador",rarity:1,texture:"flag-ecuador.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagslovakia:{type:"emote",name:"Flag Slovakia",rarity:1,texture:"flag-slovakia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaghungary:{type:"emote",name:"Flag Hungary",rarity:1,texture:"flag-hungary.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagromania:{type:"emote",name:"Flag Romania",rarity:1,texture:"flag-romania.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaghongkong:{type:"emote",name:"Flag Hong Kong",rarity:1,texture:"flag-hong-kong.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagindonesia:{type:"emote",name:"Flag Indonesia",rarity:1,texture:"flag-indonesia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagfinland:{type:"emote",name:"Flag Finland",rarity:1,texture:"flag-finland.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagnorway:{type:"emote",name:"Flag Norway",rarity:1,texture:"flag-norway.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_heart:{type:"emote",name:"Heart",rarity:1,texture:"heart.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_sleepy:{type:"emote",name:"Zzz",rarity:1,texture:"sleepy.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_flex:{type:"emote",name:"Flex",rarity:1,texture:"flex.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_angryface:{type:"emote",name:"Angry Face",rarity:1,texture:"face-angry.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_upsidedownface:{type:"emote",name:"Upside Down Face",rarity:1,texture:"face-upsidedown.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_teabag:{type:"emote",name:"Teabag",rarity:1,texture:"teabag.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_alienface:{type:"emote",name:"Alien Face",rarity:1,texture:"face-alien.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_flagbelarus:{type:"emote",name:"Flag Belarus",rarity:1,texture:"flag-belarus.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagbelgium:{type:"emote",name:"Flag Belgium",rarity:1,texture:"flag-belgium.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagkazakhstan:{type:"emote",name:"Flag Kazakhstan",rarity:1,texture:"flag-kazakhstan.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_egg:{type:"emote",name:"Egg",rarity:1,texture:"egg.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_police:{type:"emote",name:"Police Insignia",rarity:1,texture:"police.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_dabface:{type:"emote",name:"Dab Face",rarity:1,texture:"face-dab.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_flagmalaysia:{type:"emote",name:"Flag Malaysia",rarity:1,texture:"flag-malaysia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagnewzealand:{type:"emote",name:"Flag New Zealand",rarity:1,texture:"flag-new-zealand.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_logosurviv:{type:"emote",name:"PARMA",rarity:1,texture:"logo-surviv.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_logoegg:{type:"emote",name:"The Egg",rarity:1,texture:"logo-egg.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_logoswine:{type:"emote",name:"The Swine",rarity:1,texture:"logo-swine.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_logohydra:{type:"emote",name:"The Hydra",rarity:1,texture:"logo-hydra.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_logostorm:{type:"emote",name:"The Storm",rarity:1,texture:"logo-storm.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_flaghonduras:{type:"emote",name:"Flag Honduras",rarity:1,texture:"flag-honduras.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_logocaduceus:{type:"emote",name:"The Caduceus",rarity:1,texture:"logo-caduceus.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_impface:{type:"emote",name:"Imp Face",rarity:1,texture:"face-imp.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_monocleface:{type:"emote",name:"Monocole Face",rarity:1,texture:"face-monocle.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_sunglassface:{type:"emote",name:"Sunglasses Face",rarity:1,texture:"face-sunglass.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_headshotface:{type:"emote",name:"Headshot!",rarity:1,texture:"face-headshot.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_potato:{type:"emote",name:"Potato",rarity:1,texture:"potato.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_leek:{type:"emote",name:"Leek",rarity:1,texture:"leek.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_eggplant:{type:"emote",name:"Eggplant",rarity:1,texture:"eggplant.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_baguette:{type:"emote",name:"Baguette",rarity:1,texture:"baguette.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_chick:{type:"emote",name:"Chick",rarity:1,texture:"chick.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_flagbolivia:{type:"emote",name:"Flag Bolivia",rarity:1,texture:"flag-bolivia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagcroatia:{type:"emote",name:"Flag Croatia",rarity:1,texture:"flag-croatia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagindia:{type:"emote",name:"Flag India",rarity:1,texture:"flag-india.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagisrael:{type:"emote",name:"Flag Israel",rarity:1,texture:"flag-israel.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaggeorgia:{type:"emote",name:"Flag Georgia",rarity:1,texture:"flag-georgia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaggreece:{type:"emote",name:"Flag Greece",rarity:1,texture:"flag-greece.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagguatemala:{type:"emote",name:"Flag Gautemala",rarity:1,texture:"flag-guatemala.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagportugal:{type:"emote",name:"Flag Portugal",rarity:1,texture:"flag-portugal.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagserbia:{type:"emote",name:"Flag Serbia",rarity:1,texture:"flag-serbia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagsingapore:{type:"emote",name:"Flag Singapore",rarity:1,texture:"flag-singapore.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagtrinidad:{type:"emote",name:"Flag Trinidad and Tobago",rarity:1,texture:"flag-trinidad-and-tobago.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaguruguay:{type:"emote",name:"Flag Uruguay",rarity:1,texture:"flag-uruguay.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_logoconch:{type:"emote",name:"The Conch",rarity:1,texture:"logo-conch.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_pineapple:{type:"emote",name:"Pineapple",rarity:1,texture:"pineapple.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_coconut:{type:"emote",name:"Coconut",rarity:1,texture:"coconut.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_crab:{type:"emote",name:"Crab",rarity:1,texture:"crab.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Animals},emote_whale:{type:"emote",name:"Whale",rarity:1,texture:"whale.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Animals},emote_logometeor:{type:"emote",name:"The Meteor",rarity:1,texture:"logo-meteor.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_salt:{type:"emote",name:"Salt Shaker",rarity:1,texture:"salt.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_disappointface:{type:"emote",name:"Disappointed Face",rarity:1,texture:"face-disappoint.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_logocrossing:{type:"emote",name:"The Crossing",rarity:1,texture:"logo-crossing.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_fish:{type:"emote",name:"Fish",rarity:1,texture:"fish.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Animals},emote_campfire:{type:"emote",name:"Campfire",rarity:1,texture:"campfire.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_chickendinner:{type:"emote",name:"Chicken Dinner",rarity:1,texture:"chicken-dinner.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_cattle:{type:"emote",name:"Cattle Skull",rarity:1,texture:"cattle.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Animals},emote_icecream:{type:"emote",name:"Ice Cream",rarity:1,texture:"ice-cream.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_cupcake:{type:"emote",name:"Cupcake",rarity:1,texture:"cupcake.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_donut:{type:"emote",name:"Donut",rarity:1,texture:"donut.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_logohatchet:{type:"emote",name:"The Hatchet",rarity:1,texture:"logo-hatchet.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_acorn:{type:"emote",name:"Acorn",rarity:1,texture:"acorn.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_trunk:{type:"emote",name:"Tree Trunk",rarity:1,texture:"trunk.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_forest:{type:"emote",name:"Forest",rarity:1,texture:"forest.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_pumpkin:{type:"emote",name:"Pumpkin",rarity:1,texture:"pumpkin.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_candycorn:{type:"emote",name:"Candy Corn",rarity:1,texture:"candy-corn.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Food},emote_pilgrimhat:{type:"emote",name:"Pilgrim",rarity:1,texture:"pilgrim-hat.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_turkeyanimal:{type:"emote",name:"Turkey",rarity:1,texture:"turkey-animal.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Animals},emote_heartface:{type:"emote",name:"Heart Face",rarity:1,texture:"face-heart.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Faces},emote_logochrysanthemum:{type:"emote",name:"The Chrysanthemum",rarity:1,texture:"logo-chrysanthemum.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos},emote_santahat:{type:"emote",name:"Santa Hat",rarity:1,texture:"santa-hat.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_snowman:{type:"emote",name:"Snowman",rarity:1,texture:"snowman.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_snowflake:{type:"emote",name:"Snowflake",rarity:1,texture:"snowflake.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Other},emote_flagmorocco:{type:"emote",name:"Flag Morocco",rarity:1,texture:"flag-morocco.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagestonia:{type:"emote",name:"Flag Estonia",rarity:1,texture:"flag-estonia.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagalgeria:{type:"emote",name:"Flag Algeria",rarity:1,texture:"flag-algeria.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagegypt:{type:"emote",name:"Flag Egypt",rarity:1,texture:"flag-egypt.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagmazerbaijan:{type:"emote",name:"Flag Azerbaijan",rarity:1,texture:"flag-azerbaijan.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagmalbania:{type:"emote",name:"Flag Albania",rarity:1,texture:"flag-albania.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaglithuania:{type:"emote",name:"Flag Lithuania",rarity:1,texture:"flag-lithuania.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaglatvia:{type:"emote",name:"Flag Latvia",rarity:1,texture:"flag-azerbaijan.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flaguae:{type:"emote",name:"Flag United Arab Emirates",rarity:1,texture:"flag-united-arab-emirates.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_flagdominicanrepublic:{type:"emote",name:"Flag Dominican Republic",rarity:1,texture:"flag-dominican-republic.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Flags},emote_logocloud:{type:"emote",name:"The Cloud",rarity:1,texture:"logo-cloud.img",sound:"emote_01",channel:"ui",teamOnly:!1,category:n.Logos}};e.exports=s},Daeg:function(e,a,t){"use strict";function n(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}var s=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o=function{function e(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(a,t,n){return t&&e(a.prototype,t),n&&e(a,n),a}},i=t("juYr"),r=t("fquI"),l=t("UiAd"),c={loading:t("fj+T"),main:t("L1J/"),leaderboard:t("IOkT"),leaderboardError:t("KPYC")},m=function{function e(a){var t=this;n(this,e),this.app=a,this.loading=!1,this.error=!1,this.data={},this.el=i(c.main({phoneDetected:r.mobile&&!r.tablet,gameModes:l.getGameModes})),this.el.find(".leaderboard-opt").change(function{t.onChangedParams})}return o(e,[{key:"load",value:function{var e=this;this.loading=!0,this.error=!1;var a=l.getParameterByName("type")||"most_kills",t=l.getParameterByName("t")||"daily",n=l.getParameterByName("team")||"solo",s=l.getParameterByName("mapId")||"0";"most_kills"==a&&3==s&&(a="most_damage_dealt");var o={type:a,interval:t,teamMode:n,mapId:s,maxCount:100};i.ajax({url:"/api/leaderboard",type:"POST",data:JSON.stringify(o),contentType:"application/json; charset=utf-8",success:function(o,i,r){e.data={type:a,interval:t,teamMode:n,mapId:s,maxCount:100,data:o}},error:function(a,t){e.error=!0},complete:function{e.loading=!1,e.render}}),this.render}},{key:"onChangedParams",value:function{var e=i("#leaderboard-type").val,a=i("#leaderboard-time").val,t=i("#leaderboard-team-mode").val,n=i("#leaderboard-map-id").val;window.history.pushState("","","?type="+e+"&team="+t+"&t="+a+"&mapId="+n),this.load}},{key:"render",value:function{var e={most_kills:"stats-most-kills",most_damage_dealt:"stats-most-damage",kills:"stats-total-kills",wins:"stats-total-wins",kpg:"stats-kpg"},a={kpg:{daily:15,weekly:50,alltime:100}},t="";if(this.loading)t=c.loading({type:"leaderboard"});else if(this.error||!this.data.data)t=c.leaderboardError;else{var n=e[this.data.type]||"",o=a[this.data.type]?a[this.data.type][this.data.interval]:1;o=o||1,t=c.leaderboard(s({statName:n,minGames:o},this.data)),i("#leaderboard-team-mode").val(this.data.teamMode),i("#leaderboard-map-id").val(this.data.mapId),i("#leaderboard-type").val(this.data.type),i("#leaderboard-time").val(this.data.interval);var r=3==this.data.mapId;r?i('#leaderboard-type option[value="most_kills"]').attr("disabled","disabled"):i('#leaderboard-type option[value="most_kills"]').removeAttr("disabled")}this.el.find(".content").html(t),this.app.localization.localizeIndex}}]),e};e.exports=m},EIma:function(e,a,t){"use strict";var n=t("DlZn"),s=t("ZhQf"),o=t("wqeY"),i={clamp:function(e,a,t){return ea?e:a:t},min:function(e,a){return ea?e:a},lerp:function(e,a,t){return a*(1-e)+t*e},delerp:function(e,a,t){return i.clamp((e-a)/(t-a),0,1)},v2lerp:function(e,a,t){return o.create(i.lerp(e,a.x,t.x),i.lerp(e,a.y,t.y))},smoothstep:function(e,a,t){var n=i.clamp((e-a)/(t-a),0,1);return n*n*(3-2*n)},easeOutElastic:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return Math.pow(2,-10*e)*Math.sin((e-a/4)*(2*Math.PI)/a)+1},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},remap:function(e,a,t,n,s){var o=i.clamp((e-a)/(t-a),0,1);return i.lerp(o,n,s)},eqAbs:function(e,a,t){var n=t||1e-6;return Math.abs(e-a)<n},eqRel:function(e,a,t){var n=void 0!==t?t:1e-6;return Math.abs(e-a)<=n*Math.max(Math.max(1,Math.abs(e)),Math.abs(a))},deg2rad:function(e){return e*Math.PI/180},rad2deg:function(e){return 180*e/Math.PI},fract:function(e){return e-Math.floor(e)},sign:function(e){return e<0?-1:1},mod:function(e,a){return(e%a+a)%a},fmod:function(e,a){return e-Math.floor(e/a)*a},angleDiff:function(e,a){var t=i.fmod(a-e+Math.PI,2*Math.PI)-Math.PI;return t<-Math.PI?t+2*Math.PI:t},oriToRad:function(e){return e%4*.5*Math.PI},radToOri:function(e){return Math.floor(i.fmod(e+.25*Math.PI,2*Math.PI)/(.5*Math.PI))},quantize:function(e,a,t,s){n(e>=a&&e<=t);var o=(1<=0&&m>=0&&m<=1?c:void 0}},rayPolygonIntersect:function(e,a,t){for(var n=Number.MAX_VALUE,s=!1,o=0,i=t.length-1;on!=d>n&&t<(m-l)*(n-c)/(d-c)+l&&(s=!s)}return s},distToSegmentSq:function(e,a,t){var n=o.sub(t,a),s=o.dot(o.sub(e,a),n)/o.dot(n,n),r=o.add(a,o.mul(n,i.clamp(s,0,1))),l=o.sub(r,e);return o.dot(l,l)},distToPolygon:function(e,a){for(var t=Number.MAX_VALUE,n=0;n<a.length;n++){var s=a[n],o=n==a.length-1?a[0]:a[n+1],r=i.distToSegmentSq(e,s,o);r<t&&(t=r)}return Math.sqrt(t)},polygonArea:function(e){for(var a=[],t=0;t1||m<0||m>1)&&{x:e+c*(t-e),y:a+c*(n-a)}}};e.exports=i},GQHi:function(e,a,t){"use strict";(function(a){function n(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=t("mRF4"),i=t("EIma"),r=t("wqeY"),l={sameLayer:function(e,a){return(1&e)==(1&a)||2&e&&2&a},sameAudioLayer:function(e,a){return e==a||2&e||2&a},toGroundLayer:function(e){return 1&e},toStairsLayer:function(e){return 2|e},random:function(e,a){return i.lerp(Math.random,e,a)},randomInt:function(e,a){return e=Math.ceil(e),a=Math.floor(a),Math.floor(Math.random*(a-e+1))+e},randomPointInCircle:function(e){var a=Math.random,t=Math.random;if(t<a){var n=a;a=t,t=n}return r.create(t*e*Math.cos(2*Math.PI*a/t),t*e*Math.sin(2*Math.PI*a/t))},seededRand:function(e){var a=e;return function(e,t){void 0===e&&(e=0),void 0===t&&(t=1),a=16807*a%2147483647;var n=a/2147483647;return i.lerp(n,e,t)}},rgbToHsv:function(e,a,t){e/=255,a/=255,t/=255;var n=i.max(e,a,t),s=i.min(e,a,t),o=void 0,r=void 0,l=n,c=n-s;if(r=0==n?0:c/n,n==s)o=0;else{switch(n){case e:o=(a-t)/c+(a<t?6:0);break;case a:o=(t-e)/c+2;break;case t:o=(e-a)/c+4}o/=6}return{h:o,s:r,v:l}},hsvToRgb:function(e,a,t){var n=void 0,s=void 0,o=void 0,i=void 0,r=void 0,l=void 0,c=void 0,m=void 0;switch(1===arguments.length&&(a=e.s,t=e.v,e=e.h),i=Math.floor(6*e),r=6*e-i,l=t*(1-a),c=t*(1-r*a),m=t*(1-(1-r)*a),i%6){case 0:n=t,s=m,o=l;break;case 1:n=c,s=t,o=l;break;case 2:n=l,s=t,o=m;break;case 3:n=l,s=c,o=t;break;case 4:n=m,s=l,o=t;break;case 5:n=t,s=l,o=c}return{r:Math.round(255*n),g:Math.round(255*s),b:Math.round(255*o)}},adjustValue:function(e,a){var t=e>>16&255,n=e>>8&255,s=255&e;return t=Math.round(t*a),n=Math.round(n*a),s=Math.round(s*a),(t<<16)+(n<<8)+s},lerpColor:function(e,a,t){var n=function(e){return{r:Math.pow(e.r,2.2),g:Math.pow(e.g,2.2),b:Math.pow(e.b,2.2)}},s=n(l.intToRgb(a)),o=n(l.intToRgb(t));return l.rgbToInt(function(e){return{r:Math.pow(e.r,1/2.2),g:Math.pow(e.g,1/2.2),b:Math.pow(e.b,1/2.2)}}({r:i.lerp(e,s.r,o.r),g:i.lerp(e,s.g,o.g),b:i.lerp(e,s.b,o.b)}))},rgbToInt:function(e){return(e.r<<16)+(e.g<<8)+e.b},intToRgb:function(e){return{r:e>>16&255,g:e>>8&255,b:255&e}},rgbToHex:function(e){return"#"+(16777216+l.rgbToInt(e)).toString(16).slice(-6)},hexToRgb:function(e){var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null},intToHex:function(e){return"#"+(16777216+e).toString(16).slice(-6)},hexToInt:function(e){return parseInt(e.slice(-6),16)},updateColor:function(e,a){e/=100;var t=l.hexToRgb(a);t.r,t.g,t.b;return t.r=Math.round(t.r*e+0*(1-e)),t.g=Math.round(t.g*e+0*(1-e)),t.b=Math.round(t.b*e+0*(1-e)),l.rgbToInt(t)},isObject:function(e){return e&&"object"===(void 0===e?"undefined":s(e))&&!Array.isArray(e)},mergeDeep:function(e){for(var a=arguments.length,t=Array(a>1?a-1:0),s=1;s=0;a--){var t=Math.floor(Math.random*(a+1)),n=e[a];e[a]=e[t],e[t]=n}},rpad:function(e,a){return(e+" ".repeat(a)).slice(0,a)},lpad:function(e,a){return(" ".repeat(a)+e).slice(-a)},fnv1a:function(e){for(var a=2166136261,t=0;t>>0},encrypt:function(e,t){var n=a.from(t,"hex"),s=o.randomBytes(16),i=o.createCipheriv("aes-128-gcm",n,s),r=JSON.stringify(e),l=a.concat([i.update(r,"utf8"),i.final]),c=i.getAuthTag;return a.concat([s,c,l]).toString("base64")},decrypt:function(e,t){var n=a.from(t,"hex"),s=a.from(e,"base64");if(s.byteLength<32)return null;var i=s.slice(0,16),r=s.slice(16,32),l=s.slice(32),c=null;try{var m=o.createDecipheriv("aes-128-gcm",n,i);m.setAuthTag(r);var d=m.update(l,"binary","utf8")+m.final("utf8");c=JSON.parse(d)}catch(e){}return c}};e.exports=l}).call(a,t("dskh").Buffer)},IOkT:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(//g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:" \n",filename:"."};try{var buf=[];with(locals||{})!function{buf.push(" \n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"    ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},Iic8:function(e,a,t){"use strict";var n={"@metadata":{"last-updated":"2018-05-26",locale:"es"},"word-order":"svo","index-privacy":"privacy","index-go":"Ir","index-leaderboards":"Marcadores","index-my-stats":"Mis EstadÃ­sticas","index-search-players":"Buscar jugador","index-play-survivio":"Jugar surviv.io!","stats-rank":"PosiciÃ³n","stats-most-kills":"Mas muertes","stats-total-kills":"Total de muertes","stats-wins":"Victorias","stats-total-wins":"Total de victorias","stats-top-5-percent":"% De top 5","stats-kill-death-ratio":"K/D","stats-today":"Hoy","stats-this-week":"Esta semana","stats-all-time":"Siempre","stats-preseason":"Preseason","stats-top-100":"TOP 100","stats-player":"Jugador","stats-games":"Jugadas","stats-rating":"ClasificaciÃ³n","stats-win-%":"Victoria %","stats-top-5":"% De top 5","stats-win-streak":"Racha","stats-kdr":"K/D","stats-kpg":"M/J","stats-kpg-full":"Muertes por juego","stats-most-damage":"Mas daÃ±o","stats-avg-damage":"DaÃ±o medio","stats-avg-kills":"Muertes medio","stats-avg-survived":"Sobreviviste medio","stats-region":"RegiÃ³n","stats-north-america":"NorteamÃ©rica","stats-europe":"Europa","stats-asia":"Asia","stats-players":"Jugadores","stats-solo":"Solo","stats-duo":"DÃºo","stats-squad":"Squad","stats-solo-rank":"Solo Rank","stats-duo-rank":"Duo Rank","stats-squad-rank":"Squad Rank","stats-team-kills":"Muertes de equipo","stats-kill":"Muerte","stats-kills":"Muertes","stats-damage-dealt":"DaÃ±o repartido","stats-damage-taken":"DaÃ±o recibido","stats-survived":"Sobreviviste","game-backpack00":"Bolsa","game-backpack01":"Mochila pequeÃ±a","game-backpack02":"Mochila mediana","game-backpack03":"Mochila militar","game-bandage":"Vendas","game-healthkit":"BotiquÃ­n","game-soda":"Soda","game-painkiller":"PÃ­ldora","game-9mm":"9mm","game-12gauge":"Calibre 12","game-762mm":"7,62mm","game-556mm":"5,56mm","game-50AE":".50 AE","game-chest01":"Chaleco de nivel 1","game-chest02":"Chaleco de nivel 2","game-chest03":"Chaleco de nivel 3","game-helmet01":"Casco de nivel 1","game-helmet02":"Casco de nivel 2","game-helmet03":"Casco de nivel 3","game-1xscope":"1x Mira","game-2xscope":"2x Mira","game-4xscope":"4x Mira","game-8xscope":"8x Mira","game-15xscope":"15x Mira","game-level-1":"Nvl. 1","game-level-2":"Nvl. 2","game-level-3":"Nvl. 3","game-outfitBase":"Traje BÃ¡sico","game-outfitRoyalFortune":"Fortuna Real","game-outfitKeyLime":"Limero","game-outfitCobaltShell":"Armadura de Cobalto","game-outfitCarbonFiber":"Fibra de Carbono","game-outfitDarkGloves":"El Profesional","game-outfitGhillie":"Traje Ghillie","game-outfitCamo":"Camuflaje de Bosque ","game-outfitRed":"PrÃ¡ctica de Tiro","game-outfitWhite":"Vengador del Ãrtico","game-outfitWoodland":"Woodland Combat","game-outfitJester":"Jester's Folly","game-outfitPrisoner":"The New Black","game-outfitCasanova":"Casanova Silks","game-outfitKhaki":"The Initiative","game-fists":"Fists","game-ak47":"AK-47","game-scar":"SCAR-H","game-dp28":"DP-28","game-mosin":"Mosin Nagant","game-m39":"M39 EMR","game-mp5":"MP5","game-mac10":"MAC-10","game-ump9":"UMP9","game-vector":"Vector","game-m870":"M870","game-mp220":"MP220","game-saiga":"Saiga-12","game-m9":"M9","game-m9_dual":"Dual M9","game-glock":"G18C","game-glock_dual":"Dual G18C","game-ot38":"OT-38","game-ot38_dual":"Dual OT-38","game-deagle":"DEagle 50","game-deagle_dual":"Dual DEagle 50","game-famas":"FAMAS","game-hk416":"M416","game-mk12":"Mk 12 SPR","game-m249":"M249","game-frag":"Granada de Fragmentacion","game-smoke":"Granada de Humo","game-barrel_01":"un barril","game-silo_01":"un silo","game-oven_01":"an oven","game-control_panel_01":"Control Panel","game-control_panel_02":"Control Panel","game-control_panel_03":"a computer terminal","game-power_box_01":"a power box"};e.exports=n},KPYC:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(//g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:' \n    Unable to load, please try again. \n \n',filename:"."};try{var buf=[];with(locals||{})!function{buf.push(' \n   Unable to load, please try again. \n \n')};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"    ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},"L1J/":function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"    ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(//g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:"\x3c!-- Background --\x3e\n \n\n\x3c!-- Top ad --\x3e\n<% if (!phoneDetected) { %>\n \n  \n    \n      \n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_728x90_Leaderboard'); });\n      <\/script>\n    \n  \n  \n    \n      \n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_leaderboard'); });\n      <\/script>\n    \n  \n \n<% } %>\n\n\x3c!-- Overview Card --\x3e\n\n  \n    <div class=\"card-body\">\n      \n        \n          <div class=\"leaderboard-title ml-sm-3 ml-0 mr-0 mt-3\" data-l10n='index-leaderboards' data-caps='true'>LEADERBOARDS \n        \n      \n    \n  \n \n\n\x3c!-- Mode selectors --\x3e\n \n  <div class=\"row\">\n    \n      <select id=\"leaderboard-team-mode\" class=\"leaderboard-opt custom-select\">\n        <option value=\"solo\" data-l10n='stats-solo'>Solo \n        <option value=\"duo\" data-l10n='stats-duo'>Duo \n        <option value=\"squad\" data-l10n='stats-squad'>Squad \n      \n    \n    \n      <select id=\"leaderboard-type\" class=\"leaderboard-opt custom-select\">\n        <option value=\"most_kills\" data-l10n='stats-most-kills'>Most kills \n        <option value=\"most_damage_dealt\" data-l10n='stats-most-damage'>Most damage \n        <option value=\"kpg\" data-l10n='stats-kpg-full'>Kills per game \n        <option value=\"kills\" data-l10n='stats-total-kills'>Total kills \n        <option value=\"wins\" data-l10n='stats-total-wins'>Total wins \n      \n    \n    \n      <select id=\"leaderboard-time\" class=\"leaderboard-opt custom-select\">\n        <option value=\"daily\" data-l10n='stats-today'>Today \n        <option value=\"weekly\" data-l10n='stats-this-week'>This week \n        <option value=\"alltime\" data-l10n='stats-all-time'>All time \n      \n    \n    \n      <select id=\"leaderboard-map-id\" class=\"leaderboard-opt custom-select\">\n        <% for (var i = 0; i < gameModes.length; i++) { %>\n          <option value=\"<%= gameModes[i].mapId %>\"><%= gameModes[i].desc.name%> \n        <% } %>\n      \n    \n  \n \n\n \n  <div class=\"row justify-content-center\">\n    <div class=\"col-md-12\">\n      <div class=\"content\"> \n    \n  \n \n\n<% if (phoneDetected) { %>\n \n  \n    <div id='surviv-io_300x250_leaderboard'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_leaderboard'); });\n      <\/script>\n    \n  \n \n<% } %>\n",filename:"."};try{var buf=[];with(locals||{})!function{buf.push("\x3c!-- Background --\x3e\n \n\n\x3c!-- Top ad --\x3e\n"),__stack.lineno=5,phoneDetected||(buf.push("\n \n  \n    <div id='surviv-io_728x90_Leaderboard'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_728x90_Leaderboard'); });\n      <\/script>\n    \n  \n  \n    <div id='surviv-io_300x250_leaderboard'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_leaderboard'); });\n      <\/script>\n    \n  \n \n"),__stack.lineno=22),buf.push('\n\n\x3c!-- Overview Card --\x3e\n \n  \n    \n      <div class=\'row card-row-top\'>\n        <div class=\'col-12\'>\n          <div class="leaderboard-title ml-sm-3 ml-0 mr-0 mt-3" data-l10n=\'index-leaderboards\' data-caps=\'true\'>LEADERBOARDS \n        \n      \n    \n  \n \n\n\x3c!-- Mode selectors --\x3e\n<div class=\'container mt-3\'>\n  \n    <div class=\'col-lg-2 col-3 pr-lg-3 pr-1\'>\n      <select id="leaderboard-team-mode" class="leaderboard-opt custom-select">\n        <option value="solo" data-l10n=\'stats-solo\'>Solo \n        <option value="duo" data-l10n=\'stats-duo\'>Duo \n        <option value="squad" data-l10n=\'stats-squad\'>Squad \n      \n    \n    <div class=\'col-lg-2 col-3 pl-lg-0 pr-lg-3 pl-0 pr-1\'>\n      <select id="leaderboard-type" class="leaderboard-opt custom-select">\n        <option value="most_kills" data-l10n=\'stats-most-kills\'>Most kills \n        <option value="most_damage_dealt" data-l10n=\'stats-most-damage\'>Most damage \n        <option value="kpg" data-l10n=\'stats-kpg-full\'>Kills per game \n        <option value="kills" data-l10n=\'stats-total-kills\'>Total kills \n        <option value="wins" data-l10n=\'stats-total-wins\'>Total wins \n      \n    \n    <div class=\'col-lg-2 col-3 pl-lg-0 pr-lg-3 pl-0 pr-1\'>\n      <select id="leaderboard-time" class="leaderboard-opt custom-select">\n        <option value="daily" data-l10n=\'stats-today\'>Today \n        <option value="weekly" data-l10n=\'stats-this-week\'>This week \n        <option value="alltime" data-l10n=\'stats-all-time\'>All time \n      \n    \n    <div class=\'col-lg-2 col-3 pl-0\'>\n      <select id="leaderboard-map-id" class="leaderboard-opt custom-select">\n        '),__stack.lineno=65;for(var e=0;e<gameModes.length;e++)buf.push('\n          <option value="',escape((__stack.lineno=66,gameModes[e].mapId)),'">',escape((__stack.lineno=66,gameModes[e].desc.name))," \n        "),__stack.lineno=67;buf.push('\n      \n    \n  \n \n\n<div class=\'container mt-2 mb-4 p-sm-3 p-0\'>\n  \n    \n      \n    \n  \n \n\n'),__stack.lineno=81,phoneDetected&&(buf.push("\n \n  \n    <div id='surviv-io_300x250_leaderboard'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_leaderboard'); });\n      <\/script>\n    \n  \n \n"),__stack.lineno=91),buf.push("\n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},RGMZ:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:"\x3c!-- Background --\x3e\n \n\n\x3c!-- Top ad --\x3e\n<% if (!phoneDetected) { %>\n \n  \n    <div id='surviv-io_728x90_playerprofile'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_728x90_playerprofile'); });\n      <\/script>\n    \n  \n\n  \n    <div id='surviv-io_300x250_playerprofile'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_playerprofile'); });\n      <\/script>\n    \n  \n \n<% } %>\n\n<div class=\"col-12 p-lg-3 p-0\">\n  <div class=\"content\"> \n \n\n<% if (phoneDetected) { %>\n  \n    \n      <div id='surviv-io_300x250_playerprofile'>\n        <script type='text/javascript'>\n         aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_playerprofile'); });\n        <\/script>\n      \n    \n  \n<% } %>\n",filename:"."};try{var buf=[];with(locals||{})!function{buf.push("\x3c!-- Background --\x3e\n \n\n\x3c!-- Top ad --\x3e\n"),__stack.lineno=5,phoneDetected||(buf.push("\n \n  \n    <div id='surviv-io_728x90_playerprofile'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_728x90_playerprofile'); });\n      <\/script>\n    \n  \n\n  \n    <div id='surviv-io_300x250_playerprofile'>\n      <script type='text/javascript'>\n       aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_playerprofile'); });\n      <\/script>\n    \n  \n \n"),__stack.lineno=23),buf.push('\n\n \n  \n \n\n'),__stack.lineno=29,phoneDetected&&(buf.push("\n  \n    \n      <div id='surviv-io_300x250_playerprofile'>\n        <script type='text/javascript'>\n         aiptag.cmd.display.push(function { aipDisplayTag.display('surviv-io_300x250_playerprofile'); });\n        <\/script>\n      \n    \n  \n"),__stack.lineno=39),buf.push("\n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},Rfhq:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={mapId:2,desc:{name:"Woods",icon:"img/modes/player-king-woods.svg"},assets:{audio:[{name:"vault_change_02",channel:"sfx"},{name:"footstep_08",channel:"sfx"},{name:"footstep_09",channel:"sfx"},{name:"helmet03_forest_pickup_01",channel:"ui"},{name:"ability_stim_01",channel:"sfx"},{name:"leader_dead_01",channel:"ui"}],atlases:["gradient","loadout","shared","woods"]},biome:{colors:{background:2118510,water:3310251,waterRipple:11792639,beach:15709019,riverbank:7812619,grass:9339690,underground:1772803,playerSubmerge:2854052},particles:{camera:"falling_leaf"}},gameMode:{maxPlayers:80,woodsMode:!0}};e.exports=n.mergeDeep({},s,o)},TiaQ:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={assets:{audio:[{name:"snowball_01",channel:"sfx"},{name:"snowball_02",channel:"sfx"},{name:"plane_02",channel:"sfx"},{name:"bells_01",channel:"ui"},{name:"snowball_pickup_01",channel:"ui"}],atlases:["gradient","loadout","shared","snow"]},biome:{colors:{background:603705,water:806225,waterRipple:11792639,beach:13480795,riverbank:9461284,grass:12434877,underground:1772803,playerSubmerge:2854052},particles:{camera:"falling_snow_fast"},airdrop:{planeImg:"map-plane-01x.img",planeSound:"plane_02",airdropImg:"map-chute-01x.img"},frozenSprites:["player-snow-01.img","player-snow-02.img","player-snow-03.img"]}};e.exports=n.mergeDeep({},s,o)},UiAd:function(e,a,t){"use strict";var n=t("sfa6"),s={getParameterByName:function(e,a){a||(a=window.location.href),e=e.replace(/\/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=t.exec(a);if(n)return n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):""},getGameModes:function{for(var e=[],a=Object.keys(n),t=0;t<a.length;t++)!function(t){var s=a[t],o=n[s];e.find(function(e){return e.mapId==o.mapId})||e.push({mapId:o.mapId,desc:o.desc})}(t);return e.sort(function(e,a){return e.mapId-a.mapId}),e}};e.exports=s},VdSu:function(e,a,t){"use strict";var n={"@metadata":{"last-updated":"2018-05-26",locale:"en"},"word-order":"svo","index-privacy":"privacy","index-go":"Go","index-leaderboards":"Leaderboards","index-my-stats":"My Stats","index-search-players":"Search Players","index-play-survivio":"Play surviv.io!","stats-rank":"Rank","stats-most-kills":"Most kills","stats-total-kills":"Total kills","stats-wins":"Wins","stats-total-wins":"Total wins","stats-top-5-percent":"Top 5 percent","stats-kill-death-ratio":"K/D","stats-today":"Today","stats-this-week":"This week","stats-all-time":"All time","stats-preseason":"Preseason","stats-top-100":"TOP 100","stats-player":"Player","stats-games":"Games","stats-rating":"Rating","stats-win-pct":"Win %","stats-top-5":"Top 5 %","stats-win-streak":"Win streak","stats-kdr":"K/D","stats-kpg":"K/G","stats-kpg-full":"Kills per game","stats-most-damage":"Most damage","stats-avg-damage":"Avg damage","stats-avg-kills":"Avg kills","stats-avg-survived":"Avg survived time","stats-region":"Region","stats-north-america":"North America","stats-europe":"Europe","stats-asia":"Asia","stats-players":"players","stats-solo":"Solo","stats-duo":"Duo","stats-squad":"Squad","stats-solo-rank":"Solo Rank","stats-duo-rank":"Duo Rank","stats-squad-rank":"Squad Rank","stats-team-kills":"Team Kills","stats-kill":"Kill","stats-kills":"Kills","stats-damage-dealt":"Damage Dealt","stats-damage-taken":"Damage Taken","stats-survived":"Survived","game-backpack00":"Pouch","game-backpack01":"Small Pack","game-backpack02":"Regular Pack","game-backpack03":"Military Pack","game-bandage":"Bandage","game-healthkit":"Med Kit","game-soda":"Soda","game-painkiller":"Pills","game-9mm":"9mm","game-12gauge":"12 gauge","game-762mm":"7.62mm","game-556mm":"5.56mm","game-50AE":".50 AE","game-chest01":"Level 1 Vest","game-chest02":"Level 2 Vest","game-chest03":"Level 3 Vest","game-helmet01":"Level 1 Helmet","game-helmet02":"Level 2 Helmet","game-helmet03":"Level 3 Helmet","game-1xscope":"1x Scope","game-2xscope":"2x Scope","game-4xscope":"4x Scope","game-8xscope":"8x Scope","game-15xscope":"15x Scope","game-level-1":"Lvl. 1","game-level-2":"Lvl. 2","game-level-3":"Lvl. 3","game-outfitBase":"Basic Outfit","game-outfitRoyalFortune":"Royal Fortune","game-outfitKeyLime":"Key Lime","game-outfitCobaltShell":"Cobalt Shell","game-outfitCarbonFiber":"Carbon Fiber","game-outfitDarkGloves":"The Professional","game-outfitGhillie":"Ghillie Suit","game-outfitCamo":"Forest Camo","game-outfitRed":"Target Practice","game-outfitWhite":"Arctic Avenger","game-outfitWoodland":"Woodland Combat","game-outfitJester":"Jester's Folly","game-outfitPrisoner":"The New Black","game-outfitCasanova":"Casanova Silks","game-outfitKhaki":"The Initiative","game-fists":"Fists","game-ak47":"AK-47","game-scar":"SCAR-H","game-dp28":"DP-28","game-mosin":"Mosin Nagant","game-m39":"M39 EMR","game-mp5":"MP5","game-mac10":"MAC-10","game-ump9":"UMP9","game-vector":"Vector","game-m870":"M870","game-mp220":"MP220","game-saiga":"Saiga-12","game-m9":"M9","game-m9_dual":"Dual M9","game-glock":"G18C","game-glock_dual":"Dual G18C","game-ot38":"OT-38","game-ot38_dual":"Dual OT-38","game-deagle":"DEagle 50","game-deagle_dual":"Dual DEagle 50","game-famas":"FAMAS","game-hk416":"M416","game-mk12":"Mk 12 SPR","game-m249":"M249","game-frag":"Frag Grenade","game-smoke":"Smoke Grenade","game-barrel_01":"a barrel","game-silo_01":"a silo","game-oven_01":"an oven","game-control_panel_01":"Control Panel","game-control_panel_02":"Control Panel","game-control_panel_03":"a computer terminal","game-power_box_01":"a power box"};e.exports=n},ZhQf:function(e,a,t){"use strict";function n(e,a,t){t=t||2;var n=a&&a.length,o=n?a[0]*t:e.length,r=s(e,0,o,t,!0),l=[];if(!r)return l;var c,m,u,p,g,h,v;if(n&&(r=d(e,a,r,t)),e.length>80*t){c=u=e[0],m=p=e[1];for(var y=t;y<o;y+=t)g=e[y],h=e[y+1],g<c&&(c=g),h<m&&(m=h),g>u&&(u=g),h>p&&(p=h);v=Math.max(u-c,p-m),v=0!==v?1/v:0}return i(r,l,t,c,m,v),l}function s(e,a,t,n,s){var o,i;if(s===D(e,a,t,n)>0)for(o=a;o<t;o+=n)i=T(o,e[o],e[o+1],i);else for(o=t-n;o>=a;o-=n)i=T(o,e[o],e[o+1],i);return i&&b(i,i.next)&&(j(i),i=i.next),i}function o(e,a){if(!e)return e;a||(a=e);var t,n=e;do{if(t=!1,n.steiner||!b(n,n.next)&&0!==k(n.prev,n,n.next))n=n.next;else{if(j(n),(n=a=n.prev)===n.next)break;t=!0}}while(t||n!==a);return a}function i(e,a,t,n,s,d,u){if(e){!u&&d&&h(e,n,s,d);for(var p,g,v=e;e.prev!==e.next;)if(p=e.prev,g=e.next,d?l(e,n,s,d):r(e))a.push(p.i/t),a.push(e.i/t),a.push(g.i/t),j(e),e=g.next,v=g.next;else if((e=g)===v){u?1===u?(e=c(e,a,t),i(e,a,t,n,s,d,2)):2===u&&m(e,a,t,n,s,d):i(o(e),a,t,n,s,d,1);break}}}function r(e){var a=e.prev,t=e,n=e.next;if(k(a,t,n)>=0)return!1;for(var s=e.next.next;s!==e.prev;){if(_(a.x,a.y,t.x,t.y,n.x,n.y,s.x,s.y)&&k(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function l(e,a,t,n){var s=e.prev,o=e,i=e.next;if(k(s,o,i)>=0)return!1;for(var r=s.x<o.x?s.x<i.x?s.x:i.x:o.x<i.x?o.x:i.x,l=s.y<o.y?s.y<i.y?s.y:i.y:o.y<i.y?o.y:i.y,c=s.x>o.x?s.x>i.x?s.x:i.x:o.x>i.x?o.x:i.x,m=s.y>o.y?s.y>i.y?s.y:i.y:o.y>i.y?o.y:i.y,d=y(r,l,a,t,n),u=y(c,m,a,t,n),p=e.prevZ,g=e.nextZ;p&&p.z>=d&&g&&g.z<=u;){if(p!==e.prev&&p!==e.next&&_(s.x,s.y,o.x,o.y,i.x,i.y,p.x,p.y)&&k(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==e.prev&&g!==e.next&&_(s.x,s.y,o.x,o.y,i.x,i.y,g.x,g.y)&&k(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(p&&p.z>=d;){if(p!==e.prev&&p!==e.next&&_(s.x,s.y,o.x,o.y,i.x,i.y,p.x,p.y)&&k(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(g&&g.z<=u;){if(g!==e.prev&&g!==e.next&&_(s.x,s.y,o.x,o.y,i.x,i.y,g.x,g.y)&&k(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(e,a,t){var n=e;do{var s=n.prev,o=n.next.next;!b(s,o)&&w(s,n,n.next,o)&&O(s,o)&&O(o,s)&&(a.push(s.i/t),a.push(n.i/t),a.push(o.i/t),j(n),j(n.next),n=e=o),n=n.next}while(n!==e);return n}function m(e,a,t,n,s,r){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&x(l,c)){var m=F(l,c);return l=o(l,l.next),m=o(m,m.next),i(l,a,t,n,s,r),void i(m,a,t,n,s,r)}c=c.next}l=l.next}while(l!==e)}function d(e,a,t,n){var i,r,l,c,m,d=[];for(i=0,r=a.length;i<r;i++)l=a[i]*n,c=i<r-1?a[i+1]*n:e.length,m=s(e,l,c,n,!1),m===m.next&&(m.steiner=!0),d.push(f(m));for(d.sort(u),i=0;i<d.length;i++)p(d[i],t),t=o(t,t.next);return t}function u(e,a){return e.x-a.x}function p(e,a){if(a=g(e,a)){var t=F(a,e);o(t,t.next)}}function g(e,a){var t,n=a,s=e.x,o=e.y,i=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var r=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(r<=s&&r>i){if(i=r,r===s){if(o===n.y)return n;if(o===n.next.y)return n.next}t=n.x<n.next.x?n:n.next}}n=n.next}while(n!==a);if(!t)return null;if(s===i)return t.prev;var l,c=t,m=t.x,d=t.y,u=1/0;for(n=t.next;n!==c;)s>=n.x&&n.x>=m&&s!==n.x&&_(o<d?s:i,o,m,d,o<d?i:s,o,n.x,n.y)&&((l=Math.abs(o-n.y)/(s-n.x))<u||l===u&&n.x>t.x)&&O(n,e)&&(t=n,u=l),n=n.next;return t}function h(e,a,t,n){var s=e;do{null===s.z&&(s.z=y(s.x,s.y,a,t,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==e);s.prevZ.nextZ=null,s.prevZ=null,v(s)}function v(e){var a,t,n,s,o,i,r,l,c=1;do{for(t=e,e=null,o=null,i=0;t;){for(i++,n=t,r=0,a=0;a<c&&(r++,n=n.nextZ);a++);for(l=c;r>0||l>0&&n;)0!==r&&(0===l||!n||t.z<=n.z)?(s=t,t=t.nextZ,r--):(s=n,n=n.nextZ,l--),o?o.nextZ=s:e=s,s.prevZ=o,o=s;t=n}o.nextZ=null,c*=2}while(i>1);return e}function y(e,a,t,n,s){return e=32767*(e-t)*s,a=32767*(a-n)*s,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),a=16711935&(a|a<<8),a=252645135&(a|a<<4),a=858993459&(a|a<<2),a=1431655765&(a|a<<1),e|a<<1}function f(e){var a=e,t=e;do{a.x<t.x&&(t=a),a=a.next}while(a!==e);return t}function _(e,a,t,n,s,o,i,r){return(s-i)*(a-r)-(e-i)*(o-r)>=0&&(e-i)*(n-r)-(t-i)*(a-r)>=0&&(t-i)*(o-r)-(s-i)*(n-r)>=0}function x(e,a){return e.next.i!==a.i&&e.prev.i!==a.i&&!M(e,a)&&O(e,a)&&O(a,e)&&S(e,a)}function k(e,a,t){return(a.y-e.y)*(t.x-a.x)-(a.x-e.x)*(t.y-a.y)}function b(e,a){return e.x===a.x&&e.y===a.y}function w(e,a,t,n){return!!(b(e,a)&&b(t,n)||b(e,n)&&b(t,a))||k(e,a,t)>0!=k(e,a,n)>0&&k(t,n,e)>0!=k(t,n,a)>0}function M(e,a){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==a.i&&t.next.i!==a.i&&w(t,t.next,e,a))return!0;t=t.next}while(t!==e);return!1}function O(e,a){return k(e.prev,e,e.next)<0?k(e,a,e.next)>=0&&k(e,e.prev,a)>=0:k(e,a,e.prev)<0||k(e,e.next,a)<0}function S(e,a){var t=e,n=!1,s=(e.x+a.x)/2,o=(e.y+a.y)/2;do{t.y>o!=t.next.y>o&&t.next.y!==t.y&&s<(t.next.x-t.x)*(o-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next}while(t!==e);return n}function F(e,a){var t=new C(e.i,e.x,e.y),n=new C(a.i,a.x,a.y),s=e.next,o=a.prev;return e.next=a,a.prev=e,t.next=s,s.prev=t,n.next=t,t.prev=n,o.next=n,n.prev=o,n}function T(e,a,t,n){var s=new C(e,a,t);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function C(e,a,t){this.i=e,this.x=a,this.y=t,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function D(e,a,t,n){for(var s=0,o=a,i=t-n;o<t;o+=n)s+=(e[i]-e[o])*(e[o+1]+e[i+1]),i=o;return s}e.exports=n,e.exports.default=n,n.deviation=function(e,a,t,n){var s=a&&a.length,o=s?a[0]*t:e.length,i=Math.abs(D(e,0,o,t));if(s)for(var r=0,l=a.length;r<l;r++){var c=a[r]*t,m=r<l-1?a[r+1]*t:e.length;i-=Math.abs(D(e,c,m,t))}var d=0;for(r=0;r<n.length;r+=3){var u=n[r]*t,p=n[r+1]*t,g=n[r+2]*t;d+=Math.abs((e[u]-e[g])*(e[p+1]-e[u+1])-(e[u]-e[p])*(e[g+1]-e[u+1]))}return 0===i&&0===d?0:Math.abs((d-i)/i)},n.flatten=function(e){for(var a=e[0][0].length,t={vertices:[],holes:[],dimensions:a},n=0,s=0;s<e.length;s++){for(var o=0;o<e[s].length;o++)for(var i=0;i<a;i++)t.vertices.push(e[s][o][i]);s>0&&(n+=e[s-1].length,t.holes.push(n))}return t}},av6l:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={assets:{audio:[],atlases:["gradient","loadout","shared","main"]},biome:{colors:{background:2118510,water:3310251,waterRipple:11792639,beach:16035400,riverbank:9079434,grass:6066442,underground:1772803,playerSubmerge:2854052},sound:{riverShore:"stone"},particles:{camera:"falling_leaf_spring"}}};e.exports=n.mergeDeep({},s,o)},cZoj:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:" MATCH HISTORY \n  <% if (error) { %>\n    \n      <div class=\"m-3\">Error loading content, please try again. \n    \n  <% } else if (games.length == 0) { %>\n    \n      <div class=\"m-3\">No recent games played. \n    \n  <% } else { %>\n    \n        <% for (var i = 0; i < games.length; i++) { %>\n\n            <div class='row row-match match-link js-match-data <%= games[i].expanded ? 'match-link-expanded' :  %>' data-game-id='<%= games[i].summary.guid %>'>\n                <div class='match-link-mode-color match-link-mode-<%= games[i].summary.team_mode %>'> \n                \n                    \n                        <% for (var j = 0; j < games[i].summary.team_count; j++) { %>\n                            \n                        <% } %>\n                    \n                    \n                        <%\n                            var timeDiff = ;\n                            var timeStart = new Date(games[i].summary.end_time);\n                            var now = Date.now;\n                            var secondsPast = (now - timeStart.getTime) / 1000;\n                            if (secondsPast < 3600) {\n                                var minutes = Math.round(secondsPast/60);\n                                timeDiff = minutes < 2 ? '1 minute ago' : minutes + ' minutes ago';\n                           } else if (secondsPast <= 86400) {\n                                var hours = Math.round(secondsPast/3600);\n                                timeDiff = hours == 1 ? 'an hour ago' : hours + ' hours ago';\n                           } else if (secondsPast > 86400 && secondsPast < 172800) {\n                                timeDiff = Math.floor(secondsPast/86400) + ' day ago';\n                            } else if (secondsPast > 86400) {\n                                timeDiff = Math.floor(secondsPast/86400) + ' days ago';\n                            }\n                        %>\n                        <%= timeDiff %>\n                    \n                \n                \n                    \n                        <%\n                            var modeText = games[i].summary.team_mode;\n                            modeText = modeText.charAt(0).toUpperCase + modeText.slice(1);\n                        %>\n                        <%= modeText %> Rank \n                        \n                            <span class='match-link-stat-rank match-link-stat-<%= games[i].summary.rank %>'>#<%= games[i].summary.rank %> \n                            /<%= games[i].summary.team_total || 80 %>\n                        \n                    \n                \n                \n                    \n                        Kills \n                        <%= games[i].summary.kills %> \n                    \n                \n                <% if (games[i].summary.team_mode != 'solo') { %>\n                    \n                        \n                            Team Kills \n                            <%= games[i].summary.team_kills || 0 %> \n                        \n                    \n                <% } %>\n                <div class='col-2 col-md-1 <%= games[i].summary.team_mode == 'solo' ? 'offset-md-1' :  %>'>\n                   \n                        Damage Dealt \n                        <%= games[i].summary.damage_dealt %> \n                    \n                \n                \n                    \n                        Damage Taken \n                        <%= games[i].summary.damage_taken %> \n                    \n                \n                \n                    \n                        Survived \n                        \n                            <%\n                                var timeAlive = games[i].summary.time_alive;\n                                var minutes = Math.floor(timeAlive / 60) % 60;\n                                var seconds = Math.floor(timeAlive) % 60;\n                                if (seconds < 10) {seconds = \"0\" + seconds};\n                                var timeSurv = ;\n                                timeSurv += minutes + ':';\n                                timeSurv += seconds;\n                            %>\n                            <%= timeSurv %>\n                        \n                    \n                \n                \x3c!-- Game mode icon --\x3e\n                \n                  <% if (games[i].summary.icon) { %>\n                    \n                        <div class='game-mode-icon' style='background-image: url(/stats/<%= games[i].summary.icon %>)'> \n                    \n                  <% } %>\n                \n                \x3c!-- Expand/Unexpand icon --\x3e\n                \n                    <div class='match-link-expand <%= games[i].expanded ? 'match-link-expand-up' : 'match-link-expand-down' %>'>\n                   \n                \n\n                <% if (games[i].expanded) { %>\n                    \n                        \x3c!-- match-data.ejs --\x3e\n                    \n                <% } %>\n            \n        <% } %>\n    \n    <% if (moreGamesAvailable) { %>\n        <% if (loading) { %>\n            \x3c!-- Loading more games --\x3e\n            <div class=\"col-12 spinner-wrapper-match-data\">\n                <div class=\"spinner\"> \n            \n        <% } else { %>\n            More \n        <% } %>\n    <% } %>\n  <% } %>\n \n",filename:"."};try{var buf=[];with(locals||{})!function{if(buf.push(" MATCH HISTORY \n  "),__stack.lineno=2,error)buf.push("\n    \n      <div class=\"m-3\">Error loading content, please try again. \n    \n  "),__stack.lineno=6;else if(0==games.length)buf.push("\n    \n      <div class=\"m-3\">No recent games played. \n   \n  "),__stack.lineno=10;else{buf.push("\n    \n        "),__stack.lineno=12;for(var e=0;e<games.length;e++){buf.push("\n\n            <div class='row row-match match-link js-match-data ",escape((__stack.lineno=14,games[e].expanded?"match-link-expanded":"")),"' data-game-id='",escape((__stack.lineno=14,games[e].summary.guid)),"'>\n                <div class='match-link-mode-color match-link-mode-",escape((__stack.lineno=15,games[e].summary.team_mode)),"'> \n                \n                    \n                        "),__stack.lineno=18;for(var a=0;a<games[e].summary.team_count;a++)buf.push("\n                            \n                        "),__stack.lineno=20;buf.push("\n                    \n                    \n                        "),__stack.lineno=23;var t="",n=new Date(games[e].summary.end_time),s=Date.now,o=(s-n.getTime)/1e3;if(o<3600){var i=Math.round(o/60);t=i<2?"1 minute ago":i+" minutes ago"}else if(o<=86400){var r=Math.round(o/3600);t=1==r?"an hour ago":r+" hours ago"}else o>86400&&o<172800?t=Math.floor(o/86400)+" day ago":o>86400&&(t=Math.floor(o/86400)+" days ago");buf.push("\n                        ",escape((__stack.lineno=40,t)),"\n                    \n                \n                \n                    \n                        "),__stack.lineno=45;var l=games[e].summary.team_mode;l=l.charAt(0).toUpperCase+l.slice(1),buf.push("\n                        ",escape((__stack.lineno=49,l))," Rank \n                        \n                            <span class='match-link-stat-rank match-link-stat-",escape((__stack.lineno=51,games[e].summary.rank)),"'>#",escape((__stack.lineno=51,games[e].summary.rank))," \n                            /",escape((__stack.lineno=52,games[e].summary.team_total||80)),"\n                        \n                    \n                \n                \n                    \n                        Kills \n                        ",escape((__stack.lineno=59,games[e].summary.kills))," \n                    \n                \n                "),__stack.lineno=62,"solo"!=games[e].summary.team_mode&&(buf.push("\n                    \n                        \n                            Team Kills \n                            ",escape((__stack.lineno=66,games[e].summary.team_kills||0))," \n                        \n                    \n                "),__stack.lineno=69),buf.push("\n                <div class='col-2 col-md-1 ",escape((__stack.lineno=70,"solo"==games[e].summary.team_mode?"offset-md-1":"")),"'>\n                    \n                        Damage Dealt \n                        ",escape((__stack.lineno=73,games[e].summary.damage_dealt))," \n                    \n                \n                \n                    \n                        Damage Taken \n                        ",escape((__stack.lineno=79,games[e].summary.damage_taken))," \n                    \n                \n                \n                    \n                        Survived \n                        \n                            "),__stack.lineno=86;var c=games[e].summary.time_alive,i=Math.floor(c/60)%60,m=Math.floor(c)%60;m<10&&(m="0"+m);var d="";d+=i+":",d+=m,buf.push("\n                            ",escape((__stack.lineno=95,d)),"\n                        \n                    \n                \n                \x3c!-- Game mode icon --\x3e\n                \n                  "),__stack.lineno=101,games[e].summary.icon&&(buf.push("\n                    \n                        <div class='game-mode-icon' style='background-image: url(/stats/",escape((__stack.lineno=103,games[e].summary.icon)),")'> \n                    \n                  "),__stack.lineno=105),buf.push("\n                \n                \x3c!-- Expand/Unexpand icon --\x3e\n                \n                    <div class='match-link-expand ",escape((__stack.lineno=109,games[e].expanded?"match-link-expand-up":"match-link-expand-down")),"'>\n                    \n                \n\n                "),__stack.lineno=113,games[e].expanded&&(buf.push("\n                    \n                        \x3c!-- match-data.ejs --\x3e\n                    \n                "),__stack.lineno=117),buf.push("\n            \n        "),__stack.lineno=119}buf.push("\n    \n    "),__stack.lineno=121,moreGamesAvailable&&(buf.push("\n        "),__stack.lineno=122,loading?(buf.push('\n            \x3c!-- Loading more games --\x3e\n            \n                \n            \n        '),__stack.lineno=127):(buf.push("\n            More \n        "),__stack.lineno=129),buf.push("\n    "),__stack.lineno=130),buf.push("\n  "),__stack.lineno=131}buf.push("\n \n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},"fj+T":function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:'<% switch (type) {\n    case \'leaderboard\': %>\n        \n            \n        \n    <% break; %>\n    <% case \'player\': %>\n        <div class=\'container\'>\n            \n                \n            \n        \n    <% break; %>\n    <% case \'match_history\': %>\n        \n            \n        \n    <% break; %>\n<% } %>\n',filename:"."};try{var buf=[];with(locals||{})!function{switch(buf.push(""),__stack.lineno=1,type){case"leaderboard":buf.push('\n        \n            \n        \n    '),__stack.lineno=6;break;case"player":buf.push('\n        <div class=\'container\'>\n            \n                \n            \n        \n    '),__stack.lineno=13;break;case"match_history":buf.push('\n        \n            \n        \n    '),__stack.lineno=18}buf.push("\n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},fquI:function(e,a,t){"use strict";var n=function{var e=!1;return function(a){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},s=function{var e=!1,a=navigator.userAgent.toLowerCase;return function(t){/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(a)&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},o={Lg:0,Sm:1},i={Layout:o,debug:!1,dev:!1,pixelRatio:window.devicePixelRatio,layout:n?o.Sm:o.Lg,mobile:n,tablet:s,touch:n};e.exports=i},gV60:function(e,a,t){function n(e){return t(s(e))}function s(e){var a=o[e];if(!(a+1))throw new Error("Cannot find module '"+e+"'.");return a}var o={"./en.js":"VdSu","./es.js":"Iic8"};n.keys=function{return Object.keys(o)},n.resolve=s,e.exports=n,n.id="gV60"},hqSh:function(e,a){},kD9G:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={mapId:3,desc:{name:"50v50",icon:"img/modes/star.svg"},assets:{audio:[{name:"leader_dead_01",channel:"ui"},{name:"leader_assigned_01",channel:"ui"},{name:"lt_assigned_01",channel:"ui"},{name:"medic_assigned_01",channel:"ui"},{name:"ping_leader_01",channel:"ui"}],atlases:["gradient","loadout","shared","faction"]},biome:{colors:{background:333348,water:465718,waterRipple:11792639,beach:9328178,riverbank:6632211,grass:5136680,underground:1772803,playerSubmerge:1192009}},gameMode:{maxPlayers:100,factionMode:!0,factions:2}};e.exports=n.mergeDeep({},s,o)},mJrW:function(e,a,t){"use strict";e.exports={protocolVersion:63,Input:{MoveLeft:0,MoveRight:1,MoveUp:2,MoveDown:3,Fire:4,Reload:5,Cancel:6,Interact:7,Revive:8,Use:9,Loot:10,EquipPrimary:11,EquipSecondary:12,EquipMelee:13,EquipThrowable:14,EquipFragGrenade:15,EquipSmokeGrenade:16,EquipNextWeap:17,EquipPrevWeap:18,EquipLastWeap:19,EquipOtherGun:20,EquipPrevScope:21,EquipNextScope:22,UseBandage:23,UseHealthKit:24,UseSoda:25,UsePainkiller:26,StowWeapons:27,SwapWeapSlots:28,ToggleMap:29,CycleUIMode:30,EmoteMenu:31,TeamPingMenu:32,Fullscreen:33,HideUI:34,TeamPingSingle:35,Count:36},EmoteSlot:{Top:0,Right:1,Bottom:2,Left:3,Win:4,Death:5,Count:6},WeaponSlot:{Primary:0,Secondary:1,Melee:2,Throwable:3,Count:4},WeaponType:["gun","gun","melee","throwable"],DamageType:{Player:0,Bleeding:1,Gas:2,Airdrop:3,Airstrike:4},Action:{None:0,Reload:1,ReloadAlt:2,UseItem:3,Revive:4},Anim:{None:0,Melee:1,Cook:2,Throw:3,CrawlForward:4,CrawlBackward:5,Revive:6},GasMode:{Inactive:0,Waiting:1,Moving:2},Plane:{Airdrop:0,Airstrike:1},map:{gridSize:16,shoreVariation:3,grassVariation:2},player:{radius:1,maxVisualRadius:3.75,maxInteractionRad:3.5,health:100,reviveHealth:24,boostBreakpoints:[1,1,1.5,.5],baseSwitchDelay:.25,freeSwitchCooldown:1,bleedTickRate:1,reviveDuration:8,reviveRange:5,crawlTime:.75,emoteSoftCooldown:2,emoteHardCooldown:6,emoteThreshold:6,throwableMaxMouseDist:18,cookTime:.1,throwTime:.3,meleeHeight:.25,touchLootRadMult:1.4,medicHealRange:8,medicReviveRange:6},defaultEmoteLoadout:["emote_happyface","emote_thumbsup","emote_surviv","emote_sadface","",""],airdrop:{actionOffset:0,fallTime:8,crushDamage:100,planeVel:48,planeRad:150,soundRangeMult:2.5,soundRangeDelta:.25,soundRangeMax:92,fallOff:0},airstrike:{actionOffset:0,bombJitter:4,bombOffset:2,bombVel:3,bombCount:20,planeVel:350,planeRad:120,soundRangeMult:18,soundRangeDelta:18,soundRangeMax:48,fallOff:1.25},groupColors:[16776960,16711935,65535,16733184],teamColors:[13369344,32511],bullet:{maxReflect:3,reflectDistDecay:1.5,height:.25},projectile:{maxHeight:5},structureLayerCount:2,tracerColors:{"9mm":{regular:16704198,saturated:16767411,alphaRate:.92,alphaMin:.14},"762mm":{regular:12965630,saturated:11257087,alphaRate:.94,alphaMin:.2},"12gauge":{regular:16702684,saturated:16702684},"556mm":{regular:11141010,saturated:11141010,alphaRate:.92,alphaMin:.14},"50AE":{regular:16773256,saturated:16773256},"308sub":{regular:2435840,saturated:4608e3,alphaRate:.92,alphaMin:.07},flare:{regular:14869218,saturated:14869218},"45acp":{regular:15515391,saturated:15183103},shrapnel:{regular:3355443,saturated:3355443},frag:{regular:13303808,saturated:13303808},potato:{regular:0,saturated:0}},scopeZoomRadius:{desktop:{"1xscope":28,"2xscope":36,"4xscope":48,"8xscope":68,"15xscope":104},mobile:{"1xscope":32,"2xscope":40,"4xscope":48,"8xscope":64,"15xscope":88}},bagSizes:{"9mm":[120,240,330,420],"762mm":[90,180,240,300],"556mm":[90,180,240,300],"12gauge":[15,30,60,90],"50AE":[49,98,147,196],"308sub":[10,20,30,40],flare:[2,4,6,8],"45acp":[90,180,240,300],frag:[3,6,9,12],smoke:[3,6,9,12],strobe:[2,3,4,5],mirv:[2,4,6,8],snowball:[10,20,30,40],potato:[10,20,30,40],bandage:[5,10,15,30],healthkit:[1,2,3,4],soda:[2,5,10,15],painkiller:[1,2,3,4],"1xscope":[1,1,1,1],"2xscope":[1,1,1,1],"4xscope":[1,1,1,1],"8xscope":[1,1,1,1],"15xscope":[1,1,1,1]},lootRadius:{outfit:1,melee:1.25,gun:1.25,throwable:1,ammo:1.2,heal:1,boost:1,backpack:1,helmet:1,chest:1,scope:1,perk:1.25}}},nDwx:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:"\x3c!-- Overview Card --\x3e\n<div class=\"container mt-3\">\n  <div class=\"card card-player col-lg-8 col-12 p-0\">\n    <div class=\"card-body\">\n      \n\n        <% if (error) { %>\n          \n            <div class=\"card-player-name mt-3 ml-3\">Error loading content, please try again. \n          \n        <% } else if (!profile.username) { %>\n          \n            <div class=\"card-player-name mt-3 ml-3\">That player doesn't exist. \n          \n        <% } else { %>\n          \n              <div class='player-image' style='background-image: url(\"<%= profile.avatarTexture %>\")'> \n          \n          \n              <div class=\"card-player-name mt-3 ml-md-5 ml-sm-1 ml-xs-1\"><%= profile.username %> \n          \n          \n             \n          \n        <% } %>\n      \n    \n  \n \n\n\x3c!-- Season/Region selectors --\x3e\n<% if (teamModes.length > 0) { %>\n \n  \n    \n      <select id='player-time' class=\"player-opt custom-select\">\n        <option value=\"daily\" data-l10n='stats-today'>Today \n        <option value=\"weekly\" data-l10n='stats-this-week'>This week \n        <option value=\"alltime\" data-l10n='stats-all-time'>All time \n      \n    \n    \n      <select id=\"player-map-id\" class=\"player-opt custom-select\">\n        <option value=\"-1\" data-l10n='all'>All modes \n        <% for (var i = 0; i < gameModes.length; i++) { %>\n          <option value=\"<%= gameModes[i].mapId %>\"><%= gameModes[i].desc.name%> \n        <% } %>\n      \n    \n    \n      What is Rating? This feature coming soon! Rating will be based on placement and kills within an individual game mode. \n   \n  \n \n<% } %>\n\n\x3c!-- Mode Cards --\x3e\n<div class=\"container mt-3\">\n  \n\n    <% for (var i = 0; i < teamModes.length; i++) { %>\n\n    \x3c!-- Mode Card --\x3e\n    \x3c!-- pad the last card --\x3e\n    <% if (i == teamModes.length - 1) { %>\n      \n    <% } else { %>\n      \n    <% } %>\n      <div class=\"card card-mode card-mode-bg-<%= i %>\">\n        <div class=\"card-body p-1\">\n          \n            \n              <div class='mode-image mode-image-<%= teamModes[i].name %>'> \n            \n            \n              <div class=\"mode-name mode-name-<%= teamModes[i].name %>\" data-l10n='stats-<%= teamModes[i].name %>' data-caps='true'><%= teamModes[i].name.toUpperCase %> \n            \n            \n              <% if (teamModes[i].games > 0) { %>\n                <div class=\"mode-games\"> <%= teamModes[i].games %> Games  \n              <% } %>\n            \n          \n        \n      \n\n      \x3c!-- Show \"no games played\" if no games played --\x3e\n      <% if (teamModes[i].games == 0) { %>\n        <div class=\"card card-mode card-mode-no-games\">\n          No games played. \n       \n      <% } else { %>\n        <div class=\"card card-mode card-mode-bg-mid\">\n          <div class=\"card-body p-1\">\n            \n\n              <% for (var j = 0; j < teamModes[i].midStats.length; j++) { %>\n\n              \n                \n                  <div class='card-mode-stat-name' data-l10n='stats-<%= teamModes[i].midStats[j].name %>' data-caps='true'><%= teamModes[i].midStats[j].name.toUpperCase %> \n                  <div class='card-mode-stat-value' data-l10n='stats-<%= teamModes[i].midStats[j].val %>' data-caps='true'><%= teamModes[i].midStats[j].val %> \n                \n              \n\n              <% } %>\n\n            \n          \n        \n        <div class=\"card card-mode card-mode-bg-bot\">\n          <div class=\"card-body p-1\">\n            \n               <% for (var j = 0; j < teamModes[i].botStats.length; j++) { %>\n\n                \n                  \n                    <div class='card-mode-stat-name' data-l10n='stats-<%= teamModes[i].botStats[j].name %>' data-caps='true'><%= teamModes[i].botStats[j].name.toUpperCase %> \n                    <%= teamModes[i].botStats[j].val %> \n                  \n                \n\n              <% } %>\n\n            \n          \n        \n\n        <% } %>\n\n      \n\n    <% } %>\n\n  \n \n\x3c!-- Close Mode Cards --\x3e\n\n\x3c!-- Extra Stats --\x3e\n<% if (profile.username) { %>\n  <div class=\"container mt-3\">\n    \n      \n        <div class='extra-team-mode-filter <%= teamModeFilter == 7 ? 'extra-team-mode-filter-selected' : '' %> btn-darken' data-filter='7'>All \n     \n      \n        <div class='extra-team-mode-filter <%= teamModeFilter == 1 ? 'extra-team-mode-filter-selected' : '' %> btn-darken' data-filter='1'>Solo \n     \n      \n        <div class='extra-team-mode-filter <%= teamModeFilter == 2 ? 'extra-team-mode-filter-selected' : '' %> btn-darken' data-filter='2'>Duo \n      \n      \n        <div class='extra-team-mode-filter <%= teamModeFilter == 4 ? 'extra-team-mode-filter-selected' : '' %> btn-darken' data-filter='4'>Squad \n     \n    \n  \n  <div class=\"container mt-3\">\n    \x3c!-- Extra Stats Sort Options --\x3e\n    \n      \n      \n    \n    \n      \x3c!-- Extra Stats Selectors --\x3e\n      \n        Matches  \n        \x3c!-- Weapons --\x3e\n        \x3c!-- Misc --\x3e\n      \n      \x3c!-- Extra Stats Main --\x3e\n      \n        MATCH HISTORY \n        \n        \n      \n    \n  \n<% } %>\n\n\x3c!-- Close Extra Stats --\x3e\n",filename:"."};try{var buf=[];with(locals||{})!function{if(buf.push('\x3c!-- Overview Card --\x3e\n \n  \n    \n      <div class=\'row card-row-top\'>\n\n        '),__stack.lineno=7,error?(buf.push("\n          \n            <div class=\"card-player-name mt-3 ml-3\">Error loading content, please try again. \n          \n        "),__stack.lineno=11):profile.username?(buf.push("\n          \n              <div class='player-image' style='background-image: url(\"",escape((__stack.lineno=17,profile.avatarTexture)),"\")'> \n          \n          \n              <div class=\"card-player-name mt-3 ml-md-5 ml-sm-1 ml-xs-1\">",escape((__stack.lineno=20,profile.username))," \n          \n          \n             \n          \n        "),__stack.lineno=42):(buf.push("\n          \n            <div class=\"card-player-name mt-3 ml-3\">That player doesn't exist. \n         \n        "),__stack.lineno=15),buf.push("\n      \n    \n  \n \n\n\x3c!-- Season/Region selectors --\x3e\n"),__stack.lineno=49,teamModes.length>0){buf.push("\n \n  \n    \n      <select id='player-time' class=\"player-opt custom-select\">\n        <option value=\"daily\" data-l10n='stats-today'>Today \n        <option value=\"weekly\" data-l10n='stats-this-week'>This week \n        <option value=\"alltime\" data-l10n='stats-all-time'>All time \n      \n    \n    \n      <select id=\"player-map-id\" class=\"player-opt custom-select\">\n        <option value=\"-1\" data-l10n='all'>All modes \n        "),__stack.lineno=62;for(var e=0;e<gameModes.length;e++)buf.push('\n          <option value="',escape((__stack.lineno=63,gameModes[e].mapId)),'">',escape((__stack.lineno=63,gameModes[e].desc.name))," \n        "),__stack.lineno=64;buf.push("\n      \n    \n    \n      What is Rating? This feature coming soon! Rating will be based on placement and kills within an individual game mode. \n   \n  \n \n"),__stack.lineno=72}buf.push("\n\n\x3c!-- Mode Cards --\x3e\n<div class=\"container mt-3\">\n  \n\n    "),__stack.lineno=78;for(var e=0;e<teamModes.length;e++){if(buf.push("\n\n    \x3c!-- Mode Card --\x3e\n    \x3c!-- pad the last card --\x3e\n    "),__stack.lineno=82,e==teamModes.length-1?(buf.push("\n      \n    "),__stack.lineno=84):(buf.push("\n      \n    "),__stack.lineno=86),buf.push('\n      <div class="card card-mode card-mode-bg-',escape((__stack.lineno=87,e)),"\">\n        <div class=\"card-body p-1\">\n          \n            \n              <div class='mode-image mode-image-",escape((__stack.lineno=91,teamModes[e].name)),"'> \n            \n            \n              <div class=\"mode-name mode-name-",escape((__stack.lineno=94,teamModes[e].name)),"\" data-l10n='stats-",escape((__stack.lineno=94,teamModes[e].name)),"' data-caps='true'>",escape((__stack.lineno=94,teamModes[e].name.toUpperCase))," \n            \n            \n              "),__stack.lineno=97,teamModes[e].games>0&&(buf.push('\n                ',escape((__stack.lineno=98,teamModes[e].games))," Games  \n              "),__stack.lineno=99),buf.push('\n            \n          \n        \n      \n\n      \x3c!-- Show "no games played" if no games played --\x3e\n      '),__stack.lineno=106,0==teamModes[e].games)buf.push("\n        <div class=\"card card-mode card-mode-no-games\">\n          No games played. \n       \n      "),__stack.lineno=110;else{buf.push('\n        \n          \n            <div class=\'row m-1\'>\n\n              '),__stack.lineno=115;for(var a=0;a<teamModes[e].midStats.length;a++)buf.push("\n\n              \n                \n                  <div class='card-mode-stat-name' data-l10n='stats-",escape((__stack.lineno=119,teamModes[e].midStats[a].name)),"' data-caps='true'>",escape((__stack.lineno=119,teamModes[e].midStats[a].name.toUpperCase))," \n                  <div class='card-mode-stat-value' data-l10n='stats-",escape((__stack.lineno=120,teamModes[e].midStats[a].val)),"' data-caps='true'>",escape((__stack.lineno=120,teamModes[e].midStats[a].val))," \n                \n              \n\n              "),__stack.lineno=124;buf.push('\n\n            \n          \n        \n        \n          \n            <div class=\'row m-1\'>\n               '),__stack.lineno=132;for(var a=0;a<teamModes[e].botStats.length;a++)buf.push("\n\n                \n                  \n                    <div class='card-mode-stat-name' data-l10n='stats-",escape((__stack.lineno=136,teamModes[e].botStats[a].name)),"' data-caps='true'>",escape((__stack.lineno=136,teamModes[e].botStats[a].name.toUpperCase))," \n                    ",escape((__stack.lineno=137,teamModes[e].botStats[a].val))," \n                  \n                \n\n              "),__stack.lineno=141;buf.push("\n\n            \n          \n        \n\n        "),__stack.lineno=147}buf.push("\n\n      \n\n    "),__stack.lineno=151}buf.push("\n\n  \n \n\x3c!-- Close Mode Cards --\x3e\n\n\x3c!-- Extra Stats --\x3e\n"),__stack.lineno=158,profile.username&&(buf.push("\n  <div class=\"container mt-3\">\n    \n      \n        <div class='extra-team-mode-filter ",escape((__stack.lineno=162,7==teamModeFilter?"extra-team-mode-filter-selected":""))," btn-darken' data-filter='7'>All \n      \n      \n        <div class='extra-team-mode-filter ",escape((__stack.lineno=165,1==teamModeFilter?"extra-team-mode-filter-selected":""))," btn-darken' data-filter='1'>Solo \n      \n      \n        <div class='extra-team-mode-filter ",escape((__stack.lineno=168,2==teamModeFilter?"extra-team-mode-filter-selected":"")),"  btn-darken' data-filter='2'>Duo \n      \n      \n        <div class='extra-team-mode-filter ",escape((__stack.lineno=171,4==teamModeFilter?"extra-team-mode-filter-selected":""))," btn-darken' data-filter='4'>Squad \n      \n    \n  \n  <div class=\"container mt-3\">\n    \x3c!-- Extra Stats Sort Options --\x3e\n    \n      \n      \n    \n    \n      \x3c!-- Extra Stats Selectors --\x3e\n      \n        Matches  \n        \x3c!-- Weapons --\x3e\n        \x3c!-- Misc --\x3e\n      \n      \x3c!-- Extra Stats Main --\x3e\n      \n        MATCH HISTORY \n        \n        \n      \n    \n  \n"),__stack.lineno=196),buf.push("\n\n\x3c!-- Close Extra Stats --\x3e\n")};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},nTwN:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("1ew8")),o={assets:{audio:[{name:"log_01",channel:"sfx"},{name:"log_02",channel:"sfx"},{name:"pumpkin_break_01",channel:"sfx"},{name:"vault_change_02",channel:"sfx"}],atlases:["gradient","loadout","shared","halloween"]},biome:{colors:{background:1507328,water:2621440,waterRipple:1048833,beach:6570254,riverbank:3939077,grass:2171908,underground:1181697,playerSubmerge:1310720},particles:{camera:"falling_leaf_halloween"},valueAdjust:.3}};e.exports=n.mergeDeep({},s,o)},oHTN:function(module,exports){module.exports=function anonymous(locals,filters,escape,rethrow){function rethrow(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}escape=escape||function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")};var __stack={lineno:1,input:'<a class="nav-link dropdown-toggle" href="#" id="selected-language" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><%= code.toUpperCase %></a>\n \n    <a class="dropdown-item dropdown-language" href="#" value=\'en\'>English</a>\n    <a class="dropdown-item dropdown-language" href="#" value=\'es\'>EspaÃ±ol</a>\n ',filename:"."};try{var buf=[];with(locals||{})!function{buf.push('<a class="nav-link dropdown-toggle" href="#" id="selected-language" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">',escape((__stack.lineno=1,code.toUpperCase)),'</a>\n \n    <a class="dropdown-item dropdown-language" href="#" value=\'en\'>English</a>\n    <a class="dropdown-item dropdown-language" href="#" value=\'es\'>EspaÃ±ol</a>\n ')};return buf.join("")}catch(e){!function(e,a,t,n){var s=a.split("\n"),o=Math.max(n-3,0),i=Math.min(s.length,n+3),r=s.slice(o,i).map(function(e,a){var t=a+o+1;return(t==n?" >> ":"   ")+t+"| "+e}).join("\n");throw e.path=t,e.message=(t||"ejs")+":"+n+"\n"+r+"\n\n"+e.message,e}(e,__stack.input,__stack.filename,__stack.lineno)}}},rSE8:function(e,a,t){"use strict";function n(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}var s=function{function e(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(a,t,n){return t&&e(a.prototype,t),n&&e(a,n),a}},o=function{function e(a){n(this,e),this.app=a,this.routes=[];var t=this.onRouteChange.bind(this);window.addEventListener("load",t)}return s(e,[{key:"addRoute",value:function(e,a){this.routes.push({name:e,url:a})}},{key:"onRouteChange",value:function{var e=window.location.href,a=this.routes.find(function(a){return e.match(new RegExp(a.url))});a?this.app.setView(a.name):this.app.setView}}]),e};e.exports=o},sfa6:function(e,a,t){"use strict";var n={main:t("1ew8"),main_spring:t("av6l"),main_summer:t("BERA"),desert:t("73yX"),faction:t("kD9G"),halloween:t("nTwN"),potato:t("/Alh"),potato_spring:t("/qCp"),snow:t("TiaQ"),woods:t("Rfhq"),woods_snow:t("A1Tq"),woods_spring:t("uJWr"),woods_summer:t("0N0L")};e.exports=n},uJWr:function(e,a,t){"use strict";var n=(t("mJrW"),t("GQHi")),s=(t("wqeY"),t("Rfhq")),o={biome:{colors:{background:2118510,water:3310251,waterRipple:11792639,beach:15709019,riverbank:9079434,grass:4351497,underground:1772803,playerSubmerge:2854052},sound:{riverShore:"stone"},particles:{camera:"falling_leaf_spring"}}};e.exports=n.mergeDeep({},s,o)},vIKM:function(e,a,t){"use strict";function n(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function s(e){var a=Math.floor(e/60)%60,t=Math.floor(e)%60;t<10&&(t="0"+t);var n="";return n+=a+":",n+=t}function o(e){return e&&e.length>4?"../img/emotes/"+e.slice(0,-4)+".svg":""}function i(e,a,t){if(a||!e)return{profile:{},teamModes:[],error:a};for(var n=d[e.player_icon],i=n?o(n.texture):"../img/gui/player-gui.svg",r={username:e.username,avatarTexture:i,wins:e.wins,kills:e.kills,games:e.games,kpg:e.kpg},l=function(e,a,t){e.push({name:a,val:t})},c=[],u=0;u<e.modes.length;u++){var g=e.modes[u],h=[];l(h,"Rating","-"),l(h,"Rank","-");var v=[];l(v,"Wins",g.wins),l(v,"Win %",g.winPct),l(v,"Kills",g.kills),l(v,"Avg Survived",s(g.avgTimeAlive)),l(v,"Most kills",g.mostKills),l(v,"K/G",g.kpg),l(v,"Most damage",g.mostDamage),l(v,"Avg Damage",g.avgDamage),c.push({teamMode:g.teamMode,games:g.games,midStats:h,botStats:v})}for(var y=Object.keys(p),f=0;f<y.length;f++)!function(e){var a=y[e];c.find(function(e){return e.teamMode==a})||c.push({teamMode:a,games:0})}(f);c.sort(function(e,a){return e.teamMode-a.teamMode});for(var _=0;_<c.length;_++){var x=c[_].teamMode;c[_].name=p[x]}var k=m.getGameModes;return{profile:r,error:a,teamModes:c,teamModeFilter:t,gameModes:k}}var r=function{function e(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(a,t,n){return t&&e(a.prototype,t),n&&e(a,n),a}},l=t("juYr"),c=t("fquI"),m=t("UiAd"),d=t("DSCr"),u={loading:t("fj+T"),matchData:t("27uc"),matchHistory:t("cZoj"),player:t("RGMZ"),playerCards:t("nDwx")},p={1:"solo",2:"duo",4:"squad"},g=function{function e{n(this,e),this.inProgress=!1,this.dataValid=!1,this.error=!1,this.args={},this.data=null}return r(e,[{key:"query",value:function(e,a,t,n){var s=this;this.inProgress||(this.inProgress=!0,this.error=!1,l.ajax({url:e,type:"POST",data:JSON.stringify(a),contentType:"application/json; charset=utf-8",timeout:1e4,success:function(e,a,t){s.data=e,s.dataValid=!!e},error:function(e,a){s.error=!0,s.dataValid=!1},complete:function{setTimeout(function{s.inProgress=!1,n(s.error,s.data)},t)}}))}}]),e},h=function{function e(a){n(this,e),this.app=a,this.games=[],this.moreGamesAvailable=!0,this.teamModeFilter=7,this.userStats=new g,this.matchHistory=new g,this.matchData=new g,this.el=l(u.player({phoneDetected:c.mobile&&!c.tablet}))}return r(e,[{key:"getUrlParams",value:function{var e=window.location.href;return{slug:(new RegExp("stats/([^/?#]+).*$").exec(e)||[])[1]||"",interval:m.getParameterByName("t")||"all",mapId:m.getParameterByName("mapId")||"-1"}}},{key:"getGameByGameId",value:function(e){return this.games.find(function(a){return a.summary.guid==e})}},{key:"load",value:function{var e=this.getUrlParams,a=e.slug,t=e.interval,n=e.mapId;this.loadUserStats(a,t,n),this.loadMatchHistory(a,0,7),this.render}},{key:"loadUserStats",value:function(e,a,t){var n=this,s={slug:e,interval:a,mapIdFilter:t};this.userStats.query("/api/user_stats",s,0,function(e,a){n.render})}},{key:"loadMatchHistory",value:function(e,a,t){var n=this,s={slug:e,offset:a,count:10,teamModeFilter:t};this.matchHistory.query("/api/match_history",s,0,function(e,a){for(var t=m.getGameModes,s=a||[],o=0;o<s.length;o++)!function(e){s[e].team_mode=p[s[e].team_mode];var a=t.find(function(a){return a.mapId==s[e].map_id});s[e].icon=a?a.desc.icon:"",n.games.push({expanded:!1,summary:s[e],data:null,dataError:!1})}(o);n.moreGamesAvailable=s.length>=10,n.render})}},{key:"loadMatchData",value:function(e){var a=this,t={gameId:e};this.matchData.query("/api/match_data",t,0,function(t,n){var s=a.getGameByGameId(e);s&&(s.data=n,s.dataError=t||!n),a.render})}},{key:"toggleMatchData",value:function(e){var a=this.getGameByGameId(e);if(a){for(var t=a.expanded,n=0;n<this.games.length;n++)this.games[n].expanded=!1;a.expanded=!t,a.data||a.dataError||this.loadMatchData(e),this.render}}},{key:"onChangedParams",value:function{var e=l("#player-time").val,a=l("#player-map-id").val;window.history.pushState("","","?t="+e+"&mapId="+a);var t=this.getUrlParams;this.loadUserStats(t.slug,t.interval,t.mapId)}},{key:"render",value:function{var e=this,a=this.getUrlParams,t="";if(this.userStats.inProgress)t=u.loading({type:"player"});else{var n=i(this.userStats.data,this.userStats.error,this.teamModeFilter);t=u.playerCards(n)}this.el.find(".content").html(t);var s=this.el.find("#player-time");s&&(s.val(a.interval),s.change(function{e.onChangedParams}));var o=this.el.find("#player-map-id");o&&(o.val(a.mapId),o.change(function{e.onChangedParams}));var r="";r=0==this.games.length&&this.matchHistory.inProgress?u.loading({type:"match_history"}):u.matchHistory({games:this.games,moreGamesAvailable:this.moreGamesAvailable,loading:this.matchHistory.inProgress,error:this.matchHistory.error});var c=this.el.find("#match-history");if(c){c.html(r),l(".js-match-data").click(function(a){l(a.target).is("a")||e.toggleMatchData(l(a.currentTarget).data("game-id"))}),l(".js-match-load-more").click(function(a){var t=e.getUrlParams;e.loadMatchHistory(t.slug,e.games.length,e.teamModeFilter),e.render}),l(".extra-team-mode-filter").click(function(a){if(!e.matchHistory.inProgress){var t=e.getUrlParams;e.games=[],e.teamModeFilter=l(a.currentTarget).data("filter"),e.loadMatchHistory(t.slug,0,e.teamModeFilter),e.render}});var m="",d=this.games.find(function(e){return e.expanded});if(d){var p=this.getUrlParams,g=0;if(d.data)for(var h=0;h<d.data.length;h++){var v=d.data[h];if(p.slug==v.slug){g=v.player_id||0;break}}m=u.matchData({data:d.data,error:d.dataError,loading:this.matchData.inProgress,localId:g})}l("#match-data").html(m)}this.app.localization.localizeIndex}}]),e};e.exports=h},wqeY:function(e,a,t){"use strict";function n(e,a){return e<a?e:a}function s(e,a){return e>a?e:a}var o={create:function(e,a){return{x:e,y:void 0!==a?a:e}},copy:function(e){return{x:e.x,y:e.y}},set:function(e,a){e.x=a.x,e.y=a.y},add:function(e,a){return{x:e.x+a.x,y:e.y+a.y}},sub:function(e,a){return{x:e.x-a.x,y:e.y-a.y}},mul:function(e,a){return{x:e.x*a,y:e.y*a}},div:function(e,a){return{x:e.x/a,y:e.y/a}},neg:function(e){return{x:-e.x,y:-e.y}},lengthSqr:function(e){return e.x*e.x+e.y*e.y},length:function(e){return Math.sqrt(o.lengthSqr(e))},normalize:function(e){var a=o.length(e);return{x:a>1e-6?e.x/a:e.x,y:a>1e-6?e.y/a:e.y}},normalizeSafe:function(e,a){a=a||o.create(1,0);var t=o.length(e);return{x:t>1e-6?e.x/t:a.x,y:t>1e-6?e.y/t:a.y}},dot:function(e,a){return e.x*a.x+e.y*a.y},perp:function(e){return{x:-e.y,y:e.x}},proj:function(e,a){return o.mul(a,o.dot(e,a)/o.dot(a,a))},rotate:function(e,a){var t=Math.cos(a),n=Math.sin(a);return{x:e.x*t-e.y*n,y:e.x*n+e.y*t}},mulElems:function(e,a){return{x:e.x*a.x,y:e.y*a.y}},divElems:function(e,a){return{x:e.x/a.x,y:e.y/a.y}},minElems:function(e,a){return{x:n(e.x,a.x),y:n(e.y,a.y)}},maxElems:function(e,a){return{x:s(e.x,a.x),y:s(e.y,a.y)}},randomUnit:function{return o.normalizeSafe(o.create(Math.random-.5,Math.random-.5),o.create(1,0))},lerp:function(e,a,t){return o.add(o.mul(a,1-e),o.mul(t,e))},eq:function(e,a,t){var n=void 0!==t?t:1e-4;return Math.abs(e.x-a.x)<=n&&Math.abs(e.y-a.y)<=n}};e.exports=o}},["2O6T"]); //# sourceMappingURL=app.d4fa888d.js.map