;// bundle: page___e1f7117b6445a9dd4fb40f42d72fdb18_m
;// files: Develop/Develop.js, modules/Pages/CatalogShared.js, utilities/robloxAds.js, history.js/jquery.history.js, widgets/tabs.js, Events/AjaxPageLoadEvent.js, jquery.filter_input.js, DataPager.js, Build/BuildPage.js, GenericModal.js, /js/Build/UniverseLoader.js, Develop/OpenStudio.js, Events/DownloadStudioButtonClickEvent.js, Develop/PremiumLanding.js, TosModalCheck.js, utilities/dialog.js, GenericConfirmation.js, common/deviceMeta.js, AbuseReport/AbuseReportDispatcher.js

;// Develop/Develop.js
var Roblox=Roblox||{};Roblox.DevelopPage=function(){function y(n){!r&&n.clickTargetID&&(u=!0,n.clickTargetID==="catalog"||n.clickTargetID===h?(i.hasClass("tab-active")||($("div.tab-active").removeClass("tab-active"),i.addClass("tab-active"),t.addClass("tab-active")),Roblox.CatalogShared&&Roblox.CatalogShared.handleURLChange(n)):$("#"+n.clickTargetID).click(),u=!1)}function p(i){var s=i.data("url"),o=s,w=i.attr("id"),b=s===c,h,y,p;s===f?(w="catalog",$("#LibraryTab #catalog").length==0?(e=!0,Roblox.CatalogShared.LoadCatalogAjax(i.data("library-get-url"),null,t,!1,!0)):n?o+="?"+n:(h=$("#LibraryTabLink").data("query-params"),h&&(o+="?"+h))):(b||s===l)&&(y=parseInt($("#assetTypeId").val()),p=$(b?"#GroupCreationsTab":"#MyCreationsTab"),y===a?Roblox.BuildPage.ItemLoader.loadBadges(p,""):y===v&&Roblox.BuildPage.ItemLoader.loadGamePasses(p,0)),u||(r=!0,o=o.indexOf("#")===-1?o:o.split("#")[1],History.pushState({clickTargetID:w},document.title,o),r=!1),Roblox.EventStream&&Roblox.EventStream.SendEvent("tabClick",s,{})}var r=!1,u=!1,e=!1,t,i,o,s,f,h,n,c,l,a=21,v=34;$(function(){var u,a,v,w;if(o=$("#GroupCreationsTabLink"),s=$("#MyCreationsTabLink"),i=$("#LibraryTabLink"),t=$("#LibraryTab"),c=o.data("url"),l=s.data("url"),f=i.data("url"),h=i.attr("id"),u=$("#DevelopTabs .tab-active"),r=!0,a=document.URL.indexOf("#")===-1?document.URL:document.URL.split("#")[1],History.replaceState({clickTargetID:u.attr("id"),url:document.URL},document.title,a),r=!1,document.URL.indexOf(f)!==-1)if(n=document.URL.split("?")[1],v=n&&n.includes("CatalogContext="),w=n&&n.includes("Category="),n&&Roblox.CatalogValues&&Roblox.CatalogValues.CatalogContentsUrl&&v&&w){var b=Roblox.CatalogValues.CatalogContentsUrl+"?"+n,k=null,d=t,g=!0,nt=!1,tt=!1;Roblox.CatalogShared.LoadCatalogAjax(b,k,d,g,nt,tt)}else{e=!0;var b=i.data("library-get-url"),k=null,d=t,g=!1,nt=!0,tt=!0;Roblox.CatalogShared.LoadCatalogAjax(b,k,d,g,nt,tt)}History.Adapter.bind(window,"statechange",function(){y(History.getState().data)});$("#DevelopTabs").on("tabsactivate",function(){p($(this).find(".tab-active"))});t.on(Roblox.CatalogShared.CatalogLoadedViaAjaxEventName,null,null,Roblox.CatalogShared.handleCatalogLoadedViaAjaxEvent);$(".develop-experimental-label").click(function(){var n=$(".develop-experimental-label").data("learn-more-url");Roblox.Dialog.open({titleText:"Experimental Mode Games",bodyContent:"Experimental mode games are games made by new developers. These games may not be stable and unexpected things could happen here.<br/><a class='text-link' target='_blank' href='"+n+"'>Learn more from Wiki</a>",showAccept:!1,declineText:"OK",allowHtmlContentInBody:!0,xToCancel:!0})})})}();

;// modules/Pages/CatalogShared.js
typeof Roblox==typeof undefined&&(Roblox={}),Roblox.CatalogShared=Roblox.CatalogShared||{},Roblox.CatalogSharedConstructor=function(n){function u(){var t=$("#catalog");n.getElementById("CatalogNewScript")===null&&($(function(){var i,n;Roblox.require(["Pages.Catalog","Pages.CatalogShared","Widgets.HierarchicalDropdown"],function(n){var r=t.data("query-state"),u=t.data("total-pages"),f=t.data("save-filters-between-searches"),i;if(n.init(r,u,f),Roblox.Widgets.HierarchicalDropdown.init(),Roblox.CatalogValues.ContainerID){i=$("#"+Roblox.CatalogValues.ContainerID),i.off(Roblox.CatalogShared.CatalogLoadedViaAjaxEventName);i.on(Roblox.CatalogShared.CatalogLoadedViaAjaxEventName,null,null,Roblox.CatalogShared.handleCatalogLoadedViaAjaxEvent)}}),i=t.data("page-number"),$(".Paging_Input").val(i),n=t.data("catalog-context"),n!==null&&(Roblox.CatalogValues=Roblox.CatalogValues||{},Roblox.CatalogValues.CatalogContext=n)}),Roblox.LibraryAutocompleteParameters=Roblox.LibraryAutocompleteParameters||{autocompleteShouldShow:t.data("autocomplete-enabled"),autocompleteEndpoint:t.data("autocomplete-endpoint"),autocompleteLimit:t.data("autocomplete-limit")})}function f(n,t,f,e,o,s,h){if(n&&f&&f.length!==0){i+=1;var l=i,c=$("#catalog").data("search-id");s||typeof c==typeof undefined||(n=n+"&SearchId="+c),Roblox.AjaxPageLoadEvent&&Roblox.AjaxPageLoadEvent.SendEvent("legacyCatalog",n),f.find(".loading").length<1&&f.find(".right-content").append($('<div class="loading">')),f.find(".subcategories [hover='true']").hide(),f.css("cursor","progress"),$.ajax({method:"GET",params:t,url:n,crossDomain:!0,xhrFields:{withCredentials:!0}}).done(function(t){if(i==l){if(f.html(t),u(),f.css("cursor","default"),!e){var c=$.Event(r,{url:n,replaceCurrentState:o});f.trigger(c)}s!==!1&&Roblox.LibraryMetrics&&(Roblox.LibraryMetrics.logAutocompleteUsage(),Roblox.LibraryMetrics.sendMarketplaceLibrarySearchEvent(h,t,n))}}).fail(function(){if(f.find(".error-message").length<1){var n=$("<div>Library temporarily unavailable, please try again later.</div>").addClass("error-message");f.prepend(n)}f.find(".loading").remove()})}}function e(i){var r,u;!t&&i.clickTargetID&&(doNotUpdateHistory=!0,i.clickTargetID==="catalog"?(r=i.url?i.url.split("?")[1]:n.URL.split("?")[1],r&&Roblox.CatalogValues&&Roblox.CatalogValues.CatalogContentsUrl?(u=$("#"+Roblox.CatalogValues.ContainerID),Roblox.CatalogShared.LoadCatalogAjax(Roblox.CatalogValues.CatalogContentsUrl+"?"+r,null,u,!0)):window.location.href=i.url):$("#"+i.clickTargetID).click(),doNotUpdateHistory=!1)}function o(i){var u,r,o,s,f,e;Roblox.AdsHelper&&Roblox.AdsHelper.AdRefresher&&Roblox.AdsHelper.AdRefresher.refreshAds(),i.url&&(u=i.url.split("?")[1],u&&(r=n.URL.split("?")[0].toLowerCase(),r=r.indexOf("#")===-1?r:r.split("#")[0],r=r.replace("catalog/default.aspx","catalog/"),r.indexOf("browse.aspx")<0&&r.indexOf("/develop/library")<0&&(o=r.length,s=r.lastIndexOf("/")===o-1,r+=s?"browse.aspx":"/browse.aspx"),f=r+"?"+u,$("#LibraryTabLink").attr("data-query-params",u),e=r.indexOf("/develop/library")>=0?"/develop/library/?"+u:"/catalog/?"+u,GoogleAnalyticsEvents&&GoogleAnalyticsEvents.ViewVirtual(e),t=!0,i.replaceCurrentState?History.replaceState({clickTargetID:"catalog",url:f},n.title,f):History.pushState({clickTargetID:"catalog",url:f},n.title,f),t=!1))}var r="CatalogLoadedViaAjax",t=!1,i=0;return{LoadCatalogAjax:f,CatalogLoadedViaAjaxEventName:r,handleURLChange:e,handleCatalogLoadedViaAjaxEvent:o}},Roblox.CatalogShared=Roblox.CatalogSharedConstructor(document);

