!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("mobx"));else if("function"==typeof define&&define.amd)define(["mobx"],t);else{var o="object"==typeof exports?t(require("mobx")):t(e.mobx);for(var a in o)("object"==typeof exports?exports:e)[a]=o[a]}}(self,e=>(()=>{"use strict";var t={5314(t){t.exports=e}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};a.r(r),a.d(r,{ThemeManager:()=>i,registerThemeManagerGlobally:()=>d,themeManager:()=>s});var n=a(5314);class i{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(e){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,n.makeObservable)(this,{isDarkMode:n.observable,themeName:n.observable,backgroundMode:n.observable,isVisualRebrandEnabled:n.observable,isMomentumAvatarEnabled:n.observable,isMomentumV2Enabled:n.computed,setDarkMode:n.action,setThemeName:n.action,setBackgroundMode:n.action,setVisualRebrandEnabled:n.action,setMomentumAvatar:n.action,update:n.action}),e&&this.update(e)}update(e){void 0!==e.isDarkMode&&(this.isDarkMode=e.isDarkMode),void 0!==e.themeName&&(this.themeName=e.themeName),void 0!==e.backgroundMode&&(this.backgroundMode=e.backgroundMode),void 0!==e.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=e.isVisualRebrandEnabled),void 0!==e.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=e.isMomentumAvatarEnabled)}setDarkMode(e){this.isDarkMode=e}setThemeName(e){this.themeName=e}setBackgroundMode(e){this.backgroundMode=e}setVisualRebrandEnabled(e){this.isVisualRebrandEnabled=e}setMomentumAvatar(e){this.isMomentumAvatarEnabled=e}}const s=new i;function d(e="MomentumUIThemeManager",t=s){"undefined"!=typeof globalThis&&(globalThis[e]=t),"undefined"!=typeof window&&(window[e]=t),void 0!==a.g&&(a.g[e]=t)}return r})());