import { k as h } from "./en_US-VXVFCG4S-DPSlm2jp.js";
import { e as o, f as n } from "./class-map-BMCUAqbo.js";
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const a = () => new c();
class c {
}
const e = /* @__PURE__ */ new WeakMap(), d = o(class extends n {
  render(t) {
    return h;
  }
  update(t, [i]) {
    const s = i !== this.G;
    return s && this.G !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.G = i, this.ht = t.options?.host, this.rt(this.ct = t.element)), h;
  }
  rt(t) {
    if (this.isConnected || (t = void 0), typeof this.G == "function") {
      const i = this.ht ?? globalThis;
      let s = e.get(i);
      s === void 0 && (s = /* @__PURE__ */ new WeakMap(), e.set(i, s)), s.get(this.G) !== void 0 && this.G.call(this.ht, void 0), s.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
    } else this.G.value = t;
  }
  get lt() {
    return typeof this.G == "function" ? e.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
  }
  disconnected() {
    this.lt === this.ct && this.rt(void 0);
  }
  reconnected() {
    this.rt(this.ct);
  }
});
export {
  a as e,
  d as n
};
//# sourceMappingURL=ref-DUANE1qV.js.map
