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