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) 135 kB
var Ys=Object.create;var bt=Object.defineProperty;var Gs=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var Ws=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty;var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qs=(t,e)=>{for(var r in e)bt(t,r,{get:e[r],enumerable:!0})},Sn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zs(e))!Hs.call(t,i)&&i!==r&&bt(t,i,{get:()=>e[i],enumerable:!(n=Gs(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?Ys(Ws(t)):{},Sn(e||!t||!t.__esModule?bt(r,"default",{value:t,enumerable:!0}):r,t)),Js=t=>Sn(bt({},"__esModule",{value:!0}),t);var Ze=L((tr,rr)=>{(function(t,e){typeof tr=="object"&&typeof rr<"u"?rr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(tr,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",s="hour",o="day",u="week",l="month",c="quarter",m="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+)?$/,g=/\[([^\]]+)]|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,k={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(E){var b=["th","st","nd","rd"],v=E%100;return"["+E+(b[(v-20)%10]||b[v]||b[0])+"]"}},y=function(E,b,v){var _=String(E);return!_||_.length>=b?E:""+Array(b+1-_.length).join(v)+E},R={s:y,z:function(E){var b=-E.utcOffset(),v=Math.abs(b),_=Math.floor(v/60),S=v%60;return(b<=0?"+":"-")+y(_,2,"0")+":"+y(S,2,"0")},m:function E(b,v){if(b.date()<v.date())return-E(v,b);var _=12*(v.year()-b.year())+(v.month()-b.month()),S=b.clone().add(_,l),p=v-S<0,w=b.clone().add(_+(p?-1:1),l);return+(-(_+(v-S)/(p?S-w:w-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:l,y:m,w:u,d:o,D:f,h:s,m:a,s:i,ms:n,Q:c}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},I="en",O={};O[I]=k;var x="$isDayjsObject",j=function(E){return E instanceof U||!(!E||!E[x])},P=function E(b,v,_){var S;if(!b)return I;if(typeof b=="string"){var p=b.toLowerCase();O[p]&&(S=p),v&&(O[p]=v,S=p);var w=b.split("-");if(!S&&w.length>1)return E(w[0])}else{var D=b.name;O[D]=b,S=D}return!_&&S&&(I=S),S||!_&&I},$=function(E,b){if(j(E))return E.clone();var v=typeof b=="object"?b:{};return v.date=E,v.args=arguments,new U(v)},C=R;C.l=P,C.i=j,C.w=function(E,b){return $(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var U=function(){function E(v){this.$L=P(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[x]=!0}var b=E.prototype;return b.parse=function(v){this.$d=function(_){var S=_.date,p=_.utc;if(S===null)return new Date(NaN);if(C.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var w=S.match(h);if(w){var D=w[2]-1||0,T=(w[7]||"0").substring(0,3);return p?new Date(Date.UTC(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,T)):new Date(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,T)}}return new Date(S)}(v),this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==d},b.isSame=function(v,_){var S=$(v);return this.startOf(_)<=S&&S<=this.endOf(_)},b.isAfter=function(v,_){return $(v)<this.startOf(_)},b.isBefore=function(v,_){return this.endOf(_)<$(v)},b.$g=function(v,_,S){return C.u(v)?this[_]:this.set(S,v)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(v,_){var S=this,p=!!C.u(_)||_,w=C.p(v),D=function(ce,W){var se=C.w(S.$u?Date.UTC(S.$y,W,ce):new Date(S.$y,W,ce),S);return p?se:se.endOf(o)},T=function(ce,W){return C.w(S.toDate()[ce].apply(S.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(W)),S)},F=this.$W,Y=this.$M,ee=this.$D,be="set"+(this.$u?"UTC":"");switch(w){case m:return p?D(1,0):D(31,11);case l:return p?D(1,Y):D(0,Y+1);case u:var me=this.$locale().weekStart||0,Oe=(F<me?F+7:F)-me;return D(p?ee-Oe:ee+(6-Oe),Y);case o:case f:return T(be+"Hours",0);case s:return T(be+"Minutes",1);case a:return T(be+"Seconds",2);case i:return T(be+"Milliseconds",3);default:return this.clone()}},b.endOf=function(v){return this.startOf(v,!1)},b.$set=function(v,_){var S,p=C.p(v),w="set"+(this.$u?"UTC":""),D=(S={},S[o]=w+"Date",S[f]=w+"Date",S[l]=w+"Month",S[m]=w+"FullYear",S[s]=w+"Hours",S[a]=w+"Minutes",S[i]=w+"Seconds",S[n]=w+"Milliseconds",S)[p],T=p===o?this.$D+(_-this.$W):_;if(p===l||p===m){var F=this.clone().set(f,1);F.$d[D](T),F.init(),this.$d=F.set(f,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](T);return this.init(),this},b.set=function(v,_){return this.clone().$set(v,_)},b.get=function(v){return this[C.p(v)]()},b.add=function(v,_){var S,p=this;v=Number(v);var w=C.p(_),D=function(Y){var ee=$(p);return C.w(ee.date(ee.date()+Math.round(Y*v)),p)};if(w===l)return this.set(l,this.$M+v);if(w===m)return this.set(m,this.$y+v);if(w===o)return D(1);if(w===u)return D(7);var T=(S={},S[a]=e,S[s]=r,S[i]=t,S)[w]||1,F=this.$d.getTime()+v*T;return C.w(F,this)},b.subtract=function(v,_){return this.add(-1*v,_)},b.format=function(v){var _=this,S=this.$locale();if(!this.isValid())return S.invalidDate||d;var p=v||"YYYY-MM-DDTHH:mm:ssZ",w=C.z(this),D=this.$H,T=this.$m,F=this.$M,Y=S.weekdays,ee=S.months,be=S.meridiem,me=function(W,se,pe,De){return W&&(W[se]||W(_,p))||pe[se].slice(0,De)},Oe=function(W){return C.s(D%12||12,W,"0")},ce=be||function(W,se,pe){var De=W<12?"AM":"PM";return pe?De.toLowerCase():De};return p.replace(g,function(W,se){return se||function(pe){switch(pe){case"YY":return String(_.$y).slice(-2);case"YYYY":return C.s(_.$y,4,"0");case"M":return F+1;case"MM":return C.s(F+1,2,"0");case"MMM":return me(S.monthsShort,F,ee,3);case"MMMM":return me(ee,F);case"D":return _.$D;case"DD":return C.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return me(S.weekdaysMin,_.$W,Y,2);case"ddd":return me(S.weekdaysShort,_.$W,Y,3);case"dddd":return Y[_.$W];case"H":return String(D);case"HH":return C.s(D,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return ce(D,T,!0);case"A":return ce(D,T,!1);case"m":return String(T);case"mm":return C.s(T,2,"0");case"s":return String(_.$s);case"ss":return C.s(_.$s,2,"0");case"SSS":return C.s(_.$ms,3,"0");case"Z":return w}return null}(W)||w.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(v,_,S){var p,w=this,D=C.p(_),T=$(v),F=(T.utcOffset()-this.utcOffset())*e,Y=this-T,ee=function(){return C.m(w,T)};switch(D){case m:p=ee()/12;break;case l:p=ee();break;case c:p=ee()/3;break;case u:p=(Y-F)/6048e5;break;case o:p=(Y-F)/864e5;break;case s:p=Y/r;break;case a:p=Y/e;break;case i:p=Y/t;break;default:p=Y}return S?p:C.a(p)},b.daysInMonth=function(){return this.endOf(l).$D},b.$locale=function(){return O[this.$L]},b.locale=function(v,_){if(!v)return this.$L;var S=this.clone(),p=P(v,_,!0);return p&&(S.$L=p),S},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),M=U.prototype;return $.prototype=M,[["$ms",n],["$s",i],["$m",a],["$H",s],["$W",o],["$M",l],["$y",m],["$D",f]].forEach(function(E){M[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),$.extend=function(E,b){return E.$i||(E(b,U,$),E.$i=!0),$},$.locale=P,$.isDayjs=j,$.unix=function(E){return $(1e3*E)},$.en=O[I],$.Ls=O,$.p={},$})});var Dt=L((nr,ir)=>{(function(t,e){typeof nr=="object"&&typeof ir<"u"?ir.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(nr,function(){"use strict";var t={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,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},o=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(g){this[h]=+g}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var k=g.match(/([+-]|\d\d)/g),y=60*k[1]+(+k[2]||0);return y===0?0:k[0]==="+"?-y:y}(h)}],c=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},m=function(h,g){var k,y=s.meridiem;if(y){for(var R=1;R<=24;R+=1)if(h.indexOf(y(R,0,g))>-1){k=R>12;break}}else k=h===(g?"pm":"PM");return k},f={A:[a,function(h){this.afternoon=m(h,!1)}],a:[a,function(h){this.afternoon=m(h,!0)}],Q:[r,function(h){this.month=3*(h-1)+1}],S:[r,function(h){this.milliseconds=100*+h}],SS:[n,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[a,function(h){var g=s.ordinal,k=h.match(/\d+/);if(this.day=k[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===h&&(this.day=y)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(h){var g=c("months"),k=(c("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(h)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[a,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(h){this.year=o(h)}],YYYY:[/\d{4}/,u("year")],Z:l,ZZ:l};function d(h){var g,k;g=h,k=s&&s.formats;for(var y=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,C,U){var M=U&&U.toUpperCase();return C||k[U]||t[U]||k[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,b,v){return b||v.slice(1)})})).match(e),R=y.length,I=0;I<R;I+=1){var O=y[I],x=f[O],j=x&&x[0],P=x&&x[1];y[I]=P?{regex:j,parser:P}:O.replace(/^\[|\]$/g,"")}return function($){for(var C={},U=0,M=0;U<R;U+=1){var E=y[U];if(typeof E=="string")M+=E.length;else{var b=E.regex,v=E.parser,_=$.slice(M),S=b.exec(_)[0];v.call(C,S),$=$.replace(S,"")}}return function(p){var w=p.afternoon;if(w!==void 0){var D=p.hours;w?D<12&&(p.hours+=12):D===12&&(p.hours=0),delete p.afternoon}}(C),C}}return function(h,g,k){k.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(o=h.parseTwoDigitYear);var y=g.prototype,R=y.parse;y.parse=function(I){var O=I.date,x=I.utc,j=I.args;this.$u=x;var P=j[1];if(typeof P=="string"){var $=j[2]===!0,C=j[3]===!0,U=$||C,M=j[2];C&&(M=j[2]),s=this.$locale(),!$&&M&&(s=k.Ls[M]),this.$d=function(_,S,p,w){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*_);var D=d(S)(_),T=D.year,F=D.month,Y=D.day,ee=D.hours,be=D.minutes,me=D.seconds,Oe=D.milliseconds,ce=D.zone,W=D.week,se=new Date,pe=Y||(T||F?1:se.getDate()),De=T||se.getFullYear(),St=0;T&&!F||(St=F>0?F-1:se.getMonth());var wt,Xt=ee||0,Zt=be||0,Kt=me||0,er=Oe||0;return ce?new Date(Date.UTC(De,St,pe,Xt,Zt,Kt,er+60*ce.offset*1e3)):p?new Date(Date.UTC(De,St,pe,Xt,Zt,Kt,er)):(wt=new Date(De,St,pe,Xt,Zt,Kt,er),W&&(wt=w(wt).week(W).toDate()),wt)}catch{return new Date("")}}(O,P,x,k),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),U&&O!=this.format(P)&&(this.$d=new Date("")),s={}}else if(P instanceof Array)for(var E=P.length,b=1;b<=E;b+=1){j[1]=P[b-1];var v=k.apply(this,j);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}b===E&&(this.$d=new Date(""))}else R.call(this,I)}}})});var Dn=L((Kl,ar)=>{var Xs=Object.prototype.hasOwnProperty;function wn(t){return"[Throws: "+(t?t.message:"?")+"]"}function Zs(t,e){if(Xs.call(t,e))try{return t[e]}catch(r){return wn(r)}return t[e]}function bn(t){var e=[];function r(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=r(n.toJSON());return e.pop(),i}catch(o){return wn(o)}if(Array.isArray(n)){var a=n.map(r);return e.pop(),a}var s=Object.keys(n).reduce(function(o,u){return o[u]=r(Zs(n,u)),o},{});return e.pop(),s}return r(t)}ar.exports=function(t,e,r){return JSON.stringify(bn(t),e,r)};ar.exports.ensureProperties=bn});var Rn=L((ec,_n)=>{var K=require("fs"),Ke=require("path");_n.exports=_t;_t.ncp=_t;function _t(t,e,r,n){var i=n;n||(i=r,r={});var a=process.cwd(),s=Ke.resolve(a,t),o=Ke.resolve(a,e),u=r.filter,l=r.rename,c=r.transform,m=r.clobber!==!1,f=r.modified,d=r.dereference,h=null,g=0,k=0,y=0,R=r.limit||_t.limit||16;R=R<1?1:R>512?512:R,I(s);function I(p){if(g++,u){if(u instanceof RegExp){if(!u.test(p))return S(!0)}else if(typeof u=="function"&&!u(p))return S(!0)}return O(p)}function O(p){var w=d?K.stat:K.lstat;if(y>=R)return setImmediate(function(){O(p)});y++,w(p,function(D,T){var F={};if(D)return _(D);if(F.name=p,F.mode=T.mode,F.mtime=T.mtime,F.atime=T.atime,T.isDirectory())return $(F);if(T.isFile())return x(F);if(T.isSymbolicLink())return M(p)})}function x(p){var w=p.name.replace(s,o);l&&(w=l(w)),v(w,function(D){if(D)return j(p,w);if(m&&P(w,function(){j(p,w)}),f){var T=d?K.stat:K.lstat;T(w,function(F,Y){if(p.mtime.getTime()>Y.mtime.getTime())j(p,w);else return S()})}else return S()})}function j(p,w){var D=K.createReadStream(p.name),T=K.createWriteStream(w,{mode:p.mode});D.on("error",_),T.on("error",_),c?c(D,T,p):T.on("open",function(){D.pipe(T)}),T.once("finish",function(){f&&K.utimesSync(w,p.atime,p.mtime),S()})}function P(p,w){K.unlink(p,function(D){return D?_(D):w()})}function $(p){var w=p.name.replace(s,o);v(w,function(D){if(D)return C(p,w);U(p.name)})}function C(p,w){K.mkdir(w,p.mode,function(D){if(D)return _(D);U(p.name)})}function U(p){K.readdir(p,function(w,D){return w?_(w):(D.forEach(function(T){I(Ke.join(p,T))}),S())})}function M(p){var w=p.replace(s,o);K.readlink(p,function(D,T){if(D)return _(D);E(T,w)})}function E(p,w){d&&(p=Ke.resolve(a,p)),v(w,function(D){if(D)return b(p,w);K.readlink(w,function(T,F){return T?_(T):(d&&(F=Ke.resolve(a,F)),F===p?S():P(w,function(){b(p,w)}))})})}function b(p,w){K.symlink(p,w,function(D){return D?_(D):S()})}function v(p,w){K.lstat(p,function(D){return D&&D.code==="ENOENT"?w(!0):w(!1)})}function _(p){return r.stopOnError?i(p):(!h&&r.errs?h=K.createWriteStream(r.errs):h||(h=[]),typeof h.write>"u"?h.push(p):h.write(p.stack+` `),S())}function S(p){if(p||y--,k++,g===k&&y===0&&i!==void 0)return i(h||null)}}});var kn=L((tc,En)=>{En.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=e(t[n],n);Ks(i)?r.push.apply(r,i):r.push(i)}return r};var Ks=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var Tn=L((rc,Mn)=>{"use strict";Mn.exports=On;function On(t,e,r){t instanceof RegExp&&(t=An(t,r)),e instanceof RegExp&&(e=An(e,r));var n=Cn(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function An(t,e){var r=e.match(t);return r?r[0]:null}On.range=Cn;function Cn(t,e,r){var n,i,a,s,o,u=r.indexOf(t),l=r.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(t===e)return[u,l];for(n=[],a=r.length;c>=0&&!o;)c==u?(n.push(c),u=r.indexOf(t,c+1)):n.length==1?o=[n.pop(),l]:(i=n.pop(),i<a&&(a=i,s=l),l=r.indexOf(e,c+1)),c=u<l&&u>=0?u:l;n.length&&(o=[a,s])}return o}});var Pn=L((nc,qn)=>{var eo=kn(),In=Tn();qn.exports=no;var Ln="\0SLASH"+Math.random()+"\0",xn="\0OPEN"+Math.random()+"\0",or="\0CLOSE"+Math.random()+"\0",$n="\0COMMA"+Math.random()+"\0",Fn="\0PERIOD"+Math.random()+"\0";function sr(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function to(t){return t.split("\\\\").join(Ln).split("\\{").join(xn).split("\\}").join(or).split("\\,").join($n).split("\\.").join(Fn)}function ro(t){return t.split(Ln).join("\\").split(xn).join("{").split(or).join("}").split($n).join(",").split(Fn).join(".")}function Nn(t){if(!t)return[""];var e=[],r=In("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,a=r.post,s=n.split(",");s[s.length-1]+="{"+i+"}";var o=Nn(a);return a.length&&(s[s.length-1]+=o.shift(),s.push.apply(s,o)),e.push.apply(e,s),e}function no(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ne(to(t),!0).map(ro)):[]}function io(t){return"{"+t+"}"}function ao(t){return/^-?0\d/.test(t)}function so(t,e){return t<=e}function oo(t,e){return t>=e}function Ne(t,e){var r=[],n=In("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=i||a,o=n.body.indexOf(",")>=0;if(!s&&!o)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+or+n.post,Ne(t)):[t];var u;if(s)u=n.body.split(/\.\./);else if(u=Nn(n.body),u.length===1&&(u=Ne(u[0],!1).map(io),u.length===1)){var c=n.post.length?Ne(n.post,!1):[""];return c.map(function(M){return n.pre+u[0]+M})}var l=n.pre,c=n.post.length?Ne(n.post,!1):[""],m;if(s){var f=sr(u[0]),d=sr(u[1]),h=Math.max(u[0].length,u[1].length),g=u.length==3?Math.abs(sr(u[2])):1,k=so,y=d<f;y&&(g*=-1,k=oo);var R=u.some(ao);m=[];for(var I=f;k(I,d);I+=g){var O;if(a)O=String.fromCharCode(I),O==="\\"&&(O="");else if(O=String(I),R){var x=h-O.length;if(x>0){var j=new Array(x+1).join("0");I<0?O="-"+j+O.slice(1):O=j+O}}m.push(O)}}else m=eo(u,function(U){return Ne(U,!1)});for(var P=0;P<m.length;P++)for(var $=0;$<c.length;$++){var C=l+m[P]+c[$];(!e||s||C)&&r.push(C)}return r}});var kt=L((ic,Yn)=>{Yn.exports=re;re.Minimatch=H;var et=function(){try{return require("path")}catch{}}()||{sep:"/"};re.sep=et.sep;var cr=re.GLOBSTAR=H.GLOBSTAR={},uo=Pn(),Un={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ur="[^/]",lr=ur+"*?",lo="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",co="(?:(?!(?:\\/|^)\\.).)*?",jn=fo("().*{}+?[]^$\\!");function fo(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Bn=/\/+/;re.filter=ho;function ho(t,e){return e=e||{},function(r,n,i){return re(r,t,e)}}function _e(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}re.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return re;var e=re,r=function(i,a,s){return e(i,a,_e(t,s))};return r.Minimatch=function(i,a){return new e.Minimatch(i,_e(t,a))},r.Minimatch.defaults=function(i){return e.defaults(_e(t,i)).Minimatch},r.filter=function(i,a){return e.filter(i,_e(t,a))},r.defaults=function(i){return e.defaults(_e(t,i))},r.makeRe=function(i,a){return e.makeRe(i,_e(t,a))},r.braceExpand=function(i,a){return e.braceExpand(i,_e(t,a))},r.match=function(n,i,a){return e.match(n,i,_e(t,a))},r};H.defaults=function(t){return re.defaults(t).Minimatch};function re(t,e,r){return Et(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new H(e,r).match(t)}function H(t,e){if(!(this instanceof H))return new H(t,e);Et(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&et.sep!=="/"&&(t=t.split(et.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}H.prototype.debug=function(){};H.prototype.make=mo;function mo(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(Bn)}),this.debug(this.pattern,r),r=r.map(function(n,i,a){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}H.prototype.parseNegate=po;function po(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,a=t.length;i<a&&t.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}re.braceExpand=function(t,e){return Vn(t,e)};H.prototype.braceExpand=Vn;function Vn(t,e){return e||(this instanceof H?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,Et(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:uo(t)}var go=1024*64,Et=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>go)throw new TypeError("pattern is too long")};H.prototype.parse=vo;var Rt={};function vo(t,e){Et(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return cr;if(t==="")return"";var n="",i=!!r.nocase,a=!1,s=[],o=[],u,l=!1,c=-1,m=-1,f=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(u){switch(u){case"*":n+=lr,i=!0;break;case"?":n+=ur,i=!0;break;default:n+="\\"+u;break}d.debug("clearStateChar %j %j",u,n),u=!1}}for(var g=0,k=t.length,y;g<k&&(y=t.charAt(g));g++){if(this.debug("%s %s %s %j",t,g,n,y),a&&jn[y]){n+="\\"+y,a=!1;continue}switch(y){case"/":return!1;case"\\":h(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,g,n,y),l){this.debug(" in class"),y==="!"&&g===m+1&&(y="^"),n+=y;continue}d.debug("call clearStateChar %j",u),h(),u=y,r.noext&&h();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}s.push({type:u,start:g-1,reStart:n.length,open:Un[u].open,close:Un[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!s.length){n+="\\)";continue}h(),i=!0;var R=s.pop();n+=R.close,R.type==="!"&&o.push(R),R.reEnd=n.length;continue;case"|":if(l||!s.length||a){n+="\\|",a=!1;continue}h(),n+="|";continue;case"[":if(h(),l){n+="\\"+y;continue}l=!0,m=g,c=n.length,n+=y;continue;case"]":if(g===m+1||!l){n+="\\"+y,a=!1;continue}var I=t.substring(m+1,g);try{RegExp("["+I+"]")}catch{var O=this.parse(I,Rt);n=n.substr(0,c)+"\\["+O[0]+"\\]",i=i||O[1],l=!1;continue}i=!0,l=!1,n+=y;continue;default:h(),a?a=!1:jn[y]&&!(y==="^"&&l)&&(n+="\\"),n+=y}}for(l&&(I=t.substr(m+1),O=this.parse(I,Rt),n=n.substr(0,c)+"\\["+O[0],i=i||O[1]),R=s.pop();R;R=s.pop()){var x=n.slice(R.reStart+R.open.length);this.debug("setting tail",n,R),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(T,F,Y){return Y||(Y="\\"),F+F+Y+"|"}),this.debug(`tail=%j %s`,x,x,R,n);var j=R.type==="*"?lr:R.type==="?"?ur:"\\"+R.type;i=!0,n=n.slice(0,R.reStart)+j+"\\("+x}h(),a&&(n+="\\\\");var P=!1;switch(n.charAt(0)){case"[":case".":case"(":P=!0}for(var $=o.length-1;$>-1;$--){var C=o[$],U=n.slice(0,C.reStart),M=n.slice(C.reStart,C.reEnd-8),E=n.slice(C.reEnd-8,C.reEnd),b=n.slice(C.reEnd);E+=b;var v=U.split("(").length-1,_=b;for(g=0;g<v;g++)_=_.replace(/\)[+*?]?/,"");b=_;var S="";b===""&&e!==Rt&&(S="$");var p=U+M+b+S+E;n=p}if(n!==""&&i&&(n="(?=.)"+n),P&&(n=f+n),e===Rt)return[n,i];if(!i)return So(t);var w=r.nocase?"i":"";try{var D=new RegExp("^"+n+"$",w)}catch{return new RegExp("$.")}return D._glob=t,D._src=n,D}re.makeRe=function(t,e){return new H(t,e||{}).makeRe()};H.prototype.makeRe=yo;function yo(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?lr:e.dot?lo:co,n=e.nocase?"i":"",i=t.map(function(a){return a.map(function(s){return s===cr?r:typeof s=="string"?wo(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(t,e,r){r=r||{};var n=new H(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};H.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;et.sep!=="/"&&(e=e.split(et.sep).join("/")),e=e.split(Bn),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a,s;for(s=e.length-1;s>=0&&(a=e[s],!a);s--);for(s=0;s<i.length;s++){var o=i[s],u=e;n.matchBase&&o.length===1&&(u=[a]);var l=this.matchOne(u,o,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};H.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,a=0,s=t.length,o=e.length;i<s&&a<o;i++,a++){this.debug("matchOne loop");var u=e[a],l=t[i];if(this.debug(e,u,l),u===!1)return!1;if(u===cr){this.debug("GLOBSTAR",[e,u,l]);var c=i,m=a+1;if(m===o){for(this.debug("** at the end");i<s;i++)if(t[i]==="."||t[i]===".."||!n.dot&&t[i].charAt(0)===".")return!1;return!0}for(;c<s;){var f=t[c];if(this.debug(` globstar while`,t,c,e,m,f),this.matchOne(t.slice(c),e.slice(m),r))return this.debug("globstar found match!",c,s,f),!0;if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,c,e,m);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(` >>> no match, partial?`,t,c,e,m),c===s))}var d;if(typeof u=="string"?(d=l===u,this.debug("string match",u,l,d)):(d=l.match(u),this.debug("pattern match",u,l,d)),!d)return!1}if(i===s&&a===o)return!0;if(i===s)return r;if(a===o)return i===s-1&&t[i]==="";throw new Error("wtf?")};function So(t){return t.replace(/\\(.)/g,"$1")}function wo(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Gn=L((ac,fr)=>{typeof Object.create=="function"?fr.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:fr.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var zn=L((sc,dr)=>{try{if(hr=require("util"),typeof hr.inherits!="function")throw"";dr.exports=hr.inherits}catch{dr.exports=Gn()}var hr});var Ot=L((oc,At)=>{"use strict";function Wn(t){return t.charAt(0)==="/"}function Hn(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),n=r[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(r[2]||i)}At.exports=process.platform==="win32"?Hn:Wn;At.exports.posix=Wn;At.exports.win32=Hn});var gr=L(fe=>{fe.alphasort=Xn;fe.alphasorti=Jn;fe.setopts=Eo;fe.ownProp=Qn;fe.makeAbs=pr;fe.finish=ko;fe.mark=Ao;fe.isIgnored=Zn;fe.childrenIgnored=Oo;function Qn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var qe=require("path"),bo=kt(),Do=Ot(),mr=bo.Minimatch;function Jn(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function Xn(t,e){return t.localeCompare(e)}function _o(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(Ro))}function Ro(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new mr(r,{dot:!0})}return{matcher:new mr(t,{dot:!0}),gmatcher:e}}function Eo(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),_o(t,r),t.changedCwd=!1;var n=process.cwd();Qn(r,"cwd")?(t.cwd=r.cwd,t.changedCwd=qe.resolve(r.cwd)!==n):t.cwd=n,t.root=r.root||qe.resolve(t.cwd,"/"),t.root=qe.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,t.minimatch=new mr(e,r),t.options=t.minimatch.options}function ko(t){for(var e=t.nounique,r=e?[]:Object.create(null),n=0,i=t.matches.length;n<i;n++){var a=t.matches[n];if(!a||Object.keys(a).length===0){if(t.nonull){var s=t.minimatch.globSet[n];e?r.push(s):r[s]=!0}}else{var o=Object.keys(a);e?r.push.apply(r,o):o.forEach(function(u){r[u]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(t.nocase?Jn:Xn)),t.mark){for(var n=0;n<r.length;n++)r[n]=t._mark(r[n]);t.nodir&&(r=r.filter(function(u){return!/\/$/.test(u)}))}t.ignore.length&&(r=r.filter(function(u){return!Zn(t,u)})),t.found=r}function Ao(t,e){var r=pr(t,e),n=t.cache[r],i=e;if(n){var a=n==="DIR"||Array.isArray(n),s=e.slice(-1)==="/";if(a&&!s?i+="/":!a&&s&&(i=i.slice(0,-1)),i!==e){var o=pr(t,i);t.statCache[o]=t.statCache[r],t.cache[o]=t.cache[r]}}return i}function pr(t,e){var r=e;return e.charAt(0)==="/"?r=qe.join(t.root,e):Do(e)||e===""?r=e:t.changedCwd?r=qe.resolve(t.cwd,e):r=qe.resolve(e),r}function Zn(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Oo(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var ni=L((mc,ri)=>{ri.exports=ti;ti.GlobSync=z;var tt=require("fs"),Kn=kt(),lc=Kn.Minimatch,cc=Sr().Glob,fc=require("util"),vr=require("path"),ei=require("assert"),Ct=Ot(),Re=gr(),hc=Re.alphasort,dc=Re.alphasorti,Co=Re.setopts,yr=Re.ownProp,Mo=Re.childrenIgnored;function ti(t,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 z(t,e).found}function z(t,e){if(!t)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 z))return new z(t,e);if(Co(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}z.prototype._finish=function(){if(ei(this instanceof z),this.realpath){var t=this;this.matches.forEach(function(e,r){var n=t.matches[r]=Object.create(null);for(var i in e)try{i=t._makeAbs(i);var a=tt.realpathSync(i,t.realpathCache);n[a]=!0}catch(s){if(s.syscall==="stat")n[t._makeAbs(i)]=!0;else throw s}})}Re.finish(this)};z.prototype._process=function(t,e,r){ei(this instanceof z);for(var n=0;typeof t[n]=="string";)n++;var i;switch(n){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,n).join("/");break}var a=t.slice(n),s;i===null?s=".":((Ct(i)||Ct(t.join("/")))&&(!i||!Ct(i))&&(i="/"+i),s=i);var o=this._makeAbs(s);if(!Mo(this,s)){var u=a[0]===Kn.GLOBSTAR;u?this._processGlobStar(i,s,o,a,e,r):this._processReaddir(i,s,o,a,e,r)}};z.prototype._processReaddir=function(t,e,r,n,i,a){var s=this._readdir(r,a);if(s){for(var o=n[0],u=!!this.minimatch.negate,l=o._glob,c=this.dot||l.charAt(0)===".",m=[],f=0;f<s.length;f++){var d=s[f];if(d.charAt(0)!=="."||c){var h;u&&!t?h=!d.match(o):h=d.match(o),h&&m.push(d)}}var g=m.length;if(g!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<g;f++){var d=m[f];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=vr.join(this.root,d)),this.matches[i][d]=!0}return}n.shift();for(var f=0;f<g;f++){var d=m[f],k;t?k=[t,d]:k=[d],this._process(k.concat(n),i,a)}}}};z.prototype._emitMatch=function(t,e){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[t][e]){if(this.nodir){var n=this.cache[this._makeAbs(e)];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}};z.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,n;try{r=tt.lstatSync(t)}catch{return null}var i=r.isSymbolicLink();return this.symlinks[t]=i,!i&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};z.prototype._readdir=function(t,e){var r;if(e&&!yr(this.symlinks,t))return this._readdirInGlobStar(t);if(yr(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(t,tt.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};z.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var n=e[r];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,e};z.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(t)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};z.prototype._processGlobStar=function(t,e,r,n,i,a){var s=this._readdir(r,a);if(s){var o=n.slice(1),u=t?[t]:[],l=u.concat(o);this._process(l,i,!1);var c=s.length,m=this.symlinks[r];if(!(m&&a))for(var f=0;f<c;f++){var d=s[f];if(!(d.charAt(0)==="."&&!this.dot)){var h=u.concat(s[f],o);this._process(h,i,!0);var g=u.concat(s[f],n);this._process(g,i,!0)}}}};z.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Ct(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=vr.join(this.root,t):(t=vr.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this.matches[e][t]=!0}};z.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&yr(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!r||s==="DIR")return s;if(r&&s==="FILE")return!1}var n,i=this.statCache[e];if(!i){var a;try{a=tt.lstatSync(e)}catch{return!1}if(a.isSymbolicLink())try{i=tt.statSync(e)}catch{i=a}else i=a}this.statCache[e]=i;var s=i.isDirectory()?"DIR":"FILE";return this.cache[e]=this.cache[e]||s,r&&s!=="DIR"?!1:s};z.prototype._mark=function(t){return Re.mark(this,t)};z.prototype._makeAbs=function(t){return Re.makeAbs(this,t)}});var wr=L((pc,ai)=>{ai.exports=ii;function ii(t,e){if(t&&e)return ii(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var a=t.apply(this,n),s=n[n.length-1];return typeof a=="function"&&a!==s&&Object.keys(s).forEach(function(o){a[o]=s[o]}),a}}});var Dr=L((gc,br)=>{var si=wr();br.exports=si(Mt);br.exports.strict=si(oi);Mt.proto=Mt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Mt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return oi(this)},configurable:!0})});function Mt(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function oi(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var li=L((vc,ui)=>{var To=wr(),rt=Object.create(null),Io=Dr();ui.exports=To(Lo);function Lo(t,e){return rt[t]?(rt[t].push(e),null):(rt[t]=[e],xo(t))}function xo(t){return Io(function e(){var r=rt[t],n=r.length,i=$o(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete rt[t]}})}function $o(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n]=t[n];return r}});var Sr=L((Dc,fi)=>{fi.exports=Ce;var nt=require("fs"),ci=kt(),yc=ci.Minimatch,Fo=zn(),No=require("events").EventEmitter,_r=require("path"),Rr=require("assert"),Tt=Ot(),kr=ni(),ge=gr(),Sc=ge.alphasort,wc=ge.alphasorti,qo=ge.setopts,Er=ge.ownProp,Ar=li(),bc=require("util"),Po=ge.childrenIgnored,Uo=ge.isIgnored,jo=Dr();function Ce(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return kr(t,e)}return new q(t,e,r)}Ce.sync=kr;var Bo=Ce.GlobSync=kr.GlobSync;Ce.glob=Ce;function Vo(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}Ce.hasMagic=function(t,e){var r=Vo({},e);r.noprocess=!0;var n=new q(t,r),i=n.minimatch.set;if(i.length>1)return!0;for(var a=0;a<i[0].length;a++)if(typeof i[0][a]!="string")return!0;return!1};Ce.Glob=q;Fo(q,No);function q(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new Bo(t,e)}if(!(this instanceof q))return new q(t,e,r);qo(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=jo(r),this.on("error",r),this.on("end",function(o){r(null,o)}));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 a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,s);function s(){--n._processing,n._processing<=0&&n._finish()}}q.prototype._finish=function(){if(Rr(this instanceof q),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();ge.finish(this),this.emit("end",this.found)}};q.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--t===0&&e._finish()}};q.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r),i=this,a=n.length;if(a===0)return e();var s=this.matches[t]=Object.create(null);n.forEach(function(o,u){o=i._makeAbs(o),nt.realpath(o,i.realpathCache,function(l,c){l?l.syscall==="stat"?s[o]=!0:i.emit("error",l):s[c]=!0,--a===0&&(i.matches[t]=s,e())})})};q.prototype._mark=function(t){return ge.mark(this,t)};q.prototype._makeAbs=function(t){return ge.makeAbs(this,t)};q.prototype.abort=function(){this.aborted=!0,this.emit("abort")};q.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};q.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[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])}}}};q.prototype._process=function(t,e,r,n){if(Rr(this instanceof q),Rr(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,n]);return}for(var i=0;typeof t[i]=="string";)i++;var a;switch(i){case t.length:this._processSimple(t.join("/"),e,n);return;case 0:a=null;break;default:a=t.slice(0,i).join("/");break}var s=t.slice(i),o;a===null?o=".":((Tt(a)||Tt(t.join("/")))&&(!a||!Tt(a))&&(a="/"+a),o=a);var u=this._makeAbs(o);if(Po(this,o))return n();var l=s[0]===ci.GLOBSTAR;l?this._processGlobStar(a,o,u,s,e,r,n):this._processReaddir(a,o,u,s,e,r,n)}};q.prototype._processReaddir=function(t,e,r,n,i,a,s){var o=this;this._readdir(r,a,function(u,l){return o._processReaddir2(t,e,r,n,i,a,l,s)})};q.prototype._processReaddir2=function(t,e,r,n,i,a,s,o){if(!s)return o();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,m=this.dot||c.charAt(0)===".",f=[],d=0;d<s.length;d++){var h=s[d];if(h.charAt(0)!=="."||m){var g;l&&!t?g=!h.match(u):g=h.match(u),g&&f.push(h)}}var k=f.length;if(k===0)return o();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<k;d++){var h=f[d];t&&(t!=="/"?h=t+"/"+h:h=t+h),h.charAt(0)==="/"&&!this.nomount&&(h=_r.join(this.root,h)),this._emitMatch(i,h)}return o()}n.shift();for(var d=0;d<k;d++){var h=f[d],y;t&&(t!=="/"?h=t+"/"+h:h=t+h),this._process([h].concat(n),i,a,o)}o()};q.prototype._emitMatch=function(t,e){if(!this.aborted&&!this.matches[t][e]&&!Uo(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=this._makeAbs(e);if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.mark&&(e=this._mark(e)),this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}};q.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,n=this,i=Ar(r,a);i&&nt.lstat(t,i);function a(s,o){if(s)return e();var u=o.isSymbolicLink();n.symlinks[t]=u,!u&&!o.isDirectory()?(n.cache[t]="FILE",e()):n._readdir(t,!1,e)}};q.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Ar("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!Er(this.symlinks,t))return this._readdirInGlobStar(t,r);if(Er(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;nt.readdir(t,Yo(this,t,r))}};function Yo(t,e,r){return function(n,i){n?t._readdirError(e,n,r):t._readdirEntries(e,i,r)}}q.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}};q.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(t)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};q.prototype._processGlobStar=function(t,e,r,n,i,a,s){var o=this;this._readdir(r,a,function(u,l){o._processGlobStar2(t,e,r,n,i,a,l,s)})};q.prototype._processGlobStar2=function(t,e,r,n,i,a,s,o){if(!s)return o();var u=n.slice(1),l=t?[t]:[],c=l.concat(u);this._process(c,i,!1,o);var m=this.symlinks[r],f=s.length;if(m&&a)return o();for(var d=0;d<f;d++){var h=s[d];if(!(h.charAt(0)==="."&&!this.dot)){var g=l.concat(s[d],u);this._process(g,i,!0,o);var k=l.concat(s[d],n);this._process(k,i,!0,o)}}o()};q.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,function(i,a){n._processSimple2(t,e,i,a,r)})};q.prototype._processSimple2=function(t,e,r,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(t&&Tt(t)&&!this.nomount){var a=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=_r.join(this.root,t):(t=_r.resolve(this.root,t),a&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()};q.prototype._stat=function(t,e){var r=this._makeAbs(t),n=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&Er(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return e(null,i);if(n&&i==="FILE")return e()}var a,s=this.statCache[r];if(s!==void 0){if(s===!1)return e(null,s);var o=s.isDirectory()?"DIR":"FILE";return n&&o==="FILE"?e():e(null,o,s)}var u=this,l=Ar("stat\0"+r,c);l&&nt.lstat(r,l);function c(m,f){if(f&&f.isSymbolicLink())return nt.stat(r,function(d,h){d?u._stat2(t,r,null,f,e):u._stat2(t,r,d,h,e)});u._stat2(t,r,m,f,e)}};q.prototype._stat2=function(t,e,r,n,i){if(r)return this.statCache[e]=!1,i();var a=t.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,a&&s!=="DIR"?i():i(null,s,n)}});var vi=L((_c,gi)=>{gi.exports=Tr;Tr.sync=pi;var N=require("assert"),hi=require("path"),xt=require("fs"),$t=Sr(),di={nosort:!0,nocomment:!0,nonegate:!0,silent:!0},Or=0,Mr=process.platform==="win32";function mi(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(r){t[r]=t[r]||xt[r],r=r+"Sync",t[r]=t[r]||xt[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.disableGlob=t.disableGlob||!1}function Tr(t,e,r){typeof e=="function"&&(r=e,e={}),N(t,"rimraf: missing path"),N.equal(typeof t,"string","rimraf: path should be a string"),N(e,"rimraf: missing options"),N.equal(typeof e,"object","rimraf: options should be object"),N.equal(typeof r,"function","rimraf: callback function required"),mi(e);var n=0,i=null,a=0;if(e.disableGlob||!$t.hasMagic(t))return o(null,[t]);xt.lstat(t,function(u,l){if(!u)return o(null,[t]);$t(t,di,o)});function s(u){i=i||u,--a===0&&r(i)}function o(u,l){if(u)return r(u);if(a=l.length,a===0)return r();l.forEach(function(c){Cr(c,e,function m(f){if(f){if(Mr&&(f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&n<e.maxBusyTries){n++;var d=n*100;return setTimeout(function(){Cr(c,e,m)},d)}if(f.code==="EMFILE"&&Or<e.emfileWait)return setTimeout(function(){Cr(c,e,m)},Or++);f.code==="ENOENT"&&(f=null)}Or=0,s(f)})})}}function Cr(t,e,r){N(t),N(e),N(typeof r=="function"),e.lstat(t,function(n,i){if(n&&n.code==="ENOENT")return r(null);if(i&&i.isDirectory())return It(t,e,n,r);e.unlink(t,function(a){if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return Mr?Go(t,e,a,r):It(t,e,a,r);if(a.code==="EISDIR")return It(t,e,a,r)}return r(a)})})}function Go(t,e,r,n){N(t),N(e),N(typeof n=="function"),r&&N(r instanceof Error),e.chmod(t,666,function(i){i?n(i.code==="ENOENT"?null:r):e.stat(t,function(a,s){a?n(a.code==="ENOENT"?null:r):s.isDirectory()?It(t,e,r,n):e.unlink(t,n)})})}function zo(t,e,r){N(t),N(e),r&&N(r instanceof Error);try{e.chmodSync(t,666)}catch(i){if(i.code==="ENOENT")return;throw r}try{var n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Lt(t,e,r):e.unlinkSync(t)}function It(t,e,r,n){N(t),N(e),r&&N(r instanceof Error),N(typeof n=="function"),e.rmdir(t,function(i){i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Wo(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Wo(t,e,r){N(t),N(e),N(typeof r=="function"),e.readdir(t,function(n,i){if(n)return r(n);var a=i.length;if(a===0)return e.rmdir(t,r);var s;i.forEach(function(o){Tr(hi.join(t,o),e,function(u){if(!s){if(u)return r(s=u);--a===0&&e.rmdir(t,r)}})})})}function pi(t,e){e=e||{},mi(e),N(t,"rimraf: missing path"),N.equal(typeof t,"string","rimraf: path should be a string"),N(e,"rimraf: missing options"),N.equal(typeof e,"object","rimraf: options should be object");var r;if(e.disableGlob||!$t.hasMagic(t))r=[t];else try{xt.lstatSync(t),r=[t]}catch{r=$t.sync(t,di)}if(r.length)for(var n=0;n<r.length;n++){var t=r[n];try{var i=e.lstatSync(t)}catch(s){if(s.code==="ENOENT")return}try{i&&i.isDirectory()?Lt(t,e,null):e.unlinkSync(t)}catch(s){if(s.code==="ENOENT")return;if(s.code==="EPERM")return Mr?zo(t,e,s):Lt(t,e,s);if(s.code!=="EISDIR")throw s;Lt(t,e,s)}}}function Lt(t,e,r){N(t),N(e),r&&N(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&Ho(t,e)}}function Ho(t,e){N(t),N(e),e.readdirSync(t).forEach(function(r){pi(hi.join(t,r),e)}),e.rmdirSync(t,e)}});var bi=L((Rc,wi)=>{var it=require("path"),yi=require("fs"),Si=parseInt("0777",8);wi.exports=Pe.mkdirp=Pe.mkdirP=Pe;function Pe(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,a=e.fs||yi;i===void 0&&(i=Si),n||(n=null);var s=r||function(){};t=it.resolve(t),a.mkdir(t,i,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(it.dirname(t)===t)return s(o);Pe(it.dirname(t),e,function(u,l){u?s(u,l):Pe(t,e,s,l)});break;default:a.stat(t,function(u,l){u||!l.isDirectory()?s(o,n):s(null,n)});break}})}Pe.sync=function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,a=r.fs||yi;i===void 0&&(i=Si),n||(n=null),e=it.resolve(e);try{a.mkdirSync(e,i),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(it.dirname(e),r,n),t(e,r,n);break;default:var s;try{s=a.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var ki=L((Ec,Ei)=>{var Ue=require("fs"),Qo=Rn().ncp,Jo=require("path"),Di=vi(),Xo=bi();Ei.exports=Zo;function Zo(t,e,r,n){typeof r=="function"&&(n=r,r={});var i=!!r.mkdirp,a=r.clobber!==!1,s=r.limit||16;i?o():u();function o(){Xo(Jo.dirname(e),function(l){if(l)return n(l);u()})}function u(){a?Ue.rename(t,e,function(l){if(!l)return n();if(l.code!=="EXDEV")return n(l);_i(t,e,a,s,n)}):Ue.link(t,e,function(l){if(l){if(l.code==="EXDEV"){_i(t,e,a,s,n);return}if(l.code==="EISDIR"||l.code==="EPERM"){Ri(t,e,a,s,n);return}n(l);return}Ue.unlink(t,n)})}}function _i(t,e,r,n,i){var a=r?"w":"wx",s=Ue.createReadStream(t),o=Ue.createWriteStream(e,{flags:a});s.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",u),l.code==="EISDIR"||l.code==="EPERM"?Ri(t,e,r,n,i):i(l)}),o.on("error",function(l){s.destroy(),o.destroy(),o.removeListener("close",u),i(l)}),o.once("close",u),s.pipe(o);function u(){Ue.unlink(t,i)}}function Ri(t,e,r,n,i){var a={stopOnErr:!0,clobber:!1,limit:n};r?Di(e,{disableGlob:!0},function(o){if(o)return i(o);s()}):s();function s(){Qo(t,e,a,function(o){if(o)return i(o[0]);Di(t,{disableGlob:!0},i)})}}});var Oi=L(Ir=>{var Ai="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ir.encode=function(t){if(0<=t&&t<Ai.length)return Ai[t];throw new TypeError("Must be between 0 and 63: "+t)};Ir.decode=function(t){var e=65,r=90,n=97,i=122,a=48,s=57,o=43,u=47,l=26,c=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:a<=t&&t<=s?t-a+c:t==o?62:t==u?63:-1}});var $r=L(xr=>{var Ci=Oi(),Lr=5,Mi=1<<Lr,Ti=Mi-1,Ii=Mi;function Ko(t){return t<0?(-t<<1)+1:(t<<1)+0}function eu(t){var e=(t&1)===1,r=t>>1;return e?-r:r}xr.encode=function(e){var r="",n,i=Ko(e);do n=i&Ti,i>>>=Lr,i>0&&(n|=Ii),r+=Ci.encode(n);while(i>0);return r};xr.decode=function(e,r,n){var i=e.length,a=0,s=0,o,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Ci.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));o=!!(u&Ii),u&=Ti,a=a+(u<<s),s+=Lr}while(o);n.value=eu(a),n.rest=r}});var Ve=L(Z=>{function tu(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}Z.getArg=tu;var Li=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ru=/^data:.+\,.+$/;function at(t){var e=t.match(Li);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Z.urlPars