var themeManager=function(){"use strict";var t=new CSInterface;function n(e){var t=e.panelBackgroundColor.color.red,n=128<t;switch(t){case 240:document.getElementById("theme").href="css/topcoat-desktop-lightlight.min.css";break;case 184:document.getElementById("theme").href="css/topcoat-desktop-light.min.css";break;case 50:document.getElementById("theme").href="css/topcoat-desktop-darkdark.min.css";break;default:document.getElementById("theme").href="css/topcoat-desktop-dark.min.css"}!function(e,t,n){var o=document.getElementById(e);o&&(o=o.sheet).insertRule(t+" { "+n+" }",o.cssRules.length)}("hostStyle","body","color:#"+(n?"333":"DDD")+"!important")}function e(e){n(t.getHostEnvironment().appSkinInfo)}return{init:function(){n(t.getHostEnvironment().appSkinInfo),t.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,e)}}}();