;// utilities/robloxAds.js
"use strict";var Roblox=Roblox||{};Roblox.AdsHelper=Roblox.AdsHelper||{},Roblox.AdsLibrary={},Roblox.AdsLibrary.adsIdList=["Skyscraper-Abp-Left","Skyscraper-Abp-Right","Leaderboard-Abp","GamePageAdDiv1","GamePageAdDiv2","GamePageAdDiv3","ProfilePageAdDiv1","ProfilePageAdDiv2"],Roblox.AdsLibrary.adsParameters={"Skyscraper-Abp-Left":{element:$("#Skyscraper-Abp-Left"),template:null,fitTwoAds:!0,fitOneAd:!1,isSkyscraper:!0},"Skyscraper-Abp-Right":{element:$("#Skyscraper-Abp-Right"),tempalte:null,fitTwoAds:!0,fitOneAd:!0,isSkyscraper:!0},"Leaderboard-Abp":{element:$("#Leaderboard-Abp"),tempalte:null,fitTwoAds:!0,fitOneAd:!0,isLeaderboard:!0},GamePageAdDiv1:{element:$("#GamePageAdDiv1"),template:null,isPageAd:!0},GamePageAdDiv2:{element:$("#GamePageAdDiv2"),template:null,isPageAd:!0},GamePageAdDiv3:{element:$("#GamePageAdDiv3"),template:null,isPageAd:!0},ProfilePageAdDiv1:{element:$("#ProfilePageAdDiv1"),template:null,isPageAd:!0},ProfilePageAdDiv2:{element:$("#ProfilePageAdDiv2"),template:null,isPageAd:!0}},Roblox.AdsHelper.AdRefresher=function(){function c(n){return!n||!$.trim($(n).html())}function h(n){t.push(n)}function s(){return googletag.pubadsReady}function r(n){var u,f,e,i;typeof n=="undefined"&&(n=v),u=!1;for(f in t){if(e="#"+t[f]+" [data-js-adtype]",i=$(e),typeof i=="undefined")return;if(i.attr("data-js-adtype")==="iframead")o(i);else if(i.attr("data-js-adtype")==="gptAd")if(s())u=!0;else if(n>0){setTimeout(function(){r(--n)},y);break}}u&&googletag.cmd.push(function(){googletag.pubads().refresh()})}function o(n){var i=n.attr("src"),r,u,t;typeof i=="string"&&(r=i.indexOf("?")<0?"?":"&",u=i+r+"nocache="+(new Date).getMilliseconds().toString(),typeof n[0]!="undefined")&&(t=n[0].contentDocument,t===undefined&&(t=n[0].contentWindow),t&&t.location.href!=="about:blank"&&t.location.replace(u))}function n(n,t,i){i.length&&c(i)&&(i.append(n),r())}function b(){for(var u=$(window).width(),f,r,t,i=0;i<Roblox.AdsLibrary.adsIdList.length;i++)r=Roblox.AdsLibrary.adsIdList[i],t=Roblox.AdsLibrary.adsParameters[r],t&&!t.template&&(f=t.element,t.template=f.html());for(i=0;i<Roblox.AdsLibrary.adsIdList.length;i++)(r=Roblox.AdsLibrary.adsIdList[i],t=Roblox.AdsLibrary.adsParameters[r],t)&&(t.isSkyscraper?u>=e&&t.fitTwoAds?n(t.template,r,t.element):u<e&&u>=l?t.fitOneAd?n(t.template,r,t.element):t.element.empty():t.element.empty():t.isLeaderboard?u<p?t.element.empty():n(t.template,r,t.element):t.isPageAd&&(u<w?t.element.empty():n(t.template,r,t.element)))}var t=[],i=20,u=970,f=160,p=728,y=100,v=16,e=$("[data-max-width-for-two-ads]").attr("data-max-width-for-two-ads")||u+f*2+48-i,l=$("[data-max-width-for-one-ads]").attr("data-max-width-for-one-ads")||u+f+24-i,a=1024,w=a-i;return{registerAd:h,refreshAds:r,adjustAdsFitScreen:b,getAds:n}}(),Roblox.AdsHelper.DynamicAdCreator=function(){function n(){var n=$(".dynamic-ad").filter(".unpopulated");n.each(function(n,t){var i=$(t),u=i.attr("data-ad-slot"),f=parseInt(i.attr("data-ad-width")),e=parseInt(i.attr("data-ad-height")),r=i.children(".ad-slot").attr("id");googletag.cmd.push(function(){var n=googletag.defineSlot(u,[f,e],r).addService(googletag.pubads());googletag.display(r),googletag.pubads().refresh([n])}),i.removeClass("unpopulated")})}return{populateNewAds:n}}(),$(function(){$(window).resize(function(){Roblox.AdsHelper.AdRefresher.adjustAdsFitScreen()})});

