Files
boc/landvex-site/assets/sv-BZPVJm6C.js
T

2 lines
33 KiB
JavaScript
Raw Normal View History

function w(t){const n=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&n==="[object Date]"?new t.constructor(+t):typeof t=="number"||n==="[object Number]"||typeof t=="string"||n==="[object String]"?new Date(t):new Date(NaN)}function P(t,n){return t instanceof Date?new t.constructor(n):new Date(n)}const V=6048e5,z=864e5,tn=43200,en=1440;let R={};function O(){return R}function D(t,n){var u,d,c,f;const e=O(),a=(n==null?void 0:n.weekStartsOn)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??e.weekStartsOn??((f=(c=e.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,r=w(t),i=r.getDay(),s=(i<a?7:0)+i-a;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function S(t){return D(t,{weekStartsOn:1})}function A(t){const n=w(t),e=n.getFullYear(),a=P(t,0);a.setFullYear(e+1,0,4),a.setHours(0,0,0,0);const r=S(a),i=P(t,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const s=S(i);return n.getTime()>=r.getTime()?e+1:n.getTime()>=s.getTime()?e:e-1}function C(t){const n=w(t);return n.setHours(0,0,0,0),n}function N(t){const n=w(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}function G(t,n){const e=C(t),a=C(n),r=+e-N(e),i=+a-N(a);return Math.round((r-i)/z)}function B(t){const n=A(t),e=P(t,0);return e.setFullYear(n,0,4),e.setHours(0,0,0,0),S(e)}function I(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function K(t){if(!I(t)&&typeof t!="number")return!1;const n=w(t);return!isNaN(Number(n))}function U(t){const n=w(t),e=P(t,0);return e.setFullYear(n.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tt=(t,n,e)=>{let a;const r=Z[t];return typeof r=="string"?a=r:n===1?a=r.one:a=r.other.replace("{{count}}",n.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+a:a+" ago":a};function y(t){return(n={})=>{const e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const et={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},at={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rt={date:y({formats:et,defaultWidth:"full"}),time:y({formats:nt,defaultWidth:"full"}),dateTime:y({formats:at,defaultWidth:"full"})},it={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ot=(t,n,e,a)=>it[t];function m(t){return(n,e)=>{const a=e!=null&&e.context?String(e.context):"standalone";let r;if(a==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,u=e!=null&&e.width?String(e.width):s;r=t.formattingValues[u]||t.formattingValues[s]}else{const s=t.defaultWidth,u=e!=null&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(n):n;return r[i]}}const st={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ut={n