import{c as e,M as t,V as s}from"./p-6e1ab235.js";import{D as c}from"./p-a528714c.js";import{O as r}from"./p-331a62d5.js";import{C as a}from"./p-2d0d575f.js";var n=function(e,t,s,c){var r,a=arguments.length,n=a<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,s):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,c);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,s,n):r(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n};class o extends s{connectedCallback(){this.observer=new r(this.isAcceptObserver.bind(this),(e=>{this.isInDarkMode=e})),a.register(c,this.observer)}disconnectResizeObserver(){a.unregister(c,this.observer)}isAcceptObserver(){return!0}}n([e({writable:!0})],o.prototype,"isInDarkMode",void 0),n([t("connectedCallback")],o.prototype,"connectedCallback",null),n([t("disconnectedCallback")],o.prototype,"disconnectResizeObserver",null);export{o as D}