import{desc as t}from"./base.js";
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function e(r,s){return(n,u,i)=>{const o=t=>t.renderRoot?.querySelector(r)??null;if(s){const{get:r,set:s}="object"==typeof u?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(r){this[t]=r}}})();return t(n,u,{get(){let t=r.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&s.call(this,t)),t}})}return t(n,u,{get(){return o(this)}})}}export{e as query};