Files
site/node_modules/@sveltia/cms/npm/chunks/esm-DOdDddQl.js
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

2 lines
6.7 KiB
JavaScript

import{t as e}from"./en-Do8EpmnK.js";var t=3600,n=t*24,r=n*7,i=1e3,a=60*i,o=t*i,s=n*i,c=r*i,l=`millisecond`,u=`second`,d=`minute`,f=`hour`,p=`week`,m=`month`,h=`quarter`,g=`year`,_=`date`,v=`Invalid Date`,y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},S={s:x,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+x(r,2,`0`)+`:`+x(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=(n.year()-t.year())*12+(n.month()-t.month()),i=t.clone().add(r,m),a=n-i<0,o=t.clone().add(r+(a?-1:1),m);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:`month`,y:`year`,w:`week`,d:`day`,D:`date`,h:`hour`,m:`minute`,s:`second`,ms:`millisecond`,Q:`quarter`}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},C=`en`,w={};w[C]=e;var T=`$isDayjsObject`,E=function(e){return e instanceof M||!!(e&&e[T])},D=function e(t,n,r){var i;if(!t)return C;if(typeof t==`string`){var a=t.toLowerCase();w[a]&&(i=a),n&&(w[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(C=i),i||!r&&C},O=function(e,t){if(E(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new M(n)},k=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},A=S;A.l=D,A.i=E,A.w=k;var j=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(y);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)},M=function(){function e(e){this.$L=D(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[T]=!0}var t=e.prototype;return t.parse=function(e){this.$d=j(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return A},t.isValid=function(){return this.$d.toString()!==v},t.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return O(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<O(e)},t.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,r=A.u(t)?!0:t,i=A.p(e),a=function(e,t){var i=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(`day`)},o=function(e,t){return A.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},s=this.$W,c=this.$M,l=this.$D,h=`set`+(this.$u?`UTC`:``);switch(i){case g:return r?a(1,0):a(31,11);case m:return r?a(1,c):a(0,c+1);case p:var v=this.$locale().weekStart||0,y=(s<v?s+7:s)-v;return a(r?l-y:l+(6-y),c);case`day`:case _:return o(h+`Hours`,0);case f:return o(h+`Minutes`,1);case d:return o(h+`Seconds`,2);case u:return o(h+`Milliseconds`,3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,r=A.p(e),i=`set`+(this.$u?`UTC`:``),a=(n={},n.day=i+`Date`,n[_]=i+`Date`,n[m]=i+`Month`,n[g]=i+`FullYear`,n[f]=i+`Hours`,n[d]=i+`Minutes`,n[u]=i+`Seconds`,n[l]=i+`Milliseconds`,n)[r],o=r===`day`?this.$D+(t-this.$W):t;if(r===`month`||r===`year`){var s=this.clone().set(_,1);s.$d[a](o),s.init(),this.$d=s.set(_,Math.min(this.$D,s.daysInMonth())).$d}else a&&this.$d[a](o);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[A.p(e)]()},t.add=function(e,t){var n=this,r;e=Number(e);var i=A.p(t),a=function(t){var r=O(n);return A.w(r.date(r.date()+Math.round(t*e)),n)};if(i===`month`)return this.set(m,this.$M+e);if(i===`year`)return this.set(g,this.$y+e);if(i===`day`)return a(1);if(i===`week`)return a(7);var o=(r={},r.minute=6e4,r.hour=36e5,r.second=1e3,r)[i]||1,s=this.$d.getTime()+e*o;return A.w(s,this)},t.subtract=function(e,t){return this.add(e*-1,t)},t.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||`Invalid Date`;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=A.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return A.s(a%12||12,e,`0`)},p=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r},m=function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return A.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return A.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return A.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return A.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return p(a,o,!0);case`A`:return p(a,o,!1);case`m`:return String(o);case`mm`:return A.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return A.s(t.$s,2,`0`);case`SSS`:return A.s(t.$ms,3,`0`);case`Z`:return i}return null};return r.replace(b,function(e,t){return t||m(e)||i.replace(`:`,``)})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,t,n){var r=this,l=A.p(t),_=O(e),v=(_.utcOffset()-this.utcOffset())*a,y=this-_,b=function(){return A.m(r,_)},x;switch(l){case g:x=b()/12;break;case m:x=b();break;case h:x=b()/3;break;case p:x=(y-v)/c;break;case`day`:x=(y-v)/s;break;case f:x=y/o;break;case d:x=y/a;break;case u:x=y/i;break;default:x=y}return n?x:A.a(x)},t.daysInMonth=function(){return this.endOf(m).$D},t.$locale=function(){return w[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=D(e,t,!0);return r&&(n.$L=r),n},t.clone=function(){return A.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),N=M.prototype;O.prototype=N,[[`$ms`,l],[`$s`,u],[`$m`,d],[`$H`,f],[`$W`,`day`],[`$M`,m],[`$y`,g],[`$D`,_]].forEach(function(e){N[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),O.extend=function(e,t){return e.$i||=(e(t,M,O),!0),O},O.locale=D,O.isDayjs=E,O.unix=function(e){return O(e*1e3)},O.en=w[C],O.Ls=w,O.p={};export{O as t};
//# sourceMappingURL=esm-DOdDddQl.js.map