import{c as e,M as t,V as s}from"./p-dcc98162.js";import{g as i}from"./p-49a2e141.js";import{t as n}from"./p-b75ee3ba.js";var r=function(e,t,s,i){var n,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(o=(r<3?n(o):r>3?n(t,s,o):n(t,s))||o);return r>3&&o&&Object.defineProperty(t,s,o),o};class o extends s{constructor(e){super(),this.observerEntry=e}reconnectResizeObserver(){null===this.resizeObserver&&this.createResizeObserver()}disconnectResizeObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null}connectResizeObserver(){this.createResizeObserver()}createResizeObserver(){var e;const t=this.observerEntry;null===(e=this.resizeObserver)||void 0===e||e.disconnect();const s=window.VegaResizeObserver||window.ResizeObserver;s&&(this.resizeObserver=new s(((e,s)=>{if(!t||"function"!=typeof t.shouldTrigger||t.shouldTrigger())if(t&&"function"==typeof t.callback){const i=()=>{t.callback(e,s)};t.isDeferred?setTimeout(i):i()}else this.currentBreakpoint=i()}))),this.observerResizeObserver()}observerResizeObserver(){var e;if(this.resizeObserver&&n()){const t=this.resizeObserver;let s=null;(null===(e=this.observerEntry)||void 0===e?void 0:e.target)&&(s=this.observerEntry.target()),Array.isArray(s)?s.forEach((e=>{t.observe(e)})):t.observe(s||n().body)}}}r([e({writable:!0,isOptional:!0})],o.prototype,"currentBreakpoint",void 0),r([t("connectedCallback")],o.prototype,"reconnectResizeObserver",null),r([t("disconnectedCallback")],o.prototype,"disconnectResizeObserver",null),r([t("componentDidLoad")],o.prototype,"connectResizeObserver",null);export{o as P}