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 r=window.JSON;var i=e();var o={get:function(t){var n=i.getItem(t);if(/^\{.*\}$/.test(n)){n=r.parse(n)}return n},set:function(t,n){if(typeof n===typeof{}){n=r.stringify(n)}return i.setItem(t,n)},remove:function(t){return i.removeItem(t)}};var u=function(){return Object.assign((function(t,n){return o.set(t,n)}),o)};var f=t("S",u());var c="ui.theme.mode";var d={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(f.get(c)){this.switch(f.get(c))}else{this.autodetectTheme()}this.setupSizes(window.innerWidth,window.innerHeight);window.addEventListener("resize",(function(){n.setupSizes(window.innerWidth,window.innerHeight)}))}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)};t.prototype.getSizeByWidth=function(t){if(t>=d.xl){return"xl"}if(t>=d.lg){return"lg"}if(t>=d.md){return"md"}if(t>=d.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");f.set(c,t)}if(t=="light"&&document){this.mode=t;document.querySelector("body").classList.remove("is-dark-mode");f.set(c,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)},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){return(n||document).querySelector('[ref="'.concat(t,'"]'))}))}}}));