New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-shared

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-shared - npm Package Compare versions

Comparing version 2.0.0-beta.130 to 2.0.0-beta.131

6

lib/node/index.js

@@ -1,7 +0,7 @@

import{chalk as G}from"@vuepress/utils";import{removeLeadingSlash as ve}from"@vuepress/shared";import{existsSync as K}from"node:fs";import{resolve as Q,dirname as $e}from"node:path";import{execaSync as rt}from"execa";import{strToU8 as Le,zlibSync as st,strFromU8 as De,unzlibSync as at}from"fflate/node";import{gitPlugin as ot}from"@vuepress/plugin-git";import Se from"ora";import ut from"striptags";import{default as Cn}from"striptags";const lt="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",mt="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ce=(e,t=!1)=>{t&&!lt.split(",").includes(e)&&!mt.split(",").includes(e)&&e===e.toLowerCase()&&!e.includes("-")&&console.warn(G.yellow("warning: "),`${e} is used and it’s not a standard tag or standard custom element name`)},dt=({app:e,config:t},n)=>{const i=typeof n=="string"?[n]:n,{bundler:r}=e.options;if(r.name.endsWith("vite")){const o=t;o.vuePluginOptions||(o.vuePluginOptions={}),o.vuePluginOptions.template||(o.vuePluginOptions.template={}),o.vuePluginOptions.template.compilerOptions||(o.vuePluginOptions.template.compilerOptions={});const{isCustomElement:d=h=>ce(h,e.env.isDebug)}=o.vuePluginOptions.template.compilerOptions;o.vuePluginOptions.template.compilerOptions.isCustomElement=h=>(i instanceof RegExp?i.test(h):i.includes(h))?!0:d(h)}if(r.name.endsWith("webpack")){const o=t;o.vue||(o.vue={}),o.vue.compilerOptions||(o.vue.compilerOptions={});const{isCustomElement:d=h=>ce(h,e.env.isDebug)}=o.vue.compilerOptions;o.vue.compilerOptions.isCustomElement=h=>(i instanceof RegExp?i.test(h):i.includes(h))?!0:d(h)}},be=e=>Object.prototype.toString.call(e)==="[object Object]";function we({find:e,replacement:t}){return typeof e=="string"&&e.endsWith("/")&&t.endsWith("/")&&(e=e.slice(0,e.length-1),t=t.slice(0,t.length-1)),{find:e,replacement:t}}const ke=e=>Array.isArray(e)?e.map(we):Object.keys(e).map(t=>we({find:t,replacement:e[t]})),_t=(e=[],t=[])=>[...ke(e),...ke(t)],Te=(e,t,n)=>{const i={...e};for(const r in t){const o=t[r];if(o==null)continue;const d=i[r];if(Array.isArray(d)&&Array.isArray(o)){i[r]=[...d,...o];continue}if(be(d)&&be(o)){i[r]=Te(d,o,n?`${n}.${r}`:r);continue}if(d!=null){if(r==="alias"&&(n==="resolve"||n==="")){i[r]=_t(d,o);continue}else if(r==="assetsInclude"&&n===""){i[r]=[].concat(d,o);continue}else if(r==="noExternal"&&d===!0)continue}i[r]=o}return i},X=(e,t,n=!0)=>Te(e,t,n?"":".");var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},He={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",d="second",h="minute",f="hour",$="day",T="week",L="month",l="quarter",c="year",p="date",s="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,D={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(M){var m=["th","st","nd","rd"],a=M%100;return"["+M+(m[(a-20)%10]||m[a]||m[0])+"]"}},k=function(M,m,a){var Y=String(M);return!Y||Y.length>=m?M:""+Array(m+1-Y.length).join(a)+M},I={s:k,z:function(M){var m=-M.utcOffset(),a=Math.abs(m),Y=Math.floor(a/60),u=a%60;return(m<=0?"+":"-")+k(Y,2,"0")+":"+k(u,2,"0")},m:function M(m,a){if(m.date()<a.date())return-M(a,m);var Y=12*(a.year()-m.year())+(a.month()-m.month()),u=m.clone().add(Y,L),y=a-u<0,g=m.clone().add(Y+(y?-1:1),L);return+(-(Y+(a-u)/(y?u-g:g-u))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:L,y:c,w:T,d:$,D:p,h:f,m:h,s:d,ms:o,Q:l}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},O="en",j={};j[O]=D;var A=function(M){return M instanceof U},P=function M(m,a,Y){var u;if(!m)return O;if(typeof m=="string"){var y=m.toLowerCase();j[y]&&(u=y),a&&(j[y]=a,u=y);var g=m.split("-");if(!u&&g.length>1)return M(g[0])}else{var w=m.name;j[w]=m,u=w}return!Y&&u&&(O=u),u||!Y&&O},S=function(M,m){if(A(M))return M.clone();var a=typeof m=="object"?m:{};return a.date=M,a.args=arguments,new U(a)},v=I;v.l=P,v.i=A,v.w=function(M,m){return S(M,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var U=function(){function M(a){this.$L=P(a.locale,null,!0),this.parse(a)}var m=M.prototype;return m.parse=function(a){this.$d=function(Y){var u=Y.date,y=Y.utc;if(u===null)return new Date(NaN);if(v.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var g=u.match(_);if(g){var w=g[2]-1||0,x=(g[7]||"0").substring(0,3);return y?new Date(Date.UTC(g[1],w,g[3]||1,g[4]||0,g[5]||0,g[6]||0,x)):new Date(g[1],w,g[3]||1,g[4]||0,g[5]||0,g[6]||0,x)}}return new Date(u)}(a),this.$x=a.x||{},this.init()},m.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},m.$utils=function(){return v},m.isValid=function(){return this.$d.toString()!==s},m.isSame=function(a,Y){var u=S(a);return this.startOf(Y)<=u&&u<=this.endOf(Y)},m.isAfter=function(a,Y){return S(a)<this.startOf(Y)},m.isBefore=function(a,Y){return this.endOf(Y)<S(a)},m.$g=function(a,Y,u){return v.u(a)?this[Y]:this.set(u,a)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(a,Y){var u=this,y=!!v.u(Y)||Y,g=v.p(a),w=function(B,E){var R=v.w(u.$u?Date.UTC(u.$y,E,B):new Date(u.$y,E,B),u);return y?R:R.endOf($)},x=function(B,E){return v.w(u.toDate()[B].apply(u.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(E)),u)},z=this.$W,C=this.$M,Z=this.$D,N="set"+(this.$u?"UTC":"");switch(g){case c:return y?w(1,0):w(31,11);case L:return y?w(1,C):w(0,C+1);case T:var ne=this.$locale().weekStart||0,ie=(z<ne?z+7:z)-ne;return w(y?Z-ie:Z+(6-ie),C);case $:case p:return x(N+"Hours",0);case f:return x(N+"Minutes",1);case h:return x(N+"Seconds",2);case d:return x(N+"Milliseconds",3);default:return this.clone()}},m.endOf=function(a){return this.startOf(a,!1)},m.$set=function(a,Y){var u,y=v.p(a),g="set"+(this.$u?"UTC":""),w=(u={},u[$]=g+"Date",u[p]=g+"Date",u[L]=g+"Month",u[c]=g+"FullYear",u[f]=g+"Hours",u[h]=g+"Minutes",u[d]=g+"Seconds",u[o]=g+"Milliseconds",u)[y],x=y===$?this.$D+(Y-this.$W):Y;if(y===L||y===c){var z=this.clone().set(p,1);z.$d[w](x),z.init(),this.$d=z.set(p,Math.min(this.$D,z.daysInMonth())).$d}else w&&this.$d[w](x);return this.init(),this},m.set=function(a,Y){return this.clone().$set(a,Y)},m.get=function(a){return this[v.p(a)]()},m.add=function(a,Y){var u,y=this;a=Number(a);var g=v.p(Y),w=function(C){var Z=S(y);return v.w(Z.date(Z.date()+Math.round(C*a)),y)};if(g===L)return this.set(L,this.$M+a);if(g===c)return this.set(c,this.$y+a);if(g===$)return w(1);if(g===T)return w(7);var x=(u={},u[h]=i,u[f]=r,u[d]=n,u)[g]||1,z=this.$d.getTime()+a*x;return v.w(z,this)},m.subtract=function(a,Y){return this.add(-1*a,Y)},m.format=function(a){var Y=this,u=this.$locale();if(!this.isValid())return u.invalidDate||s;var y=a||"YYYY-MM-DDTHH:mm:ssZ",g=v.z(this),w=this.$H,x=this.$m,z=this.$M,C=u.weekdays,Z=u.months,N=function(E,R,_e,ue){return E&&(E[R]||E(Y,y))||_e[R].slice(0,ue)},ne=function(E){return v.s(w%12||12,E,"0")},ie=u.meridiem||function(E,R,_e){var ue=E<12?"AM":"PM";return _e?ue.toLowerCase():ue},B={YY:String(this.$y).slice(-2),YYYY:this.$y,M:z+1,MM:v.s(z+1,2,"0"),MMM:N(u.monthsShort,z,Z,3),MMMM:N(Z,z),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:N(u.weekdaysMin,this.$W,C,2),ddd:N(u.weekdaysShort,this.$W,C,3),dddd:C[this.$W],H:String(w),HH:v.s(w,2,"0"),h:ne(1),hh:ne(2),a:ie(w,x,!0),A:ie(w,x,!1),m:String(x),mm:v.s(x,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:g};return y.replace(H,function(E,R){return R||B[E]||g.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(a,Y,u){var y,g=v.p(Y),w=S(a),x=(w.utcOffset()-this.utcOffset())*i,z=this-w,C=v.m(this,w);return C=(y={},y[c]=C/12,y[L]=C,y[l]=C/3,y[T]=(z-x)/6048e5,y[$]=(z-x)/864e5,y[f]=z/r,y[h]=z/i,y[d]=z/n,y)[g]||z,u?C:v.a(C)},m.daysInMonth=function(){return this.endOf(L).$D},m.$locale=function(){return j[this.$L]},m.locale=function(a,Y){if(!a)return this.$L;var u=this.clone(),y=P(a,Y,!0);return y&&(u.$L=y),u},m.clone=function(){return v.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),ye=U.prototype;return S.prototype=ye,[["$ms",o],["$s",d],["$m",h],["$H",f],["$W",$],["$M",L],["$y",c],["$D",p]].forEach(function(M){ye[M[1]]=function(m){return this.$g(m,M[0],M[1])}}),S.extend=function(M,m){return M.$i||(M(m,U,S),M.$i=!0),S},S.locale=P,S.isDayjs=A,S.unix=function(M){return S(1e3*M)},S.en=j[O],S.Ls=j,S.p={},S})})(He);var b=He.exports,Oe={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,r,o){var d=r.prototype,h=d.format;o.en.formats=n,d.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var $=this.$locale().formats,T=function(L,l){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(c,p,s){var _=s&&s.toUpperCase();return p||l[s]||n[s]||l[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,D,k){return D||k.slice(1)})})}(f,$===void 0?{}:$);return h.call(this,T)}}})})(Oe);var ct=Oe.exports,ze={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){return function(n,i,r){var o=i.prototype,d=function(l){var c,p=l.date,s=l.utc,_={};if(!((c=p)instanceof Date||c instanceof Array||o.$utils().u(c)||c.constructor.name!=="Object")){if(!Object.keys(p).length)return new Date;var H=s?r.utc():r();Object.keys(p).forEach(function(S){var v,U;_[v=S,U=o.$utils().p(v),U==="date"?"day":U]=p[S]});var D=_.day||(_.year||_.month>=0?1:H.date()),k=_.year||H.year(),I=_.month>=0?_.month:_.year||_.day?0:H.month(),O=_.hour||0,j=_.minute||0,A=_.second||0,P=_.millisecond||0;return s?new Date(Date.UTC(k,I,D,O,j,A,P)):new Date(k,I,D,O,j,A,P)}return p},h=o.parse;o.parse=function(l){l.date=d.bind(this)(l),h.bind(this)(l)};var f=o.set,$=o.add,T=o.subtract,L=function(l,c,p,s){s===void 0&&(s=1);var _=Object.keys(c),H=this;return _.forEach(function(D){H=l.bind(H)(c[D]*s,D)}),H};o.set=function(l,c){return c=c===void 0?l:c,l.constructor.name==="Object"?L.bind(this)(function(p,s){return f.bind(this)(s,p)},c,l):f.bind(this)(l,c)},o.add=function(l,c){return l.constructor.name==="Object"?L.bind(this)($,l,c):$.bind(this)(l,c)},o.subtract=function(l,c){return l.constructor.name==="Object"?L.bind(this)($,l,c,-1):T.bind(this)(l,c)}}})})(ze);var xe=ze.exports,je={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(r,o,d){var h,f=function(l,c,p){p===void 0&&(p={});var s=new Date(l),_=function(H,D){D===void 0&&(D={});var k=D.timeZoneName||"short",I=H+"|"+k,O=i[I];return O||(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:H,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),i[I]=O),O}(c,p);return _.formatToParts(s)},$=function(l,c){for(var p=f(l,c),s=[],_=0;_<p.length;_+=1){var H=p[_],D=H.type,k=H.value,I=n[D];I>=0&&(s[I]=parseInt(k,10))}var O=s[3],j=O===24?0:O,A=s[0]+"-"+s[1]+"-"+s[2]+" "+j+":"+s[4]+":"+s[5]+":000",P=+l;return(d.utc(A).valueOf()-(P-=P%1e3))/6e4},T=o.prototype;T.tz=function(l,c){l===void 0&&(l=h);var p=this.utcOffset(),s=this.toDate(),_=s.toLocaleString("en-US",{timeZone:l}),H=Math.round((s-new Date(_))/1e3/60),D=d(_).$set("millisecond",this.$ms).utcOffset(15*-Math.round(s.getTimezoneOffset()/15)-H,!0);if(c){var k=D.utcOffset();D=D.add(p-k,"minute")}return D.$x.$timezone=l,D},T.offsetName=function(l){var c=this.$x.$timezone||d.tz.guess(),p=f(this.valueOf(),c,{timeZoneName:l}).find(function(s){return s.type.toLowerCase()==="timezonename"});return p&&p.value};var L=T.startOf;T.startOf=function(l,c){if(!this.$x||!this.$x.$timezone)return L.call(this,l,c);var p=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return L.call(p,l,c).tz(this.$x.$timezone,!0)},d.tz=function(l,c,p){var s=p&&c,_=p||c||h,H=$(+d(),_);if(typeof l!="string")return d(l).tz(_);var D=function(j,A,P){var S=j-60*A*1e3,v=$(S,P);if(A===v)return[S,A];var U=$(S-=60*(v-A)*1e3,P);return v===U?[S,v]:[j-60*Math.min(v,U)*1e3,Math.max(v,U)]}(d.utc(l,s).valueOf(),H,_),k=D[0],I=D[1],O=d(k).utcOffset(I);return O.$x.$timezone=_,O},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(l){h=l}}})})(je);var Ae=je.exports,Ce={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,d,h){var f=d.prototype;h.utc=function(s){var _={date:s,utc:!0,args:arguments};return new d(_)},f.utc=function(s){var _=h(this.toDate(),{locale:this.$L,utc:!0});return s?_.add(this.utcOffset(),n):_},f.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var $=f.parse;f.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),$.call(this,s)};var T=f.init;f.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else T.call(this)};var L=f.utcOffset;f.utcOffset=function(s,_){var H=this.$utils().u;if(H(s))return this.$u?0:H(this.$offset)?L.call(this):this.$offset;if(typeof s=="string"&&(s=function(O){O===void 0&&(O="");var j=O.match(i);if(!j)return null;var A=(""+j[0]).match(r)||["-",0,0],P=A[0],S=60*+A[1]+ +A[2];return S===0?0:P==="+"?S:-S}(s),s===null))return this;var D=Math.abs(s)<=16?60*s:s,k=this;if(_)return k.$offset=D,k.$u=s===0,k;if(s!==0){var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(D+I,n)).$offset=D,k.$x.$localOffset=I}else k=this.utc();return k};var l=f.format;f.format=function(s){var _=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,_)},f.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var c=f.toDate;f.toDate=function(s){return s==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var p=f.diff;f.diff=function(s,_,H){if(s&&this.$u===s.$u)return p.call(this,s,_,H);var D=this.local(),k=h(s).local();return p.call(D,k,_,H)}}})})(Ce);var Ie=Ce.exports;const ht={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},W=(e,t,n)=>{let i=ht[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)},ft={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:W,m:W,mm:W,h:W,hh:W,d:W,dd:W,M:W,MM:W,y:W,yy:W}},pt=e=>{e.locale("de",ft)},Mt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},F=(e,t,n)=>{let i=Mt[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)},Yt={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:F,m:F,mm:F,h:F,hh:F,d:F,dd:F,M:F,MM:F,y:F,yy:F}},gt=e=>{e.locale("de-at",Yt)},yt={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("_")},vt=e=>{e.locale("en",yt)},$t={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:e=>`${e}º`},Lt=e=>{e.locale("es",$t)},Dt={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:e=>`${e}${e===1?"er":""}`},St=e=>{e.locale("fr",Dt)},le=e=>e%10<5&&e%10>1&&~~(e/10)%10!==1,ee=(e,t,n)=>{const i=`${e} `;switch(n){case"m":return t?"minuta":"minutę";case"mm":return i+(le(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(le(e)?"godziny":"godzin");case"MM":return i+(le(e)?"miesiące":"miesięcy");case"yy":return i+(le(e)?"lata":"lat")}},Pe="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),Ee="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),bt=/D MMMM/,he=(e,t)=>bt.test(t)?Pe[e.month()]:Ee[e.month()];he.s=Ee,he.f=Pe;const wt={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:he,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:ee,mm:ee,h:ee,hh:ee,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:ee,y:"rok",yy:ee},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}},kt=e=>{e.locale("pl",wt)},Tt={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:e=>`${e}º`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}},Ht=e=>{e.locale("pt-br",Tt)},Ue="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),We="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),Fe="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),Je="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),Ne=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,Ot=(e,t)=>{const n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]},te=(e,t,n)=>n==="m"?t?"минута":"минуту":`${e} ${Ot({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+e)}`,fe=(e,t)=>Ne.test(t)?Ue[e.month()]:We[e.month()];fe.s=We,fe.f=Ue;const pe=(e,t)=>Ne.test(t)?Fe[e.month()]:Je[e.month()];pe.s=Je,pe.f=Fe;const zt={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:fe,monthsShort:pe,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:te,mm:te,h:"час",hh:te,d:"день",dd:te,M:"месяц",MM:te,y:"год",yy:te},ordinal:e=>e,meridiem:e=>e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},xt=e=>{e.locale("ru",zt)},se=e=>e>1&&e<5&&~~(e/10)!==1,J=(e,t,n,i)=>{const r=`${e} `;switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?r+(se(e)?"minúty":"minút"):`${r}minútami`;case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(se(e)?"hodiny":"hodín"):`${r}hodinami`;case"d":return t||i?"deň":"dňom";case"dd":return t||i?r+(se(e)?"dni":"dní"):`${r}dňami`;case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?r+(se(e)?"mesiace":"mesiacov"):`${r}mesiacmi`;case"y":return t||i?"rok":"rokom";case"yy":return t||i?r+(se(e)?"roky":"rokov"):`${r}rokmi`}},jt={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:e=>`${e}.`,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:J,m:J,mm:J,h:J,hh:J,d:J,dd:J,M:J,MM:J,y:J,yy:J}},At=e=>{e.locale("sk",jt)},Ze="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),Re="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),Ct=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,It=(e,t)=>{const n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]},V=(e,t,n)=>n==="m"?t?"хвилина":"хвилину":n==="h"?t?"година":"годину":`${e} ${It({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+e)}`,Me=(e,t)=>Ct.test(t)?Ze[e.month()]:Re[e.month()];Me.s=Re,Me.f=Ze;const Pt={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:Me,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:V,mm:V,h:V,hh:V,d:"день",dd:V,M:"місяць",MM:V,y:"рік",yy:V},ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}},Et=e=>{e.locale("uk",Pt)},Ut={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}},Wt=e=>{e.locale("vi",Ut)},Ft={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:(e,t)=>{switch(t){case"W":return`${e}周`;default:return`${e}日`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:(e,t)=>{const n=e*100+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},Jt=e=>{e.locale("zh",Ft)},Nt={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}},Zt=e=>{e.locale("zh-tw",Nt)},Rt={name:"ja-jp",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日曜_月曜_火曜_水曜_木曜_金曜_土曜".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時mm分",LLLL:"YYYY年M月D日ddddAh時mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s以内",past:"%s前",s:"数秒",m:"1 分",mm:"%d 分",h:"1 時間",hh:"%d 時間",d:"1 日",dd:"%d 日",M:"1 ヶ月",MM:"%d ヶ月",y:"1 年",yy:"%d 年"},meridiem:(e,t)=>{const n=e*100+t;return n<600?"朝":n<1200?"午前":n<1800?"午後":n<2e3?"晚":"夜"}},Vt=e=>{e.locale("ja",Rt)},qt={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),ordinal:e=>`${e}.`,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY HH:mm dddd"}},Bt=e=>{e.locale("tr",qt)};b.extend(ct),b.extend(xe),b.extend(Ie),b.extend(Ae),pt(b),gt(b),vt(b),Lt(b),St(b),kt(b),Ht(b),xt(b),At(b),Et(b),Wt(b),Jt(b),Zt(b),Vt(b),Bt(b);const Gt=(e="en")=>{const t=e.toLowerCase();return["de","de-at","en","es","fr","pl","pt-br","ru","sk","uk","vi","zh","zh-tw","ja","tr"].includes(t)?t:t==="en-us"||t==="en-uk"?"en":t==="es-es"?"es":t==="fr-fr"?"fr":t==="pl-pl"?"pl":t==="ru-ru"?"ru":t==="uk-ua"?"uk":t==="sk-sk"?"sk":t==="vi-vn"?"vi":t==="zh-cn"?"zh":t==="ja-jp"?"ja":t==="tr-tr"?"tr":(console.warn(`${e} locale missing in config`),"en")},ae=(e,...t)=>{if(t.length===0)return e;const n=t.shift()||{};return Object.keys(n).forEach(i=>{typeof e[i]=="object"&&!Array.isArray(e[i])&&typeof n[i]=="object"&&!Array.isArray(n[i])?ae(e[i],n[i]):typeof n[i]=="object"?Array.isArray(n[i])?e[i]=[...n[i]]:e[i]={...n[i]}:e[i]=n[i]}),ae(e,...t)};b.extend(xe),b.extend(Ie),b.extend(Ae);const oe=(e,t)=>{if(e){if(b(e instanceof Date?e:e.trim()).isValid()){const i=t?b(e).tz(t):b(e),r=i.year(),o=i.month()+1,d=i.date(),h=i.hour(),f=i.minute(),$=i.second(),T=i.millisecond(),L=h===0&&f===0&&$===0&&T===0;return{value:i.toDate(),info:{year:r,month:o,day:d,...L?{}:{hour:h,minute:f,second:$}},type:L?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(e.trim());if(n){const[,i,r,o,d,h,f]=n,$=_=>typeof _>"u"?void 0:Number(_),T=_=>_&&_<100?_+2e3:_,L=_=>d&&h&&!f?0:_,l={year:T($(i)),month:$(r),day:$(o),hour:$(d),minute:$(h),second:L($(f))},c=i===void 0&&r===void 0&&o===void 0,p=d===void 0&&h===void 0&&f===void 0,s=b({...l,month:l.month-1}).toDate();return{value:c?void 0:s,info:p?{year:l.year,month:l.month,day:l.day}:c?{hour:l.hour,minute:l.minute,second:l.second}:l,type:c?"time":p?"date":"full"}}}return null},Kt=(e,t)=>{const n=oe(typeof e=="number"?new Date(e):e),i=oe(typeof t=="number"?new Date(t):t);return!n||!n.value?1:!i||!i.value?-1:i.value.getTime()-n.value.getTime()},Qt=(e,t=!1)=>e?Array.isArray(e)?e.map(n=>typeof n=="string"?{name:n}:n):typeof e=="string"?[{name:e}]:typeof e=="object"&&e.name?[e]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],Xt=e=>{if(e){if(Array.isArray(e))return e;if(typeof e=="string")return[e];console.error("Expect 'category' to be `string[] | string | undefined`, but got",e)}return[]},en=e=>{if(e){if(Array.isArray(e))return e;if(typeof e=="string")return[e];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",e)}return[]},tn=e=>{if(typeof e!="string"||e==="")return!1;const t=/^(?:\w+:)?\/\/(\S+)$/u.exec(e);if(!t)return!1;const n=t[1];return n?/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n):!1},nn=e=>e.startsWith("/"),Ye=(e,t={})=>{const n=oe(e,t.timezone);if(n){const{lang:i,timezone:r,type:o=n.type}=t;return b.locale(Gt(i)),(r?b(n.value).tz(r):b(n.value)).format(o==="date"?"LL":o==="time"?"HH:mm":"LLL")}return null},rn=(e,t)=>{var n,i,r;if(!e.data.localizedDate)if(e.frontmatter.date){const o=(n=oe(e.frontmatter.date,t))==null?void 0:n.value;o&&(e.data.localizedDate=Ye(o,{lang:e.lang,type:"date"}))}else(i=e.data.git)!=null&&i.createdTime&&(e.data.localizedDate=Ye(new Date((r=e.data.git)==null?void 0:r.createdTime),{lang:e.lang,type:"date"}))},sn=e=>e.replace(/]]>/g,"]]]]><![CDATA[>"),an=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),Ve=new Map,q=new Map,on=e=>{try{return rt(`${e} --version`,{stdio:"ignore"}).exitCode===0}catch{return!1}},ge=e=>{const t=`global:${e}`,n=Ve.get(t);return n!==void 0?n:on(e)?(Ve.set(t,!0),!0):!1},qe=(e=process.cwd(),t=!0)=>{const n=`local:${e}`,i=q.get(n);if(i!==void 0)return i;if(K(Q(e,"pnpm-lock.yaml")))return q.set(n,"pnpm"),"pnpm";if(K(Q(e,"yarn.lock")))return q.set(n,"yarn"),"yarn";if(K(Q(e,"package-lock.json")))return q.set(n,"npm"),"npm";let r=e;for(;t&&r!==$e(r);){if(r=$e(r),K(Q(r,"pnpm-lock.yaml")))return q.set(n,"pnpm"),"pnpm";if(K(Q(r,"yarn.lock")))return q.set(n,"yarn"),"yarn";if(K(Q(r,"package-lock.json")))return q.set(n,"npm"),"npm"}return null},Be=(e=process.cwd(),t=!0)=>qe(e,t)||(ge("pnpm")?"pnpm":ge("yarn")?"yarn":"npm"),un=(e,t=6)=>{const n=Le(e),i=st(n,{level:t}),r=De(i,!0);return Buffer.from(r,"binary").toString("base64")},ln=e=>{const t=Buffer.from(e,"base64").toString("binary");return De(at(Le(t,!0)))},mn=({app:e,config:t},n)=>{const{bundler:i}=e.options,r=Be();if(i.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):r!=="pnpm")){const o=t;o.viteOptions=X(o.viteOptions||{},{optimizeDeps:{include:typeof n=="string"?[n]:n}}),o.viteOptions.optimizeDeps.include=Array.from(new Set(o.viteOptions.optimizeDeps.include))}},dn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{optimizeDeps:{exclude:typeof n=="string"?[n]:n}}),r.viteOptions.optimizeDeps.exclude=Array.from(new Set(r.viteOptions.optimizeDeps.exclude))}},_n=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{ssr:{external:typeof n=="string"?[n]:n}})}},cn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{ssr:{noExternal:typeof n=="string"?[n]:n}})}},hn=(e,t,n,i,r="The server encountered an error")=>{const{base:o,bundler:d}=t.options;if(t.env.isDev&&d.name.endsWith("vite")){const h=e,f=(T,L)=>{i(T).then(l=>{L.statusCode=200,L.end(l)}).catch(()=>{L.statusCode=500,L.end(r)})},$={name:`virtual:dev-server-mock/${n}`,configureServer:({middlewares:T})=>{T.use(`${o}${ve(n)}`,f)}};h.viteOptions=X(h.viteOptions||{},{plugins:[$]})}if(t.env.isDev&&d.name.endsWith("webpack")){const h=e,{devServerSetupMiddlewares:f}=h;h.devServerSetupMiddlewares=($,T)=>{var L;return(L=T.app)==null||L.get(`${o}${ve(n)}`,(l,c)=>{i(l).then(p=>c.status(200).send(p)).catch(()=>c.status(500).send(r))}),f?f($,T):$}}},fn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("webpack")){const r=t,{chainWebpack:o}=r;r.chainWebpack=(d,h,f)=>{o==null||o(d,h,f),n(d,h,f)}}},pn=(e,t)=>{e.pluginApi.plugins.every(n=>n.name!=="@vuepress/plugin-git")&&t&&e.use(ot(t))},Mn=e=>{const t=e.pluginApi.plugins.findIndex(n=>n.name==="@vuepress/plugin-git");t!==-1&&e.pluginApi.plugins.splice(t,1)};class Ge{constructor(t=""){this.name=t,this.currentInstance=Se()}create(t){return this.currentInstance=Se({prefixText:G.blue(`${this.name}: `)||"",text:t}),this.currentInstance}update(t){this.currentInstance?this.currentInstance.text=t:this.create(t)}load(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(t)).start()}info(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.blue(t))).info()}succeed(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.green(t))).succeed()}warn(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.yellow(t))).warn()}error(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.red(t))).fail()}}const Yn="vuepress-shared/noopModule",me={"de-AT":"/de-at/","en-US":"/en/","es-ES":"/es/","fr-FR":"/fr/","ja-JP":"/ja/","ko-KR":"/ko/","pl-PL":"/pl/","pt-BR":"/br/","ru-RU":"/ru/","sk-SK":"/sk/","tr-TR":"/tr/","uk-UA":"/uk/","vi-VN":"/vi/","zh-CN":"/zh/","zh-TW":"/zh-tw/"},Ke=Object.keys(me),Qe=Object.fromEntries(Ke.map(e=>[me[e],e])),Xe={},gn=(e="")=>Ke.includes(e),yn=(e,t="")=>{Xe[e]||(console.warn(`${e} locates config is missing, and will return 'en-US' instead.
import{chalk as G}from"@vuepress/utils";import{removeLeadingSlash as ve}from"@vuepress/shared";import{existsSync as K}from"node:fs";import{resolve as Q,dirname as $e}from"node:path";import{execaSync as rt}from"execa";import{strToU8 as Le,zlibSync as st,strFromU8 as De,unzlibSync as at}from"fflate/node";import{gitPlugin as ot}from"@vuepress/plugin-git";import Se from"ora";import ut from"striptags";import{default as Cn}from"striptags";const mt="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",lt="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ce=(e,t=!1)=>{t&&!mt.split(",").includes(e)&&!lt.split(",").includes(e)&&e===e.toLowerCase()&&!e.includes("-")&&console.warn(G.yellow("warning: "),`${e} is used and it’s not a standard tag or standard custom element name`)},dt=({app:e,config:t},n)=>{const i=typeof n=="string"?[n]:n,{bundler:r}=e.options;if(r.name.endsWith("vite")){const o=t;o.vuePluginOptions||(o.vuePluginOptions={}),o.vuePluginOptions.template||(o.vuePluginOptions.template={}),o.vuePluginOptions.template.compilerOptions||(o.vuePluginOptions.template.compilerOptions={});const{isCustomElement:d=h=>ce(h,e.env.isDebug)}=o.vuePluginOptions.template.compilerOptions;o.vuePluginOptions.template.compilerOptions.isCustomElement=h=>(i instanceof RegExp?i.test(h):i.includes(h))?!0:d(h)}if(r.name.endsWith("webpack")){const o=t;o.vue||(o.vue={}),o.vue.compilerOptions||(o.vue.compilerOptions={});const{isCustomElement:d=h=>ce(h,e.env.isDebug)}=o.vue.compilerOptions;o.vue.compilerOptions.isCustomElement=h=>(i instanceof RegExp?i.test(h):i.includes(h))?!0:d(h)}},be=e=>Object.prototype.toString.call(e)==="[object Object]";function we({find:e,replacement:t}){return typeof e=="string"&&e.endsWith("/")&&t.endsWith("/")&&(e=e.slice(0,e.length-1),t=t.slice(0,t.length-1)),{find:e,replacement:t}}const ke=e=>Array.isArray(e)?e.map(we):Object.keys(e).map(t=>we({find:t,replacement:e[t]})),_t=(e=[],t=[])=>[...ke(e),...ke(t)],Te=(e,t,n)=>{const i={...e};for(const r in t){const o=t[r];if(o==null)continue;const d=i[r];if(Array.isArray(d)&&Array.isArray(o)){i[r]=[...d,...o];continue}if(be(d)&&be(o)){i[r]=Te(d,o,n?`${n}.${r}`:r);continue}if(d!=null){if(r==="alias"&&(n==="resolve"||n==="")){i[r]=_t(d,o);continue}else if(r==="assetsInclude"&&n===""){i[r]=[].concat(d,o);continue}else if(r==="noExternal"&&d===!0)continue}i[r]=o}return i},X=(e,t,n=!0)=>Te(e,t,n?"":".");var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},He={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",d="second",h="minute",f="hour",$="day",T="week",L="month",m="quarter",c="year",p="date",s="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,D={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(M){var l=["th","st","nd","rd"],a=M%100;return"["+M+(l[(a-20)%10]||l[a]||l[0])+"]"}},k=function(M,l,a){var Y=String(M);return!Y||Y.length>=l?M:""+Array(l+1-Y.length).join(a)+M},I={s:k,z:function(M){var l=-M.utcOffset(),a=Math.abs(l),Y=Math.floor(a/60),u=a%60;return(l<=0?"+":"-")+k(Y,2,"0")+":"+k(u,2,"0")},m:function M(l,a){if(l.date()<a.date())return-M(a,l);var Y=12*(a.year()-l.year())+(a.month()-l.month()),u=l.clone().add(Y,L),y=a-u<0,g=l.clone().add(Y+(y?-1:1),L);return+(-(Y+(a-u)/(y?u-g:g-u))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:L,y:c,w:T,d:$,D:p,h:f,m:h,s:d,ms:o,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},O="en",j={};j[O]=D;var A=function(M){return M instanceof U},P=function M(l,a,Y){var u;if(!l)return O;if(typeof l=="string"){var y=l.toLowerCase();j[y]&&(u=y),a&&(j[y]=a,u=y);var g=l.split("-");if(!u&&g.length>1)return M(g[0])}else{var w=l.name;j[w]=l,u=w}return!Y&&u&&(O=u),u||!Y&&O},S=function(M,l){if(A(M))return M.clone();var a=typeof l=="object"?l:{};return a.date=M,a.args=arguments,new U(a)},v=I;v.l=P,v.i=A,v.w=function(M,l){return S(M,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var U=function(){function M(a){this.$L=P(a.locale,null,!0),this.parse(a)}var l=M.prototype;return l.parse=function(a){this.$d=function(Y){var u=Y.date,y=Y.utc;if(u===null)return new Date(NaN);if(v.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var g=u.match(_);if(g){var w=g[2]-1||0,x=(g[7]||"0").substring(0,3);return y?new Date(Date.UTC(g[1],w,g[3]||1,g[4]||0,g[5]||0,g[6]||0,x)):new Date(g[1],w,g[3]||1,g[4]||0,g[5]||0,g[6]||0,x)}}return new Date(u)}(a),this.$x=a.x||{},this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return v},l.isValid=function(){return this.$d.toString()!==s},l.isSame=function(a,Y){var u=S(a);return this.startOf(Y)<=u&&u<=this.endOf(Y)},l.isAfter=function(a,Y){return S(a)<this.startOf(Y)},l.isBefore=function(a,Y){return this.endOf(Y)<S(a)},l.$g=function(a,Y,u){return v.u(a)?this[Y]:this.set(u,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,Y){var u=this,y=!!v.u(Y)||Y,g=v.p(a),w=function(B,E){var R=v.w(u.$u?Date.UTC(u.$y,E,B):new Date(u.$y,E,B),u);return y?R:R.endOf($)},x=function(B,E){return v.w(u.toDate()[B].apply(u.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(E)),u)},z=this.$W,C=this.$M,Z=this.$D,N="set"+(this.$u?"UTC":"");switch(g){case c:return y?w(1,0):w(31,11);case L:return y?w(1,C):w(0,C+1);case T:var ne=this.$locale().weekStart||0,ie=(z<ne?z+7:z)-ne;return w(y?Z-ie:Z+(6-ie),C);case $:case p:return x(N+"Hours",0);case f:return x(N+"Minutes",1);case h:return x(N+"Seconds",2);case d:return x(N+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,Y){var u,y=v.p(a),g="set"+(this.$u?"UTC":""),w=(u={},u[$]=g+"Date",u[p]=g+"Date",u[L]=g+"Month",u[c]=g+"FullYear",u[f]=g+"Hours",u[h]=g+"Minutes",u[d]=g+"Seconds",u[o]=g+"Milliseconds",u)[y],x=y===$?this.$D+(Y-this.$W):Y;if(y===L||y===c){var z=this.clone().set(p,1);z.$d[w](x),z.init(),this.$d=z.set(p,Math.min(this.$D,z.daysInMonth())).$d}else w&&this.$d[w](x);return this.init(),this},l.set=function(a,Y){return this.clone().$set(a,Y)},l.get=function(a){return this[v.p(a)]()},l.add=function(a,Y){var u,y=this;a=Number(a);var g=v.p(Y),w=function(C){var Z=S(y);return v.w(Z.date(Z.date()+Math.round(C*a)),y)};if(g===L)return this.set(L,this.$M+a);if(g===c)return this.set(c,this.$y+a);if(g===$)return w(1);if(g===T)return w(7);var x=(u={},u[h]=i,u[f]=r,u[d]=n,u)[g]||1,z=this.$d.getTime()+a*x;return v.w(z,this)},l.subtract=function(a,Y){return this.add(-1*a,Y)},l.format=function(a){var Y=this,u=this.$locale();if(!this.isValid())return u.invalidDate||s;var y=a||"YYYY-MM-DDTHH:mm:ssZ",g=v.z(this),w=this.$H,x=this.$m,z=this.$M,C=u.weekdays,Z=u.months,N=function(E,R,_e,ue){return E&&(E[R]||E(Y,y))||_e[R].slice(0,ue)},ne=function(E){return v.s(w%12||12,E,"0")},ie=u.meridiem||function(E,R,_e){var ue=E<12?"AM":"PM";return _e?ue.toLowerCase():ue},B={YY:String(this.$y).slice(-2),YYYY:this.$y,M:z+1,MM:v.s(z+1,2,"0"),MMM:N(u.monthsShort,z,Z,3),MMMM:N(Z,z),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:N(u.weekdaysMin,this.$W,C,2),ddd:N(u.weekdaysShort,this.$W,C,3),dddd:C[this.$W],H:String(w),HH:v.s(w,2,"0"),h:ne(1),hh:ne(2),a:ie(w,x,!0),A:ie(w,x,!1),m:String(x),mm:v.s(x,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:g};return y.replace(H,function(E,R){return R||B[E]||g.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,Y,u){var y,g=v.p(Y),w=S(a),x=(w.utcOffset()-this.utcOffset())*i,z=this-w,C=v.m(this,w);return C=(y={},y[c]=C/12,y[L]=C,y[m]=C/3,y[T]=(z-x)/6048e5,y[$]=(z-x)/864e5,y[f]=z/r,y[h]=z/i,y[d]=z/n,y)[g]||z,u?C:v.a(C)},l.daysInMonth=function(){return this.endOf(L).$D},l.$locale=function(){return j[this.$L]},l.locale=function(a,Y){if(!a)return this.$L;var u=this.clone(),y=P(a,Y,!0);return y&&(u.$L=y),u},l.clone=function(){return v.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},M}(),ye=U.prototype;return S.prototype=ye,[["$ms",o],["$s",d],["$m",h],["$H",f],["$W",$],["$M",L],["$y",c],["$D",p]].forEach(function(M){ye[M[1]]=function(l){return this.$g(l,M[0],M[1])}}),S.extend=function(M,l){return M.$i||(M(l,U,S),M.$i=!0),S},S.locale=P,S.isDayjs=A,S.unix=function(M){return S(1e3*M)},S.en=j[O],S.Ls=j,S.p={},S})})(He);var b=He.exports,Oe={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,r,o){var d=r.prototype,h=d.format;o.en.formats=n,d.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var $=this.$locale().formats,T=function(L,m){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(c,p,s){var _=s&&s.toUpperCase();return p||m[s]||n[s]||m[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,D,k){return D||k.slice(1)})})}(f,$===void 0?{}:$);return h.call(this,T)}}})})(Oe);var ct=Oe.exports,ze={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){return function(n,i,r){var o=i.prototype,d=function(m){var c,p=m.date,s=m.utc,_={};if(!((c=p)instanceof Date||c instanceof Array||o.$utils().u(c)||c.constructor.name!=="Object")){if(!Object.keys(p).length)return new Date;var H=s?r.utc():r();Object.keys(p).forEach(function(S){var v,U;_[v=S,U=o.$utils().p(v),U==="date"?"day":U]=p[S]});var D=_.day||(_.year||_.month>=0?1:H.date()),k=_.year||H.year(),I=_.month>=0?_.month:_.year||_.day?0:H.month(),O=_.hour||0,j=_.minute||0,A=_.second||0,P=_.millisecond||0;return s?new Date(Date.UTC(k,I,D,O,j,A,P)):new Date(k,I,D,O,j,A,P)}return p},h=o.parse;o.parse=function(m){m.date=d.bind(this)(m),h.bind(this)(m)};var f=o.set,$=o.add,T=o.subtract,L=function(m,c,p,s){s===void 0&&(s=1);var _=Object.keys(c),H=this;return _.forEach(function(D){H=m.bind(H)(c[D]*s,D)}),H};o.set=function(m,c){return c=c===void 0?m:c,m.constructor.name==="Object"?L.bind(this)(function(p,s){return f.bind(this)(s,p)},c,m):f.bind(this)(m,c)},o.add=function(m,c){return m.constructor.name==="Object"?L.bind(this)($,m,c):$.bind(this)(m,c)},o.subtract=function(m,c){return m.constructor.name==="Object"?L.bind(this)($,m,c,-1):T.bind(this)(m,c)}}})})(ze);var xe=ze.exports,je={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(r,o,d){var h,f=function(m,c,p){p===void 0&&(p={});var s=new Date(m),_=function(H,D){D===void 0&&(D={});var k=D.timeZoneName||"short",I=H+"|"+k,O=i[I];return O||(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:H,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),i[I]=O),O}(c,p);return _.formatToParts(s)},$=function(m,c){for(var p=f(m,c),s=[],_=0;_<p.length;_+=1){var H=p[_],D=H.type,k=H.value,I=n[D];I>=0&&(s[I]=parseInt(k,10))}var O=s[3],j=O===24?0:O,A=s[0]+"-"+s[1]+"-"+s[2]+" "+j+":"+s[4]+":"+s[5]+":000",P=+m;return(d.utc(A).valueOf()-(P-=P%1e3))/6e4},T=o.prototype;T.tz=function(m,c){m===void 0&&(m=h);var p=this.utcOffset(),s=this.toDate(),_=s.toLocaleString("en-US",{timeZone:m}),H=Math.round((s-new Date(_))/1e3/60),D=d(_).$set("millisecond",this.$ms).utcOffset(15*-Math.round(s.getTimezoneOffset()/15)-H,!0);if(c){var k=D.utcOffset();D=D.add(p-k,"minute")}return D.$x.$timezone=m,D},T.offsetName=function(m){var c=this.$x.$timezone||d.tz.guess(),p=f(this.valueOf(),c,{timeZoneName:m}).find(function(s){return s.type.toLowerCase()==="timezonename"});return p&&p.value};var L=T.startOf;T.startOf=function(m,c){if(!this.$x||!this.$x.$timezone)return L.call(this,m,c);var p=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return L.call(p,m,c).tz(this.$x.$timezone,!0)},d.tz=function(m,c,p){var s=p&&c,_=p||c||h,H=$(+d(),_);if(typeof m!="string")return d(m).tz(_);var D=function(j,A,P){var S=j-60*A*1e3,v=$(S,P);if(A===v)return[S,A];var U=$(S-=60*(v-A)*1e3,P);return v===U?[S,v]:[j-60*Math.min(v,U)*1e3,Math.max(v,U)]}(d.utc(m,s).valueOf(),H,_),k=D[0],I=D[1],O=d(k).utcOffset(I);return O.$x.$timezone=_,O},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(m){h=m}}})})(je);var Ae=je.exports,Ce={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(re,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,d,h){var f=d.prototype;h.utc=function(s){var _={date:s,utc:!0,args:arguments};return new d(_)},f.utc=function(s){var _=h(this.toDate(),{locale:this.$L,utc:!0});return s?_.add(this.utcOffset(),n):_},f.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var $=f.parse;f.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),$.call(this,s)};var T=f.init;f.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else T.call(this)};var L=f.utcOffset;f.utcOffset=function(s,_){var H=this.$utils().u;if(H(s))return this.$u?0:H(this.$offset)?L.call(this):this.$offset;if(typeof s=="string"&&(s=function(O){O===void 0&&(O="");var j=O.match(i);if(!j)return null;var A=(""+j[0]).match(r)||["-",0,0],P=A[0],S=60*+A[1]+ +A[2];return S===0?0:P==="+"?S:-S}(s),s===null))return this;var D=Math.abs(s)<=16?60*s:s,k=this;if(_)return k.$offset=D,k.$u=s===0,k;if(s!==0){var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(D+I,n)).$offset=D,k.$x.$localOffset=I}else k=this.utc();return k};var m=f.format;f.format=function(s){var _=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,_)},f.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var c=f.toDate;f.toDate=function(s){return s==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var p=f.diff;f.diff=function(s,_,H){if(s&&this.$u===s.$u)return p.call(this,s,_,H);var D=this.local(),k=h(s).local();return p.call(D,k,_,H)}}})})(Ce);var Ie=Ce.exports;const ht={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},W=(e,t,n)=>{let i=ht[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)},ft={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:W,m:W,mm:W,h:W,hh:W,d:W,dd:W,M:W,MM:W,y:W,yy:W}},pt=e=>{e.locale("de",ft)},Mt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},F=(e,t,n)=>{let i=Mt[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)},Yt={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:F,m:F,mm:F,h:F,hh:F,d:F,dd:F,M:F,MM:F,y:F,yy:F}},gt=e=>{e.locale("de-at",Yt)},yt={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("_")},vt=e=>{e.locale("en",yt)},$t={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:e=>`${e}º`},Lt=e=>{e.locale("es",$t)},Dt={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:e=>`${e}${e===1?"er":""}`},St=e=>{e.locale("fr",Dt)},me=e=>e%10<5&&e%10>1&&~~(e/10)%10!==1,ee=(e,t,n)=>{const i=`${e} `;switch(n){case"m":return t?"minuta":"minutę";case"mm":return i+(me(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(me(e)?"godziny":"godzin");case"MM":return i+(me(e)?"miesiące":"miesięcy");case"yy":return i+(me(e)?"lata":"lat")}},Pe="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),Ee="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),bt=/D MMMM/,he=(e,t)=>bt.test(t)?Pe[e.month()]:Ee[e.month()];he.s=Ee,he.f=Pe;const wt={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:he,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:ee,mm:ee,h:ee,hh:ee,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:ee,y:"rok",yy:ee},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}},kt=e=>{e.locale("pl",wt)},Tt={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:e=>`${e}º`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}},Ht=e=>{e.locale("pt-br",Tt)},Ue="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),We="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),Fe="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),Je="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),Ne=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,Ot=(e,t)=>{const n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]},te=(e,t,n)=>n==="m"?t?"минута":"минуту":`${e} ${Ot({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+e)}`,fe=(e,t)=>Ne.test(t)?Ue[e.month()]:We[e.month()];fe.s=We,fe.f=Ue;const pe=(e,t)=>Ne.test(t)?Fe[e.month()]:Je[e.month()];pe.s=Je,pe.f=Fe;const zt={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:fe,monthsShort:pe,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:te,mm:te,h:"час",hh:te,d:"день",dd:te,M:"месяц",MM:te,y:"год",yy:te},ordinal:e=>e,meridiem:e=>e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},xt=e=>{e.locale("ru",zt)},se=e=>e>1&&e<5&&~~(e/10)!==1,J=(e,t,n,i)=>{const r=`${e} `;switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?r+(se(e)?"minúty":"minút"):`${r}minútami`;case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(se(e)?"hodiny":"hodín"):`${r}hodinami`;case"d":return t||i?"deň":"dňom";case"dd":return t||i?r+(se(e)?"dni":"dní"):`${r}dňami`;case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?r+(se(e)?"mesiace":"mesiacov"):`${r}mesiacmi`;case"y":return t||i?"rok":"rokom";case"yy":return t||i?r+(se(e)?"roky":"rokov"):`${r}rokmi`}},jt={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:e=>`${e}.`,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:J,m:J,mm:J,h:J,hh:J,d:J,dd:J,M:J,MM:J,y:J,yy:J}},At=e=>{e.locale("sk",jt)},Ze="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),Re="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),Ct=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,It=(e,t)=>{const n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]},V=(e,t,n)=>n==="m"?t?"хвилина":"хвилину":n==="h"?t?"година":"годину":`${e} ${It({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+e)}`,Me=(e,t)=>Ct.test(t)?Ze[e.month()]:Re[e.month()];Me.s=Re,Me.f=Ze;const Pt={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:Me,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:V,mm:V,h:V,hh:V,d:"день",dd:V,M:"місяць",MM:V,y:"рік",yy:V},ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}},Et=e=>{e.locale("uk",Pt)},Ut={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}},Wt=e=>{e.locale("vi",Ut)},Ft={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:(e,t)=>{switch(t){case"W":return`${e}周`;default:return`${e}日`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:(e,t)=>{const n=e*100+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},Jt=e=>{e.locale("zh",Ft)},Nt={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}},Zt=e=>{e.locale("zh-tw",Nt)},Rt={name:"ja-jp",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日曜_月曜_火曜_水曜_木曜_金曜_土曜".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時mm分",LLLL:"YYYY年M月D日ddddAh時mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s以内",past:"%s前",s:"数秒",m:"1 分",mm:"%d 分",h:"1 時間",hh:"%d 時間",d:"1 日",dd:"%d 日",M:"1 ヶ月",MM:"%d ヶ月",y:"1 年",yy:"%d 年"},meridiem:(e,t)=>{const n=e*100+t;return n<600?"朝":n<1200?"午前":n<1800?"午後":n<2e3?"晚":"夜"}},Vt=e=>{e.locale("ja",Rt)},qt={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),ordinal:e=>`${e}.`,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY HH:mm dddd"}},Bt=e=>{e.locale("tr",qt)};b.extend(ct),b.extend(xe),b.extend(Ie),b.extend(Ae),pt(b),gt(b),vt(b),Lt(b),St(b),kt(b),Ht(b),xt(b),At(b),Et(b),Wt(b),Jt(b),Zt(b),Vt(b),Bt(b);const Gt=(e="en")=>{const t=e.toLowerCase();return["de","de-at","en","es","fr","pl","pt-br","ru","sk","uk","vi","zh","zh-tw","ja","tr"].includes(t)?t:t==="en-us"||t==="en-uk"?"en":t==="es-es"?"es":t==="fr-fr"?"fr":t==="pl-pl"?"pl":t==="ru-ru"?"ru":t==="uk-ua"?"uk":t==="sk-sk"?"sk":t==="vi-vn"?"vi":t==="zh-cn"?"zh":t==="ja-jp"?"ja":t==="tr-tr"?"tr":(console.warn(`${e} locale missing in config`),"en")},ae=(e,...t)=>{if(t.length===0)return e;const n=t.shift()||{};return Object.keys(n).forEach(i=>{typeof e[i]=="object"&&!Array.isArray(e[i])&&typeof n[i]=="object"&&!Array.isArray(n[i])?ae(e[i],n[i]):typeof n[i]=="object"?Array.isArray(n[i])?e[i]=[...n[i]]:e[i]={...n[i]}:e[i]=n[i]}),ae(e,...t)};b.extend(xe),b.extend(Ie),b.extend(Ae);const oe=(e,t)=>{if(e){if(b(e instanceof Date?e:e.trim()).isValid()){const i=t?b(e).tz(t):b(e),r=i.year(),o=i.month()+1,d=i.date(),h=i.hour(),f=i.minute(),$=i.second(),T=i.millisecond(),L=h===0&&f===0&&$===0&&T===0;return{value:i.toDate(),info:{year:r,month:o,day:d,...L?{}:{hour:h,minute:f,second:$}},type:L?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(e.trim());if(n){const[,i,r,o,d,h,f]=n,$=_=>typeof _>"u"?void 0:Number(_),T=_=>_&&_<100?_+2e3:_,L=_=>d&&h&&!f?0:_,m={year:T($(i)),month:$(r),day:$(o),hour:$(d),minute:$(h),second:L($(f))},c=i===void 0&&r===void 0&&o===void 0,p=d===void 0&&h===void 0&&f===void 0,s=b({...m,month:m.month-1}).toDate();return{value:c?void 0:s,info:p?{year:m.year,month:m.month,day:m.day}:c?{hour:m.hour,minute:m.minute,second:m.second}:m,type:c?"time":p?"date":"full"}}}return null},Kt=(e,t)=>{const n=oe(typeof e=="number"?new Date(e):e),i=oe(typeof t=="number"?new Date(t):t);return!n||!n.value?1:!i||!i.value?-1:i.value.getTime()-n.value.getTime()},Qt=(e,t=!1)=>e?Array.isArray(e)?e.map(n=>typeof n=="string"?{name:n}:n):typeof e=="string"?[{name:e}]:typeof e=="object"&&e.name?[e]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],Xt=e=>{if(e){if(Array.isArray(e))return e;if(typeof e=="string")return[e];console.error("Expect 'category' to be `string[] | string | undefined`, but got",e)}return[]},en=e=>{if(e){if(Array.isArray(e))return e;if(typeof e=="string")return[e];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",e)}return[]},tn=e=>{if(typeof e!="string"||e==="")return!1;const t=/^(?:\w+:)?\/\/(\S+)$/u.exec(e);if(!t)return!1;const n=t[1];return n?/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n):!1},nn=e=>e.startsWith("/"),Ye=(e,t={})=>{const n=oe(e,t.timezone);if(n){const{lang:i,timezone:r,type:o=n.type}=t;return b.locale(Gt(i)),(r?b(n.value).tz(r):b(n.value)).format(o==="date"?"LL":o==="time"?"HH:mm":"LLL")}return null},rn=(e,t)=>{var n,i,r;if(!e.data.localizedDate)if(e.frontmatter.date){const o=(n=oe(e.frontmatter.date,t))==null?void 0:n.value;o&&(e.data.localizedDate=Ye(o,{lang:e.lang,type:"date"}))}else(i=e.data.git)!=null&&i.createdTime&&(e.data.localizedDate=Ye(new Date((r=e.data.git)==null?void 0:r.createdTime),{lang:e.lang,type:"date"}))},sn=e=>e.replace(/]]>/g,"]]]]><![CDATA[>"),an=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),Ve=new Map,q=new Map,on=e=>{try{return rt(`${e} --version`,{stdio:"ignore"}).exitCode===0}catch{return!1}},ge=e=>{const t=`global:${e}`,n=Ve.get(t);return n!==void 0?n:on(e)?(Ve.set(t,!0),!0):!1},qe=(e=process.cwd(),t=!0)=>{const n=`local:${e}`,i=q.get(n);if(i!==void 0)return i;if(K(Q(e,"pnpm-lock.yaml")))return q.set(n,"pnpm"),"pnpm";if(K(Q(e,"yarn.lock")))return q.set(n,"yarn"),"yarn";if(K(Q(e,"package-lock.json")))return q.set(n,"npm"),"npm";let r=e;for(;t&&r!==$e(r);){if(r=$e(r),K(Q(r,"pnpm-lock.yaml")))return q.set(n,"pnpm"),"pnpm";if(K(Q(r,"yarn.lock")))return q.set(n,"yarn"),"yarn";if(K(Q(r,"package-lock.json")))return q.set(n,"npm"),"npm"}return null},Be=(e=process.cwd(),t=!0)=>qe(e,t)||(ge("pnpm")?"pnpm":ge("yarn")?"yarn":"npm"),un=(e,t=6)=>{const n=Le(e),i=st(n,{level:t}),r=De(i,!0);return Buffer.from(r,"binary").toString("base64")},mn=e=>{const t=Buffer.from(e,"base64").toString("binary");return De(at(Le(t,!0)))},ln=({app:e,config:t},n)=>{const{bundler:i}=e.options,r=Be();if(i.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):r!=="pnpm")){const o=t;o.viteOptions=X(o.viteOptions||{},{optimizeDeps:{include:typeof n=="string"?[n]:n}}),o.viteOptions.optimizeDeps.include=Array.from(new Set(o.viteOptions.optimizeDeps.include))}},dn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{optimizeDeps:{exclude:typeof n=="string"?[n]:n}}),r.viteOptions.optimizeDeps.exclude=Array.from(new Set(r.viteOptions.optimizeDeps.exclude))}},_n=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{ssr:{external:typeof n=="string"?[n]:n}})}},cn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("vite")){const r=t;r.viteOptions=X(r.viteOptions||{},{ssr:{noExternal:typeof n=="string"?[n]:n}})}},hn=(e,t,n,i,r="The server encountered an error")=>{const{base:o,bundler:d}=t.options;if(t.env.isDev&&d.name.endsWith("vite")){const h=e,f=(T,L)=>{i(T).then(m=>{L.statusCode=200,L.end(m)}).catch(()=>{L.statusCode=500,L.end(r)})},$={name:`virtual:dev-server-mock/${n}`,configureServer:({middlewares:T})=>{T.use(`${o}${ve(n)}`,f)}};h.viteOptions=X(h.viteOptions||{},{plugins:[$]})}if(t.env.isDev&&d.name.endsWith("webpack")){const h=e,{devServerSetupMiddlewares:f}=h;h.devServerSetupMiddlewares=($,T)=>{var L;return(L=T.app)==null||L.get(`${o}${ve(n)}`,(m,c)=>{i(m).then(p=>c.status(200).send(p)).catch(()=>c.status(500).send(r))}),f?f($,T):$}}},fn=({app:e,config:t},n)=>{const{bundler:i}=e.options;if(i.name.endsWith("webpack")){const r=t,{chainWebpack:o}=r;r.chainWebpack=(d,h,f)=>{o==null||o(d,h,f),n(d,h,f)}}},pn=(e,t)=>{e.pluginApi.plugins.every(n=>n.name!=="@vuepress/plugin-git")&&t&&e.use(ot(t))},Mn=e=>{const t=e.pluginApi.plugins.findIndex(n=>n.name==="@vuepress/plugin-git");t!==-1&&e.pluginApi.plugins.splice(t,1)};class Ge{constructor(t=""){this.name=t,this.currentInstance=Se()}create(t){return this.currentInstance=Se({prefixText:G.blue(`${this.name}: `)||"",text:t}),this.currentInstance}update(t){this.currentInstance?this.currentInstance.text=t:this.create(t)}load(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(t)).start()}info(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.blue(t))).info()}succeed(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.green(t))).succeed()}warn(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.yellow(t))).warn()}error(t=""){return(!t&&this.currentInstance?this.currentInstance:this.create(G.red(t))).fail()}}const Yn="vuepress-shared/noopModule",le={"de-AT":"/de-at/","en-US":"/en/","es-ES":"/es/","fr-FR":"/fr/","ja-JP":"/ja/","ko-KR":"/ko/","pl-PL":"/pl/","pt-BR":"/br/","ru-RU":"/ru/","sk-SK":"/sk/","tr-TR":"/tr/","uk-UA":"/uk/","vi-VN":"/vi/","zh-CN":"/zh/","zh-TW":"/zh-tw/"},Ke=Object.keys(le),Qe=Object.fromEntries(Ke.map(e=>[le[e],e])),Xe={},gn=(e="")=>Ke.includes(e),yn=(e,t="")=>{Xe[e]||(console.warn(`${e} locates config is missing, and will return 'en-US' instead.
${e==="root"?"":`You can contribute to https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/${t||"<YOUR PLUGIN>"}/src/node/locales.ts in this repository.
`}Note: This warning will be shown only once`),Xe[e]=!0)},vn=(e="",t=!1)=>e in Qe?Qe[e]:(t&&console.warn(`${e} isn’t assign with a lang, and will return 'en-US' instead.`),"en-US"),de=(e="",t=!1)=>e in me?me[e]:(t&&console.warn(`${e} has no path config, and will return '/' instead.`),"/"),et=e=>{var t;const n=e.siteData.locales;return(n==null?void 0:n["/"])&&((t=n["/"])==null?void 0:t.lang)?n["/"].lang:e.siteData.lang},tt=e=>de(et(e),e.env.isDebug),nt=e=>Array.from(new Set([...Object.keys(e.siteData.locales)])),$n=({app:e,name:t,default:n,config:i={}})=>{const r=tt(e),o=new Ge(t);return Object.fromEntries([...nt(e).filter(d=>d!=="/").map(d=>{const h=n[d]||(de(e.options.locales[d].lang)==="/"?null:n[de(e.options.locales[d].lang)]);return h||o.warn(`Locale ${d} is missing it's i18n config`),[d,ae({},h||n[r]||{},i[d]||{})]}),["/",ae({},n[r],i["/"]||i[r]||{})]])},it=[/(?:^|\n).*?(`{3,}).*?\n[\s\S]*?\1\n/gm,/^[-*]{3,}$/gm,/\[\^.+?\](: .*?$)?/gm],Ln=[[/^#{1,6} (.*)$/gm,"$1"],[/.\n[=-]+\s*(\n|$)/g,""],[/^\s*[-+*] (.*)$/gm,"$1; "],[/^ *?!\[(.*?)\]\((.*?)\)$/gm,"$1"],[/^(?:\s*>)+(.*)$/gm,"$1"],[/(^|[^\\])~~(.|[^\s].*?[^\s])~~/gm,"$1"],[/(^|[^\\])([*|_]{1,2})(.*?)([^\\])\2/gm,"$1$3$4"],[/(^|[^\\`])`([^`]*?)`([^`]|$)/gm,"$1$2$3"],[/``\s(.*?)\s``/g,"$1"],[/(^|[^\\])\[(.*?)\]\((.*?)\)/gm,"$1$2 ($3)"]],Dn=e=>{if(!e)return"";let t=ut(e),n="";for(;(n=t.replace(/(?:^|\n).*?(:{3,})\s*(?:.+?)(?:\s+(.*))?\n([\s\S]*?)\1\n/gm,`$2
`}Note: This warning will be shown only once`),Xe[e]=!0)},vn=(e="",t=!1)=>e in Qe?Qe[e]:(t&&console.warn(`${e} isn’t assign with a lang, and will return 'en-US' instead.`),"en-US"),de=(e="",t=!1)=>e in le?le[e]:(t&&console.warn(`${e} has no path config, and will return '/' instead.`),"/"),et=e=>{var t;const n=e.siteData.locales;return(n==null?void 0:n["/"])&&((t=n["/"])==null?void 0:t.lang)?n["/"].lang:e.siteData.lang},tt=e=>de(et(e),e.env.isDebug),nt=e=>Array.from(new Set([...Object.keys(e.siteData.locales)])),$n=({app:e,name:t,default:n,config:i={}})=>{const r=tt(e),o=new Ge(t);return Object.fromEntries([...nt(e).filter(d=>d!=="/").map(d=>{const h=n[d]||(de(e.options.locales[d].lang)==="/"?null:n[de(e.options.locales[d].lang)]);return h||o.warn(`Locale ${d} is missing it's i18n config`),[d,ae({},h||n[r]||{},i[d]||{})]}),["/",ae({},n[r],i["/"]||i[r]||{})]])},it=[/(?:^|\n).*?(`{3,}).*?\n[\s\S]*?\1(?:\n|$)/gm,/^@/gm,/^[-*]{3,}$/gm,/\[\^.+?\](: .*?$)?/gm,/^[[toc]]$/gm],Ln=[[/^#{1,6} (.*)$/gm,"$1"],[/.\n[=-]+\s*(\n|$)/g,""],[/^\s*[-+*] (.*)$/gm,"$1; "],[/^ *?!\[(.*?)\]\((.*?)\)$/gm,"$1"],[/^(?:\s*>)+(.*)$/gm,"$1"],[/(^|[^\\])~~(.|[^\s].*?[^\s])~~/gm,"$1"],[/(^|[^\\])([*|_]{1,2})(.*?)([^\\])\2/gm,"$1$3$4"],[/(^|[^\\`])`([^`]*?)`([^`]|$)/gm,"$1$2$3"],[/``\s(.*?)\s``/g,"$1"],[/(^|[^\\])\[(.*?)\]\((.*?)\)/gm,"$1$2 ($3)"]],Dn=e=>{if(!e)return"";let t=ut(e),n="";for(;(n=t.replace(/(?:^|\n).*?(:{3,})\s*(?:.+?)(?:\s+(.*))?\n([\s\S]*?)\1\n/gm,`$2
$3`))!==t;)t=n;return t=it.reduce((i,r)=>i.replace(r,""),t),t=Ln.reduce((i,[r,o])=>i.replace(r,o),it.reduce((i,r)=>i.replace(r,""),t)),t=t.split(`
`).map(i=>i.trim()).filter(i=>Boolean(i)).join(`
`).trim(),t};export{Ge as Logger,dt as addCustomElement,dn as addViteOptimizeDepsExclude,mn as addViteOptimizeDepsInclude,_n as addViteSsrExternal,cn as addViteSsrNoExternal,ln as atou,fn as chainWebpack,gn as checkLang,Kt as compareDate,ae as deepAssign,Be as detectPackageManager,sn as encodeCDATA,an as encodeXML,Qt as getAuthor,Xt as getCategory,oe as getDate,nt as getLocalePaths,$n as getLocales,et as getRootLang,tt as getRootLangPath,en as getTag,qe as getTypeofLockFile,ge as hasGlobalInstallation,rn as injectLocalizedDate,nn as isAbsoluteUrl,tn as isUrl,de as lang2Path,Dn as md2text,X as mergeViteConfig,Yn as noopModule,vn as path2Lang,Mn as removeGitPlugin,yn as showLangError,Cn as stripTags,ce as tagHint,Ye as timeTransformer,hn as useCustomDevServer,pn as useGitPlugin,un as utoa};
`).trim(),t};export{Ge as Logger,dt as addCustomElement,dn as addViteOptimizeDepsExclude,ln as addViteOptimizeDepsInclude,_n as addViteSsrExternal,cn as addViteSsrNoExternal,mn as atou,fn as chainWebpack,gn as checkLang,Kt as compareDate,ae as deepAssign,Be as detectPackageManager,sn as encodeCDATA,an as encodeXML,Qt as getAuthor,Xt as getCategory,oe as getDate,nt as getLocalePaths,$n as getLocales,et as getRootLang,tt as getRootLangPath,en as getTag,qe as getTypeofLockFile,ge as hasGlobalInstallation,rn as injectLocalizedDate,nn as isAbsoluteUrl,tn as isUrl,de as lang2Path,Dn as md2text,X as mergeViteConfig,Yn as noopModule,vn as path2Lang,Mn as removeGitPlugin,yn as showLangError,Cn as stripTags,ce as tagHint,Ye as timeTransformer,hn as useCustomDevServer,pn as useGitPlugin,un as utoa};
//# sourceMappingURL=index.js.map
{
"name": "vuepress-shared",
"version": "2.0.0-beta.130",
"version": "2.0.0-beta.131",
"description": "Shared files for vuepress-theme-hope",

@@ -59,3 +59,2 @@ "keywords": [

"@vuepress/core": "2.0.0-beta.53",
"rimraf": "3.0.2",
"vite": "3.1.8"

@@ -62,0 +61,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc