valaxy 0.17.5 → 0.18.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/ValaxyMd.vue +1 -4
- package/client/components/builtin/ValaxyMermaid.vue +86 -0
- package/client/components/internals/ShadowRoot.vue +24 -0
- package/client/composables/common.ts +4 -2
- package/client/composables/dark.ts +3 -2
- package/client/composables/post.ts +5 -6
- package/client/constants/index.ts +0 -0
- package/client/modules/mermaid.ts +26 -0
- package/client/setup/mermaid.ts +15 -0
- package/client/setups.ts +8 -0
- package/client/stores/index.ts +1 -0
- package/client/stores/router.ts +10 -0
- package/client/stores/site.ts +8 -6
- package/client/types/index.ts +3 -0
- package/client/utils/code.ts +24 -0
- package/client/utils/index.ts +1 -0
- package/client/utils/time.ts +0 -6
- package/dist/chunk-AQGELPBR.mjs +142 -0
- package/dist/chunk-GO3LEXT4.cjs +141 -0
- package/dist/{config-hM2lXH4J.d.cts → config-qoiMoYQY.d.cts} +0 -6
- package/dist/{config-hM2lXH4J.d.ts → config-qoiMoYQY.d.ts} +0 -6
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +50 -23
- package/dist/node/index.d.ts +50 -23
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +11 -9
- package/shims.d.ts +7 -1
- package/types/config.ts +0 -8
- package/types/data.ts +0 -1
- package/dist/chunk-CBD6N7G5.cjs +0 -145
- package/dist/chunk-YJCKNZWO.mjs +0 -146
- /package/dist/{chunk-R4WV6S3O.mjs → chunk-MJRGR35B.mjs} +0 -0
- /package/dist/{chunk-FNMRWIFM.cjs → chunk-RWOIGW5M.cjs} +0 -0
package/dist/chunk-CBD6N7G5.cjs
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkFNMRWIFMcjs = require('./chunk-FNMRWIFM.cjs');var fe=_chunkFNMRWIFMcjs.b.call(void 0, (v1,gn)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var qf=_chunkFNMRWIFMcjs.a.call(void 0, "tty"),Bf=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||qf.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Y=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+Hi(o,t,r,i)+t:e+o+t},Hi=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Hi(i,t,r,s):o+i},ji=(e=Bf)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?Y("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?Y("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?Y("\x1B[3m","\x1B[23m"):String,underline:e?Y("\x1B[4m","\x1B[24m"):String,inverse:e?Y("\x1B[7m","\x1B[27m"):String,hidden:e?Y("\x1B[8m","\x1B[28m"):String,strikethrough:e?Y("\x1B[9m","\x1B[29m"):String,black:e?Y("\x1B[30m","\x1B[39m"):String,red:e?Y("\x1B[31m","\x1B[39m"):String,green:e?Y("\x1B[32m","\x1B[39m"):String,yellow:e?Y("\x1B[33m","\x1B[39m"):String,blue:e?Y("\x1B[34m","\x1B[39m"):String,magenta:e?Y("\x1B[35m","\x1B[39m"):String,cyan:e?Y("\x1B[36m","\x1B[39m"):String,white:e?Y("\x1B[37m","\x1B[39m"):String,gray:e?Y("\x1B[90m","\x1B[39m"):String,bgBlack:e?Y("\x1B[40m","\x1B[49m"):String,bgRed:e?Y("\x1B[41m","\x1B[49m"):String,bgGreen:e?Y("\x1B[42m","\x1B[49m"):String,bgYellow:e?Y("\x1B[43m","\x1B[49m"):String,bgBlue:e?Y("\x1B[44m","\x1B[49m"):String,bgMagenta:e?Y("\x1B[45m","\x1B[49m"):String,bgCyan:e?Y("\x1B[46m","\x1B[49m"):String,bgWhite:e?Y("\x1B[47m","\x1B[49m"):String});gn.exports=ji();gn.exports.createColors=ji});var qi=_chunkFNMRWIFMcjs.b.call(void 0, ht=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function Uf(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=Uf;function Gf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}ht.splitWhen=Gf});var Bi=_chunkFNMRWIFMcjs.b.call(void 0, ar=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(ar,"__esModule",{value:!0});ar.isEnoentCodeError=void 0;function Wf(e){return e.code==="ENOENT"}ar.isEnoentCodeError=Wf});var Ui=_chunkFNMRWIFMcjs.b.call(void 0, cr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(cr,"__esModule",{value:!0});cr.createDirentFromStats=void 0;var hn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function zf(e,t){return new hn(e,t)}cr.createDirentFromStats=zf});var Ki=_chunkFNMRWIFMcjs.b.call(void 0, re=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(re,"__esModule",{value:!0});re.convertPosixPathToPattern=re.convertWindowsPathToPattern=re.convertPathToPattern=re.escapePosixPath=re.escapeWindowsPath=re.escape=re.removeLeadingDotSegment=re.makeAbsolute=re.unixify=void 0;var Kf=_chunkFNMRWIFMcjs.a.call(void 0, "os"),Yf=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Gi=Kf.platform()==="win32",Xf=2,Qf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Zf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Jf=/^\\\\([.?])/,ep=/\\(?![!()+@[\]{}])/g;function tp(e){return e.replace(/\\/g,"/")}re.unixify=tp;function rp(e,t){return Yf.resolve(e,t)}re.makeAbsolute=rp;function np(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Xf)}return e}re.removeLeadingDotSegment=np;re.escape=Gi?yn:vn;function yn(e){return e.replace(Zf,"\\$2")}re.escapeWindowsPath=yn;function vn(e){return e.replace(Qf,"\\$2")}re.escapePosixPath=vn;re.convertPathToPattern=Gi?Wi:zi;function Wi(e){return yn(e).replace(Jf,"//$1").replace(ep,"/")}re.convertWindowsPathToPattern=Wi;function zi(e){return vn(e)}re.convertPosixPathToPattern=zi});var Xi=_chunkFNMRWIFMcjs.b.call(void 0, (k1,Yi)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Yi.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ji=_chunkFNMRWIFMcjs.b.call(void 0, (O1,Zi)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var op=Xi(),Qi={"{":"}","(":")","[":"]"},ip=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,o=-2,i=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(s===-1||s>n||(s=e.indexOf("\\",t),s===-1||s>n)))||o!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(o=e.indexOf("}",t),o>t&&(s=e.indexOf("\\",t),s===-1||s>o))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(s=e.indexOf("\\",r),s===-1||s>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=Qi[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},sp=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Qi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Zi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(op(t))return!0;var n=ip;return r&&r.strict===!1&&(n=sp),n(t)}});var ts=_chunkFNMRWIFMcjs.b.call(void 0, ($1,es)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var ap=Ji(),cp=_chunkFNMRWIFMcjs.a.call(void 0, "path").posix.dirname,lp=_chunkFNMRWIFMcjs.a.call(void 0, "os").platform()==="win32",_n="/",up=/\\/g,fp=/[\{\[].*[\}\]]$/,pp=/(^|[^\\])([\{\[]|\([^\)]+$)/,dp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;es.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&lp&&t.indexOf(_n)<0&&(t=t.replace(up,_n)),fp.test(t)&&(t+=_n),t+="a";do t=cp(t);while(ap(t)||pp.test(t));return t.replace(dp,"$1")}});var lr=_chunkFNMRWIFMcjs.b.call(void 0, Ce=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Ce.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ce.find=(e,t)=>e.nodes.find(r=>r.type===t);Ce.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ce.isInteger(e)||!Ce.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ce.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ce.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Ce.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ce.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ce.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ce.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};return r(e),t}});var ur=_chunkFNMRWIFMcjs.b.call(void 0, (L1,ns)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var rs=lr();ns.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&rs.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&rs.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var is=_chunkFNMRWIFMcjs.b.call(void 0, (D1,os)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );os.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ms=_chunkFNMRWIFMcjs.b.call(void 0, (H1,ds)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var ss=is(),nt=(e,t,r)=>{if(ss(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ss(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),i=String(n.shorthand),s=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+o+i+s+a;if(nt.cache.hasOwnProperty(u))return nt.cache[u].result;let f=Math.min(e,t),c=Math.max(e,t);if(Math.abs(f-c)===1){let x=e+"|"+t;return n.capture?`(${x})`:n.wrap===!1?x:`(?:${x})`}let d=ps(e)||ps(t),p={min:e,max:t,a:f,b:c},v=[],_=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),f<0){let x=c<0?Math.abs(c):1;_=as(x,Math.abs(f),p,n),f=p.a=0}return c>=0&&(v=as(f,c,p,n)),p.negatives=_,p.positives=v,p.result=mp(_,v,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&v.length+_.length>1&&(p.result=`(?:${p.result})`),nt.cache[u]=p,p.result};function mp(e,t,r){let n=xn(e,t,"-",!1,r)||[],o=xn(t,e,"",!1,r)||[],i=xn(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function gp(e,t){let r=1,n=1,o=ls(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=ls(e,r);for(o=us(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=us(t+1,n)-1;return i=[...i],i.sort(vp),i}function hp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=yp(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[u,f]=n[a];u===f?i+=u:u!=="0"||f!=="9"?i+=_p(u,f,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function as(e,t,r,n){let o=gp(e,t),i=[],s=e,a;for(let u=0;u<o.length;u++){let f=o[u],c=hp(String(s),String(f),n),d="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+fs(a.count),s=f+1;continue}r.isPadded&&(d=xp(f,r,n)),c.string=d+c.pattern+fs(c.count),i.push(c),s=f+1,a=c}return i}function xn(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!cs(t,"string",a)&&i.push(r+a),n&&cs(t,"string",a)&&i.push(r+a)}return i}function yp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function vp(e,t){return e>t?1:t>e?-1:0}function cs(e,t,r){return e.some(n=>n[t]===r)}function ls(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function us(e,t){return e-e%Math.pow(10,t)}function fs(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function _p(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function ps(e){return/^-?(0+)\d/.test(e)}function xp(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}nt.cache={};nt.clearCache=()=>nt.cache={};ds.exports=nt});var Sn=_chunkFNMRWIFMcjs.b.call(void 0, (q1,bs)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Cp=_chunkFNMRWIFMcjs.a.call(void 0, "util"),ys=ms(),gs=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),bp=e=>t=>e===!0?Number(t):String(t),Cn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Nt=e=>Number.isInteger(+e),bn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Sp=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rp=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},hs=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},wp=(e,t)=>{e.negatives.sort((s,a)=>s<a?-1:s>a?1:0),e.positives.sort((s,a)=>s<a?-1:s>a?1:0);let r=t.capture?"":"?:",n="",o="",i;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,t.wrap?`(${r}${i})`:i},vs=(e,t,r,n)=>{if(r)return ys(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},_s=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return ys(e,t,r)},xs=(...e)=>new RangeError("Invalid range arguments: "+Cp.inspect(...e)),Cs=(e,t,r)=>{if(r.strictRanges===!0)throw xs([e,t]);return[]},Ep=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Ap=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw xs([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),u=String(t),f=String(r);r=Math.max(Math.abs(r),1);let c=bn(a)||bn(u)||bn(f),d=c?Math.max(a.length,u.length,f.length):0,p=c===!1&&Sp(e,t,n)===!1,v=n.transform||bp(p);if(n.toRegex&&r===1)return vs(hs(e,d),hs(t,d),!0,n);let _={negatives:[],positives:[]},x=A=>_[A<0?"negatives":"positives"].push(Math.abs(A)),C=[],E=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?x(o):C.push(Rp(v(o,E),d,p)),o=s?o-r:o+r,E++;return n.toRegex===!0?r>1?wp(_,n):_s(C,null,{wrap:!1,...n}):C},kp=(e,t,r=1,n={})=>{if(!Nt(e)&&e.length>1||!Nt(t)&&t.length>1)return Cs(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,u=Math.min(i,s),f=Math.max(i,s);if(n.toRegex&&r===1)return vs(u,f,!1,n);let c=[],d=0;for(;a?i>=s:i<=s;)c.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?_s(c,null,{wrap:!1,options:n}):c},fr=(e,t,r,n={})=>{if(t==null&&Cn(e))return[e];if(!Cn(e)||!Cn(t))return Cs(e,t,n);if(typeof r=="function")return fr(e,t,1,{transform:r});if(gs(r))return fr(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,Nt(r)?Nt(e)&&Nt(t)?Ap(e,t,r,o):kp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!gs(r)?Ep(r,o):fr(e,t,1,r)};bs.exports=fr});var ws=_chunkFNMRWIFMcjs.b.call(void 0, (U1,Rs)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Pp=Sn(),Ss=lr(),Op=(e,t={})=>{let r=(n,o={})=>{let i=Ss.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=Ss.reduce(n.nodes),d=Pp(...c,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return c.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let c of n.nodes)f+=r(c,n);return f};return r(e)};Rs.exports=Op});var ks=_chunkFNMRWIFMcjs.b.call(void 0, (W1,As)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Tp=Sn(),Es=ur(),yt=lr(),ot=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(ot(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ot(o,i,r):o+i);return yt.flatten(n)},$p=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,i={})=>{o.queue=[];let s=i,a=i.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(o.invalid||o.dollar){a.push(ot(a.pop(),Es(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(ot(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=yt.reduce(o.nodes);if(yt.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=Tp(...d,t);p.length===0&&(p=Es(o,t)),a.push(ot(a.pop(),p)),o.nodes=[];return}let u=yt.encloseBrace(o),f=o.queue,c=o;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,f=c.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&f.push(""),f.push("");continue}if(p.type==="close"){a.push(ot(a.pop(),f,u));continue}if(p.value&&p.type!=="open"){f.push(ot(f.pop(),p.value));continue}p.nodes&&n(p,o)}return f};return yt.flatten(n(e))};As.exports=$p});var Os=_chunkFNMRWIFMcjs.b.call(void 0, (K1,Ps)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Ps.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
2
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ms=_chunkFNMRWIFMcjs.b.call(void 0, (X1,Is)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Fp=ur(),{MAX_LENGTH:Ts,CHAR_BACKSLASH:Rn,CHAR_BACKTICK:Ip,CHAR_COMMA:Mp,CHAR_DOT:Lp,CHAR_LEFT_PARENTHESES:Np,CHAR_RIGHT_PARENTHESES:Dp,CHAR_LEFT_CURLY_BRACE:Vp,CHAR_RIGHT_CURLY_BRACE:Hp,CHAR_LEFT_SQUARE_BRACKET:$s,CHAR_RIGHT_SQUARE_BRACKET:Fs,CHAR_DOUBLE_QUOTE:jp,CHAR_SINGLE_QUOTE:qp,CHAR_NO_BREAK_SPACE:Bp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Up}=Os(),Gp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ts,r.maxLength):Ts;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},i=[o],s=o,a=o,u=0,f=e.length,c=0,d=0,p,v={},_=()=>e[c++],x=C=>{if(C.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&C.type==="text"){a.value+=C.value;return}return s.nodes.push(C),C.parent=s,C.prev=a,a=C,C};for(x({type:"bos"});c<f;)if(s=i[i.length-1],p=_(),!(p===Up||p===Bp)){if(p===Rn){x({type:"text",value:(t.keepEscaping?p:"")+_()});continue}if(p===Fs){x({type:"text",value:"\\"+p});continue}if(p===$s){u++;let C=!0,E;for(;c<f&&(E=_());){if(p+=E,E===$s){u++;continue}if(E===Rn){p+=_();continue}if(E===Fs&&(u--,u===0))break}x({type:"text",value:p});continue}if(p===Np){s=x({type:"paren",nodes:[]}),i.push(s),x({type:"text",value:p});continue}if(p===Dp){if(s.type!=="paren"){x({type:"text",value:p});continue}s=i.pop(),x({type:"text",value:p}),s=i[i.length-1];continue}if(p===jp||p===qp||p===Ip){let C=p,E;for(t.keepQuotes!==!0&&(p="");c<f&&(E=_());){if(E===Rn){p+=E+_();continue}if(E===C){t.keepQuotes===!0&&(p+=E);break}p+=E}x({type:"text",value:p});continue}if(p===Vp){d++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=x(E),i.push(s),x({type:"open",value:p});continue}if(p===Hp){if(s.type!=="brace"){x({type:"text",value:p});continue}let C="close";s=i.pop(),s.close=!0,x({type:C,value:p}),d--,s=i[i.length-1];continue}if(p===Mp&&d>0){if(s.ranges>0){s.ranges=0;let C=s.nodes.shift();s.nodes=[C,{type:"text",value:Fp(s)}]}x({type:"comma",value:p}),s.commas++;continue}if(p===Lp&&d>0&&s.commas===0){let C=s.nodes;if(d===0||C.length===0){x({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){C.pop();let E=C[C.length-1];E.value+=a.value+p,a=E,s.ranges--;continue}x({type:"dot",value:p});continue}x({type:"text",value:p})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(A=>{A.nodes||(A.type==="open"&&(A.isOpen=!0),A.type==="close"&&(A.isClose=!0),A.nodes||(A.type="text"),A.invalid=!0)});let C=i[i.length-1],E=C.nodes.indexOf(s);C.nodes.splice(E,1,...s.nodes)}while(i.length>0);return x({type:"eos"}),o};Is.exports=Gp});var Ds=_chunkFNMRWIFMcjs.b.call(void 0, (Z1,Ns)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Ls=ur(),Wp=ws(),zp=ks(),Kp=Ms(),ve=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=ve.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(ve.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ve.parse=(e,t={})=>Kp(e,t);ve.stringify=(e,t={})=>Ls(typeof e=="string"?ve.parse(e,t):e,t);ve.compile=(e,t={})=>(typeof e=="string"&&(e=ve.parse(e,t)),Wp(e,t));ve.expand=(e,t={})=>{typeof e=="string"&&(e=ve.parse(e,t));let r=zp(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ve.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ve.compile(e,t):ve.expand(e,t);Ns.exports=ve});var Dt=_chunkFNMRWIFMcjs.b.call(void 0, (eC,Bs)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Yp=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Pe="\\\\/",Vs=`[^${Pe}]`,Ne="\\.",Xp="\\+",Qp="\\?",pr="\\/",Zp="(?=.)",Hs="[^/]",wn=`(?:${pr}|$)`,js=`(?:^|${pr})`,En=`${Ne}{1,2}${wn}`,Jp=`(?!${Ne})`,ed=`(?!${js}${En})`,td=`(?!${Ne}{0,1}${wn})`,rd=`(?!${En})`,nd=`[^.${pr}]`,od=`${Hs}*?`,qs={DOT_LITERAL:Ne,PLUS_LITERAL:Xp,QMARK_LITERAL:Qp,SLASH_LITERAL:pr,ONE_CHAR:Zp,QMARK:Hs,END_ANCHOR:wn,DOTS_SLASH:En,NO_DOT:Jp,NO_DOTS:ed,NO_DOT_SLASH:td,NO_DOTS_SLASH:rd,QMARK_NO_DOT:nd,STAR:od,START_ANCHOR:js},id={...qs,SLASH_LITERAL:`[${Pe}]`,QMARK:Vs,STAR:`${Vs}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Pe}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Pe}])${Ne}{1,2}(?:[${Pe}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Pe}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Pe}]|$))`,QMARK_NO_DOT:`[^.${Pe}]`,START_ANCHOR:`(?:^|[${Pe}])`,END_ANCHOR:`(?:[${Pe}]|$)`},sd={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Bs.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:sd,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Yp.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?id:qs}}});var Vt=_chunkFNMRWIFMcjs.b.call(void 0, ye=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var ad=_chunkFNMRWIFMcjs.a.call(void 0, "path"),cd=process.platform==="win32",{REGEX_BACKSLASH:ld,REGEX_REMOVE_BACKSLASH:ud,REGEX_SPECIAL_CHARS:fd,REGEX_SPECIAL_CHARS_GLOBAL:pd}=Dt();ye.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ye.hasRegexChars=e=>fd.test(e);ye.isRegexChar=e=>e.length===1&&ye.hasRegexChars(e);ye.escapeRegex=e=>e.replace(pd,"\\$1");ye.toPosixSlashes=e=>e.replace(ld,"/");ye.removeBackslashes=e=>e.replace(ud,t=>t==="\\"?"":t);ye.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ye.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:cd===!0||ad.sep==="\\";ye.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ye.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ye.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ye.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Qs=_chunkFNMRWIFMcjs.b.call(void 0, (oC,Xs)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Us=Vt(),{CHAR_ASTERISK:An,CHAR_AT:dd,CHAR_BACKWARD_SLASH:Ht,CHAR_COMMA:md,CHAR_DOT:kn,CHAR_EXCLAMATION_MARK:Pn,CHAR_FORWARD_SLASH:Ys,CHAR_LEFT_CURLY_BRACE:On,CHAR_LEFT_PARENTHESES:Tn,CHAR_LEFT_SQUARE_BRACKET:gd,CHAR_PLUS:hd,CHAR_QUESTION_MARK:Gs,CHAR_RIGHT_CURLY_BRACE:yd,CHAR_RIGHT_PARENTHESES:Ws,CHAR_RIGHT_SQUARE_BRACKET:vd}=Dt(),zs=e=>e===Ys||e===Ht,Ks=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},_d=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],u=e,f=-1,c=0,d=0,p=!1,v=!1,_=!1,x=!1,C=!1,E=!1,A=!1,F=!1,B=!1,R=!1,I=0,S,k,T={value:"",depth:0,isGlob:!1},z=()=>f>=n,g=()=>u.charCodeAt(f+1),O=()=>(S=k,u.charCodeAt(++f));for(;f<n;){k=O();let j;if(k===Ht){A=T.backslashes=!0,k=O(),k===On&&(E=!0);continue}if(E===!0||k===On){for(I++;z()!==!0&&(k=O());){if(k===Ht){A=T.backslashes=!0,O();continue}if(k===On){I++;continue}if(E!==!0&&k===kn&&(k=O())===kn){if(p=T.isBrace=!0,_=T.isGlob=!0,R=!0,o===!0)continue;break}if(E!==!0&&k===md){if(p=T.isBrace=!0,_=T.isGlob=!0,R=!0,o===!0)continue;break}if(k===yd&&(I--,I===0)){E=!1,p=T.isBrace=!0,R=!0;break}}if(o===!0)continue;break}if(k===Ys){if(i.push(f),s.push(T),T={value:"",depth:0,isGlob:!1},R===!0)continue;if(S===kn&&f===c+1){c+=2;continue}d=f+1;continue}if(r.noext!==!0&&(k===hd||k===dd||k===An||k===Gs||k===Pn)===!0&&g()===Tn){if(_=T.isGlob=!0,x=T.isExtglob=!0,R=!0,k===Pn&&f===c&&(B=!0),o===!0){for(;z()!==!0&&(k=O());){if(k===Ht){A=T.backslashes=!0,k=O();continue}if(k===Ws){_=T.isGlob=!0,R=!0;break}}continue}break}if(k===An){if(S===An&&(C=T.isGlobstar=!0),_=T.isGlob=!0,R=!0,o===!0)continue;break}if(k===Gs){if(_=T.isGlob=!0,R=!0,o===!0)continue;break}if(k===gd){for(;z()!==!0&&(j=O());){if(j===Ht){A=T.backslashes=!0,O();continue}if(j===vd){v=T.isBracket=!0,_=T.isGlob=!0,R=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&k===Pn&&f===c){F=T.negated=!0,c++;continue}if(r.noparen!==!0&&k===Tn){if(_=T.isGlob=!0,o===!0){for(;z()!==!0&&(k=O());){if(k===Tn){A=T.backslashes=!0,k=O();continue}if(k===Ws){R=!0;break}}continue}break}if(_===!0){if(R=!0,o===!0)continue;break}}r.noext===!0&&(x=!1,_=!1);let M=u,D="",h="";c>0&&(D=u.slice(0,c),u=u.slice(c),d-=c),M&&_===!0&&d>0?(M=u.slice(0,d),h=u.slice(d)):_===!0?(M="",h=u):M=u,M&&M!==""&&M!=="/"&&M!==u&&zs(M.charCodeAt(M.length-1))&&(M=M.slice(0,-1)),r.unescape===!0&&(h&&(h=Us.removeBackslashes(h)),M&&A===!0&&(M=Us.removeBackslashes(M)));let y={prefix:D,input:e,start:c,base:M,glob:h,isBrace:p,isBracket:v,isGlob:_,isExtglob:x,isGlobstar:C,negated:F,negatedExtglob:B};if(r.tokens===!0&&(y.maxDepth=0,zs(k)||s.push(T),y.tokens=s),r.parts===!0||r.tokens===!0){let j;for(let $=0;$<i.length;$++){let L=j?j+1:c,G=i[$],H=e.slice(L,G);r.tokens&&($===0&&c!==0?(s[$].isPrefix=!0,s[$].value=D):s[$].value=H,Ks(s[$]),y.maxDepth+=s[$].depth),($!==0||H!=="")&&a.push(H),j=G}if(j&&j+1<e.length){let $=e.slice(j+1);a.push($),r.tokens&&(s[s.length-1].value=$,Ks(s[s.length-1]),y.maxDepth+=s[s.length-1].depth)}y.slashes=i,y.parts=a}return y};Xs.exports=_d});var ea=_chunkFNMRWIFMcjs.b.call(void 0, (sC,Js)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var dr=Dt(),_e=Vt(),{MAX_LENGTH:mr,POSIX_REGEX_SOURCE:xd,REGEX_NON_SPECIAL_CHARS:Cd,REGEX_SPECIAL_CHARS_BACKREF:bd,REPLACEMENTS:Zs}=dr,Sd=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch (e2){return e.map(o=>_e.escapeRegex(o)).join("..")}return r},vt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,$n=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Zs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",u=_e.isWindows(t),f=dr.globChars(u),c=dr.extglobChars(f),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:v,ONE_CHAR:_,DOTS_SLASH:x,NO_DOT:C,NO_DOT_SLASH:E,NO_DOTS_SLASH:A,QMARK:F,QMARK_NO_DOT:B,STAR:R,START_ANCHOR:I}=f,S=P=>`(${a}(?:(?!${I}${P.dot?x:d}).)*?)`,k=r.dot?"":C,T=r.dot?F:B,z=r.bash===!0?S(r):R;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=_e.removePrefix(e,g),o=e.length;let O=[],M=[],D=[],h=i,y,j=()=>g.index===o-1,$=g.peek=(P=1)=>e[g.index+P],L=g.advance=()=>e[++g.index]||"",G=()=>e.slice(g.index+1),H=(P="",K=0)=>{g.consumed+=P,g.index+=K},oe=P=>{g.output+=P.output!=null?P.output:P.value,H(P.value)},ee=()=>{let P=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)L(),g.start++,P++;return P%2===0?!1:(g.negated=!0,g.start++,!0)},Le=P=>{g[P]++,D.push(P)},ue=P=>{g[P]--,D.pop()},V=P=>{if(h.type==="globstar"){let K=g.braces>0&&(P.type==="comma"||P.type==="brace"),w=P.extglob===!0||O.length&&(P.type==="pipe"||P.type==="paren");P.type!=="slash"&&P.type!=="paren"&&!K&&!w&&(g.output=g.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=z,g.output+=h.output)}if(O.length&&P.type!=="paren"&&(O[O.length-1].inner+=P.value),(P.value||P.output)&&oe(P),h&&h.type==="text"&&P.type==="text"){h.value+=P.value,h.output=(h.output||"")+P.value;return}P.prev=h,s.push(P),h=P},he=(P,K)=>{let w={...c[K],conditions:1,inner:""};w.prev=h,w.parens=g.parens,w.output=g.output;let q=(r.capture?"(":"")+w.open;Le("parens"),V({type:P,value:K,output:g.output?"":_}),V({type:"paren",extglob:!0,value:L(),output:q}),O.push(w)},mt=P=>{let K=P.close+(r.capture?")":""),w;if(P.type==="negate"){let q=z;if(P.inner&&P.inner.length>1&&P.inner.includes("/")&&(q=S(r)),(q!==z||j()||/^\)+$/.test(G()))&&(K=P.close=`)$))${q}`),P.inner.includes("*")&&(w=G())&&/^\.[^\\/.]+$/.test(w)){let Q=$n(w,{...t,fastpaths:!1}).output;K=P.close=`)${Q})${q})`}P.prev.type==="bos"&&(g.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:y,output:K}),ue("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let P=!1,K=e.replace(bd,(w,q,Q,ge,ie,mn)=>ge==="\\"?(P=!0,w):ge==="?"?q?q+ge+(ie?F.repeat(ie.length):""):mn===0?T+(ie?F.repeat(ie.length):""):F.repeat(Q.length):ge==="."?d.repeat(Q.length):ge==="*"?q?q+ge+(ie?z:""):z:q?w:`\\${w}`);return P===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),K===e&&r.contains===!0?(g.output=e,g):(g.output=_e.wrapOutput(K,g,t),g)}for(;!j();){if(y=L(),y==="\0")continue;if(y==="\\"){let w=$();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){y+="\\",V({type:"text",value:y});continue}let q=/^\\+/.exec(G()),Q=0;if(q&&q[0].length>2&&(Q=q[0].length,g.index+=Q,Q%2!==0&&(y+="\\")),r.unescape===!0?y=L():y+=L(),g.brackets===0){V({type:"text",value:y});continue}}if(g.brackets>0&&(y!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&y===":"){let w=h.value.slice(1);if(w.includes("[")&&(h.posix=!0,w.includes(":"))){let q=h.value.lastIndexOf("["),Q=h.value.slice(0,q),ge=h.value.slice(q+2),ie=xd[ge];if(ie){h.value=Q+ie,g.backtrack=!0,L(),!i.output&&s.indexOf(h)===1&&(i.output=_);continue}}}(y==="["&&$()!==":"||y==="-"&&$()==="]")&&(y=`\\${y}`),y==="]"&&(h.value==="["||h.value==="[^")&&(y=`\\${y}`),r.posix===!0&&y==="!"&&h.value==="["&&(y="^"),h.value+=y,oe({value:y});continue}if(g.quotes===1&&y!=='"'){y=_e.escapeRegex(y),h.value+=y,oe({value:y});continue}if(y==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:y});continue}if(y==="("){Le("parens"),V({type:"paren",value:y});continue}if(y===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vt("opening","("));let w=O[O.length-1];if(w&&g.parens===w.parens+1){mt(O.pop());continue}V({type:"paren",value:y,output:g.parens?")":"\\)"}),ue("parens");continue}if(y==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));y=`\\${y}`}else Le("brackets");V({type:"bracket",value:y});continue}if(y==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){V({type:"text",value:y,output:`\\${y}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vt("opening","["));V({type:"text",value:y,output:`\\${y}`});continue}ue("brackets");let w=h.value.slice(1);if(h.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(y=`/${y}`),h.value+=y,oe({value:y}),r.literalBrackets===!1||_e.hasRegexChars(w))continue;let q=_e.escapeRegex(h.value);if(g.output=g.output.slice(0,-h.value.length),r.literalBrackets===!0){g.output+=q,h.value=q;continue}h.value=`(${a}${q}|${h.value})`,g.output+=h.value;continue}if(y==="{"&&r.nobrace!==!0){Le("braces");let w={type:"brace",value:y,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};M.push(w),V(w);continue}if(y==="}"){let w=M[M.length-1];if(r.nobrace===!0||!w){V({type:"text",value:y,output:y});continue}let q=")";if(w.dots===!0){let Q=s.slice(),ge=[];for(let ie=Q.length-1;ie>=0&&(s.pop(),Q[ie].type!=="brace");ie--)Q[ie].type!=="dots"&&ge.unshift(Q[ie].value);q=Sd(ge,r),g.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let Q=g.output.slice(0,w.outputIndex),ge=g.tokens.slice(w.tokensIndex);w.value=w.output="\\{",y=q="\\}",g.output=Q;for(let ie of ge)g.output+=ie.output||ie.value}V({type:"brace",value:y,output:q}),ue("braces"),M.pop();continue}if(y==="|"){O.length>0&&O[O.length-1].conditions++,V({type:"text",value:y});continue}if(y===","){let w=y,q=M[M.length-1];q&&D[D.length-1]==="braces"&&(q.comma=!0,w="|"),V({type:"comma",value:y,output:w});continue}if(y==="/"){if(h.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",s.pop(),h=i;continue}V({type:"slash",value:y,output:v});continue}if(y==="."){if(g.braces>0&&h.type==="dot"){h.value==="."&&(h.output=d);let w=M[M.length-1];h.type="dots",h.output+=y,h.value+=y,w.dots=!0;continue}if(g.braces+g.parens===0&&h.type!=="bos"&&h.type!=="slash"){V({type:"text",value:y,output:d});continue}V({type:"dot",value:y,output:d});continue}if(y==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){he("qmark",y);continue}if(h&&h.type==="paren"){let q=$(),Q=y;if(q==="<"&&!_e.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(G()))&&(Q=`\\${y}`),V({type:"text",value:y,output:Q});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){V({type:"qmark",value:y,output:B});continue}V({type:"qmark",value:y,output:F});continue}if(y==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){he("negate",y);continue}if(r.nonegate!==!0&&g.index===0){ee();continue}}if(y==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){he("plus",y);continue}if(h&&h.value==="("||r.regex===!1){V({type:"plus",value:y,output:p});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||g.parens>0){V({type:"plus",value:y});continue}V({type:"plus",value:p});continue}if(y==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){V({type:"at",extglob:!0,value:y,output:""});continue}V({type:"text",value:y});continue}if(y!=="*"){(y==="$"||y==="^")&&(y=`\\${y}`);let w=Cd.exec(G());w&&(y+=w[0],g.index+=w[0].length),V({type:"text",value:y});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=y,h.output=z,g.backtrack=!0,g.globstar=!0,H(y);continue}let P=G();if(r.noextglob!==!0&&/^\([^?]/.test(P)){he("star",y);continue}if(h.type==="star"){if(r.noglobstar===!0){H(y);continue}let w=h.prev,q=w.prev,Q=w.type==="slash"||w.type==="bos",ge=q&&(q.type==="star"||q.type==="globstar");if(r.bash===!0&&(!Q||P[0]&&P[0]!=="/")){V({type:"star",value:y,output:""});continue}let ie=g.braces>0&&(w.type==="comma"||w.type==="brace"),mn=O.length&&(w.type==="pipe"||w.type==="paren");if(!Q&&w.type!=="paren"&&!ie&&!mn){V({type:"star",value:y,output:""});continue}for(;P.slice(0,3)==="/**";){let sr=e[g.index+4];if(sr&&sr!=="/")break;P=P.slice(3),H("/**",3)}if(w.type==="bos"&&j()){h.type="globstar",h.value+=y,h.output=S(r),g.output=h.output,g.globstar=!0,H(y);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!ge&&j()){g.output=g.output.slice(0,-(w.output+h.output).length),w.output=`(?:${w.output}`,h.type="globstar",h.output=S(r)+(r.strictSlashes?")":"|$)"),h.value+=y,g.globstar=!0,g.output+=w.output+h.output,H(y);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&P[0]==="/"){let sr=P[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(w.output+h.output).length),w.output=`(?:${w.output}`,h.type="globstar",h.output=`${S(r)}${v}|${v}${sr})`,h.value+=y,g.output+=w.output+h.output,g.globstar=!0,H(y+L()),V({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&P[0]==="/"){h.type="globstar",h.value+=y,h.output=`(?:^|${v}|${S(r)}${v})`,g.output=h.output,g.globstar=!0,H(y+L()),V({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-h.output.length),h.type="globstar",h.output=S(r),h.value+=y,g.output+=h.output,g.globstar=!0,H(y);continue}let K={type:"star",value:y,output:z};if(r.bash===!0){K.output=".*?",(h.type==="bos"||h.type==="slash")&&(K.output=k+K.output),V(K);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){K.output=y,V(K);continue}(g.index===g.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(g.output+=E,h.output+=E):r.dot===!0?(g.output+=A,h.output+=A):(g.output+=k,h.output+=k),$()!=="*"&&(g.output+=_,h.output+=_)),V(K)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));g.output=_e.escapeLast(g.output,"["),ue("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing",")"));g.output=_e.escapeLast(g.output,"("),ue("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","}"));g.output=_e.escapeLast(g.output,"{"),ue("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${v}?`}),g.backtrack===!0){g.output="";for(let P of g.tokens)g.output+=P.output!=null?P.output:P.value,P.suffix&&(g.output+=P.suffix)}return g};$n.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(mr,r.maxLength):mr,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Zs[e]||e;let i=_e.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:c,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:v,START_ANCHOR:_}=dr.globChars(i),x=r.dot?d:c,C=r.dot?p:c,E=r.capture?"":"?:",A={negated:!1,prefix:""},F=r.bash===!0?".*?":v;r.capture&&(F=`(${F})`);let B=k=>k.noglobstar===!0?F:`(${E}(?:(?!${_}${k.dot?f:s}).)*?)`,R=k=>{switch(k){case"*":return`${x}${u}${F}`;case".*":return`${s}${u}${F}`;case"*.*":return`${x}${F}${s}${u}${F}`;case"*/*":return`${x}${F}${a}${u}${C}${F}`;case"**":return x+B(r);case"**/*":return`(?:${x}${B(r)}${a})?${C}${u}${F}`;case"**/*.*":return`(?:${x}${B(r)}${a})?${C}${F}${s}${u}${F}`;case"**/.*":return`(?:${x}${B(r)}${a})?${s}${u}${F}`;default:{let T=/^(.*?)\.(\w+)$/.exec(k);if(!T)return;let z=R(T[1]);return z?z+s+T[2]:void 0}}},I=_e.removePrefix(e,A),S=R(I);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};Js.exports=$n});var ra=_chunkFNMRWIFMcjs.b.call(void 0, (cC,ta)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Rd=_chunkFNMRWIFMcjs.a.call(void 0, "path"),wd=Qs(),Fn=ea(),In=Vt(),Ed=Dt(),Ad=e=>e&&typeof e=="object"&&!Array.isArray(e),te=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map(p=>te(p,t,r));return p=>{for(let v of c){let _=v(p);if(_)return _}return!1}}let n=Ad(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=In.isWindows(t),s=n?te.compileRe(e,t):te.makeRe(e,t,!1,!0),a=s.state;delete s.state;let u=()=>!1;if(o.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=te(o.ignore,c,r)}let f=(c,d=!1)=>{let{isMatch:p,match:v,output:_}=te.test(c,s,t,{glob:e,posix:i}),x={glob:e,state:a,regex:s,posix:i,input:c,output:_,match:v,isMatch:p};return typeof o.onResult=="function"&&o.onResult(x),p===!1?(x.isMatch=!1,d?x:!1):u(c)?(typeof o.onIgnore=="function"&&o.onIgnore(x),x.isMatch=!1,d?x:!1):(typeof o.onMatch=="function"&&o.onMatch(x),d?x:!0)};return r&&(f.state=a),f};te.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?In.toPosixSlashes:null),a=e===n,u=a&&s?s(e):e;return a===!1&&(u=s?s(e):e,a=u===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=te.matchBase(e,t,r,o):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};te.matchBase=(e,t,r,n=In.isWindows(r))=>(t instanceof RegExp?t:te.makeRe(t,r)).test(Rd.basename(e));te.isMatch=(e,t,r)=>te(t,r)(e);te.parse=(e,t)=>Array.isArray(e)?e.map(r=>te.parse(r,t)):Fn(e,{...t,fastpaths:!1});te.scan=(e,t)=>wd(e,t);te.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=te.toRegex(a,t);return n===!0&&(u.state=e),u};te.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Fn.fastpaths(e,t)),o.output||(o=Fn(e,t)),te.compileRe(o,t,r,n)};te.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};te.constants=Ed;ta.exports=te});var oa=_chunkFNMRWIFMcjs.b.call(void 0, (uC,na)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );na.exports=ra()});var la=_chunkFNMRWIFMcjs.b.call(void 0, (pC,ca)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var sa=_chunkFNMRWIFMcjs.a.call(void 0, "util"),aa=Ds(),Oe=oa(),Mn=Vt(),ia=e=>e===""||e==="./",X=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=c=>{i.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<t.length;c++){let d=Oe(String(t[c]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let v of e){let _=d(v,!0);(p?!_.isMatch:_.isMatch)&&(p?n.add(_.output):(n.delete(_.output),o.add(_.output)))}}let f=(s===t.length?[...i]:[...o]).filter(c=>!n.has(c));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(c=>c.replace(/\\/g,"")):t}return f};X.match=X;X.matcher=(e,t)=>Oe(e,t);X.isMatch=(e,t,r)=>Oe(t,r)(e);X.any=X.isMatch;X.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(X(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};X.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sa.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>X.contains(e,n,r));if(typeof t=="string"){if(ia(e)||ia(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return X.isMatch(e,t,{...r,contains:!0})};X.matchKeys=(e,t,r)=>{if(!Mn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=X(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};X.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Oe(String(o),r);if(n.some(s=>i(s)))return!0}return!1};X.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Oe(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};X.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sa.inspect(e)}"`);return[].concat(t).every(n=>Oe(n,r)(e))};X.capture=(e,t,r)=>{let n=Mn.isWindows(r),i=Oe.makeRe(String(e),{...r,capture:!0}).exec(n?Mn.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};X.makeRe=(...e)=>Oe.makeRe(...e);X.scan=(...e)=>Oe.scan(...e);X.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of aa(String(n),t))r.push(Oe.parse(o,t));return r};X.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:aa(e,t)};X.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return X.braces(e,{...t,expand:!0})};ca.exports=X});var ya=_chunkFNMRWIFMcjs.b.call(void 0, N=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(N,"__esModule",{value:!0});N.removeDuplicateSlashes=N.matchAny=N.convertPatternsToRe=N.makeRe=N.getPatternParts=N.expandBraceExpansion=N.expandPatternsWithBraceExpansion=N.isAffectDepthOfReadingPattern=N.endsWithSlashGlobStar=N.hasGlobStar=N.getBaseDirectory=N.isPatternRelatedToParentDirectory=N.getPatternsOutsideCurrentDirectory=N.getPatternsInsideCurrentDirectory=N.getPositivePatterns=N.getNegativePatterns=N.isPositivePattern=N.isNegativePattern=N.convertToNegativePattern=N.convertToPositivePattern=N.isDynamicPattern=N.isStaticPattern=void 0;var kd=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Pd=ts(),Ln=la(),ua="**",Od="\\",Td=/[*?]|^!/,$d=/\[[^[]*]/,Fd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Id=/[!*+?@]\([^(]*\)/,Md=/,|\.\./,Ld=/(?!^)\/{2,}/g;function fa(e,t={}){return!pa(e,t)}N.isStaticPattern=fa;function pa(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Od)||Td.test(e)||$d.test(e)||Fd.test(e)||t.extglob!==!1&&Id.test(e)||t.braceExpansion!==!1&&Nd(e))}N.isDynamicPattern=pa;function Nd(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Md.test(n)}function Dd(e){return gr(e)?e.slice(1):e}N.convertToPositivePattern=Dd;function Vd(e){return"!"+e}N.convertToNegativePattern=Vd;function gr(e){return e.startsWith("!")&&e[1]!=="("}N.isNegativePattern=gr;function da(e){return!gr(e)}N.isPositivePattern=da;function Hd(e){return e.filter(gr)}N.getNegativePatterns=Hd;function jd(e){return e.filter(da)}N.getPositivePatterns=jd;function qd(e){return e.filter(t=>!Nn(t))}N.getPatternsInsideCurrentDirectory=qd;function Bd(e){return e.filter(Nn)}N.getPatternsOutsideCurrentDirectory=Bd;function Nn(e){return e.startsWith("..")||e.startsWith("./..")}N.isPatternRelatedToParentDirectory=Nn;function Ud(e){return Pd(e,{flipBackslashes:!1})}N.getBaseDirectory=Ud;function Gd(e){return e.includes(ua)}N.hasGlobStar=Gd;function ma(e){return e.endsWith("/"+ua)}N.endsWithSlashGlobStar=ma;function Wd(e){let t=kd.basename(e);return ma(e)||fa(t)}N.isAffectDepthOfReadingPattern=Wd;function zd(e){return e.reduce((t,r)=>t.concat(ga(r)),[])}N.expandPatternsWithBraceExpansion=zd;function ga(e){let t=Ln.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}N.expandBraceExpansion=ga;function Kd(e,t){let{parts:r}=Ln.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}N.getPatternParts=Kd;function ha(e,t){return Ln.makeRe(e,t)}N.makeRe=ha;function Yd(e,t){return e.map(r=>ha(r,t))}N.convertPatternsToRe=Yd;function Xd(e,t){return t.some(r=>r.test(e))}N.matchAny=Xd;function Qd(e){return e.replace(Ld,"/")}N.removeDuplicateSlashes=Qd});var Ca=_chunkFNMRWIFMcjs.b.call(void 0, (hC,xa)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Zd=_chunkFNMRWIFMcjs.a.call(void 0, "stream"),va=Zd.PassThrough,Jd=Array.prototype.slice;xa.exports=em;function em(){let e=[],t=Jd.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let o=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=va(n);function a(){for(let c=0,d=arguments.length;c<d;c++)e.push(_a(arguments[c],n));return u(),this}function u(){if(r)return;r=!0;let c=e.shift();if(!c){process.nextTick(f);return}Array.isArray(c)||(c=[c]);let d=c.length+1;function p(){--d>0||(r=!1,u())}function v(_){function x(){_.removeListener("merge2UnpipeEnd",x),_.removeListener("end",x),i&&_.removeListener("error",C),p()}function C(E){s.emit("error",E)}if(_._readableState.endEmitted)return p();_.on("merge2UnpipeEnd",x),_.on("end",x),i&&_.on("error",C),_.pipe(s,{end:!1}),_.resume()}for(let _=0;_<c.length;_++)v(c[_]);p()}function f(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function _a(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=_a(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(va(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Sa=_chunkFNMRWIFMcjs.b.call(void 0, hr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(hr,"__esModule",{value:!0});hr.merge=void 0;var tm=Ca();function rm(e){let t=tm(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>ba(e)),t.once("end",()=>ba(e)),t}hr.merge=rm;function ba(e){e.forEach(t=>t.emit("close"))}});var Ra=_chunkFNMRWIFMcjs.b.call(void 0, _t=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(_t,"__esModule",{value:!0});_t.isEmpty=_t.isString=void 0;function nm(e){return typeof e=="string"}_t.isString=nm;function om(e){return e===""}_t.isEmpty=om});var De=_chunkFNMRWIFMcjs.b.call(void 0, pe=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(pe,"__esModule",{value:!0});pe.string=pe.stream=pe.pattern=pe.path=pe.fs=pe.errno=pe.array=void 0;var im=qi();pe.array=im;var sm=Bi();pe.errno=sm;var am=Ui();pe.fs=am;var cm=Ki();pe.path=cm;var lm=ya();pe.pattern=lm;var um=Sa();pe.stream=um;var fm=Ra();pe.string=fm});var ka=_chunkFNMRWIFMcjs.b.call(void 0, de=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(de,"__esModule",{value:!0});de.convertPatternGroupToTask=de.convertPatternGroupsToTasks=de.groupPatternsByBaseDirectory=de.getNegativePatternsAsPositive=de.getPositivePatterns=de.convertPatternsToTasks=de.generate=void 0;var Ae=De();function pm(e,t){let r=wa(e,t),n=wa(t.ignore,t),o=Ea(r),i=Aa(r,n),s=o.filter(c=>Ae.pattern.isStaticPattern(c,t)),a=o.filter(c=>Ae.pattern.isDynamicPattern(c,t)),u=Dn(s,i,!1),f=Dn(a,i,!0);return u.concat(f)}de.generate=pm;function wa(e,t){let r=e;return t.braceExpansion&&(r=Ae.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Ae.pattern.removeDuplicateSlashes(n))}function Dn(e,t,r){let n=[],o=Ae.pattern.getPatternsOutsideCurrentDirectory(e),i=Ae.pattern.getPatternsInsideCurrentDirectory(e),s=Vn(o),a=Vn(i);return n.push(...Hn(s,t,r)),"."in a?n.push(jn(".",i,t,r)):n.push(...Hn(a,t,r)),n}de.convertPatternsToTasks=Dn;function Ea(e){return Ae.pattern.getPositivePatterns(e)}de.getPositivePatterns=Ea;function Aa(e,t){return Ae.pattern.getNegativePatterns(e).concat(t).map(Ae.pattern.convertToPositivePattern)}de.getNegativePatternsAsPositive=Aa;function Vn(e){let t={};return e.reduce((r,n)=>{let o=Ae.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}de.groupPatternsByBaseDirectory=Vn;function Hn(e,t,r){return Object.keys(e).map(n=>jn(n,e[n],t,r))}de.convertPatternGroupsToTasks=Hn;function jn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ae.pattern.convertToNegativePattern))}}de.convertPatternGroupToTask=jn});var Oa=_chunkFNMRWIFMcjs.b.call(void 0, yr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(yr,"__esModule",{value:!0});yr.read=void 0;function dm(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){Pa(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){qn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Pa(r,i);return}qn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),qn(r,s)})})}yr.read=dm;function Pa(e,t){e(t)}function qn(e,t){e(null,t)}});var Ta=_chunkFNMRWIFMcjs.b.call(void 0, vr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(vr,"__esModule",{value:!0});vr.read=void 0;function mm(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}vr.read=mm});var $a=_chunkFNMRWIFMcjs.b.call(void 0, qe=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var _r=_chunkFNMRWIFMcjs.a.call(void 0, "fs");qe.FILE_SYSTEM_ADAPTER={lstat:_r.lstat,stat:_r.stat,lstatSync:_r.lstatSync,statSync:_r.statSync};function gm(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=gm});var Fa=_chunkFNMRWIFMcjs.b.call(void 0, Un=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Un,"__esModule",{value:!0});var hm=$a(),Bn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=hm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};Un.default=Bn});var it=_chunkFNMRWIFMcjs.b.call(void 0, Be=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Be,"__esModule",{value:!0});Be.statSync=Be.stat=Be.Settings=void 0;var Ia=Oa(),ym=Ta(),Gn=Fa();Be.Settings=Gn.default;function vm(e,t,r){if(typeof t=="function"){Ia.read(e,Wn(),t);return}Ia.read(e,Wn(t),r)}Be.stat=vm;function _m(e,t){let r=Wn(t);return ym.read(e,r)}Be.statSync=_m;function Wn(e={}){return e instanceof Gn.default?e:new Gn.default(e)}});var Na=_chunkFNMRWIFMcjs.b.call(void 0, (LC,La)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Ma;La.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Ma||(Ma=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Va=_chunkFNMRWIFMcjs.b.call(void 0, (DC,Da)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Da.exports=Cm;var xm=Na();function Cm(e,t){let r,n,o,i=!0;Array.isArray(e)?(r=[],n=e.length):(o=Object.keys(e),r={},n=o.length);function s(u){function f(){t&&t(u,r),t=null}i?xm(f):f()}function a(u,f,c){r[u]=c,(--n===0||f)&&s(f)}n?o?o.forEach(function(u){e[u](function(f,c){a(u,f,c)})}):e.forEach(function(u,f){u(function(c,d){a(f,c,d)})}):s(null),i=!1}});var zn=_chunkFNMRWIFMcjs.b.call(void 0, Cr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xr=process.versions.node.split(".");if(xr[0]===void 0||xr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ha=Number.parseInt(xr[0],10),bm=Number.parseInt(xr[1],10),ja=10,Sm=10,Rm=Ha>ja,wm=Ha===ja&&bm>=Sm;Cr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Rm||wm});var qa=_chunkFNMRWIFMcjs.b.call(void 0, br=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(br,"__esModule",{value:!0});br.createDirentFromStats=void 0;var Kn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Em(e,t){return new Kn(e,t)}br.createDirentFromStats=Em});var Yn=_chunkFNMRWIFMcjs.b.call(void 0, Sr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Sr,"__esModule",{value:!0});Sr.fs=void 0;var Am=qa();Sr.fs=Am});var Xn=_chunkFNMRWIFMcjs.b.call(void 0, Rr=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Rr,"__esModule",{value:!0});Rr.joinPathSegments=void 0;function km(e,t,r){return e.endsWith(r)?e+t:e+r+t}Rr.joinPathSegments=km});var Ka=_chunkFNMRWIFMcjs.b.call(void 0, Ue=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var Pm=it(),Ba=Va(),Om=zn(),Ua=Yn(),Ga=Xn();function Tm(e,t,r){if(!t.stats&&Om.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Wa(e,t,r);return}za(e,t,r)}Ue.read=Tm;function Wa(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){wr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Ga.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Qn(r,i);return}let s=i.map(a=>$m(a,t));Ba(s,(a,u)=>{if(a!==null){wr(r,a);return}Qn(r,u)})})}Ue.readdirWithFileTypes=Wa;function $m(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,o)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Ua.fs.createDirentFromStats(e.name,o),r(null,e)})}}function za(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){wr(r,n);return}let i=o.map(s=>{let a=Ga.joinPathSegments(e,s,t.pathSegmentSeparator);return u=>{Pm.stat(a,t.fsStatSettings,(f,c)=>{if(f!==null){u(f);return}let d={name:s,path:a,dirent:Ua.fs.createDirentFromStats(s,c)};t.stats&&(d.stats=c),u(null,d)})}});Ba(i,(s,a)=>{if(s!==null){wr(r,s);return}Qn(r,a)})})}Ue.readdir=za;function wr(e,t){e(t)}function Qn(e,t){e(null,t)}});var Ja=_chunkFNMRWIFMcjs.b.call(void 0, Ge=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var Fm=it(),Im=zn(),Ya=Yn(),Xa=Xn();function Mm(e,t){return!t.stats&&Im.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Qa(e,t):Za(e,t)}Ge.read=Mm;function Qa(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Xa.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ya.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}Ge.readdirWithFileTypes=Qa;function Za(e,t){return t.fs.readdirSync(e).map(n=>{let o=Xa.joinPathSegments(e,n,t.pathSegmentSeparator),i=Fm.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ya.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}Ge.readdir=Za});var ec=_chunkFNMRWIFMcjs.b.call(void 0, We=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(We,"__esModule",{value:!0});We.createFileSystemAdapter=We.FILE_SYSTEM_ADAPTER=void 0;var xt=_chunkFNMRWIFMcjs.a.call(void 0, "fs");We.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function Lm(e){return e===void 0?We.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},We.FILE_SYSTEM_ADAPTER),e)}We.createFileSystemAdapter=Lm});var tc=_chunkFNMRWIFMcjs.b.call(void 0, Jn=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Jn,"__esModule",{value:!0});var Nm=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Dm=it(),Vm=ec(),Zn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Vm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Nm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Dm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};Jn.default=Zn});var Er=_chunkFNMRWIFMcjs.b.call(void 0, ze=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(ze,"__esModule",{value:!0});ze.Settings=ze.scandirSync=ze.scandir=void 0;var rc=Ka(),Hm=Ja(),eo=tc();ze.Settings=eo.default;function jm(e,t,r){if(typeof t=="function"){rc.read(e,to(),t);return}rc.read(e,to(t),r)}ze.scandir=jm;function qm(e,t){let r=to(t);return Hm.read(e,r)}ze.scandirSync=qm;function to(e={}){return e instanceof eo.default?e:new eo.default(e)}});var oc=_chunkFNMRWIFMcjs.b.call(void 0, (ob,nc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );function Bm(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function o(i){r.next=i,r=i}return{get:n,release:o}}nc.exports=Bm});var sc=_chunkFNMRWIFMcjs.b.call(void 0, (sb,ro)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Um=oc();function ic(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Um(Gm),o=null,i=null,s=0,a=null,u={push:x,drain:be,saturated:be,pause:c,paused:!1,concurrency:r,running:f,resume:v,idle:_,length:d,getQueue:p,unshift:C,empty:be,kill:A,killAndDrain:F,error:B};return u;function f(){return s}function c(){u.paused=!0}function d(){for(var R=o,I=0;R;)R=R.next,I++;return I}function p(){for(var R=o,I=[];R;)I.push(R.value),R=R.next;return I}function v(){if(u.paused){u.paused=!1;for(var R=0;R<u.concurrency;R++)s++,E()}}function _(){return s===0&&u.length()===0}function x(R,I){var S=n.get();S.context=e,S.release=E,S.value=R,S.callback=I||be,S.errorHandler=a,s===u.concurrency||u.paused?i?(i.next=S,i=S):(o=S,i=S,u.saturated()):(s++,t.call(e,S.value,S.worked))}function C(R,I){var S=n.get();S.context=e,S.release=E,S.value=R,S.callback=I||be,S.errorHandler=a,s===u.concurrency||u.paused?o?(S.next=o,o=S):(o=S,i=S,u.saturated()):(s++,t.call(e,S.value,S.worked))}function E(R){R&&n.release(R);var I=o;I?u.paused?s--:(i===o&&(i=null),o=I.next,I.next=null,t.call(e,I.value,I.worked),i===null&&u.empty()):--s===0&&u.drain()}function A(){o=null,i=null,u.drain=be}function F(){o=null,i=null,u.drain(),u.drain=be}function B(R){a=R}}function be(){}function Gm(){this.value=null,this.callback=be,this.next=null,this.release=be,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var o=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=be,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function Wm(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(c,d){t.call(this,c).then(function(p){d(null,p)},d)}var o=ic(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=u,o.drained=f,o;function a(c){var d=new Promise(function(p,v){i(c,function(_,x){if(_){v(_);return}p(x)})});return d.catch(be),d}function u(c){var d=new Promise(function(p,v){s(c,function(_,x){if(_){v(_);return}p(x)})});return d.catch(be),d}function f(){if(o.idle())return new Promise(function(p){p()});var c=o.drain,d=new Promise(function(p){o.drain=function(){c(),p()}});return d}}ro.exports=ic;ro.exports.promise=Wm});var Ar=_chunkFNMRWIFMcjs.b.call(void 0, Te=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Te,"__esModule",{value:!0});Te.joinPathSegments=Te.replacePathSegmentSeparator=Te.isAppliedFilter=Te.isFatalError=void 0;function zm(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Te.isFatalError=zm;function Km(e,t){return e===null||e(t)}Te.isAppliedFilter=Km;function Ym(e,t){return e.split(/[/\\]/).join(t)}Te.replacePathSegmentSeparator=Ym;function Xm(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Te.joinPathSegments=Xm});var io=_chunkFNMRWIFMcjs.b.call(void 0, oo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(oo,"__esModule",{value:!0});var Qm=Ar(),no=class{constructor(t,r){this._root=t,this._settings=r,this._root=Qm.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};oo.default=no});var co=_chunkFNMRWIFMcjs.b.call(void 0, ao=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(ao,"__esModule",{value:!0});var Zm=_chunkFNMRWIFMcjs.a.call(void 0, "events"),Jm=Er(),eg=sc(),kr=Ar(),tg=io(),so=class extends tg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Jm.scandir,this._emitter=new Zm.EventEmitter,this._queue=eg(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,o=>{o!==null&&this._handleError(o)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,o)=>{if(n!==null){r(n,void 0);return}for(let i of o)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!kr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=kr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),kr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ao.default=so});var ac=_chunkFNMRWIFMcjs.b.call(void 0, uo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(uo,"__esModule",{value:!0});var rg=co(),lo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new rg.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{ng(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{og(t,this._storage)}),this._reader.read()}};uo.default=lo;function ng(e,t){e(t)}function og(e,t){e(null,t)}});var cc=_chunkFNMRWIFMcjs.b.call(void 0, po=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(po,"__esModule",{value:!0});var ig=_chunkFNMRWIFMcjs.a.call(void 0, "stream"),sg=co(),fo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sg.default(this._root,this._settings),this._stream=new ig.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};po.default=fo});var lc=_chunkFNMRWIFMcjs.b.call(void 0, go=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(go,"__esModule",{value:!0});var ag=Er(),Pr=Ar(),cg=io(),mo=class extends cg.default{constructor(){super(...arguments),this._scandir=ag.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let o of n)this._handleEntry(o,r)}catch(n){this._handleError(n)}}_handleError(t){if(Pr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Pr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};go.default=mo});var uc=_chunkFNMRWIFMcjs.b.call(void 0, yo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(yo,"__esModule",{value:!0});var lg=lc(),ho=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new lg.default(this._root,this._settings)}read(){return this._reader.read()}};yo.default=ho});var fc=_chunkFNMRWIFMcjs.b.call(void 0, _o=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(_o,"__esModule",{value:!0});var ug=_chunkFNMRWIFMcjs.a.call(void 0, "path"),fg=Er(),vo=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ug.sep),this.fsScandirSettings=new fg.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};_o.default=vo});var Tr=_chunkFNMRWIFMcjs.b.call(void 0, $e=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty($e,"__esModule",{value:!0});$e.Settings=$e.walkStream=$e.walkSync=$e.walk=void 0;var pc=ac(),pg=cc(),dg=uc(),xo=fc();$e.Settings=xo.default;function mg(e,t,r){if(typeof t=="function"){new pc.default(e,Or()).read(t);return}new pc.default(e,Or(t)).read(r)}$e.walk=mg;function gg(e,t){let r=Or(t);return new dg.default(e,r).read()}$e.walkSync=gg;function hg(e,t){let r=Or(t);return new pg.default(e,r).read()}$e.walkStream=hg;function Or(e={}){return e instanceof xo.default?e:new xo.default(e)}});var $r=_chunkFNMRWIFMcjs.b.call(void 0, bo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(bo,"__esModule",{value:!0});var yg=_chunkFNMRWIFMcjs.a.call(void 0, "path"),vg=it(),dc=De(),Co=class{constructor(t){this._settings=t,this._fsStatSettings=new vg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return yg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:dc.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!dc.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};bo.default=Co});var wo=_chunkFNMRWIFMcjs.b.call(void 0, Ro=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Ro,"__esModule",{value:!0});var _g=_chunkFNMRWIFMcjs.a.call(void 0, "stream"),xg=it(),Cg=Tr(),bg=$r(),So=class extends bg.default{constructor(){super(...arguments),this._walkStream=Cg.walkStream,this._stat=xg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new _g.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(u=>{u!==null&&r.entryFilter(u)&&o.push(u),i===n.length-1&&o.end(),a()}).catch(a);for(let i=0;i<n.length;i++)o.write(i);return o}_getEntry(t,r,n){return this._getStat(t).then(o=>this._makeEntry(o,r)).catch(o=>{if(n.errorFilter(o))return null;throw o})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(o,i)=>o===null?r(i):n(o))})}};Ro.default=So});var mc=_chunkFNMRWIFMcjs.b.call(void 0, Ao=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Ao,"__esModule",{value:!0});var Sg=Tr(),Rg=$r(),wg=wo(),Eo=class extends Rg.default{constructor(){super(...arguments),this._walkAsync=Sg.walk,this._readerStream=new wg.default(this._settings)}dynamic(t,r){return new Promise((n,o)=>{this._walkAsync(t,r,(i,s)=>{i===null?n(s):o(i)})})}async static(t,r){let n=[],o=this._readerStream.static(t,r);return new Promise((i,s)=>{o.once("error",s),o.on("data",a=>n.push(a)),o.once("end",()=>i(n))})}};Ao.default=Eo});var gc=_chunkFNMRWIFMcjs.b.call(void 0, Po=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Po,"__esModule",{value:!0});var jt=De(),ko=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return jt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>jt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:jt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return jt.array.splitWhen(t,r=>r.dynamic&&jt.pattern.hasGlobStar(r.pattern))}};Po.default=ko});var hc=_chunkFNMRWIFMcjs.b.call(void 0, To=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(To,"__esModule",{value:!0});var Eg=gc(),Oo=class extends Eg.default{match(t){let r=t.split("/"),n=r.length,o=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of o){let s=i.sections[0];if(!i.complete&&n>s.length||r.every((u,f)=>{let c=i.segments[f];return!!(c.dynamic&&c.patternRe.test(u)||!c.dynamic&&c.pattern===u)}))return!0}return!1}};To.default=Oo});var yc=_chunkFNMRWIFMcjs.b.call(void 0, Fo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Fo,"__esModule",{value:!0});var Fr=De(),Ag=hc(),$o=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let o=this._getMatcher(r),i=this._getNegativePatternsRe(n);return s=>this._filter(t,s,o,i)}_getMatcher(t){return new Ag.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Fr.pattern.isAffectDepthOfReadingPattern);return Fr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=Fr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,o)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let o=t.split("/").length;return n-o}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Fr.pattern.matchAny(t,r)}};Fo.default=$o});var vc=_chunkFNMRWIFMcjs.b.call(void 0, Mo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Mo,"__esModule",{value:!0});var st=De(),Io=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=st.pattern.convertPatternsToRe(t,this._micromatchOptions),o=st.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=st.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(o,n))return!1;let i=t.dirent.isDirectory(),s=this._isMatchToPatterns(o,r,i)&&!this._isMatchToPatterns(o,n,i);return this._settings.unique&&s&&this._createIndexRecord(o),s}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=st.path.makeAbsolute(this._settings.cwd,t);return st.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=st.pattern.matchAny(t,r);return!o&&n?st.pattern.matchAny(t+"/",r):o}};Mo.default=Io});var _c=_chunkFNMRWIFMcjs.b.call(void 0, No=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(No,"__esModule",{value:!0});var kg=De(),Lo=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return kg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};No.default=Lo});var Cc=_chunkFNMRWIFMcjs.b.call(void 0, Vo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Vo,"__esModule",{value:!0});var xc=De(),Do=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=xc.path.makeAbsolute(this._settings.cwd,r),r=xc.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Vo.default=Do});var Ir=_chunkFNMRWIFMcjs.b.call(void 0, jo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(jo,"__esModule",{value:!0});var Pg=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Og=yc(),Tg=vc(),$g=_c(),Fg=Cc(),Ho=class{constructor(t){this._settings=t,this.errorFilter=new $g.default(this._settings),this.entryFilter=new Tg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Og.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fg.default(this._settings)}_getRootDirectory(t){return Pg.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};jo.default=Ho});var bc=_chunkFNMRWIFMcjs.b.call(void 0, Bo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Bo,"__esModule",{value:!0});var Ig=mc(),Mg=Ir(),qo=class extends Mg.default{constructor(){super(...arguments),this._reader=new Ig.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Bo.default=qo});var Sc=_chunkFNMRWIFMcjs.b.call(void 0, Go=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Go,"__esModule",{value:!0});var Lg=_chunkFNMRWIFMcjs.a.call(void 0, "stream"),Ng=wo(),Dg=Ir(),Uo=class extends Dg.default{constructor(){super(...arguments),this._reader=new Ng.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Lg.Readable({objectMode:!0,read:()=>{}});return o.once("error",s=>i.emit("error",s)).on("data",s=>i.emit("data",n.transform(s))).once("end",()=>i.emit("end")),i.once("close",()=>o.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Go.default=Uo});var Rc=_chunkFNMRWIFMcjs.b.call(void 0, zo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(zo,"__esModule",{value:!0});var Vg=it(),Hg=Tr(),jg=$r(),Wo=class extends jg.default{constructor(){super(...arguments),this._walkSync=Hg.walkSync,this._statSync=Vg.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let o of t){let i=this._getFullEntryPath(o),s=this._getEntry(i,o,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(t,r,n){try{let o=this._getStat(t);return this._makeEntry(o,r)}catch(o){if(n.errorFilter(o))return null;throw o}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};zo.default=Wo});var wc=_chunkFNMRWIFMcjs.b.call(void 0, Yo=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(Yo,"__esModule",{value:!0});var qg=Rc(),Bg=Ir(),Ko=class extends Bg.default{constructor(){super(...arguments),this._reader=new qg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Yo.default=Ko});var Ec=_chunkFNMRWIFMcjs.b.call(void 0, bt=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ct=_chunkFNMRWIFMcjs.a.call(void 0, "fs"),Ug=_chunkFNMRWIFMcjs.a.call(void 0, "os"),Gg=Math.max(Ug.cpus().length,1);bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,lstatSync:Ct.lstatSync,stat:Ct.stat,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};var Xo=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Gg),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},bt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};bt.default=Xo});var Mr=_chunkFNMRWIFMcjs.b.call(void 0, (rS,kc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Ac=ka(),Wg=bc(),zg=Sc(),Kg=wc(),Qo=Ec(),Se=De();async function Zo(e,t){ke(e);let r=Jo(e,Wg.default,t),n=await Promise.all(r);return Se.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(f,c){ke(f);let d=Jo(f,Kg.default,c);return Se.array.flatten(d)}e.sync=t;function r(f,c){ke(f);let d=Jo(f,zg.default,c);return Se.stream.merge(d)}e.stream=r;function n(f,c){ke(f);let d=[].concat(f),p=new Qo.default(c);return Ac.generate(d,p)}e.generateTasks=n;function o(f,c){ke(f);let d=new Qo.default(c);return Se.pattern.isDynamicPattern(f,d)}e.isDynamicPattern=o;function i(f){return ke(f),Se.path.escape(f)}e.escapePath=i;function s(f){return ke(f),Se.path.convertPathToPattern(f)}e.convertPathToPattern=s;let a;(function(f){function c(p){return ke(p),Se.path.escapePosixPath(p)}f.escapePath=c;function d(p){return ke(p),Se.path.convertPosixPathToPattern(p)}f.convertPathToPattern=d})(a=e.posix||(e.posix={}));let u;(function(f){function c(p){return ke(p),Se.path.escapeWindowsPath(p)}f.escapePath=c;function d(p){return ke(p),Se.path.convertWindowsPathToPattern(p)}f.convertPathToPattern=d})(u=e.win32||(e.win32={}))})(Zo||(Zo={}));function Jo(e,t,r){let n=[].concat(e),o=new Qo.default(r),i=Ac.generate(n,o),s=new t(o);return i.map(s.read,s)}function ke(e){if(![].concat(e).every(n=>Se.string.isString(n)&&!Se.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kc.exports=Zo});var Oc=_chunkFNMRWIFMcjs.b.call(void 0, (oS,Pc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var St=1e3,Rt=St*60,wt=Rt*60,at=wt*24,Yg=at*7,Xg=at*365.25;Pc.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Qg(e);if(r==="number"&&isFinite(e))return t.long?Jg(e):Zg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Xg;case"weeks":case"week":case"w":return r*Yg;case"days":case"day":case"d":return r*at;case"hours":case"hour":case"hrs":case"hr":case"h":return r*wt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Rt;case"seconds":case"second":case"secs":case"sec":case"s":return r*St;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Zg(e){var t=Math.abs(e);return t>=at?Math.round(e/at)+"d":t>=wt?Math.round(e/wt)+"h":t>=Rt?Math.round(e/Rt)+"m":t>=St?Math.round(e/St)+"s":e+"ms"}function Jg(e){var t=Math.abs(e);return t>=at?Lr(e,t,at,"day"):t>=wt?Lr(e,t,wt,"hour"):t>=Rt?Lr(e,t,Rt,"minute"):t>=St?Lr(e,t,St,"second"):e+" ms"}function Lr(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var ei=_chunkFNMRWIFMcjs.b.call(void 0, (sS,Tc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );function eh(e){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=Oc(),r.destroy=f,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(c){let d,p=null,v,_;function x(...C){if(!x.enabled)return;let E=x,A=Number(new Date),F=A-(d||A);E.diff=F,E.prev=d,E.curr=A,d=A,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let B=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(I,S)=>{if(I==="%%")return"%";B++;let k=r.formatters[S];if(typeof k=="function"){let T=C[B];I=k.call(E,T),C.splice(B,1),B--}return I}),r.formatArgs.call(E,C),(E.log||r.log).apply(E,C)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(v!==r.namespaces&&(v=r.namespaces,_=r.enabled(c)),_),set:C=>{p=C}}),typeof r.init=="function"&&r.init(x),x}function n(c,d){let p=r(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let d,p=(typeof c=="string"?c:"").split(/[\s,]+/),v=p.length;for(d=0;d<v;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function i(){let c=[...r.names.map(a),...r.skips.map(a).map(d=>"-"+d)].join(",");return r.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d<p;d++)if(r.skips[d].test(c))return!1;for(d=0,p=r.names.length;d<p;d++)if(r.names[d].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Tc.exports=eh});var $c=_chunkFNMRWIFMcjs.b.call(void 0, (xe,Nr)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );xe.formatArgs=rh;xe.save=nh;xe.load=oh;xe.useColors=th;xe.storage=ih();xe.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();xe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function th(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function rh(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Nr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}xe.log=console.debug||console.log||(()=>{});function nh(e){try{e?xe.storage.setItem("debug",e):xe.storage.removeItem("debug")}catch (e3){}}function oh(){let e;try{e=xe.storage.getItem("debug")}catch (e4){}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ih(){try{return localStorage}catch (e5){}}Nr.exports=ei()(xe);var{formatters:sh}=Nr.exports;sh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ic=_chunkFNMRWIFMcjs.b.call(void 0, (lS,Fc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Fc.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Nc=_chunkFNMRWIFMcjs.b.call(void 0, (fS,Lc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var ah=_chunkFNMRWIFMcjs.a.call(void 0, "os"),Mc=_chunkFNMRWIFMcjs.a.call(void 0, "tty"),Re=Ic(),{env:ce}=process,Dr;Re("no-color")||Re("no-colors")||Re("color=false")||Re("color=never")?Dr=0:(Re("color")||Re("colors")||Re("color=true")||Re("color=always"))&&(Dr=1);function ch(){if("FORCE_COLOR"in ce)return ce.FORCE_COLOR==="true"?1:ce.FORCE_COLOR==="false"?0:ce.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ce.FORCE_COLOR,10),3)}function lh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function uh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=ch();n!==void 0&&(Dr=n);let o=r?Dr:n;if(o===0)return 0;if(r){if(Re("color=16m")||Re("color=full")||Re("color=truecolor"))return 3;if(Re("color=256"))return 2}if(e&&!t&&o===void 0)return 0;let i=o||0;if(ce.TERM==="dumb")return i;if(process.platform==="win32"){let s=ah.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in ce)||ce.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let s=Number.parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:i}function ti(e,t={}){let r=uh(e,{streamIsTTY:e&&e.isTTY,...t});return lh(r)}Lc.exports={supportsColor:ti,stdout:ti({isTTY:Mc.isatty(1)}),stderr:ti({isTTY:Mc.isatty(2)})}});var Vc=_chunkFNMRWIFMcjs.b.call(void 0, (le,Hr)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var fh=_chunkFNMRWIFMcjs.a.call(void 0, "tty"),Vr=_chunkFNMRWIFMcjs.a.call(void 0, "util");le.init=vh;le.log=gh;le.formatArgs=dh;le.save=hh;le.load=yh;le.useColors=ph;le.destroy=Vr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");le.colors=[6,2,3,4,5,1];try{let e=Nc();e&&(e.stderr||e).level>=2&&(le.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch (e6){}le.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function ph(){return"colors"in le.inspectOpts?!!le.inspectOpts.colors:fh.isatty(process.stderr.fd)}function dh(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
|
|
3
|
-
`).join(`
|
|
4
|
-
`+i),e.push(o+"m+"+Hr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=mh()+t+" "+e[0]}function mh(){return le.inspectOpts.hideDate?"":new Date().toISOString()+" "}function gh(...e){return process.stderr.write(Vr.format(...e)+`
|
|
5
|
-
`)}function hh(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function yh(){return process.env.DEBUG}function vh(e){e.inspectOpts={};let t=Object.keys(le.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=le.inspectOpts[t[r]]}Hr.exports=ei()(le);var{formatters:Dc}=Hr.exports;Dc.o=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts).split(`
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};Dc.O=function(e){return this.inspectOpts.colors=this.useColors,Vr.inspect(e,this.inspectOpts)}});var ni=_chunkFNMRWIFMcjs.b.call(void 0, (mS,ri)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ri.exports=$c():ri.exports=Vc()});var Uc=_chunkFNMRWIFMcjs.b.call(void 0, (_S,Bc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var{hasOwnProperty:oi}=Object.prototype,ii=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
|
|
7
|
-
`:`
|
|
8
|
-
`,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=Ve(i.filter(f=>e[f]===null||Array.isArray(e[f])||typeof e[f]!="object").map(f=>Array.isArray(e[f])?`${f}[]`:f).concat([""]).reduce((f,c)=>Ve(f).length>=Ve(c).length?f:c)).length);let a="",u=t.bracketedArray?"[]":"";for(let f of i){let c=e[f];if(c&&Array.isArray(c))for(let d of c)a+=Ve(`${f}${u}`).padEnd(s," ")+n+Ve(d)+r;else c&&typeof c=="object"?o.push(f):a+=Ve(f).padEnd(s," ")+n+Ve(c)+r}t.section&&a.length&&(a="["+Ve(t.section)+"]"+(t.newline?r+r:r)+a);for(let f of o){let c=jc(f,".").join("\\."),d=(t.section?t.section+".":"")+c,p=ii(e[f],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function jc(e,t){var r=0,n=0,o=0,i=[];do if(o=e.indexOf(t,r),o!==-1){if(r=o+t.length,o>0&&e[o-1]==="\\")continue;i.push(e.slice(n,o)),n=o+t.length}while(o!==-1);return i.push(e.slice(n)),i}var Hc=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,o=null,i=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),a={};for(let f of s){if(!f||f.match(/^\s*[;#]/)||f.match(/^\s*$/))continue;let c=f.match(i);if(!c)continue;if(c[1]!==void 0){if(o=jr(c[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=jr(c[2]),p;t.bracketedArray?p=d.length>2&&d.slice(-2)==="[]":(a[d]=(_optionalChain([a, 'optionalAccess', _2 => _2[d]])||0)+1,p=a[d]>1);let v=p?d.slice(0,-2):d;if(v==="__proto__")continue;let _=c[3]?jr(c[4]):!0,x=_==="true"||_==="false"||_==="null"?JSON.parse(_):_;p&&(oi.call(n,v)?Array.isArray(n[v])||(n[v]=[n[v]]):n[v]=[]),Array.isArray(n[v])?n[v].push(x):n[v]=x}let u=[];for(let f of Object.keys(r)){if(!oi.call(r,f)||typeof r[f]!="object"||Array.isArray(r[f]))continue;let c=jc(f,".");n=r;let d=c.pop(),p=d.replace(/\\\./g,".");for(let v of c)v!=="__proto__"&&((!oi.call(n,v)||typeof n[v]!="object")&&(n[v]=Object.create(null)),n=n[v]);n===r&&p===d||(n[p]=r[f],u.push(f))}for(let f of u)delete r[f];return r},qc=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Ve=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&qc(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),jr=(e,t)=>{if(e=(e||"").trim(),qc(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch (e7){}}else{let r=!1,n="";for(let o=0,i=e.length;o<i;o++){let s=e.charAt(o);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return e};Bc.exports={parse:Hc,decode:Hc,stringify:ii,encode:ii,safe:Ve,unsafe:jr}});var ci=_chunkFNMRWIFMcjs.b.call(void 0, (AS,Yc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var wh=_chunkFNMRWIFMcjs.a.call(void 0, "os");Yc.exports=wh.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var li=_chunkFNMRWIFMcjs.b.call(void 0, (PS,Xc)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );Xc.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var Qc=_chunkFNMRWIFMcjs.b.call(void 0, (TS,Gt)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Eh=process.platform==="win32",Ah=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ui={};function kh(e){return Ah.exec(e).slice(1)}ui.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=kh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var Ph=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,fi={};function Oh(e){return Ph.exec(e).slice(1)}fi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Oh(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};Eh?Gt.exports=ui.parse:Gt.exports=fi.parse;Gt.exports.posix=fi.parse;Gt.exports.win32=ui.parse});var pi=_chunkFNMRWIFMcjs.b.call(void 0, (FS,tl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var el=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Zc=el.parse||Qc(),Jc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Zc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Zc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return el.resolve(n,a,u)}))},[])};tl.exports=function(t,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,t,function(){return Jc(t,o)},r);var i=Jc(t,o);return r&&r.paths?i.concat(r.paths):i}});var di=_chunkFNMRWIFMcjs.b.call(void 0, (MS,rl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );rl.exports=function(e,t){return t||{}}});var il=_chunkFNMRWIFMcjs.b.call(void 0, (NS,ol)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Th="Function.prototype.bind called on incompatible ",$h=Object.prototype.toString,Fh=Math.max,Ih="[object Function]",nl=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},Mh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Lh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};ol.exports=function(t){var r=this;if(typeof r!="function"||$h.apply(r)!==Ih)throw new TypeError(Th+r);for(var n=Mh(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,nl(n,arguments));return Object(c)===c?c:this}return r.apply(t,nl(n,arguments))},s=Fh(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+Lh(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o}});var al=_chunkFNMRWIFMcjs.b.call(void 0, (VS,sl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Nh=il();sl.exports=Function.prototype.bind||Nh});var ll=_chunkFNMRWIFMcjs.b.call(void 0, (jS,cl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Dh=Function.prototype.call,Vh=Object.prototype.hasOwnProperty,Hh=al();cl.exports=Hh.call(Dh,Vh)});var ul=_chunkFNMRWIFMcjs.b.call(void 0, (BS,jh)=>{jh.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Wt=_chunkFNMRWIFMcjs.b.call(void 0, (US,dl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var qh=ll();function Bh(e,t){for(var r=e.split("."),n=t.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),u=parseInt(i[s]||0,10);if(a!==u)return o==="<"?a<u:o===">="?a>=u:!1}return o===">="}function fl(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Bh(e,r[n]))return!1;return!0}function Uh(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(fl(r,t[n]))return!0;return!1}return fl(r,t)}var pl=ul();dl.exports=function(t,r){return qh(pl,t)&&Uh(r,pl[t])}});var hl=_chunkFNMRWIFMcjs.b.call(void 0, (WS,gl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var ct=_chunkFNMRWIFMcjs.a.call(void 0, "fs"),Gh=ci(),ne=_chunkFNMRWIFMcjs.a.call(void 0, "path"),Wh=li(),zh=pi(),Kh=di(),Yh=Wt(),Xh=process.platform!=="win32"&&ct.realpath&&typeof ct.realpath.native=="function"?ct.realpath.native:ct.realpath,ml=Gh(),Qh=function(){return[ne.join(ml,".node_modules"),ne.join(ml,".node_libraries")]},Zh=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},Jh=function(t,r){ct.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},ey=function(t,r){Xh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},zt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},ty=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch (e8){n(null)}})},ry=function(t,r,n){for(var o=zh(r,n,t),i=0;i<o.length;i++)o[i]=ne.join(o[i],t);return o};gl.exports=function(t,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof t!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=Kh(t,i);var a=i.isFile||Zh,u=i.isDirectory||Jh,f=i.readFile||ct.readFile,c=i.realpath||ey,d=i.readPackage||ty;if(i.readFile&&i.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(p)})}var v=i.packageIterator,_=i.extensions||[".js"],x=i.includeCoreModules!==!1,C=i.basedir||ne.dirname(Wh()),E=i.filename||C;i.paths=i.paths||Qh();var A=ne.resolve(C);zt(c,A,i,function(g,O){g?o(g):B(O)});var F;function B(g){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))F=ne.resolve(g,t),(t==="."||t===".."||t.slice(-1)==="/")&&(F+="/"),/\/$/.test(t)&&F===g?k(F,i.package,R):I(F,i.package,R);else{if(x&&Yh(t))return o(null,t);z(t,g,function(O,M,D){if(O)o(O);else{if(M)return zt(c,M,i,function(y,j){y?o(y):o(null,j,D)});var h=new Error("Cannot find module '"+t+"' from '"+E+"'");h.code="MODULE_NOT_FOUND",o(h)}})}}function R(g,O,M){g?o(g):O?o(null,O,M):k(F,function(D,h,y){if(D)o(D);else if(h)zt(c,h,i,function($,L){$?o($):o(null,L,y)});else{var j=new Error("Cannot find module '"+t+"' from '"+E+"'");j.code="MODULE_NOT_FOUND",o(j)}})}function I(g,O,M){var D=O,h=M;typeof D=="function"&&(h=D,D=void 0);var y=[""].concat(_);j(y,g,D);function j($,L,G){if($.length===0)return h(null,void 0,G);var H=L+$[0],oe=G;oe?ee(null,oe):S(ne.dirname(H),ee);function ee(ue,V,he){if(oe=V,ue)return h(ue);if(he&&oe&&i.pathFilter){var mt=ne.relative(he,H),P=mt.slice(0,mt.length-$[0].length),K=i.pathFilter(oe,L,P);if(K)return j([""].concat(_.slice()),ne.resolve(he,K),oe)}a(H,Le)}function Le(ue,V){if(ue)return h(ue);if(V)return h(null,H,oe);j($.slice(1),L,oe)}}}function S(g,O){if(g===""||g==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(g)||/[/\\]node_modules[/\\]*$/.test(g))return O(null);zt(c,g,i,function(M,D){if(M)return S(ne.dirname(g),O);var h=ne.join(D,"package.json");a(h,function(y,j){if(!j)return S(ne.dirname(g),O);d(f,h,function($,L){$&&O($);var G=L;G&&i.packageFilter&&(G=i.packageFilter(G,h)),O(null,G,g)})})})}function k(g,O,M){var D=M,h=O;typeof h=="function"&&(D=h,h=i.package),zt(c,g,i,function(y,j){if(y)return D(y);var $=ne.join(j,"package.json");a($,function(L,G){if(L)return D(L);if(!G)return I(ne.join(g,"index"),h,D);d(f,$,function(H,oe){if(H)return D(H);var ee=oe;if(ee&&i.packageFilter&&(ee=i.packageFilter(ee,$)),ee&&ee.main){if(typeof ee.main!="string"){var Le=new TypeError("package \u201C"+ee.name+"\u201D `main` must be a string");return Le.code="INVALID_PACKAGE_MAIN",D(Le)}(ee.main==="."||ee.main==="./")&&(ee.main="index"),I(ne.resolve(g,ee.main),ee,function(ue,V,he){if(ue)return D(ue);if(V)return D(null,V,he);if(!he)return I(ne.join(g,"index"),he,D);var mt=ne.resolve(g,he.main);k(mt,he,function(P,K,w){if(P)return D(P);if(K)return D(null,K,w);I(ne.join(g,"index"),w,D)})});return}I(ne.join(g,"/index"),ee,D)})})})}function T(g,O){if(O.length===0)return g(null,void 0);var M=O[0];u(ne.dirname(M),D);function D(j,$){if(j)return g(j);if(!$)return T(g,O.slice(1));I(M,i.package,h)}function h(j,$,L){if(j)return g(j);if($)return g(null,$,L);k(M,i.package,y)}function y(j,$,L){if(j)return g(j);if($)return g(null,$,L);T(g,O.slice(1))}}function z(g,O,M){var D=function(){return ry(g,O,i)};T(M,v?v(g,O,D,i):D())}}});var yl=_chunkFNMRWIFMcjs.b.call(void 0, (KS,ny)=>{ny.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Cl=_chunkFNMRWIFMcjs.b.call(void 0, (YS,xl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var oy=Wt(),vl=yl(),_l={};for(Br in vl)Object.prototype.hasOwnProperty.call(vl,Br)&&(_l[Br]=oy(Br));var Br;xl.exports=_l});var Sl=_chunkFNMRWIFMcjs.b.call(void 0, (QS,bl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var iy=Wt();bl.exports=function(t){return iy(t)}});var El=_chunkFNMRWIFMcjs.b.call(void 0, (JS,wl)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var sy=Wt(),lt=_chunkFNMRWIFMcjs.a.call(void 0, "fs"),me=_chunkFNMRWIFMcjs.a.call(void 0, "path"),ay=ci(),cy=li(),ly=pi(),uy=di(),fy=process.platform!=="win32"&<.realpathSync&&typeof lt.realpathSync.native=="function"?lt.realpathSync.native:lt.realpathSync,Rl=ay(),py=function(){return[me.join(Rl,".node_modules"),me.join(Rl,".node_libraries")]},dy=function(t){try{var r=lt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},my=function(t){try{var r=lt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},gy=function(t){try{return fy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Kt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},hy=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch (e9){}},yy=function(t,r,n){for(var o=ly(r,n,t),i=0;i<o.length;i++)o[i]=me.join(o[i],t);return o};wl.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=uy(t,r),o=n.isFile||dy,i=n.readFileSync||lt.readFileSync,s=n.isDirectory||my,a=n.realpathSync||gy,u=n.readPackageSync||hy;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=n.packageIterator,c=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||me.dirname(cy()),v=n.filename||p;n.paths=n.paths||py();var _=Kt(a,me.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var x=me.resolve(_,t);(t==="."||t===".."||t.slice(-1)==="/")&&(x+="/");var C=F(x)||R(x);if(C)return Kt(a,C,n)}else{if(d&&sy(t))return t;var E=I(t,_);if(E)return Kt(a,E,n)}var A=new Error("Cannot find module '"+t+"' from '"+v+"'");throw A.code="MODULE_NOT_FOUND",A;function F(S){var k=B(me.dirname(S));if(k&&k.dir&&k.pkg&&n.pathFilter){var T=me.relative(k.dir,S),z=n.pathFilter(k.pkg,S,T);z&&(S=me.resolve(k.dir,z))}if(o(S))return S;for(var g=0;g<c.length;g++){var O=S+c[g];if(o(O))return O}}function B(S){if(!(S===""||S==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(S))&&!/[/\\]node_modules[/\\]*$/.test(S)){var k=me.join(Kt(a,S,n),"package.json");if(!o(k))return B(me.dirname(S));var T=u(i,k);return T&&n.packageFilter&&(T=n.packageFilter(T,S)),{pkg:T,dir:S}}}function R(S){var k=me.join(Kt(a,S,n),"/package.json");if(o(k)){try{var T=u(i,k)}catch (e10){}if(T&&n.packageFilter&&(T=n.packageFilter(T,S)),T&&T.main){if(typeof T.main!="string"){var z=new TypeError("package \u201C"+T.name+"\u201D `main` must be a string");throw z.code="INVALID_PACKAGE_MAIN",z}(T.main==="."||T.main==="./")&&(T.main="index");try{var g=F(me.resolve(S,T.main));if(g)return g;var O=R(me.resolve(S,T.main));if(O)return O}catch (e11){}}}return F(me.join(S,"/index"))}function I(S,k){for(var T=function(){return yy(S,k,n)},z=f?f(S,k,T,n):T(),g=0;g<z.length;g++){var O=z[g];if(s(me.dirname(O))){var M=F(O);if(M)return M;var D=R(O);if(D)return D}}}}});var kl=_chunkFNMRWIFMcjs.b.call(void 0, (tR,Al)=>{"use strict";_chunkFNMRWIFMcjs.e.call(void 0, );var Ur=hl();Ur.core=Cl();Ur.isCore=Sl();Ur.sync=El();Al.exports=Ur});_chunkFNMRWIFMcjs.e.call(void 0, );var _process = require('process'); var _process2 = _interopRequireDefault(_process);var _yargs = require('yargs'); var _yargs2 = _interopRequireDefault(_yargs);var _helpers = require('yargs/helpers');var gt="0.17.5";_chunkFNMRWIFMcjs.e.call(void 0, );var Ee=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1),fu=_chunkFNMRWIFMcjs.c.call(void 0, Mr(),1);var _path = require('path'); var _path2 = _interopRequireDefault(_path);var _promises = require('fs/promises');var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);var _graymatter = require('gray-matter'); var _graymatter2 = _interopRequireDefault(_graymatter);var _markdownit = require('markdown-it'); var _markdownit2 = _interopRequireDefault(_markdownit);var _feed = require('feed');var _consola = require('consola'); var _consola2 = _interopRequireDefault(_consola);_chunkFNMRWIFMcjs.e.call(void 0, );var ru=_chunkFNMRWIFMcjs.c.call(void 0, ni(),1),nu=_chunkFNMRWIFMcjs.c.call(void 0, Mr(),1),Xe=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);var _utils = require('@antfu/utils');var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var _crossspawn = require('cross-spawn');function qt(e,t="updated"){return new Promise((r,n)=>{let o=["log"];t==="updated"&&o.push("-1"),o.push('--pretty="%ci"',e),t==="created"&&o.push("|","tail","-1");let i=_crossspawn.spawn.call(void 0, "git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}_chunkFNMRWIFMcjs.e.call(void 0, );var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);_chunkFNMRWIFMcjs.e.call(void 0, );var Wc=_chunkFNMRWIFMcjs.c.call(void 0, Uc(),1);var _os = require('os'); var _os2 = _interopRequireDefault(_os);var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);var Ut=_process2.default.platform==="win32",Gc=e=>{try{return Wc.default.parse(_fs2.default.readFileSync(e,"utf8")).prefix}catch (e12){}},xh=()=>Object.keys(_process2.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?_process2.default.env[t]:e,void 0),Ch=()=>{if(Ut&&_process2.default.env.APPDATA)return _path2.default.join(_process2.default.env.APPDATA,"/npm/etc/npmrc");if(_process2.default.execPath.includes("/Cellar/node")){let e=_process2.default.execPath.slice(0,_process2.default.execPath.indexOf("/Cellar/node"));return _path2.default.join(e,"/lib/node_modules/npm/npmrc")}if(_process2.default.execPath.endsWith("/bin/node")){let e=_path2.default.dirname(_path2.default.dirname(_process2.default.execPath));return _path2.default.join(e,"/etc/npmrc")}},bh=()=>{if(Ut){let{APPDATA:e}=_process2.default.env;return e?_path2.default.join(e,"npm"):_path2.default.dirname(_process2.default.execPath)}return _path2.default.dirname(_path2.default.dirname(_process2.default.execPath))},Sh=()=>{let e=xh();if(e)return e;let t=Gc(_path2.default.join(_os2.default.homedir(),".npmrc"));if(t)return t;if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let r=Gc(Ch());return r||bh()},Bt=_path2.default.resolve(Sh()),zc=()=>{if(Ut&&_process2.default.env.LOCALAPPDATA){let e=_path2.default.join(_process2.default.env.LOCALAPPDATA,"Yarn");if(_fs2.default.existsSync(e))return e}return!1},Rh=()=>{if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let e=zc();if(e)return e;let t=_path2.default.join(_os2.default.homedir(),".config/yarn");if(_fs2.default.existsSync(t))return t;let r=_path2.default.join(_os2.default.homedir(),".yarn-config");return _fs2.default.existsSync(r)?r:Bt},Fe={};Fe.npm={};Fe.npm.prefix=Bt;Fe.npm.packages=_path2.default.join(Bt,Ut?"node_modules":"lib/node_modules");Fe.npm.binaries=Ut?Bt:_path2.default.join(Bt,"bin");var Kc=_path2.default.resolve(Rh());Fe.yarn={};Fe.yarn.prefix=Kc;Fe.yarn.packages=_path2.default.join(Kc,zc()?"Data/global/node_modules":"global/node_modules");Fe.yarn.binaries=_path2.default.join(Fe.yarn.packages,".bin");var ai=Fe;var Tl=_chunkFNMRWIFMcjs.c.call(void 0, kl(),1);function Ie(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Tl.sync)(e,r)}catch(n){_consola2.default.log(n)}if(_isinstalledglobally2.default){try{return _chunkFNMRWIFMcjs.a.resolve(_path.join.call(void 0, ai.yarn.packages,e))}catch (e13){}try{return _chunkFNMRWIFMcjs.a.resolve(_path.join.call(void 0, ai.npm.packages,e))}catch (e14){}}if(t)throw new Error(`Failed to resolve package ${e}`);_consola2.default.error(`Failed to resolve package ${e}`)}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var Gr="<!-- more -->",Et=/^https?:/i,$l=/^pathname:\/\//;function Fl(e){return Et.test(e)}function mi(e){return e.replace(/\\/g,"/")}function gi(e,t){return t.startsWith(e)?t:e+t}function J(e){return`/@fs${gi("/",mi(e))}`}function Il(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Ml(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var _url = require('url');var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);function Sy(e){let{name:t,cwd:r}=e,n=_pathe.resolve.call(void 0, r,`${t}.config.ts`),o={};try{o=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, _chunkFNMRWIFMcjs.d),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch (e15){}return{config:o,configFile:n}}async function At(e,t={}){let{config:r,configFile:n}=Sy({name:e,cwd:t.cwd||_process2.default.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}_chunkFNMRWIFMcjs.e.call(void 0, );var Pt=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _vite = require('vite');_chunkFNMRWIFMcjs.e.call(void 0, );function Ke(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}_chunkFNMRWIFMcjs.e.call(void 0, );var kt=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);var Wr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:_crypto.webcrypto.getRandomValues(new Uint8Array(16)),iv:_crypto.webcrypto.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function $R(e){return e}async function wy(e){return At("site",{cwd:e})}async function zr(e){let t=Ke(),{config:r,configFile:n}=await wy(e),o=t();return r&&n&&_consola2.default.success(`Resolve ${(0,kt.cyan)("siteConfig")} from ${(0,kt.dim)(n)} ${(0,kt.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var Dl={ignoreDeadLinks:!0,siteConfig:Wr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Oy(e){return e}var BR=Oy;async function Yt(e,t){return await At("valaxy",{cwd:e,valaxyOptions:t})}var ut=_defu.createDefu.call(void 0, (e,t,r)=>{if(_utils.isFunction.call(void 0, e[t])&&_utils.isFunction.call(void 0, r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=_vite.mergeConfig.call(void 0, e[t],r),!0});async function Vl(e){let t=e.userRoot||_process2.default.cwd(),r=Ke(),{config:n,configFile:o}=await Yt(t),i=r();n&&o&&_consola2.default.success(`Resolve ${(0,Pt.cyan)("userValaxyConfig")} from ${(0,Pt.dim)(o)} ${(0,Pt.yellow)(i)}`);let s=e.theme||_optionalChain([n, 'optionalAccess', _3 => _3.theme])||"yun";return{config:n,configFile:o,theme:s}}_chunkFNMRWIFMcjs.e.call(void 0, );function Fy(e){return e}var YR=Fy;async function Hl(e,t){let r={};for(let n of e){if(!_fsextra2.default.existsSync(_path2.default.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Yt(n.root,t);o&&(n.configFile=i,r=ut(o,r))}return r}_chunkFNMRWIFMcjs.e.call(void 0, );var Yr=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);_chunkFNMRWIFMcjs.e.call(void 0, );var ql=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);_chunkFNMRWIFMcjs.e.call(void 0, );function Xt(){return _process2.default.env.NODE_ENV==="production"}function hi(e="development"){_process2.default.env.NODE_ENV=e,Me.level=Xt()?2:3}function Ot(){return hi("production")}var Me=_consola2.default.create({level:Xt()?2:3}),yi=`${(0,ql.magenta)("valaxy")}:`,Tt={success:e=>Me.success(yi,e),info:e=>Me.info(yi,e),ready:e=>Me.ready(yi,e)};async function Kr(e){return At("theme",{cwd:e})}async function Bl(e){let{config:t,configFile:r}=await Kr(e.userRoot);if(t&&r&&Me.info(`Resolve ${(0,Yr.cyan)("themeConfig")} from ${(0,Yr.dim)(r)}`),_optionalChain([e, 'optionalAccess', _4 => _4.themeRoot])){let{config:n}=await Kr(e.themeRoot);t=_defu2.default.call(void 0, t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Ly(e){return e}var lw=Ly;function pw(e){return e}_chunkFNMRWIFMcjs.e.call(void 0, );var Ye=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);_chunkFNMRWIFMcjs.e.call(void 0, );function Xr(e,t){if(!e)return"";if(Il(e))if(t){let r=_fsextra2.default.lstatSync(t).isFile();return _pathe.resolve.call(void 0, r?_path.dirname.call(void 0, t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return _pathe.resolve.call(void 0, _path.dirname.call(void 0, Ie(`${e}/package.json`)||""))}async function Xl(e,t=_process2.default.cwd()){let r=_ora2.default.call(void 0, `Resolve ${(0,Ye.cyan)("addons")} from ${(0,Ye.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=_defu2.default.call(void 0, n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Kl(s,{cwd:t}));continue}typeof s=="object"&&o(_defu2.default.call(void 0, await Kl(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{Me.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Ye.yellow)(s.name)}${s.global?(0,Ye.cyan)(" (global)"):""} ${(0,Ye.dim)(s.pkg.homepage||_optionalChain([s, 'access', _5 => _5.pkg, 'access', _6 => _6.repository, 'optionalAccess', _7 => _7.url])||s.pkg.repository)}`)}),i}async function Kl(e,t={}){let r=Hy(e,t.cwd||_process2.default.cwd()),n=_pathe.resolve.call(void 0, r,"./package.json");if(!_fsextra2.default.existsSync(n)){Me.error(`No addon named ${e} found`);return}let o=await _fsextra2.default.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function Hy(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Xr(r,t)}_chunkFNMRWIFMcjs.e.call(void 0, );function Ql(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Xr(r,t)}_chunkFNMRWIFMcjs.e.call(void 0, );function Qr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Zr(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Qr(n),to:Qr(r.to)});else t.push({from:Qr(r.from),to:Qr(r.to)});return t}async function Zl(e,t){await _fsextra.ensureFile.call(void 0, t),await _promises.writeFile.call(void 0, t,`
|
|
9
|
-
<!DOCTYPE html>
|
|
10
|
-
<html lang="en">
|
|
11
|
-
<head>
|
|
12
|
-
<meta charset="UTF-8">
|
|
13
|
-
<meta http-equiv="refresh" content="0; url=${e}">
|
|
14
|
-
<link rel="canonical" href="${e}">
|
|
15
|
-
</head>
|
|
16
|
-
<script>
|
|
17
|
-
window.location.href = '${e}' + window.location.search + window.location.hash
|
|
18
|
-
</script>
|
|
19
|
-
</html>
|
|
20
|
-
`)}var Gy=(0,ru.default)("valaxy:options");async function Wy(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=_utils.ensureSuffix.call(void 0, "/",o.url||""),o.cdn.prefix=_utils.ensureSuffix.call(void 0, "/",o.cdn.prefix||"");let i=_pathe.resolve.call(void 0, r,"package.json");try{t.themeConfig.pkg=await _fsextra2.default.readJson(i,"utf-8")}catch (e16){console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function vi(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await Xl(t.addons||[],e.userRoot),s=await Hl(i,e);t=ut(t,s);let a=_defu2.default.call(void 0, t,Dl);e.config={...a,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},e.addons=i,i.forEach(d=>{e.config.runtimeConfig.addons[d.name]=d});let u=i.map(({root:d})=>d),f=i.map(({name:d})=>d);e.addonRoots=u,e.roots=_utils.uniq.call(void 0, [r,n,...u,o]);let c=_optionalChain([e, 'access', _8 => _8.config, 'access', _9 => _9.vite, 'optionalAccess', _10 => _10.build, 'optionalAccess', _11 => _11.rollupOptions, 'optionalAccess', _12 => _12.external])||[];return e.config.vite.build.rollupOptions.external=c.filter(d=>!f.includes(d)),await Wy(e),e}async function we(e={userRoot:_process2.default.cwd()},t="dev"){let r=_path.dirname.call(void 0, Ie("valaxy/package.json",!0)),n=_pathe.resolve.call(void 0, r,"client"),o=_pathe.resolve.call(void 0, e.userRoot||_process2.default.cwd());_consola2.default.start(`Resolve ${(0,Xe.magenta)("valaxy")} config...`);let[i,s,a,u]=await Promise.all([Vl(e),zr(e.userRoot),Kr(e.userRoot),(0,nu.default)(["**.md"],{cwd:_pathe.resolve.call(void 0, o,"pages"),ignore:["**/node_modules"]})]),{config:f,configFile:c,theme:d}=i,p=Ql(d,e.userRoot),{siteConfig:v,siteConfigFile:_}=s,{config:x,configFile:C}=a,E=Zr(_optionalChain([v, 'access', _13 => _13.redirects, 'optionalAccess', _14 => _14.rules]));f=_defu2.default.call(void 0, {siteConfig:v},{themeConfig:x},f);let A={mode:t,pkgRoot:r,tempDir:_pathe.resolve.call(void 0, o,".valaxy"),clientRoot:n,userRoot:o,themeRoot:p,addonRoots:[],roots:[],theme:d,config:{...f,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},configFile:c||"",siteConfigFile:_||"",themeConfigFile:C||"",pages:u.sort(),addons:[],redirects:E};Gy(A);let F=await _i(A),B=ut(f,F);return A=await vi(A,B),_fsextra2.default.ensureDirSync(A.tempDir),A}async function _i(e){let t=Ke(),{config:r}=await Yt(e.themeRoot,e),n=t();return r&&_consola2.default.success(`Resolve ${(0,Xe.cyan)("valaxy.config.ts")} from ${(0,Xe.blue)(`theme(${e.theme})`)} ${(0,Xe.yellow)(n)}`),r}_chunkFNMRWIFMcjs.e.call(void 0, );async function au(e){return await qt(e,"created")||(await _fsextra2.default.stat(e)).ctime}async function cu(e){return await qt(e,"created")||(await _fsextra2.default.stat(e)).mtime}_chunkFNMRWIFMcjs.e.call(void 0, );function Qe(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}_chunkFNMRWIFMcjs.e.call(void 0, );function lu(e,t){t.forEach(r=>{_optionalChain([r, 'access', _15 => _15.setup, 'optionalCall', _16 => _16(e)])})}var ev=_markdownit2.default.call(void 0, {html:!0,breaks:!0,linkify:!0});async function uu(e){_consola2.default.info(`${(0,Ee.yellow)("RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){_consola2.default.error("You must set `url` (like `https://example.com`) in `site.config.ts` to generate rss.");return}let n=r.url,o=r.url.slice(0,-1),i={name:_optionalChain([r, 'access', _17 => _17.author, 'optionalAccess', _18 => _18.name]),email:_optionalChain([r, 'access', _19 => _19.author, 'optionalAccess', _20 => _20.email]),link:_optionalChain([r, 'access', _21 => _21.author, 'optionalAccess', _22 => _22.link])};_consola2.default.info(`RSS Site Url: ${(0,Ee.cyan)(n)}`);let s=_optionalChain([r, 'access', _23 => _23.license, 'optionalAccess', _24 => _24.type])==="zero"?"1.0":"4.0",a={atom:_optionalChain([r, 'access', _25 => _25.feed, 'optionalAccess', _26 => _26.name])?`${_optionalChain([r, 'access', _27 => _27.feed, 'optionalAccess', _28 => _28.name])}.atom`:"atom.xml",json:`${_optionalChain([r, 'access', _29 => _29.feed, 'optionalAccess', _30 => _30.name])||"feed"}.json`,rss:`${_optionalChain([r, 'access', _31 => _31.feed, 'optionalAccess', _32 => _32.name])||"feed"}.xml`},u={title:r.title||"Valaxy Blog",description:r.description,id:n||"valaxy",link:n,copyright:`CC ${_optionalChain([r, 'access', _33 => _33.license, 'optionalAccess', _34 => _34.type, 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()])} ${s} ${new Date().getFullYear()} \xA9 ${_optionalChain([r, 'access', _37 => _37.author, 'optionalAccess', _38 => _38.name])}`,feedLinks:{}};Object.keys(a).forEach(C=>{u.feedLinks[C]=`${n}${a[C]}`});let f=await(0,fu.default)(`${e.userRoot}/pages/posts/**/*.md`),c=[];for await(let C of f){let E=await _promises.readFile.call(void 0, C,"utf-8"),{data:A,content:F,excerpt:B}=_graymatter2.default.call(void 0, E,{excerpt_separator:Gr});if(A.password)continue;if(A.draft){_consola2.default.warn(`Ignore draft post: ${(0,Ee.dim)(C)}`);continue}if(A.hide)continue;let R=C;A.date||(A.date=await au(R)),r.lastUpdated&&(A.updated||(A.updated=await cu(R)));let I=ev.render(B||F.slice(0,100)).replace('src="/',`src="${o}/`);_optionalChain([A, 'access', _39 => _39.image, 'optionalAccess', _40 => _40.startsWith, 'call', _41 => _41("/")])&&(A.image=o+A.image),c.push({title:"",...A,id:(A.id||"").toString(),date:new Date(A.date),published:new Date(A.updated||A.date),content:I,author:[i],link:o+C.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")})}c.sort((C,E)=>+new Date(E.published||E.date)-+new Date(C.published||C.date));let d=_optionalChain([r, 'access', _42 => _42.author, 'optionalAccess', _43 => _43.avatar])||"/favicon.svg";u.author=i,u.image=Fl(d)?_optionalChain([r, 'access', _44 => _44.author, 'optionalAccess', _45 => _45.avatar]):`${o}${gi("/",d)}`,u.favicon=`${o}${_optionalChain([r, 'access', _46 => _46.feed, 'optionalAccess', _47 => _47.favicon])||r.favicon}`;let p=new (0, _feed.Feed)(u);c.forEach(C=>p.addItem(C)),await _fsextra2.default.ensureDir(_path.dirname.call(void 0, `./dist/${a.atom}`));let v=_path.resolve.call(void 0, e.userRoot,"./dist"),_=_path.resolve.call(void 0, e.userRoot,"public");["rss","atom","json"].forEach(async C=>{let E="",A=`${v}/${a[C]}`;C==="rss"?E=p.rss2():C==="atom"?E=p.atom1():C==="json"&&(E=p.json1()),_fsextra2.default.writeFileSync(A,E,"utf-8"),_consola2.default.success(`[${(0,Ee.cyan)(C)}] dist: ${(0,Ee.dim)(A)}`);let F=_path.resolve.call(void 0, _,a[C]),B=_path.join.call(void 0, "public",a[C]);_fsextra2.default.writeFileSync(F,E,"utf-8"),_consola2.default.success(`[${(0,Ee.cyan)(C)}] public: ${(0,Ee.dim)(A)}`);try{let R=_path.resolve.call(void 0, e.userRoot,".gitignore"),I=await _fsextra2.default.readFile(R,"utf-8"),S=B.replace(/\\/g,"/");I.includes(S)||(await _fsextra2.default.appendFile(R,`
|
|
21
|
-
# valaxy rss
|
|
22
|
-
${S}
|
|
23
|
-
`),_consola2.default.success(`Add ${(0,Ee.dim)(S)} to ${(0,Ee.dim)(".gitignore")}`))}catch (e17){}})}var en={extendCli(e){e.command("rss [root]","generate rss feed",t=>Qe(t).strict().help(),async({root:t})=>{Ot();let r=await we({userRoot:t},"build");await uu(r)})},setup(e){e.hook("build:after",()=>{console.log(),uu(e.options)})}};_chunkFNMRWIFMcjs.e.call(void 0, );var pu=_chunkFNMRWIFMcjs.c.call(void 0, Mr(),1),Je=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);async function du(e){_consola2.default.start(`Generate List for Fuse Search by (${(0,Je.cyan)("fuse.js")}) ...`);let t=await(0,pu.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=_fsextra2.default.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=_graymatter2.default.call(void 0, o,{excerpt_separator:"<!-- more -->"});if(i.draft){_consola2.default.warn(`Ignore draft post: ${(0,Je.dim)(n)}`);continue}if(i.hide||i.password)continue;let u=e.config.siteConfig.fuse.options.keys||[],f={title:i.title||"",tags:(typeof i.tags=="string"?[i.tags]:i.tags)||[],categories:i.categories||[],author:e.config.siteConfig.author.name,excerpt:s||a.slice(0,100),link:encodeURI(n.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,""))};u.includes("content")&&(f.content=a||""),r.push(f)}return r}function rv(e){e.command("fuse [root]","generate fuse list for search",t=>Qe(t).strict().help(),async({root:t})=>{_consola2.default.info("Please generate it before build."),Ot();let r=await we({userRoot:t},"build"),n=await du(r);await _fsextra2.default.ensureDir("./dist");let o=_path2.default.resolve(r.userRoot,"public"),i=_path2.default.resolve(o,r.config.siteConfig.fuse.dataPath),s=_path2.default.join("public",r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureFile(i),_fsextra2.default.writeJSONSync(i,n),_consola2.default.success(`Generate fuse list in ${(0,Je.dim)(o)}`);let a=_path2.default.resolve(r.userRoot,"dist"),u=_path2.default.resolve(a,r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureDir(a),_fsextra2.default.writeJSONSync(u,n),_consola2.default.success(`Generate fuse list in ${(0,Je.dim)(a)}`);try{let f=_path2.default.resolve(r.userRoot,".gitignore"),c=await _fsextra2.default.readFile(f,"utf-8"),d=s.replace(/\\/g,"/");c.includes(d)||(await _fsextra2.default.appendFile(f,`
|
|
24
|
-
# valaxy fuse
|
|
25
|
-
${d}
|
|
26
|
-
`),_consola2.default.success(`Add ${(0,Je.dim)(d)} to ${(0,Je.dim)(".gitignore")}`))}catch (e18){}})}var mu={extendCli(e){rv(e)},setup(e){e.hook("build:before",()=>{du(e.options)})}};_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var rn=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _ejs = require('ejs');var _dayjs = require('dayjs'); var _dayjs2 = _interopRequireDefault(_dayjs);_chunkFNMRWIFMcjs.e.call(void 0, );async function tn(e){try{return await _promises.access.call(void 0, e),!0}catch (e19){return!1}}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var Jt=_process2.default.cwd(),gu=`---
|
|
27
|
-
layout: <%=layout%>
|
|
28
|
-
title: <%=title%>
|
|
29
|
-
date: <%=date%>
|
|
30
|
-
---
|
|
31
|
-
`;async function hu(e){let{clientRoot:t,themeRoot:r}=await we({userRoot:Jt}),n=[Jt,r,t];for(let o of n){let i=_path2.default.resolve(o,"scaffolds",`${e}.md`);if(await tn(i))return _promises.readFile.call(void 0, i,"utf-8")}return!1}async function vu(e){let t=_path.resolve.call(void 0, Jt,"pages"),{path:r,title:n}=e,o=r||_path.join.call(void 0, "posts",n),i=0;for(;;){let s=_path.resolve.call(void 0, t,o);if(i&&(s=`${s}-${i}`),s=_utils.ensureSuffix.call(void 0, ".md",s),!await tn(s)){let a=await pv(e);try{await _promises.writeFile.call(void 0, s,a,"utf-8"),_consola.consola.success(`[valaxy new]: successfully generated file ${(0,rn.magenta)(s)}`)}catch(u){console.log(u),_consola.consola.error(`[valaxy new]: failed to write file ${s}`),_consola.consola.warn(`You should run ${(0,rn.green)("valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function pv({date:e,title:t,layout:r="post"}){let n=await hu(r);return n||(n=gu),_ejs.render.call(void 0, n,{title:t,layout:r,date:e?_dayjs2.default.call(void 0, ).format("YYYY-MM-DD HH:mm:ss"):""})}function _u(e){e.command("new <title>","Draft a new post",t=>{t.usage("$0 <title> -p [path] -l [layout]").positional("title",{describe:"The title of the new post",required:!0}).option("path",{alias:"p",type:"string",describe:"the path to generate new post. Customize the path of post to generate"}).option("layout",{alias:"l",type:"string",default:"post"}).option("date",{alias:"d",type:"boolean",default:!0,describe:"Generate post with the current date"}).strict().help()},async({title:t,path:r,date:n,layout:o})=>{await vu({title:t,date:n,layout:o,path:r})})}_chunkFNMRWIFMcjs.e.call(void 0, );var Nf=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);_chunkFNMRWIFMcjs.e.call(void 0, );var _node = require('vite-ssg/node');var _vitessgsitemap = require('vite-ssg-sitemap'); var _vitessgsitemap2 = _interopRequireDefault(_vitessgsitemap);_chunkFNMRWIFMcjs.e.call(void 0, );var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);var _vitepluginvuelayouts = require('vite-plugin-vue-layouts'); var _vitepluginvuelayouts2 = _interopRequireDefault(_vitepluginvuelayouts);var _vite3 = require('unplugin-vue-components/vite'); var _vite4 = _interopRequireDefault(_vite3);var _vite5 = require('@intlify/unplugin-vue-i18n/vite'); var _vite6 = _interopRequireDefault(_vite5);var _vite7 = require('@unhead/addons/vite'); var _vite8 = _interopRequireDefault(_vite7);_chunkFNMRWIFMcjs.e.call(void 0, );var _markdownitanchor = require('markdown-it-anchor'); var _markdownitanchor2 = _interopRequireDefault(_markdownitanchor);var _markdownitattrs = require('markdown-it-attrs'); var _markdownitattrs2 = _interopRequireDefault(_markdownitattrs);var _markdownitemoji = require('markdown-it-emoji');var _markdownittasklists = require('markdown-it-task-lists'); var _markdownittasklists2 = _interopRequireDefault(_markdownittasklists);_chunkFNMRWIFMcjs.e.call(void 0, );var xu=new Set([!0,!1,"alt","title"]);function Cu(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function bu(e,t){e&&e.attrs&&(e.attrs=Cu(e.attrs,t))}function dv(e,t){if(!xu.has(e))throw new TypeError(`figcaption must be one of: ${[...xu]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(bu(t,"title"),r[1]):void 0}function Su(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let o=1,i=r.tokens.length;o<i-1;++o){let s=r.tokens[o];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){let[f,c,d]=s.children;if(f.type!=="link_open"||c.type!=="image"||d.type!=="link_close")continue}if(o!==0&&r.tokens[o-1].type!=="paragraph_open"||o!==i-1&&r.tokens[o+1].type!=="paragraph_close")continue;let a=r.tokens[o-1],u;if(a.type="figure_open",a.tag="figure",r.tokens[o+1].type="figure_close",r.tokens[o+1].tag="figure",t.dataType&&r.tokens[o-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[u]=s.children;let f=new r.Token("link_open","a",1);f.attrPush(["href",u.attrGet("src")]),s.children.unshift(f),s.children.push(new r.Token("link_close","a",-1))}if(u=s.children.length===1?s.children[0]:s.children[1],t.figcaption){let f=dv(t.figcaption,u);if(f){let[c]=e.parseInline(f,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...c.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),u.attrs&&(u.attrs=Cu(u.attrs,"title"))}}if(t.copyAttrs&&u.attrs){let f=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=u.attrs.filter(([c])=>c.match(f)).map(c=>Array.from(c))}if(t.tabindex&&(r.tokens[o-1].attrPush(["tabindex",n]),n++),t.lazy&&(u.attrs.some(([f])=>f==="loading")||u.attrs.push(["loading","lazy"])),t.async&&(u.attrs.some(([f])=>f==="decoding")||u.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let f=!1;for(let c=0,d=u.attrs.length;c<d&&!f;c++){let p=u.attrs[c];p[0]==="class"&&(p[1]=`${p[1]} ${t.classes}`,f=!0)}f||u.attrs.push(["class",t.classes])}if(t.removeSrc){let f=u.attrs.find(([c])=>c==="src");u.attrs.push(["data-src",f[1]]),bu(u,"src")}}})}_chunkFNMRWIFMcjs.e.call(void 0, );var _html_blocksmjs = require('markdown-it/lib/common/html_blocks.mjs'); var _html_blocksmjs2 = _interopRequireDefault(_html_blocksmjs);var gv="[a-zA-Z_:@][a-zA-Z0-9:._-]*",hv="[^\"'=<>`\\x00-\\x20]+",yv="'[^']*'",vv='"[^"]*"',_v="(?:"+hv+"|"+yv+"|"+vv+")",Ci="(?:\\s+"+gv+"(?:\\s*=\\s*"+_v+")?)",Ru="<[A-Za-z][A-Za-z0-9\\-]*"+Ci+"*\\s*\\/?>",wu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",xv="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Cv="<[?][\\s\\S]*?[?]>",bv="<![A-Z]+\\s+[^>]*>",Sv="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Rv=new RegExp("^(?:"+Ru+"|"+wu+"|"+xv+"|"+Cv+"|"+bv+"|"+Sv+")"),wv=new RegExp("^(?:"+Ru+"|"+wu+")"),Ev=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+Ci+"*\\s*\\/>"),Av=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+Ci+"*\\s*>.*<\\/\\1\\s*>"),kv=_html_blocksmjs2.default,Pv=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],Ov=["template","component","transition","transition-group","keep-alive","slot","teleport"],Tv=({blockTags:e,inlineTags:t})=>{let r=[...e,...kv],n=[...t,...Pv.filter(i=>!Ov.includes(i))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(wv.source+"\\s*$"),/^$/,!1]]},$v=e=>{let t=Tv(e);return(r,n,o,i)=>{let s,a,u,f=r.bMarks[n]+r.tShift[n],c=r.eMarks[n];if(r.sCount[n]-r.blkIndent>=4||!r.md.options.html||r.src.charCodeAt(f)!==60)return!1;for(u=r.src.slice(f,c),s=0;s<t.length&&!t[s][0].test(u);s++);if(s===t.length)return!1;if(i)return t[s][2];if(s===6){let p=_nullishCoalesce(u.match(Ev), () => (u.match(Av)));if(p){r.line=n+1;let v=r.push("html_inline","",0);return v.content=p[0],v.map=[n,r.line],v=r.push("inline","",0),v.content=u.slice(p[0].length),v.map=[n,r.line],v.children=[],!0}}if(a=n+1,!t[s][1].test(u)){for(;a<o&&!(r.sCount[a]<r.blkIndent);a++)if(f=r.bMarks[a]+r.tShift[a],c=r.eMarks[a],u=r.src.slice(f,c),t[s][1].test(u)){u.length!==0&&a++;break}}r.line=a;let d=r.push("html_block","",0);return d.map=[n,a],d.content=r.getLines(n,a,r.blkIndent,!0),!0}},Fv=e=>{let t=e|32;return t>=97&&t<=122},Iv=(e,t)=>{let{pos:r}=e;if(!e.md.options.html)return!1;let n=e.posMax;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!Fv(o))return!1;let i=e.src.slice(r).match(Rv);if(!i)return!1;if(!t){let s=e.push("html_inline","",0);s.content=e.src.slice(r,r+i[0].length)}return e.pos+=i[0].length,!0},Eu=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{let n=$v({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",Iv)};_chunkFNMRWIFMcjs.e.call(void 0, );var Au=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{let n=e.render.bind(e);e.render=(o,i={})=>{let{data:s,content:a,excerpt:u=""}=_graymatter2.default.call(void 0, o,t);return i.content=a,i.frontmatter={...i.frontmatter,...s},i.excerpt=r&&u?n(u,{...i}):u,n(a,i)}};_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var Lv={"&":"&","<":"<",">":">","'":"'",'"':"""},Nv=/[&<>'"]/g,pt=e=>e.replace(Nv,t=>Lv[t]);var er=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=_nullishCoalesce(e.children, () => ([])),o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!_optionalChain([s, 'access', _48 => _48.meta, 'optionalAccess', _49 => _49.isPermalinkSymbol])).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${pt(a.content)}`:`${s}${a.content}`,"").trim()},nn=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],u=[],f=c=>{for(;u.length!==0&&c.level<=u[0].level;)u.shift();u.length===0?(a.push(c),u.push(c)):(u[0].children.push(c),u.unshift(c))};for(let c=0;c<e.length;c+=1){let d=e[c];if(_optionalChain([d, 'optionalAccess', _50 => _50.type])!=="heading_open"||_optionalChain([d, 'optionalAccess', _51 => _51.level])!==0&&!n)continue;let p=Number.parseInt(d.tag.slice(1),10);if(!t.includes(p))continue;let v=e[c+1];if(!v)continue;let _=er(v,{shouldAllowHtml:r,shouldEscapeText:o}),x=_nullishCoalesce(d.attrGet("id"), () => (i(_)));f({level:p,title:_nullishCoalesce(_optionalChain([s, 'optionalCall', _52 => _52(_)]), () => (_)),slug:x,link:`#${x}`,children:[]})}return a},Dv=/[\u0000-\u001f]/g,Vv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,Hv=/[\u0300-\u036F]/g,dt=e=>e.normalize("NFKD").replace(Hv,"").replace(Dv,"").replace(Vv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var ku=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=dt,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,u)=>(u.headers=nn(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,u))};_chunkFNMRWIFMcjs.e.call(void 0, );var Pu="script",Ou="style",tr="template",jv=/^<script\s+.*?\bsetup\b.*?>$/is,qv=({customBlocks:e})=>{let t=Array.from(new Set([Pu,Ou,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},Tu=(e,{customBlocks:t=[]}={})=>{let r=qv({customBlocks:t}),n=e.render.bind(e);e.render=(i,s={})=>{s.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};let a=n(i,s);return s.sfcBlocks.template={type:tr,content:`<${tr}>${a}</${tr}>`,contentStripped:a,tagOpen:`<${tr}>`,tagClose:`</${tr}>`},a};let o=e.renderer.rules.html_block;e.renderer.rules.html_block=(i,s,a,u,f)=>{if(!u.sfcBlocks)return o(i,s,a,u,f);let p=i[s].content.match(r);if(!p)return o(i,s,a,u,f);let v=p.groups;return v.type===Pu?(u.sfcBlocks.scripts.push(v),jv.test(v.tagOpen)?u.sfcBlocks.scriptSetup=v:u.sfcBlocks.script=v):v.type===Ou?u.sfcBlocks.styles.push(v):u.sfcBlocks.customBlocks.push(v),""}};_chunkFNMRWIFMcjs.e.call(void 0, );var $u=e=>{let t=e.renderer.render.bind(e.renderer);e.renderer.render=(r,n,o)=>{let i=r.findIndex(s=>s.tag==="h1");return o.title=i>-1?er(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};_chunkFNMRWIFMcjs.e.call(void 0, );var Bv=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=pt(e),s=t?` class="${pt(t)}"`:"",a="li",u=r?` class="${pt(r)}"`:"",f=pt(n),c=o?` class="${pt(o)}"`:"",d=v=>n==="router-link"?` to="${v}"`:` href="${v}"`,p=v=>`<${i}${s}>${v.map(_=>`<${a}${u}><${f}${c}${d(_.link)}>${_.title}</${f}>${_.children.length>0?p(_.children):""}</${a}>`).join("")}</${i}>`;return p},Uv=({pattern:e,containerTag:t,containerClass:r})=>(n,o,i,s)=>{if(n.sCount[o]-n.blkIndent>=4)return!1;let a=n.bMarks[o]+n.tShift[o],u=n.eMarks[o],f=n.src.slice(a,u).split(" ")[0];if(!e.test(f))return!1;if(s)return!0;n.line=o+1;let c=n.push("toc_open",t,1);c.markup="",c.map=[o,n.line],r&&c.attrSet("class",r);let d=n.push("toc_body","",0);d.markup=f,d.map=[o,n.line],d.hidden=!0;let p=n.push("toc_close",t,-1);return p.markup="",d.map=[o,n.line],!0},Fu=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=dt,format:n,level:o=[2,3],shouldAllowNested:i=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:u="ul",listClass:f="",itemClass:c="",linkTag:d="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",Uv({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let v=Bv({listTag:u,listClass:f,itemClass:c,linkTag:d,linkClass:p});e.renderer.rules.toc_body=_=>v(nn(_,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};var _cssi18n = require('css-i18n');_chunkFNMRWIFMcjs.e.call(void 0, );var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);function Mu(e,t){let r=e.posMax,n=!0,o=!0,i=t>0?e.src.charCodeAt(t-1):-1,s=t+1<=r?e.src.charCodeAt(t+1):-1;return(i===32||i===9||s>=48&&s<=57)&&(o=!1),(s===32||s===9)&&(n=!1),{can_open:n,can_close:o}}function Gv(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=Mu(e,e.pos),!o.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let s=e.pos+1;for(r=s;(r=e.src.indexOf("$",r))!==-1;){for(i=r-1;e.src[i]==="\\";)i-=1;if((r-i)%2===1)break;r+=1}return r===-1?(t||(e.pending+="$"),e.pos=s,!0):r-s===0?(t||(e.pending+="$$"),e.pos=s+1,!0):(o=Mu(e,r),o.can_close?(t||(n=e.push("math_inline","math",0),n.markup="$",n.content=e.src.slice(s,r)),e.pos=r+1,!0):(t||(e.pending+="$"),e.pos=s,!0))}function Wv(e,t,r,n){let o,i,s,a,u=!1,f=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(f+2>c||e.src.slice(f,f+2)!=="$$")return!1;if(f+=2,o=e.src.slice(f,c),n)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),u=!0),s=t;!u&&(s++,!(s>=r||(f=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],f<c&&e.tShift[s]<e.blkIndent)));)e.src.slice(f,c).trim().slice(-2)==="$$"&&(a=e.src.slice(0,c).lastIndexOf("$$"),i=e.src.slice(f,a),u=!0);e.line=s+1;let d=e.push("math_block","math",0);return d.block=!0,d.content=(o&&o.trim()?`${o}
|
|
32
|
-
`:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function bi(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return _katex2.default.renderToString(s,t)}catch(a){return t.throwOnError&&console.warn(a),s}},n=function(s,a){return r(s[a].content)},o=function(s){t.displayMode=!0;try{return`<p>${_katex2.default.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
|
|
33
|
-
`};e.inline.ruler.after("escape","math_inline",Gv),e.block.ruler.after("blockquote","math_block",Wv,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}_chunkFNMRWIFMcjs.e.call(void 0, );var _markdownitcontainer = require('markdown-it-container'); var _markdownitcontainer2 = _interopRequireDefault(_markdownitcontainer);_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var Lu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var zv=128,et,tt,Du=e=>{!et||et.length<e?(et=Buffer.allocUnsafe(e*zv),_crypto2.default.randomFillSync(et),tt=0):tt+e>et.length&&(_crypto2.default.randomFillSync(et),tt=0),tt+=e},Kv=e=>(Du(e-=0),et.subarray(tt-e,tt)),Yv=(e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(i=t)=>{let s="";for(;;){let a=r(o),u=o;for(;u--;)if(s+=e[a[u]&n]||"",s.length===i)return s}}},Vu=(e,t=21)=>Yv(e,t,Kv),Si=(e=21)=>{Du(e-=0);let t="";for(let r=tt-e;r<tt;r++)t+=Lu[et[r]&63];return t};_chunkFNMRWIFMcjs.e.call(void 0, );function Hu(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function Ri(e){let{theme:t}=e,r=typeof t=="string"||"name"in t,n="";if(r){n=" va-adaptive-theme";let o=typeof t=="string"?t:t.name;n=o.includes("dark")||o.includes("night")?" dark":" light"}return n}function ju(e,t=!1){return t?_optionalChain([e, 'access', _53 => _53.replace, 'call', _54 => _54(/<!--[^]*?-->/g,""), 'access', _55 => _55.match, 'call', _56 => _56(/data-title="(.*?)"/), 'optionalAccess', _57 => _57[1]])||"":_optionalChain([e, 'access', _58 => _58.match, 'call', _59 => _59(/\[(.*)\]/), 'optionalAccess', _60 => _60[1]])||Hu(e)||"txt"}function Xv(e){let t=_optionalChain([e, 'optionalAccess', _61 => _61.siteConfig, 'optionalAccess', _62 => _62.codeHeightLimit]);return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function qu(e,t){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let[o,i]=n,s=o[i];s.info=s.info.replace(/\[.*\]/,"");let a=Hu(s.info),u=r(...n);return`
|
|
34
|
-
<div ${Xv(t)} class="language-${a}${Ri(t)}${/ active( |$)/.test(s.info)?" active":""}">
|
|
35
|
-
<button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${u}<button class="collapse"></button>
|
|
36
|
-
</div>`}}function Qv(e,{icon:t,color:r,text:n,langs:o}={}){return[_markdownitcontainer2.default,e,{render(i,s){let a=i[s],u=a.info.trim().slice(e.length).trim();if(a.nesting===1){if(e==="details")return`<details class="${e} custom-block">${`<summary>${u}</summary>`}
|
|
37
|
-
`;let f="";t&&(f=`<i class="icon ${t}" ${r?`style="color: ${r}"`:""}></i>`);let c=`<span lang="en">${u||n}</span>`;return o&&Object.keys(o).forEach(d=>{c+=`<span lang="${d}">${u||o[d]}</span>`}),`<div class="${e} custom-block"><p class="custom-block-title">${f}${c}</p>
|
|
38
|
-
`}else return e==="details"?`</details>
|
|
39
|
-
`:`</div>
|
|
40
|
-
`}}]}var Bu={tip:{text:"TIP",langs:{"zh-CN":"\u63D0\u793A"}},warning:{text:"WARNING",langs:{"zh-CN":"\u6CE8\u610F"}},danger:{text:"DANGER",langs:{"zh-CN":"\u8B66\u544A"}},info:{text:"INFO",langs:{"zh-CN":"\u4FE1\u606F"}},details:{text:"Details",langs:{"zh-CN":"\u8BE6\u60C5"}}};function Uu(e,t={}){Object.keys(Bu).forEach(n=>{let o={...Bu[n],...t[n]||{}};e.use(...Qv(n,o))}),e.use(...Zv(t)),e.use(_markdownitcontainer2.default,"v-pre",{render:(n,o)=>n[o].nesting===1?`<div v-pre>
|
|
41
|
-
`:`</div>
|
|
42
|
-
`}),["zh-CN","en"].forEach(n=>{e.use(_markdownitcontainer2.default,n,{render:(o,i)=>o[i].nesting===1?`<div lang="${n}">
|
|
43
|
-
`:`</div>
|
|
44
|
-
`})})}function Zv(e){return[_markdownitcontainer2.default,"code-group",{render(t,r){if(t[r].nesting===1){let n=Si(5),o="",i='checked="checked"';for(let s=r+1;!(t[s].nesting===-1&&t[s].type==="container_code-group_close");++s){let a=t[s].type==="html_block";if(t[s].type==="fence"&&t[s].tag==="code"||a){let u=ju(a?t[s].content:t[s].info,a);if(u){let f=Si(7);o+=`<input type="radio" name="group-${n}" id="tab-${f}" ${i}><label for="tab-${f}">${u}</label>`,i&&!a&&(t[s].info+=" active"),i=""}}}return`<div class="vp-code-group${Ri({theme:e.theme})}"><div class="tabs">${o}</div><div class="blocks">
|
|
45
|
-
`}return`</div></div>
|
|
46
|
-
`}}]}_chunkFNMRWIFMcjs.e.call(void 0, );var Gu=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _shikijitransformers = require('shikiji-transformers');var _shikiji = require('shikiji');var l_=Vu("abcdefghijklmnopqrstuvwxyz",10);function u_(e){e=e.replace(/^(?:\[.*?\])?.*?([\d,-]+).*/,"$1").trim();let t=[];return e?(e.split(",").map(r=>r.split("-").map(n=>Number.parseInt(n,10))).forEach(([r,n])=>{r&&n?t.push(...Array.from({length:n-r+1},(o,i)=>r+i)):t.push(r)}),t.map(r=>({line:r,classes:["highlighted"]}))):[]}async function Wu(e,t,r=console){let{defaultHighlightLang:n="",codeTransformers:o=[]}=t,i=await _shikiji.getHighlighter.call(void 0, {themes:typeof e=="string"||"name"in e?[e]:[e.light,e.dark],langs:[...Object.keys(_shikiji.bundledLanguages),...t.languages||[]],langAlias:t.languageAlias});await _optionalChain([t, 'optionalAccess', _63 => _63.shikijiSetup, 'optionalCall', _64 => _64(i)]);let s=[_shikijitransformers.transformerNotationDiff.call(void 0, ),_shikijitransformers.transformerNotationFocus.call(void 0, {classActiveLine:"has-focus",classActivePre:"has-focused-lines"}),_shikijitransformers.transformerNotationHighlight.call(void 0, ),_shikijitransformers.transformerNotationErrorLevel.call(void 0, ),{name:"valaxy:add-class",pre(d){_shikiji.addClassToHast.call(void 0, d,"vp-code")}},{name:"valaxy:clean-up",pre(d){delete d.properties.tabindex,delete d.properties.style}}],a=/-vue$/,u=/=(\d*)/,f=/:(no-)?line-numbers(=\d*)?$/,c=/\{\{.*?\}\}/g;return(d,p,v)=>{let _=a.test(p)?"":"v-pre";p=p.replace(u,"").replace(f,"").replace(a,"").toLowerCase()||n,p&&!i.getLoadedLanguages().includes(p)&&!_shikiji.isPlaintext.call(void 0, p)&&!_shikiji.isSpecialLang.call(void 0, p)&&(r.warn(Gu.default.yellow(`
|
|
47
|
-
The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let x=u_(v),C=new Map,E=R=>_?R:R.replace(c,I=>{let S=C.get(I);return S||(S=l_(),C.set(I,S)),S}),A=R=>(C.forEach((I,S)=>{R=R.replaceAll(I,S)}),R),F=R=>R.replace(/(<span class="line highlighted">)(<\/span>)/g,"$1<wbr>$2");d=E(d).trimEnd();let B=i.codeToHtml(d,{lang:p,transformers:[...s,_shikijitransformers.transformerCompactLineOptions.call(void 0, x),{name:"valaxy:v-pre",pre(R){_&&(R.properties["v-pre"]="")}},...o],meta:{__raw:v},...typeof e=="string"||"name"in e?{theme:e}:{themes:e,defaultColor:!1}});return F(A(B))}}_chunkFNMRWIFMcjs.e.call(void 0, );var wi=/{([\d,-]+)}/;function zu(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(...r)=>{let[n,o]=r,i=n[o],s=i.attrs&&i.attrs[0],a=null;if(!s){let u=i.info;if(!u||!wi.test(u))return t(...r);let f=u.replace(wi,"").trim();i.info=f,a=wi.exec(u)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}_chunkFNMRWIFMcjs.e.call(void 0, );var p_=/(^|.*\/)index.md(#?.*)$/i;function Ku(e,t,r){e.renderer.rules.link_open=(i,s,a,u,f)=>{let c=i[s],d=c.attrIndex("href");if(d>=0){let p=c.attrs[d],v=p[1];Et.test(v)?(Object.entries(t).forEach(([x,C])=>{c.attrSet(x,C)}),p[1]=v.replace($l,"")):!v.startsWith("#")&&!v.startsWith("mailto:")&&!/\.(?!html|md)\w+($|\?)/i.test(v)&&n(p,u),p[1]=p[1].replace(/\bimport\.meta/g,"import%2Emeta").replace(/\bprocess\.env/g,"process%2Eenv")}return f.renderToken(i,s,a)};function n(i,s){let a=i[1],u=a.match(p_);if(u){let[,f,c]=u;a=f+c}else{let f=a.replace(/[?#].*$/,"");f.endsWith(".md")&&(f=f.replace(/\.md$/,s.cleanUrls==="disabled"?".html":"")),s.cleanUrls==="disabled"&&!f.endsWith(".html")&&!f.endsWith("/")&&(f+=".html");let c=new (0, _url.URL)(a,"http://a.com");a=f+c.search+c.hash}!a.startsWith("/")&&!/^\.\//.test(a)&&(a=`./${a}`),o(a.replace(/\.html$/,""),s),a.startsWith("/")&&(a=`${r}${a}`.replace(/\/+/g,"/")),i[1]=decodeURI(a)}function o(i,s){(s.links||(s.links=[])).push(i)}}_chunkFNMRWIFMcjs.e.call(void 0, );function Yu(e,t=!1){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let o=r(...n),[i,s]=n,a=i[s].info;if(!t&&!/:line-numbers($| |=)/.test(a)||t&&/:no-line-numbers($| )/.test(a))return o;let u=1,f=a.match(/=(\d*)/);f&&f[1]&&(u=Number.parseInt(f[1]));let d=o.slice(o.indexOf("<code>"),o.indexOf("</code>")).split(`
|
|
48
|
-
`),v=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((x,C)=>`<span class="line-number">${C+u}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${v}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}_chunkFNMRWIFMcjs.e.call(void 0, );var d_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function m_(e){let[t="",r="",n="",o="",i="",s=""]=(d_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function g_(e){let t=e.split(`
|
|
49
|
-
`),r=t.reduce((n,o)=>{for(let i=0;i<o.length;i++)if(o[i]!==" "&&o[i]!==" ")return Math.min(i,n);return n},Number.POSITIVE_INFINITY);return r<Number.POSITIVE_INFINITY?t.map(n=>n.slice(r)).join(`
|
|
50
|
-
`):e}function Qu(e,t,r,n=!1){let[o,i,s]=t.exec(e.trim())||[];return o&&i&&s===r&&i.match(n?/^[Ee]nd ?[rR]egion$/:/^[rR]egion$/)}function h_(e,t){let r=[/^\/\/ ?#?((?:end)?region) ([\w*-]+)$/,/^\/\* ?#((?:end)?region) ([\w*-]+) ?\*\/$/,/^#pragma ((?:end)?region) ([\w*-]+)$/,/^<!-- #?((?:end)?region) ([\w*-]+) -->$/,/^#((?:End )Region) ([\w*-]+)$/,/^::#((?:end)region) ([\w*-]+)$/,/^# ?((?:end)?region) ([\w*-]+)$/],n=null,o=-1;for(let[i,s]of e.entries())if(n===null){for(let a of r)if(Qu(s,a,t)){o=i+1,n=a;break}}else if(Qu(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Zu(e,t){let r=(o,i,s,a)=>{let f=o.bMarks[i]+o.tShift[i],c=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let k=0;k<3;++k)if(o.src.charCodeAt(f+k)!==60||f+k>=c)return!1;if(a)return!0;let d=f+3,p=o.skipSpacesBack(c,f),v=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:_,extension:x,region:C,lines:E,lang:A,title:F}=m_(v);o.line=i+1;let B=o.push("fence","code",0);B.info=`${A||x}${E?`{${E}}`:""}${F?`[${F}]`:""}`;let{realPath:R,path:I}=o.env,S=_path2.default.resolve(_path2.default.dirname(_nullishCoalesce(R, () => (I))),_);return B.src=[S,C.slice(1)],B.markup="```",B.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,u=i[s],[f,c]=_nullishCoalesce(u.src, () => ([]));if(!f)return n(...o);a&&a.push(f);let d=_fsextra2.default.statSync(f).isFile();if(!_fsextra2.default.existsSync(f)||!d)return u.content=d?`Code snippet path not found: ${f}`:"Invalid code snippet option",u.info="",n(...o);let p=_fsextra2.default.readFileSync(f,"utf8");if(c){let v=p.split(/\r?\n/),_=h_(v,c);_&&(p=g_(v.slice(_.start,_.end).filter(x=>!_.regexp.test(x.trim())).join(`
|
|
51
|
-
`)))}return u.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}_chunkFNMRWIFMcjs.e.call(void 0, );var ef={light:"github-light",dark:"github-dark"};async function Ai(e,t,r=!1,n="/"){let o=_optionalChain([t, 'optionalAccess', _65 => _65.config, 'access', _66 => _66.markdown])||{},i=_nullishCoalesce(o.theme, () => (ef)),s=_optionalChain([t, 'optionalAccess', _67 => _67.config, 'access', _68 => _68.siteConfig])||{};o.preConfig&&o.preConfig(e),e.use(Eu,{...o.component}),e.use(zu).use(qu,{theme:i,siteConfig:s}).use(Zu,_optionalChain([t, 'optionalAccess', _69 => _69.userRoot])).use(Uu,{...o.blocks,theme:i}).use(_cssi18n.cssI18nContainer,{languages:_optionalChain([t, 'optionalAccess', _70 => _70.config, 'access', _71 => _71.siteConfig, 'access', _72 => _72.languages])}).use(Ku,{target:"_blank",rel:"noreferrer",...o.externalLinks},n),e.use(Yu,o.lineNumbers),_optionalChain([o, 'access', _73 => _73.attrs, 'optionalAccess', _74 => _74.disable])||e.use(_markdownitattrs2.default,o.attrs),e.use(_markdownitemoji.full),r||e.use(_markdownitanchor2.default,{slugify:dt,permalink:_markdownitanchor2.default.permalink.linkInsideHeader({symbol:"​",renderAttrs:(u,f)=>{let c=f.tokens.findIndex(p=>{let _=_optionalChain([p, 'access', _75 => _75.attrs, 'optionalAccess', _76 => _76.find, 'call', _77 => _77(x=>x[0]==="id")]);return _&&u===_[1]});return{"aria-label":`Permalink to "${f.tokens[c+1].content}"`}}}),...o.anchor}),e.use(Au,{...o.frontmatter}).use(ku,{slugify:dt,...o.headers}).use(Tu,{...o.sfc}).use($u).use(Fu,{...o.toc}),e.use(bi,o.katex);let a=_optionalChain([t, 'optionalAccess', _78 => _78.config, 'access', _79 => _79.siteConfig, 'access', _80 => _80.vanillaLazyload])||{enable:!1};return e.use(Su,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...o.imageFigures}),e.use(_markdownittasklists2.default),o.config&&o.config(e),e}async function tf(e){let t=_optionalChain([e, 'optionalAccess', _81 => _81.config, 'access', _82 => _82.markdown])||{},r=_nullishCoalesce(t.theme, () => (ef)),n=_markdownit2.default.call(void 0, {html:!0,linkify:!0,highlight:await Wu(r,t),...t.options});return n.linkify.set({fuzzyLink:!1}),await Ai(n,e),n}_chunkFNMRWIFMcjs.e.call(void 0, );var _unocss = require('unocss');_chunkFNMRWIFMcjs.e.call(void 0, );function rf(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{_utils.isObject.call(void 0, e[n])?e[n]=rf(e[n],t[n],r?`${r}.${n}`:n):Array.isArray(e[n])?e[n]=[...e[n],...t[n]]:e[n]=t[n]}),e}async function nf(e,t,r,n,o=!0){let i=n;for(let s of e){let a=_path.resolve.call(void 0, s,"setup",t);if(_fsextra2.default.existsSync(a)){let{default:u}=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, _chunkFNMRWIFMcjs.d),{esmResolve:!0})(a),f=await u(r);f!==null&&(i=o?rf(i,f):f)}}return i}async function N_(e){let{config:t}=e,r=["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"].concat(_optionalChain([e, 'access', _83 => _83.config, 'access', _84 => _84.unocss, 'optionalAccess', _85 => _85.safelist])||[]),n="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(r),o=t.siteConfig;_optionalChain([o, 'access', _86 => _86.social, 'optionalAccess', _87 => _87.length])&&o.social.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _88 => _88.icon])||""));let i=_optionalChain([o, 'access', _89 => _89.sponsor, 'optionalAccess', _90 => _90.methods])||[];return i.length&&i.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _91 => _91.icon])||"")),n}async function D_(e){let{config:t}=e;return{shortcuts:[["flex-center","flex items-center justify-center"],["inline-flex-center","inline-flex items-center justify-center"],["btn","px-4 py-1 rounded inline-block bg-$va-c-primary text-white cursor-pointer transition hover:bg-$va-c-primary-light disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-flex justify-center items-center cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg bg-$va-c-bg-light"]],presets:[_unocss.presetUno.call(void 0, _optionalChain([t, 'access', _92 => _92.unocssPresets, 'optionalAccess', _93 => _93.uno])),_unocss.presetAttributify.call(void 0, _optionalChain([t, 'access', _94 => _94.unocssPresets, 'optionalAccess', _95 => _95.attributify])),_unocss.presetIcons.call(void 0, {scale:1.2,..._optionalChain([t, 'access', _96 => _96.unocssPresets, 'optionalAccess', _97 => _97.icons])}),_unocss.presetTypography.call(void 0, _optionalChain([t, 'access', _98 => _98.unocssPresets, 'optionalAccess', _99 => _99.typography]))],rules:[["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[_unocss.transformerDirectives.call(void 0, ),_unocss.transformerVariantGroup.call(void 0, )],safelist:await N_(e)}}async function sf(e){let t=await Promise.resolve().then(() => _interopRequireWildcard(require("unocss/vite"))).then(p=>p.default),{unocss:r}=e.config,n=await D_(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],u=[];[o,i].forEach(p=>a.forEach(v=>u.push(_path.resolve.call(void 0, p,v))));let c={},d=[];return u.forEach(p=>{if(_fs.existsSync.call(void 0, p)){let v=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, _chunkFNMRWIFMcjs.d),{esmResolve:!0})(p);"default"in v&&(v=v.default),c=_defu2.default.call(void 0, c,v),d.push(p)}}),c=await nf(s,"unocss.ts",{},c,!0),t({configDeps:d,configFile:!1,..._defu2.default.call(void 0, r||{},c,n)})}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );async function sn({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=_utils.uniq.call(void 0, [t,e]).map(s=>_path.join.call(void 0, s,"vite.config.ts"));for await(let s of i){if(!_fsextra2.default.existsSync(s))continue;let a=await _vite.loadConfigFromFile.call(void 0, n,s);_optionalChain([a, 'optionalAccess', _100 => _100.config])&&(o=_vite.mergeConfig.call(void 0, o,a.config))}return o}async function af({clientRoot:e,themeRoot:t,userRoot:r,config:n},o){let i=o,s="",a="";n.siteConfig.favicon&&(s+=`<link rel="icon" href="${n.siteConfig.favicon}">`);let u=[r,t];n.siteConfig.mode==="auto"&&(s+=`
|
|
52
|
-
<script>
|
|
53
|
-
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
54
|
-
const colorSchemeSetting = localStorage.getItem('vueuse-color-scheme') || 'auto';
|
|
55
|
-
if (colorSchemeSetting === 'dark' || (prefersDark && colorSchemeSetting !== 'light')) {
|
|
56
|
-
document.documentElement.classList.toggle('dark', true);
|
|
57
|
-
}
|
|
58
|
-
</script>
|
|
59
|
-
`),n.siteConfig.lang&&(s+=`
|
|
60
|
-
<script>
|
|
61
|
-
const locale = localStorage.getItem('valaxy-locale') || '${n.siteConfig.lang}';
|
|
62
|
-
document.documentElement.setAttribute('lang', locale);
|
|
63
|
-
</script>
|
|
64
|
-
`);for(let f of u){let c=_path.join.call(void 0, f,"index.html");if(!_fsextra2.default.existsSync(c))continue;let d=await _fsextra2.default.readFile(c,"utf-8");s+=`
|
|
65
|
-
${(_optionalChain([d, 'access', _101 => _101.match, 'call', _102 => _102(/<head>([\s\S]*?)<\/head>/im), 'optionalAccess', _103 => _103[1]])||"").trim()}`,a+=`
|
|
66
|
-
${(_optionalChain([d, 'access', _104 => _104.match, 'call', _105 => _105(/<body>([\s\S]*?)<\/body>/im), 'optionalAccess', _106 => _106[1]])||"").trim()}`}return i=i.replace("__ENTRY__",J(_path.join.call(void 0, e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var G_=["@unhead/schema-org","@unhead/vue","@vueuse/integrations/useFuse","body-scroll-lock","defu","dayjs","dayjs/locale/zh-cn","dayjs/plugin/relativeTime","dayjs/plugin/timezone","dayjs/plugin/utc","katex","nprogress","unocss","vue","vue-router","vue-i18n","fuse.js","medium-zoom","vanilla-lazyload","@vue/devtools-api"],uf=["@docsearch/css","@vueuse/core","@vueuse/shared","@unocss/reset","unocss","vue","vue-router","vue-demi","@vue/devtools-api","meting","valaxy","/@valaxyjs/config","/@valaxyjs/context","/@valaxyjs/addons","/@valaxyjs/locales","/@valaxyjs/styles"];function ff(e){let t=Object.keys(e.config.themeConfig.pkg.dependencies||{}),r=e.addons.map(n=>Object.keys(n.pkg.dependencies||{})).flat();return{name:"valaxy:site",enforce:"pre",config(n){let o={root:e.clientRoot,publicDir:_path.join.call(void 0, e.userRoot,"public"),define:Ti(e),resolve:{alias:W_(e),dedupe:["vue"]},optimizeDeps:{entries:[_path.resolve.call(void 0, e.clientRoot,"main.ts")],include:_utils.uniq.call(void 0, [...G_,...t,...r]).filter(i=>!uf.includes(i)),exclude:uf},server:{fs:{allow:_utils.uniq.call(void 0, [_vite.searchForWorkspaceRoot.call(void 0, e.clientRoot),_vite.searchForWorkspaceRoot.call(void 0, e.themeRoot),_vite.searchForWorkspaceRoot.call(void 0, e.userRoot),_path.dirname.call(void 0, Ie("katex/package.json",!0))])}}};return _isinstalledglobally2.default&&(o.cacheDir=_path.join.call(void 0, e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Ie("vue/dist/vue.esm-browser.js",!0)}`),_vite.mergeConfig.call(void 0, n,o)},async transformIndexHtml(n){return n=await af(e,n),{html:n,tags:[]}}}}function Ti(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function W_(e){let t=[{find:"~/",replacement:`${J(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${J(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:J(_path.resolve.call(void 0, e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:J(_path.resolve.call(void 0, e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${J(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${J(_path.resolve.call(void 0, e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${J(_path.resolve.call(void 0, e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Ie("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${J(`${_path.resolve.call(void 0, r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${J(_path.resolve.call(void 0, r.root))}/App.vue`}),t.push({find:r.name,replacement:`${J(_path.resolve.call(void 0, r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:J(_path.resolve.call(void 0, e.clientRoot,"./addons/index.ts"))}),t}_chunkFNMRWIFMcjs.e.call(void 0, );function pf({clientRoot:e,themeRoot:t,userRoot:r}){let n=_utils.slash.call(void 0, _path.resolve.call(void 0, e,"setup"));return{name:"valaxy:setup",enforce:"pre",async transform(o,i){if(i.startsWith(n)){let s=i.slice(n.length+1).replace(/\?.*$/,""),a=[],u=[];return _utils.uniq.call(void 0, [t,r]).map(c=>_path.join.call(void 0, c,"setup",s)).forEach((c,d)=>{if(!_fs.existsSync.call(void 0, c))return;a.push(`import __n${d} from '${J(c)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",u.push(`// ${c}`,p)}),o=o.replace("/* __imports__ */",a.join(`
|
|
67
|
-
`)),o=o.replace("/* __injections__ */",u.join(`
|
|
68
|
-
`)),o}return null}}}_chunkFNMRWIFMcjs.e.call(void 0, );function df(e){let t=_utils.objectEntries.call(void 0, Ti(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,n){if(n.match(/\.vue($|\?)/)){let o=r;if(t.forEach(([i,s])=>{r=r.replace(new RegExp(i,"g"),s)}),o!==r)return r}}}]}_chunkFNMRWIFMcjs.e.call(void 0, );var _vite9 = require('unplugin-vue-router/vite'); var _vite10 = _interopRequireDefault(_vite9);var _htmltotext = require('html-to-text');_chunkFNMRWIFMcjs.e.call(void 0, );function tx(e){let t=(e.match(/[\u4E00-\u9FA5]/g)||[]).length,r=(e.replace(/[\u4E00-\u9FA5]/g,"").match(/[a-zA-Z0-9_\u0392-\u03C9\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|[\u00E4\u00C4\u00E5\u00C5\u00F6\u00D6]+|\w+/g)||[]).length;return{cn:t,en:r}}function rx({cn:e,en:t},r){let n=e/(r.speed.cn||300)+t/(r.speed.en||100);return n<1?1:Math.ceil(n)}function nx({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function ox(e,t){let r=tx(e);return{countData:r,wordCount:nx(r),readingTime:rx(r,t.readTime)}}function mf({route:e,options:t}){let r=e.components.get("default")||"";if(_fs.existsSync.call(void 0, r)){let n=_fs.readFileSync.call(void 0, r,"utf-8"),{wordCount:o,readingTime:i}=ox(n,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=o),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=i))}}function lx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return an.render(e);case"text":return _htmltotext.convert.call(void 0, an.render(e));default:return e}}function hf(e){let{roots:t,config:r}=e;return _vite10.default.call(void 0, {extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:_pathe.resolve.call(void 0, e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"});let i=n.components.get("default")||"";if(n.fullPath.startsWith("/posts/")&&n.addToMeta({layout:"post"}),i.endsWith(".md")){let s=_fsextra2.default.readFileSync(i,"utf-8"),{data:a,excerpt:u,content:f}=_graymatter2.default.call(void 0, s,{excerpt_separator:Gr}),c=a,d=e.config.siteConfig.lastUpdated;if(delete c.password,c.gallery_password&&(delete c.gallery_password,delete c.photos),c.date||(c.date=_fsextra2.default.statSync(i).mtime),d&&(c.updated||(c.updated=_fsextra2.default.statSync(i).ctime)),_utils.isDate.call(void 0, c.date)||(c.date=new Date(c.date)),_utils.isDate.call(void 0, c.updated)||(c.updated=new Date(c.updated)),c.from&&(Array.isArray(c.from)?c.from.forEach(v=>{e.redirects.push({from:v,to:n.fullPath})}):e.redirects.push({from:c.from,to:n.fullPath})),n.addToMeta({frontmatter:c,excerpt:u?lx(u,c.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),_optionalChain([n, 'access', _107 => _107.meta, 'access', _108 => _108.frontmatter, 'optionalAccess', _109 => _109.updated])||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let v=n.meta.frontmatter.tags;typeof v=="string"&&(n.meta.frontmatter.tags=[v])}r.siteConfig.statistics.enable&&mf({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:u,content:f,path:i};_optionalChain([r, 'access', _110 => _110.extendMd, 'optionalCall', _111 => _111(p)])}return _optionalChain([r, 'access', _112 => _112.router, 'optionalAccess', _113 => _113.extendRoute, 'optionalCall', _114 => _114(n)])}})}_chunkFNMRWIFMcjs.e.call(void 0, );var ln=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _pascalcase = require('pascalcase'); var _pascalcase2 = _interopRequireDefault(_pascalcase);_chunkFNMRWIFMcjs.e.call(void 0, );var It=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1),xf=_chunkFNMRWIFMcjs.c.call(void 0, ni(),1);var _lrucache = require('lru-cache');_chunkFNMRWIFMcjs.e.call(void 0, );function ux(e){let t=new TextEncoder;return _crypto.webcrypto.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function fx(e,t){return _crypto.webcrypto.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function cn(e,t){let{password:r,iv:n,salt:o}=t,i=await ux(r),s=await fx(i,o),a=new TextEncoder,u=await _crypto.webcrypto.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(u))}_chunkFNMRWIFMcjs.e.call(void 0, );function Mi(e,t,r,n){let o=/<!--\s*@include:\s*(.*?)\s*-->/g,i=/\{(\d*),(\d*)\}$/;return t.replace(o,(s,a)=>{if(!a.length)return s;let u=a.match(i);u&&(a=a.slice(0,-u[0].length));let f=a[0]==="@";try{let c=f?_path2.default.join(e,a.slice(a[1]==="/"?2:1)):_path2.default.join(_path2.default.dirname(r),a),d=_fsextra2.default.readFileSync(c,"utf-8");if(u){let[,p,v]=u;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,v?Number.parseInt(v,10):void 0).join(`
|
|
69
|
-
`)}return n.push(_utils.slash.call(void 0, c)),Mi(e,d,c,n)}catch (e20){return s}})}var gx="<wbr>",yf=(0,xf.default)("vitepress:md"),vf=new (0, _lrucache.LRUCache)({max:1024}),hx=/<!--\s*@include:\s*(.*?)\s*-->/g;function yx(e={},t){let r=["process.env"];return t&&r.push("import.meta",...Object.keys(e)),new RegExp(`\\b(${r.map(n=>n.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")).join("|")})`,"g")}function vx(e,t,r){return e=e.replace(/<a (.*?)>(.*?)<\/a>/g,"<AppLink $1>$2</AppLink>"),e.replace(t,n=>`${n[0]}${r}${n.slice(1)}`)}function _x(e,t,r){if(typeof t.title=="string"){let n=e.parseInline(t.title,{})[0];if(n)return er(n,{shouldAllowHtml:!1,shouldEscapeText:!1})}return r}function xx(e,t){if(!e||!e.length)return;let r=e.find(([n,o={}])=>n==="meta"&&o.name===t&&o.content);return r&&r[1].content}function Cx(e){let{description:t,head:r}=e;return t!==void 0?t:r&&xx(r,"description")||""}function bx(e,t,r){if(typeof r!="number"||r<=0)return e;let n=t.config.siteConfig.codeHeightLimit;return e=e.replaceAll(/<div.+class="language-\w+">/g,o=>(n!==void 0&&n>0?o=o.replace(/\d+/,r.toString()):o=`${o.slice(0,5)}style="max-height: ${r}px;"${o.slice(5)}`,o)),e}async function Cf(e,t,r,n,o=!1,i=!1,s="with-subfolders"){let a=await tf(e);r=r.map(f=>f.replace(/\.md$/,"").replace(/\/index$/,""));let u=yx(n,o);return async(f,c,d)=>{let p=c,v=_pathe2.default.dirname(c),_=_pathe2.default.relative(t,c),x=JSON.stringify({src:f,file:p}),C=vf.get(x);if(C)return yf(`[cache hit] ${_}`),C;let E=Date.now(),A=[];f=Mi(t,f,p,A),f=f.replace(hx,(L,G)=>{try{let H=_pathe2.default.join(v,G),oe=_fsextra2.default.readFileSync(H,"utf-8");return A.push(H),oe}catch (e21){return L}});let F={path:c,relativePath:_,cleanUrls:s,realPath:p},B=a.render(f,F),{frontmatter:R={},headers:I=[],links:S=[],sfcBlocks:k,title:T=""}=F,z=[],g=L=>{console.warn(It.default.yellow(`
|
|
70
|
-
(!) Found dead link ${It.default.cyan(L)} in file ${It.default.white(It.default.dim(c))}
|
|
71
|
-
If it is intended, you can use:
|
|
72
|
-
${It.default.cyan(`<a href="${L}" target="_blank" rel="noreferrer">${L}</a>`)}`)),z.push(L)};if(S){let L=_pathe2.default.dirname(c);for(let G of S){if(/\.(?!html|md)\w+($|\?)/i.test(G))continue;if(G.replace(Et,"").startsWith("//localhost:")){g(G);continue}G=G.replace(/[?#].*$/,"").replace(/\.(html|md)$/,"");let H=decodeURIComponent(mi(G.startsWith("/")?G.slice(1):_pathe2.default.relative(t,_pathe2.default.resolve(L,G)))).replace(/\/index$/,"");(H.endsWith("/")?r.includes(H.slice(0,-1)):r.includes(H)||_fsextra2.default.existsSync(_pathe2.default.resolve(L,d,`${H}.html`))||_fsextra2.default.existsSync(_pathe2.default.resolve(L,d,`${H}/index.html`)))||g(G)}}let O={title:_x(a,R,T),titleTemplate:R.titleTemplate,description:Cx(R),frontmatter:R,headers:I,relativePath:_,path:_pathe2.default.join(t,_)};i&&(O.lastUpdated=await qt(c));let M="ValaxyMain";function D(){return["main-header","main-header-after","main-nav","main-content","main-content-after","main-nav-before","main-nav-after","comment","footer","aside","aside-custom"].map(H=>`<template #${H}><slot name="${H}" /></template>`).join("")}let h=vx(B,u,gx);h=bx(h,e,R.codeHeightLimit);let{config:{siteConfig:{encrypt:y}}}=e;if(y.enable){let L=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,G=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(R.password)h=h.replaceAll(G,"");else{let H=[];for(let ee of h.matchAll(L))H.push(await cn(ee.groups.content,{password:ee.groups.password,iv:y.iv,salt:y.salt}));R.partiallyEncryptedContents=H.length?H:void 0;let oe=0;h=h.replaceAll(L,()=>`<ValaxyDecrypt :encrypted-content="frontmatter.partiallyEncryptedContents[${oe++}]" />`)}if(R.password){let H=await cn(h,{password:R.password,iv:y.iv,salt:y.salt});h="",R.encryptedContent=H,R.encrypt=!0,delete R.password}if(R.gallery_password){let H=await cn(JSON.stringify(R.photos),{password:R.gallery_password,iv:y.iv,salt:y.salt});R.encryptedPhotos=H,delete R.gallery_password,delete R.photos}}let j=[...kx(_nullishCoalesce(_optionalChain([k, 'optionalAccess', _115 => _115.scripts, 'access', _116 => _116.map, 'call', _117 => _117(L=>L.content)]), () => ([])),O,u),`<template><${M} :frontmatter="frontmatter" :data="data">`,`<template #main-content-md>${h}</template>`,D(),"<slot />",`</${M}></template>`,..._nullishCoalesce(_optionalChain([k, 'optionalAccess', _118 => _118.styles, 'access', _119 => _119.map, 'call', _120 => _120(L=>L.content)]), () => ([])),..._nullishCoalesce(_optionalChain([k, 'optionalAccess', _121 => _121.customBlocks, 'access', _122 => _122.map, 'call', _123 => _123(L=>L.content)]), () => ([]))].join(`
|
|
73
|
-
`);yf(`[render] ${c} in ${Date.now()-E}ms.`);let $={vueSrc:j,pageData:O,deadLinks:z,includes:A};return vf.set(f,$),$}}var _f=/<\/script>/,Sx=/<\s*script[^>]*\blang=['"]ts['"][^>]*/,Rx=/<\s*script[^>]*\bsetup\b[^>]*/,wx=/<\s*script[^>]*\bclient\b[^>]*/,Ex=/((?:^|\n|;)\s*)export(\s*)default/,Ax=/((?:^|\n|;)\s*)export(.+)as(\s*)default/;function kx(e,t,r){let n=e.findIndex(s=>_f.test(s)&&!Rx.test(s)&&!wx.test(s)),o=e.findIndex(s=>Sx.test(s))>-1,i=`
|
|
74
|
-
import { provide } from 'vue'
|
|
75
|
-
import { useRoute } from 'vue-router'
|
|
76
|
-
export const data = ${Ml(t)}
|
|
77
|
-
export default {
|
|
78
|
-
name:'${t.relativePath}',
|
|
79
|
-
data() {
|
|
80
|
-
return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter }
|
|
81
|
-
},
|
|
82
|
-
setup() {
|
|
83
|
-
const route = useRoute()
|
|
84
|
-
route.meta.frontmatter = Object.assign(route.meta.frontmatter || {}, data.frontmatter || {})
|
|
85
|
-
provide('pageData', data)
|
|
86
|
-
}
|
|
87
|
-
}`;if(n>-1){let s=e[n],a=Ex.test(s)||Ax.test(s);e[n]=s.replace(_f,`${a?"":`
|
|
88
|
-
${i}`}</script>`)}else e.unshift(`<script ${o?'lang="ts"':""}>
|
|
89
|
-
${i}</script>`);return e}_chunkFNMRWIFMcjs.e.call(void 0, );var Mt=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);function bf(e,t){e.includes("{%")&&e.includes("%}")&&_consola2.default.error(`${`${t}
|
|
90
|
-
`} Please ${(0,Mt.red)("remove")} ${(0,Mt.cyan)("{% %}")}, because it conflicts with ${(0,Mt.yellow)("markdown-it-attrs")}.`)}function Ix(e){let t=e.redirects.map(r=>({path:r.from,redirect:r.to}));return e.config.runtimeConfig.redirects={useVueRouter:Xt()?e.config.siteConfig.redirects.useVueRouter:!0,redirectRoutes:t},`export default ${JSON.stringify(JSON.stringify(e.config))}`}function Mx(e,t){let r=[];_optionalChain([t, 'access', _124 => _124.config, 'access', _125 => _125.features, 'optionalAccess', _126 => _126.katex])&&(r.push(`import "${J(Ie("katex/dist/katex.min.css",!0))}"`),r.push(`import "${J(_pathe.join.call(void 0, t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["index","css-vars"].forEach(s=>{o.push(_pathe.join.call(void 0, n,"styles",`${s}.css`)),o.push(_pathe.join.call(void 0, n,"styles",`${s}.scss`))});for(let s of o)_fsextra2.default.existsSync(s)&&r.push(`import "${J(s)}"`)}return r.join(`
|
|
91
|
-
`)}function Lx(e){let t=['import { defu } from "defu"','const messages = { "zh-CN": {}, en: {} }'],r=["zh-CN","en"];return e.forEach((n,o)=>{r.forEach(i=>{let s=`${n}/locales/${i}.yml`;if(_fsextra2.default.existsSync(s)&&_fsextra2.default.readFileSync(s,"utf-8")){let a=i.replace("-","")+o;t.unshift(`import ${a} from "${J(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
|
|
92
|
-
`)}function Nx(e){let t=e.addons.filter(i=>i.global).filter(i=>_fsextra2.default.existsSync(_pathe.join.call(void 0, i.root,"./App.vue"))),r=i=>`Addon${_pascalcase2.default.call(void 0, i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
|
|
93
|
-
`),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
|
|
94
|
-
export default [${o}]`}var Dx='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function Sf(e){let t=_pathe.join.call(void 0, e,"App.vue");return _fsextra2.default.existsSync(t)?[`import AppVue from "${J(t)}"`,"export default AppVue"].join(`
|
|
95
|
-
`):Dx}function Rf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i,s=!1,a;return{name:"valaxy:loader",enforce:"pre",async configResolved(u){a=u,i=await Cf(e,e.userRoot,e.pages,a.define,a.command==="build",e.config.siteConfig.lastUpdated)},configureServer(u){u.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(u){return u.startsWith(n)?u:null},load(u){if(u==="/@valaxyjs/config")return Ix(e);if(u==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(u==="/@valaxyjs/styles")return Mx(o,e);if(u==="/@valaxyjs/locales")return Lx(o);if(u==="/@valaxyjs/addons")return Nx(e);if(u==="/@valaxyjs/UserAppVue")return Sf(e.userRoot);if(u==="/@valaxyjs/ThemeAppVue")return Sf(e.themeRoot);if(u.startsWith(n))return{code:"",map:{mappings:""}}},async transform(u,f){if(f.endsWith(".md")){bf(u,f),u.replace("{%","{%"),u.replace("%}","%}");let{vueSrc:c,deadLinks:d,includes:p}=await i(u,f,a.publicDir);return d.length&&(s=!0),p.length&&p.forEach(v=>{this.addWatchFile(v)}),c}},renderStart(){if(s&&!r.ignoreDeadLinks)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(u){let f=Ke(),{file:c,server:d,read:p}=u,v=x=>{_optionalChain([t, 'access', _127 => _127.onConfigReload, 'optionalCall', _128 => _128(x,e.config)]),Object.assign(e.config,x),r=x;let C=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(C).map(A=>d.moduleGraph.getModuleById(A))].filter(A=>!!A)};if([e.configFile].includes(c)){let{config:x}=await we({userRoot:e.userRoot});return v(x)}if(c===e.siteConfigFile){let{siteConfig:x}=await zr(e.userRoot);return r.siteConfig=_defu.defu.call(void 0, x,Wr),v(r)}if(c===e.themeConfigFile){let{themeConfig:x}=await Bl(e),C=r.themeConfig.pkg;return x.pkg=C,r.themeConfig=x,v(r)}if(c===_pathe.resolve.call(void 0, e.themeRoot,"valaxy.config.ts")){let x=await _i(e),C=ut(e.config,x),{config:E}=await vi(e,C);return v(E)}if(c.endsWith(".md")){let x=await p(),{pageData:C,vueSrc:E}=await i(x,c,_pathe.join.call(void 0, e.userRoot,"public")),A=`/${_pathe.relative.call(void 0, `${e.userRoot}/pages`,c)}`,F={path:A,pageData:C};d.ws.send({type:"custom",event:"valaxy:pageData",data:F}),u.read=()=>E,Tt.success(`${(0,ln.yellow)("[HMR]")} ${A} ${(0,ln.dim)(`updated in ${f()}`)}`)}}}}var an=new (0, _markdownit2.default)({html:!0});async function nr(e,t={}){let{roots:r,config:n}=e;await Ai(an,e,!0);let o=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics","meting-js"]);return[Rf(e,t),ff(e),pf(e),_pluginvue2.default.call(void 0, {include:[/\.vue$/,/\.md$/],template:{compilerOptions:{isCustomElement:i=>o.has(i)},..._optionalChain([n, 'access', _129 => _129.vue, 'optionalAccess', _130 => _130.template])},...n.vue}),_vite8.default.call(void 0, ),hf(e),_vitepluginvuelayouts2.default.call(void 0, {layoutsDirs:r.map(i=>`${i}/layouts`),...n.layouts}),_vite4.default.call(void 0, {extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(i=>`${i}/components`).concat(["src/components","components"]),dts:_pathe.resolve.call(void 0, e.tempDir,"components.d.ts"),...n.components}),await sf(e),_vite6.default.call(void 0, {runtimeOnly:!0,compositionOnly:!0,include:r.map(i=>`${i}/locales/**`)}),_vite.splitVendorChunkPlugin.call(void 0, ),df(e)]}async function kf(e,t={}){let r=_vite.mergeConfig.call(void 0, t,{plugins:await nr(e)});await _vite.build.call(void 0, r)}async function Pf(e,t={}){let r={plugins:await nr(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};r.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){_vitessgsitemap2.default.call(void 0, {hostname:e.config.siteConfig.url})}};let n=_vite.mergeConfig.call(void 0, r,t);await _node.build.call(void 0, {},n)}async function Of(e){let{userRoot:t}=e,r=_path.resolve.call(void 0, t,"dist/index.html");if(_fsextra2.default.existsSync(r)){_consola2.default.info("post process for ssg...");let n=await _fsextra2.default.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){_consola2.default.warn("fix incomplete index.html...");let i=n.lastIndexOf(o);await _fsextra2.default.writeFile(r,n.slice(0,i+o.length),"utf-8")}}_optionalChain([e, 'access', _131 => _131.config, 'access', _132 => _132.siteConfig, 'access', _133 => _133.redirects, 'optionalAccess', _134 => _134.useVueRouter])||await Xx(e)}async function Xx(e){_consola2.default.info("generate client redirects...");let t=_path.resolve.call(void 0, e.userRoot,"dist"),n=Zr(e.redirects).map(async o=>{let i=_path.join.call(void 0, t,`${o.from}.html`),s=_path.join.call(void 0, t,`${o.to}.html`);if(!await _fsextra2.default.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await Zl(o.to,i)});await Promise.all(n)}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );async function $f(e,t={},r={}){_process2.default.env.EDITOR=_process2.default.env.EDITOR||"code";let n=await nr(e,r),o=e.mode==="dev"&&e.config.devtools,i=_vite.mergeConfig.call(void 0, t,{plugins:[...n,o&&(await Promise.resolve().then(() => _interopRequireWildcard(require("vite-plugin-vue-devtools")))).default]});return await _vite.createServer.call(void 0, i)}_chunkFNMRWIFMcjs.e.call(void 0, );_chunkFNMRWIFMcjs.e.call(void 0, );var _hookable = require('hookable');var e1=["build:before","build:after"];function fn(e){let t=_hookable.createHooks.call(void 0, );typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(e1.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:gt,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}_chunkFNMRWIFMcjs.e.call(void 0, );var W=_chunkFNMRWIFMcjs.c.call(void 0, fe(),1);var _readline = require('readline'); var Ff = _interopRequireWildcard(_readline);var pn;function dn(e,t,r){if(console.log(),console.log(` ${(0,W.bold)("\u{1F30C} Valaxy")} ${(0,W.blue)(`v${gt}`)}`),console.log(),console.log(`${(0,W.dim)(" \u{1FA90} theme ")} > ${e.theme?(0,W.green)(e.theme):(0,W.gray)("none")}`),console.log(` ${(0,W.dim)("\u{1F4C1}")} ${(0,W.dim)(_path2.default.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,W.dim)(" Preview ")} > ${(0,W.cyan)(`http://localhost:${(0,W.bold)(t)}/`)}`),r&&Object.values(_os2.default.networkInterfaces()).forEach(u=>(u||[]).filter(f=>f.family==="IPv4"&&!f.address.includes("127.0.0.1")).forEach(({address:f})=>{console.log(`${(0,W.dim)(" Network ")} > ${(0,W.blue)(`http://${f}:${(0,W.bold)(t)}/`)}`)})),console.log();let n=`${(0,W.underline)("r")}${(0,W.dim)("estart")}`,o=`${(0,W.underline)("e")}${(0,W.dim)("dit")}`,i=`${(0,W.underline)("o")}${(0,W.dim)("pen")}`,s=`${(0,W.underline)("q")}${(0,W.dim)("r")}`,a=`${(0,W.dim)(" | ")}`;console.log(`${(0,W.dim)(" shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function or(e,t){pn&&(Tt.info("close server..."),await pn.close());let r=_vite.mergeConfig.call(void 0, await sn(e,"serve"),t);try{pn=await $f(e,r,{async onConfigReload(n,o,i=!1){i&&(Tt.info(`${(0,W.yellow)("force")} reload the server`),or(e,t));let s=!1;n.theme!==o.theme&&(s=!0),s&&or(e,t)}}),await pn.listen(),Tt.ready("server ready")}catch(n){_consola2.default.error(`failed to start server. error:
|
|
96
|
-
`),console.error(n),_process2.default.exit(1)}}function If(e){_process2.default.stdin.resume(),_process2.default.stdin.setEncoding("utf8"),Ff.emitKeypressEvents(_process2.default.stdin),_process2.default.stdin.isTTY&&_process2.default.stdin.setRawMode(!0),_process2.default.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")_process2.default.exit();else{let[n]=e.filter(o=>o.name===t);if(n)try{n.action()}catch(o){console.error(`Failed to execute shortcut ${n.fullName}`,o)}}})}function Df(e){e.command("build [root]","build your blog to static content",t=>Qe(t).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({ssg:t,root:r,output:n,log:o})=>{Ot();let i=await we({userRoot:r},"build");dn(i);let s=fn(i);await s.hooks.callHook("options:resolved");let a=[];i.config.modules.rss.enable&&a.push(en),lu(s,a);let u=_vite.mergeConfig.call(void 0, await sn(i,"build"),i.config.vite||{}),f=_vite.mergeConfig.call(void 0, u,{configFile:_path2.default.resolve(i.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:_path2.default.resolve(i.userRoot,n)},logLevel:o});await s.hooks.callHook("config:init"),await s.hooks.callHook("build:before");try{if(t){_consola2.default.info(`use ${(0,Nf.yellow)("vite-ssg")} to do ssg build...`);try{await Pf(i,f),await Of(i)}catch(c){_consola2.default.error("[vite-ssg] An internal error occurred."),console.log(c)}}else _consola2.default.info("use vite do spa build..."),await kf(i,f)}catch(c){console.log(c)}finally{await s.hooks.callHook("build:after")}})}_chunkFNMRWIFMcjs.e.call(void 0, );var _child_process = require('child_process');var _qrcode = require('qrcode'); var _qrcode2 = _interopRequireDefault(_qrcode);_chunkFNMRWIFMcjs.e.call(void 0, );var _net = require('net'); var _net2 = _interopRequireDefault(_net);async function Vi(e){return await s1(e)?e:await Vi(e+1)}function s1(e){return new Promise(t=>{let r=_net2.default.createServer(n=>{n.write(`Echo server\r
|
|
97
|
-
`),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Hf(e){e.command("* [root]","Start a local server for Valaxy",t=>Qe(t).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"info",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:t,port:r,open:n,remote:o,log:i})=>{hi(),_fsextra2.default.existsSync(_path2.default.resolve(t,"pages"))||_process2.default.exit(0);let s=r||await Vi(4859),a=await we({userRoot:t});fn(a);let u=_vite.mergeConfig.call(void 0, {configFile:_path2.default.resolve(a.clientRoot,"vite.config.ts"),server:{watch:{ignored:[`!${a.themeRoot}/**`,`${a.userRoot}/**.md`]},port:s,strictPort:!0,open:n,host:o?"0.0.0.0":"localhost"},logLevel:i},a.config.vite||{});await or(a,u),dn(a,s,o),If([{name:"r",fullName:"restart",action(){or(a,u)}},{name:"o",fullName:"open",async action(){let{default:c}=await Promise.resolve().then(() => _interopRequireWildcard(require("open")));c(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let d=`http://${_optionalChain([Object, 'access', _135 => _135.values, 'call', _136 => _136(_os2.default.networkInterfaces()), 'access', _137 => _137.flat, 'call', _138 => _138(), 'access', _139 => _139.filter, 'call', _140 => _140(p=>_optionalChain([p, 'optionalAccess', _141 => _141.family])==="IPv4"&&!p.address.includes("127.0.0.1")), 'access', _142 => _142[0], 'optionalAccess', _143 => _143.address])||"localhost"}:${s}`;_qrcode2.default.toString(d,{type:"terminal"},(p,v)=>{if(p)throw p;console.log(v)})}},{name:"e",fullName:"edit",action(){_child_process.exec.call(void 0, `code "${t}"`)}}])})}var ir=_yargs2.default.call(void 0, _helpers.hideBin.call(void 0, _process2.default.argv)).scriptName("valaxy").usage("$0 [args]").version(gt).showHelpOnFail(!1).alias("h","help").alias("v","version");Hf(ir);Df(ir);_u(ir);var h1=[en,mu];h1.forEach(e=>{_optionalChain([e, 'access', _144 => _144.extendCli, 'optionalCall', _145 => _145(ir)])});function pT(){ir.help().parse()}exports.a = qt; exports.b = Ie; exports.c = Fl; exports.d = mi; exports.e = gi; exports.f = J; exports.g = Il; exports.h = Ml; exports.i = Sy; exports.j = At; exports.k = Wr; exports.l = $R; exports.m = wy; exports.n = zr; exports.o = Dl; exports.p = Oy; exports.q = BR; exports.r = Yt; exports.s = ut; exports.t = Vl; exports.u = Fy; exports.v = YR; exports.w = Hl; exports.x = Kr; exports.y = Bl; exports.z = Ly; exports.A = lw; exports.B = pw; exports.C = vi; exports.D = we; exports.E = _i; exports.F = sn; exports.G = af; exports.H = kf; exports.I = Pf; exports.J = Of; exports.K = Xx; exports.L = $f; exports.M = ir; exports.N = pT;
|
|
98
|
-
/*! Bundled license information:
|
|
99
|
-
|
|
100
|
-
is-extglob/index.js:
|
|
101
|
-
(*!
|
|
102
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
105
|
-
* Licensed under the MIT License.
|
|
106
|
-
*)
|
|
107
|
-
|
|
108
|
-
is-glob/index.js:
|
|
109
|
-
(*!
|
|
110
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
111
|
-
*
|
|
112
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
113
|
-
* Released under the MIT License.
|
|
114
|
-
*)
|
|
115
|
-
|
|
116
|
-
is-number/index.js:
|
|
117
|
-
(*!
|
|
118
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
119
|
-
*
|
|
120
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
121
|
-
* Released under the MIT License.
|
|
122
|
-
*)
|
|
123
|
-
|
|
124
|
-
to-regex-range/index.js:
|
|
125
|
-
(*!
|
|
126
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
127
|
-
*
|
|
128
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
129
|
-
* Released under the MIT License.
|
|
130
|
-
*)
|
|
131
|
-
|
|
132
|
-
fill-range/index.js:
|
|
133
|
-
(*!
|
|
134
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
135
|
-
*
|
|
136
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
137
|
-
* Licensed under the MIT License.
|
|
138
|
-
*)
|
|
139
|
-
|
|
140
|
-
queue-microtask/index.js:
|
|
141
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
142
|
-
|
|
143
|
-
run-parallel/index.js:
|
|
144
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
145
|
-
*/
|