!function(){"use strict";var n="PresenceBulkNotifications",t={presenceChanged:"PresenceChanged"},s=Roblox,e=HeaderScripts,i=CoreUtilities,c={initializeRealTimeSubscriptions:function(){var e,i;s.RealTime&&(e=s.RealTime.Factory.GetClient(),i=t,e.Subscribe(n,function(e){var t=[];e.forEach(function(e){var n=e.UserId;e.Type===i.presenceChanged&&t.indexOf(n)<0&&t.push(n)}),t.length&&c.getPresences(t)}))},getPresences:function(e){var n={url:"".concat(s.EnvironmentUrls.presenceApi,"/v1/presence/users"),withCredentials:!0},e={userIds:e};i.httpService.post(n,e).then(function(e){null!=e&&e.data&&document.dispatchEvent(new CustomEvent("Roblox.Presence.Update",{detail:e.data.userPresences}))}).catch(function(e){console.debug(e)})}};null!==e.authenticatedUser&&void 0!==e.authenticatedUser&&e.authenticatedUser.isAuthenticated&&document.addEventListener("DOMContentLoaded",function(){c.initializeRealTimeSubscriptions()}),window.Roblox.Presence={PresenceTypes:{Offline:0,Online:1,InGame:2,InStudio:3}}}();
//# sourceMappingURL=https://js.rbxcdn.com/f9e253c39c4db20aef1a-presenceStatus.js.map

/* Bundle detector */
window.Roblox && window.Roblox.BundleDetector && window.Roblox.BundleDetector.bundleDetected("PresenceStatus");