import t from"./relative-time.js";import e from"./relative-time-element.js";import{localeFromElement as i}from"./utils.js";export default class TimeUntilElement extends e{getFormattedDate(){const e=this.getAttribute("format"),m=this.date;if(m)return"micro"===e?new t(m,i(this)).microTimeUntil():new t(m,i(this)).timeUntil()}}window.customElements.get("time-until")||(window.TimeUntilElement=TimeUntilElement,window.customElements.define("time-until",TimeUntilElement));