var __awaiter=this&&this.__awaiter||function(t,n,i,e){function r(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,o){function a(t){try{s(e.next(t))}catch(t){o(t)}}function u(t){try{s(e["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):r(t.value).then(a,u)}s((e=e.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(n){return s([t,n])}}function s(u){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(i=0)),i)try{if(e=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;r=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1];o=u;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(u);break}if(o[2])i.ops.pop();i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t];r=0}finally{e=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-D7_eHNTI.system.js","./p-DdX8FaaK.system.js","./p-D-yL3ygS.system.js","./p-D1opIX9W.system.js","./p-4Y53iwfN.system.js","./p-BM_oHMik.system.js"],(function(t){"use strict";var n,i,e,r,o,a,u,s,c,f,p,h,l,y,d;return{setters:[function(t){n=t.r;i=t.c;e=t.h;r=t.H;o=t.g},function(t){a=t._;u=t.a},function(t){s=t.b},function(t){c=t.b},function(t){f=t.s},function(t){p=t.k;h=t.r;l=t.l},function(t){y=t.L},function(t){d=t.b}],execute:function(){var b=":root{--bal-app-height:100%}.bal-app{position:relative}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";var v=t("bal_app",function(){function t(t){var e=this;n(this,t);this.balAppReady=i(this,"balAppReady");this.debouncedNotify=p((function(){return e.notifyResize()}),100);this.animated=true;this.ready=false;this.notifyResize=function(){return __awaiter(e,void 0,void 0,(function(){var t;return __generator(this,(function(n){if(s.hasDocument&&s.hasWindow){t=document.documentElement;t.style.setProperty("--bal-app-height","".concat(window.innerHeight,"px"))}return[2]}))}))}}t.prototype.createLogger=function(t){this.log=t};t.prototype.connectedCallback=function(){if(this.animated===false){d(this.animated)}if(s.hasWindow){window.addEventListener("resize",this.debouncedNotify);this.debouncedNotify()}};t.prototype.componentDidLoad=function(){var t=this;h((function(){t.ready=true;f()}));l((function(){if(s.hasDocument&&s.hasWindow){var n=document.documentElement;n.classList.add("lcp-ready");t.balAppReady.emit()}}))};t.prototype.disconnectedCallback=function(){if(s.hasWindow){window.removeEventListener("resize",this.debouncedNotify)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){return e(r,{key:"e6229236201fea92c4ccb1812f2f280a06130889",class:{"bal-app":true,"bal-app--safari":s.isSafari,"bal-app--touch":c.hasTouchScreen}},e("slot",{key:"7712c7609c709dbe754eaf5700fd43ca3992a39f"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());a([y("bal-app"),u("design:type",Function),u("design:paramtypes",[Function]),u("design:returntype",void 0)],v.prototype,"createLogger",null);v.style=b}}}));