1import{I as e,Vt as t,s as n}from"./framework-00gR-7pt.js";import{$ as r}from"./vendor-BOkm5uwc.js";import{t as i}from"./dateHelper-lbZy2rK_.js";function a(){let{locale:a}=n(),o=t(i.getUserBrowserTimezone()),s=t(i.getBrowserDateFormat()),c=t(i.getBrowserTimeFormat()===12?`h:mm a`:`HH:mm`),l=e(()=>o.value),u=e(()=>s.value),d=e(()=>c.value),f=e=>i.parse(e).toUTC().toFormat(`yyyy-MM-dd`),p=e=>i.parse(e).setZone(l.value).toFormat(d.value),m=(e,t)=>{let n=i.parse(e).setLocale(a.value).setZone(l.value);return t?n.toFormat(t):n.toFormat(u.value)},h=[`years`,`months`,`days`,`hours`];return{parseDateToUTC:f,parseDateToPreferredFormat:m,parseDateToTimeFormat:p,preferredTimezone:l,preferredDateFormat:u,preferredTimeFormat:d,defaultTimezone:o,defaultDateFormat:s,defaultTimeFormat:c,toRelativeCoarse:e=>{let t=i.parse(e);return r.now().minus(r.now().diff(t,h).toObject()).setLocale(a.value).toRelative()??``}}}export{a as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.