!function(){this.IQUtils=function(t){},this.IQUtils.saveSessionStorage=function(t,e){window.sessionStorage.setItem(t,e)},this.IQUtils.getSessionStorage=function(t){return window.sessionStorage.getItem(t)},this.IQUtils.removeSessionStorage=function(t){window.sessionStorage.removeItem(t)},this.IQUtils.saveLocalStorage=function(t,e){window.localStorage.setItem(t,e)},this.IQUtils.getLocalStorage=function(t){return window.localStorage.getItem(t)},this.IQUtils.removeLocalStorage=function(t){window.localStorage.removeItem(t)},this.IQUtils.getCookie=function(t){for(var e=t+"=",o=document.cookie.split(";"),i=0;inew Event(t,e),this.IQUtils.mergeDeep=(t,...e)=>{if(!e.length)return t;const o=e.shift();if(_.isObject(t)&&_.isObject(o))for(const e in o)_.isObject(o[e])?(t[e]||Object.assign(t,{[e]:{}}),IQUtils.mergeDeep(t[e],o[e])):Object.assign(t,{[e]:o[e]});return IQUtils.mergeDeep(t,...e)},this.IQUtils.getRootVars=(t,e=document.body)=>{let o=e;return _.isString(o)&&(o=IQUtils.getElems(elems)),getComputedStyle(e).getPropertyValue(t).trim()||null},this.IQUtils.setRootVariables=t=>{const e=document.documentElement,o=t;_.forEach(o,(function(t,o){e.style.setProperty(o,t)}))},this.IQUtils.removeRootVariables=t=>{const e=document.documentElement,o=t;_.forEach(o,(function(t,o){e.style.removeProperty(o)}))},this.IQUtils.colorMix=(t,e,o)=>{function i(t){return parseInt(t,16)}o=void 0!==o?o:50;for(var s="#",n=0;n<=5;n+=2){for(var r=i(t.substr(n,2)),l=i(e.substr(n,2)),a=Math.floor(l+o/100*(r-l)).toString(16);a.length<2;)a="0"+a;s+=a}return s},this.IQUtils.tintColor=(t,e)=>{e=void 0!==e?e:50;var o=(t=t).substr(1);return IQUtils.colorMix("FFFFFF",o,e)},this.IQUtils.shadeColor=(t,e)=>{e=void 0!==e?e:50;var o=(t=t).substr(1);return IQUtils.colorMix("000000",o,e)},this.IQUtils.hexToRgb=t=>{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return`${parseInt(e[1],16)}, ${parseInt(e[2],16)}, ${parseInt(e[3],16)}`},this.IQUtils.getColorShadeTint=(t,e,o)=>{let i={};return o?(i[`${t}-shade-80`]=IQUtils.tintColor(e,80),i[`${t}-shade-60`]=IQUtils.tintColor(e,60),i[`${t}-shade-40`]=IQUtils.tintColor(e,40),i[`${t}-shade-20`]=IQUtils.tintColor(e,20),i[`${t}-shade-10`]=IQUtils.tintColor(e,10),i[`${t}-tint-10`]=IQUtils.shadeColor(e,10),i[`${t}-tint-20`]=IQUtils.shadeColor(e,20),i[`${t}-tint-40`]=IQUtils.shadeColor(e,40),i[`${t}-tint-60`]=IQUtils.shadeColor(e,60),i[`${t}-tint-80`]=IQUtils.shadeColor(e,80),i[`${t}-tint-90`]=IQUtils.shadeColor(e,90),i[`${t}-rgb`]=IQUtils.hexToRgb(e),i[t]=e):(i[`${t}-shade-80`]=IQUtils.shadeColor(e,80),i[`${t}-shade-60`]=IQUtils.shadeColor(e,60),i[`${t}-shade-40`]=IQUtils.shadeColor(e,40),i[`${t}-shade-20`]=IQUtils.shadeColor(e,20),i[`${t}-shade-10`]=IQUtils.shadeColor(e,10),i[`${t}-tint-10`]=IQUtils.tintColor(e,10),i[`${t}-tint-20`]=IQUtils.tintColor(e,20),i[`${t}-tint-40`]=IQUtils.tintColor(e,40),i[`${t}-tint-60`]=IQUtils.tintColor(e,60),i[`${t}-tint-80`]=IQUtils.tintColor(e,80),i[`${t}-tint-90`]=IQUtils.tintColor(e,90),i[`${t}-rgb`]=IQUtils.hexToRgb(e),i[t]=e),i},this.IQUtils.setFontFamily=(t,e)=>{const o=document.querySelector("head"),i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute(`data-font-${e}`,"google"),i.setAttribute("href",`https://fonts.googleapis.com/css?family=${t}:300;400;500;700&display=swap`),o.appendChild(i);let s=getComputedStyle(document.body).getPropertyValue("--prefix")||"bs-";s&&(s=s.trim()),null!==e&&document.documentElement.style.setProperty(`--${s}${e}-font-family`,t)},this.IQUtils.debounce=(t,e,o)=>{let i;return function(){const s=this,n=arguments,r=o&&!i;clearTimeout(i),i=setTimeout((function(){i=null,o||t.apply(s,n)}),e),r&&t.apply(s,n)}},this.IQUtils.getVariableColor=()=>{let t=getComputedStyle(document.body).getPropertyValue("--prefix")||"bs-";t&&(t=t.trim());const e=getComputedStyle(document.body).getPropertyValue(`--${t}primary`),o=getComputedStyle(document.body).getPropertyValue(`--${t}info`),i=getComputedStyle(document.body).getPropertyValue(`--${t}primary-tint-20`),s=getComputedStyle(document.body).getPropertyValue(`--${t}warning`),n=getComputedStyle(document.body).getPropertyValue(`--${t}secondary`),r=getComputedStyle(document.body).getPropertyValue(`--${t}secondary-tint-20`);return{primary:e.trim(),info:o.trim(),warning:s.trim(),primary_light:i.trim(),secondary:n.trim(),secondary_light:r.trim()}},this.IQUtils}();