globalThis.Intl||(globalThis.Intl={});var toLocaleTimeStringSupportsLocales=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}();function getOptionList(options){var i,list=[];for(i in options)list.push({name:i,value:options[i]});return list}Intl.DateTimeFormat||(Intl.DateTimeFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.DateTimeFormat.prototype.format=function(value){var weekday,options=this.options,locale=this.locales[0],renderDate=options.dateStyle||options.month||options.day||options.year;return renderDate&&options.timeStyle?toLocaleTimeStringSupportsLocales?value.toLocaleString(locale,options):value.toLocaleString():renderDate?toLocaleTimeStringSupportsLocales?value.toLocaleDateString(locale,options):1===(renderDate=getOptionList(options)).length&&"weekday"===renderDate[0].name?(weekday=[],"long"===renderDate[0].value?(weekday[0]="Sunday",weekday[1]="Monday",weekday[2]="Tuesday",weekday[3]="Wednesday",weekday[4]="Thursday",weekday[5]="Friday",weekday[6]="Saturday"):(weekday[0]="Sun",weekday[1]="Mon",weekday[2]="Tue",weekday[3]="Wed",weekday[4]="Thu",weekday[5]="Fri",weekday[6]="Sat"),weekday[value.getDay()]):value.toLocaleDateString():toLocaleTimeStringSupportsLocales?value.toLocaleTimeString(locale,options):value.toLocaleTimeString()});