;// history.js/jquery.history.js
typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var s,l,h,a,v=n,c,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i)),typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,s=0;s<a;s+=1)c[s]=r(s,o)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,!f||typeof f=="function"||typeof f=="object"&&typeof f.length=="number")return r("",{"":i});throw new Error("JSON.stringify");}),typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}},typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var r=n.document,f=n.setTimeout||f,e=n.clearTimeout||e,u=n.setInterval||u,i=n.History=n.History||{};if(typeof i.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");i.initHtml4=function(){if(typeof i.initHtml4.initialized!="undefined")return!1;i.initHtml4.initialized=!0,i.enabled=!0,i.savedHashes=[],i.isLastHash=function(n){var r=i.getHashByIndex(),t;return t=n===r,t},i.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},i.saveHash=function(n){return i.isLastHash(n)?!1:(i.savedHashes.push(n),!0)},i.getHashByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedHashes[i.savedHashes.length-1]:n<0?i.savedHashes[i.savedHashes.length+n]:i.savedHashes[n],t},i.discardedHashes={},i.discardedStates={},i.discardState=function(n,t,r){var f=i.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:t},i.discardedStates[f]=u,!0},i.discardHash=function(n,t,r){var u={discardedHash:n,backState:r,forwardState:t};return i.discardedHashes[n]=u,!0},i.discardedState=function(n){var r=i.getHashByState(n),t;return t=i.discardedStates[r]||!1,t},i.discardedHash=function(n){return i.discardedHashes[n]||!1},i.recycleState=function(n){var t=i.getHashByState(n);return i.discardedState(n)&&delete i.discardedStates[t],!0},i.emulated.hashChange&&(i.hashChangeInit=function(){i.checkerFunction=null;var f="",s,t,e,o,h=Boolean(i.getHash());return i.isInternetExplorer()?(s="historyjs-iframe",t=r.createElement("iframe"),t.setAttribute("id",s),t.setAttribute("src","#"),t.style.display="none",r.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close(),e="",o=!1,i.checkerFunction=function(){if(o)return!1;o=!0;var u=i.getHash(),r=i.getHash(t.contentWindow.document);return u!==f?(f=u,r!==u&&(e=r=u,t.contentWindow.document.open(),t.contentWindow.document.close(),t.contentWindow.document.location.hash=i.escapeHash(u)),i.Adapter.trigger(n,"hashchange")):r!==e&&(e=r,h&&r===""?i.back():i.setHash(r,!1)),o=!1,!0}):i.checkerFunction=function(){var t=i.getHash()||"";return t!==f&&(f=t,i.Adapter.trigger(n,"hashchange")),!0},i.intervalList.push(u(i.checkerFunction,i.options.hashChangeInterval)),!0},i.Adapter.onDomLoad(i.hashChangeInit)),i.emulated.pushState&&(i.onHashChange=function(t){var e=t&&t.newURL||i.getLocationHref(),u=i.getHashByUrl(e),r=null,o=null,s=null,f;return i.isLastHash(u)?(i.busy(!1),!1):(i.doubleCheckComplete(),i.saveHash(u),u&&i.isTraditionalAnchor(u)?(i.Adapter.trigger(n,"anchorchange"),i.busy(!1),!1):(r=i.extractState(i.getFullUrl(u||i.getLocationHref()),!0),i.isLastSavedState(r)?(i.busy(!1),!1):(o=i.getHashByState(r),f=i.discardedState(r),f?(i.getHashByIndex(-2)===i.getHashByState(f.forwardState)?i.back(!1):i.forward(!1),!1):(i.pushState(r.data,r.title,encodeURI(r.url),!1),!0))))},i.Adapter.bind(n,"hashchange",i.onHashChange),i.pushState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),o=i.getHashByState(e),s=i.getState(!1),h=i.getHashByState(s),c=i.getHash(),l=i.expectedStateId==e.id;return i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),o===h?(i.busy(!1),!1):(i.saveState(e),l||i.Adapter.trigger(n,"statechange"),!i.isHashEqual(o,c)&&!i.isHashEqual(o,i.getShortUrl(i.getLocationHref()))&&i.setHash(o,!1),i.busy(!1),!0)},i.replaceState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),s=i.getHashByState(e),o=i.getState(!1),h=i.getHashByState(o),c=i.getStateByIndex(-2);return i.discardState(o,e,c),s===h?(i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),i.saveState(e),i.Adapter.trigger(n,"statechange"),i.busy(!1)):i.pushState(e.data,e.title,e.url,!1),!0}),i.emulated.pushState&&i.getHash()&&!i.emulated.hashChange&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},typeof i.init!="undefined"&&i.init()}(window),function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=n.sessionStorage||!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f.setItem("TEST","1"),f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)},i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.disableSuid=i.options.disableSuid||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.options.html4Mode=i.options.html4Mode||!1,i.options.delayInit=i.options.delayInit||!1,i.intervalList=[],i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=typeof e!="undefined"&&typeof e.log!="undefined"&&typeof e.log.apply!="undefined",t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent)),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+="/",n},i.getBaseHref=function(){var i=r.getElementsByTagName("base"),t=null,n="";return i.length===1&&(t=i[0],n=t.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var r=i.getState(!1,!1),t=(r||{}).url||i.getLocationHref(),n;return n=t.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"}),n},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var r=n,u=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(r=u==="/"?i.getRootUrl()+n.replace(/^\/+/,""):u==="#"?i.getPageUrl().replace(/#.*/,"")+n:u==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},i.getLocationHref=function(n){return n=n||r,n.URL===n.location.href?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{},i.store.urlToId=i.store.urlToId||{},i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=+new Date+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t,i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u),u},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r,f;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},f=u.stringify(r),f},i.getStateId=function(n){var t,r;return t=i.normalizeState(n),r=t.id,r},i.getHashByState=function(n){var t,r;return t=i.normalizeState(n),r=t.hash,r},i.extractId=function(n){var r,t,u,i;return i=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(i),u=t?t[1]||n:n,r=t?String(t[2]||""):"",r||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),!r&&t&&!i.isTraditionalAnchor(n)&&(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id,r},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n],t},i.getCurrentIndex=function(){var n=null;return n=i.savedStates.length<1?0:i.savedStates.length-1,n},i.getHash=function(n){var r=i.getLocationHref(n),t;return t=i.getHashByUrl(r),t},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=decodeURIComponent(t),t},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var u,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):r.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t),t},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else{if(!(n<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=n;--r)i.back(t)}return i},i.emulated.pushState){var p=function(){};i.pushState=i.pushState||p,i.replaceState=i.replaceState||p}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return i.doubleCheckComplete(),o=i.getHash(),o?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u)?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0))},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(w){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,r;try{n=u.parse(f.getItem("History.store"))||{}}catch(e){n={}}n.idToState=n.idToState||{},n.urlToId=n.urlToId||{},n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n,i.normalizeStore(),r=u.stringify(n);try{f.setItem("History.store",r)}catch(o){if(o.code!==DOMException.QUOTA_EXCEEDED_ERR)throw o;f.length&&(f.removeItem("History.store"),f.setItem("History.store",r))}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),i.emulated.pushState||(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash()&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})))},(!i.options||!i.options.delayInit)&&i.init()}(window);

;// widgets/tabs.js
$(function(){function i(n){var t=$(n),i=t.parent(),r=i.next().children().eq(t.index());$.each([t,r],function(n,t){t.addClass("tab-active").siblings().removeClass("tab-active")})}var t=$(".tab-container"),n=t.filter(".tab-history-hash"),f;t.children("div").on("click",function(){var t=$(this);i(this),t.parent().trigger("tabsactivate",{newTab:t})});if(n.length){function r(){return"#"+n.next().children(".tab-active").attr("id")}function u(t){var r=$(t).index();r!==-1&&i(n.children().eq(r))}window.location.hash?u(window.location.hash):f=r();n.on("tabsactivate",function(){history.pushState({},"",r())});$(window).on("popstate",function(){u(window.location.hash?window.location.hash:f)})}});

;// Events/AjaxPageLoadEvent.js
var Roblox=Roblox||{};Roblox.AjaxPageLoadEvent=function(){var n=function(n,t,i){if(Roblox.EventStream){var r={Url:t};i&&Object.assign(r,i),Roblox.EventStream.SendEventWithTarget("ajaxPageLoad",n,r,Roblox.EventStream.TargetTypes.WWW)}};return{SendEvent:n}}();

;// jquery.filter_input.js
(function(n){n.fn.extend({filter_input:function(t){function i(t){var i=t.charCode?t.charCode:t.keyCode?t.keyCode:0,r;return(i==8||i==9||i==13||i==35||i==36||i==37||i==39||i==46)&&n.browser.mozilla&&t.charCode==0&&t.keyCode==i?!0:(r=String.fromCharCode(i),u.test(r))?!0:!1}var r={regex:".*",live:!1},t=n.extend(r,t),u=new RegExp(t.regex);if(t.live)n(this).live("keypress",i);else return this.each(function(){var t=n(this);t.unbind("keypress").keypress(i)})}})})(jQuery);

;// DataPager.js
function DataPager(n,t,i,r,u,f,e,o){function b(){s<1&&(s=1),s>c&&(s=c),h.find(".disabled").removeClass("disabled"),a.Paging_PageNumbers_AreLinks?h.find(":contains('"+s+"')").addClass("disabled"):h.find(".CurrentPage").text(s),s==1&&(h.find('[pagingaction="First"]').addClass("disabled"),h.find('[pagingaction="Previous"]').addClass("disabled"),h.find('[pagingaction="Next"]').removeClass("disabled"),h.find('[pagingaction="Last"]').removeClass("disabled")),s==c&&(h.find('[pagingaction="First"]').removeClass("disabled"),h.find('[pagingaction="Previous"]').removeClass("disabled"),h.find('[pagingaction="Next"]').addClass("disabled"),h.find('[pagingaction="Last"]').addClass("disabled"))}function g(){if(elem=$(this),!elem.hasClass("disabled")&&elem.attr("pagingaction")!==undefined){s=parseInt(s,10);switch(elem.attr("pagingaction")){case"First":s=1;break;case"Previous":s-=1;break;case"Next":s+=1;break;case"Last":s=c;break;default:s=elem.html()}s<1&&(s=1),s>c&&(s=c),a.pagingClickFunction?a.pagingClickFunction(s):(l.html('<div class="loading"></div>'),v((s-1)*t+1,t))}}function p(){var i,r;if(n<=t){h.html("");return}if(i=$("<span></span>").append('<a class="disabled pager first" pagingaction="First">First</a><a class="disabled pager previous" pagingaction="Previous">Previous</a>'),a.Paging_PageNumbers_AreLinks){for(i.append('<a class="disabled pager page text" pagingaction="PageNum">1</a>'),r=t;r<n;r+=t)i.append('<a pagingaction="PageNum">'+(r/t+1)+"</a>");i.append('<a class="pager next" pagingaction="Next">Next</a><a class="pager last" pagingaction="Last">Last</a>')}else i=$("<span></span>").append('<a class="disabled pager first" pagingaction="First"></a><a class="disabled pager previous" pagingaction="Previous"></a>'),i.append('<span class="page text">Page <span class="CurrentPage">1</span> of <span class="TotalPages">'+c+"</span></span>"),i.append('<a class="pager next" pagingaction="Next"></a><a class="pager last" pagingaction="Last"></a>');i.children().each(function(){$(this).bind("click",g)}),h.html($('<div class="JSPager_Container"></div>').append(i))}var y;if(!(this instanceof DataPager))return new DataPager(n,containerDivID,u,f);var n=n,t=t,s=1,c=Math.ceil(n/t),l=$("#"+i),h=$("#"+r),v=u,w=f,d=e,a={Paging_PageNumbers_AreLinks:!0,FetchItemsOnLoad:!0,pagingClickFunction:!1};for(y in o)a[y]=o[y];var nt=function(n){l.html("");var t=n;l.append(t)},tt=function(i,r){r!=undefined&&(s=r),n=i,(c!=Math.ceil(n/t)||n==t||n==0)&&(c=Math.ceil(n/t),p()),b()},k=function(i){var r,u;if(l.html(""),r=i.data,r==null||r.length==0){l.append(w(r));return}for(u=0;u<r.length;u++)l.append(w(r[u])),d(r[u]);l.append('<div style="clear:both;"></div>'),n=i.totalItems,c!=Math.ceil(n/t)&&(c=Math.ceil(n/t),p()),b()};return function(){a.FetchItemsOnLoad&&v(1,t),n>t&&p()}(),{getItemsPaged:v,update:k,updateHtml:nt,callUpdatePager:tt,totalItems:n,itemContainerDiv:l,getStartIndex:function(){return(s-1)*t+1},getCurrentPage:function(){return s},isLastPage:function(){return c==s}}}

;// Build/BuildPage.js
typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.BuildPage=="undefined"&&(Roblox.BuildPage={}),$(function(){function i(){if(t){var n=$(t);n.removeClass("gear-open"),n.parent().css({"background-color":"#FFFFFF","border-color":"white","z-index":"0"}),t=null}return c.hide(),s.hide(),!1}function o(t,i){var f=i.find(n).data("fetchplaceurl"),h=i.find(n).data("universeid"),c=i.find(n).data("fetchuniverseplaces"),l=i.find(r).val(),a={creationContext:l,assetLinksEnabled:k,universeId:h,fetchUniversePlaces:c},e="?",u,o,s;return f.indexOf("?")!=-1&&(e="&"),u=f+e+$.param(a),t&&(o=i.find("table.item-table").length,s="&startRow="+o,u+=s),u}function e(n,t){var f=t.find(".build-loading-container").html(),u;t.find(".items-container").html(f);var e=t.find(r).val(),i=t.find(".content-area .content-title .aside-text"),s=t.find(".breadCrumb .breadCrumbContext"),h=t.find(r+" option:selected").text();t.find(".context-game-separator").hide(),t.find(".breadCrumbGame").hide(),e!="NonGameCreation"?(t.find(".show-active-places-only").hide(),t.find(".creation-context-breadcrumb").show(),s.text(h),i.hide(),n&&(t.find(".context-game-separator").show(),t.find(".breadCrumbGame").show())):(t.find(".creation-context-breadcrumb").hide(),i.show(),t.find(".show-active-places-only").show()),u=o(!1,t),t.find(".items-container").load(u)}function f(t,i){i.find(n).data("universeid",0),i.find(n).data("fetchuniverseplaces",!1),e(t,i)}function u(n,t,i){n.hide(),$.ajax({url:t,cache:!1,dataType:"html",success:function(t){n.remove();var u=i.find(".items-container"),r=$(t).hide();u.append(r),r.fadeIn(),r.find("a[data-retry-url]").loadRobloxThumbnails()},fail:function(){n.show()}})}function l(n,t){Roblox.GenericConfirmation.open({titleText:"Shut Down Servers",bodyContent:t.hasOwnProperty("placeId")?"Are you sure you want to shut down all servers for this place?":"Are you sure you want to shut down all servers in all places in this game?",onAccept:function(){$.ajax({type:"POST",url:n,data:t,error:function(){Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.errorOccurred,bodyContent:"An error occured while shutting down servers.",acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,allowHtmlContentInBody:!0,dismissable:!0})}})},acceptColor:Roblox.GenericConfirmation.blue,acceptText:"Yes",declineText:"No",allowHtmlContentInBody:!0})}function a(n,r){var u;if(t==this)return i();t&&i(),t=this,u=$(this),u.addClass("gear-open");var e=u.closest("table"),f=e.data("item-id"),o=e.data("item-moderation-approved");o=o==="True",r.find("a").each(function(){var n=$(this),i=n.hasClass("advertise-link"),r=n.data("href-template"),s,t;r&&(s=r.replace(/=0/g,"="+f).replace(/\/0\//g,"/"+f+"/").replace(/\/0$/,"/"+f),n.attr("href",s)),n.attr("data-place-id")&&n.attr("data-place-id",f),n.attr("data-item-id")&&n.attr("data-item-id",f),e.data("runnable")==="False"&&n.data("ad-activate-link")==="Run"?n.hide():e.data("runnable")==="True"&&n.data("ad-activate-link")==="Run"&&n.show(),u.data("is-sponsored-game")&&(n.data("parent-sponsored-game-element",u.parents(".sponsored-game")),n.hasClass("dropdown-item-run-sponsored-game")&&n.toggle(u.data("show-run")),n.hasClass("dropdown-item-stop-sponsored-game")&&n.toggle(u.data("show-stop"))),n.data("href-reference")&&n.attr("href",e.data(n.data("href-reference"))),n.hasClass("shutdown-all-servers-button")&&(e.data("type")=="universes"?n.attr("data-universe-id",f).removeAttr("data-place-id"):n.attr("data-place-id",f).removeAttr("data-universe-id")),t=e.data("rootplace-id"),n.data("require-root-place")&&!t?n.hide():n.data("require-root-place")&&t&&(n.show(),n.data("configure-place-template")&&n.attr("href",n.data("configure-place-template").replace(/\/\d+\//,"/"+t+"/"))),i&&!o?n.hide():i&&o&&n.show()}),$("#configure-localization-link").click(function(){Roblox&&Roblox.EventStream&&Roblox.EventStream.SendEventWithTarget("formInteraction","Create",{universeId:f},Roblox.EventStream.TargetTypes.WWW)});var s=r.parent().offset(),c=r.outerWidth(),h=u.offset();return r.css({top:h.top-s.top+21+u.outerHeight()+9+"px",left:h.left-s.left+15-c+u.outerWidth()+"px"}).show(),u.parent().css({"background-color":"#EFEFEF","border-color":"gray","z-index":999}),n.preventDefault(),!1}function v(n,t,r,u,f){i();var e={adid:n,bidAmount:t,confirmed:r,useGroupFunds:u},o="/user-sponsorship/processadpurchase";$.post(o,e,function(i){i.success?Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.purchaseComplete,bodyContent:Roblox.BuildPage.Resources.youHaveBid+f+t+"</span> .",acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,onAccept:function(){window.location.reload()},allowHtmlContentInBody:!0,dismissable:!0}):i.requireConfirmation?Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.confirmBid,bodyContent:i.error,acceptText:Roblox.BuildPage.Resources.placeBid,declineText:Roblox.BuildPage.Resources.cancel,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.gray,onAccept:function(){v(n,t,!0,u,f)},allowHtmlContentInBody:!0,dismissable:!0}):Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.errorOccurred,bodyContent:i.error,acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,allowHtmlContentInBody:!0,dismissable:!0})})}function b(n){i();var t={adid:n},r="/user-sponsorship/deletead";$.post(r,t,function(n){n.success?Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.adDeleted,bodyContent:Roblox.BuildPage.Resources.theAdWasDeleted,acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,onAccept:function(){window.location.reload()},allowHtmlContentInBody:!0,dismissable:!0}):Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.errorOccurred,bodyContent:n.error,acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,allowHtmlContentInBody:!0,dismissable:!0})})}function h(n){i();var t=n.find("tr.bid-now-row"),r=n.find("a[data-ad-status-toggle]").hasClass("runnable");return r&&t.show(),!1}var n=".creation-context-filters-and-sorts",r=".place-creationcontext-drop-down",w=$("#MyCreationsTab "+r),p=$("#GroupCreationsTab "+r),c=$("#MyCreationsTab #build-dropdown-menu"),s=$("#GroupCreationsTab #build-dropdown-menu"),t=null,k=$("#assetLinks").data("asset-links-enabled"),y;$("a[data-retry-url]").loadRobloxThumbnails(),w.change(function(){f(!0,$("#MyCreationsTab"))}),p.change(function(){f(!0,$("#GroupCreationsTab"))});$("#MyCreationsTab .items-container").on("click",".view-places-button",function(){var t=$("#MyCreationsTab"),i=$(this),r=i.data("universeid"),u=i.data("universename");return t.find(n).data("universeid",r),t.find(n).data("fetchuniverseplaces",!0),t.find(".breadCrumbGame").text(u),t.find(".context-game-separator").show(),t.find(".breadCrumbGame").show(),e(!0,t),!1});$("#GroupCreationsTab .items-container").on("click",".view-places-button",function(){var t=$("#GroupCreationsTab"),i=$(this),r=i.data("universeid"),u=i.data("universename");return t.find(n).data("universeid",r),t.find(n).data("fetchuniverseplaces",!0),t.find(".breadCrumbGame").text(u),t.find(".context-game-separator").show(),t.find(".breadCrumbGame").show(),e(!0,t),!1});$("#MyCreationsTab").on("click",".breadCrumbContext",function(){return f(!1,$("#MyCreationsTab")),!1});$("#GroupCreationsTab").on("click",".breadCrumbContext",function(){return f(!1,$("#GroupCreationsTab")),!1});$("#MyCreationsTab .items-container").on("click",".load-more-places",function(){var t=$(this),n=$("#MyCreationsTab"),i=o(!0,n);return u(t,i,n),!1});$("#GroupCreationsTab .items-container").on("click",".load-more-places",function(){var t=$(this),n=$("#GroupCreationsTab"),i=o(!0,n);return u(t,i,n),!1});$(".BuildPageContent").on("click","a.roblox-edit-button",function(){var n,t,i,r;$(".build-page").data("edit-opens-studio")!="False"||Roblox.Client.isIDE()?(n=$(this).closest("table"),t=n.data("rootplace-id")||n.data("item-id"),window.play_placeId=t,i=n.data("universeid")||n.data("item-id"),r=$("#PlaceLauncherStatusPanel").data("is-protocol-handler-launch-enabled")=="True",r?Roblox.GameLauncher.editGameInStudio(t,i,!0):editGameInStudio(t)):Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.editGame,bodyContent:Roblox.BuildPage.Resources.openIn+"<a target='_blank' href='https://developer.roblox.com/en-us/articles/Studio-Setup'>"+Roblox.BuildPage.Resources.robloxStudio+"</a>.",acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,imageUrl:"/images/Icons/img-alert.png",allowHtmlContentInBody:!0,dismissable:!0})});$("body").on("click","a.shutdown-all-servers-button[data-universe-id]",function(){return l("/universes/shutdown-all-games",{universeId:$(this).data("universe-id")}),!1});$("body").on("click","a.shutdown-all-servers-button[data-place-id]",function(){return l("/games/shutdown-all-instances",{placeId:$(this).data("place-id")}),!1});$(".BuildPageContent").on("mouseover","a.gear-button",function(){$(this).addClass("gear-hover")});$(".BuildPageContent").on("mouseout","a.gear-button",function(){$(this).removeClass("gear-hover")});$("#MyCreationsTab").on("click","a.gear-button",function(n){return a.apply(this,[n,c])});$("#GroupCreationsTab").on("click","a.gear-button",function(n){return a.apply(this,[n,s])});$(document).click(function(){i()}),$(window).resize(i),$("input[data-bid-now-amount]").filter_input({regex:"[0-9]"});$(".items-container").on("click","a.runnable[data-ad-status-toggle]",function(){var n=$(this).closest("table.item-table");return h(n),!1});$("a[data-ad-activate-link]").click(function(){var n=$(t).closest("table.item-table");return h(n),!1}),$("a[data-ad-remove-link]").click(function(){var n=$(t).closest("table.item-table"),i=n.data("item-id");return Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.confirmDelete,bodyContent:Roblox.BuildPage.Resources.areYouSureDelete,acceptText:Roblox.BuildPage.Resources.ok,declineText:Roblox.BuildPage.Resources.cancel,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.gray,onAccept:function(){b(i)},allowHtmlContentInBody:!1,dismissable:!0}),!1});$(".items-container").on("click","a.cancel-ad-buy",function(){var n=$(this).closest("table.item-table"),t=n.find("tr.bid-now-row"),i=n.find("input[data-bid-now-amount]");return i.val(""),t.hide(),!1});$(".items-container").on("click","a.process-ad-buy",function(){var t=$(this).closest("table.item-table"),e=t.find("input[data-bid-now-amount]"),o=$("#dataHolder"),r=o.data("minrobuxbid"),n=e.val(),s=t.data("item-id"),h=t.find("input[data-use-group-funds]").is(":checked"),i="<span class='icon-robux-16x16'></span><span>";if(n<r||isNaN(n))return Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.yourRejected,bodyContent:Roblox.BuildPage.Resources.bidRange2+i+r+"</span>.",acceptText:Roblox.BuildPage.Resources.ok,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.none,allowHtmlContentInBody:!0,dismissable:!0}),!1;var u=t.data("cost-per-impression"),c='<img class="tooltip-bottom"  src="'+Roblox.BuildPage.Resources.questionmarkImgUrl+'" alt="Help" title="'+Roblox.BuildPage.Resources.estimatorExplanation+'"/>',f="";return u!=""&&(f="<br />"+Roblox.BuildPage.Resources.estimatedImpressions+c+": "+Math.round(n/u)),Roblox.GenericConfirmation.open({titleText:Roblox.BuildPage.Resources.makeAdBid,bodyContent:Roblox.BuildPage.Resources.wouldYouLikeToBid+i+n+"</span> ?"+f,acceptText:Roblox.BuildPage.Resources.placeBid,declineText:Roblox.BuildPage.Resources.cancel,acceptColor:Roblox.GenericConfirmation.blue,declineColor:Roblox.GenericConfirmation.gray,onAccept:function(){v(s,n,!1,h,i)},onDecline:"",allowHtmlContentInBody:!0,dismissable:!0}),!1});$("#MyCreationsTab .items-container").on("click",".load-more-ads",function(){var n=$(this),t=$("#MyCreationsTab"),i=n.attr("data-next-start"),r="/build/ads?startRow="+i;return u(n,r,t),!1});$("#GroupCreationsTab .items-container").on("click",".load-more-ads",function(){var n=$(this),t=$("#GroupCreationsTab"),i=n.attr("data-next-start"),r=t.find(".BuildPageContent").data("groupid"),f="/build/ads?startRow="+i+"&groupId="+r;return u(n,f,t),!1});$("a.item-image.ad-image").click(function(){var t=$(this).closest("table.item-table"),i=t.data("item-id"),r="/user-sponsorship/getadimage?adId="+i;$.ajax({url:r,success:function(n){$("#AdPreviewContainer").html(n)},cache:!1}),$("span[data-retry-url]").loadRobloxThumbnails();var u=["30%","30%"],f=["10%","45%"],e=["30%","40%"],o=t.data("ad-type"),n=["10%","30%"];switch(o){case"Banner":n=u;break;case"Box":n=e;break;case"Skyscraper":n=f}return $("#AdPreviewModal").modal({overlayClose:!0,escClose:!0,opacity:80,overlayCss:{backgroundColor:"#000"},position:n}),!1}),y=window.location.search;$("#GroupCreationsTab .groups-dropdown-container").on("change","select",function(){var n=$(this).val(),t=$("#GroupCreationsTab .groups-dropdown-container").data("get-url");window.location=t+"/"+n+y})});

;// GenericModal.js
typeof Roblox.GenericModal=="undefined"&&(Roblox.GenericModal=function(){function s(u,f,e,s,h,c){var l,a;t.isOpen=!0,n=$.extend({},n,c),i=s,l=$("div.GenericModal").filter(":first"),l.find("div.Title").text(u),f===null?l.addClass("noImage"):(l.find("img.GenericModalImage").attr("src",f),l.removeClass("noImage")),l.find("div.Message").html(e),h&&(l.removeClass("smallModal"),l.addClass("largeModal")),a=l.find(o),a.attr("class","btn-large "+n.acceptColor),a.unbind(),a.bind("click",function(){r()}),l.modal(n)}function r(){t.isOpen=!1,$.modal.close(),typeof i=="function"&&i()}var f="btn-primary",u="btn-neutral",e="btn-negative",o=".ImageButton.btn-neutral.btn-large.roblox-ok",t={isOpen:!1},n={overlayClose:!0,escClose:!0,opacity:80,overlayCss:{backgroundColor:"#000"},acceptColor:u},i;return $(function(){$(document).on("click",".GenericModal .roblox-ok",function(){r()})}),{close:r,open:s,status:t,green:f,blue:u,gray:e}}()),Roblox.GenericModal.Resources={ErrorText:"Error",ErrorMessage:"Sorry, an error occurred."},$(document).keypress(function(n){n.which===13&&Roblox.GenericModal.status.isOpen&&Roblox.GenericModal.close()});

;// /js/Build/UniverseLoader.js
typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.BuildPage=="undefined"&&(Roblox.BuildPage={}),Roblox.BuildPage.UniverseLoader=function(){function n(n,i){i&&n.html("");var u=n.find(".load-more-universes").hide(),r=n.closest(".BuildPageContent"),f=r.find(".build-loading-container").show();$.ajax({type:"GET",url:"/build/universes",data:{startRow:n.find(">.item-table").length,activeOnly:r.find(t).is(":checked"),groupId:r.data("groupid")},cache:!1,dataType:"html",success:function(t){u.remove(),f.hide();var i=$(t).hide();n.append(i),i.fadeIn(),i.find("a[data-retry-url]").loadRobloxThumbnails()},fail:function(){u.show(),f.hide()}})}function i(){$("body").on("change",t,function(){n($(this).closest(".content-area").find(">.items-container"),!0)});$("body").on("click",".load-more-universes",function(){return n($(this).parent()),!1})}var t=".active-only-checkbox > input[type='checkbox']";return $(i),{init:i,loadUniverses:n}}();

;// Develop/OpenStudio.js
$(function(){play_placeId=0,$(".studio-launch").click(function(){Roblox&&Roblox.GameLauncher?Roblox.GameLauncher.openStudio():console.warn("Roblox or Roblox.GameLauncher was not defined. Failed to open Studio.")})});

;// Events/DownloadStudioButtonClickEvent.js
var Roblox=Roblox||{};Roblox.DownloadStudioButtonClickEvent=function(){var n=function(n,t){typeof GoogleAnalyticsEvents!="undefined"&&GoogleAnalyticsEvents&&GoogleAnalyticsEvents.FireEvent([n+t,"DownloadStudioButtonClick"]),Roblox.EventStream.SendEvent("downloadStudioButtonClick",n+t,{})},t=function(){if(Roblox.EventStream){var t="unknown",i=$("#rbx-body");i.length>0&&i.data("internal-page-name")&&(t=i.data("internal-page-name"));$(".studio-launch").on("click",function(){n(t,"")});$(".studio-launch-header").on("click",function(){n(t,"-header")});$(".studio-launch-image").on("click",function(){n(t,"-image")});$(".studio-launch-footer").on("click",function(){n(t,"-footer")})}};return{Init:t}}(),$(function(){Roblox.DownloadStudioButtonClickEvent.Init()});

;// Develop/PremiumLanding.js
var Roblox=Roblox||{};$(function(){function r(n){var i=window.location.href,r=n+"=";if(i.indexOf(r)>0){var u="[&|?]"+n+"=(\\w+)[&?]?",f=new RegExp(u,"g"),t=f.exec(i);if(t&&t.length>0)return t[1]}return""}if(Roblox.AjaxPageLoadEvent){var n="premium-payout",t=window.location.href,i=r("ctx");Roblox.AjaxPageLoadEvent.SendEvent(n,t,{from:i})}});

;// TosModalCheck.js
function showTosModal(n,t,i,r){Roblox.Dialog.open({titleText:n,bodyContent:t,acceptText:i,onAccept:function(){submitTosAgreement(r)},acceptColor:Roblox.Dialog.blue,fieldValidationRequired:!1,dismissable:!1,xToCancel:!1,declineColor:Roblox.Dialog.none,allowHtmlContentInBody:!0})}function submitTosAgreement(n){$.ajax({type:"POST",url:n,contentType:"application/json; charset=utf-8",success:function(){}})}$(function(){var n,t,i,r,u="/UserCheck/show-tos",f=$("#TosAgreementInfo").data("terms-check-needed");$.ajax({type:"GET",url:u,data:{isLicensingTermsCheckNeeded:f},contentType:"application/json; charset=utf-8",success:function(u){if(u.PartialViewName){var f=Roblox.Intl&&new Roblox.Intl,e='<a href="'+u.TermsOfServiceUrl+'" class="text-link" target="_blank">',s=' <a href="'+u.PrivacyUrl+'" class="text-link" target="_blank">',o='<a href="'+u.LegalChangesUrl+'" class="text-link" target="_blank">';u.PartialViewName==="CaptureTosAgreement_v2"?(n=f.f(u.LangResources["Heading.TosHaveChangedTitle"]),t=f.f(u.LangResources["Message.AgreeToTosAndPrivacyBody"],{tosLinkStart:e,tosLinkEnd:"</a>",privacyLinkStart:s,privacyLinkEnd:"</a>",legalChangesLinkStart:o,legalChangesLinkEnd:"</a>"}),i=f.f(u.LangResources["Label.IAgree"]),r="/UserCheck/update-tos"):u.PartialViewName==="CaptureTosAgreementWithExplicitLicenseClause"&&(n=f.f(u.LangResources["Heading.TosAgreementTitle"]),t=f.f(u.LangResources["Message.TosAgreementBody"],{tosLinkStart:e,tosLinkEnd:"</a>",legalChangesLinkStart:o,legalChangesLinkEnd:"</a>"}),i=f.f(u.LangResources["Label.IAgree"]),r="/UserCheck/update-tos-licensing"),showTosModal(n,t,i,r)}},error:function(){}})});

;// utilities/dialog.js
typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.Dialog=="undefined"&&(Roblox.Dialog=function(){function g(f){var k,c,v,w,o,b;n.isOpen=!0,k={titleText:"",bodyContent:"",footerText:"",footerMiddleAligned:!1,acceptText:Roblox.Lang.ControlsResources["Action.Yes"]||a.Yes,declineText:Roblox.Lang.ControlsResources["Action.No"]||a.No,acceptColor:h,declineColor:s,xToCancel:!1,onAccept:function(){return!1},onDecline:function(){return!1},onCancel:function(){return!1},imageUrl:null,showAccept:!0,showDecline:!0,allowHtmlContentInBody:!1,allowHtmlContentInFooter:!1,dismissable:!0,fieldValidationRequired:!1,onOpenCallback:function(){},onCloseCallback:t,cssClass:null,checkboxAgreementText:Roblox.Lang.ControlsResources["Action.Agree"]||a.Agree,checkboxAgreementRequired:!1},f=$.extend({},k,f),i.overlayClose=f.dismissable,i.escClose=f.dismissable,f.onCloseCallback&&(i.onClose=function(){f.onCloseCallback(),t()}),c=$(u),c.html(f.acceptText),c.attr("class",f.acceptColor),c.unbind(),c.bind("click",function(){return p(c)?!1:(f.fieldValidationRequired?nt(f.onAccept):l(f.onAccept),!1)}),v=$(e),v.html(f.declineText),v.attr("class",f.declineColor),v.unbind(),v.bind("click",function(){return p(v)?!1:(l(f.onDecline),!1)}),w=$(tt),w.unbind(),w.bind("change",function(){w.is(":checked")?y(c):r(c)}),o=$('[data-modal-type="confirmation"]'),o.find(".modal-title").text(f.titleText),f.imageUrl==null?o.addClass("noImage"):(o.find("img.modal-thumb").attr("src",f.imageUrl),o.removeClass("noImage")),n.extraClass&&(o.removeClass(n.extraClass),n.extraClass=!1),f.cssClass!=null&&(o.addClass(f.cssClass),n.extraClass=f.cssClass),f.allowHtmlContentInBody?o.find(".modal-message").html(f.bodyContent):o.find(".modal-message").text(f.bodyContent),f.checkboxAgreementRequired?(r(c),o.find(".modal-checkbox.checkbox > input").prop("checked",!1),o.find(".modal-checkbox.checkbox > label").text(f.checkboxAgreementText),o.find(".modal-checkbox.checkbox").show()):(o.find(".modal-checkbox.checkbox > input").prop("checked",!0),o.find(".modal-checkbox.checkbox").hide()),$.trim(f.footerText)==""?o.find(".modal-footer").hide():o.find(".modal-footer").show(),f.allowHtmlContentInFooter?o.find(".modal-footer").html(f.footerText):o.find(".modal-footer").text(f.footerText),f.footerMiddleAligned&&o.find(".modal-footer").addClass("modal-footer-center"),o.modal(i),b=$(d+" .modal-header .close"),b.unbind(),b.bind("click",function(){return l(f.onCancel),!1}),f.xToCancel||b.hide(),f.showAccept||c.hide(),f.showDecline||v.hide(),$("#rbx-body").addClass("modal-mask"),f.onOpenCallback()}function r(n){n.hasClass(s)?n.addClass(f):n.hasClass(v)?n.addClass(o):n.hasClass(h)&&n.addClass(c)}function p(n){return n.hasClass(c)||n.hasClass(f)||n.hasClass(o)?!0:!1}function rt(){var n=$(u),t=$(e);r(n),r(t)}function y(n){n.hasClass(f)?(n.removeClass(f),n.addClass(s)):n.hasClass(o)?(n.removeClass(o),n.addClass(v)):n.hasClass(c)&&(n.removeClass(c),n.addClass(h))}function w(){var n=$(u),t=$(e);y(n),y(t)}function k(){if(n.isOpen){var t=$(u);t.click()}}function b(){var n=$(e);n.click()}function t(t){n.isOpen=!1,typeof t!="undefined"?$.modal.close(t):$.modal.close(),$("#rbx-body").removeClass("modal-mask")}function l(n){t(),typeof n=="function"&&n()}function nt(n){if(typeof n=="function"){var i=n();if(i!=="undefined"&&i==!1)return!1}t()}function ut(n,t){var i=$(".modal-body");n?(i.find(".modal-btns").hide(),i.find(".modal-processing").show()):(i.find(".modal-btns").show(),i.find(".modal-processing").hide()),typeof t!="undefined"&&t!==""&&$.modal.close("."+t)}var d=".simplemodal-container",v="btn-primary-md",h="btn-secondary-md",s="btn-control-md",o="btn-primary-md disabled",c="btn-secondary-md disabled",f="btn-control-md disabled",it="btn-none",u=".modal-btns #confirm-btn",e=".modal-btns #decline-btn",tt="#modal-checkbox-input",n={isOpen:!1},i={overlayClose:!0,escClose:!0,opacity:80,zIndex:1040,overlayCss:{backgroundColor:"#000"},onClose:t,focus:!1},a={Yes:"Yes",No:"No",Agree:"Agree"};return{open:g,close:t,disableButtons:rt,enableButtons:w,clickYes:k,clickNo:b,status:n,toggleProcessing:ut,green:v,blue:h,white:s,none:it}}()),$(document).keypress(function(n){Roblox.Dialog.isOpen&&n.which===13&&Roblox.Dialog.clickYes()});

;// GenericConfirmation.js
typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.GenericConfirmation=="undefined"&&(Roblox.GenericConfirmation=function(){function w(){n.isOpen=!1,t()}function k(t){var a,e,o,s,l;n.isOpen=!0,a={titleText:"",bodyContent:"",footerText:"",acceptText:Roblox.Resources.GenericConfirmation.yes,declineText:Roblox.Resources.GenericConfirmation.No,acceptColor:u,declineColor:f,xToCancel:!1,onAccept:function(){return!1},onDecline:function(){return!1},onCancel:function(){return!1},imageUrl:null,allowHtmlContentInBody:!1,allowHtmlContentInFooter:!1,dismissable:!0,fieldValidationRequired:!1,onOpenCallback:function(){}},t=$.extend({},a,t),c.overlayClose=t.dismissable,c.escClose=t.dismissable,e=$(i),e.html(t.acceptText),e.attr("class","btn-large "+t.acceptColor),e.unbind(),e.bind("click",function(){return v(e)?!1:(t.fieldValidationRequired?nt(t.onAccept):h(t.onAccept),!1)}),o=$(r),o.html(t.declineText),o.attr("class","btn-large "+t.declineColor),o.unbind(),o.bind("click",function(){return v(o)?!1:(h(t.onDecline),!1)}),$('[data-modal-handle="confirmation"] div.Title').text(t.titleText),s=$("[data-modal-handle='confirmation']"),t.imageUrl==null?s.addClass("noImage"):(s.find("img.GenericModalImage").attr("src",t.imageUrl),s.removeClass("noImage")),t.allowHtmlContentInBody?$("[data-modal-handle='confirmation'] div.Message").html(t.bodyContent):$("[data-modal-handle='confirmation'] div.Message").text(t.bodyContent),$.trim(t.footerText)==""?$('[data-modal-handle="confirmation"] div.ConfirmationModalFooter').hide():$('[data-modal-handle="confirmation"] div.ConfirmationModalFooter').show(),t.allowHtmlContentInFooter?$('[data-modal-handle="confirmation"] div.ConfirmationModalFooter').html(t.footerText):$('[data-modal-handle="confirmation"] div.ConfirmationModalFooter').text(t.footerText),$("[data-modal-handle='confirmation']").modal(c),l=$("a.genericmodal-close"),l.unbind(),l.bind("click",function(){return h(t.onCancel),!1}),t.xToCancel||l.hide(),t.onOpenCallback()}function a(n){n.hasClass(f)?n.addClass(s):n.hasClass(l)?n.addClass(e):n.hasClass(u)&&n.addClass(o)}function v(n){return n.hasClass(o)||n.hasClass(s)||n.hasClass(e)?!0:!1}function b(){var n=$(i),t=$(r);a(n),a(t)}function g(){var u=$(i),t=$(r),n=o+" "+s+" "+e;u.removeClass(n),t.removeClass(n)}function p(){if(n.isOpen){var t=$(i);t.click()}}function y(){var n=$(r);n.click()}function t(t){n.isOpen=!1,typeof t!="undefined"?$.modal.close(t):$.modal.close()}function h(n){t(),typeof n=="function"&&n()}function nt(n){if(typeof n=="function"){var i=n();if(i!=="undefined"&&i==!1)return!1}t()}var l="btn-primary",u="btn-neutral",f="btn-negative",e="btn-disabled-primary",o="btn-disabled-neutral",s="btn-disabled-negative",d="btn-none",i="#roblox-confirm-btn",r="#roblox-decline-btn",n={isOpen:!1},c={overlayClose:!0,escClose:!0,opacity:80,overlayCss:{backgroundColor:"#000"},onClose:w};return{open:k,close:t,disableButtons:b,enableButtons:g,clickYes:p,clickNo:y,status:n,green:l,blue:u,gray:f,none:d}}()),$(document).keypress(function(n){Roblox.GenericConfirmation.status.isOpen&&n.which===13&&Roblox.GenericConfirmation.clickYes()});

;// common/deviceMeta.js
var Roblox=Roblox||{};Roblox.DeviceMeta=function(){var t=document.querySelector('meta[name="device-meta"]');if(t===null){console.debug("Error loading device information from meta tag - please check if meta tag is present");return}var n=t.dataset||{},i={android:"android",ios:"ios",xbox:"xbox",uwp:"uwp",amazon:"amazon",win32:"win32",universalapp:"universalApp",unknown:"unknown"},r={computer:"computer",tablet:"tablet",phone:"phone",console:"console"};return function(){return{deviceType:r[n.deviceType]||"",appType:i[n.appType]||"",isInApp:n.isInApp==="true",isDesktop:n.isDesktop==="true",isPhone:n.isPhone==="true",isTablet:n.isTablet==="true",isConsole:n.isConsole==="true",isAndroidApp:n.isAndroidApp==="true",isIosApp:n.isIosApp==="true",isUWPApp:n.isUwpApp==="true",isXboxApp:n.isXboxApp==="true",isAmazonApp:n.isAmazonApp==="true",isWin32App:n.isWin32App==="true",isStudio:n.isStudio==="true",isIosDevice:n.isIosDevice==="true",isAndroidDevice:n.isAndroidDevice==="true",isUniversalApp:n.isUniversalApp==="true"}}}();

;// AbuseReport/AbuseReportDispatcher.js
var Roblox=Roblox||{};Roblox.AbuseReportDispatcher=function(){var i=!1,n=function(n,t){n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},r=function(t){var i,o;if(typeof t!="string")return!1;t=t.toLowerCase();var s=t.split("?"),f=s[0],r,u=Roblox.AbuseReportPVMeta,h=Roblox.DeviceMeta();if(u.inApp=h.isInApp,f&&typeof f=="string"&&(r=f.split("abusereport/")[1]),r&&(i={actionName:r,id:n("id",t),redirectUrl:n("redirecturl",t)},n("conversationid",t)&&(i.conversationId=n("conversationid",t)),n("partyguid",t)&&(i.partyGuid=n("partyguid",t)),i.id&&i.redirectUrl)){var c=$.param(i),e="abusereport/embedded/"+r+"?"+c,l=Roblox.Endpoints.getAbsoluteUrl("/"+e);u.inApp?u.inAppEnabled?(o={urlPath:e,feature:"Abuse Report"},console.debug("Calling navigateToFeature for Hybrid Overlay"),Roblox.Hybrid.Navigation.navigateToFeature(o,function(n){console.debug("navigateToFeature ---- status:"+n)})):window.location.href=t:window.location.href=u.phoneEnabled?l:t}},t=function(n){n.preventDefault();var t=$(this).attr("href");t&&r(t)},u=function(){if(!i){$(".abuse-report-modal").click(t);$(".messages-container").on("click",".abuse-report-modal",t);$("#AjaxCommentsContainer").on("click",".abuse-report-modal",t);$("#item-context-menu").on("click",".abuse-report-modal",t);$(".GroupWallPane").on("click",".abuse-report-modal",t);$(".group-details-container").on("click",".abuse-report-modal",t);i=!0}};return{triggerUrlAction:r,initialize:u}}(),$(document).ready(function(){Roblox.AbuseReportDispatcher.initialize()});

;//Bundle detector
Roblox && Roblox.BundleDetector && Roblox.BundleDetector.bundleDetected('page');