System.register([],(function(t){"use strict";return{execute:function(){var n={_data:{},getItem:function(t){if(Object.prototype.hasOwnProperty.call(n._data,t)){return n._data[t]}return null},setItem:function(t,e){n._data[t]=e},removeItem:function(t){if(Object.prototype.hasOwnProperty.call(n._data,t)){delete n._data[t]}}};var e=function(){try{return window.localStorage}catch(t){return n}};var i=window.JSON;var r=e();var o={get:function(t){var n=r.getItem(t);if(/^\{.*\}$/.test(n)){n=i.parse(n)}return n},set:function(t,n){if(typeof n===typeof{}){n=i.stringify(n)}return r.setItem(t,n)},remove:function(t){return r.removeItem(t)}};var u=function(){return Object.assign((function(t,n){return o.set(t,n)}),o)};var c=t("S",u());var d="ui.theme.mode";var f={sm:576,md:768,lg:992,xl:1200};var a=function(){function t(t){if(t===void 0){t="light"}var n=this;this.mode=t;this.width=0;this.height=0;this.size="xs";if(c.get(d)){this.switch(c.get(d))}else{this.autodetectTheme()}this.setupSizes(document.documentElement.clientWidth,document.documentElement.clientHeight);this.isMobile()&&document.querySelector("body").classList.add("is-mobile");window.addEventListener("resize",(function(){n.setupSizes(document.documentElement.clientWidth,document.documentElement.clientHeight)}))}t.prototype.isMobile=function(){var t=[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i];var n=t.some((function(t){return t.exec(navigator.userAgent)}));var e=Math.min(document.documentElement.clientWidth,document.documentElement.clientHeight)<=f.sm;return n||e};t.prototype.toggle=function(){this.switch(this.mode==="dark"?"light":"dark")};t.prototype.validateModals=function(){if(typeof document!=="undefined"){setTimeout((function(){var t=Boolean(document.querySelector("x-overlay-container x-modal.modal-show"));if(t){document.querySelector("body").classList.add("modal-open")}else{document.querySelector("body").classList.remove("modal-open")}}),100)}};t.prototype.is=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}if(Array.isArray(t)){return t.includes(this.size)}return false};t.prototype.getTheme=function(){return this.mode};t.prototype.autodetectTheme=function(){this.switch(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")};t.prototype.setupSizes=function(t,n){this.width=t;this.height=n;this.size=this.getSizeByWidth(t);if(this.isMobile()){document.querySelector("body").classList.add("is-mobile")}else{document.querySelector("body").classList.remove("is-mobile")}};t.prototype.getSizeByWidth=function(t){if(t>=f.xl){return"xl"}if(t>=f.lg){return"lg"}if(t>=f.md){return"md"}if(t>=f.sm){return"sm"}return"xs"};t.prototype.switch=function(t){if(t=="dark"&&document){this.mode=t;document.querySelector("body").classList.add("is-dark-mode");c.set(d,t)}if(t=="light"&&document){this.mode=t;document.querySelector("body").classList.remove("is-dark-mode");c.set(d,t)}};t.create=function(){var n=new t;return Object.assign((function(t){return n.switch(t)}),{toggle:function(){return n.toggle()},validateModals:function(){return n.validateModals()},is:function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}return n.is.apply(n,t)},isMobile:function(){return n.isMobile()},getTheme:function(){return n.getTheme()},autodetectTheme:function(){return n.autodetectTheme()},size:n.size})};return t}();var s=t("T",a.create());var m=t("Q",(function(t,n){var e;return(e=(n||document).querySelector('[ref="'.concat(t,'"]')))!==null&&e!==void 0?e:(n||document).querySelector(t)}))}}}));