vendor: 4,211 bytes, line 1
1import{y as e}from"./Dl0ELuBr.js";import{n as t,t as n}from"./Cs0Kd7jL.js";function r(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var i={},a={};function o(e,t){try{let n=(i[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in a?a[n]:c(n,n.split(`:`))}catch{if(e in a)return a[e];let t=e?.match(s);return t?c(e,t.slice(1)):NaN}}var s=/([+-]\d\d):?(\d\d)?/;function c(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return a[e]=n*60+r>0?n*60+r+i:n*60-r-i}var l=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(o(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),p(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-o(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),d(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},u=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!u.test(e))return;let t=e.replace(u,`$1UTC`);l.prototype[t]&&(e.startsWith(`get`)?l.prototype[e]=function(){return this.internal[t]()}:(l.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),f(this),+this},l.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),d(this),+this}))});function d(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-o(e.timeZone,e)*60))}function f(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),p(e)}function p(e,t){let n=Array.isArray(t)?m(t):+e.internal,r=o(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),c=-new Date(+a).getTimezoneOffset(),l=s-c,u=s;if(l&&s!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=s-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=o(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(u=c)}let f=u-i;f&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);let p=new Date(+e);p.setUTCSeconds(0);let g=s>0?p.getSeconds():(p.getSeconds()-60)%60,_=Math.round(-(o(e.timeZone,e)*60))%60;(_||g)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+_+g);let v=o(e.timeZone,e),y=v>0?Math.floor(v):Math.ceil(v),b=-new Date(+e).getTimezoneOffset()-y,x=y!==i,S=b-f,C=y-i,w=n-y*60*1e3,T=C>0&&h(e)-n===C*60*1e3&&h(e,w)!==n;if(x&&S&&!T){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+S);let t=o(e.timeZone,e),n=y-(t>0?Math.floor(t):Math.ceil(t));n&&S<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}d(e);let E=(t?n:n+_*1e3)-+e.internal;E&&Math.abs(E)<18e5&&(Date.prototype.setTime.call(e,+e+E),d(e))}function m(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function h(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-o(e.timeZone,n)*60)),+n}var g=class e extends l{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,i]=this.tzComponents();return`${e} GMT${t}${n}${i} (${r(this.timeZone,this)})`}
1toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};function _(e,r){let i=t(e,r?.in);if(isNaN(+i))throw RangeError(`Invalid time value`);let a=r?.format??`extended`,o=r?.representation??`complete`,s=``,c=``,l=a===`extended`?`-`:``,u=a===`extended`?`:`:``;if(o!==`time`){let e=n(i.getDate(),2),t=n(i.getMonth()+1,2);s=`${n(i.getFullYear(),4)}${l}${t}${l}${e}`}if(o!==`date`){let e=i.getTimezoneOffset();if(e!==0){let t=Math.abs(e),r=n(Math.trunc(t/60),2),i=n(t%60,2);c=`${e<0?`+`:`-`}${r}:${i}`}else c=`Z`;let t=n(i.getHours(),2),r=n(i.getMinutes(),2),a=n(i.getSeconds(),2),o=s===``?``:`T`,l=[t,r,a].join(u);s=`${s}${o}${l}${c}`}return s}var v=t=>{let n=typeof t==`string`?new Date(t):t;return b(n)?`Heute`:x(n)?`Gestern`:e(n,`DD.MM.YY`).value},y=e=>{let t=Math.ceil(e/60),n=Math.floor(t/60);return n===0?`${t%60} min`:`${n} Std. ${t%60} min`},b=e=>{let t=new Date;return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()},x=e=>{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return n.getDate()===e.getDate()&&n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear()},S=e=>{if(e==null)return;let t=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(\.\d+)?/);if(!t||/[+-]\d{2}:\d{2}$/.test(e)||/[+-]\d{4}$/.test(e))return e;let[n,r,i,a,o,s,c]=t,l=new g(+r,i-1,+a,+o,+s,+c,`Europe/Berlin`);return Number.isNaN(l.getTime())?e:`${n}${_(l).slice(-6)}`};export{v as n,S as r,y 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.