UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

8 lines (7 loc) 110 kB
var Xo=Object.create;var dr=Object.defineProperty;var Zo=Object.getOwnPropertyDescriptor;var Ko=Object.getOwnPropertyNames;var es=Object.getPrototypeOf,rs=Object.prototype.hasOwnProperty;var L=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ts=(r,e)=>{for(var t in e)dr(r,t,{get:e[t],enumerable:!0})},tn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ko(e))!rs.call(r,i)&&i!==t&&dr(r,i,{get:()=>e[i],enumerable:!(n=Zo(e,i))||n.enumerable});return r};var vr=(r,e,t)=>(t=r!=null?Xo(es(r)):{},tn(e||!r||!r.__esModule?dr(t,"default",{value:r,enumerable:!0}):t,r)),ns=r=>tn(dr({},"__esModule",{value:!0}),r);var nn=L((Yr,zr)=>{(function(r,e){typeof Yr=="object"&&typeof zr<"u"?zr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Yr,function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",i="second",o="minute",s="hour",u="day",a="week",l="month",c="quarter",g="year",f="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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(A){var _=["th","st","nd","rd"],m=A%100;return"["+A+(_[(m-20)%10]||_[m]||_[0])+"]"}},w=function(A,_,m){var b=String(A);return!b||b.length>=_?A:""+Array(_+1-b.length).join(m)+A},R={s:w,z:function(A){var _=-A.utcOffset(),m=Math.abs(_),b=Math.floor(m/60),y=m%60;return(_<=0?"+":"-")+w(b,2,"0")+":"+w(y,2,"0")},m:function A(_,m){if(_.date()<m.date())return-A(m,_);var b=12*(m.year()-_.year())+(m.month()-_.month()),y=_.clone().add(b,l),v=m-y<0,S=_.clone().add(b+(v?-1:1),l);return+(-(b+(m-y)/(v?y-S:S-y))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:l,y:g,w:a,d:u,D:f,h:s,m:o,s:i,ms:n,Q:c}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},j="en",k={};k[j]=D;var N="$isDayjsObject",B=function(A){return A instanceof q||!(!A||!A[N])},F=function A(_,m,b){var y;if(!_)return j;if(typeof _=="string"){var v=_.toLowerCase();k[v]&&(y=v),m&&(k[v]=m,y=v);var S=_.split("-");if(!y&&S.length>1)return A(S[0])}else{var E=_.name;k[E]=_,y=E}return!b&&y&&(j=y),y||!b&&j},I=function(A,_){if(B(A))return A.clone();var m=typeof _=="object"?_:{};return m.date=A,m.args=arguments,new q(m)},M=R;M.l=F,M.i=B,M.w=function(A,_){return I(A,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var q=function(){function A(m){this.$L=F(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[N]=!0}var _=A.prototype;return _.parse=function(m){this.$d=function(b){var y=b.date,v=b.utc;if(y===null)return new Date(NaN);if(M.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(h);if(S){var E=S[2]-1||0,T=(S[7]||"0").substring(0,3);return v?new Date(Date.UTC(S[1],E,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)):new Date(S[1],E,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)}}return new Date(y)}(m),this.init()},_.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},_.$utils=function(){return M},_.isValid=function(){return this.$d.toString()!==d},_.isSame=function(m,b){var y=I(m);return this.startOf(b)<=y&&y<=this.endOf(b)},_.isAfter=function(m,b){return I(m)<this.startOf(b)},_.isBefore=function(m,b){return this.endOf(b)<I(m)},_.$g=function(m,b,y){return M.u(m)?this[b]:this.set(y,m)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(m,b){var y=this,v=!!M.u(b)||b,S=M.p(m),E=function(ae,V){var ie=M.w(y.$u?Date.UTC(y.$y,V,ae):new Date(y.$y,V,ae),y);return v?ie:ie.endOf(u)},T=function(ae,V){return M.w(y.toDate()[ae].apply(y.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(V)),y)},x=this.$W,Y=this.$M,ee=this.$D,pe="set"+(this.$u?"UTC":"");switch(S){case g:return v?E(1,0):E(31,11);case l:return v?E(1,Y):E(0,Y+1);case a:var ce=this.$locale().weekStart||0,Ae=(x<ce?x+7:x)-ce;return E(v?ee-Ae:ee+(6-Ae),Y);case u:case f:return T(pe+"Hours",0);case s:return T(pe+"Minutes",1);case o:return T(pe+"Seconds",2);case i:return T(pe+"Milliseconds",3);default:return this.clone()}},_.endOf=function(m){return this.startOf(m,!1)},_.$set=function(m,b){var y,v=M.p(m),S="set"+(this.$u?"UTC":""),E=(y={},y[u]=S+"Date",y[f]=S+"Date",y[l]=S+"Month",y[g]=S+"FullYear",y[s]=S+"Hours",y[o]=S+"Minutes",y[i]=S+"Seconds",y[n]=S+"Milliseconds",y)[v],T=v===u?this.$D+(b-this.$W):b;if(v===l||v===g){var x=this.clone().set(f,1);x.$d[E](T),x.init(),this.$d=x.set(f,Math.min(this.$D,x.daysInMonth())).$d}else E&&this.$d[E](T);return this.init(),this},_.set=function(m,b){return this.clone().$set(m,b)},_.get=function(m){return this[M.p(m)]()},_.add=function(m,b){var y,v=this;m=Number(m);var S=M.p(b),E=function(Y){var ee=I(v);return M.w(ee.date(ee.date()+Math.round(Y*m)),v)};if(S===l)return this.set(l,this.$M+m);if(S===g)return this.set(g,this.$y+m);if(S===u)return E(1);if(S===a)return E(7);var T=(y={},y[o]=e,y[s]=t,y[i]=r,y)[S]||1,x=this.$d.getTime()+m*T;return M.w(x,this)},_.subtract=function(m,b){return this.add(-1*m,b)},_.format=function(m){var b=this,y=this.$locale();if(!this.isValid())return y.invalidDate||d;var v=m||"YYYY-MM-DDTHH:mm:ssZ",S=M.z(this),E=this.$H,T=this.$m,x=this.$M,Y=y.weekdays,ee=y.months,pe=y.meridiem,ce=function(V,ie,fe,ye){return V&&(V[ie]||V(b,v))||fe[ie].slice(0,ye)},Ae=function(V){return M.s(E%12||12,V,"0")},ae=pe||function(V,ie,fe){var ye=V<12?"AM":"PM";return fe?ye.toLowerCase():ye};return v.replace(p,function(V,ie){return ie||function(fe){switch(fe){case"YY":return String(b.$y).slice(-2);case"YYYY":return M.s(b.$y,4,"0");case"M":return x+1;case"MM":return M.s(x+1,2,"0");case"MMM":return ce(y.monthsShort,x,ee,3);case"MMMM":return ce(ee,x);case"D":return b.$D;case"DD":return M.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ce(y.weekdaysMin,b.$W,Y,2);case"ddd":return ce(y.weekdaysShort,b.$W,Y,3);case"dddd":return Y[b.$W];case"H":return String(E);case"HH":return M.s(E,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return ae(E,T,!0);case"A":return ae(E,T,!1);case"m":return String(T);case"mm":return M.s(T,2,"0");case"s":return String(b.$s);case"ss":return M.s(b.$s,2,"0");case"SSS":return M.s(b.$ms,3,"0");case"Z":return S}return null}(V)||S.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(m,b,y){var v,S=this,E=M.p(b),T=I(m),x=(T.utcOffset()-this.utcOffset())*e,Y=this-T,ee=function(){return M.m(S,T)};switch(E){case g:v=ee()/12;break;case l:v=ee();break;case c:v=ee()/3;break;case a:v=(Y-x)/6048e5;break;case u:v=(Y-x)/864e5;break;case s:v=Y/t;break;case o:v=Y/e;break;case i:v=Y/r;break;default:v=Y}return y?v:M.a(v)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return k[this.$L]},_.locale=function(m,b){if(!m)return this.$L;var y=this.clone(),v=F(m,b,!0);return v&&(y.$L=v),y},_.clone=function(){return M.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},A}(),C=q.prototype;return I.prototype=C,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",u],["$M",l],["$y",g],["$D",f]].forEach(function(A){C[A[1]]=function(_){return this.$g(_,A[0],A[1])}}),I.extend=function(A,_){return A.$i||(A(_,q,I),A.$i=!0),I},I.locale=F,I.isDayjs=B,I.unix=function(A){return I(1e3*A)},I.en=k[j],I.Ls=k,I.p={},I})});var on=L((Wr,Vr)=>{(function(r,e){typeof Wr=="object"&&typeof Vr<"u"?Vr.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=e()})(Wr,function(){"use strict";var r={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,t=/\d/,n=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},a=function(h){return function(p){this[h]=+p}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var D=p.match(/([+-]|\d\d)/g),w=60*D[1]+(+D[2]||0);return w===0?0:D[0]==="+"?-w:w}(h)}],c=function(h){var p=s[h];return p&&(p.indexOf?p:p.s.concat(p.f))},g=function(h,p){var D,w=s.meridiem;if(w){for(var R=1;R<=24;R+=1)if(h.indexOf(w(R,0,p))>-1){D=R>12;break}}else D=h===(p?"pm":"PM");return D},f={A:[o,function(h){this.afternoon=g(h,!1)}],a:[o,function(h){this.afternoon=g(h,!0)}],Q:[t,function(h){this.month=3*(h-1)+1}],S:[t,function(h){this.milliseconds=100*+h}],SS:[n,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,a("seconds")],ss:[i,a("seconds")],m:[i,a("minutes")],mm:[i,a("minutes")],H:[i,a("hours")],h:[i,a("hours")],HH:[i,a("hours")],hh:[i,a("hours")],D:[i,a("day")],DD:[n,a("day")],Do:[o,function(h){var p=s.ordinal,D=h.match(/\d+/);if(this.day=D[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],w:[i,a("week")],ww:[n,a("week")],M:[i,a("month")],MM:[n,a("month")],MMM:[o,function(h){var p=c("months"),D=(c("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[o,function(h){var p=c("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(h){this.year=u(h)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function d(h){var p,D;p=h,D=s&&s.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,M,q){var C=q&&q.toUpperCase();return M||D[q]||r[q]||D[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,_,m){return _||m.slice(1)})})).match(e),R=w.length,j=0;j<R;j+=1){var k=w[j],N=f[k],B=N&&N[0],F=N&&N[1];w[j]=F?{regex:B,parser:F}:k.replace(/^\[|\]$/g,"")}return function(I){for(var M={},q=0,C=0;q<R;q+=1){var A=w[q];if(typeof A=="string")C+=A.length;else{var _=A.regex,m=A.parser,b=I.slice(C),y=_.exec(b)[0];m.call(M,y),I=I.replace(y,"")}}return function(v){var S=v.afternoon;if(S!==void 0){var E=v.hours;S?E<12&&(v.hours+=12):E===12&&(v.hours=0),delete v.afternoon}}(M),M}}return function(h,p,D){D.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,R=w.parse;w.parse=function(j){var k=j.date,N=j.utc,B=j.args;this.$u=N;var F=B[1];if(typeof F=="string"){var I=B[2]===!0,M=B[3]===!0,q=I||M,C=B[2];M&&(C=B[2]),s=this.$locale(),!I&&C&&(s=D.Ls[C]),this.$d=function(b,y,v,S){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*b);var E=d(y)(b),T=E.year,x=E.month,Y=E.day,ee=E.hours,pe=E.minutes,ce=E.seconds,Ae=E.milliseconds,ae=E.zone,V=E.week,ie=new Date,fe=Y||(T||x?1:ie.getDate()),ye=T||ie.getFullYear(),fr=0;T&&!x||(fr=x>0?x-1:ie.getMonth());var hr,qr=ee||0,Br=pe||0,Ur=ce||0,Gr=Ae||0;return ae?new Date(Date.UTC(ye,fr,fe,qr,Br,Ur,Gr+60*ae.offset*1e3)):v?new Date(Date.UTC(ye,fr,fe,qr,Br,Ur,Gr)):(hr=new Date(ye,fr,fe,qr,Br,Ur,Gr),V&&(hr=S(hr).week(V).toDate()),hr)}catch{return new Date("")}}(k,F,N,D),this.init(),C&&C!==!0&&(this.$L=this.locale(C).$L),q&&k!=this.format(F)&&(this.$d=new Date("")),s={}}else if(F instanceof Array)for(var A=F.length,_=1;_<=A;_+=1){B[1]=F[_-1];var m=D.apply(this,B);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}_===A&&(this.$d=new Date(""))}else R.call(this,j)}}})});var un=L((Du,Qr)=>{var is=Object.prototype.hasOwnProperty;function sn(r){return"[Throws: "+(r?r.message:"?")+"]"}function os(r,e){if(is.call(r,e))try{return r[e]}catch(t){return sn(t)}return r[e]}function an(r){var e=[];function t(n){if(n===null||typeof n!="object")return n;if(e.indexOf(n)!==-1)return"[Circular]";if(e.push(n),typeof n.toJSON=="function")try{var i=t(n.toJSON());return e.pop(),i}catch(u){return sn(u)}if(Array.isArray(n)){var o=n.map(t);return e.pop(),o}var s=Object.keys(n).reduce(function(u,a){return u[a]=t(os(n,a)),u},{});return e.pop(),s}return t(r)}Qr.exports=function(r,e,t){return JSON.stringify(an(r),e,t)};Qr.exports.ensureProperties=an});var cn=L((ku,ln)=>{var K=require("fs"),Ve=require("path");ln.exports=gr;gr.ncp=gr;function gr(r,e,t,n){var i=n;n||(i=t,t={});var o=process.cwd(),s=Ve.resolve(o,r),u=Ve.resolve(o,e),a=t.filter,l=t.rename,c=t.transform,g=t.clobber!==!1,f=t.modified,d=t.dereference,h=null,p=0,D=0,w=0,R=t.limit||gr.limit||16;R=R<1?1:R>512?512:R,j(s);function j(v){if(p++,a){if(a instanceof RegExp){if(!a.test(v))return y(!0)}else if(typeof a=="function"&&!a(v))return y(!0)}return k(v)}function k(v){var S=d?K.stat:K.lstat;if(w>=R)return setImmediate(function(){k(v)});w++,S(v,function(E,T){var x={};if(E)return b(E);if(x.name=v,x.mode=T.mode,x.mtime=T.mtime,x.atime=T.atime,T.isDirectory())return I(x);if(T.isFile())return N(x);if(T.isSymbolicLink())return C(v)})}function N(v){var S=v.name.replace(s,u);l&&(S=l(S)),m(S,function(E){if(E)return B(v,S);if(g&&F(S,function(){B(v,S)}),f){var T=d?K.stat:K.lstat;T(S,function(x,Y){if(v.mtime.getTime()>Y.mtime.getTime())B(v,S);else return y()})}else return y()})}function B(v,S){var E=K.createReadStream(v.name),T=K.createWriteStream(S,{mode:v.mode});E.on("error",b),T.on("error",b),c?c(E,T,v):T.on("open",function(){E.pipe(T)}),T.once("finish",function(){f&&K.utimesSync(S,v.atime,v.mtime),y()})}function F(v,S){K.unlink(v,function(E){return E?b(E):S()})}function I(v){var S=v.name.replace(s,u);m(S,function(E){if(E)return M(v,S);q(v.name)})}function M(v,S){K.mkdir(S,v.mode,function(E){if(E)return b(E);q(v.name)})}function q(v){K.readdir(v,function(S,E){return S?b(S):(E.forEach(function(T){j(Ve.join(v,T))}),y())})}function C(v){var S=v.replace(s,u);K.readlink(v,function(E,T){if(E)return b(E);A(T,S)})}function A(v,S){d&&(v=Ve.resolve(o,v)),m(S,function(E){if(E)return _(v,S);K.readlink(S,function(T,x){return T?b(T):(d&&(x=Ve.resolve(o,x)),x===v?y():F(S,function(){_(v,S)}))})})}function _(v,S){K.symlink(v,S,function(E){return E?b(E):y()})}function m(v,S){K.lstat(v,function(E){return E&&E.code==="ENOENT"?S(!0):S(!1)})}function b(v){return t.stopOnError?i(v):(!h&&t.errs?h=K.createWriteStream(t.errs):h||(h=[]),typeof h.write>"u"?h.push(v):h.write(v.stack+` `),y())}function y(v){if(v||w--,D++,p===D&&w===0&&i!==void 0)return i(h||null)}}});var hn=L((Tu,fn)=>{fn.exports=function(r,e){for(var t=[],n=0;n<r.length;n++){var i=e(r[n],n);ss(i)?t.push.apply(t,i):t.push(i)}return t};var ss=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}});var pn=L((Lu,mn)=>{"use strict";mn.exports=vn;function vn(r,e,t){r instanceof RegExp&&(r=dn(r,t)),e instanceof RegExp&&(e=dn(e,t));var n=gn(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function dn(r,e){var t=e.match(r);return t?t[0]:null}vn.range=gn;function gn(r,e,t){var n,i,o,s,u,a=t.indexOf(r),l=t.indexOf(e,a+1),c=a;if(a>=0&&l>0){if(r===e)return[a,l];for(n=[],o=t.length;c>=0&&!u;)c==a?(n.push(c),a=t.indexOf(r,c+1)):n.length==1?u=[n.pop(),l]:(i=n.pop(),i<o&&(o=i,s=l),l=t.indexOf(e,c+1)),c=a<l&&a>=0?a:l;n.length&&(u=[o,s])}return u}});var On=L((Nu,An)=>{var as=hn(),yn=pn();An.exports=cs;var Sn="\0SLASH"+Math.random()+"\0",_n="\0OPEN"+Math.random()+"\0",Jr="\0CLOSE"+Math.random()+"\0",wn="\0COMMA"+Math.random()+"\0",En="\0PERIOD"+Math.random()+"\0";function Hr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function us(r){return r.split("\\\\").join(Sn).split("\\{").join(_n).split("\\}").join(Jr).split("\\,").join(wn).split("\\.").join(En)}function ls(r){return r.split(Sn).join("\\").split(_n).join("{").split(Jr).join("}").split(wn).join(",").split(En).join(".")}function bn(r){if(!r)return[""];var e=[],t=yn("{","}",r);if(!t)return r.split(",");var n=t.pre,i=t.body,o=t.post,s=n.split(",");s[s.length-1]+="{"+i+"}";var u=bn(o);return o.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),e.push.apply(e,s),e}function cs(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),Le(us(r),!0).map(ls)):[]}function fs(r){return"{"+r+"}"}function hs(r){return/^-?0\d/.test(r)}function ds(r,e){return r<=e}function vs(r,e){return r>=e}function Le(r,e){var t=[],n=yn("{","}",r);if(!n||/\$$/.test(n.pre))return[r];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=i||o,u=n.body.indexOf(",")>=0;if(!s&&!u)return n.post.match(/,.*\}/)?(r=n.pre+"{"+n.body+Jr+n.post,Le(r)):[r];var a;if(s)a=n.body.split(/\.\./);else if(a=bn(n.body),a.length===1&&(a=Le(a[0],!1).map(fs),a.length===1)){var c=n.post.length?Le(n.post,!1):[""];return c.map(function(C){return n.pre+a[0]+C})}var l=n.pre,c=n.post.length?Le(n.post,!1):[""],g;if(s){var f=Hr(a[0]),d=Hr(a[1]),h=Math.max(a[0].length,a[1].length),p=a.length==3?Math.abs(Hr(a[2])):1,D=ds,w=d<f;w&&(p*=-1,D=vs);var R=a.some(hs);g=[];for(var j=f;D(j,d);j+=p){var k;if(o)k=String.fromCharCode(j),k==="\\"&&(k="");else if(k=String(j),R){var N=h-k.length;if(N>0){var B=new Array(N+1).join("0");j<0?k="-"+B+k.slice(1):k=B+k}}g.push(k)}}else g=as(a,function(q){return Le(q,!1)});for(var F=0;F<g.length;F++)for(var I=0;I<c.length;I++){var M=l+g[F]+c[I];(!e||s||M)&&t.push(M)}return t}});var yr=L((Iu,kn)=>{kn.exports=re;re.Minimatch=Q;var Qe=function(){try{return require("path")}catch{}}()||{sep:"/"};re.sep=Qe.sep;var Kr=re.GLOBSTAR=Q.GLOBSTAR={},gs=On(),Rn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Xr="[^/]",Zr=Xr+"*?",ms="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",ps="(?:(?!(?:\\/|^)\\.).)*?",Mn=ys("().*{}+?[]^$\\!");function ys(r){return r.split("").reduce(function(e,t){return e[t]=!0,e},{})}var Cn=/\/+/;re.filter=Ss;function Ss(r,e){return e=e||{},function(t,n,i){return re(t,r,e)}}function Se(r,e){e=e||{};var t={};return Object.keys(r).forEach(function(n){t[n]=r[n]}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}re.defaults=function(r){if(!r||typeof r!="object"||!Object.keys(r).length)return re;var e=re,t=function(i,o,s){return e(i,o,Se(r,s))};return t.Minimatch=function(i,o){return new e.Minimatch(i,Se(r,o))},t.Minimatch.defaults=function(i){return e.defaults(Se(r,i)).Minimatch},t.filter=function(i,o){return e.filter(i,Se(r,o))},t.defaults=function(i){return e.defaults(Se(r,i))},t.makeRe=function(i,o){return e.makeRe(i,Se(r,o))},t.braceExpand=function(i,o){return e.braceExpand(i,Se(r,o))},t.match=function(n,i,o){return e.match(n,i,Se(r,o))},t};Q.defaults=function(r){return re.defaults(r).Minimatch};function re(r,e,t){return pr(e),t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:new Q(e,t).match(r)}function Q(r,e){if(!(this instanceof Q))return new Q(r,e);pr(r),e||(e={}),r=r.trim(),!e.allowWindowsEscape&&Qe.sep!=="/"&&(r=r.split(Qe.sep).join("/")),this.options=e,this.set=[],this.pattern=r,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}Q.prototype.debug=function(){};Q.prototype.make=_s;function _s(){var r=this.pattern,e=this.options;if(!e.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,t),t=this.globParts=t.map(function(n){return n.split(Cn)}),this.debug(this.pattern,t),t=t.map(function(n,i,o){return n.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}Q.prototype.parseNegate=ws;function ws(){var r=this.pattern,e=!1,t=this.options,n=0;if(!t.nonegate){for(var i=0,o=r.length;i<o&&r.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=r.substr(n)),this.negate=e}}re.braceExpand=function(r,e){return Dn(r,e)};Q.prototype.braceExpand=Dn;function Dn(r,e){return e||(this instanceof Q?e=this.options:e={}),r=typeof r>"u"?this.pattern:r,pr(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:gs(r)}var Es=1024*64,pr=function(r){if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>Es)throw new TypeError("pattern is too long")};Q.prototype.parse=bs;var mr={};function bs(r,e){pr(r);var t=this.options;if(r==="**")if(t.noglobstar)r="*";else return Kr;if(r==="")return"";var n="",i=!!t.nocase,o=!1,s=[],u=[],a,l=!1,c=-1,g=-1,f=r.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(a){switch(a){case"*":n+=Zr,i=!0;break;case"?":n+=Xr,i=!0;break;default:n+="\\"+a;break}d.debug("clearStateChar %j %j",a,n),a=!1}}for(var p=0,D=r.length,w;p<D&&(w=r.charAt(p));p++){if(this.debug("%s %s %s %j",r,p,n,w),o&&Mn[w]){n+="\\"+w,o=!1;continue}switch(w){case"/":return!1;case"\\":h(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,p,n,w),l){this.debug(" in class"),w==="!"&&p===g+1&&(w="^"),n+=w;continue}d.debug("call clearStateChar %j",a),h(),a=w,t.noext&&h();continue;case"(":if(l){n+="(";continue}if(!a){n+="\\(";continue}s.push({type:a,start:p-1,reStart:n.length,open:Rn[a].open,close:Rn[a].close}),n+=a==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",a,n),a=!1;continue;case")":if(l||!s.length){n+="\\)";continue}h(),i=!0;var R=s.pop();n+=R.close,R.type==="!"&&u.push(R),R.reEnd=n.length;continue;case"|":if(l||!s.length||o){n+="\\|",o=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+w;continue}l=!0,g=p,c=n.length,n+=w;continue;case"]":if(p===g+1||!l){n+="\\"+w,o=!1;continue}var j=r.substring(g+1,p);try{RegExp("["+j+"]")}catch{var k=this.parse(j,mr);n=n.substr(0,c)+"\\["+k[0]+"\\]",i=i||k[1],l=!1;continue}i=!0,l=!1,n+=w;continue;default:h(),o?o=!1:Mn[w]&&!(w==="^"&&l)&&(n+="\\"),n+=w}}for(l&&(j=r.substr(g+1),k=this.parse(j,mr),n=n.substr(0,c)+"\\["+k[0],i=i||k[1]),R=s.pop();R;R=s.pop()){var N=n.slice(R.reStart+R.open.length);this.debug("setting tail",n,R),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(T,x,Y){return Y||(Y="\\"),x+x+Y+"|"}),this.debug(`tail=%j %s`,N,N,R,n);var B=R.type==="*"?Zr:R.type==="?"?Xr:"\\"+R.type;i=!0,n=n.slice(0,R.reStart)+B+"\\("+N}h(),o&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var I=u.length-1;I>-1;I--){var M=u[I],q=n.slice(0,M.reStart),C=n.slice(M.reStart,M.reEnd-8),A=n.slice(M.reEnd-8,M.reEnd),_=n.slice(M.reEnd);A+=_;var m=q.split("(").length-1,b=_;for(p=0;p<m;p++)b=b.replace(/\)[+*?]?/,"");_=b;var y="";_===""&&e!==mr&&(y="$");var v=q+C+_+y+A;n=v}if(n!==""&&i&&(n="(?=.)"+n),F&&(n=f+n),e===mr)return[n,i];if(!i)return Os(r);var S=t.nocase?"i":"";try{var E=new RegExp("^"+n+"$",S)}catch{return new RegExp("$.")}return E._glob=r,E._src=n,E}re.makeRe=function(r,e){return new Q(r,e||{}).makeRe()};Q.prototype.makeRe=As;function As(){if(this.regexp||this.regexp===!1)return this.regexp;var r=this.set;if(!r.length)return this.regexp=!1,this.regexp;var e=this.options,t=e.noglobstar?Zr:e.dot?ms:ps,n=e.nocase?"i":"",i=r.map(function(o){return o.map(function(s){return s===Kr?t:typeof s=="string"?Rs(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}re.match=function(r,e,t){t=t||{};var n=new Q(e,t);return r=r.filter(function(i){return n.match(i)}),n.options.nonull&&!r.length&&r.push(e),r};Q.prototype.match=function(e,t){if(typeof t>"u"&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var n=this.options;Qe.sep!=="/"&&(e=e.split(Qe.sep).join("/")),e=e.split(Cn),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var o,s;for(s=e.length-1;s>=0&&(o=e[s],!o);s--);for(s=0;s<i.length;s++){var u=i[s],a=e;n.matchBase&&u.length===1&&(a=[o]);var l=this.matchOne(a,u,t);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Q.prototype.matchOne=function(r,e,t){var n=this.options;this.debug("matchOne",{this:this,file:r,pattern:e}),this.debug("matchOne",r.length,e.length);for(var i=0,o=0,s=r.length,u=e.length;i<s&&o<u;i++,o++){this.debug("matchOne loop");var a=e[o],l=r[i];if(this.debug(e,a,l),a===!1)return!1;if(a===Kr){this.debug("GLOBSTAR",[e,a,l]);var c=i,g=o+1;if(g===u){for(this.debug("** at the end");i<s;i++)if(r[i]==="."||r[i]===".."||!n.dot&&r[i].charAt(0)===".")return!1;return!0}for(;c<s;){var f=r[c];if(this.debug(` globstar while`,r,c,e,g,f),this.matchOne(r.slice(c),e.slice(g),t))return this.debug("globstar found match!",c,s,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",r,c,e,g);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(t&&(this.debug(` >>> no match, partial?`,r,c,e,g),c===s))}var d;if(typeof a=="string"?(d=l===a,this.debug("string match",a,l,d)):(d=l.match(a),this.debug("pattern match",a,l,d)),!d)return!1}if(i===s&&o===u)return!0;if(i===s)return t;if(o===u)return i===s-1&&r[i]==="";throw new Error("wtf?")};function Os(r){return r.replace(/\\(.)/g,"$1")}function Rs(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Tn=L((xu,et)=>{typeof Object.create=="function"?et.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ln=L((ju,tt)=>{try{if(rt=require("util"),typeof rt.inherits!="function")throw"";tt.exports=rt.inherits}catch{tt.exports=Tn()}var rt});var _r=L((Pu,Sr)=>{"use strict";function Nn(r){return r.charAt(0)==="/"}function In(r){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(r),n=t[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(t[2]||i)}Sr.exports=process.platform==="win32"?In:Nn;Sr.exports.posix=Nn;Sr.exports.win32=In});var ot=L(ue=>{ue.alphasort=Pn;ue.alphasorti=jn;ue.setopts=Ts;ue.ownProp=xn;ue.makeAbs=it;ue.finish=Ls;ue.mark=Ns;ue.isIgnored=$n;ue.childrenIgnored=Is;function xn(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var Ne=require("path"),Ms=yr(),Cs=_r(),nt=Ms.Minimatch;function jn(r,e){return r.toLowerCase().localeCompare(e.toLowerCase())}function Pn(r,e){return r.localeCompare(e)}function Ds(r,e){r.ignore=e.ignore||[],Array.isArray(r.ignore)||(r.ignore=[r.ignore]),r.ignore.length&&(r.ignore=r.ignore.map(ks))}function ks(r){var e=null;if(r.slice(-3)==="/**"){var t=r.replace(/(\/\*\*)+$/,"");e=new nt(t,{dot:!0})}return{matcher:new nt(r,{dot:!0}),gmatcher:e}}function Ts(r,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}r.silent=!!t.silent,r.pattern=e,r.strict=t.strict!==!1,r.realpath=!!t.realpath,r.realpathCache=t.realpathCache||Object.create(null),r.follow=!!t.follow,r.dot=!!t.dot,r.mark=!!t.mark,r.nodir=!!t.nodir,r.nodir&&(r.mark=!0),r.sync=!!t.sync,r.nounique=!!t.nounique,r.nonull=!!t.nonull,r.nosort=!!t.nosort,r.nocase=!!t.nocase,r.stat=!!t.stat,r.noprocess=!!t.noprocess,r.maxLength=t.maxLength||1/0,r.cache=t.cache||Object.create(null),r.statCache=t.statCache||Object.create(null),r.symlinks=t.symlinks||Object.create(null),Ds(r,t),r.changedCwd=!1;var n=process.cwd();xn(t,"cwd")?(r.cwd=t.cwd,r.changedCwd=Ne.resolve(t.cwd)!==n):r.cwd=n,r.root=t.root||Ne.resolve(r.cwd,"/"),r.root=Ne.resolve(r.root),process.platform==="win32"&&(r.root=r.root.replace(/\\/g,"/")),r.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,r.minimatch=new nt(e,t),r.options=r.minimatch.options}function Ls(r){for(var e=r.nounique,t=e?[]:Object.create(null),n=0,i=r.matches.length;n<i;n++){var o=r.matches[n];if(!o||Object.keys(o).length===0){if(r.nonull){var s=r.minimatch.globSet[n];e?t.push(s):t[s]=!0}}else{var u=Object.keys(o);e?t.push.apply(t,u):u.forEach(function(a){t[a]=!0})}}if(e||(t=Object.keys(t)),r.nosort||(t=t.sort(r.nocase?jn:Pn)),r.mark){for(var n=0;n<t.length;n++)t[n]=r._mark(t[n]);r.nodir&&(t=t.filter(function(a){return!/\/$/.test(a)}))}r.ignore.length&&(t=t.filter(function(a){return!$n(r,a)})),r.found=t}function Ns(r,e){var t=it(r,e),n=r.cache[t],i=e;if(n){var o=n==="DIR"||Array.isArray(n),s=e.slice(-1)==="/";if(o&&!s?i+="/":!o&&s&&(i=i.slice(0,-1)),i!==e){var u=it(r,i);r.statCache[u]=r.statCache[t],r.cache[u]=r.cache[t]}}return i}function it(r,e){var t=e;return e.charAt(0)==="/"?t=Ne.join(r.root,e):Cs(e)||e===""?t=e:r.changedCwd?t=Ne.resolve(r.cwd,e):t=Ne.resolve(e),t}function $n(r,e){return r.ignore.length?r.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}):!1}function Is(r,e){return r.ignore.length?r.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}):!1}});var Gn=L((Yu,Un)=>{Un.exports=Bn;Bn.GlobSync=W;var He=require("fs"),Fn=yr(),Fu=Fn.Minimatch,qu=ut().Glob,Bu=require("util"),st=require("path"),qn=require("assert"),wr=_r(),_e=ot(),Uu=_e.alphasort,Gu=_e.alphasorti,xs=_e.setopts,at=_e.ownProp,js=_e.childrenIgnored;function Bn(r,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new W(r,e).found}function W(r,e){if(!r)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof W))return new W(r,e);if(xs(this,r,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var n=0;n<t;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}W.prototype._finish=function(){if(qn(this instanceof W),this.realpath){var r=this;this.matches.forEach(function(e,t){var n=r.matches[t]=Object.create(null);for(var i in e)try{i=r._makeAbs(i);var o=He.realpathSync(i,r.realpathCache);n[o]=!0}catch(s){if(s.syscall==="stat")n[r._makeAbs(i)]=!0;else throw s}})}_e.finish(this)};W.prototype._process=function(r,e,t){qn(this instanceof W);for(var n=0;typeof r[n]=="string";)n++;var i;switch(n){case r.length:this._processSimple(r.join("/"),e);return;case 0:i=null;break;default:i=r.slice(0,n).join("/");break}var o=r.slice(n),s;i===null?s=".":((wr(i)||wr(r.join("/")))&&(!i||!wr(i))&&(i="/"+i),s=i);var u=this._makeAbs(s);if(!js(this,s)){var a=o[0]===Fn.GLOBSTAR;a?this._processGlobStar(i,s,u,o,e,t):this._processReaddir(i,s,u,o,e,t)}};W.prototype._processReaddir=function(r,e,t,n,i,o){var s=this._readdir(t,o);if(s){for(var u=n[0],a=!!this.minimatch.negate,l=u._glob,c=this.dot||l.charAt(0)===".",g=[],f=0;f<s.length;f++){var d=s[f];if(d.charAt(0)!=="."||c){var h;a&&!r?h=!d.match(u):h=d.match(u),h&&g.push(d)}}var p=g.length;if(p!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<p;f++){var d=g[f];r&&(r.slice(-1)!=="/"?d=r+"/"+d:d=r+d),d.charAt(0)==="/"&&!this.nomount&&(d=st.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<p;f++){var d=g[f],D;r?D=[r,d]:D=[d],this._process(D.concat(n),i,o)}}}};W.prototype._emitMatch=function(r,e){var t=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[r][e]){if(this.nodir){var n=this.cache[this._makeAbs(e)];if(n==="DIR"||Array.isArray(n))return}this.matches[r][e]=!0,this.stat&&this._stat(e)}};W.prototype._readdirInGlobStar=function(r){if(this.follow)return this._readdir(r,!1);var e,t,n;try{t=He.lstatSync(r)}catch{return null}var i=t.isSymbolicLink();return this.symlinks[r]=i,!i&&!t.isDirectory()?this.cache[r]="FILE":e=this._readdir(r,!1),e};W.prototype._readdir=function(r,e){var t;if(e&&!at(this.symlinks,r))return this._readdirInGlobStar(r);if(at(this.cache,r)){var n=this.cache[r];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(r,He.readdirSync(r))}catch(i){return this._readdirError(r,i),null}};W.prototype._readdirEntries=function(r,e){if(!this.mark&&!this.stat)for(var t=0;t<e.length;t++){var n=e[t];r==="/"?n=r+n:n=r+"/"+n,this.cache[n]=!0}return this.cache[r]=e,e};W.prototype._readdirError=function(r,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(r)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(r)]=!1;break;default:if(this.cache[this._makeAbs(r)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};W.prototype._processGlobStar=function(r,e,t,n,i,o){var s=this._readdir(t,o);if(s){var u=n.slice(1),a=r?[r]:[],l=a.concat(u);this._process(l,i,!1);var c=s.length,g=this.symlinks[t];if(!(g&&o))for(var f=0;f<c;f++){var d=s[f];if(!(d.charAt(0)==="."&&!this.dot)){var h=a.concat(s[f],u);this._process(h,i,!0);var p=a.concat(s[f],n);this._process(p,i,!0)}}}};W.prototype._processSimple=function(r,e){var t=this._stat(r);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!t){if(r&&wr(r)&&!this.nomount){var n=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=st.join(this.root,r):(r=st.resolve(this.root,r),n&&(r+="/"))}process.platform==="win32"&&(r=r.replace(/\\/g,"/")),this.matches[e][r]=!0}};W.prototype._stat=function(r){var e=this._makeAbs(r),t=r.slice(-1)==="/";if(r.length>this.maxLength)return!1;if(!this.stat&&at(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var n,i=this.statCache[e];if(!i){var o;try{o=He.lstatSync(e)}catch{return!1}if(o.isSymbolicLink())try{i=He.statSync(e)}catch{i=o}else i=o}this.statCache[e]=i;var s=i.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||s,t&&s!=="DIR"?!1:s};W.prototype._mark=function(r){return _e.mark(this,r)};W.prototype._makeAbs=function(r){return _e.makeAbs(this,r)}});var lt=L((zu,zn)=>{zn.exports=Yn;function Yn(r,e){if(r&&e)return Yn(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(n){t[n]=r[n]}),t;function t(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=r.apply(this,n),s=n[n.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(u){o[u]=s[u]}),o}}});var ft=L((Wu,ct)=>{var Wn=lt();ct.exports=Wn(Er);ct.exports.strict=Wn(Vn);Er.proto=Er(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Er(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Vn(this)},configurable:!0})});function Er(r){var e=function(){return e.called?e.value:(e.called=!0,e.value=r.apply(this,arguments))};return e.called=!1,e}function Vn(r){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=r.apply(this,arguments)},t=r.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var Hn=L((Vu,Qn)=>{var Ps=lt(),Je=Object.create(null),$s=ft();Qn.exports=Ps(Fs);function Fs(r,e){return Je[r]?(Je[r].push(e),null):(Je[r]=[e],qs(r))}function qs(r){return $s(function e(){var t=Je[r],n=t.length,i=Bs(arguments);try{for(var o=0;o<n;o++)t[o].apply(null,i)}finally{t.length>n?(t.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete Je[r]}})}function Bs(r){for(var e=r.length,t=[],n=0;n<e;n++)t[n]=r[n];return t}});var ut=L((Zu,Xn)=>{Xn.exports=Oe;var Xe=require("fs"),Jn=yr(),Qu=Jn.Minimatch,Us=Ln(),Gs=require("events").EventEmitter,ht=require("path"),dt=require("assert"),br=_r(),gt=Gn(),he=ot(),Hu=he.alphasort,Ju=he.alphasorti,Ys=he.setopts,vt=he.ownProp,mt=Hn(),Xu=require("util"),zs=he.childrenIgnored,Ws=he.isIgnored,Vs=ft();function Oe(r,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return gt(r,e)}return new $(r,e,t)}Oe.sync=gt;var Qs=Oe.GlobSync=gt.GlobSync;Oe.glob=Oe;function Hs(r,e){if(e===null||typeof e!="object")return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r}Oe.hasMagic=function(r,e){var t=Hs({},e);t.noprocess=!0;var n=new $(r,t),i=n.minimatch.set;if(i.length>1)return!0;for(var o=0;o<i[0].length;o++)if(typeof i[0][o]!="string")return!0;return!1};Oe.Glob=$;Us($,Gs);function $(r,e,t){if(typeof e=="function"&&(t=e,e=null),e&&e.sync){if(t)throw new TypeError("callback provided to sync glob");return new Qs(r,e)}if(!(this instanceof $))return new $(r,e,t);Ys(this,r,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof t=="function"&&(t=Vs(t),this.on("error",t),this.on("end",function(u){t(null,u)}));var n=this,i=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(i),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return s();for(var o=0;o<i;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--n._processing,n._processing<=0&&n._finish()}}$.prototype._finish=function(){if(dt(this instanceof $),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();he.finish(this),this.emit("end",this.found)}};$.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var r=this.matches.length;if(r===0)return this._finish();for(var e=this,t=0;t<this.matches.length;t++)this._realpathSet(t,n);function n(){--r===0&&e._finish()}};$.prototype._realpathSet=function(r,e){var t=this.matches[r];if(!t)return e();var n=Object.keys(t),i=this,o=n.length;if(o===0)return e();var s=this.matches[r]=Object.create(null);n.forEach(function(u,a){u=i._makeAbs(u),Xe.realpath(u,i.realpathCache,function(l,c){l?l.syscall==="stat"?s[u]=!0:i.emit("error",l):s[c]=!0,--o===0&&(i.matches[r]=s,e())})})};$.prototype._mark=function(r){return he.mark(this,r)};$.prototype._makeAbs=function(r){return he.makeAbs(this,r)};$.prototype.abort=function(){this.aborted=!0,this.emit("abort")};$.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};$.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var r=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<r.length;e++){var t=r[e];this._emitMatch(t[0],t[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var i=n[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};$.prototype._process=function(r,e,t,n){if(dt(this instanceof $),dt(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([r,e,t,n]);return}for(var i=0;typeof r[i]=="string";)i++;var o;switch(i){case r.length:this._processSimple(r.join("/"),e,n);return;case 0:o=null;break;default:o=r.slice(0,i).join("/");break}var s=r.slice(i),u;o===null?u=".":((br(o)||br(r.join("/")))&&(!o||!br(o))&&(o="/"+o),u=o);var a=this._makeAbs(u);if(zs(this,u))return n();var l=s[0]===Jn.GLOBSTAR;l?this._processGlobStar(o,u,a,s,e,t,n):this._processReaddir(o,u,a,s,e,t,n)}};$.prototype._processReaddir=function(r,e,t,n,i,o,s){var u=this;this._readdir(t,o,function(a,l){return u._processReaddir2(r,e,t,n,i,o,l,s)})};$.prototype._processReaddir2=function(r,e,t,n,i,o,s,u){if(!s)return u();for(var a=n[0],l=!!this.minimatch.negate,c=a._glob,g=this.dot||c.charAt(0)===".",f=[],d=0;d<s.length;d++){var h=s[d];if(h.charAt(0)!=="."||g){var p;l&&!r?p=!h.match(a):p=h.match(a),p&&f.push(h)}}var D=f.length;if(D===0)return u();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<D;d++){var h=f[d];r&&(r!=="/"?h=r+"/"+h:h=r+h),h.charAt(0)==="/"&&!this.nomount&&(h=ht.join(this.root,h)),this._emitMatch(i,h)}return u()}n.shift();for(var d=0;d<D;d++){var h=f[d],w;r&&(r!=="/"?h=r+"/"+h:h=r+h),this._process([h].concat(n),i,o,u)}u()};$.prototype._emitMatch=function(r,e){if(!this.aborted&&!this.matches[r][e]&&!Ws(this,e)){if(this.paused){this._emitQueue.push([r,e]);return}var t=this._makeAbs(e);if(this.nodir){var n=this.cache[t];if(n==="DIR"||Array.isArray(n))return}this.mark&&(e=this._mark(e)),this.matches[r][e]=!0;var i=this.statCache[t];i&&this.emit("stat",e,i),this.emit("match",e)}};$.prototype._readdirInGlobStar=function(r,e){if(this.aborted)return;if(this.follow)return this._readdir(r,!1,e);var t="lstat\0"+r,n=this,i=mt(t,o);i&&Xe.lstat(r,i);function o(s,u){if(s)return e();var a=u.isSymbolicLink();n.symlinks[r]=a,!a&&!u.isDirectory()?(n.cache[r]="FILE",e()):n._readdir(r,!1,e)}};$.prototype._readdir=function(r,e,t){if(!this.aborted&&(t=mt("readdir\0"+r+"\0"+e,t),!!t)){if(e&&!vt(this.symlinks,r))return this._readdirInGlobStar(r,t);if(vt(this.cache,r)){var n=this.cache[r];if(!n||n==="FILE")return t();if(Array.isArray(n))return t(null,n)}var i=this;Xe.readdir(r,Js(this,r,t))}};function Js(r,e,t){return function(n,i){n?r._readdirError(e,n,t):r._readdirEntries(e,i,t)}}$.prototype._readdirEntries=function(r,e,t){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];r==="/"?i=r+i:i=r+"/"+i,this.cache[i]=!0}return this.cache[r]=e,t(null,e)}};$.prototype._readdirError=function(r,e,t){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(r)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(r)]=!1;break;default:this.cache[this._makeAbs(r)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return t()}};$.prototype._processGlobStar=function(r,e,t,n,i,o,s){var u=this;this._readdir(t,o,function(a,l){u._processGlobStar2(r,e,t,n,i,o,l,s)})};$.prototype._processGlobStar2=function(r,e,t,n,i,o,s,u){if(!s)return u();var a=n.slice(1),l=r?[r]:[],c=l.concat(a);this._process(c,i,!1,u);var g=this.symlinks[t],f=s.length;if(g&&o)return u();for(var d=0;d<f;d++){var h=s[d];if(!(h.charAt(0)==="."&&!this.dot)){var p=l.concat(s[d],a);this._process(p,i,!0,u);var D=l.concat(s[d],n);this._process(D,i,!0,u)}}u()};$.prototype._processSimple=function(r,e,t){var n=this;this._stat(r,function(i,o){n._processSimple2(r,e,i,o,t)})};$.prototype._processSimple2=function(r,e,t,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(r&&br(r)&&!this.nomount){var o=/[\/\\]$/.test(r);r.charAt(0)==="/"?r=ht.join(this.root,r):(r=ht.resolve(this.root,r),o&&(r+="/"))}process.platform==="win32"&&(r=r.replace(/\\/g,"/")),this._emitMatch(e,r),i()};$.prototype._stat=function(r,e){var t=this._makeAbs(r),n=r.slice(-1)==="/";if(r.length>this.maxLength)return e();if(!this.stat&&vt(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return e(null,i);if(n&&i==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var u=s.isDirectory()?"DIR":"FILE";return n&&u==="FILE"?e():e(null,u,s)}var a=this,l=mt("stat\0"+t,c);l&&Xe.lstat(t,l);function c(g,f){if(f&&f.isSymbolicLink())return Xe.stat(t,function(d,h){d?a._stat2(r,t,null,f,e):a._stat2(r,t,d,h,e)});a._stat2(r,t,g,f,e)}};$.prototype._stat2=function(r,e,t,n,i){if(t)return this.statCache[e]=!1,i();var o=r.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&!n.isDirectory())return i(null,!1,n);var s=n.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||s,o&&s!=="DIR"?i():i(null,s,n)}});var ni=L((Ku,ti)=>{ti.exports=_t;_t.sync=ri;var P=require("assert"),Zn=require("path"),Rr=require("fs"),Mr=ut(),Kn={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},pt=0,St=process.platform==="win32";function ei(r){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(t){r[t]=r[t]||Rr[t],t=t+"Sync",r[t]=r[t]||Rr[t]}),r.maxBusyTries=r.maxBusyTries||3,r.emfileWait=r.emfileWait||1e3,r.disableGlob=r.disableGlob||!1}function _t(r,e,t){typeof e=="function"&&(t=e,e={}),P(r,"rimraf: missing path"),P.equal(typeof r,"string","rimraf: path should be a string"),P(e,"rimraf: missing options"),P.equal(typeof e,"object","rimraf: options should be object"),P.equal(typeof t,"function","rimraf: callback function required"),ei(e);var n=0,i=null,o=0;if(e.disableGlob||!Mr.hasMagic(r))return u(null,[r]);Rr.lstat(r,function(a,l){if(!a)return u(null,[r]);Mr(r,Kn,u)});function s(a){i=i||a,--o===0&&t(i)}function u(a,l){if(a)return t(a);if(o=l.length,o===0)return t();l.forEach(function(c){yt(c,e,function g(f){if(f){if(St&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){yt(c,e,g)},d)}if(f.code==="EMFILE"&&pt<e.emfileWait)return setTimeout(function(){yt(c,e,g)},pt++);f.code==="ENOENT"&&(f=null)}pt=0,s(f)})})}}function yt(r,e,t){P(r),P(e),P(typeof t=="function"),e.lstat(r,function(n,i){if(n&&n.code==="ENOENT")return t(null);if(i&&i.isDirectory())return Ar(r,e,n,t);e.unlink(r,function(o){if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return St?Xs(r,e,o,t):Ar(r,e,o,t);if(o.code==="EISDIR")return Ar(r,e,o,t)}return t(o)})})}function Xs(r,e,t,n){P(r),P(e),P(typeof n=="function"),t&&P(t instanceof Error),e.chmod(r,666,function(i){i?n(i.code==="ENOENT"?null:t):e.stat(r,function(o,s){o?n(o.code==="ENOENT"?null:t):s.isDirectory()?Ar(r,e,t,n):e.unlink(r,n)})})}function Zs(r,e,t){P(r),P(e),t&&P(t instanceof Error);try{e.chmodSync(r,666)}catch(i){if(i.code==="ENOENT")return;throw t}try{var n=e.statSync(r)}catch(i){if(i.code==="ENOENT")return;throw t}n.isDirectory()?Or(r,e,t):e.unlinkSync(r)}function Ar(r,e,t,n){P(r),P(e),t&&P(t instanceof Error),P(typeof n=="function"),e.rmdir(r,function(i){i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Ks(r,e,n):i&&i.code==="ENOTDIR"?n(t):n(i)})}function Ks(r,e,t){P(r),P(e),P(typeof t=="function"),e.readdir(r,function(n,i){if(n)return t(n);var o=i.length;if(o===0)return e.rmdir(r,t);var s;i.forEach(function(u){_t(Zn.join(r,u),e,function(a){if(!s){if(a)return t(s=a);--o===0&&e.rmdir(r,t)}})})})}function ri(r,e){e=e||{},ei(e),P(r,"rimraf: missing path"),P.equal(typeof r,"string","rimraf: path should be a string"),P(e,"rimraf: missing options"),P.equal(typeof e,"object","rimraf: options should be object");var t;if(e.disableGlob||!Mr.hasMagic(r))t=[r];else try{Rr.lstatSync(r),t=[r]}catch{t=Mr.sync(r,Kn)}if(t.length)for(var n=0;n<t.length;n++){var r=t[n];try{var i=e.lstatSync(r)}catch(s){if(s.code==="ENOENT")return}try{i&&i.isDirectory()?Or(r,e,null):e.unlinkSync(r)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return St?Zs(r,e,s):Or(r,e,s);if(s.code!=="EISDIR")throw s;Or(r,e,s)}}}function Or(r,e,t){P(r),P(e),t&&P(t instanceof Error);try{e.rmdirSync(r)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw t;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&ea(r,e)}}function ea(r,e){P(r),P(e),e.readdirSync(r).forEach(function(t){ri(Zn.join(r,t),e)}),e.rmdirSync(r,e)}});var ai=L((el,si)=>{var Ze=require("path"),ii=require("fs"),oi=parseInt("0777",8);si.exports=Ie.mkdirp=Ie.mkdirP=Ie;function Ie(r,e,t,n){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,o=e.fs||ii;i===void 0&&(i=oi),n||(n=null);var s=t||function(){};r=Ze.resolve(r),o.mkdir(r,i,function(u){if(!u)return n=n||r,s(null,n);switch(u.code){case"ENOENT":if(Ze.dirname(r)===r)return s(u);Ie(Ze.dirname(r),e,function(a,l){a?s(a,l):Ie(r,e,s,l)});break;default:o.stat(r,function(a,l){a||!l.isDirectory()?s(u,n):s(null,n)});break}})}Ie.sync=function r(e,t,n){(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,o=t.fs||ii;i===void 0&&(i=oi),n||(n=null),e=Ze.resolve(e);try{o.mkdirSync(e,i),n=n||e}catch(u){switch(u.code){case"ENOENT":n=r(Ze.dirname(e),t,n),r(e,t,n);break;default:var s;try{s=o.statSync(e)}catch{throw u}if(!s.isDirectory())throw u;break}}return n}});var hi=L((rl,fi)=>{var xe=require("fs"),ra=cn().ncp,ta=require("path"),ui=ni(),na=ai();fi.exports=ia;function ia(r,e,t,n){typeof t=="function"&&(n=t,t={});var i=!!t.mkdirp,o=t.clobber!==!1,s=t.limit||16;i?u():a();function u(){na(ta.dirname(e),function(l){if(l)return n(l);a()})}function a(){o?xe.rename(r,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);li(r,e,o,s,n)}):xe.link(r,e,function(l){if(l){if(l.code==="EXDEV"){li(r,e,o,s,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){ci(r,e,o,s,n);return}n(l);return}xe.unlink(r,n)})}}function li(r,e,t,n,i){var o=t?"w":"wx",s=xe.createReadStream(r),u=xe.createWriteStream(e,{flags:o});s.on("error",function(l){s.destroy(),u.destroy(),u.removeListener("close",a),l.code==="EISDIR"||l.code==="EPERM"?ci(r,e,t,n,i):i(l)}),u.on("error",function(l){s.destroy(),u.destroy(),u.removeListener("close",a),i(l)}),u.once("close",a),s.pipe(u);function a(){xe.unlink(r,i)}}function ci(r,e,t,n,i){var o={stopOnErr:!0,clobber:!1,limit:n};t?ui(e,{disableGlob:!0},function(u){if(u)return i(u);s()}):s();function s(){ra(r,e,o,function(u){if(u)return i(u[0]);ui(r,{disableGlob:!0},i)})}}});var vi=L(wt=>{var di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wt.encode=function(r){if(0<=r&&r<di.length)return di[r];throw new TypeError("Must be between 0 and 63: "+r)};wt.decode=function(r){var e=65,t=90,n=97,i=122,o=48,s=57,u=43,a=47,l=26,c=52;return e<=r&&r<=t?r-e:n<=r&&r<=i?r-n+l:o<=r&&r<=s?r-o+c:r==u?62:r==a?63:-1}});var At=L(bt=>{var gi=vi(),Et=5,mi=1<<Et,pi=mi-1,yi=mi;function oa(r){return r<0?(-r<<1)+1:(r<<1)+0}function sa(r){var e=(r&1)===1,t=r>>1;return e?-t:t}bt.encode=function(e){var t="",n,i=oa(e);do n=i&pi,i>>>=Et,i>0&&(n|=yi),t+=gi.encode(n);while(i>0);return t};bt.decode=function(e,t,n){var i=e.length,o=0,s=0,u,a;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(a=gi.decode(e.charCodeAt(t++)),a===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(a&yi),a&=pi,o=o+(a<<s),s+=Et}while(u);n.value=sa(o),n.rest=t}});var $e=L(Z=>{function aa(r,e,t){if(e in r)return r[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}Z.getArg=aa;var Si=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ua=/^data:.+\,.+$/;function Ke(r){var e=r.match(Si);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Z.urlPars