@stencil/core 4.45.5 → 4.45.6-dev.1796101679.176b027
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +109 -73
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +6 -3
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +6 -3
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +78 -5
- package/internal/package.json +1 -1
- package/internal/stencil-core/index.js +2 -0
- package/internal/stencil-public-compiler.d.ts +8 -0
- package/internal/stencil-public-runtime.d.ts +51 -0
- package/internal/testing/index.js +5 -2
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +78 -5
- package/mock-doc/index.d.ts +7 -2
- package/mock-doc/index.js +78 -5
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +9 -9
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +6 -1
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-element.d.ts +1 -1
- package/testing/puppeteer/test/puppeteer-browser.spec.d.ts +1 -0
package/sys/node/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System v4.45.
|
|
2
|
+
Stencil Node System v4.45.6-dev.1796101679.176b027 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
|
-
"use strict";var Mo=Object.create;var pn=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Bo=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var Yr=r=>{throw TypeError(r)};var Uo=(r,e,t)=>e in r?pn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Ee=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Qr=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},Zr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ho(e))!jo.call(r,s)&&s!==t&&pn(r,s,{get:()=>e[s],enumerable:!(n=Fo(e,s))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?Mo(Bo(r)):{},Zr(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r)),zo=r=>Zr(pn({},"__esModule",{value:!0}),r);var Te=(r,e,t)=>Uo(r,typeof e!="symbol"?e+"":e,t),tr=(r,e,t)=>e.has(r)||Yr("Cannot "+t);var B=(r,e,t)=>(tr(r,e,"read from private field"),t?t.call(r):e.get(r)),Fe=(r,e,t)=>e.has(r)?Yr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),de=(r,e,t,n)=>(tr(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),le=(r,e,t)=>(tr(r,e,"access private method"),t);var ts=Ee((
|
|
5
|
-
`),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=f=>n(f,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Vo,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Go(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=ts(),r.define=s,r};rr.exports=ns();rr.exports.create=ns});var vs=Ee((Id,ys)=>{"use strict";ys.exports=ms;function ms(r,e,t){r instanceof RegExp&&(r=hs(r,t)),e instanceof RegExp&&(e=hs(e,t));var n=gs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function hs(r,e){var t=e.match(r);return t?t[0]:null}ms.range=gs;function gs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;f>=0&&!a;)f==u?(n.push(f),u=t.indexOf(r,f+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var Cs=Ee((Md,Ts)=>{var bs=vs();Ts.exports=Ea;var Es="\0SLASH"+Math.random()+"\0",Ss="\0OPEN"+Math.random()+"\0",fr="\0CLOSE"+Math.random()+"\0",$s="\0COMMA"+Math.random()+"\0",xs="\0PERIOD"+Math.random()+"\0",pa=1e5,ha=4e6,ma=1e3,ga=1e3;function cr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ya(r){return r.split("\\\\").join(Es).split("\\{").join(Ss).split("\\}").join(fr).split("\\,").join($s).split("\\.").join(xs)}function va(r){return r.split(Es).join("\\").split(Ss).join("{").split(fr).join("}").split($s).join(",").split(xs).join(".")}function ur(r,e){for(var t=0;t<e.length;t++)r.push(e[t])}function ba(r){for(var e=[],t="";;){var n=bs("{","}",r);if(!n){var s=r.split(",");return s[0]=t+s[0],ur(e,s),e}var i=n.pre,o=n.body,a=n.post,u=i.split(",");if(u[0]=t+u[0],u[u.length-1]+="{"+o+"}",!a.length)return ur(e,u),e;t=u.pop(),ur(e,u),r=a}}function Ea(r,e){if(!r)return[];e=e||{};var t=e.max==null?pa:e.max,n=e.maxLength==null?ha:e.maxLength,s=e.maxDepth==null?ma:e.maxDepth,i=e.maxRewrites==null?ga:e.maxRewrites;return r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dr(ya(r),t,n,s,0,i,!0).map(va)}function Sa(r){return"{"+r+"}"}function $a(r){return/^-?0\d/.test(r)}function xa(r,e){return r<=e}function Ta(r,e){return r>=e}function gn(r,e,t,n,s,i){for(var o=[],a=0,u=0;u<r.length;u++)for(var c=0;c<t.length;c++){if(o.length>=n)return o;var f=r[u]+e+t[c];if(!(i&&!f)){if(a+f.length>s)return o;o.push(f),a+=f.length}}return o}function Ca(r,e,t,n){var s=r.split(/\.\./),i=[];if(s[0]===void 0||s[1]===void 0)return i;var o=cr(s[0]),a=cr(s[1]),u=Math.max(s[0].length,s[1].length),c=s.length===3&&s[2]!==void 0?Math.max(Math.abs(cr(s[2])),1):1,f=xa,p=a<o;p&&(c*=-1,f=Ta);for(var $=s.some($a),x=0,h=o;f(h,a)&&i.length<t;h+=c){var E;if(e)E=String.fromCharCode(h),E==="\\"&&(E="");else if(E=String(h),$){var T=u-E.length;if(T>0){var w=new Array(T+1).join("0");h<0?E="-"+w+E.slice(1):E=w+E}}if(x+E.length>n)break;i.push(E),x+=E.length}return i}function dr(r,e,t,n,s,i,o){if(s>n)return[r];for(var a=[""],u=0,c=!1,f=!0;;){let L=bs("{","}",r);if(!L)return gn(a,r,[""],e,t,c);let P=L.pre;if(/\$$/.test(P)){if(a=gn(a,P+"{"+L.body+"}",[""],e,t,c&&!L.post.length),f=!1,!L.post.length)break;r=L.post;continue}var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(L.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(L.body),x=p||$,h=L.body.indexOf(",")>=0;if(!x&&!h){if(u<i&&L.post.match(/,(?!,).*\}/)){u++,r=L.pre+"{"+L.body+fr+L.post,o=!0;continue}return gn(a,P+"{"+L.body+"}"+L.post,[""],e,t,c)}f&&(c=o&&!x,f=!1);var E;if(x)E=Ca(L.body,$,e,t);else{var T=ba(L.body);if(T.length===1&&T[0]!==void 0&&(T=dr(T[0],e,t,n,s+1,i,!1).map(Sa),T.length===1)){if(a=gn(a,P+T[0],[""],e,t,c&&!L.post.length),!L.post.length)break;r=L.post;continue}for(var w=c&&!L.post.length&&!P,C=0;w&&C<a.length;C++)a[C]&&(w=!1);E=[];var I=0;e:for(var A=0;A<T.length;A++)for(var g=dr(T[A],e,t,n,s+1,i,!1),S=0;S<g.length;S++){var R=g[S];if(!(w&&!R)){if(E.length>=e||I+R.length>t)break e;E.push(R),I+=R.length}}}if(a=gn(a,P,E,e,t,c&&!L.post.length),!L.post.length)break;r=L.post}return a}});var li=Ee((Hb,ai)=>{ai.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function f(p,$){try{var x=a[p]($),h=x.value}catch(E){c(E);return}if(x.done)u(h);else return s.default.resolve(h).then(function(E){f("next",E)},function(E){f("throw",E)})}return f("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}e.MessageError=n;class s extends n{constructor(c,f,p){super(c,f),this.process=p}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.type,et=Ie.onFresh||at,Le=Ie.onDone||at;if(fe.has(se.toLowerCase())?G.verbose(`The case-insensitive file ${se} shouldn't be copied twice in one bulk copy`):fe.add(se.toLowerCase()),fn==="symlink"){yield Ae((l||d()).default.dirname(se)),et(),ze.symlink.push({dest:se,linkname:be}),Le();return}if(z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Re=yield we(be),Lt;Re.isDirectory()&&(Lt=yield Pe(be));let Ye;try{Ye=yield we(se)}catch(Ve){if(Ve.code!=="ENOENT")throw Ve}if(Ye){let Ve=Re.isSymbolicLink()&&Ye.isSymbolicLink(),Rt=Re.isDirectory()&&Ye.isDirectory(),vt=Re.isFile()&&Ye.isFile();if(vt&&ve.has(se)){Le(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Re.size===Ye.size&&(0,(W||Z()).fileDatesEqual)(Re.mtime,Ye.mtime)){Le(),G.verbose(G.lang("verboseFileSkip",be,se,Re.size,+Re.mtime));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){Le(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Lt,"src files not initialised");for(var mt=Me,kt=Array.isArray(mt),tt=0,mt=kt?mt:mt[Symbol.iterator]();;){var en;if(kt){if(tt>=mt.length)break;en=mt[tt++]}else{if(tt=mt.next(),tt.done)break;en=tt.value}let Mt=en;if(Lt.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var gt=yield Pe(At),Pt=Array.isArray(gt),nt=0,gt=Pt?gt:gt[Symbol.iterator]();;){var tn;if(Pt){if(nt>=gt.length)break;tn=gt[nt++]}else{if(nt=gt.next(),nt.done)break;tn=nt.value}let er=tn;U.add((l||d()).default.join(At,er))}}}}}if(Ye&&Ye.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(se),Ye=null),Re.isSymbolicLink()){et();let Ve=yield pe(be);ze.symlink.push({dest:se,linkname:Ve}),Le()}else if(Re.isDirectory()){Ye||(G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se));let Ve=se.split((l||d()).default.sep);for(;Ve.length;)fe.add(Ve.join((l||d()).default.sep).toLowerCase()),Ve.pop();qt(Lt,"src files not initialised");let Rt=Lt.length;Rt||Le();for(var yt=Lt,It=Array.isArray(yt),rt=0,yt=It?yt:yt[Symbol.iterator]();;){var Ge;if(It){if(rt>=yt.length)break;Ge=yt[rt++]}else{if(rt=yt.next(),rt.done)break;Ge=rt.value}let vt=Ge;V.push({dest:(l||d()).default.join(se,vt),onFresh:et,onDone:(function(Me){function Mt(){return Me.apply(this,arguments)}return Mt.toString=function(){return Me.toString()},Mt})(function(){--Rt===0&&Le()}),src:(l||d()).default.join(be,vt)})}}else if(Re.isFile())et(),ze.file.push({src:be,dest:se,atime:Re.atime,mtime:Re.mtime,mode:Re.mode}),Le();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone;ue.onDone=function(){z.onProgress(ue.dest),Ie&&Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Gt;if(dn){if(ht>=Xe.length)break;Gt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Gt=ht.value}let ue=Gt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.onFresh||at,et=Ie.onDone||at;if(fe.has(se.toLowerCase())){et();return}if(fe.add(se.toLowerCase()),z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Le=yield we(be),Re;Le.isDirectory()&&(Re=yield Pe(be));let Lt=yield ft(se);if(Lt){let Ge=yield we(se),Ve=Le.isSymbolicLink()&&Ge.isSymbolicLink(),Rt=Le.isDirectory()&&Ge.isDirectory(),vt=Le.isFile()&&Ge.isFile();if(Le.mode!==Ge.mode)try{yield Ne(se,Le.mode)}catch(Me){G.verbose(Me)}if(vt&&ve.has(se)){et(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Le.ino!==null&&Le.ino===Ge.ino){et(),G.verbose(G.lang("verboseFileSkip",be,se,Le.ino));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){et(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Re,"src files not initialised");for(var tt=Me,Ye=Array.isArray(tt),kt=0,tt=Ye?tt:tt[Symbol.iterator]();;){var mt;if(Ye){if(kt>=tt.length)break;mt=tt[kt++]}else{if(kt=tt.next(),kt.done)break;mt=kt.value}let Mt=mt;if(Re.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var nt=yield Pe(At),en=Array.isArray(nt),Pt=0,nt=en?nt:nt[Symbol.iterator]();;){var gt;if(en){if(Pt>=nt.length)break;gt=nt[Pt++]}else{if(Pt=nt.next(),Pt.done)break;gt=Pt.value}let er=gt;U.add((l||d()).default.join(At,er))}}}}}if(Le.isSymbolicLink()){fn();let Ge=yield pe(be);ze.symlink.push({dest:se,linkname:Ge}),et()}else if(Le.isDirectory()){G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se);let Ge=se.split((l||d()).default.sep);for(;Ge.length;)fe.add(Ge.join((l||d()).default.sep).toLowerCase()),Ge.pop();qt(Re,"src files not initialised");let Ve=Re.length;Ve||et();for(var rt=Re,tn=Array.isArray(rt),It=0,rt=tn?rt:rt[Symbol.iterator]();;){var yt;if(tn){if(It>=rt.length)break;yt=rt[It++]}else{if(It=rt.next(),It.done)break;yt=It.value}let Rt=yt;V.push({onFresh:fn,src:(l||d()).default.join(be,Rt),dest:(l||d()).default.join(se,Rt),onDone:(function(vt){function Me(){return vt.apply(this,arguments)}return Me.toString=function(){return vt.toString()},Me})(function(){--Ve===0&&et()})})}}else if(Le.isFile())fn(),ze.link.push({src:be,dest:se,removeDest:Lt}),et();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone||at;ue.onDone=function(){z.onProgress(ue.dest),Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Gt;if(dn){if(ht>=Xe.length)break;Gt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Gt=ht.value}let ue=Gt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,ignoreBasenames:U&&U.ignoreBasenames||[],artifactFiles:U&&U.artifactFiles||[]},re=yield i(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.file,fe=new Map;yield(b||O()).queue(ve,(()=>{var oe=(0,(n||s()).default)(function*(ae){let _e;for(;_e=fe.get(ae.dest);)yield _e;z.verbose(z.lang("verboseFileCopy",ae.src,ae.dest));let ze=(0,(W||Z()).copyFile)(ae,function(){return fe.delete(ae.dest)});return fe.set(ae.dest,ze),G.onProgress(ae.dest),ze});return function(ae){return oe.apply(this,arguments)}})(),Wt);let he=re.symlink;yield(b||O()).queue(he,function(oe){let ae=(l||d()).default.resolve((l||d()).default.dirname(oe.dest),oe.linkname);return z.verbose(z.lang("verboseFileSymlink",oe.dest,ae)),x(ae,oe.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,artifactFiles:U&&U.artifactFiles||[],ignoreBasenames:[]},re=yield o(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.link;yield(b||O()).queue(ve,(()=>{var he=(0,(n||s()).default)(function*(oe){z.verbose(z.lang("verboseFileLink",oe.src,oe.dest)),oe.removeDest&&(yield(0,(W||Z()).unlink)(oe.dest)),yield Cn(oe.src,oe.dest)});return function(oe){return he.apply(this,arguments)}})(),Wt);let fe=re.symlink;yield(b||O()).queue(fe,function(he){let oe=(l||d()).default.resolve((l||d()).default.dirname(he.dest),he.linkname);return z.verbose(z.lang("verboseFileSymlink",he.dest,oe)),x(oe,he.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;if(yield ft(ve))return _n(ve)}return null});return function(z){return Y.apply(this,arguments)}})(),f=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(V){return(yield p(V)).object});return function(z){return Y.apply(this,arguments)}})(),p=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield _n(V);try{return{object:(0,(M||j()).default)(JSON.parse(un(z))),content:z}}catch(U){throw U.message=`${V}: ${U.message}`,U}});return function(z){return Y.apply(this,arguments)}})(),$=e.find=(()=>{var Y=(0,(n||s()).default)(function*(V,z){let U=z.split((l||d()).default.sep);for(;U.length;){let G=U.concat(V).join((l||d()).default.sep);if(yield ft(G))return G;U.pop()}return!1});return function(z,U){return Y.apply(this,arguments)}})(),x=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(V,z){try{if((yield we(z)).isSymbolicLink()&&(yield Be(z))===V)return}catch(U){if(U.code!=="ENOENT")throw U}if(yield(0,(W||Z()).unlink)(z),process.platform==="win32")yield Rn(V,z,"junction");else{let U;try{U=(l||d()).default.relative((S||R()).default.realpathSync((l||d()).default.dirname(z)),(S||R()).default.realpathSync(V))}catch(G){if(G.code!=="ENOENT")throw G;U=(l||d()).default.relative((l||d()).default.dirname(z),V)}yield Rn(U||".",z)}});return function(z,U){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U=new Set){let G=[],re=yield Pe(V);U.size&&(re=re.filter(function(ae){return!U.has(ae)}));for(var he=re,ve=Array.isArray(he),fe=0,he=ve?he:he[Symbol.iterator]();;){var oe;if(ve){if(fe>=he.length)break;oe=he[fe++]}else{if(fe=he.next(),fe.done)break;oe=fe.value}let ae=oe,_e=z?(l||d()).default.join(z,ae):ae,ze=(l||d()).default.join(V,ae),wt=yield we(ze);G.push({relative:_e,basename:ae,absolute:ze,mtime:+wt.mtime}),wt.isDirectory()&&(G=G.concat(yield h(ze,_e,U)))}return G});return function(z,U){return Y.apply(this,arguments)}})(),E=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield we(V),U=z.size,G=z.blksize;return Math.ceil(U/G)*G});return function(z){return Y.apply(this,arguments)}})(),T=(()=>{var Y=(0,(n||s()).default)(function*(V){if(!(yield ft(V)))return;let z=yield Q(V);for(let U=0;U<z.length;++U){if(z[U]===Po)return`\r
|
|
4
|
+
"use strict";var Mo=Object.create;var pn=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Bo=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var Yr=r=>{throw TypeError(r)};var Uo=(r,e,t)=>e in r?pn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Ee=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Qr=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},Zr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ho(e))!jo.call(r,s)&&s!==t&&pn(r,s,{get:()=>e[s],enumerable:!(n=Fo(e,s))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?Mo(Bo(r)):{},Zr(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r)),zo=r=>Zr(pn({},"__esModule",{value:!0}),r);var Te=(r,e,t)=>Uo(r,typeof e!="symbol"?e+"":e,t),tr=(r,e,t)=>e.has(r)||Yr("Cannot "+t);var B=(r,e,t)=>(tr(r,e,"read from private field"),t?t.call(r):e.get(r)),Fe=(r,e,t)=>e.has(r)?Yr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),de=(r,e,t,n)=>(tr(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),le=(r,e,t)=>(tr(r,e,"access private method"),t);var ts=Ee((Gu,hn)=>{"use strict";var Wo=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Xo=typeof process<"u"&&process.platform==="win32",qr=typeof process<"u"&&process.platform==="linux",nr={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},_r=Object.assign({},nr,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),es=Object.assign({},nr,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:qr?"\u25B8":"\u276F",pointerSmall:qr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});hn.exports=Xo&&!Wo?_r:es;Reflect.defineProperty(hn.exports,"common",{enumerable:!1,value:nr});Reflect.defineProperty(hn.exports,"windows",{enumerable:!1,value:_r});Reflect.defineProperty(hn.exports,"other",{enumerable:!1,value:es})});var rs=Ee((Ju,rr)=>{"use strict";var Vo=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Go=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Jo=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,ns=()=>{let r={enabled:Jo(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,f)=>{c.includes(a)&&(c=c.replace(u,a+o));let p=o+c+a;return f?p.replace(/\r*\n/g,`${a}$&${o}`):p},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
|
|
5
|
+
`),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=f=>n(f,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Go,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Vo(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=ts(),r.define=s,r};rr.exports=ns();rr.exports.create=ns});var vs=Ee((Id,ys)=>{"use strict";ys.exports=ms;function ms(r,e,t){r instanceof RegExp&&(r=hs(r,t)),e instanceof RegExp&&(e=hs(e,t));var n=gs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function hs(r,e){var t=e.match(r);return t?t[0]:null}ms.range=gs;function gs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;f>=0&&!a;)f==u?(n.push(f),u=t.indexOf(r,f+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var Cs=Ee((Md,Ts)=>{var bs=vs();Ts.exports=Ea;var Es="\0SLASH"+Math.random()+"\0",Ss="\0OPEN"+Math.random()+"\0",fr="\0CLOSE"+Math.random()+"\0",$s="\0COMMA"+Math.random()+"\0",xs="\0PERIOD"+Math.random()+"\0",pa=1e5,ha=4e6,ma=1e3,ga=1e3;function cr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ya(r){return r.split("\\\\").join(Es).split("\\{").join(Ss).split("\\}").join(fr).split("\\,").join($s).split("\\.").join(xs)}function va(r){return r.split(Es).join("\\").split(Ss).join("{").split(fr).join("}").split($s).join(",").split(xs).join(".")}function ur(r,e){for(var t=0;t<e.length;t++)r.push(e[t])}function ba(r){for(var e=[],t="";;){var n=bs("{","}",r);if(!n){var s=r.split(",");return s[0]=t+s[0],ur(e,s),e}var i=n.pre,o=n.body,a=n.post,u=i.split(",");if(u[0]=t+u[0],u[u.length-1]+="{"+o+"}",!a.length)return ur(e,u),e;t=u.pop(),ur(e,u),r=a}}function Ea(r,e){if(!r)return[];e=e||{};var t=e.max==null?pa:e.max,n=e.maxLength==null?ha:e.maxLength,s=e.maxDepth==null?ma:e.maxDepth,i=e.maxRewrites==null?ga:e.maxRewrites;return r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dr(ya(r),t,n,s,0,i,!0).map(va)}function Sa(r){return"{"+r+"}"}function $a(r){return/^-?0\d/.test(r)}function xa(r,e){return r<=e}function Ta(r,e){return r>=e}function gn(r,e,t,n,s,i){for(var o=[],a=0,u=0;u<r.length;u++)for(var c=0;c<t.length;c++){if(o.length>=n)return o;var f=r[u]+e+t[c];if(!(i&&!f)){if(a+f.length>s)return o;o.push(f),a+=f.length}}return o}function Ca(r,e,t,n){var s=r.split(/\.\./),i=[];if(s[0]===void 0||s[1]===void 0)return i;var o=cr(s[0]),a=cr(s[1]),u=Math.max(s[0].length,s[1].length),c=s.length===3&&s[2]!==void 0?Math.max(Math.abs(cr(s[2])),1):1,f=xa,p=a<o;p&&(c*=-1,f=Ta);for(var $=s.some($a),x=0,h=o;f(h,a)&&i.length<t;h+=c){var E;if(e)E=String.fromCharCode(h),E==="\\"&&(E="");else if(E=String(h),$){var T=u-E.length;if(T>0){var w=new Array(T+1).join("0");h<0?E="-"+w+E.slice(1):E=w+E}}if(x+E.length>n)break;i.push(E),x+=E.length}return i}function dr(r,e,t,n,s,i,o){if(s>n)return[r];for(var a=[""],u=0,c=!1,f=!0;;){let L=bs("{","}",r);if(!L)return gn(a,r,[""],e,t,c);let P=L.pre;if(/\$$/.test(P)){if(a=gn(a,P+"{"+L.body+"}",[""],e,t,c&&!L.post.length),f=!1,!L.post.length)break;r=L.post;continue}var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(L.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(L.body),x=p||$,h=L.body.indexOf(",")>=0;if(!x&&!h){if(u<i&&L.post.match(/,(?!,).*\}/)){u++,r=L.pre+"{"+L.body+fr+L.post,o=!0;continue}return gn(a,P+"{"+L.body+"}"+L.post,[""],e,t,c)}f&&(c=o&&!x,f=!1);var E;if(x)E=Ca(L.body,$,e,t);else{var T=ba(L.body);if(T.length===1&&T[0]!==void 0&&(T=dr(T[0],e,t,n,s+1,i,!1).map(Sa),T.length===1)){if(a=gn(a,P+T[0],[""],e,t,c&&!L.post.length),!L.post.length)break;r=L.post;continue}for(var w=c&&!L.post.length&&!P,C=0;w&&C<a.length;C++)a[C]&&(w=!1);E=[];var I=0;e:for(var A=0;A<T.length;A++)for(var g=dr(T[A],e,t,n,s+1,i,!1),S=0;S<g.length;S++){var R=g[S];if(!(w&&!R)){if(E.length>=e||I+R.length>t)break e;E.push(R),I+=R.length}}}if(a=gn(a,P,E,e,t,c&&!L.post.length),!L.post.length)break;r=L.post}return a}});var li=Ee((Hb,ai)=>{ai.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function f(p,$){try{var x=a[p]($),h=x.value}catch(E){c(E);return}if(x.done)u(h);else return s.default.resolve(h).then(function(E){f("next",E)},function(E){f("throw",E)})}return f("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}e.MessageError=n;class s extends n{constructor(c,f,p){super(c,f),this.process=p}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(G,z,U,V){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.type,et=Ie.onFresh||at,Le=Ie.onDone||at;if(fe.has(se.toLowerCase())?V.verbose(`The case-insensitive file ${se} shouldn't be copied twice in one bulk copy`):fe.add(se.toLowerCase()),fn==="symlink"){yield Ae((l||d()).default.dirname(se)),et(),ze.symlink.push({dest:se,linkname:be}),Le();return}if(z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Re=yield we(be),Lt;Re.isDirectory()&&(Lt=yield Pe(be));let Ye;try{Ye=yield we(se)}catch(Ge){if(Ge.code!=="ENOENT")throw Ge}if(Ye){let Ge=Re.isSymbolicLink()&&Ye.isSymbolicLink(),Rt=Re.isDirectory()&&Ye.isDirectory(),vt=Re.isFile()&&Ye.isFile();if(vt&&ve.has(se)){Le(),V.verbose(V.lang("verboseFileSkipArtifact",be));return}if(vt&&Re.size===Ye.size&&(0,(W||Z()).fileDatesEqual)(Re.mtime,Ye.mtime)){Le(),V.verbose(V.lang("verboseFileSkip",be,se,Re.size,+Re.mtime));return}if(Ge){let Me=yield pe(be);if(Me===(yield pe(se))){Le(),V.verbose(V.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Lt,"src files not initialised");for(var mt=Me,kt=Array.isArray(mt),tt=0,mt=kt?mt:mt[Symbol.iterator]();;){var en;if(kt){if(tt>=mt.length)break;en=mt[tt++]}else{if(tt=mt.next(),tt.done)break;en=tt.value}let Mt=en;if(Lt.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var gt=yield Pe(At),Pt=Array.isArray(gt),nt=0,gt=Pt?gt:gt[Symbol.iterator]();;){var tn;if(Pt){if(nt>=gt.length)break;tn=gt[nt++]}else{if(nt=gt.next(),nt.done)break;tn=nt.value}let er=tn;U.add((l||d()).default.join(At,er))}}}}}if(Ye&&Ye.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(se),Ye=null),Re.isSymbolicLink()){et();let Ge=yield pe(be);ze.symlink.push({dest:se,linkname:Ge}),Le()}else if(Re.isDirectory()){Ye||(V.verbose(V.lang("verboseFileFolder",se)),yield Ae(se));let Ge=se.split((l||d()).default.sep);for(;Ge.length;)fe.add(Ge.join((l||d()).default.sep).toLowerCase()),Ge.pop();qt(Lt,"src files not initialised");let Rt=Lt.length;Rt||Le();for(var yt=Lt,It=Array.isArray(yt),rt=0,yt=It?yt:yt[Symbol.iterator]();;){var Ve;if(It){if(rt>=yt.length)break;Ve=yt[rt++]}else{if(rt=yt.next(),rt.done)break;Ve=rt.value}let vt=Ve;G.push({dest:(l||d()).default.join(se,vt),onFresh:et,onDone:(function(Me){function Mt(){return Me.apply(this,arguments)}return Mt.toString=function(){return Me.toString()},Mt})(function(){--Rt===0&&Le()}),src:(l||d()).default.join(be,vt)})}}else if(Re.isFile())et(),ze.file.push({src:be,dest:se,atime:Re.atime,mtime:Re.mtime,mode:Re.mode}),Le();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=G,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone;ue.onDone=function(){z.onProgress(ue.dest),Ie&&Ie()}}z.onStart(G.length);let ze={file:[],symlink:[],link:[]};for(;G.length;){let ue=G.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Vt;if(dn){if(ht>=Xe.length)break;Vt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Vt=ht.value}let ue=Vt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,V,re){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(G,z,U,V){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.onFresh||at,et=Ie.onDone||at;if(fe.has(se.toLowerCase())){et();return}if(fe.add(se.toLowerCase()),z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Le=yield we(be),Re;Le.isDirectory()&&(Re=yield Pe(be));let Lt=yield ft(se);if(Lt){let Ve=yield we(se),Ge=Le.isSymbolicLink()&&Ve.isSymbolicLink(),Rt=Le.isDirectory()&&Ve.isDirectory(),vt=Le.isFile()&&Ve.isFile();if(Le.mode!==Ve.mode)try{yield Ne(se,Le.mode)}catch(Me){V.verbose(Me)}if(vt&&ve.has(se)){et(),V.verbose(V.lang("verboseFileSkipArtifact",be));return}if(vt&&Le.ino!==null&&Le.ino===Ve.ino){et(),V.verbose(V.lang("verboseFileSkip",be,se,Le.ino));return}if(Ge){let Me=yield pe(be);if(Me===(yield pe(se))){et(),V.verbose(V.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);qt(Re,"src files not initialised");for(var tt=Me,Ye=Array.isArray(tt),kt=0,tt=Ye?tt:tt[Symbol.iterator]();;){var mt;if(Ye){if(kt>=tt.length)break;mt=tt[kt++]}else{if(kt=tt.next(),kt.done)break;mt=kt.value}let Mt=mt;if(Re.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var nt=yield Pe(At),en=Array.isArray(nt),Pt=0,nt=en?nt:nt[Symbol.iterator]();;){var gt;if(en){if(Pt>=nt.length)break;gt=nt[Pt++]}else{if(Pt=nt.next(),Pt.done)break;gt=Pt.value}let er=gt;U.add((l||d()).default.join(At,er))}}}}}if(Le.isSymbolicLink()){fn();let Ve=yield pe(be);ze.symlink.push({dest:se,linkname:Ve}),et()}else if(Le.isDirectory()){V.verbose(V.lang("verboseFileFolder",se)),yield Ae(se);let Ve=se.split((l||d()).default.sep);for(;Ve.length;)fe.add(Ve.join((l||d()).default.sep).toLowerCase()),Ve.pop();qt(Re,"src files not initialised");let Ge=Re.length;Ge||et();for(var rt=Re,tn=Array.isArray(rt),It=0,rt=tn?rt:rt[Symbol.iterator]();;){var yt;if(tn){if(It>=rt.length)break;yt=rt[It++]}else{if(It=rt.next(),It.done)break;yt=It.value}let Rt=yt;G.push({onFresh:fn,src:(l||d()).default.join(be,Rt),dest:(l||d()).default.join(se,Rt),onDone:(function(vt){function Me(){return vt.apply(this,arguments)}return Me.toString=function(){return vt.toString()},Me})(function(){--Ge===0&&et()})})}}else if(Le.isFile())fn(),ze.link.push({src:be,dest:se,removeDest:Lt}),et();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=G,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone||at;ue.onDone=function(){z.onProgress(ue.dest),Ie()}}z.onStart(G.length);let ze={file:[],symlink:[],link:[]};for(;G.length;){let ue=G.splice(0,Wt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Xt;if(wt){if(pt>=We.length)break;Xt=We[pt++]}else{if(pt=We.next(),pt.done)break;Xt=pt.value}let ue=Xt;U.has(ue)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Vt;if(dn){if(ht>=Xe.length)break;Vt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Vt=ht.value}let ue=Vt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,V,re){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(G,z,U){let V={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,ignoreBasenames:U&&U.ignoreBasenames||[],artifactFiles:U&&U.artifactFiles||[]},re=yield i(G,V,V.possibleExtraneous,z);V.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.file,fe=new Map;yield(b||O()).queue(ve,(()=>{var oe=(0,(n||s()).default)(function*(ae){let _e;for(;_e=fe.get(ae.dest);)yield _e;z.verbose(z.lang("verboseFileCopy",ae.src,ae.dest));let ze=(0,(W||Z()).copyFile)(ae,function(){return fe.delete(ae.dest)});return fe.set(ae.dest,ze),V.onProgress(ae.dest),ze});return function(ae){return oe.apply(this,arguments)}})(),Wt);let he=re.symlink;yield(b||O()).queue(he,function(oe){let ae=(l||d()).default.resolve((l||d()).default.dirname(oe.dest),oe.linkname);return z.verbose(z.lang("verboseFileSymlink",oe.dest,ae)),x(ae,oe.dest)})});return function(z,U,V){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(G,z,U){let V={onStart:U&&U.onStart||at,onProgress:U&&U.onProgress||at,possibleExtraneous:U?U.possibleExtraneous:new Set,artifactFiles:U&&U.artifactFiles||[],ignoreBasenames:[]},re=yield o(G,V,V.possibleExtraneous,z);V.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.link;yield(b||O()).queue(ve,(()=>{var he=(0,(n||s()).default)(function*(oe){z.verbose(z.lang("verboseFileLink",oe.src,oe.dest)),oe.removeDest&&(yield(0,(W||Z()).unlink)(oe.dest)),yield Cn(oe.src,oe.dest)});return function(oe){return he.apply(this,arguments)}})(),Wt);let fe=re.symlink;yield(b||O()).queue(fe,function(he){let oe=(l||d()).default.resolve((l||d()).default.dirname(he.dest),he.linkname);return z.verbose(z.lang("verboseFileSymlink",he.dest,oe)),x(oe,he.dest)})});return function(z,U,V){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(G){for(var V=G,z=Array.isArray(V),U=0,V=z?V:V[Symbol.iterator]();;){var re;if(z){if(U>=V.length)break;re=V[U++]}else{if(U=V.next(),U.done)break;re=U.value}let ve=re;if(yield ft(ve))return _n(ve)}return null});return function(z){return Y.apply(this,arguments)}})(),f=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(G){return(yield p(G)).object});return function(z){return Y.apply(this,arguments)}})(),p=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(G){let z=yield _n(G);try{return{object:(0,(M||j()).default)(JSON.parse(un(z))),content:z}}catch(U){throw U.message=`${G}: ${U.message}`,U}});return function(z){return Y.apply(this,arguments)}})(),$=e.find=(()=>{var Y=(0,(n||s()).default)(function*(G,z){let U=z.split((l||d()).default.sep);for(;U.length;){let V=U.concat(G).join((l||d()).default.sep);if(yield ft(V))return V;U.pop()}return!1});return function(z,U){return Y.apply(this,arguments)}})(),x=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(G,z){try{if((yield we(z)).isSymbolicLink()&&(yield Be(z))===G)return}catch(U){if(U.code!=="ENOENT")throw U}if(yield(0,(W||Z()).unlink)(z),process.platform==="win32")yield Rn(G,z,"junction");else{let U;try{U=(l||d()).default.relative((S||R()).default.realpathSync((l||d()).default.dirname(z)),(S||R()).default.realpathSync(G))}catch(V){if(V.code!=="ENOENT")throw V;U=(l||d()).default.relative((l||d()).default.dirname(z),G)}yield Rn(U||".",z)}});return function(z,U){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(G,z,U=new Set){let V=[],re=yield Pe(G);U.size&&(re=re.filter(function(ae){return!U.has(ae)}));for(var he=re,ve=Array.isArray(he),fe=0,he=ve?he:he[Symbol.iterator]();;){var oe;if(ve){if(fe>=he.length)break;oe=he[fe++]}else{if(fe=he.next(),fe.done)break;oe=fe.value}let ae=oe,_e=z?(l||d()).default.join(z,ae):ae,ze=(l||d()).default.join(G,ae),wt=yield we(ze);V.push({relative:_e,basename:ae,absolute:ze,mtime:+wt.mtime}),wt.isDirectory()&&(V=V.concat(yield h(ze,_e,U)))}return V});return function(z,U){return Y.apply(this,arguments)}})(),E=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(G){let z=yield we(G),U=z.size,V=z.blksize;return Math.ceil(U/V)*V});return function(z){return Y.apply(this,arguments)}})(),T=(()=>{var Y=(0,(n||s()).default)(function*(G){if(!(yield ft(G)))return;let z=yield Q(G);for(let U=0;U<z.length;++U){if(z[U]===Po)return`\r
|
|
6
6
|
`;if(z[U]===Io)return`
|
|
7
|
-
`}});return function(z){return Y.apply(this,arguments)}})(),w=e.writeFilePreservingEol=(()=>{var Y=(0,(n||s()).default)(function*(
|
|
8
|
-
`&&(z=z.replace(/\n/g,U)),yield ye(
|
|
7
|
+
`}});return function(z){return Y.apply(this,arguments)}})(),w=e.writeFilePreservingEol=(()=>{var Y=(0,(n||s()).default)(function*(G,z){let U=(yield T(G))||(N||y()).default.EOL;U!==`
|
|
8
|
+
`&&(z=z.replace(/\n/g,U)),yield ye(G,z)});return function(z,U){return Y.apply(this,arguments)}})(),C=e.hardlinksWork=(()=>{var Y=(0,(n||s()).default)(function*(G){let z="test-file"+Math.random(),U=(l||d()).default.join(G,z),V=(l||d()).default.join(G,z+"-link");try{yield ye(U,"test"),yield Cn(U,V)}catch{return!1}finally{yield(0,(W||Z()).unlink)(U),yield(0,(W||Z()).unlink)(V)}return!0});return function(z){return Y.apply(this,arguments)}})(),I=e.makeTempDir=(()=>{var Y=(0,(n||s()).default)(function*(G){let z=(l||d()).default.join((N||y()).default.tmpdir(),`yarn-${G||""}-${Date.now()}-${Math.random()}`);return yield(0,(W||Z()).unlink)(z),yield Ae(z),z});return function(z){return Y.apply(this,arguments)}})(),A=e.readFirstAvailableStream=(()=>{var Y=(0,(n||s()).default)(function*(G){for(var V=G,z=Array.isArray(V),U=0,V=z?V:V[Symbol.iterator]();;){var re;if(z){if(U>=V.length)break;re=V[U++]}else{if(U=V.next(),U.done)break;re=U.value}let ve=re;try{let fe=yield _(ve,"r");return(S||R()).default.createReadStream(ve,{fd:fe})}catch{}}return null});return function(z){return Y.apply(this,arguments)}})(),g=e.getFirstSuitableFolder=(()=>{var Y=(0,(n||s()).default)(function*(G,z=X.W_OK|X.X_OK){let U={skipped:[],folder:null};for(var ve=G,V=Array.isArray(ve),re=0,ve=V?ve:ve[Symbol.iterator]();;){var fe;if(V){if(re>=ve.length)break;fe=ve[re++]}else{if(re=ve.next(),re.done)break;fe=re.value}let he=fe;try{return yield Ae(he),yield Ne(he,z),U.folder=he,U}catch(oe){U.skipped.push({error:oe,folder:he})}}return U});return function(z){return Y.apply(this,arguments)}})();e.copy=An,e.readFile=_n,e.readFileRaw=ko,e.normalizeOS=Kr;var S;function R(){return S=F(t(3))}var L;function P(){return L=F(t(75))}var N;function y(){return N=F(t(36))}var l;function d(){return l=F(t(0))}var m;function v(){return m=F(t(84))}var b;function O(){return b=H(t(40))}var D;function k(){return D=t(40)}var M;function j(){return M=F(t(20))}var W;function Z(){return W=t(164)}function H(Y){if(Y&&Y.__esModule)return Y;var G={};if(Y!=null)for(var z in Y)Object.prototype.hasOwnProperty.call(Y,z)&&(G[z]=Y[z]);return G.default=Y,G}function F(Y){return Y&&Y.__esModule?Y:{default:Y}}let X=e.constants=typeof(S||R()).default.constants<"u"?(S||R()).default.constants:{R_OK:(S||R()).default.R_OK,W_OK:(S||R()).default.W_OK,X_OK:(S||R()).default.X_OK},q=e.lockQueue=new(m||v()).default("fs lock"),Q=e.readFileBuffer=(0,(D||k()).promisify)((S||R()).default.readFile),_=e.open=(0,(D||k()).promisify)((S||R()).default.open),ye=e.writeFile=(0,(D||k()).promisify)((S||R()).default.writeFile),pe=e.readlink=(0,(D||k()).promisify)((S||R()).default.readlink),Be=e.realpath=(0,(D||k()).promisify)((S||R()).default.realpath),Pe=e.readdir=(0,(D||k()).promisify)((S||R()).default.readdir),dt=e.rename=(0,(D||k()).promisify)((S||R()).default.rename),Ne=e.access=(0,(D||k()).promisify)((S||R()).default.access),De=e.stat=(0,(D||k()).promisify)((S||R()).default.stat),Ae=e.mkdirp=(0,(D||k()).promisify)(t(116)),ft=e.exists=(0,(D||k()).promisify)((S||R()).default.exists,!0),we=e.lstat=(0,(D||k()).promisify)((S||R()).default.lstat),Ct=e.chmod=(0,(D||k()).promisify)((S||R()).default.chmod),Cn=e.link=(0,(D||k()).promisify)((S||R()).default.link),Ln=e.glob=(0,(D||k()).promisify)((L||P()).default);e.unlink=(W||Z()).unlink;let Wt=(S||R()).default.copyFile?128:4,Rn=(0,(D||k()).promisify)((S||R()).default.symlink),qt=t(7),un=t(122),at=()=>{};function An(Y,G,z){return a([{src:Y,dest:G}],z)}function _t(Y,G){return new Promise((z,U)=>{(S||R()).default.readFile(Y,G,function(V,re){V?U(V):z(re)})})}function _n(Y){return _t(Y,"utf8").then(Kr)}function ko(Y){return _t(Y,"binary")}function Kr(Y){return Y.replace(/\r\n/g,`
|
|
9
9
|
`)}let Po=13,Io=10}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPathKey=Ne;let n=t(36),s=t(0),i=t(45).default;var o=t(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=t(227),p=e.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],$=e.RESOLUTIONS="resolutions",x=e.MANIFEST_FIELDS=[$,...p],h=e.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",E=e.YARN_REGISTRY="https://registry.yarnpkg.com",T=e.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",w=e.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",C=e.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=e.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",A=e.CACHE_VERSION=2,g=e.LOCKFILE_VERSION=1,S=e.NETWORK_CONCURRENCY=8,R=e.NETWORK_TIMEOUT=30*1e3,L=e.CHILD_CONCURRENCY=5,P=e.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function N(){let Ae=[a()];return process.getuid&&Ae.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),Ae.push(s.join(n.tmpdir(),".yarn-cache")),Ae}let y=e.PREFERRED_MODULE_CACHE_DIRECTORIES=N(),l=e.CONFIG_DIRECTORY=u(),d=e.DATA_DIRECTORY=c(),m=e.LINK_REGISTRY_DIRECTORY=s.join(d,"link"),v=e.GLOBAL_MODULE_DIRECTORY=s.join(d,"global"),b=e.NODE_BIN_PATH=process.execPath,O=e.YARN_BIN_PATH=D();function D(){return f?__filename:s.join(__dirname,"..","bin","yarn.js")}let k=e.NODE_MODULES_FOLDER="node_modules",M=e.NODE_PACKAGE_JSON="package.json",j=e.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,W=e.FALLBACK_GLOBAL_PREFIX=s.join(i,".yarn"),Z=e.META_FOLDER=".yarn-meta",H=e.INTEGRITY_FILENAME=".yarn-integrity",F=e.LOCKFILE_FILENAME="yarn.lock",X=e.METADATA_FILENAME=".yarn-metadata.json",q=e.TARBALL_FILENAME=".yarn-tarball.tgz",Q=e.CLEAN_FILENAME=".yarnclean",_=e.NPM_LOCK_FILENAME="package-lock.json",ye=e.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",pe=e.DEFAULT_INDENT=" ",Be=e.SINGLE_INSTANCE_PORT=31997,Pe=e.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",dt=e.ENV_PATH_KEY=Ne(process.platform,process.env);function Ne(Ae,ft){let we="PATH";if(Ae==="win32"){we="Path";for(let Ct in ft)Ct.toLowerCase()==="path"&&(we=Ct)}return we}let De=e.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}}),(function(r,e,t){"use strict";var n=process.env.NODE_ENV,s=function(i,o,a,u,c,f,p,$){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!i){var x;if(o===void 0)x=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[a,u,c,f,p,$],E=0;x=new Error(o.replace(/%s/g,function(){return h[E++]})),x.name="Invariant Violation"}throw x.framesToPop=1,x}};r.exports=s}),,(function(r,e){r.exports=require("crypto")}),,(function(r,e){var t=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortAlpha=s,e.entries=i,e.removePrefix=o,e.removeSuffix=a,e.addSuffix=u,e.hyphenate=c,e.camelCase=f,e.compareSortedArrays=p,e.sleep=$;let n=t(176);function s(x,h){let E=Math.min(x.length,h.length);for(let T=0;T<E;T++){let w=x.charCodeAt(T),C=h.charCodeAt(T);if(w!==C)return w-C}return x.length-h.length}function i(x){let h=[];if(x)for(let E in x)h.push([E,x[E]]);return h}function o(x,h){return x.startsWith(h)&&(x=x.slice(h.length)),x}function a(x,h){return x.endsWith(h)?x.slice(0,-h.length):x}function u(x,h){return x.endsWith(h)?x:x+h}function c(x){return x.replace(/[A-Z]/g,h=>"-"+h.charAt(0).toLowerCase())}function f(x){return/[A-Z]/.test(x)?null:n(x)}function p(x,h){if(x.length!==h.length)return!1;for(let E=0,T=x.length;E<T;E++)if(x[E]!==h[E])return!1;return!0}function $(x){return new Promise(h=>{setTimeout(h,x)})}}),(function(r,e,t){var n=t(107)("wks"),s=t(111),i=t(11).Symbol,o=typeof i=="function",a=r.exports=function(u){return n[u]||(n[u]=o&&i[u]||(o?i:s)("Symbol."+u))};a.store=n}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n;function s(){return n=A(t(1))}var i;function o(){return i=t(81)}Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return A(i||o()).default}});var a;function u(){return a=t(150)}Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return A(a||u()).default}}),e.implodeEntry=l,e.explodeEntry=d;var c;function f(){return c=t(12)}var p;function $(){return p=t(29)}var x;function h(){return x=A(t(81))}var E;function T(){return E=t(6)}var w;function C(){return w=I(t(5))}function I(v){if(v&&v.__esModule)return v;var b={};if(v!=null)for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(b[O]=v[O]);return b.default=v,b}function A(v){return v&&v.__esModule?v:{default:v}}let g=t(7),S=t(0),R=t(55);function L(v){return(0,(p||$()).normalizePattern)(v).name}function P(v){return v&&Object.keys(v).length?v:void 0}function N(v){return v.resolved||(v.reference&&v.hash?`${v.reference}#${v.hash}`:null)}function y(v){return v.toString().split(" ").sort().join(" ")}function l(v,b){let O=L(v),D=b.integrity?y(b.integrity):"",k={name:O===b.name?void 0:b.name,version:b.version,uid:b.uid===b.version?void 0:b.uid,resolved:b.resolved,registry:b.registry==="npm"?void 0:b.registry,dependencies:P(b.dependencies),optionalDependencies:P(b.optionalDependencies),permissions:P(b.permissions),prebuiltVariants:P(b.prebuiltVariants)};return D&&(k.integrity=D),k}function d(v,b){b.optionalDependencies=b.optionalDependencies||{},b.dependencies=b.dependencies||{},b.uid=b.uid||b.version,b.permissions=b.permissions||{},b.registry=b.registry||"npm",b.name=b.name||L(v);let O=b.integrity;return O&&O.isIntegrity&&(b.integrity=R.parse(O)),b}class m{constructor({cache:b,source:O,parseResultType:D}={}){this.source=O||"",this.cache=b,this.parseResultType=D}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let b in this.cache)if(!/^.*@(file:|http)/.test(b)&&this.cache[b]&&!this.cache[b].integrity)return!0;return!1}static fromDirectory(b,O){return(0,(n||s()).default)(function*(){let D=S.join(b,(E||T()).LOCKFILE_FILENAME),k,M="",j;return(yield(w||C()).exists(D))?(M=yield(w||C()).readFile(D),j=(0,(x||h()).default)(M,D),O&&(j.type==="merge"?O.info(O.lang("lockfileMerged")):j.type==="conflict"&&O.warn(O.lang("lockfileConflict"))),k=j.object):O&&O.info(O.lang("noLockfileFound")),new m({cache:k,source:M,parseResultType:j&&j.type})})()}getLocked(b){let O=this.cache;if(!O)return;let D=b in O&&O[b];if(typeof D=="string")return this.getLocked(D);if(D)return d(b,D),D}removePattern(b){let O=this.cache;O&&delete O[b]}getLockfile(b){let O={},D=new Map,k=Object.keys(b).sort((c||f()).sortAlpha);for(var W=k,M=Array.isArray(W),j=0,W=M?W:W[Symbol.iterator]();;){var Z;if(M){if(j>=W.length)break;Z=W[j++]}else{if(j=W.next(),j.done)break;Z=j.value}let H=Z,F=b[H],X=F._remote,q=F._reference;g(q,"Package is missing a reference"),g(X,"Package is missing a remote");let Q=N(X),_=Q&&D.get(Q);if(_){O[H]=_,!_.name&&L(H)!==F.name&&(_.name=F.name);continue}let ye=l(H,{name:F.name,version:F.version,uid:F._uid,resolved:X.resolved,integrity:X.integrity,registry:X.registry,dependencies:F.dependencies,peerDependencies:F.peerDependencies,optionalDependencies:F.optionalDependencies,permissions:q.permissions,prebuiltVariants:F.prebuiltVariants});O[H]=ye,Q&&D.set(Q,ye)}return O}}e.default=m}),,,(function(r,e){r.exports=require("stream")}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(s={}){if(Array.isArray(s))for(var a=s,i=Array.isArray(a),o=0,a=i?a:a[Symbol.iterator]();;){var u;if(i){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((s!==null&&typeof s=="object"||typeof s=="function")&&(Object.setPrototypeOf(s,null),typeof s=="object"))for(let c in s)n(s[c]);return s}}),,(function(r,e){r.exports=require("assert")}),(function(r,e){var t=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=t)}),,,,(function(r,e,t){var n=t(34);r.exports=function(s){if(!n(s))throw TypeError(s+" is not an object!");return s}}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePattern=n;function n(s){let i=!1,o="latest",a=s,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?i=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:i}}}),,(function(r,e,t){var n=t(50),s=t(106);r.exports=t(33)?function(i,o,a){return n.f(i,o,s(1,a))}:function(i,o,a){return i[o]=a,i}}),(function(r,e,t){var n=t(63),s=n.Buffer;function i(a,u){for(var c in a)u[c]=a[c]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?r.exports=n:(i(n,e),e.Buffer=o);function o(a,u,c){return s(a,u,c)}i(s,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=s(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}),(function(r,e,t){r.exports=!t(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})}),(function(r,e){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}}),(function(r,e){r.exports={}}),(function(r,e){r.exports=require("os")}),,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wait=n,e.promisify=s,e.queue=i;function n(o){return new Promise(a=>{setTimeout(a,o)})}function s(o,a){return function(...u){return new Promise(function(c,f){u.push(function(p,...$){let x=$;$.length<=1&&(x=$[0]),a&&(x=p,p=null),p?f(p):c(x)}),o.apply(null,u)})}}function i(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((p,$)=>{for(let h=0;h<u;h++)x();function x(){let h=o.shift();a(h).then(function(T){c.push(T),f--,f===0?p(c):o.length&&x()},$)}}):Promise.resolve(c)}}),(function(r,e,t){var n=t(11),s=t(23),i=t(48),o=t(31),a=t(49),u="prototype",c=function(f,p,$){var x=f&c.F,h=f&c.G,E=f&c.S,T=f&c.P,w=f&c.B,C=f&c.W,I=h?s:s[p]||(s[p]={}),A=I[u],g=h?n:E?n[p]:(n[p]||{})[u],S,R,L;h&&($=p);for(S in $)R=!x&&g&&g[S]!==void 0,!(R&&a(I,S))&&(L=R?g[S]:$[S],I[S]=h&&typeof g[S]!="function"?$[S]:w&&R?i(L,n):C&&g[S]==L?(function(P){var N=function(y,l,d){if(this instanceof P){switch(arguments.length){case 0:return new P;case 1:return new P(y);case 2:return new P(y,l)}return new P(y,l,d)}return P.apply(this,arguments)};return N[u]=P[u],N})(L):T&&typeof L=="function"?i(Function.call,L):L,T&&((I.virtual||(I.virtual={}))[S]=L,f&c.R&&A&&!A[S]&&o(A,S,L)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,r.exports=c}),(function(r,e,t){try{var n=t(2);if(typeof n.inherits!="function")throw"";r.exports=n.inherits}catch{r.exports=t(224)}}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.home=void 0;var n;function s(){return n=i(t(169))}function i(c){return c&&c.__esModule?c:{default:c}}let o=t(0),a=e.home=t(36).homedir(),u=(n||s()).default?o.resolve("/usr/local/share"):a;e.default=u}),(function(r,e){r.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}}),(function(r,e){var t={}.toString;r.exports=function(n){return t.call(n).slice(8,-1)}}),(function(r,e,t){var n=t(46);r.exports=function(s,i,o){if(n(s),i===void 0)return s;switch(o){case 1:return function(a){return s.call(i,a)};case 2:return function(a,u){return s.call(i,a,u)};case 3:return function(a,u,c){return s.call(i,a,u,c)}}return function(){return s.apply(i,arguments)}}}),(function(r,e){var t={}.hasOwnProperty;r.exports=function(n,s){return t.call(n,s)}}),(function(r,e,t){var n=t(27),s=t(184),i=t(201),o=Object.defineProperty;e.f=t(33)?Object.defineProperty:function(u,c,f){if(n(u),c=i(c,!0),n(f),s)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}}),,,,(function(r,e){r.exports=require("events")}),(function(r,e,t){"use strict";let n=t(32).Buffer,s=t(9),i=t(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class p{get isHash(){return!0}constructor(y,l){let d=!!(l&&l.strict);this.source=y.trim();let m=this.source.match(d?c:u);if(!m||d&&!o.some(b=>b===m[1]))return;this.algorithm=m[1],this.digest=m[2];let v=m[3];this.options=v?v.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(y){if(y&&y.strict&&!(o.some(d=>d===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(d=>d.match(f))))return"";let l=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${l}`}}class ${get isIntegrity(){return!0}toJSON(){return this.toString()}toString(y){y=y||{};let l=y.sep||" ";return y.strict&&(l=l.replace(/\S+/g," ")),Object.keys(this).map(d=>this[d].map(m=>p.prototype.toString.call(m,y)).filter(m=>m.length).join(l)).filter(d=>d.length).join(l)}concat(y,l){let d=typeof y=="string"?y:E(y,l);return x(`${this.toString(l)} ${d}`,l)}hexDigest(){return x(this,{single:!0}).hexDigest()}match(y,l){let d=x(y,l),m=d.pickAlgorithm(l);return this[m]&&d[m]&&this[m].find(v=>d[m].find(b=>v.digest===b.digest))||!1}pickAlgorithm(y){let l=y&&y.pickAlgorithm||P,d=Object.keys(this);if(!d.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return d.reduce((m,v)=>l(m,v)||m)}}r.exports.parse=x;function x(N,y){if(y=y||{},typeof N=="string")return h(N,y);if(N.algorithm&&N.digest){let l=new $;return l[N.algorithm]=[N],h(E(l,y),y)}else return h(E(N,y),y)}function h(N,y){return y.single?new p(N,y):N.trim().split(/\s+/).reduce((l,d)=>{let m=new p(d,y);if(m.algorithm&&m.digest){let v=m.algorithm;l[v]||(l[v]=[]),l[v].push(m)}return l},new $)}r.exports.stringify=E;function E(N,y){return N.algorithm&&N.digest?p.prototype.toString.call(N,y):typeof N=="string"?E(x(N,y),y):$.prototype.toString.call(N,y)}r.exports.fromHex=T;function T(N,y,l){let d=l&&l.options&&l.options.length?`?${l.options.join("?")}`:"";return x(`${y}-${n.from(N,"hex").toString("base64")}${d}`,l)}r.exports.fromData=w;function w(N,y){y=y||{};let l=y.algorithms||["sha512"],d=y.options&&y.options.length?`?${y.options.join("?")}`:"";return l.reduce((m,v)=>{let b=s.createHash(v).update(N).digest("base64"),O=new p(`${v}-${b}${d}`,y);if(O.algorithm&&O.digest){let D=O.algorithm;m[D]||(m[D]=[]),m[D].push(O)}return m},new $)}r.exports.fromStream=C;function C(N,y){y=y||{};let l=y.Promise||Promise,d=g(y);return new l((m,v)=>{N.pipe(d),N.on("error",v),d.on("error",v);let b;d.on("integrity",O=>{b=O}),d.on("end",()=>m(b)),d.on("data",()=>{})})}r.exports.checkData=I;function I(N,y,l){if(l=l||{},y=x(y,l),!Object.keys(y).length){if(l.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let d=y.pickAlgorithm(l),m=s.createHash(d).update(N).digest("base64"),v=x({algorithm:d,digest:m}),b=v.match(y,l);if(b||!l.error)return b;if(typeof l.size=="number"&&N.length!==l.size){let O=new Error(`data size mismatch when checking ${y}.
|
|
10
10
|
Wanted: ${l.size}
|
|
11
11
|
Found: ${N.length}`);throw O.code="EBADSIZE",O.found=N.length,O.expected=l.size,O.sri=y,O}else{let O=new Error(`Integrity checksum failed when using ${d}: Wanted ${y}, but got ${v}. (${N.length} bytes)`);throw O.code="EINTEGRITY",O.found=v,O.expected=y,O.algorithm=d,O.sri=y,O}}r.exports.checkStream=A;function A(N,y,l){l=l||{};let d=l.Promise||Promise,m=g(Object.assign({},l,{integrity:y}));return new d((v,b)=>{N.pipe(m),N.on("error",b),m.on("error",b);let O;m.on("verified",D=>{O=D}),m.on("end",()=>v(O)),m.on("data",()=>{})})}r.exports.integrityStream=g;function g(N){N=N||{};let y=N.integrity&&x(N.integrity,N),l=y&&Object.keys(y).length,d=l&&y.pickAlgorithm(N),m=l&&y[d],v=Array.from(new Set((N.algorithms||["sha512"]).concat(d?[d]:[]))),b=v.map(s.createHash),O=0,D=new i({transform(k,M,j){O+=k.length,b.forEach(W=>W.update(k,M)),j(null,k,M)}}).on("end",()=>{let k=N.options&&N.options.length?`?${N.options.join("?")}`:"",M=x(b.map((W,Z)=>`${v[Z]}-${W.digest("base64")}${k}`).join(" "),N),j=l&&M.match(y,N);if(typeof N.size=="number"&&O!==N.size){let W=new Error(`stream size mismatch when checking ${y}.
|
|
@@ -32,7 +32,7 @@ ${C}`)}function E(T,w,C){let I=h(T,{indent:"",topLevel:!0});if(w)return I;let A=
|
|
|
32
32
|
`+C),x.push(w+"m+"+e.humanize(this.diff)+"\x1B[0m")}else x[0]=u()+h+" "+x[0]}function u(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(s.format.apply(s,arguments)+`
|
|
33
33
|
`)}function f(x){x==null?delete process.env.DEBUG:process.env.DEBUG=x}function p(){return process.env.DEBUG}function $(x){x.inspectOpts={};for(var h=Object.keys(e.inspectOpts),E=0;E<h.length;E++)x.inspectOpts[h[E]]=e.inspectOpts[h[E]]}e.enable(p())}),,,,(function(r,e,t){var n=t(0),s=process.platform==="win32",i=t(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var $;if(o){var x=new Error;$=h}else $=E;return $;function h(T){T&&(x.message=T.message,T=x,E(T))}function E(T){if(T){if(process.throwDeprecation)throw T;if(!process.noDeprecation){var w="fs: missing callback "+(T.stack||T.message);process.traceDeprecation?console.trace(w):console.error(w)}}}}function u($){return typeof $=="function"?$:a()}var c=n.normalize;if(s)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(s)var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var p=/^[\/]*/;e.realpathSync=function(x,h){if(x=n.resolve(x),h&&Object.prototype.hasOwnProperty.call(h,x))return h[x];var E=x,T={},w={},C,I,A,g;S();function S(){var l=p.exec(x);C=l[0].length,I=l[0],A=l[0],g="",s&&!w[A]&&(i.lstatSync(A),w[A]=!0)}for(;C<x.length;){f.lastIndex=C;var R=f.exec(x);if(g=I,I+=R[0],A=g+R[1],C=f.lastIndex,!(w[A]||h&&h[A]===A)){var L;if(h&&Object.prototype.hasOwnProperty.call(h,A))L=h[A];else{var P=i.lstatSync(A);if(!P.isSymbolicLink()){w[A]=!0,h&&(h[A]=A);continue}var N=null;if(!s){var y=P.dev.toString(32)+":"+P.ino.toString(32);T.hasOwnProperty(y)&&(N=T[y])}N===null&&(i.statSync(A),N=i.readlinkSync(A)),L=n.resolve(g,N),h&&(h[A]=L),s||(T[y]=N)}x=n.resolve(L,x.slice(C)),S()}}return h&&(h[E]=x),x},e.realpath=function(x,h,E){if(typeof E!="function"&&(E=u(h),h=null),x=n.resolve(x),h&&Object.prototype.hasOwnProperty.call(h,x))return process.nextTick(E.bind(null,null,h[x]));var T=x,w={},C={},I,A,g,S;R();function R(){var l=p.exec(x);I=l[0].length,A=l[0],g=l[0],S="",s&&!C[g]?i.lstat(g,function(d){if(d)return E(d);C[g]=!0,L()}):process.nextTick(L)}function L(){if(I>=x.length)return h&&(h[T]=x),E(null,x);f.lastIndex=I;var l=f.exec(x);return S=A,A+=l[0],g=S+l[1],I=f.lastIndex,C[g]||h&&h[g]===g?process.nextTick(L):h&&Object.prototype.hasOwnProperty.call(h,g)?y(h[g]):i.lstat(g,P)}function P(l,d){if(l)return E(l);if(!d.isSymbolicLink())return C[g]=!0,h&&(h[g]=g),process.nextTick(L);if(!s){var m=d.dev.toString(32)+":"+d.ino.toString(32);if(w.hasOwnProperty(m))return N(null,w[m],g)}i.stat(g,function(v){if(v)return E(v);i.readlink(g,function(b,O){s||(w[m]=O),N(b,O)})})}function N(l,d,m){if(l)return E(l);var v=n.resolve(S,d);h&&(h[m]=v),y(v)}function y(l){x=n.resolve(l,x.slice(I)),R()}}}),(function(r,e,t){r.exports=I,I.GlobSync=A;var n=t(3),s=t(114),i=t(60),o=i.Minimatch,a=t(75).Glob,u=t(2),c=t(0),f=t(22),p=t(76),$=t(115),x=$.alphasort,h=$.alphasorti,E=$.setopts,T=$.ownProp,w=$.childrenIgnored,C=$.isIgnored;function I(g,S){if(typeof S=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
34
34
|
See: https://github.com/isaacs/node-glob/issues/167`);return new A(g,S).found}function A(g,S){if(!g)throw new Error("must provide pattern");if(typeof S=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
35
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof A))return new A(g,S);if(E(this,g,S),this.noprocess)return this;var R=this.minimatch.set.length;this.matches=new Array(R);for(var L=0;L<R;L++)this._process(this.minimatch.set[L],L,!1);this._finish()}A.prototype._finish=function(){if(f(this instanceof A),this.realpath){var g=this;this.matches.forEach(function(S,R){var L=g.matches[R]=Object.create(null);for(var P in S)try{P=g._makeAbs(P);var N=s.realpathSync(P,g.realpathCache);L[N]=!0}catch(y){if(y.syscall==="stat")L[g._makeAbs(P)]=!0;else throw y}})}$.finish(this)},A.prototype._process=function(g,S,R){f(this instanceof A);for(var L=0;typeof g[L]=="string";)L++;var P;switch(L){case g.length:this._processSimple(g.join("/"),S);return;case 0:P=null;break;default:P=g.slice(0,L).join("/");break}var N=g.slice(L),y;P===null?y=".":((p(P)||p(g.join("/")))&&(!P||!p(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!w(this,y)){var d=N[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,N,S,R):this._processReaddir(P,y,l,N,S,R)}},A.prototype._processReaddir=function(g,S,R,L,P,N){var y=this._readdir(R,N);if(y){for(var l=L[0],d=!!this.minimatch.negate,m=l._glob,v=this.dot||m.charAt(0)===".",b=[],O=0;O<y.length;O++){var D=y[O];if(D.charAt(0)!=="."||v){var k;d&&!g?k=!D.match(l):k=D.match(l),k&&b.push(D)}}var M=b.length;if(M!==0){if(L.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var O=0;O<M;O++){var D=b[O];g&&(g.slice(-1)!=="/"?D=g+"/"+D:D=g+D),D.charAt(0)==="/"&&!this.nomount&&(D=c.join(this.root,D)),this._emitMatch(P,D)}return}L.shift();for(var O=0;O<M;O++){var D=b[O],j;g?j=[g,D]:j=[D],this._process(j.concat(L),P,N)}}}},A.prototype._emitMatch=function(g,S){if(!C(this,S)){var R=this._makeAbs(S);if(this.mark&&(S=this._mark(S)),this.absolute&&(S=R),!this.matches[g][S]){if(this.nodir){var L=this.cache[R];if(L==="DIR"||Array.isArray(L))return}this.matches[g][S]=!0,this.stat&&this._stat(S)}}},A.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var S,R,L;try{R=n.lstatSync(g)}catch(N){if(N.code==="ENOENT")return null}var P=R&&R.isSymbolicLink();return this.symlinks[g]=P,!P&&R&&!R.isDirectory()?this.cache[g]="FILE":S=this._readdir(g,!1),S},A.prototype._readdir=function(g,S){var R;if(S&&!T(this.symlinks,g))return this._readdirInGlobStar(g);if(T(this.cache,g)){var L=this.cache[g];if(!L||L==="FILE")return null;if(Array.isArray(L))return L}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},A.prototype._readdirEntries=function(g,S){if(!this.mark&&!this.stat)for(var R=0;R<S.length;R++){var L=S[R];g==="/"?L=g+L:L=g+"/"+L,this.cache[L]=!0}return this.cache[g]=S,S},A.prototype._readdirError=function(g,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var R=this._makeAbs(g);if(this.cache[R]="FILE",R===this.cwdAbs){var L=new Error(S.code+" invalid cwd "+this.cwd);throw L.path=this.cwd,L.code=S.code,L}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw S;this.silent||console.error("glob error",S);break}},A.prototype._processGlobStar=function(g,S,R,L,P,N){var y=this._readdir(R,N);if(y){var l=L.slice(1),d=g?[g]:[],m=d.concat(l);this._process(m,P,!1);var v=y.length,b=this.symlinks[R];if(!(b&&N))for(var O=0;O<v;O++){var D=y[O];if(!(D.charAt(0)==="."&&!this.dot)){var k=d.concat(y[O],l);this._process(k,P,!0);var M=d.concat(y[O],L);this._process(M,P,!0)}}}},A.prototype._processSimple=function(g,S){var R=this._stat(g);if(this.matches[S]||(this.matches[S]=Object.create(null)),!!R){if(g&&p(g)&&!this.nomount){var L=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),L&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(S,g)}},A.prototype._stat=function(g){var S=this._makeAbs(g),R=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&T(this.cache,S)){var y=this.cache[S];if(Array.isArray(y)&&(y="DIR"),!R||y==="DIR")return y;if(R&&y==="FILE")return!1}var L,P=this.statCache[S];if(!P){var N;try{N=n.lstatSync(S)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[S]=!1,!1}if(N&&N.isSymbolicLink())try{P=n.statSync(S)}catch{P=N}else P=N}this.statCache[S]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[S]=this.cache[S]||y,R&&y==="FILE"?!1:y},A.prototype._mark=function(g){return $.mark(this,g)},A.prototype._makeAbs=function(g){return $.makeAbs(this,g)}}),,,(function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}}),,(function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,f){return s[c]?(s[c].push(f),null):(s[c]=[f],a(c))}function a(c){return i(function f(){var p=s[c],$=p.length,x=u(arguments);try{for(var h=0;h<$;h++)p[h].apply(null,x)}finally{p.length>$?(p.splice(0,$),process.nextTick(function(){f.apply(null,x)})):delete s[c]}})}function u(c){for(var f=c.length,p=[],$=0;$<f;$++)p[$]=c[$];return p}}),(function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}}),,,(function(r,e,t){r.exports=typeof t<"u"}),,(function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(p,$){$=$||{};var x=typeof p;if(x==="string"&&p.length>0)return a(p);if(x==="number"&&isNaN(p)===!1)return $.long?c(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function a(p){if(p=String(p),!(p.length>100)){var $=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(p);if($){var x=parseFloat($[1]),h=($[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return x*o;case"days":case"day":case"d":return x*i;case"hours":case"hour":case"hrs":case"hr":case"h":return x*s;case"minutes":case"minute":case"mins":case"min":case"m":return x*n;case"seconds":case"second":case"secs":case"sec":case"s":return x*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return x;default:return}}}}function u(p){return p>=i?Math.round(p/i)+"d":p>=s?Math.round(p/s)+"h":p>=n?Math.round(p/n)+"m":p>=t?Math.round(p/t)+"s":p+"ms"}function c(p){return f(p,i,"day")||f(p,s,"hour")||f(p,n,"minute")||f(p,t,"second")||p+" ms"}function f(p,$,x){if(!(p<$))return p<$*1.5?Math.floor(p/$)+" "+x:Math.ceil(p/$)+" "+x+"s"}}),,,,(function(r,e,t){r.exports=$,$.sync=C;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function p(g){var S=["unlink","chmod","stat","lstat","rmdir","readdir"];S.forEach(function(R){g[R]=g[R]||i[R],R=R+"Sync",g[R]=g[R]||i[R]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function $(g,S,R){typeof S=="function"&&(R=S,S={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof R,"function","rimraf: callback function required"),n(S,"rimraf: invalid options argument provided"),n.equal(typeof S,"object","rimraf: options should be object"),p(S);var L=0,P=null,N=0;if(S.disableGlob||!o.hasMagic(g))return l(null,[g]);S.lstat(g,function(d,m){if(!d)return l(null,[g]);o(g,S.glob,l)});function y(d){P=P||d,--N===0&&R(P)}function l(d,m){if(d)return R(d);if(N=m.length,N===0)return R();m.forEach(function(v){x(v,S,function b(O){if(O){if((O.code==="EBUSY"||O.code==="ENOTEMPTY"||O.code==="EPERM")&&L<S.maxBusyTries){L++;var D=L*100;return setTimeout(function(){x(v,S,b)},D)}if(O.code==="EMFILE"&&c<S.emfileWait)return setTimeout(function(){x(v,S,b)},c++);O.code==="ENOENT"&&(O=null)}c=0,y(O)})})}}function x(g,S,R){n(g),n(S),n(typeof R=="function"),S.lstat(g,function(L,P){if(L&&L.code==="ENOENT")return R(null);if(L&&L.code==="EPERM"&&f&&h(g,S,L,R),P&&P.isDirectory())return T(g,S,L,R);S.unlink(g,function(N){if(N){if(N.code==="ENOENT")return R(null);if(N.code==="EPERM")return f?h(g,S,N,R):T(g,S,N,R);if(N.code==="EISDIR")return T(g,S,N,R)}return R(N)})})}function h(g,S,R,L){n(g),n(S),n(typeof L=="function"),R&&n(R instanceof Error),S.chmod(g,a,function(P){P?L(P.code==="ENOENT"?null:R):S.stat(g,function(N,y){N?L(N.code==="ENOENT"?null:R):y.isDirectory()?T(g,S,R,L):S.unlink(g,L)})})}function E(g,S,R){n(g),n(S),R&&n(R instanceof Error);try{S.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw R}try{var L=S.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw R}L.isDirectory()?I(g,S,R):S.unlinkSync(g)}function T(g,S,R,L){n(g),n(S),R&&n(R instanceof Error),n(typeof L=="function"),S.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?w(g,S,L):P&&P.code==="ENOTDIR"?L(R):L(P)})}function w(g,S,R){n(g),n(S),n(typeof R=="function"),S.readdir(g,function(L,P){if(L)return R(L);var N=P.length;if(N===0)return S.rmdir(g,R);var y;P.forEach(function(l){$(s.join(g,l),S,function(d){if(!y){if(d)return R(y=d);--N===0&&S.rmdir(g,R)}})})})}function C(g,S){S=S||{},p(S),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n(S,"rimraf: missing options"),n.equal(typeof S,"object","rimraf: options should be object");var R;if(S.disableGlob||!o.hasMagic(g))R=[g];else try{S.lstatSync(g),R=[g]}catch{R=o.sync(g,S.glob)}if(R.length)for(var L=0;L<R.length;L++){var g=R[L];try{var P=S.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&f&&E(g,S,y)}try{P&&P.isDirectory()?I(g,S,null):S.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return f?E(g,S,y):I(g,S,y);if(y.code!=="EISDIR")throw y;I(g,S,y)}}}function I(g,S,R){n(g),n(S),R&&n(R instanceof Error);try{S.rmdirSync(g)}catch(L){if(L.code==="ENOENT")return;if(L.code==="ENOTDIR")throw R;(L.code==="ENOTEMPTY"||L.code==="EEXIST"||L.code==="EPERM")&&A(g,S)}}function A(g,S){n(g),n(S),S.readdirSync(g).forEach(function(y){C(s.join(g,y),S)});var R=f?100:1,L=0;do{var P=!0;try{var N=S.rmdirSync(g,S);return P=!1,N}finally{if(++L<R&&P)continue}}while(!0)}}),,,,,,(function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=(function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)})();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)})])});var ui=Ee((Bb,ci)=>{"use strict";ci.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var $n=Ee((uE,xi)=>{"use strict";var Ec=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};xi.exports=Ec});var jn=Ee((dE,Ti)=>{"use strict";var Sc="2.0.0",$c=Number.MAX_SAFE_INTEGER||9007199254740991,xc=16,Tc=250,Cc=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ti.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xc,MAX_SAFE_BUILD_LENGTH:Tc,MAX_SAFE_INTEGER:$c,RELEASE_TYPES:Cc,SEMVER_SPEC_VERSION:Sc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Un=Ee((Tt,Ci)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:wr,MAX_SAFE_BUILD_LENGTH:Lc,MAX_LENGTH:Rc}=jn(),Ac=$n();Tt=Ci.exports={};var Oc=Tt.re=[],Nc=Tt.safeRe=[],J=Tt.src=[],Dc=Tt.safeSrc=[],K=Tt.t={},wc=0,kr="[a-zA-Z0-9-]",kc=[["\\s",1],["\\d",Rc],[kr,Lc]],Pc=r=>{for(let[e,t]of kc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=Pc(e),s=wc++;Ac(r,s,e),K[r]=s,J[s]=e,Dc[s]=n,Oc[s]=new RegExp(e,t?"g":void 0),Nc[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${kr}*`);te("MAINVERSION",`(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${J[K.PRERELEASEIDENTIFIER]}(?:\\.${J[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${J[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${J[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${kr}+`);te("BUILD",`(?:\\+(${J[K.BUILDIDENTIFIER]}(?:\\.${J[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${J[K.MAINVERSION]}${J[K.PRERELEASE]}?${J[K.BUILD]}?`);te("FULL",`^${J[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${J[K.MAINVERSIONLOOSE]}${J[K.PRERELEASELOOSE]}?${J[K.BUILD]}?`);te("LOOSE",`^${J[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${J[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${J[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:${J[K.PRERELEASE]})?${J[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:${J[K.PRERELEASELOOSE]})?${J[K.BUILD]}?)?)?`);te("XRANGE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wr}})(?:\\.(\\d{1,${wr}}))?(?:\\.(\\d{1,${wr}}))?`);te("COERCE",`${J[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",J[K.COERCEPLAIN]+`(?:${J[K.PRERELEASE]})?(?:${J[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",J[K.COERCE],!0);te("COERCERTLFULL",J[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${J[K.LONETILDE]}\\s+`,!0);Tt.tildeTrimReplace="$1~";te("TILDE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${J[K.LONECARET]}\\s+`,!0);Tt.caretTrimReplace="$1^";te("CARET",`^${J[K.LONECARET]}${J[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${J[K.LONECARET]}${J[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${J[K.GTLT]}\\s*(${J[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]}|${J[K.XRANGEPLAIN]})`,!0);Tt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${J[K.XRANGEPLAIN]})\\s+-\\s+(${J[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${J[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${J[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var zn=Ee((fE,Li)=>{"use strict";var Ic=Object.freeze({loose:!0}),Mc=Object.freeze({}),Fc=r=>r?typeof r!="object"?Ic:r:Mc;Li.exports=Fc});var Ni=Ee((pE,Oi)=>{"use strict";var Ri=/^[0-9]+$/,Ai=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Ri.test(r),n=Ri.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Hc=(r,e)=>Ai(e,r);Oi.exports={compareIdentifiers:Ai,rcompareIdentifiers:Hc}});var xn=Ee((hE,wi)=>{"use strict";var Wn=$n(),{MAX_LENGTH:Di,MAX_SAFE_INTEGER:Xn}=jn(),{safeRe:Gn,t:Vn}=Un(),Bc=zn(),{compareIdentifiers:Pr}=Ni(),Ir=class r{constructor(e,t){if(t=Bc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Di)throw new TypeError(`version is longer than ${Di} characters`);Wn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Gn[Vn.LOOSE]:Gn[Vn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Xn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Xn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Xn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Xn)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Wn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Wn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pr(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Wn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pr(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?Gn[Vn.PRERELEASELOOSE]:Gn[Vn.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),Pr(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};wi.exports=Ir});var Zt=Ee((mE,Pi)=>{"use strict";var ki=xn(),jc=(r,e,t)=>new ki(r,t).compare(new ki(e,t));Pi.exports=jc});var Mr=Ee((gE,Ii)=>{"use strict";var Uc=Zt(),zc=(r,e,t)=>Uc(r,e,t)<=0;Ii.exports=zc});var Fi=Ee((yE,Mi)=>{"use strict";var Wc=xn(),Xc=(r,e)=>new Wc(r,e).major;Mi.exports=Xc});var Bi=Ee((vE,Hi)=>{"use strict";var Fr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Hi.exports=Fr});var Ui=Ee((bE,ji)=>{"use strict";var Gc=Zt(),Vc=(r,e,t)=>Gc(r,e,t)===0;ji.exports=Vc});var Wi=Ee((EE,zi)=>{"use strict";var Jc=Zt(),Kc=(r,e,t)=>Jc(r,e,t)!==0;zi.exports=Kc});var Gi=Ee((SE,Xi)=>{"use strict";var Yc=Zt(),Qc=(r,e,t)=>Yc(r,e,t)>0;Xi.exports=Qc});var Ji=Ee(($E,Vi)=>{"use strict";var Zc=Zt(),qc=(r,e,t)=>Zc(r,e,t)>=0;Vi.exports=qc});var Hr=Ee((xE,Ki)=>{"use strict";var _c=Zt(),eu=(r,e,t)=>_c(r,e,t)<0;Ki.exports=eu});var Qi=Ee((TE,Yi)=>{"use strict";var tu=Ui(),nu=Wi(),ru=Gi(),su=Ji(),iu=Hr(),ou=Mr(),au=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return tu(r,t,n);case"!=":return nu(r,t,n);case">":return ru(r,t,n);case">=":return su(r,t,n);case"<":return iu(r,t,n);case"<=":return ou(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Yi.exports=au});var ro=Ee((CE,no)=>{"use strict";var Tn=Symbol("SemVer ANY"),Ur=class r{static get ANY(){return Tn}constructor(e,t){if(t=Zi(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),jr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Tn?this.value="":this.value=this.operator+this.semver.version,jr("comp",this)}parse(e){let t=this.options.loose?qi[_i.COMPARATORLOOSE]:qi[_i.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new eo(n[2],this.options.loose):this.semver=Tn}toString(){return this.value}test(e){if(jr("Comparator.test",e,this.options.loose),this.semver===Tn||e===Tn)return!0;if(typeof e=="string")try{e=new eo(e,this.options)}catch{return!1}return Br(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new to(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new to(this.value,t).test(e.semver):(t=Zi(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Br(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Br(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};no.exports=Ur;var Zi=zn(),{safeRe:qi,t:_i}=Un(),Br=Qi(),jr=$n(),eo=xn(),to=zr()});var zr=Ee((LE,ao)=>{"use strict";var lu=/\s+/g,Wr=class r{constructor(e,t){if(t=uu(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Xr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(lu," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!io(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&yu(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&mu)|(this.options.loose&&gu))+":"+e,s=so.get(n);if(s)return s;let i=this.options.loose,o=i?Je[Ue.HYPHENRANGELOOSE]:Je[Ue.HYPHENRANGE];e=e.replace(o,Ru(this.options.includePrerelease)),$e("hyphen replace",e),e=e.replace(Je[Ue.COMPARATORTRIM],fu),$e("comparator trim",e),e=e.replace(Je[Ue.TILDETRIM],pu),$e("tilde trim",e),e=e.replace(Je[Ue.CARETTRIM],hu),$e("caret trim",e);let a=e.split(" ").map(p=>vu(p,this.options)).join(" ").split(/\s+/).map(p=>Lu(p,this.options));i&&(a=a.filter(p=>($e("loose invalid filter",p,this.options),!!p.match(Je[Ue.COMPARATORLOOSE])))),$e("range list",a);let u=new Map,c=a.map(p=>new Xr(p,this.options));for(let p of c){if(io(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return so.set(n,f),f}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>oo(n,t)&&e.set.some(s=>oo(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new du(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Au(this.set[t],e,this.options))return!0;return!1}};ao.exports=Wr;var cu=Bi(),so=new cu,uu=zn(),Xr=ro(),$e=$n(),du=xn(),{safeRe:Je,t:Ue,comparatorTrimReplace:fu,tildeTrimReplace:pu,caretTrimReplace:hu}=Un(),{FLAG_INCLUDE_PRERELEASE:mu,FLAG_LOOSE:gu}=jn(),io=r=>r.value==="<0.0.0-0",yu=r=>r.value==="",oo=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},vu=(r,e)=>(r=r.replace(Je[Ue.BUILD],""),$e("comp",r,e),r=Su(r,e),$e("caret",r),r=bu(r,e),$e("tildes",r),r=xu(r,e),$e("xrange",r),r=Cu(r,e),$e("stars",r),r),Ke=r=>!r||r.toLowerCase()==="x"||r==="*",bu=(r,e)=>r.trim().split(/\s+/).map(t=>Eu(t,e)).join(" "),Eu=(r,e)=>{let t=e.loose?Je[Ue.TILDELOOSE]:Je[Ue.TILDE];return r.replace(t,(n,s,i,o,a)=>{$e("tilde",r,n,s,i,o,a);let u;return Ke(s)?u="":Ke(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:Ke(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?($e("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,$e("tilde return",u),u})},Su=(r,e)=>r.trim().split(/\s+/).map(t=>$u(t,e)).join(" "),$u=(r,e)=>{$e("caret",r,e);let t=e.loose?Je[Ue.CARETLOOSE]:Je[Ue.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{$e("caret",r,s,i,o,a,u);let c;return Ke(i)?c="":Ke(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ke(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?($e("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):($e("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),$e("caret return",c),c})},xu=(r,e)=>($e("replaceXRanges",r,e),r.split(/\s+/).map(t=>Tu(t,e)).join(" ")),Tu=(r,e)=>{r=r.trim();let t=e.loose?Je[Ue.XRANGELOOSE]:Je[Ue.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{$e("xRange",r,n,s,i,o,a,u);let c=Ke(i),f=c||Ke(o),p=f||Ke(a),$=p;return s==="="&&$&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&$?(f&&(o=0),a=0,s===">"?(s=">=",f?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",f?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):f?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),$e("xRange return",n),n})},Cu=(r,e)=>($e("replaceStars",r,e),r.trim().replace(Je[Ue.STAR],"")),Lu=(r,e)=>($e("replaceGTE0",r,e),r.trim().replace(Je[e.includePrerelease?Ue.GTE0PRE:Ue.GTE0],"")),Ru=r=>(e,t,n,s,i,o,a,u,c,f,p,$)=>(Ke(n)?t="":Ke(s)?t=`>=${n}.0.0${r?"-0":""}`:Ke(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Ke(c)?u="":Ke(f)?u=`<${+c+1}.0.0-0`:Ke(p)?u=`<${c}.${+f+1}.0-0`:$?u=`<=${c}.${f}.${p}-${$}`:r?u=`<${c}.${f}.${+p+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Au=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if($e(r[n].semver),r[n].semver!==Xr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var co=Ee((RE,lo)=>{"use strict";var Ou=zr(),Nu=(r,e,t)=>{try{e=new Ou(e,t)}catch{return!1}return e.test(r)};lo.exports=Nu});var Xu={};Qr(Xu,{createNodeLogger:()=>ls,createNodeSys:()=>wo,setupNodeProcess:()=>oi});module.exports=zo(Xu);var On=xe(require("./graceful-fs.js")),as=xe(require("path"));var ee=xe(rs());var sr=["debug","info","warn","error"];var os=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(nn(e,"info")){let d=St(l,r.getColumns());u(d),console.log(d.join(`
|
|
35
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof A))return new A(g,S);if(E(this,g,S),this.noprocess)return this;var R=this.minimatch.set.length;this.matches=new Array(R);for(var L=0;L<R;L++)this._process(this.minimatch.set[L],L,!1);this._finish()}A.prototype._finish=function(){if(f(this instanceof A),this.realpath){var g=this;this.matches.forEach(function(S,R){var L=g.matches[R]=Object.create(null);for(var P in S)try{P=g._makeAbs(P);var N=s.realpathSync(P,g.realpathCache);L[N]=!0}catch(y){if(y.syscall==="stat")L[g._makeAbs(P)]=!0;else throw y}})}$.finish(this)},A.prototype._process=function(g,S,R){f(this instanceof A);for(var L=0;typeof g[L]=="string";)L++;var P;switch(L){case g.length:this._processSimple(g.join("/"),S);return;case 0:P=null;break;default:P=g.slice(0,L).join("/");break}var N=g.slice(L),y;P===null?y=".":((p(P)||p(g.join("/")))&&(!P||!p(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!w(this,y)){var d=N[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,N,S,R):this._processReaddir(P,y,l,N,S,R)}},A.prototype._processReaddir=function(g,S,R,L,P,N){var y=this._readdir(R,N);if(y){for(var l=L[0],d=!!this.minimatch.negate,m=l._glob,v=this.dot||m.charAt(0)===".",b=[],O=0;O<y.length;O++){var D=y[O];if(D.charAt(0)!=="."||v){var k;d&&!g?k=!D.match(l):k=D.match(l),k&&b.push(D)}}var M=b.length;if(M!==0){if(L.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var O=0;O<M;O++){var D=b[O];g&&(g.slice(-1)!=="/"?D=g+"/"+D:D=g+D),D.charAt(0)==="/"&&!this.nomount&&(D=c.join(this.root,D)),this._emitMatch(P,D)}return}L.shift();for(var O=0;O<M;O++){var D=b[O],j;g?j=[g,D]:j=[D],this._process(j.concat(L),P,N)}}}},A.prototype._emitMatch=function(g,S){if(!C(this,S)){var R=this._makeAbs(S);if(this.mark&&(S=this._mark(S)),this.absolute&&(S=R),!this.matches[g][S]){if(this.nodir){var L=this.cache[R];if(L==="DIR"||Array.isArray(L))return}this.matches[g][S]=!0,this.stat&&this._stat(S)}}},A.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var S,R,L;try{R=n.lstatSync(g)}catch(N){if(N.code==="ENOENT")return null}var P=R&&R.isSymbolicLink();return this.symlinks[g]=P,!P&&R&&!R.isDirectory()?this.cache[g]="FILE":S=this._readdir(g,!1),S},A.prototype._readdir=function(g,S){var R;if(S&&!T(this.symlinks,g))return this._readdirInGlobStar(g);if(T(this.cache,g)){var L=this.cache[g];if(!L||L==="FILE")return null;if(Array.isArray(L))return L}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},A.prototype._readdirEntries=function(g,S){if(!this.mark&&!this.stat)for(var R=0;R<S.length;R++){var L=S[R];g==="/"?L=g+L:L=g+"/"+L,this.cache[L]=!0}return this.cache[g]=S,S},A.prototype._readdirError=function(g,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var R=this._makeAbs(g);if(this.cache[R]="FILE",R===this.cwdAbs){var L=new Error(S.code+" invalid cwd "+this.cwd);throw L.path=this.cwd,L.code=S.code,L}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw S;this.silent||console.error("glob error",S);break}},A.prototype._processGlobStar=function(g,S,R,L,P,N){var y=this._readdir(R,N);if(y){var l=L.slice(1),d=g?[g]:[],m=d.concat(l);this._process(m,P,!1);var v=y.length,b=this.symlinks[R];if(!(b&&N))for(var O=0;O<v;O++){var D=y[O];if(!(D.charAt(0)==="."&&!this.dot)){var k=d.concat(y[O],l);this._process(k,P,!0);var M=d.concat(y[O],L);this._process(M,P,!0)}}}},A.prototype._processSimple=function(g,S){var R=this._stat(g);if(this.matches[S]||(this.matches[S]=Object.create(null)),!!R){if(g&&p(g)&&!this.nomount){var L=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),L&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(S,g)}},A.prototype._stat=function(g){var S=this._makeAbs(g),R=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&T(this.cache,S)){var y=this.cache[S];if(Array.isArray(y)&&(y="DIR"),!R||y==="DIR")return y;if(R&&y==="FILE")return!1}var L,P=this.statCache[S];if(!P){var N;try{N=n.lstatSync(S)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[S]=!1,!1}if(N&&N.isSymbolicLink())try{P=n.statSync(S)}catch{P=N}else P=N}this.statCache[S]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[S]=this.cache[S]||y,R&&y==="FILE"?!1:y},A.prototype._mark=function(g){return $.mark(this,g)},A.prototype._makeAbs=function(g){return $.makeAbs(this,g)}}),,,(function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}}),,(function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,f){return s[c]?(s[c].push(f),null):(s[c]=[f],a(c))}function a(c){return i(function f(){var p=s[c],$=p.length,x=u(arguments);try{for(var h=0;h<$;h++)p[h].apply(null,x)}finally{p.length>$?(p.splice(0,$),process.nextTick(function(){f.apply(null,x)})):delete s[c]}})}function u(c){for(var f=c.length,p=[],$=0;$<f;$++)p[$]=c[$];return p}}),(function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}}),,,(function(r,e,t){r.exports=typeof t<"u"}),,(function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(p,$){$=$||{};var x=typeof p;if(x==="string"&&p.length>0)return a(p);if(x==="number"&&isNaN(p)===!1)return $.long?c(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function a(p){if(p=String(p),!(p.length>100)){var $=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(p);if($){var x=parseFloat($[1]),h=($[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return x*o;case"days":case"day":case"d":return x*i;case"hours":case"hour":case"hrs":case"hr":case"h":return x*s;case"minutes":case"minute":case"mins":case"min":case"m":return x*n;case"seconds":case"second":case"secs":case"sec":case"s":return x*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return x;default:return}}}}function u(p){return p>=i?Math.round(p/i)+"d":p>=s?Math.round(p/s)+"h":p>=n?Math.round(p/n)+"m":p>=t?Math.round(p/t)+"s":p+"ms"}function c(p){return f(p,i,"day")||f(p,s,"hour")||f(p,n,"minute")||f(p,t,"second")||p+" ms"}function f(p,$,x){if(!(p<$))return p<$*1.5?Math.floor(p/$)+" "+x:Math.ceil(p/$)+" "+x+"s"}}),,,,(function(r,e,t){r.exports=$,$.sync=C;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function p(g){var S=["unlink","chmod","stat","lstat","rmdir","readdir"];S.forEach(function(R){g[R]=g[R]||i[R],R=R+"Sync",g[R]=g[R]||i[R]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function $(g,S,R){typeof S=="function"&&(R=S,S={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof R,"function","rimraf: callback function required"),n(S,"rimraf: invalid options argument provided"),n.equal(typeof S,"object","rimraf: options should be object"),p(S);var L=0,P=null,N=0;if(S.disableGlob||!o.hasMagic(g))return l(null,[g]);S.lstat(g,function(d,m){if(!d)return l(null,[g]);o(g,S.glob,l)});function y(d){P=P||d,--N===0&&R(P)}function l(d,m){if(d)return R(d);if(N=m.length,N===0)return R();m.forEach(function(v){x(v,S,function b(O){if(O){if((O.code==="EBUSY"||O.code==="ENOTEMPTY"||O.code==="EPERM")&&L<S.maxBusyTries){L++;var D=L*100;return setTimeout(function(){x(v,S,b)},D)}if(O.code==="EMFILE"&&c<S.emfileWait)return setTimeout(function(){x(v,S,b)},c++);O.code==="ENOENT"&&(O=null)}c=0,y(O)})})}}function x(g,S,R){n(g),n(S),n(typeof R=="function"),S.lstat(g,function(L,P){if(L&&L.code==="ENOENT")return R(null);if(L&&L.code==="EPERM"&&f&&h(g,S,L,R),P&&P.isDirectory())return T(g,S,L,R);S.unlink(g,function(N){if(N){if(N.code==="ENOENT")return R(null);if(N.code==="EPERM")return f?h(g,S,N,R):T(g,S,N,R);if(N.code==="EISDIR")return T(g,S,N,R)}return R(N)})})}function h(g,S,R,L){n(g),n(S),n(typeof L=="function"),R&&n(R instanceof Error),S.chmod(g,a,function(P){P?L(P.code==="ENOENT"?null:R):S.stat(g,function(N,y){N?L(N.code==="ENOENT"?null:R):y.isDirectory()?T(g,S,R,L):S.unlink(g,L)})})}function E(g,S,R){n(g),n(S),R&&n(R instanceof Error);try{S.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw R}try{var L=S.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw R}L.isDirectory()?I(g,S,R):S.unlinkSync(g)}function T(g,S,R,L){n(g),n(S),R&&n(R instanceof Error),n(typeof L=="function"),S.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?w(g,S,L):P&&P.code==="ENOTDIR"?L(R):L(P)})}function w(g,S,R){n(g),n(S),n(typeof R=="function"),S.readdir(g,function(L,P){if(L)return R(L);var N=P.length;if(N===0)return S.rmdir(g,R);var y;P.forEach(function(l){$(s.join(g,l),S,function(d){if(!y){if(d)return R(y=d);--N===0&&S.rmdir(g,R)}})})})}function C(g,S){S=S||{},p(S),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n(S,"rimraf: missing options"),n.equal(typeof S,"object","rimraf: options should be object");var R;if(S.disableGlob||!o.hasMagic(g))R=[g];else try{S.lstatSync(g),R=[g]}catch{R=o.sync(g,S.glob)}if(R.length)for(var L=0;L<R.length;L++){var g=R[L];try{var P=S.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&f&&E(g,S,y)}try{P&&P.isDirectory()?I(g,S,null):S.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return f?E(g,S,y):I(g,S,y);if(y.code!=="EISDIR")throw y;I(g,S,y)}}}function I(g,S,R){n(g),n(S),R&&n(R instanceof Error);try{S.rmdirSync(g)}catch(L){if(L.code==="ENOENT")return;if(L.code==="ENOTDIR")throw R;(L.code==="ENOTEMPTY"||L.code==="EEXIST"||L.code==="EPERM")&&A(g,S)}}function A(g,S){n(g),n(S),S.readdirSync(g).forEach(function(y){C(s.join(g,y),S)});var R=f?100:1,L=0;do{var P=!0;try{var N=S.rmdirSync(g,S);return P=!1,N}finally{if(++L<R&&P)continue}}while(!0)}}),,,,,,(function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=(function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)})();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)})])});var ui=Ee((Bb,ci)=>{"use strict";ci.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var $n=Ee((uE,xi)=>{"use strict";var Ec=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};xi.exports=Ec});var jn=Ee((dE,Ti)=>{"use strict";var Sc="2.0.0",$c=Number.MAX_SAFE_INTEGER||9007199254740991,xc=16,Tc=250,Cc=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ti.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xc,MAX_SAFE_BUILD_LENGTH:Tc,MAX_SAFE_INTEGER:$c,RELEASE_TYPES:Cc,SEMVER_SPEC_VERSION:Sc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Un=Ee((Tt,Ci)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:wr,MAX_SAFE_BUILD_LENGTH:Lc,MAX_LENGTH:Rc}=jn(),Ac=$n();Tt=Ci.exports={};var Oc=Tt.re=[],Nc=Tt.safeRe=[],J=Tt.src=[],Dc=Tt.safeSrc=[],K=Tt.t={},wc=0,kr="[a-zA-Z0-9-]",kc=[["\\s",1],["\\d",Rc],[kr,Lc]],Pc=r=>{for(let[e,t]of kc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=Pc(e),s=wc++;Ac(r,s,e),K[r]=s,J[s]=e,Dc[s]=n,Oc[s]=new RegExp(e,t?"g":void 0),Nc[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${kr}*`);te("MAINVERSION",`(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${J[K.PRERELEASEIDENTIFIER]}(?:\\.${J[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${J[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${J[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${kr}+`);te("BUILD",`(?:\\+(${J[K.BUILDIDENTIFIER]}(?:\\.${J[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${J[K.MAINVERSION]}${J[K.PRERELEASE]}?${J[K.BUILD]}?`);te("FULL",`^${J[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${J[K.MAINVERSIONLOOSE]}${J[K.PRERELEASELOOSE]}?${J[K.BUILD]}?`);te("LOOSE",`^${J[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${J[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${J[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:${J[K.PRERELEASE]})?${J[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:${J[K.PRERELEASELOOSE]})?${J[K.BUILD]}?)?)?`);te("XRANGE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${wr}})(?:\\.(\\d{1,${wr}}))?(?:\\.(\\d{1,${wr}}))?`);te("COERCE",`${J[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",J[K.COERCEPLAIN]+`(?:${J[K.PRERELEASE]})?(?:${J[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",J[K.COERCE],!0);te("COERCERTLFULL",J[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${J[K.LONETILDE]}\\s+`,!0);Tt.tildeTrimReplace="$1~";te("TILDE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${J[K.LONECARET]}\\s+`,!0);Tt.caretTrimReplace="$1^";te("CARET",`^${J[K.LONECARET]}${J[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${J[K.LONECARET]}${J[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${J[K.GTLT]}\\s*(${J[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]}|${J[K.XRANGEPLAIN]})`,!0);Tt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${J[K.XRANGEPLAIN]})\\s+-\\s+(${J[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${J[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${J[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var zn=Ee((fE,Li)=>{"use strict";var Ic=Object.freeze({loose:!0}),Mc=Object.freeze({}),Fc=r=>r?typeof r!="object"?Ic:r:Mc;Li.exports=Fc});var Ni=Ee((pE,Oi)=>{"use strict";var Ri=/^[0-9]+$/,Ai=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Ri.test(r),n=Ri.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Hc=(r,e)=>Ai(e,r);Oi.exports={compareIdentifiers:Ai,rcompareIdentifiers:Hc}});var xn=Ee((hE,wi)=>{"use strict";var Wn=$n(),{MAX_LENGTH:Di,MAX_SAFE_INTEGER:Xn}=jn(),{safeRe:Vn,t:Gn}=Un(),Bc=zn(),{compareIdentifiers:Pr}=Ni(),Ir=class r{constructor(e,t){if(t=Bc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Di)throw new TypeError(`version is longer than ${Di} characters`);Wn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Vn[Gn.LOOSE]:Vn[Gn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Xn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Xn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Xn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Xn)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Wn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Wn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pr(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Wn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pr(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?Vn[Gn.PRERELEASELOOSE]:Vn[Gn.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),Pr(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};wi.exports=Ir});var Zt=Ee((mE,Pi)=>{"use strict";var ki=xn(),jc=(r,e,t)=>new ki(r,t).compare(new ki(e,t));Pi.exports=jc});var Mr=Ee((gE,Ii)=>{"use strict";var Uc=Zt(),zc=(r,e,t)=>Uc(r,e,t)<=0;Ii.exports=zc});var Fi=Ee((yE,Mi)=>{"use strict";var Wc=xn(),Xc=(r,e)=>new Wc(r,e).major;Mi.exports=Xc});var Bi=Ee((vE,Hi)=>{"use strict";var Fr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Hi.exports=Fr});var Ui=Ee((bE,ji)=>{"use strict";var Vc=Zt(),Gc=(r,e,t)=>Vc(r,e,t)===0;ji.exports=Gc});var Wi=Ee((EE,zi)=>{"use strict";var Jc=Zt(),Kc=(r,e,t)=>Jc(r,e,t)!==0;zi.exports=Kc});var Vi=Ee((SE,Xi)=>{"use strict";var Yc=Zt(),Qc=(r,e,t)=>Yc(r,e,t)>0;Xi.exports=Qc});var Ji=Ee(($E,Gi)=>{"use strict";var Zc=Zt(),qc=(r,e,t)=>Zc(r,e,t)>=0;Gi.exports=qc});var Hr=Ee((xE,Ki)=>{"use strict";var _c=Zt(),eu=(r,e,t)=>_c(r,e,t)<0;Ki.exports=eu});var Qi=Ee((TE,Yi)=>{"use strict";var tu=Ui(),nu=Wi(),ru=Vi(),su=Ji(),iu=Hr(),ou=Mr(),au=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return tu(r,t,n);case"!=":return nu(r,t,n);case">":return ru(r,t,n);case">=":return su(r,t,n);case"<":return iu(r,t,n);case"<=":return ou(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Yi.exports=au});var ro=Ee((CE,no)=>{"use strict";var Tn=Symbol("SemVer ANY"),Ur=class r{static get ANY(){return Tn}constructor(e,t){if(t=Zi(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),jr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Tn?this.value="":this.value=this.operator+this.semver.version,jr("comp",this)}parse(e){let t=this.options.loose?qi[_i.COMPARATORLOOSE]:qi[_i.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new eo(n[2],this.options.loose):this.semver=Tn}toString(){return this.value}test(e){if(jr("Comparator.test",e,this.options.loose),this.semver===Tn||e===Tn)return!0;if(typeof e=="string")try{e=new eo(e,this.options)}catch{return!1}return Br(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new to(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new to(this.value,t).test(e.semver):(t=Zi(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Br(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Br(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};no.exports=Ur;var Zi=zn(),{safeRe:qi,t:_i}=Un(),Br=Qi(),jr=$n(),eo=xn(),to=zr()});var zr=Ee((LE,ao)=>{"use strict";var lu=/\s+/g,Wr=class r{constructor(e,t){if(t=uu(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Xr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(lu," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!io(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&yu(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&mu)|(this.options.loose&&gu))+":"+e,s=so.get(n);if(s)return s;let i=this.options.loose,o=i?Je[Ue.HYPHENRANGELOOSE]:Je[Ue.HYPHENRANGE];e=e.replace(o,Ru(this.options.includePrerelease)),$e("hyphen replace",e),e=e.replace(Je[Ue.COMPARATORTRIM],fu),$e("comparator trim",e),e=e.replace(Je[Ue.TILDETRIM],pu),$e("tilde trim",e),e=e.replace(Je[Ue.CARETTRIM],hu),$e("caret trim",e);let a=e.split(" ").map(p=>vu(p,this.options)).join(" ").split(/\s+/).map(p=>Lu(p,this.options));i&&(a=a.filter(p=>($e("loose invalid filter",p,this.options),!!p.match(Je[Ue.COMPARATORLOOSE])))),$e("range list",a);let u=new Map,c=a.map(p=>new Xr(p,this.options));for(let p of c){if(io(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return so.set(n,f),f}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>oo(n,t)&&e.set.some(s=>oo(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new du(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Au(this.set[t],e,this.options))return!0;return!1}};ao.exports=Wr;var cu=Bi(),so=new cu,uu=zn(),Xr=ro(),$e=$n(),du=xn(),{safeRe:Je,t:Ue,comparatorTrimReplace:fu,tildeTrimReplace:pu,caretTrimReplace:hu}=Un(),{FLAG_INCLUDE_PRERELEASE:mu,FLAG_LOOSE:gu}=jn(),io=r=>r.value==="<0.0.0-0",yu=r=>r.value==="",oo=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},vu=(r,e)=>(r=r.replace(Je[Ue.BUILD],""),$e("comp",r,e),r=Su(r,e),$e("caret",r),r=bu(r,e),$e("tildes",r),r=xu(r,e),$e("xrange",r),r=Cu(r,e),$e("stars",r),r),Ke=r=>!r||r.toLowerCase()==="x"||r==="*",bu=(r,e)=>r.trim().split(/\s+/).map(t=>Eu(t,e)).join(" "),Eu=(r,e)=>{let t=e.loose?Je[Ue.TILDELOOSE]:Je[Ue.TILDE];return r.replace(t,(n,s,i,o,a)=>{$e("tilde",r,n,s,i,o,a);let u;return Ke(s)?u="":Ke(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:Ke(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?($e("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,$e("tilde return",u),u})},Su=(r,e)=>r.trim().split(/\s+/).map(t=>$u(t,e)).join(" "),$u=(r,e)=>{$e("caret",r,e);let t=e.loose?Je[Ue.CARETLOOSE]:Je[Ue.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{$e("caret",r,s,i,o,a,u);let c;return Ke(i)?c="":Ke(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ke(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?($e("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):($e("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),$e("caret return",c),c})},xu=(r,e)=>($e("replaceXRanges",r,e),r.split(/\s+/).map(t=>Tu(t,e)).join(" ")),Tu=(r,e)=>{r=r.trim();let t=e.loose?Je[Ue.XRANGELOOSE]:Je[Ue.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{$e("xRange",r,n,s,i,o,a,u);let c=Ke(i),f=c||Ke(o),p=f||Ke(a),$=p;return s==="="&&$&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&$?(f&&(o=0),a=0,s===">"?(s=">=",f?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",f?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):f?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),$e("xRange return",n),n})},Cu=(r,e)=>($e("replaceStars",r,e),r.trim().replace(Je[Ue.STAR],"")),Lu=(r,e)=>($e("replaceGTE0",r,e),r.trim().replace(Je[e.includePrerelease?Ue.GTE0PRE:Ue.GTE0],"")),Ru=r=>(e,t,n,s,i,o,a,u,c,f,p,$)=>(Ke(n)?t="":Ke(s)?t=`>=${n}.0.0${r?"-0":""}`:Ke(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Ke(c)?u="":Ke(f)?u=`<${+c+1}.0.0-0`:Ke(p)?u=`<${c}.${+f+1}.0-0`:$?u=`<=${c}.${f}.${p}-${$}`:r?u=`<${c}.${f}.${+p+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Au=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if($e(r[n].semver),r[n].semver!==Xr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var co=Ee((RE,lo)=>{"use strict";var Ou=zr(),Nu=(r,e,t)=>{try{e=new Ou(e,t)}catch{return!1}return e.test(r)};lo.exports=Nu});var Xu={};Qr(Xu,{createNodeLogger:()=>ls,createNodeSys:()=>wo,setupNodeProcess:()=>oi});module.exports=zo(Xu);var On=xe(require("./graceful-fs.js")),as=xe(require("path"));var ee=xe(rs());var sr=["debug","info","warn","error"];var os=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(nn(e,"info")){let d=St(l,r.getColumns());u(d),console.log(d.join(`
|
|
36
36
|
`))}I("I",l)},u=l=>{if(l.length>0){let d=ss();l[0]=(0,ee.dim)(d)+l[0].slice(d.length)}},c=(...l)=>{if(nn(e,"warn")){let d=St(l,r.getColumns());f(d),console.warn(`
|
|
37
37
|
`+d.join(`
|
|
38
38
|
`)+`
|
|
@@ -47,7 +47,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof A))re
|
|
|
47
47
|
`))}I("D",[`${l} ${d}`])}else{let M=St([k],r.getColumns());u(M),console.log(M.join(`
|
|
48
48
|
`)),I("I",[`${l} ${d}`]),D&&D.push(`${l} ${d}`)}b&&console.log("")},C=(l,d=!1,m)=>{let v=Date.now(),b=()=>Date.now()-v,O={duration:b,finish:(D,k,M,j)=>{let W=b(),Z;return W>1e3?Z="in "+(W/1e3).toFixed(2)+" s":parseFloat(W.toFixed(3))>0?Z="in "+W+" ms":Z="in less than 1 ms",w(D,Z,k,!!M,!!j,d,m),W}};return E(l,d,m),O},I=(l,d)=>{if(t){let m=new Date,v=""+("0"+m.getHours()).slice(-2)+":"+("0"+m.getMinutes()).slice(-2)+":"+("0"+m.getSeconds()).slice(-2)+"."+("0"+Math.floor(m.getMilliseconds()/1e3*10))+" "+("000"+(r.memoryUsage()/1e6).toFixed(1)).slice(-6)+"MB "+l+" "+d.join(", ");n.push(v)}},A=l=>{if(t)try{I("F",["--------------------------------------"]),r.writeLogs(t,n.join(`
|
|
49
49
|
`),l)}catch{}n.length=0},g=l=>{ee.default.enabled=l},S=(l,d)=>{if(!l||l.length===0)return;let m=[""];l.forEach(v=>{m=m.concat(R(v,d))}),console.log(m.join(`
|
|
50
|
-
`))},R=(l,d)=>{let m=St([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let b=l.relFilePath;return typeof b!="string"&&(b=l.absFilePath),typeof b=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(b),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&m.unshift(Ot+v),m.push(""),l.lines&&l.lines.length&&(Ko(l.lines).forEach(D=>{if(!Qo(D.text))return;let k="";for(D.lineNumber>-1&&(k=`L${D.lineNumber}: `);k.length<Ot.length;)k=" "+k;let M=D.text;D.errorCharStart>-1&&(M=L(M,D.errorCharStart,D.errorLength)),k=(0,ee.dim)(k),l.language==="typescript"||l.language==="javascript"?k+=P(M):l.language==="scss"||l.language==="css"?k+=N(M):k+=M,m.push(k)}),m.push("")),l.level==="error"?$(m):l.level==="warn"?f(m):l.level==="debug"?h(m):u(m),l.debugText!=null&&e==="debug"&&(m.push(l.debugText),h(St([l.debugText],r.getColumns()))),m},L=(l,d,m=0)=>{let v=l.length-d+m-1;for(;l.length+Ot.length>r.getColumns();)if(d>l.length-d+m&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let b=[],O=Math.max(l.length,d+m);for(let D=0;D<O;D++){let k=l.charAt(D);D>=d&&D<d+m&&(k=(0,ee.bgRed)(k===""?" ":k)),b.push(k)}return b.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(m=>Zo.indexOf(m)>-1?(0,ee.cyan)(m):m).join(" "),N=l=>{let d=!0,m="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",b=[];for(let O=0;O<l.length;O++){let D=l.charAt(O);if(D===";"||D==="{"?d=!0:v.indexOf(D)>-1&&(d=!1),d&&m.indexOf(D.toLowerCase())>-1){b.push((0,ee.cyan)(D));continue}b.push(D)}return b.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:C,debug:x,emoji:r.emoji,enableColors:g,error:p,getLevel:i,info:a,printDiagnostics:S,setLevel:s,setLogFilePath:o,warn:c,writeLogs:A,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},nn=(r,e)=>sr.indexOf(e)>=sr.indexOf(r),ss=()=>{let r=new Date,e=is(r.getMinutes()),t=is(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},is=r=>("0"+r.toString()).slice(-2),St=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Ot;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Ot):Ot.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Ot+i),s=Ot):i.length+s.length>e-1?(t.push(s),s=Ot+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Ko=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Yo(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Yo=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},Qo=r=>r?(r=r.trim(),r.length>0):!1,Zo=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Ot=" ";var ls=()=>{let r=qo();return os(r)};function qo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var p,$;let f=($=(p=process==null?void 0:process.stdout)==null?void 0:p.columns)!=null?$:80;return Math.max(Math.min(f,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>as.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=p=>(p=p.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise($=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(p,$)}))),f=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:f}}}}var us=()=>{};var ir=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var ds=r=>typeof r=="function";var Vt=r=>typeof r=="string";var or=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var mn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var ar=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return Vt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!lr(n.messageText)&&r.push(n),n};var lr=r=>r===Jt,Jt="task canceled";var Se=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=ia(r.trim());let t=fa(r,ca(r)),n=la(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},ia=r=>r.replace(aa,"/"),oa="\\",fs="://",aa=/\\/g,la=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},ca=r=>{let e=ua(r);return e<0?~e:e},ua=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":oa,2);return n<0?r.length:n+1}if(ps(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(fs);if(t!==-1){let n=t+fs.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&ps(r.charCodeAt(s+1))){let a=da(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},ps=r=>r>=97&&r<=122||r>=65&&r<=90,da=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},fa=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var Us=xe(Cs(),1);var yn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var La={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},vn=r=>r.replace(/[[\]\\-]/g,"\\$&"),Ra=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ls=r=>r.join(""),Rs=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,f=t,p="";e:for(;i<r.length;){let E=r.charAt(i);if((E==="!"||E==="^")&&i===t+1){c=!0,i++;continue}if(E==="]"&&o&&!u){f=i+1;break}if(o=!0,E==="\\"&&!u){u=!0,i++;continue}if(E==="["&&!u){for(let[T,[w,C,I]]of Object.entries(La))if(r.startsWith(T,i)){if(p)return["$.",!1,r.length-t,!0];i+=T.length,I?s.push(w):n.push(w),a=a||C;continue e}}if(u=!1,p){E>p?n.push(vn(p)+"-"+vn(E)):E===p&&n.push(vn(E)),p="",i++;continue}if(r.startsWith("-]",i+1)){n.push(vn(E+"-")),i+=2;continue}if(r.startsWith("-",i+1)){p=E,i+=2;continue}n.push(vn(E)),i++}if(f<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let E=n[0].length===2?n[0].slice(-1):n[0];return[Ra(E),!1,f-t,!1]}let $="["+(c?"^":"")+Ls(n)+"]",x="["+(c?"":"^")+Ls(s)+"]";return[n.length&&s.length?"("+$+"|"+x+")":n.length?$:x,a,f-t,!0]};var bt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Qe,Aa=new Set(["!","?","+","*","@"]),pr=r=>Aa.has(r),As=r=>pr(r.type),Oa=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Na=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Da=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Os=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),wa="(?!(?:^|/)\\.\\.?(?:$|/))",Dn="(?!\\.)",ka=new Set(["[","."]),Pa=new Set(["..","."]),Ia=new Set("().*{}+?[]^$\\!"),Ma=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yr="[^/]",Ns=yr+"*?",Ds=yr+"+?",Oe,ke,Nt,ne,Ce,Ft,Kt,Ht,$t,xt,rn,ce,ws,jt,wn,ks,hr,kn,Ps,mr,Is,Ms,Fs,Pn,gr,Hs,Bt=class{constructor(e,t,n={}){Fe(this,ce);Te(this,"type");Fe(this,Oe);Fe(this,ke);Fe(this,Nt,!1);Fe(this,ne,[]);Fe(this,Ce);Fe(this,Ft);Fe(this,Kt);Fe(this,Ht,!1);Fe(this,$t);Fe(this,xt);Fe(this,rn,!1);this.type=e,e&&de(this,ke,!0),de(this,Ce,t),de(this,Oe,B(this,Ce)?B(B(this,Ce),Oe):this),de(this,$t,B(this,Oe)===this?n:B(B(this,Oe),$t)),de(this,Kt,B(this,Oe)===this?[]:B(B(this,Oe),Kt)),e==="!"&&!B(B(this,Oe),Ht)&&B(this,Kt).push(this),de(this,Ft,B(this,Ce)?B(B(this,Ce),ne).length:0)}get hasMagic(){if(B(this,ke)!==void 0)return B(this,ke);for(let e of B(this,ne))if(typeof e!="string"&&(e.type||e.hasMagic))return de(this,ke,!0);return B(this,ke)}toString(){return B(this,xt)!==void 0?B(this,xt):this.type?de(this,xt,this.type+"("+B(this,ne).map(e=>String(e)).join("|")+")"):de(this,xt,B(this,ne).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Qe&&B(t,Ce)===this))throw new Error("invalid part: "+t);B(this,ne).push(t)}}toJSON(){var t;let e=this.type===null?B(this,ne).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...B(this,ne).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===B(this,Oe)||B(B(this,Oe),Ht)&&((t=B(this,Ce))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(B(this,Oe)===this)return!0;if(!((t=B(this,Ce))!=null&&t.isStart()))return!1;if(B(this,Ft)===0)return!0;let e=B(this,Ce);for(let n=0;n<B(this,Ft);n++){let s=B(e,ne)[n];if(!(s instanceof Qe&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(B(this,Oe)===this||((t=B(this,Ce))==null?void 0:t.type)==="!")return!0;if(!((n=B(this,Ce))!=null&&n.isEnd()))return!1;if(!this.type)return(s=B(this,Ce))==null?void 0:s.isEnd();let e=B(this,Ce)?B(B(this,Ce),ne).length:0;return B(this,Ft)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Qe(this.type,e);for(let n of B(this,ne))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Qe(null,void 0,t);return le(s=Qe,jt,wn).call(s,e,n,0,t,0),n}toMMPattern(){if(this!==B(this,Oe))return B(this,Oe).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||B(this,ke)||B(this,$t).nocase&&!B(this,$t).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(B(this,$t).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return B(this,$t)}toRegExpSource(e){var u;let t=e!=null?e:!!B(this,$t).dot;if(B(this,Oe)===this&&(le(this,ce,Pn).call(this),le(this,ce,ws).call(this)),!As(this)){let c=this.isStart()&&this.isEnd(),f=B(this,ne).map(h=>{var I;let[E,T,w,C]=typeof h=="string"?le(I=Qe,jt,Hs).call(I,h,B(this,ke),c):h.toRegExpSource(e);return de(this,ke,B(this,ke)||w),de(this,Nt,B(this,Nt)||C),E}).join(""),p="";if(this.isStart()&&typeof B(this,ne)[0]=="string"&&!(B(this,ne).length===1&&Pa.has(B(this,ne)[0]))){let E=ka,T=t&&E.has(f.charAt(0))||f.startsWith("\\.")&&E.has(f.charAt(2))||f.startsWith("\\.\\.")&&E.has(f.charAt(4)),w=!t&&!e&&E.has(f.charAt(0));p=T?wa:w?Dn:""}let $="";return this.isEnd()&&B(B(this,Oe),Ht)&&((u=B(this,Ce))==null?void 0:u.type)==="!"&&($="(?:$|\\/)"),[p+f+$,bt(f),de(this,ke,!!B(this,ke)),B(this,Nt)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=le(this,ce,gr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString(),f=this;return de(f,ne,[c]),f.type=null,de(f,ke,void 0),[c,bt(this.toString()),!1,!1]}let o=!n||e||t||!Dn?"":le(this,ce,gr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&B(this,rn))a=(this.isStart()&&!t?Dn:"")+Ds;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Dn:"")+Ns+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,bt(i),de(this,ke,!!B(this,ke)),B(this,Nt)]}};Oe=new WeakMap,ke=new WeakMap,Nt=new WeakMap,ne=new WeakMap,Ce=new WeakMap,Ft=new WeakMap,Kt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,xt=new WeakMap,rn=new WeakMap,ce=new WeakSet,ws=function(){if(this!==B(this,Oe))throw new Error("should only call on root");if(B(this,Ht))return this;this.toString(),de(this,Ht,!0);let e;for(;e=B(this,Kt).pop();){if(e.type!=="!")continue;let t=e,n=B(t,Ce);for(;n;){for(let s=B(t,Ft)+1;!n.type&&s<B(n,ne).length;s++)for(let i of B(e,ne)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(B(n,ne)[s])}t=n,n=B(t,Ce)}}return this},jt=new WeakSet,wn=function(e,t,n,s,i){var E,T,w,C,I;let o=(E=s.maxExtglobRecursion)!=null?E:2,a=!1,u=!1,c=-1,f=!1;if(t.type===null){let A=n,g="";for(;A<e.length;){let S=e.charAt(A++);if(a||S==="\\"){a=!a,g+=S;continue}if(u){A===c+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(A===c+2&&f)&&(u=!1),g+=S;continue}else if(S==="["){u=!0,c=A,f=!1,g+=S;continue}if(!s.noext&&pr(S)&&e.charAt(A)==="("&&i<=o){t.push(g),g="";let L=new Qe(S,t);A=le(T=Qe,jt,wn).call(T,e,L,A,s,i+1),t.push(L);continue}g+=S}return t.push(g),A}let p=n+1,$=new Qe(null,t),x=[],h="";for(;p<e.length;){let A=e.charAt(p++);if(a||A==="\\"){a=!a,h+=A;continue}if(u){p===c+1?(A==="^"||A==="!")&&(f=!0):A==="]"&&!(p===c+2&&f)&&(u=!1),h+=A;continue}else if(A==="["){u=!0,c=p,f=!1,h+=A;continue}if(pr(A)&&e.charAt(p)==="("&&(i<=o||t&&le(w=t,ce,kn).call(w,A))){let S=t&&le(C=t,ce,kn).call(C,A)?0:1;$.push(h),h="";let R=new Qe(A,$);$.push(R),p=le(I=Qe,jt,wn).call(I,e,R,p,s,i+S);continue}if(A==="|"){$.push(h),h="",x.push($),$=new Qe(null,t);continue}if(A===")")return h===""&&B(t,ne).length===0&&de(t,rn,!0),$.push(h),h="",t.push(...x,$),p;h+=A}return t.type=null,de(t,ke,void 0),de(t,ne,[e.substring(n-1)]),p},ks=function(e){return le(this,ce,hr).call(this,e,Na)},hr=function(e,t=Oa){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null)return!1;let n=B(e,ne)[0];return!n||typeof n!="object"||n.type===null?!1:le(this,ce,kn).call(this,n.type,t)},kn=function(e,t=Da){var n;return!!((n=t.get(this.type))!=null&&n.includes(e))},Ps=function(e,t){let n=B(e,ne)[0],s=new Qe(null,n,this.options);B(s,ne).push(""),n.push(s),le(this,ce,mr).call(this,e,t)},mr=function(e,t){let n=B(e,ne)[0];B(this,ne).splice(t,1,...B(n,ne));for(let s of B(n,ne))typeof s=="object"&&de(s,Ce,this);de(this,xt,void 0)},Is=function(e){let t=Os.get(this.type);return!!(t!=null&&t.has(e))},Ms=function(e){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null||B(this,ne).length!==1)return!1;let t=B(e,ne)[0];return!t||typeof t!="object"||t.type===null?!1:le(this,ce,Is).call(this,t.type)},Fs=function(e){let t=Os.get(this.type),n=B(e,ne)[0],s=t==null?void 0:t.get(n.type);if(!s)return!1;de(this,ne,B(n,ne));for(let i of B(this,ne))typeof i=="object"&&de(i,Ce,this);this.type=s,de(this,xt,void 0),de(this,rn,!1)},Pn=function(){var e,t;if(As(this)){let n=0,s=!1;do{s=!0;for(let i=0;i<B(this,ne).length;i++){let o=B(this,ne)[i];typeof o=="object"&&(le(t=o,ce,Pn).call(t),le(this,ce,hr).call(this,o)?(s=!1,le(this,ce,mr).call(this,o,i)):le(this,ce,ks).call(this,o)?(s=!1,le(this,ce,Ps).call(this,o,i)):le(this,ce,Ms).call(this,o)&&(s=!1,le(this,ce,Fs).call(this,o)))}}while(!s&&++n<10)}else for(let n of B(this,ne))typeof n=="object"&&le(e=n,ce,Pn).call(e);de(this,xt,void 0)},gr=function(e){return B(this,ne).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return de(this,Nt,B(this,Nt)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Hs=function(e,t,n=!1){let s=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let c=e.charAt(u);if(s){s=!1,i+=(Ia.has(c)?"\\":"")+c,a=!1;continue}if(c==="\\"){u===e.length-1?i+="\\\\":s=!0;continue}if(c==="["){let[f,p,$,x]=Rs(e,u);if($){i+=f,o=o||p,u+=$-1,t=t||x,a=!1;continue}}if(c==="*"){if(a)continue;a=!0,i+=n&&/^[*]+$/.test(e)?Ds:Ns,t=!0;continue}else a=!1;if(c==="?"){i+=yr,t=!0;continue}i+=Ma(c)}return[i,bt(e),!!t,o]},Fe(Bt,jt);Qe=Bt;var sn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var je=(r,e,t={})=>(yn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Dt(e,t).match(r)),Fa=/^\*+([^+@!?\*\[\(]*)$/,Ha=r=>e=>!e.startsWith(".")&&e.endsWith(r),Ba=r=>e=>e.endsWith(r),ja=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),Ua=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),za=/^\*+\.\*+$/,Wa=r=>!r.startsWith(".")&&r.includes("."),Xa=r=>r!=="."&&r!==".."&&r.includes("."),Ga=/^\.\*+$/,Va=r=>r!=="."&&r!==".."&&r.startsWith("."),Ja=/^\*+$/,Ka=r=>r.length!==0&&!r.startsWith("."),Ya=r=>r.length!==0&&r!=="."&&r!=="..",Qa=/^\?+([^+@!?\*\[\(]*)?$/,Za=([r,e=""])=>{let t=zs([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},qa=([r,e=""])=>{let t=Ws([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},_a=([r,e=""])=>{let t=Ws([r]);return e?n=>t(n)&&n.endsWith(e):t},el=([r,e=""])=>{let t=zs([r]);return e?n=>t(n)&&n.endsWith(e):t},zs=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Ws=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Xs=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Bs={win32:{sep:"\\"},posix:{sep:"/"}},tl=Xs==="win32"?Bs.win32.sep:Bs.posix.sep;je.sep=tl;var He=Symbol("globstar **");je.GLOBSTAR=He;var nl="[^/]",rl=nl+"*?",sl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",il="(?:(?!(?:\\/|^)\\.).)*?",ol=(r,e={})=>t=>je(t,r,e);je.filter=ol;var ct=(r,e={})=>Object.assign({},r,e),al=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return je;let e=je;return Object.assign((n,s,i={})=>e(n,s,ct(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,ct(r,i))}static defaults(s){return e.defaults(ct(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,ct(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,ct(r,i))}},unescape:(n,s={})=>e.unescape(n,ct(r,s)),escape:(n,s={})=>e.escape(n,ct(r,s)),filter:(n,s={})=>e.filter(n,ct(r,s)),defaults:n=>e.defaults(ct(r,n)),makeRe:(n,s={})=>e.makeRe(n,ct(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,ct(r,s)),match:(n,s,i={})=>e.match(n,s,ct(r,i)),sep:e.sep,GLOBSTAR:He})};je.defaults=al;var Gs=(r,e={})=>(yn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Us.default)(r));je.braceExpand=Gs;var ll=(r,e={})=>new Dt(r,e).makeRe();je.makeRe=ll;var cl=(r,e,t={})=>{let n=new Dt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};je.match=cl;var js=/[?*]|[+@!]\(.*?\)|\[|\]/,ul=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),st,Vs,vr,on,Dt=class{constructor(e,t={}){Fe(this,st);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");var n;yn(e),t=t||{},this.options=t,this.maxGlobstarRecursion=(n=t.maxGlobstarRecursion)!=null?n:200,this.pattern=e,this.platform=t.platform||Xs,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!js.test(i[2]))&&!js.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(c)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let f=n.slice(0);f[s]="**",e.push(f),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(s){e[t]=[],e[n]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),p=u?3:a?0:void 0,$=f?3:c?0:void 0;if(typeof p=="number"&&typeof $=="number"){let[x,h]=[e[p],t[$]];x.toLowerCase()===h.toLowerCase()&&(t[$]=x,i=$,s=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(He)?le(this,st,Vs).call(this,e,t,n,s,i):le(this,st,on).call(this,e,t,n,s,i)}braceExpand(){return Gs(this.pattern,this.options)}parse(e){yn(e);let t=this.options;if(e==="**")return He;if(e==="")return"";let n,s=null;(n=e.match(Ja))?s=t.dot?Ya:Ka:(n=e.match(Fa))?s=(t.nocase?t.dot?Ua:ja:t.dot?Ba:Ha)(n[1]):(n=e.match(Qa))?s=(t.nocase?t.dot?qa:Za:t.dot?_a:el)(n):(n=e.match(za))?s=t.dot?Xa:Wa:(n=e.match(Ga))&&(s=Va);let i=Bt.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?rl:t.dot?sl:il,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(f=>{if(f instanceof RegExp)for(let p of f.flags.split(""))s.add(p);return typeof f=="string"?ul(f):f===He?He:f._src});return c.forEach((f,p)=>{let $=c[p+1],x=c[p-1];f!==He||x===He||(x===void 0?$!==void 0&&$!==He?c[p+1]="(?:\\/|"+n+"\\/)?"+$:c[p]=n:$===void 0?c[p-1]=x+"(?:\\/|"+n+")?":$!==He&&(c[p-1]=x+"(?:\\/|\\/"+n+"\\/)"+$,c[p+1]=He))}),c.filter(f=>f!==He).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return je.defaults(e).Minimatch}};st=new WeakSet,Vs=function(e,t,n,s,i){let o=t.indexOf(He,i),a=t.lastIndexOf(He),[u,c,f]=n?[t.slice(i,o),t.slice(o+1),[]]:[t.slice(i,o),t.slice(o+1,a),t.slice(a+1)];if(u.length){let C=e.slice(s,s+u.length);if(!le(this,st,on).call(this,C,u,n,0,0))return!1;s+=u.length}let p=0;if(f.length){if(f.length+s>e.length)return!1;let C=e.length-f.length;if(le(this,st,on).call(this,e,f,n,C,0))p=f.length;else{if(e[e.length-1]!==""||s+f.length===e.length||(C--,!le(this,st,on).call(this,e,f,n,C,0)))return!1;p=f.length+1}}if(!c.length){let C=!!p;for(let I=s;I<e.length-p;I++){let A=String(e[I]);if(C=!0,A==="."||A===".."||!this.options.dot&&A.startsWith("."))return!1}return n||C}let $=[[[],0]],x=$[0],h=0,E=[0];for(let C of c)C===He?(E.push(h),x=[[],0],$.push(x)):(x[0].push(C),h++);let T=$.length-1,w=e.length-p;for(let C of $)C[1]=w-(E[T--]+C[0].length);return!!le(this,st,vr).call(this,e,$,s,0,n,0,!!p)},vr=function(e,t,n,s,i,o,a){let u=t[s];if(!u){for(let p=n;p<e.length;p++){a=!0;let $=e[p];if($==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1}return a}let[c,f]=u;for(;n<=f;){if(le(this,st,on).call(this,e.slice(0,n+c.length),c,i,n,0)&&o<this.maxGlobstarRecursion){let x=le(this,st,vr).call(this,e,t,n+c.length,s+1,i,o+1,a);if(x!==!1)return x}let $=e[n];if($==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1;n++}return i||null},on=function(e,t,n,s,i){let o,a,u,c;for(o=s,a=i,c=e.length,u=t.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");let f=t[a],p=e[o];if(this.debug(t,f,p),f===!1||f===He)return!1;let $;if(typeof f=="string"?($=p===f,this.debug("string match",f,p,$)):($=f.test(p),this.debug("pattern match",f,p,$)),!$)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")};je.AST=Bt;je.Minimatch=Dt;je.escape=sn;je.unescape=bt;var Er={};Qr(Er,{err:()=>Js,map:()=>dl,ok:()=>br,unwrap:()=>fl,unwrapErr:()=>pl});var br=r=>({isOk:!0,isErr:!1,value:r}),Js=r=>({isOk:!1,isErr:!0,value:r});function dl(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>br(n)):br(t)}if(r.isErr){let t=r.value;return Js(t)}throw"should never get here"}var fl=r=>{if(r.isOk)return r.value;throw r.value},pl=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,propChangeCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,shadowSlotAssignmentManual:!1,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var ml={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var ep=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var it=typeof window<"u"?window:{},lp=it.HTMLElement||class{};var an=ie.shadowDom;var Sr=ie.constructableCSS?(()=>{try{return it.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1;/**
|
|
50
|
+
`))},R=(l,d)=>{let m=St([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let b=l.relFilePath;return typeof b!="string"&&(b=l.absFilePath),typeof b=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(b),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&m.unshift(Ot+v),m.push(""),l.lines&&l.lines.length&&(Ko(l.lines).forEach(D=>{if(!Qo(D.text))return;let k="";for(D.lineNumber>-1&&(k=`L${D.lineNumber}: `);k.length<Ot.length;)k=" "+k;let M=D.text;D.errorCharStart>-1&&(M=L(M,D.errorCharStart,D.errorLength)),k=(0,ee.dim)(k),l.language==="typescript"||l.language==="javascript"?k+=P(M):l.language==="scss"||l.language==="css"?k+=N(M):k+=M,m.push(k)}),m.push("")),l.level==="error"?$(m):l.level==="warn"?f(m):l.level==="debug"?h(m):u(m),l.debugText!=null&&e==="debug"&&(m.push(l.debugText),h(St([l.debugText],r.getColumns()))),m},L=(l,d,m=0)=>{let v=l.length-d+m-1;for(;l.length+Ot.length>r.getColumns();)if(d>l.length-d+m&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let b=[],O=Math.max(l.length,d+m);for(let D=0;D<O;D++){let k=l.charAt(D);D>=d&&D<d+m&&(k=(0,ee.bgRed)(k===""?" ":k)),b.push(k)}return b.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(m=>Zo.indexOf(m)>-1?(0,ee.cyan)(m):m).join(" "),N=l=>{let d=!0,m="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",b=[];for(let O=0;O<l.length;O++){let D=l.charAt(O);if(D===";"||D==="{"?d=!0:v.indexOf(D)>-1&&(d=!1),d&&m.indexOf(D.toLowerCase())>-1){b.push((0,ee.cyan)(D));continue}b.push(D)}return b.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:C,debug:x,emoji:r.emoji,enableColors:g,error:p,getLevel:i,info:a,printDiagnostics:S,setLevel:s,setLogFilePath:o,warn:c,writeLogs:A,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},nn=(r,e)=>sr.indexOf(e)>=sr.indexOf(r),ss=()=>{let r=new Date,e=is(r.getMinutes()),t=is(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},is=r=>("0"+r.toString()).slice(-2),St=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Ot;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Ot):Ot.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Ot+i),s=Ot):i.length+s.length>e-1?(t.push(s),s=Ot+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Ko=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Yo(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Yo=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},Qo=r=>r?(r=r.trim(),r.length>0):!1,Zo=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Ot=" ";var ls=()=>{let r=qo();return os(r)};function qo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var p,$;let f=($=(p=process==null?void 0:process.stdout)==null?void 0:p.columns)!=null?$:80;return Math.max(Math.min(f,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>as.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=p=>(p=p.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise($=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(p,$)}))),f=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:f}}}}var us=()=>{};var ir=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var ds=r=>typeof r=="function";var Gt=r=>typeof r=="string";var or=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var mn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var ar=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return Gt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!lr(n.messageText)&&r.push(n),n};var lr=r=>r===Jt,Jt="task canceled";var Se=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=ia(r.trim());let t=fa(r,ca(r)),n=la(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},ia=r=>r.replace(aa,"/"),oa="\\",fs="://",aa=/\\/g,la=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},ca=r=>{let e=ua(r);return e<0?~e:e},ua=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":oa,2);return n<0?r.length:n+1}if(ps(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(fs);if(t!==-1){let n=t+fs.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&ps(r.charCodeAt(s+1))){let a=da(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},ps=r=>r>=97&&r<=122||r>=65&&r<=90,da=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},fa=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var Us=xe(Cs(),1);var yn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var La={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},vn=r=>r.replace(/[[\]\\-]/g,"\\$&"),Ra=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ls=r=>r.join(""),Rs=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,f=t,p="";e:for(;i<r.length;){let E=r.charAt(i);if((E==="!"||E==="^")&&i===t+1){c=!0,i++;continue}if(E==="]"&&o&&!u){f=i+1;break}if(o=!0,E==="\\"&&!u){u=!0,i++;continue}if(E==="["&&!u){for(let[T,[w,C,I]]of Object.entries(La))if(r.startsWith(T,i)){if(p)return["$.",!1,r.length-t,!0];i+=T.length,I?s.push(w):n.push(w),a=a||C;continue e}}if(u=!1,p){E>p?n.push(vn(p)+"-"+vn(E)):E===p&&n.push(vn(E)),p="",i++;continue}if(r.startsWith("-]",i+1)){n.push(vn(E+"-")),i+=2;continue}if(r.startsWith("-",i+1)){p=E,i+=2;continue}n.push(vn(E)),i++}if(f<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let E=n[0].length===2?n[0].slice(-1):n[0];return[Ra(E),!1,f-t,!1]}let $="["+(c?"^":"")+Ls(n)+"]",x="["+(c?"":"^")+Ls(s)+"]";return[n.length&&s.length?"("+$+"|"+x+")":n.length?$:x,a,f-t,!0]};var bt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Qe,Aa=new Set(["!","?","+","*","@"]),pr=r=>Aa.has(r),As=r=>pr(r.type),Oa=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Na=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Da=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Os=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),wa="(?!(?:^|/)\\.\\.?(?:$|/))",Dn="(?!\\.)",ka=new Set(["[","."]),Pa=new Set(["..","."]),Ia=new Set("().*{}+?[]^$\\!"),Ma=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yr="[^/]",Ns=yr+"*?",Ds=yr+"+?",Oe,ke,Nt,ne,Ce,Ft,Kt,Ht,$t,xt,rn,ce,ws,jt,wn,ks,hr,kn,Ps,mr,Is,Ms,Fs,Pn,gr,Hs,Bt=class{constructor(e,t,n={}){Fe(this,ce);Te(this,"type");Fe(this,Oe);Fe(this,ke);Fe(this,Nt,!1);Fe(this,ne,[]);Fe(this,Ce);Fe(this,Ft);Fe(this,Kt);Fe(this,Ht,!1);Fe(this,$t);Fe(this,xt);Fe(this,rn,!1);this.type=e,e&&de(this,ke,!0),de(this,Ce,t),de(this,Oe,B(this,Ce)?B(B(this,Ce),Oe):this),de(this,$t,B(this,Oe)===this?n:B(B(this,Oe),$t)),de(this,Kt,B(this,Oe)===this?[]:B(B(this,Oe),Kt)),e==="!"&&!B(B(this,Oe),Ht)&&B(this,Kt).push(this),de(this,Ft,B(this,Ce)?B(B(this,Ce),ne).length:0)}get hasMagic(){if(B(this,ke)!==void 0)return B(this,ke);for(let e of B(this,ne))if(typeof e!="string"&&(e.type||e.hasMagic))return de(this,ke,!0);return B(this,ke)}toString(){return B(this,xt)!==void 0?B(this,xt):this.type?de(this,xt,this.type+"("+B(this,ne).map(e=>String(e)).join("|")+")"):de(this,xt,B(this,ne).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Qe&&B(t,Ce)===this))throw new Error("invalid part: "+t);B(this,ne).push(t)}}toJSON(){var t;let e=this.type===null?B(this,ne).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...B(this,ne).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===B(this,Oe)||B(B(this,Oe),Ht)&&((t=B(this,Ce))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(B(this,Oe)===this)return!0;if(!((t=B(this,Ce))!=null&&t.isStart()))return!1;if(B(this,Ft)===0)return!0;let e=B(this,Ce);for(let n=0;n<B(this,Ft);n++){let s=B(e,ne)[n];if(!(s instanceof Qe&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(B(this,Oe)===this||((t=B(this,Ce))==null?void 0:t.type)==="!")return!0;if(!((n=B(this,Ce))!=null&&n.isEnd()))return!1;if(!this.type)return(s=B(this,Ce))==null?void 0:s.isEnd();let e=B(this,Ce)?B(B(this,Ce),ne).length:0;return B(this,Ft)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Qe(this.type,e);for(let n of B(this,ne))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Qe(null,void 0,t);return le(s=Qe,jt,wn).call(s,e,n,0,t,0),n}toMMPattern(){if(this!==B(this,Oe))return B(this,Oe).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||B(this,ke)||B(this,$t).nocase&&!B(this,$t).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(B(this,$t).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return B(this,$t)}toRegExpSource(e){var u;let t=e!=null?e:!!B(this,$t).dot;if(B(this,Oe)===this&&(le(this,ce,Pn).call(this),le(this,ce,ws).call(this)),!As(this)){let c=this.isStart()&&this.isEnd(),f=B(this,ne).map(h=>{var I;let[E,T,w,C]=typeof h=="string"?le(I=Qe,jt,Hs).call(I,h,B(this,ke),c):h.toRegExpSource(e);return de(this,ke,B(this,ke)||w),de(this,Nt,B(this,Nt)||C),E}).join(""),p="";if(this.isStart()&&typeof B(this,ne)[0]=="string"&&!(B(this,ne).length===1&&Pa.has(B(this,ne)[0]))){let E=ka,T=t&&E.has(f.charAt(0))||f.startsWith("\\.")&&E.has(f.charAt(2))||f.startsWith("\\.\\.")&&E.has(f.charAt(4)),w=!t&&!e&&E.has(f.charAt(0));p=T?wa:w?Dn:""}let $="";return this.isEnd()&&B(B(this,Oe),Ht)&&((u=B(this,Ce))==null?void 0:u.type)==="!"&&($="(?:$|\\/)"),[p+f+$,bt(f),de(this,ke,!!B(this,ke)),B(this,Nt)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=le(this,ce,gr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString(),f=this;return de(f,ne,[c]),f.type=null,de(f,ke,void 0),[c,bt(this.toString()),!1,!1]}let o=!n||e||t||!Dn?"":le(this,ce,gr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&B(this,rn))a=(this.isStart()&&!t?Dn:"")+Ds;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Dn:"")+Ns+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,bt(i),de(this,ke,!!B(this,ke)),B(this,Nt)]}};Oe=new WeakMap,ke=new WeakMap,Nt=new WeakMap,ne=new WeakMap,Ce=new WeakMap,Ft=new WeakMap,Kt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,xt=new WeakMap,rn=new WeakMap,ce=new WeakSet,ws=function(){if(this!==B(this,Oe))throw new Error("should only call on root");if(B(this,Ht))return this;this.toString(),de(this,Ht,!0);let e;for(;e=B(this,Kt).pop();){if(e.type!=="!")continue;let t=e,n=B(t,Ce);for(;n;){for(let s=B(t,Ft)+1;!n.type&&s<B(n,ne).length;s++)for(let i of B(e,ne)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(B(n,ne)[s])}t=n,n=B(t,Ce)}}return this},jt=new WeakSet,wn=function(e,t,n,s,i){var E,T,w,C,I;let o=(E=s.maxExtglobRecursion)!=null?E:2,a=!1,u=!1,c=-1,f=!1;if(t.type===null){let A=n,g="";for(;A<e.length;){let S=e.charAt(A++);if(a||S==="\\"){a=!a,g+=S;continue}if(u){A===c+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(A===c+2&&f)&&(u=!1),g+=S;continue}else if(S==="["){u=!0,c=A,f=!1,g+=S;continue}if(!s.noext&&pr(S)&&e.charAt(A)==="("&&i<=o){t.push(g),g="";let L=new Qe(S,t);A=le(T=Qe,jt,wn).call(T,e,L,A,s,i+1),t.push(L);continue}g+=S}return t.push(g),A}let p=n+1,$=new Qe(null,t),x=[],h="";for(;p<e.length;){let A=e.charAt(p++);if(a||A==="\\"){a=!a,h+=A;continue}if(u){p===c+1?(A==="^"||A==="!")&&(f=!0):A==="]"&&!(p===c+2&&f)&&(u=!1),h+=A;continue}else if(A==="["){u=!0,c=p,f=!1,h+=A;continue}if(pr(A)&&e.charAt(p)==="("&&(i<=o||t&&le(w=t,ce,kn).call(w,A))){let S=t&&le(C=t,ce,kn).call(C,A)?0:1;$.push(h),h="";let R=new Qe(A,$);$.push(R),p=le(I=Qe,jt,wn).call(I,e,R,p,s,i+S);continue}if(A==="|"){$.push(h),h="",x.push($),$=new Qe(null,t);continue}if(A===")")return h===""&&B(t,ne).length===0&&de(t,rn,!0),$.push(h),h="",t.push(...x,$),p;h+=A}return t.type=null,de(t,ke,void 0),de(t,ne,[e.substring(n-1)]),p},ks=function(e){return le(this,ce,hr).call(this,e,Na)},hr=function(e,t=Oa){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null)return!1;let n=B(e,ne)[0];return!n||typeof n!="object"||n.type===null?!1:le(this,ce,kn).call(this,n.type,t)},kn=function(e,t=Da){var n;return!!((n=t.get(this.type))!=null&&n.includes(e))},Ps=function(e,t){let n=B(e,ne)[0],s=new Qe(null,n,this.options);B(s,ne).push(""),n.push(s),le(this,ce,mr).call(this,e,t)},mr=function(e,t){let n=B(e,ne)[0];B(this,ne).splice(t,1,...B(n,ne));for(let s of B(n,ne))typeof s=="object"&&de(s,Ce,this);de(this,xt,void 0)},Is=function(e){let t=Os.get(this.type);return!!(t!=null&&t.has(e))},Ms=function(e){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null||B(this,ne).length!==1)return!1;let t=B(e,ne)[0];return!t||typeof t!="object"||t.type===null?!1:le(this,ce,Is).call(this,t.type)},Fs=function(e){let t=Os.get(this.type),n=B(e,ne)[0],s=t==null?void 0:t.get(n.type);if(!s)return!1;de(this,ne,B(n,ne));for(let i of B(this,ne))typeof i=="object"&&de(i,Ce,this);this.type=s,de(this,xt,void 0),de(this,rn,!1)},Pn=function(){var e,t;if(As(this)){let n=0,s=!1;do{s=!0;for(let i=0;i<B(this,ne).length;i++){let o=B(this,ne)[i];typeof o=="object"&&(le(t=o,ce,Pn).call(t),le(this,ce,hr).call(this,o)?(s=!1,le(this,ce,mr).call(this,o,i)):le(this,ce,ks).call(this,o)?(s=!1,le(this,ce,Ps).call(this,o,i)):le(this,ce,Ms).call(this,o)&&(s=!1,le(this,ce,Fs).call(this,o)))}}while(!s&&++n<10)}else for(let n of B(this,ne))typeof n=="object"&&le(e=n,ce,Pn).call(e);de(this,xt,void 0)},gr=function(e){return B(this,ne).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return de(this,Nt,B(this,Nt)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Hs=function(e,t,n=!1){let s=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let c=e.charAt(u);if(s){s=!1,i+=(Ia.has(c)?"\\":"")+c,a=!1;continue}if(c==="\\"){u===e.length-1?i+="\\\\":s=!0;continue}if(c==="["){let[f,p,$,x]=Rs(e,u);if($){i+=f,o=o||p,u+=$-1,t=t||x,a=!1;continue}}if(c==="*"){if(a)continue;a=!0,i+=n&&/^[*]+$/.test(e)?Ds:Ns,t=!0;continue}else a=!1;if(c==="?"){i+=yr,t=!0;continue}i+=Ma(c)}return[i,bt(e),!!t,o]},Fe(Bt,jt);Qe=Bt;var sn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var je=(r,e,t={})=>(yn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Dt(e,t).match(r)),Fa=/^\*+([^+@!?\*\[\(]*)$/,Ha=r=>e=>!e.startsWith(".")&&e.endsWith(r),Ba=r=>e=>e.endsWith(r),ja=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),Ua=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),za=/^\*+\.\*+$/,Wa=r=>!r.startsWith(".")&&r.includes("."),Xa=r=>r!=="."&&r!==".."&&r.includes("."),Va=/^\.\*+$/,Ga=r=>r!=="."&&r!==".."&&r.startsWith("."),Ja=/^\*+$/,Ka=r=>r.length!==0&&!r.startsWith("."),Ya=r=>r.length!==0&&r!=="."&&r!=="..",Qa=/^\?+([^+@!?\*\[\(]*)?$/,Za=([r,e=""])=>{let t=zs([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},qa=([r,e=""])=>{let t=Ws([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},_a=([r,e=""])=>{let t=Ws([r]);return e?n=>t(n)&&n.endsWith(e):t},el=([r,e=""])=>{let t=zs([r]);return e?n=>t(n)&&n.endsWith(e):t},zs=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Ws=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Xs=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Bs={win32:{sep:"\\"},posix:{sep:"/"}},tl=Xs==="win32"?Bs.win32.sep:Bs.posix.sep;je.sep=tl;var He=Symbol("globstar **");je.GLOBSTAR=He;var nl="[^/]",rl=nl+"*?",sl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",il="(?:(?!(?:\\/|^)\\.).)*?",ol=(r,e={})=>t=>je(t,r,e);je.filter=ol;var ct=(r,e={})=>Object.assign({},r,e),al=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return je;let e=je;return Object.assign((n,s,i={})=>e(n,s,ct(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,ct(r,i))}static defaults(s){return e.defaults(ct(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,ct(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,ct(r,i))}},unescape:(n,s={})=>e.unescape(n,ct(r,s)),escape:(n,s={})=>e.escape(n,ct(r,s)),filter:(n,s={})=>e.filter(n,ct(r,s)),defaults:n=>e.defaults(ct(r,n)),makeRe:(n,s={})=>e.makeRe(n,ct(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,ct(r,s)),match:(n,s,i={})=>e.match(n,s,ct(r,i)),sep:e.sep,GLOBSTAR:He})};je.defaults=al;var Vs=(r,e={})=>(yn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Us.default)(r));je.braceExpand=Vs;var ll=(r,e={})=>new Dt(r,e).makeRe();je.makeRe=ll;var cl=(r,e,t={})=>{let n=new Dt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};je.match=cl;var js=/[?*]|[+@!]\(.*?\)|\[|\]/,ul=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),st,Gs,vr,on,Dt=class{constructor(e,t={}){Fe(this,st);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");var n;yn(e),t=t||{},this.options=t,this.maxGlobstarRecursion=(n=t.maxGlobstarRecursion)!=null?n:200,this.pattern=e,this.platform=t.platform||Xs,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!js.test(i[2]))&&!js.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(c)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let f=n.slice(0);f[s]="**",e.push(f),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(s){e[t]=[],e[n]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),p=u?3:a?0:void 0,$=f?3:c?0:void 0;if(typeof p=="number"&&typeof $=="number"){let[x,h]=[e[p],t[$]];x.toLowerCase()===h.toLowerCase()&&(t[$]=x,i=$,s=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(He)?le(this,st,Gs).call(this,e,t,n,s,i):le(this,st,on).call(this,e,t,n,s,i)}braceExpand(){return Vs(this.pattern,this.options)}parse(e){yn(e);let t=this.options;if(e==="**")return He;if(e==="")return"";let n,s=null;(n=e.match(Ja))?s=t.dot?Ya:Ka:(n=e.match(Fa))?s=(t.nocase?t.dot?Ua:ja:t.dot?Ba:Ha)(n[1]):(n=e.match(Qa))?s=(t.nocase?t.dot?qa:Za:t.dot?_a:el)(n):(n=e.match(za))?s=t.dot?Xa:Wa:(n=e.match(Va))&&(s=Ga);let i=Bt.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?rl:t.dot?sl:il,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(f=>{if(f instanceof RegExp)for(let p of f.flags.split(""))s.add(p);return typeof f=="string"?ul(f):f===He?He:f._src});return c.forEach((f,p)=>{let $=c[p+1],x=c[p-1];f!==He||x===He||(x===void 0?$!==void 0&&$!==He?c[p+1]="(?:\\/|"+n+"\\/)?"+$:c[p]=n:$===void 0?c[p-1]=x+"(?:\\/|"+n+")?":$!==He&&(c[p-1]=x+"(?:\\/|\\/"+n+"\\/)"+$,c[p+1]=He))}),c.filter(f=>f!==He).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return je.defaults(e).Minimatch}};st=new WeakSet,Gs=function(e,t,n,s,i){let o=t.indexOf(He,i),a=t.lastIndexOf(He),[u,c,f]=n?[t.slice(i,o),t.slice(o+1),[]]:[t.slice(i,o),t.slice(o+1,a),t.slice(a+1)];if(u.length){let C=e.slice(s,s+u.length);if(!le(this,st,on).call(this,C,u,n,0,0))return!1;s+=u.length}let p=0;if(f.length){if(f.length+s>e.length)return!1;let C=e.length-f.length;if(le(this,st,on).call(this,e,f,n,C,0))p=f.length;else{if(e[e.length-1]!==""||s+f.length===e.length||(C--,!le(this,st,on).call(this,e,f,n,C,0)))return!1;p=f.length+1}}if(!c.length){let C=!!p;for(let I=s;I<e.length-p;I++){let A=String(e[I]);if(C=!0,A==="."||A===".."||!this.options.dot&&A.startsWith("."))return!1}return n||C}let $=[[[],0]],x=$[0],h=0,E=[0];for(let C of c)C===He?(E.push(h),x=[[],0],$.push(x)):(x[0].push(C),h++);let T=$.length-1,w=e.length-p;for(let C of $)C[1]=w-(E[T--]+C[0].length);return!!le(this,st,vr).call(this,e,$,s,0,n,0,!!p)},vr=function(e,t,n,s,i,o,a){let u=t[s];if(!u){for(let p=n;p<e.length;p++){a=!0;let $=e[p];if($==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1}return a}let[c,f]=u;for(;n<=f;){if(le(this,st,on).call(this,e.slice(0,n+c.length),c,i,n,0)&&o<this.maxGlobstarRecursion){let x=le(this,st,vr).call(this,e,t,n+c.length,s+1,i,o+1,a);if(x!==!1)return x}let $=e[n];if($==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1;n++}return i||null},on=function(e,t,n,s,i){let o,a,u,c;for(o=s,a=i,c=e.length,u=t.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");let f=t[a],p=e[o];if(this.debug(t,f,p),f===!1||f===He)return!1;let $;if(typeof f=="string"?($=p===f,this.debug("string match",f,p,$)):($=f.test(p),this.debug("pattern match",f,p,$)),!$)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")};je.AST=Bt;je.Minimatch=Dt;je.escape=sn;je.unescape=bt;var Er={};Qr(Er,{err:()=>Js,map:()=>dl,ok:()=>br,unwrap:()=>fl,unwrapErr:()=>pl});var br=r=>({isOk:!0,isErr:!1,value:r}),Js=r=>({isOk:!1,isErr:!0,value:r});function dl(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>br(n)):br(t)}if(r.isErr){let t=r.value;return Js(t)}throw"should never get here"}var fl=r=>{if(r.isOk)return r.value;throw r.value},pl=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,propChangeCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,shadowSlotAssignmentManual:!1,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var ml={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var ep=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var it=typeof window<"u"?window:{},lp=it.HTMLElement||class{};var an=ie.shadowDom;var Sr=ie.constructableCSS?(()=>{try{return it.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1;/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright Google Inc. All Rights Reserved.
|
|
53
53
|
*
|
|
@@ -57,6 +57,6 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof A))re
|
|
|
57
57
|
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
58
58
|
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
59
59
|
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
60
|
-
*/var _s="-shadowcsshost",Il="-shadowcssslotted",Ml="-shadowcsscontext",Cr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",sh=new RegExp("("+_s+Cr,"gim"),ih=new RegExp("("+Ml+Cr,"gim"),oh=new RegExp("("+Il+Cr,"gim"),ah=_s+"-no-combinator";var Hl="Capture",Mh=new RegExp(Hl+"$");var hy=ie.lazyLoad?class{}:globalThis.HTMLElement||class{};var Sn=r=>e=>r(e.toLowerCase()),ic=Sn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),ob=Sn(r=>!ic(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),ab=Sn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),lb=Sn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),cb=Sn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function oi(r){r.process.on("unhandledRejection",e=>{if(!lr(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var Oo=xe(li()),Jr=require("crypto"),No=xe(ui()),me=xe(require("./graceful-fs.js")),ut=require("os"),Do=xe(require("os")),ge=xe(require("path"));var di=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(f){console.error(f)}else if(c.eventName===a)try{c.callback(o)}catch(f){console.error(f)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var zt=require("./glob.js");var Nr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Dt(t,e).hasMagic())return!0;return!1};var dc=require("./glob.js");var Yb=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function Hn(r,e={}){return new zt.Glob(r,e).streamSync()}function pi(r,e={}){return new zt.Glob(r,e).stream()}function hi(r,e={}){return new zt.Glob(r,e).walkSync()}async function fi(r,e={}){return new zt.Glob(r,e).walk()}function Bn(r,e={}){return new zt.Glob(r,e).iterateSync()}function mi(r,e={}){return new zt.Glob(r,e).iterate()}var oc=Hn,ac=Object.assign(pi,{sync:Hn}),lc=Bn,cc=Object.assign(mi,{sync:Bn}),uc=Object.assign(hi,{stream:Hn,iterate:Bn}),Fn=Object.assign(fi,{glob:fi,globSync:hi,sync:uc,globStream:pi,stream:ac,globStreamSync:Hn,streamSync:oc,globIterate:mi,iterate:cc,globIterateSync:Bn,iterateSync:lc,Glob:zt.Glob,hasMagic:Nr,escape:sn,unescape:bt});Fn.glob=Fn;var Et=xe(require("path"));var ln=xe(require("./graceful-fs.js")),cn=require("util"),gi=(0,cn.promisify)(ln.default.copyFile),yi=(0,cn.promisify)(ln.default.mkdir),vi=(0,cn.promisify)(ln.default.readdir),sE=(0,cn.promisify)(ln.default.readFile),bi=(0,cn.promisify)(ln.default.stat);async function Si(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=ir(await Promise.all(r.map(i=>fc(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>$i(t,n,o)))}let s=yc(n);try{await Promise.all(s.map(i=>yi(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>gi(o.src,o.dest)))}}catch(n){ar(t.diagnostics,n)}return t}async function fc(r,e){return or(r.src)?await hc(r,e):[{src:pc(e,r.src),dest:r.keepDirStructure?Et.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function pc(r,e){return Et.default.isAbsolute(e)?e:Et.default.join(r,e)}async function hc(r,e){return(await Dr(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>mc(r,e,n))}function mc(r,e,t){let n=Et.default.join(r.dest,r.keepDirStructure?t:Et.default.basename(t));return{src:Et.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function $i(r,e,t){try{t.src=Se(t.src),t.dest=Se(t.dest),(await bi(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await gc(r,e,t)):bc(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=mn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function gc(r,e,t){try{let n=await vi(t.src);await Promise.all(n.map(async s=>{let i={src:Et.default.join(t.src,s),dest:Et.default.join(t.dest,s),warn:t.warn};await $i(r,e,i)}))}catch(n){ar(r.diagnostics,n)}}function yc(r){let e=[];return r.forEach(t=>{vc(e,Et.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function vc(r,e){e=Se(e),!(e===Ei||e+"/"===Ei||e==="")&&(r.includes(e)||r.push(e))}var Ei=Se(Et.default.resolve("/"));function bc({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function Dr(r,e){return Fn(r,e)}var uo=xe(require("./graceful-fs.js")),fo=xe(require("path")),po=xe(Mr()),ho=xe(Fi()),mo=xe(co()),Jn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t}ensured=new Set;async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),f=JSON.parse(uo.default.readFileSync(c,"utf8"));if(u?(0,mo.default)(f.version,`${o} - ${(0,ho.default)(u)}.x`):(0,po.default)(o,f.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=mn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return fo.default.dirname(n)}};var Kn=xe(require("./graceful-fs.js")),qe=xe(require("path")),Yn=class{resolveModuleCache=new Map;resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=qe.default.resolve(e);let a=qe.default.join(e,"noop.js"),u=Se(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=Se(qe.default.parse(e).root),f;for(;u!==c;)if(u=Se(qe.default.dirname(u)),f=qe.default.join(u,"package.json"),!!Kn.default.existsSync(f))return this.resolveModuleCache.set(s,f),f;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=Se(qe.default.parse(e).root),o=Se(qe.default.join(e,"noop.js")),a;for(;o!==i;)if(o=Se(qe.default.dirname(o)),a=qe.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Kn.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=Se(qe.default.parse(e).root),i=Se(qe.default.join(e,"noop.js")),o;for(;i!==s;)if(i=Se(qe.default.dirname(i)),o=qe.default.join(i,"node_modules",t,"package.json"),!!Kn.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var
|
|
60
|
+
*/var _s="-shadowcsshost",Il="-shadowcssslotted",Ml="-shadowcsscontext",Cr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",sh=new RegExp("("+_s+Cr,"gim"),ih=new RegExp("("+Ml+Cr,"gim"),oh=new RegExp("("+Il+Cr,"gim"),ah=_s+"-no-combinator";var Hl="Capture",Mh=new RegExp(Hl+"$");var hy=ie.lazyLoad?class{}:globalThis.HTMLElement||class{};var Sn=r=>e=>r(e.toLowerCase()),ic=Sn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),ob=Sn(r=>!ic(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),ab=Sn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),lb=Sn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),cb=Sn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function oi(r){r.process.on("unhandledRejection",e=>{if(!lr(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var Oo=xe(li()),Jr=require("crypto"),No=xe(ui()),me=xe(require("./graceful-fs.js")),ut=require("os"),Do=xe(require("os")),ge=xe(require("path"));var di=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(f){console.error(f)}else if(c.eventName===a)try{c.callback(o)}catch(f){console.error(f)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var zt=require("./glob.js");var Nr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Dt(t,e).hasMagic())return!0;return!1};var dc=require("./glob.js");var Yb=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function Hn(r,e={}){return new zt.Glob(r,e).streamSync()}function pi(r,e={}){return new zt.Glob(r,e).stream()}function hi(r,e={}){return new zt.Glob(r,e).walkSync()}async function fi(r,e={}){return new zt.Glob(r,e).walk()}function Bn(r,e={}){return new zt.Glob(r,e).iterateSync()}function mi(r,e={}){return new zt.Glob(r,e).iterate()}var oc=Hn,ac=Object.assign(pi,{sync:Hn}),lc=Bn,cc=Object.assign(mi,{sync:Bn}),uc=Object.assign(hi,{stream:Hn,iterate:Bn}),Fn=Object.assign(fi,{glob:fi,globSync:hi,sync:uc,globStream:pi,stream:ac,globStreamSync:Hn,streamSync:oc,globIterate:mi,iterate:cc,globIterateSync:Bn,iterateSync:lc,Glob:zt.Glob,hasMagic:Nr,escape:sn,unescape:bt});Fn.glob=Fn;var Et=xe(require("path"));var ln=xe(require("./graceful-fs.js")),cn=require("util"),gi=(0,cn.promisify)(ln.default.copyFile),yi=(0,cn.promisify)(ln.default.mkdir),vi=(0,cn.promisify)(ln.default.readdir),sE=(0,cn.promisify)(ln.default.readFile),bi=(0,cn.promisify)(ln.default.stat);async function Si(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=ir(await Promise.all(r.map(i=>fc(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>$i(t,n,o)))}let s=yc(n);try{await Promise.all(s.map(i=>yi(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>gi(o.src,o.dest)))}}catch(n){ar(t.diagnostics,n)}return t}async function fc(r,e){return or(r.src)?await hc(r,e):[{src:pc(e,r.src),dest:r.keepDirStructure?Et.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function pc(r,e){return Et.default.isAbsolute(e)?e:Et.default.join(r,e)}async function hc(r,e){return(await Dr(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>mc(r,e,n))}function mc(r,e,t){let n=Et.default.join(r.dest,r.keepDirStructure?t:Et.default.basename(t));return{src:Et.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function $i(r,e,t){try{t.src=Se(t.src),t.dest=Se(t.dest),(await bi(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await gc(r,e,t)):bc(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=mn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function gc(r,e,t){try{let n=await vi(t.src);await Promise.all(n.map(async s=>{let i={src:Et.default.join(t.src,s),dest:Et.default.join(t.dest,s),warn:t.warn};await $i(r,e,i)}))}catch(n){ar(r.diagnostics,n)}}function yc(r){let e=[];return r.forEach(t=>{vc(e,Et.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function vc(r,e){e=Se(e),!(e===Ei||e+"/"===Ei||e==="")&&(r.includes(e)||r.push(e))}var Ei=Se(Et.default.resolve("/"));function bc({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function Dr(r,e){return Fn(r,e)}var uo=xe(require("./graceful-fs.js")),fo=xe(require("path")),po=xe(Mr()),ho=xe(Fi()),mo=xe(co()),Jn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t}ensured=new Set;async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),f=JSON.parse(uo.default.readFileSync(c,"utf8"));if(u?(0,mo.default)(f.version,`${o} - ${(0,ho.default)(u)}.x`):(0,po.default)(o,f.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=mn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return fo.default.dirname(n)}};var Kn=xe(require("./graceful-fs.js")),qe=xe(require("path")),Yn=class{resolveModuleCache=new Map;resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=qe.default.resolve(e);let a=qe.default.join(e,"noop.js"),u=Se(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=Se(qe.default.parse(e).root),f;for(;u!==c;)if(u=Se(qe.default.dirname(u)),f=qe.default.join(u,"package.json"),!!Kn.default.existsSync(f))return this.resolveModuleCache.set(s,f),f;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=Se(qe.default.parse(e).root),o=Se(qe.default.join(e,"noop.js")),a;for(;o!==i;)if(o=Se(qe.default.dirname(o)),a=qe.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Kn.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=Se(qe.default.parse(e).root),i=Se(qe.default.join(e,"noop.js")),o;for(;i!==s;)if(i=Se(qe.default.dirname(i)),o=qe.default.join(i,"node_modules",t,"package.json"),!!Kn.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var Gr=xe(require("./graceful-fs.js")),Eo=require("os"),So=xe(require("path")),$o=xe(Hr()),Du="https://registry.npmjs.org/@stencil/core",wu=1e3*60*60*24*7,Vr="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function xo(r,e){try{let t=await ku(r);if(t!=null)return()=>{(0,$o.default)(e,t)?Fu(r,e,t):console.debug(`${r.cyan("@stencil/core")} version ${r.green(e)} is the latest version`)}}catch(t){r.debug(`unable to load latest compiler version: ${t}`)}return us}async function ku(r){try{let e=await Mu();if(e==null)return go(),null;if(!Iu(Date.now(),e,wu))return null;let t=go(),n=await Pu(Du),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function Pu(r){let e=await import("https");return new Promise((t,n)=>{let s=e.request(r,i=>{if(i.statusCode>299){n(`url: ${r}, staus: ${i.statusCode}`);return}i.once("error",n);let o=[];i.once("end",()=>{t(o.join(""))}),i.on("data",a=>{o.push(a)})});s.once("error",n),s.end()})}function Iu(r,e,t){return e+t<r}function Mu(){return new Promise(r=>{Gr.default.readFile(To(),"utf8",(e,t)=>{if(!e&&Gt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function go(){return new Promise(r=>{let e=JSON.stringify(Date.now());Gr.default.writeFile(To(),e,()=>{r()})})}function To(){return So.default.join((0,Eo.tmpdir)(),"stencil_last_version_node.json")}function Fu(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${Hu} ${t}`,"To get the latest, please run:",n,Vr],i=s.reduce((f,p)=>p.length>f?p.length:f,0),o=[],a=Bu;for(;a.length<=i+Qn*2;)a+=vo;a+=ju,o.push(a),s.forEach(f=>{let p=yo;for(let $=0;$<Qn;$++)p+=" ";for(p+=f;p.length<=i+Qn*2;)p+=" ";p+=yo,o.push(p)});let u=Uu;for(;u.length<=i+Qn*2;)u+=vo;u+=zu,o.push(u);let c=`${bo}${o.join(`
|
|
61
61
|
${bo}`)}
|
|
62
|
-
`;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Gr,r.dim(Gr)),console.log(c)}var Hu="\u2192",Bu="\u256D",ju="\u256E",Uu="\u2570",zu="\u256F",yo="\u2502",vo="\u2500",Qn=2,bo=" ";var Ro=require("events"),Ao=require("os");var Co=xe(require("child_process")),Lo=require("events"),Zn=class extends Lo.EventEmitter{constructor(t,n){super();this.id=t;this.fork(n)}childProcess;tasks=new Map;exitCode=null;processQueue=!0;sendQueue=[];stopped=!1;successfulMessage=!1;totalTasksAssigned=0;fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=Co.fork(t,[],s),this.childProcess.stdout.setEncoding("utf8"),this.childProcess.stdout.on("data",i=>{console.log(i)}),this.childProcess.stderr.setEncoding("utf8"),this.childProcess.stderr.on("data",i=>{console.log(i)}),this.childProcess.on("message",this.receiveFromWorker.bind(this)),this.childProcess.on("error",i=>{this.emit("error",i)}),this.childProcess.once("exit",i=>{this.exitCode=i,this.emit("exit",i)})}run(t){this.totalTasksAssigned++,this.tasks.set(t.stencilId,t);let[n,...s]=t.inputArgs;this.sendToWorker({stencilId:t.stencilId,method:n,args:s})}sendToWorker(t){if(!this.processQueue){this.sendQueue.push(t);return}(!this.childProcess.send(t,s=>{if(!(s&&s instanceof Error)&&(this.processQueue=!0,this.sendQueue.length>0)){let i=this.sendQueue.slice();this.sendQueue=[],i.forEach(o=>this.sendToWorker(o))}})||/^win/.test(process.platform))&&(this.processQueue=!1)}receiveFromWorker(t){if(this.successfulMessage=!0,this.stopped)return;let n=this.tasks.get(t.stencilId);if(!n){t.stencilRtnError!=null&&this.emit("error",t.stencilRtnError);return}t.stencilRtnError!=null?n.reject(t.stencilRtnError):n.resolve(t.stencilRtnValue),this.tasks.delete(t.stencilId),this.emit("response",t)}stop(){this.stopped=!0,this.tasks.forEach(t=>t.reject(Jt)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var qn=class extends Ro.EventEmitter{constructor(t,n){super();this.forkModulePath=t;let s=(0,Ao.cpus)().length;this.useForkedWorkers=n>0,this.maxWorkers=Math.max(Math.min(n,s),2)-1,this.useForkedWorkers?this.startWorkers():this.mainThreadRunner=require(t)}workerIds=0;stencilId=0;isEnding=!1;taskQueue=[];workers=[];maxWorkers;useForkedWorkers;mainThreadRunner;onError(t,n){if(t.code==="ERR_IPC_CHANNEL_CLOSED")return this.stopWorker(n);t.code!=="EPIPE"&&console.error(t)}onExit(t){setTimeout(()=>{let n=!1,s=this.workers.find(i=>i.id===t);s&&(s.tasks.forEach(i=>{i.retries++,this.taskQueue.unshift(i),n=!0}),s.tasks.clear()),this.stopWorker(t),n&&this.processTaskQueue()},10)}startWorkers(){for(;this.workers.length<this.maxWorkers;)this.startWorker()}startWorker(){let t=this.workerIds++,n=new Zn(t,this.forkModulePath);n.on("response",this.processTaskQueue.bind(this)),n.once("exit",()=>{this.onExit(t)}),n.on("error",s=>{this.onError(s,t)}),this.workers.push(n)}stopWorker(t){let n=this.workers.find(s=>s.id===t);if(n){n.stop();let s=this.workers.indexOf(n);s>-1&&this.workers.splice(s,1)}}processTaskQueue(){if(!this.isEnding)for(this.useForkedWorkers&&this.startWorkers();this.taskQueue.length>0;){let t=Wu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Jt):this.useForkedWorkers?new Promise((n,s)=>{let i={stencilId:this.stencilId++,inputArgs:t,retries:0,resolve:n,reject:s};this.taskQueue.push(i),this.processTaskQueue()}):this.mainThreadRunner[t[0]].apply(null,t.slice(1))}handler(t){return(...n)=>this.send(t,...n)}cancelTasks(){for(let t of this.workers)t.tasks.forEach(n=>n.reject(Jt)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Jt);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function Wu(r){let e=r.filter(n=>!n.stopped);return e.length===0?null:e.sort((n,s)=>n.tasks.size<s.tasks.size?-1:n.tasks.size>s.tasks.size?1:n.totalTasksAssigned<s.totalTasksAssigned?-1:n.totalTasksAssigned>s.totalTasksAssigned?1:0)[0]}function wo(r={}){var x;let e=(x=r==null?void 0:r.process)!=null?x:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,ut.cpus)(),o=i.length,a=(0,ut.platform)(),u=ge.default.join(__dirname,"..","..","compiler","stencil.js"),c=ge.default.join(__dirname,"..","..","dev-server","index.js"),f=()=>{let h=[],E;for(;ds(E=s.pop());)try{let T=E();h.push(T)}catch{}return Promise.all(h).then(()=>{})},p={name:"node",version:e.versions.node,access(h){return new Promise(E=>{me.default.access(h,T=>E(!T))})},accessSync(h){let E=!1;try{me.default.accessSync(h),E=!0}catch{}return E},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let E=require(ge.default.join(__dirname,"node-fetch.js"));global.fetch=(T,w)=>{if(typeof T=="string"){let C=new URL(T,h.devServerHostUrl).href;return E.fetch(C,w)}else return T.url=new URL(T.url,h.devServerHostUrl).href,E.fetch(T,w)},global.Headers=E.Headers,global.Request=E.Request,global.Response=E.Response,global.FetchError=E.FetchError}h.window.fetch=global.fetch,h.window.Headers=global.Headers,h.window.Request=global.Request,h.window.Response=global.Response,h.window.FetchError=global.FetchError},fetch:(h,E)=>{let T=require(ge.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let w=new URL(h).href;return T.fetch(w,E)}else return h.url=new URL(h.url).href,T.fetch(h,E)},checkVersion:xo,copyFile(h,E){return new Promise(T=>{me.default.copyFile(h,E,w=>{T(!w)})})},createDir(h,E){return new Promise(T=>{E?me.default.mkdir(h,E,w=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:w})}):me.default.mkdir(h,w=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:w})})})},createDirSync(h,E){let T={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:null};try{me.default.mkdirSync(h,E)}catch(w){T.error=w}return T},createWorkerController(h){let E=ge.default.join(__dirname,"worker.js");return new qn(E,h)},async destroy(){let h=[];n.forEach(E=>{try{let T=E();T&&typeof T.then=="function"&&h.push(T)}catch(T){console.error(`node sys destroy: ${T}`)}}),h.length>0&&await Promise.all(h),n.clear()},dynamicImport(h){return Promise.resolve(require(h))},encodeToBase64(h){return Buffer.from(h).toString("base64")},async ensureDependencies(){return console.warn("ensureDependencies will be removed in a future version of Stencil."),console.warn("To get the stencilPath, please use getCompilerExecutingPath()."),{stencilPath:p.getCompilerExecutingPath(),diagnostics:[]}},async ensureResources(){console.warn("ensureResources is a no-op, and will be removed in a future version of Stencil")},exit:async h=>{await f(),(0,No.default)(h)},getCurrentDirectory(){return Se(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:Dr,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(E=>{try{me.default.lstat(h,(T,w)=>{E(T?!1:w.isSymbolicLink())})}catch{E(!1)}})},nextTick:e.nextTick,normalizePath:Se,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:ge.default,readDir(h){return new Promise(E=>{me.default.readdir(h,(T,w)=>{E(T?[]:w.map(C=>Se(ge.default.join(h,C))))})})},parseYarnLockFile(h){return(0,Oo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return me.default.readdirSync(h).map(E=>Se(ge.default.join(h,E)))}catch{}return[]},readFile(h,E){return E==="binary"?new Promise(T=>{me.default.readFile(h,(w,C)=>{T(C)})}):new Promise(T=>{me.default.readFile(h,"utf8",(w,C)=>{T(C)})})},readFileSync(h){try{return me.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return Do.homedir()}catch{}},realpath(h){return new Promise(E=>{me.default.realpath(h,"utf8",(T,w)=>{E({path:w,error:T})})})},realpathSync(h){let E={path:void 0,error:null};try{E.path=me.default.realpathSync(h,"utf8")}catch(T){E.error=T}return E},rename(h,E){return new Promise(T=>{me.default.rename(h,E,w=>{T({oldPath:h,newPath:E,error:w,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return Se(h)},removeDir(h,E){return new Promise(T=>{!!(E&&E.recursive)?me.default.rm(h,{recursive:!0,force:!0},C=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})}):me.default.rmdir(h,C=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})})})},removeDirSync(h,E){try{return!!(E&&E.recursive)?me.default.rmSync(h,{recursive:!0,force:!0}):me.default.rmdirSync(h),{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch(T){return{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:T}}},removeFile(h){return new Promise(E=>{me.default.unlink(h,T=>{E({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:T})})})},removeFileSync(h){let E={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:null};try{me.default.unlinkSync(h)}catch(T){E.error=T}return E},setupCompiler(h){let E=h.ts,T=E.sys.watchDirectory,w=E.sys.watchFile;p.watchTimeout=80,p.events=di(),p.watchDirectory=(C,I,A)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${C}`);let g=T(C,R=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${C} changedPath=${R}`),I(Se(R),"fileUpdate")},A),S=()=>{g.close()};return p.addDestroy(S),{close(){p.removeDestroy(S),g.close()}}},p.watchFile=(C,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${C}`);let A=w(C,(S,R)=>{S=Se(S),R===E.FileWatcherEventKind.Created?(I(S,"fileAdd"),p.events.emit("fileAdd",S)):R===E.FileWatcherEventKind.Changed?(I(S,"fileUpdate"),p.events.emit("fileUpdate",S)):R===E.FileWatcherEventKind.Deleted&&(I(S,"fileDelete"),p.events.emit("fileDelete",S))},250,{watchFile:E.WatchFileKind.FixedPollingInterval,fallbackPolling:E.PollingWatchKind.FixedInterval}),g=()=>{A.close()};return p.addDestroy(g),{close(){p.removeDestroy(g),A.close()}}}},stat(h){return new Promise(E=>{me.default.stat(h,(T,w)=>{E(T?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:T}:{isDirectory:w.isDirectory(),isFile:w.isFile(),isSymbolicLink:w.isSymbolicLink(),size:w.size,mtimeMs:w.mtimeMs,error:null})})})},statSync(h){try{let E=me.default.statSync(h);return{isDirectory:E.isDirectory(),isFile:E.isFile(),isSymbolicLink:E.isSymbolicLink(),size:E.size,mtimeMs:E.mtimeMs,error:null}}catch(E){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:E}}},tmpDirSync(){return(0,ut.tmpdir)()},writeFile(h,E){return new Promise(T=>{me.default.writeFile(h,E,w=>{T({path:h,error:w})})})},writeFileSync(h,E){let T={path:h,error:null};try{me.default.writeFileSync(h,E)}catch(w){T.error=w}return T},generateContentHash(h,E){let T=(0,Jr.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof E=="number"&&(T=T.slice(0,E)),Promise.resolve(T)},generateFileHash(h,E){return new Promise((T,w)=>{let C=(0,Jr.createHash)("sha1");me.default.createReadStream(h).on("error",I=>w(I)).on("data",I=>C.update(I)).on("end",()=>{let I=C.digest("hex").toLowerCase();typeof E=="number"&&(I=I.slice(0,E)),T(I)})})},copy:Si,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,ut.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,ut.release)(),totalmem:(0,ut.totalmem)()}},$=new Yn;return p.lazyRequire=new Jn($,{"@types/jest":{minVersion:"24.9.1",recommendedVersion:"29",maxVersion:"29.0.0"},jest:{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},"jest-cli":{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},puppeteer:{minVersion:"10.0.0",recommendedVersion:"20"},"puppeteer-core":{minVersion:"10.0.0",recommendedVersion:"20"},"workbox-build":{minVersion:"4.3.1",recommendedVersion:"4.3.1"}}),e.on("SIGINT",f),e.on("exit",f),p}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
|
|
62
|
+
`;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Vr,r.dim(Vr)),console.log(c)}var Hu="\u2192",Bu="\u256D",ju="\u256E",Uu="\u2570",zu="\u256F",yo="\u2502",vo="\u2500",Qn=2,bo=" ";var Ro=require("events"),Ao=require("os");var Co=xe(require("child_process")),Lo=require("events"),Zn=class extends Lo.EventEmitter{constructor(t,n){super();this.id=t;this.fork(n)}childProcess;tasks=new Map;exitCode=null;processQueue=!0;sendQueue=[];stopped=!1;successfulMessage=!1;totalTasksAssigned=0;fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=Co.fork(t,[],s),this.childProcess.stdout.setEncoding("utf8"),this.childProcess.stdout.on("data",i=>{console.log(i)}),this.childProcess.stderr.setEncoding("utf8"),this.childProcess.stderr.on("data",i=>{console.log(i)}),this.childProcess.on("message",this.receiveFromWorker.bind(this)),this.childProcess.on("error",i=>{this.emit("error",i)}),this.childProcess.once("exit",i=>{this.exitCode=i,this.emit("exit",i)})}run(t){this.totalTasksAssigned++,this.tasks.set(t.stencilId,t);let[n,...s]=t.inputArgs;this.sendToWorker({stencilId:t.stencilId,method:n,args:s})}sendToWorker(t){if(!this.processQueue){this.sendQueue.push(t);return}(!this.childProcess.send(t,s=>{if(!(s&&s instanceof Error)&&(this.processQueue=!0,this.sendQueue.length>0)){let i=this.sendQueue.slice();this.sendQueue=[],i.forEach(o=>this.sendToWorker(o))}})||/^win/.test(process.platform))&&(this.processQueue=!1)}receiveFromWorker(t){if(this.successfulMessage=!0,this.stopped)return;let n=this.tasks.get(t.stencilId);if(!n){t.stencilRtnError!=null&&this.emit("error",t.stencilRtnError);return}t.stencilRtnError!=null?n.reject(t.stencilRtnError):n.resolve(t.stencilRtnValue),this.tasks.delete(t.stencilId),this.emit("response",t)}stop(){this.stopped=!0,this.tasks.forEach(t=>t.reject(Jt)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var qn=class extends Ro.EventEmitter{constructor(t,n){super();this.forkModulePath=t;let s=(0,Ao.cpus)().length;this.useForkedWorkers=n>0,this.maxWorkers=Math.max(Math.min(n,s),2)-1,this.useForkedWorkers?this.startWorkers():this.mainThreadRunner=require(t)}workerIds=0;stencilId=0;isEnding=!1;taskQueue=[];workers=[];maxWorkers;useForkedWorkers;mainThreadRunner;onError(t,n){if(t.code==="ERR_IPC_CHANNEL_CLOSED")return this.stopWorker(n);t.code!=="EPIPE"&&console.error(t)}onExit(t){setTimeout(()=>{let n=!1,s=this.workers.find(i=>i.id===t);s&&(s.tasks.forEach(i=>{i.retries++,this.taskQueue.unshift(i),n=!0}),s.tasks.clear()),this.stopWorker(t),n&&this.processTaskQueue()},10)}startWorkers(){for(;this.workers.length<this.maxWorkers;)this.startWorker()}startWorker(){let t=this.workerIds++,n=new Zn(t,this.forkModulePath);n.on("response",this.processTaskQueue.bind(this)),n.once("exit",()=>{this.onExit(t)}),n.on("error",s=>{this.onError(s,t)}),this.workers.push(n)}stopWorker(t){let n=this.workers.find(s=>s.id===t);if(n){n.stop();let s=this.workers.indexOf(n);s>-1&&this.workers.splice(s,1)}}processTaskQueue(){if(!this.isEnding)for(this.useForkedWorkers&&this.startWorkers();this.taskQueue.length>0;){let t=Wu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Jt):this.useForkedWorkers?new Promise((n,s)=>{let i={stencilId:this.stencilId++,inputArgs:t,retries:0,resolve:n,reject:s};this.taskQueue.push(i),this.processTaskQueue()}):this.mainThreadRunner[t[0]].apply(null,t.slice(1))}handler(t){return(...n)=>this.send(t,...n)}cancelTasks(){for(let t of this.workers)t.tasks.forEach(n=>n.reject(Jt)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Jt);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function Wu(r){let e=r.filter(n=>!n.stopped);return e.length===0?null:e.sort((n,s)=>n.tasks.size<s.tasks.size?-1:n.tasks.size>s.tasks.size?1:n.totalTasksAssigned<s.totalTasksAssigned?-1:n.totalTasksAssigned>s.totalTasksAssigned?1:0)[0]}function wo(r={}){var x;let e=(x=r==null?void 0:r.process)!=null?x:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,ut.cpus)(),o=i.length,a=(0,ut.platform)(),u=ge.default.join(__dirname,"..","..","compiler","stencil.js"),c=ge.default.join(__dirname,"..","..","dev-server","index.js"),f=()=>{let h=[],E;for(;ds(E=s.pop());)try{let T=E();h.push(T)}catch{}return Promise.all(h).then(()=>{})},p={name:"node",version:e.versions.node,access(h){return new Promise(E=>{me.default.access(h,T=>E(!T))})},accessSync(h){let E=!1;try{me.default.accessSync(h),E=!0}catch{}return E},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let E=require(ge.default.join(__dirname,"node-fetch.js"));global.fetch=(T,w)=>{if(typeof T=="string"){let C=new URL(T,h.devServerHostUrl).href;return E.fetch(C,w)}else return T.url=new URL(T.url,h.devServerHostUrl).href,E.fetch(T,w)},global.Headers=E.Headers,global.Request=E.Request,global.Response=E.Response,global.FetchError=E.FetchError}h.window.fetch=global.fetch,h.window.Headers=global.Headers,h.window.Request=global.Request,h.window.Response=global.Response,h.window.FetchError=global.FetchError},fetch:(h,E)=>{let T=require(ge.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let w=new URL(h).href;return T.fetch(w,E)}else return h.url=new URL(h.url).href,T.fetch(h,E)},checkVersion:xo,copyFile(h,E){return new Promise(T=>{me.default.copyFile(h,E,w=>{T(!w)})})},createDir(h,E){return new Promise(T=>{E?me.default.mkdir(h,E,w=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:w})}):me.default.mkdir(h,w=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:w})})})},createDirSync(h,E){let T={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:null};try{me.default.mkdirSync(h,E)}catch(w){T.error=w}return T},createWorkerController(h){let E=ge.default.join(__dirname,"worker.js");return new qn(E,h)},async destroy(){let h=[];n.forEach(E=>{try{let T=E();T&&typeof T.then=="function"&&h.push(T)}catch(T){console.error(`node sys destroy: ${T}`)}}),h.length>0&&await Promise.all(h),n.clear()},dynamicImport(h){return Promise.resolve(require(h))},encodeToBase64(h){return Buffer.from(h).toString("base64")},async ensureDependencies(){return console.warn("ensureDependencies will be removed in a future version of Stencil."),console.warn("To get the stencilPath, please use getCompilerExecutingPath()."),{stencilPath:p.getCompilerExecutingPath(),diagnostics:[]}},async ensureResources(){console.warn("ensureResources is a no-op, and will be removed in a future version of Stencil")},exit:async h=>{await f(),(0,No.default)(h)},getCurrentDirectory(){return Se(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:Dr,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(E=>{try{me.default.lstat(h,(T,w)=>{E(T?!1:w.isSymbolicLink())})}catch{E(!1)}})},nextTick:e.nextTick,normalizePath:Se,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:ge.default,readDir(h){return new Promise(E=>{me.default.readdir(h,(T,w)=>{E(T?[]:w.map(C=>Se(ge.default.join(h,C))))})})},parseYarnLockFile(h){return(0,Oo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return me.default.readdirSync(h).map(E=>Se(ge.default.join(h,E)))}catch{}return[]},readFile(h,E){return E==="binary"?new Promise(T=>{me.default.readFile(h,(w,C)=>{T(C)})}):new Promise(T=>{me.default.readFile(h,"utf8",(w,C)=>{T(C)})})},readFileSync(h){try{return me.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return Do.homedir()}catch{}},realpath(h){return new Promise(E=>{me.default.realpath(h,"utf8",(T,w)=>{E({path:w,error:T})})})},realpathSync(h){let E={path:void 0,error:null};try{E.path=me.default.realpathSync(h,"utf8")}catch(T){E.error=T}return E},rename(h,E){return new Promise(T=>{me.default.rename(h,E,w=>{T({oldPath:h,newPath:E,error:w,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return Se(h)},removeDir(h,E){return new Promise(T=>{!!(E&&E.recursive)?me.default.rm(h,{recursive:!0,force:!0},C=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})}):me.default.rmdir(h,C=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})})})},removeDirSync(h,E){try{return!!(E&&E.recursive)?me.default.rmSync(h,{recursive:!0,force:!0}):me.default.rmdirSync(h),{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch(T){return{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:T}}},removeFile(h){return new Promise(E=>{me.default.unlink(h,T=>{E({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:T})})})},removeFileSync(h){let E={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:null};try{me.default.unlinkSync(h)}catch(T){E.error=T}return E},setupCompiler(h){let E=h.ts,T=E.sys.watchDirectory,w=E.sys.watchFile;p.watchTimeout=80,p.events=di(),p.watchDirectory=(C,I,A)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${C}`);let g=T(C,R=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${C} changedPath=${R}`),I(Se(R),"fileUpdate")},A),S=()=>{g.close()};return p.addDestroy(S),{close(){p.removeDestroy(S),g.close()}}},p.watchFile=(C,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${C}`);let A=w(C,(S,R)=>{S=Se(S),R===E.FileWatcherEventKind.Created?(I(S,"fileAdd"),p.events.emit("fileAdd",S)):R===E.FileWatcherEventKind.Changed?(I(S,"fileUpdate"),p.events.emit("fileUpdate",S)):R===E.FileWatcherEventKind.Deleted&&(I(S,"fileDelete"),p.events.emit("fileDelete",S))},250,{watchFile:E.WatchFileKind.FixedPollingInterval,fallbackPolling:E.PollingWatchKind.FixedInterval}),g=()=>{A.close()};return p.addDestroy(g),{close(){p.removeDestroy(g),A.close()}}}},stat(h){return new Promise(E=>{me.default.stat(h,(T,w)=>{E(T?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:T}:{isDirectory:w.isDirectory(),isFile:w.isFile(),isSymbolicLink:w.isSymbolicLink(),size:w.size,mtimeMs:w.mtimeMs,error:null})})})},statSync(h){try{let E=me.default.statSync(h);return{isDirectory:E.isDirectory(),isFile:E.isFile(),isSymbolicLink:E.isSymbolicLink(),size:E.size,mtimeMs:E.mtimeMs,error:null}}catch(E){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:E}}},tmpDirSync(){return(0,ut.tmpdir)()},writeFile(h,E){return new Promise(T=>{me.default.writeFile(h,E,w=>{T({path:h,error:w})})})},writeFileSync(h,E){let T={path:h,error:null};try{me.default.writeFileSync(h,E)}catch(w){T.error=w}return T},generateContentHash(h,E){let T=(0,Jr.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof E=="number"&&(T=T.slice(0,E)),Promise.resolve(T)},generateFileHash(h,E){return new Promise((T,w)=>{let C=(0,Jr.createHash)("sha1");me.default.createReadStream(h).on("error",I=>w(I)).on("data",I=>C.update(I)).on("end",()=>{let I=C.digest("hex").toLowerCase();typeof E=="number"&&(I=I.slice(0,E)),T(I)})})},copy:Si,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,ut.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,ut.release)(),totalmem:(0,ut.totalmem)()}},$=new Yn;return p.lazyRequire=new Jn($,{"@types/jest":{minVersion:"24.9.1",recommendedVersion:"29",maxVersion:"29.0.0"},jest:{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},"jest-cli":{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},puppeteer:{minVersion:"10.0.0",recommendedVersion:"20"},"puppeteer-core":{minVersion:"10.0.0",recommendedVersion:"20"},"workbox-build":{minVersion:"4.3.1",recommendedVersion:"4.3.1"}}),e.on("SIGINT",f),e.on("exit",f),p}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
|