var __extends=this&&this.__extends||function(){var n=function(t,i){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]};return n(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();System.register(["./p-a4f1fe2b.system.js","./p-df0014ec.system.js","./p-379464d8.system.js"],(function(n){"use strict";var t,i,e,r;return{setters:[function(n){t=n.L;i=n.a},function(n){e=n.b},function(n){r=n.h}],execute:function(){n("L",f);var s=function(n){__extends(t,n);function t(){var t=n.apply(this,arguments)||this;t.debouncedNotify=r((function(){return t.notify()}),10);return t}t.prototype.connect=function(t){var i=this;var r;n.prototype.connect.call(this,t);if(typeof ResizeObserver==="undefined"){return}if(this.resizeObserver!==undefined){(r=this.resizeObserver)===null||r===void 0?void 0:r.disconnect();this.resizeObserver=undefined}this.resizeObserver=new ResizeObserver((function(n){if(e.hasWindow){window.requestAnimationFrame((function(){if(!Array.isArray(n)||!n.length){return}i.debouncedNotify()}))}}));this.resizeObserver.observe(t)};t.prototype.disconnect=function(){var t;n.prototype.disconnect.call(this);(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.resizeObserver=undefined};return t}(t);var u=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n,t){n.resizeListener({})}))||this;t.listener=new s;return t}t.prototype.attach=function(t){var i=this;n.prototype.attach.call(this,t);this.listener.connect(t.el);this.listener.add((function(t){return n.prototype.notify.call(i,t)}))};t.prototype.detach=function(){n.prototype.detach.call(this);this.listener.disconnect()};return t}(i);function f(){return function(n,t,i){var e=n.connectedCallback,r=n.disconnectedCallback;n.connectedCallback=function(){if(!this._balResizeSubject){this._balResizeSubject=new u;this._balResizeSubject.attach(this)}return e&&e.call(this)};n.disconnectedCallback=function(){if(this._balResizeSubject){this._balResizeSubject.detach();this._balResizeSubject=undefined}return r&&r.call(this)}}}}}}));