1const l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=n=>String(n).padStart(2,"0");function u(n){const t=/^(\d{1,2}):(\d{2})/.exec(String(n??""));if(!t)return null;const e=Number(t[1]),o=Number(t[2]);return e>23||o>59?null:e*60+o}function i(n){const t=u(n);if(t===null)return"-";const e=Math.floor(t/60);return`${a(e%12===0?12:e%12)}:${a(t%60)} ${e<12?"AM":"PM"}`}function m(n){const t=/T(\d{2}:\d{2})/.exec(String(n??""));return t?i(t[1]):"-"}function g(n){const t=Math.max(0,Math.round(Number(n)||0));return`${a(Math.floor(t/60))} H : ${a(t%60)} M`}function y(n){const t=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(n??""));if(!t)return"-";const e=new Date(Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3])));return Number.isNaN(e.getTime())?"-":`${f[e.getUTCDay()]} ${a(e.getUTCDate())} ${l[e.getUTCMonth()]}, ${e.getUTCFullYear()}`}function h(n,t){const e=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(n??"")),o=i(t);return!e||o==="-"?"-":`${e[3]}/${e[2]}/${e[1].slice(2)} ${o.replace(/^0/,"")}`}function $(n){const t=n?new Date(n):null;if(!t||Number.isNaN(t.getTime()))return"-";const e=t.getHours();return`${l[t.getMonth()]} ${a(t.getDate())}, ${t.getFullYear()}, ${a(e%12===0?12:e%12)}:${a(t.getMinutes())} ${e<12?"AM":"PM"}`}function M(n){const t=n?new Date(n):null;if(!t||Number.isNaN(t.getTime()))return"-";const e=t.getHours();return`${a(t.getDate())}/${a(t.getMonth()+1)}/${t.getFullYear()} ${a(e%12===0?12:e%12)}:${a(t.getMinutes())} ${e<12?"AM":"PM"}`}function p(n,t){const e=u(n);if(e===null)return{text:"(No Change)",tone:"none"};const o=u(t);if(o===null)return{text:"(Added)",tone:"added"};const r=e-o;if(r===0)return{text:"(No Change)",tone:"none"};const c=`${a(Math.floor(Math.abs(r)/60))} H : ${a(Math.abs(r)%60)} M`;return r<0?{text:`(Move Early by ${c})`,tone:"earlier"}:{text:`(Move Late by ${c})`,tone:"later"}}function k(n){const t=n.payload??{},e=typeof t.clockIn=="string"?t.clockIn:null,o=typeof t.clockOut=="string"?t.clockOut:null;return{workDate:typeof t.workDate=="string"?t.workDate:n.subjectDate,clockIn:e,clockOut:o,adjustment:e&&o?"Clock In & Out":e?"Clock In":o?"Clock Out":"-"}}function D(n){const t=n.payload??{},e=typeof t.workedDate=="string"?t.workedDate:n.subjectDate,o=t.portion==="half"?"half":"full",r=typeof t.days=="number"?t.days:o==="half"?.5:1,c=typeof t.dayKind=="string"?t.dayKind:"weekend",s=typeof t.holidayName=="string"?t.holidayName:null,d=c==="holiday"?s?`Holiday (${s})`:"Holiday":"Weekly Off";return{workedDate:e,portion:o,days:r,dayType:d}}export{$ as a,m as b,g as c,p as d,y as e,i as f,h as g,k as h,M as i,D as j};
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.