class o {
  get window() {
    if (this.globalContext)
      return this.globalContext;
    if (typeof window < "u")
      return window;
  }
  get document() {
    var t;
    return !((t = this.globalContext) === null || t === void 0) && t.document ? this.globalContext.document : this.window ? this.window.document : void 0;
  }
  get rootElement() {
    var t;
    return ((t = this.optionsArgs) === null || t === void 0 ? void 0 : t.rootElement) || this.window;
  }
  constructor(t, e) {
    this.ownerDocument = null, this.globalContext = t, this.optionsArgs = e;
  }
}
export {
  o as OptionsReader
};
//# sourceMappingURL=OptionsReader.es.js.map
