You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
8.6 KiB

(()=>{var t={484:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",s="minute",a="hour",u="day",o="week",c="month",d="quarter",h="year",l="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},v=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:v,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),s=r-i<0,a=e.clone().add(n+(s?-1:1),c);return+(-(n+(r-i)/(s?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:u,D:l,h:a,m:s,s:i,ms:n,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},x="en",y={};y[x]=m;var M=function(t){return t instanceof T},D=function t(e,r,n){var i;if(!e)return x;if("string"==typeof e){var s=e.toLowerCase();y[s]&&(i=s),r&&(y[s]=r,i=s);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var u=e.name;y[u]=e,i=u}return!n&&i&&(x=i),i||!n&&x},S=function(t,e){if(M(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new T(r)},b=g;b.l=D,b.i=M,b.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function m(t){this.$L=D(t.locale,null,!0),this.parse(t)}var v=m.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return b},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(t,e){var r=S(t);return this.startOf(e)<=r&&r<=this.endOf(e)},v.isAfter=function(t,e){return S(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<S(t)},v.$g=function(t,e,r){return b.u(t)?this[e]:this.set(r,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var r=this,n=!!b.u(e)||e,d=b.p(t),f=function(t,e){var i=b.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(u)},p=function(t,e){return b.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},$=this.$W,m=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case h:return n?f(1,0):f(31,11);case c:return n?f(1,m):f(0,m+1);case o:var x=this.$locale().weekStart||0,y=($<x?$+7:$)-x;return f(n?v-y:v+(6-y),m);case u:case l:return p(g+"Hours",0);case a:return p(g+"Minutes",1);case s:return p(g+"Seconds",2);case i:return p(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var r,o=b.p(t),d="set"+(this.$u?"UTC":""),f=(r={},r[u]=d+"Date",r[l]=d+"Date",r[c]=d+"Month",r[h]=d+"FullYear",r[a]=d+"Hours",r[s]=d+"Minutes",r[i]=d+"Seconds",r[n]=d+"Milliseconds",r)[o],p=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var $=this.clone().set(l,1);$.$d[f](p),$.init(),this.$d=$.set(l,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[b.p(t)]()},v.add=function(n,d){var l,f=this;n=Number(n);var p=b.p(d),$=function(t){var e=S(f);return b.w(e.date(e.date()+Math.round(t*n)),f)};if(p===c)return this.set(c,this.$M+n);if(p===h)return this.set(h,this.$y+n);if(p===u)return $(1);if(p===o)return $(7);var m=(l={},l[s]=e,l[a]=r,l[i]=t,l)[p]||1,v=this.$d.getTime()+n*m;return b.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,a=this.$m,u=this.$M,o=r.weekdays,c=r.months,d=function(t,r,i,s){return t&&(t[r]||t(e,n))||i[r].slice(0,s)},h=function(t){return b.s(s%12||12,t,"0")},l=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:b.s(u+1,2,"0"),MMM:d(r.monthsShort,u,c,3),MMMM:d(c,u),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,o,2),ddd:d(r.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:b.s(s,2,"0"),h:h(1),hh:h(2),a:l(s,a,!0),A:l(s,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:i};return n.replace($,(function(t,e){return e||p[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,l,f){var p,$=b.p(l),m=S(n),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,x=b.m(this,m);return x=(p={},p[h]=x/12,p[c]=x,p[d]=x/3,p[o]=(g-v)/6048e5,p[u]=(g-v)/864e5,p[a]=g/r,p[s]=g/e,p[i]=g/t,p)[$]||g,f?x:b.a(x)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=D(t,e,!0);return n&&(r.$L=n),r},v.clone=function(){return b.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),w=T.prototype;return S.prototype=w,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",u],["$M",c],["$y",h],["$D",l]].forEach((function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,T,S),t.$i=!0),S},S.locale=D,S.isDayjs=M,S.unix=function(t){return S(1e3*t)},S.en=y[x],S.Ls=y,S.p={},S}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,r),s.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=r(484),e=r.n(t);const n={css:null,exports:{state:{tag:void 0,limit:1},onBeforeMount(){},formatDate:t=>e()(t).format("DD.MM.YYYY"),isVisible(t){let e=!1;return this.tag?t.tags&&-1!==t.tags.indexOf(this.tag)&&(e=!0):e=!0,e},addTag(t){this.tag=t,this.update()}},template:(t,e,r,n)=>t('<article expr0="expr0" class="post m-bottom-6"></article>',[{type:r.EACH,getKey:null,condition:t=>t.isVisible(t.post),template:t('<header class="post__header m-bottom-3"><h2 class="h4 m-bottom-3 highlight"><a expr1="expr1"> </a></h2><span><time expr2="expr2"> </time></span><span expr3="expr3" class="m-left-3"></span></header><div expr5="expr5" class="post__excerpt"></div>',[{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.post.title].join("")},{type:e.ATTRIBUTE,name:"href",evaluate:t=>t.post.path}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.formatDate(t.post.date_published)].join("")},{type:e.ATTRIBUTE,name:"time",evaluate:t=>t.post.date_published}]},{type:r.EACH,getKey:null,condition:null,template:t('\n / <a expr4="expr4" class="underline"> </a>',[{redundantAttribute:"expr4",selector:"[expr4]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>t.tag},{type:e.EVENT,name:"onclick",evaluate:t=>()=>{t.addTag(t.tag)}}]}]),redundantAttribute:"expr3",selector:"[expr3]",itemName:"tag",indexName:null,evaluate:t=>t.post.tags},{type:r.IF,evaluate:t=>t.post.excerpt,redundantAttribute:"expr5",selector:"[expr5]",template:t('<div expr6="expr6" class="content"> </div>',[{redundantAttribute:"expr6",selector:"[expr6]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.post.excerpt].join("")}]}])}]),redundantAttribute:"expr0",selector:"[expr0]",itemName:"post",indexName:null,evaluate:t=>t.props.posts}]),name:"blog-posts"};riot.register("blog-posts",n),riot.mount("blog-posts")})()})();