@kitschpatrol/eslint-config 4.3.0 → 4.3.2

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/bin/cli.js CHANGED
@@ -1,39 +1,36 @@
1
1
  #!/usr/bin/env node
2
- var Is=Object.create;var Cr=Object.defineProperty;var _s=Object.getOwnPropertyDescriptor;var Ps=Object.getOwnPropertyNames;var Ns=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var dt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Fs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ds=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ps(t))!Ts.call(e,i)&&i!==r&&Cr(e,i,{get:()=>t[i],enumerable:!(n=_s(t,i))||n.enumerable});return e};var Ms=(e,t,r)=>(r=e!=null?Is(Ns(e)):{},Ds(t||!e||!e.__esModule?Cr(r,"default",{value:e,enumerable:!0}):r,e));var _r=Fs((hd,Ir)=>{"use strict";var js=function(t){return ks(t)&&!Bs(t)};function ks(e){return!!e&&typeof e=="object"}function Bs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||zs(e)}var Us=typeof Symbol=="function"&&Symbol.for,Gs=Us?Symbol.for("react.element"):60103;function zs(e){return e.$$typeof===Gs}function Ws(e){return Array.isArray(e)?[]:{}}function xe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?me(Ws(e),e,t):e}function Hs(e,t,r){return e.concat(t).map(function(n){return xe(n,r)})}function Ys(e,t){if(!t.customMerge)return me;var r=t.customMerge(e);return typeof r=="function"?r:me}function Vs(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Rr(e){return Object.keys(e).concat(Vs(e))}function xr(e,t){try{return t in e}catch{return!1}}function Ks(e,t){return xr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Xs(e,t,r){var n={};return r.isMergeableObject(e)&&Rr(e).forEach(function(i){n[i]=xe(e[i],r)}),Rr(t).forEach(function(i){Ks(e,i)||(xr(e,i)&&r.isMergeableObject(t[i])?n[i]=Ys(i,r)(e[i],t[i],r):n[i]=xe(t[i],r))}),n}function me(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Hs,r.isMergeableObject=r.isMergeableObject||js,r.cloneUnlessOtherwiseSpecified=xe;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Xs(e,t,r):xe(t,r)}me.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return me(n,i,r)},{})};var Js=me;Ir.exports=Js});var Pr=Ms(_r(),1);import Zs from"@pinojs/json-colorizer";var qs=/("(?:[^\\"]|\\.)*")|[:,]/g;function gt(e,t={}){let r=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),n=r===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer:i}=t;return function s(o,a,l){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let u=JSON.stringify(o,i);if(u===void 0)return u;let p=n-a.length-l;if(u.length<=p){let d=u.replace(qs,(v,w)=>w||`${v} `);if(d.length<=p)return d}if(i!=null&&(o=JSON.parse(u),i=void 0),typeof o=="object"&&o!==null){let d=a+r,v=[],w=0,y,f;if(Array.isArray(o)){y="[",f="]";let{length:c}=o;for(;w<c;w++)v.push(s(o[w],d,w===c-1?0:1)||"null")}else{y="{",f="}";let c=Object.keys(o),{length:b}=c;for(;w<b;w++){let S=c[w],$=`${JSON.stringify(S)}: `,x=s(o[S],d,$.length+(w===b-1?0:1));x!==void 0&&v.push($+x)}}if(v.length>0)return[y,r+v.join(`,
3
- ${d}`),f].join(`
4
- ${a}`)}return u}(e,"",0)}function mt(e){return Zs(gt(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var Qs=(e,t,r)=>{let n=[...e];for(let[i,s]of t.entries())n[i]===void 0?n[i]=r.cloneUnlessOtherwiseSpecified(s,r):r.isMergeableObject(s)?n[i]=bt(e[i],s,r):e.includes(s)||n.push(s);return n};function bt(e,t,r={arrayMerge:Qs}){return(0,Pr.default)(e,t,r)}var Nr=(e=0)=>t=>`\x1B[${t+e}m`,Tr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Fr=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},bd=Object.keys(F.modifier),eo=Object.keys(F.color),to=Object.keys(F.bgColor),yd=[...eo,...to];function ro(){let e=new Map;for(let[t,r]of Object.entries(F)){for(let[n,i]of Object.entries(r))F[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=F[n],e.set(i[0],i[1]);Object.defineProperty(F,t,{value:r,enumerable:!1})}return Object.defineProperty(F,"codes",{value:e,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",F.color.ansi=Nr(),F.color.ansi256=Tr(),F.color.ansi16m=Fr(),F.bgColor.ansi=Nr(10),F.bgColor.ansi256=Tr(10),F.bgColor.ansi16m=Fr(10),Object.defineProperties(F,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>F.rgbToAnsi256(...F.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>F.ansi256ToAnsi(F.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>F.ansi256ToAnsi(F.hexToAnsi256(t)),enumerable:!1}}),F}var no=ro(),X=no;import yt from"node:process";import io from"node:os";import Dr from"node:tty";function K(e,t=globalThis.Deno?globalThis.Deno.args:yt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:M}=yt,Ue;K("no-color")||K("no-colors")||K("color=false")||K("color=never")?Ue=0:(K("color")||K("colors")||K("color=true")||K("color=always"))&&(Ue=1);function so(){if("FORCE_COLOR"in M)return M.FORCE_COLOR==="true"?1:M.FORCE_COLOR==="false"?0:M.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(M.FORCE_COLOR,10),3)}function oo(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ao(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=so();n!==void 0&&(Ue=n);let i=r?Ue:n;if(i===0)return 0;if(r){if(K("color=16m")||K("color=full")||K("color=truecolor"))return 3;if(K("color=256"))return 2}if("TF_BUILD"in M&&"AGENT_NAME"in M)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(M.TERM==="dumb")return s;if(yt.platform==="win32"){let o=io.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in M)return"GITHUB_ACTIONS"in M||"GITEA_ACTIONS"in M?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in M)||M.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in M)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M.TEAMCITY_VERSION)?1:0;if(M.COLORTERM==="truecolor"||M.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in M){let o=Number.parseInt((M.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(M.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M.TERM)||"COLORTERM"in M?1:s}function Mr(e,t={}){let r=ao(e,{streamIsTTY:e&&e.isTTY,...t});return oo(r)}var lo={stdout:Mr({isTTY:Dr.isatty(1)}),stderr:Mr({isTTY:Dr.isatty(2)})},jr=lo;function kr(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Br(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
2
+ var Us=Object.create;var Kt=Object.defineProperty;var Ws=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var Hs=Object.getPrototypeOf,Ys=Object.prototype.hasOwnProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Xs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zs(t))!Ys.call(e,s)&&s!==r&&Kt(e,s,{get:()=>t[s],enumerable:!(n=Ws(t,s))||n.enumerable});return e};var Ks=(e,t,r)=>(r=e!=null?Us(Hs(e)):{},Xs(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var Qt=Vs((Xf,Zt)=>{"use strict";var qs=function(t){return Js(t)&&!Zs(t)};function Js(e){return!!e&&typeof e=="object"}function Zs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ti(e)}var Qs=typeof Symbol=="function"&&Symbol.for,ei=Qs?Symbol.for("react.element"):60103;function ti(e){return e.$$typeof===ei}function ri(e){return Array.isArray(e)?[]:{}}function Le(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ue(ri(e),e,t):e}function ni(e,t,r){return e.concat(t).map(function(n){return Le(n,r)})}function si(e,t){if(!t.customMerge)return ue;var r=t.customMerge(e);return typeof r=="function"?r:ue}function ii(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function qt(e){return Object.keys(e).concat(ii(e))}function Jt(e,t){try{return t in e}catch{return!1}}function oi(e,t){return Jt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ai(e,t,r){var n={};return r.isMergeableObject(e)&&qt(e).forEach(function(s){n[s]=Le(e[s],r)}),qt(t).forEach(function(s){oi(e,s)||(Jt(e,s)&&r.isMergeableObject(t[s])?n[s]=si(s,r)(e[s],t[s],r):n[s]=Le(t[s],r))}),n}function ue(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ni,r.isMergeableObject=r.isMergeableObject||qs,r.cloneUnlessOtherwiseSpecified=Le;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):ai(e,t,r):Le(t,r)}ue.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return ue(n,s,r)},{})};var ui=ue;Zt.exports=ui});var er=Ks(Qt(),1);import li from"@pinojs/json-colorizer";var ci=/("(?:[^\\"]|\\.)*")|[:,]/g;function qe(e,t={}){let r=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),n=r===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer:s}=t;return function i(o,a,u){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let l=JSON.stringify(o,s);if(l===void 0)return l;let g=n-a.length-u;if(l.length<=g){let m=l.replace(ci,(E,L)=>L||`${E} `);if(m.length<=g)return m}if(s!=null&&(o=JSON.parse(l),s=void 0),typeof o=="object"&&o!==null){let m=a+r,E=[],L=0,v,h;if(Array.isArray(o)){v="[",h="]";let{length:c}=o;for(;L<c;L++)E.push(i(o[L],m,L===c-1?0:1)||"null")}else{v="{",h="}";let c=Object.keys(o),{length:b}=c;for(;L<b;L++){let A=c[L],C=`${JSON.stringify(A)}: `,N=i(o[A],m,C.length+(L===b-1?0:1));N!==void 0&&E.push(C+N)}}if(E.length>0)return[v,r+E.join(`,
3
+ ${m}`),h].join(`
4
+ ${a}`)}return l}(e,"",0)}function Je(e){return li(qe(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var fi=(e,t,r)=>{let n=[...e];for(let[s,i]of t.entries())n[s]===void 0?n[s]=r.cloneUnlessOtherwiseSpecified(i,r):r.isMergeableObject(i)?n[s]=Ze(e[s],i,r):e.includes(i)||n.push(i);return n};function Ze(e,t,r={arrayMerge:fi}){return(0,er.default)(e,t,r)}var tr=(e=0)=>t=>`\x1B[${t+e}m`,rr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,nr=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,T={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Qf=Object.keys(T.modifier),hi=Object.keys(T.color),pi=Object.keys(T.bgColor),e0=[...hi,...pi];function di(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,s]of Object.entries(r))T[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=T[n],e.set(s[0],s[1]);Object.defineProperty(T,t,{value:r,enumerable:!1})}return Object.defineProperty(T,"codes",{value:e,enumerable:!1}),T.color.close="\x1B[39m",T.bgColor.close="\x1B[49m",T.color.ansi=tr(),T.color.ansi256=rr(),T.color.ansi16m=nr(),T.bgColor.ansi=tr(10),T.bgColor.ansi256=rr(10),T.bgColor.ansi16m=nr(10),Object.defineProperties(T,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:t=>T.rgbToAnsi256(...T.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,s;if(t>=232)r=((t-232)*10+8)/255,n=r,s=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>T.ansi256ToAnsi(T.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>T.ansi256ToAnsi(T.hexToAnsi256(t)),enumerable:!1}}),T}var gi=di(),H=gi;import Qe from"node:process";import mi from"node:os";import sr from"node:tty";function z(e,t=globalThis.Deno?globalThis.Deno.args:Qe.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n<s)}var{env:F}=Qe,Ie;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?Ie=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(Ie=1);function bi(){if("FORCE_COLOR"in F)return F.FORCE_COLOR==="true"?1:F.FORCE_COLOR==="false"?0:F.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(F.FORCE_COLOR,10),3)}function yi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vi(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=bi();n!==void 0&&(Ie=n);let s=r?Ie:n;if(s===0)return 0;if(r){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in F&&"AGENT_NAME"in F)return 1;if(e&&!t&&s===void 0)return 0;let i=s||0;if(F.TERM==="dumb")return i;if(Qe.platform==="win32"){let o=mi.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in F)return"GITHUB_ACTIONS"in F||"GITEA_ACTIONS"in F?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in F)||F.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in F)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F.TEAMCITY_VERSION)?1:0;if(F.COLORTERM==="truecolor"||F.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in F){let o=Number.parseInt((F.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F.TERM)||"COLORTERM"in F?1:i}function ir(e,t={}){let r=vi(e,{streamIsTTY:e&&e.isTTY,...t});return yi(r)}var Ei={stdout:ir({isTTY:sr.isatty(1)}),stderr:ir({isTTY:sr.isatty(2)})},or=Ei;function ar(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let s=t.length,i=0,o="";do o+=e.slice(i,n)+t+r,i=n+s,n=e.indexOf(t,i);while(n!==-1);return o+=e.slice(i),o}function ur(e,t,r,n){let s=0,i="";do{let o=e[n-1]==="\r";i+=e.slice(s,o?n-1:n)+t+(o?`\r
5
5
  `:`
6
- `)+r,i=n+1,n=e.indexOf(`
7
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Ur,stderr:Gr}=jr,vt=Symbol("GENERATOR"),be=Symbol("STYLER"),Ie=Symbol("IS_EMPTY"),zr=["ansi","ansi","ansi256","ansi16m"],ye=Object.create(null),co=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ur?Ur.level:0;e.level=t.level===void 0?r:t.level};var uo=e=>{let t=(...r)=>r.join(" ");return co(t,e),Object.setPrototypeOf(t,_e.prototype),t};function _e(e){return uo(e)}Object.setPrototypeOf(_e.prototype,Function.prototype);for(let[e,t]of Object.entries(X))ye[e]={get(){let r=Ge(this,wt(t.open,t.close,this[be]),this[Ie]);return Object.defineProperty(this,e,{value:r}),r}};ye.visible={get(){let e=Ge(this,this[be],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Et=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?X[r].ansi16m(...n):t==="ansi256"?X[r].ansi256(X.rgbToAnsi256(...n)):X[r].ansi(X.rgbToAnsi(...n)):e==="hex"?Et("rgb",t,r,...X.hexToRgb(...n)):X[r][e](...n),fo=["rgb","hex","ansi256"];for(let e of fo){ye[e]={get(){let{level:r}=this;return function(...n){let i=wt(Et(e,zr[r],"color",...n),X.color.close,this[be]);return Ge(this,i,this[Ie])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ye[t]={get(){let{level:r}=this;return function(...n){let i=wt(Et(e,zr[r],"bgColor",...n),X.bgColor.close,this[be]);return Ge(this,i,this[Ie])}}}}var ho=Object.defineProperties(()=>{},{...ye,level:{enumerable:!0,get(){return this[vt].level},set(e){this[vt].level=e}}}),wt=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Ge=(e,t,r)=>{let n=(...i)=>po(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ho),n[vt]=e,n[be]=t,n[Ie]=r,n},po=(e,t)=>{if(e.level<=0||!t)return e[Ie]?"":t;let r=e[be];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=kr(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
8
- `);return s!==-1&&(t=Br(t,i,n,s)),n+t+i};Object.defineProperties(_e.prototype,ye);var go=_e(),Rd=_e({level:Gr?Gr.level:0});var Wr=go;import{cosmiconfig as rd}from"cosmiconfig";import{execa as nd}from"execa";import Ae from"fs-extra";import $r from"node:process";import st,{format as mo}from"util";import{normalize as bo,resolve as yo}from"path";import{readFileSync as vo}from"fs";import ot from"url";import ue from"node:path";import{fileURLToPath as ar}from"node:url";import Eo from"node:process";import Gt from"node:fs";import zn from"os";function Te(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Wn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Hn(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function wo(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var J;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(J||(J={}));var te,zt=class{constructor(t){te=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=wo(t),s=typeof t=="string",o=$o(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),u=n.configObjects||[],p=n.envPrefix,d=a["populate--"],v=d?"--":"_",w=Object.create(null),y=Object.create(null),f=n.__||te.format,c={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(h){let m=typeof h=="object"?h.key:h,L=Object.keys(h).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();L&&(c[L][m]=!0),c.arrays[m]=!0,c.keys.push(m)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(h){c.bools[h]=!0,c.keys.push(h)}),[].concat(n.string||[]).filter(Boolean).forEach(function(h){c.strings[h]=!0,c.keys.push(h)}),[].concat(n.number||[]).filter(Boolean).forEach(function(h){c.numbers[h]=!0,c.keys.push(h)}),[].concat(n.count||[]).filter(Boolean).forEach(function(h){c.counts[h]=!0,c.keys.push(h)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(h){c.normalize[h]=!0,c.keys.push(h)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([h,m])=>{typeof m=="number"&&(c.nargs[h]=m,c.keys.push(h))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([h,m])=>{typeof m=="function"&&(c.coercions[h]=m,c.keys.push(h))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(h){c.configs[h]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([h,m])=>{(typeof m=="boolean"||typeof m=="function")&&(c.configs[h]=m)})),Ls(n.key,o,n.default,c.arrays),Object.keys(l).forEach(function(h){(c.aliases[h]||[]).forEach(function(m){l[m]=l[h]})});let $=null;xs();let x=[],_=Object.assign(Object.create(null),{_:[]}),D={};for(let h=0;h<i.length;h++){let m=i[h],L=m.replace(/^-{3,}/,"---"),E,g,A,O,R,U;if(m!=="--"&&/^-/.test(m)&&Be(m))j(m);else if(L.match(/^---+(=|$)/)){j(m);continue}else if(m.match(/^--.+=/)||!a["short-option-groups"]&&m.match(/^-.+=/))O=m.match(/^--?([^=]+)=([\s\S]*)$/),O!==null&&Array.isArray(O)&&O.length>=3&&(I(O[1],c.arrays)?h=V(h,O[1],i,O[2]):I(O[1],c.nargs)!==!1?h=Y(h,O[1],i,O[2]):T(O[1],O[2],!0));else if(m.match(S)&&a["boolean-negation"])O=m.match(S),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],T(g,I(g,c.arrays)?[!1]:!1));else if(m.match(/^--.+/)||!a["short-option-groups"]&&m.match(/^-[^-]+/))O=m.match(/^--?(.+)/),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!R.match(/^-/)||R.match(b))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(T(g,R),h++):T(g,ge(g))));else if(m.match(/^-.\..+=/))O=m.match(/^-([^=]+)=([\s\S]*)$/),O!==null&&Array.isArray(O)&&O.length>=3&&T(O[1],O[2]);else if(m.match(/^-.\..+/)&&!m.match(b))R=i[h+1],O=m.match(/^-(.\..+)/),O!==null&&Array.isArray(O)&&O.length>=2&&(g=O[1],R!==void 0&&!R.match(/^-/)&&!I(g,c.bools)&&!I(g,c.counts)?(T(g,R),h++):T(g,ge(g)));else if(m.match(/^-[^-]+/)&&!m.match(b)){A=m.slice(1,-1).split(""),E=!1;for(let W=0;W<A.length;W++){if(R=m.slice(W+2),A[W+1]&&A[W+1]==="="){U=m.slice(W+3),g=A[W],I(g,c.arrays)?h=V(h,g,i,U):I(g,c.nargs)!==!1?h=Y(h,g,i,U):T(g,U),E=!0;break}if(R==="-"){T(A[W],R);continue}if(/[A-Za-z]/.test(A[W])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&I(R,c.bools)===!1){T(A[W],R),E=!0;break}if(A[W+1]&&A[W+1].match(/\W/)){T(A[W],R),E=!0;break}else T(A[W],ge(A[W]))}g=m.slice(-1)[0],!E&&g!=="-"&&(I(g,c.arrays)?h=V(h,g,i):I(g,c.nargs)!==!1?h=Y(h,g,i):(R=i[h+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(b))&&!I(g,c.bools)&&!I(g,c.counts)||/^(true|false)$/.test(R)?(T(g,R),h++):T(g,ge(g))))}else if(m.match(/^-[0-9]$/)&&m.match(b)&&I(m.slice(1),c.bools))g=m.slice(1),T(g,ge(g));else if(m==="--"){x=i.slice(h+1);break}else if(a["halt-at-non-option"]){x=i.slice(h);break}else j(m)}Sr(_,!0),Sr(_,!1),vs(_),Es(),Or(_,c.aliases,l,!0),ws(_),a["set-placeholder-key"]&&$s(_),Object.keys(c.counts).forEach(function(h){Ce(_,h.split("."))||T(h,0)}),d&&x.length&&(_[v]=[]),x.forEach(function(h){_[v].push(h)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(_).filter(h=>h!=="--"&&h.includes("-")).forEach(h=>{delete _[h]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(h=>o[h])).forEach(h=>{a["camel-case-expansion"]&&h.includes("-")&&delete _[h.split(".").map(m=>Te(m)).join(".")],delete _[h]});function j(h){let m=ke("_",h);(typeof m=="string"||typeof m=="number")&&_._.push(m)}function Y(h,m,L,E){let g,A=I(m,c.nargs);if(A=typeof A!="number"||isNaN(A)?1:A,A===0)return ee(E)||($=Error(f("Argument unexpected for: %s",m))),T(m,ge(m)),h;let O=ee(E)?0:1;if(a["nargs-eats-options"])L.length-(h+1)+O<A&&($=Error(f("Not enough arguments following: %s",m))),O=A;else{for(g=h+1;g<L.length&&(!L[g].match(/^-[^0-9]/)||L[g].match(b)||Be(L[g]));g++)O++;O<A&&($=Error(f("Not enough arguments following: %s",m)))}let R=Math.min(O,A);for(!ee(E)&&R>0&&(T(m,E),R--),g=h+1;g<R+h+1;g++)T(m,L[g]);return h+R}function V(h,m,L,E){let g=[],A=E||L[h+1],O=I(m,c.nargs);if(I(m,c.bools)&&!/^(true|false)$/.test(A))g.push(!0);else if(ee(A)||ee(E)&&/^-/.test(A)&&!b.test(A)&&!Be(A)){if(l[m]!==void 0){let R=l[m];g=Array.isArray(R)?R:[R]}}else{ee(E)||g.push(je(m,E,!0));for(let R=h+1;R<L.length&&!(!a["greedy-arrays"]&&g.length>0||O&&typeof O=="number"&&g.length>=O||(A=L[R],/^-/.test(A)&&!b.test(A)&&!Be(A)));R++)h=R,g.push(je(m,A,s))}return typeof O=="number"&&(O&&g.length<O||isNaN(O)&&g.length===0)&&($=Error(f("Not enough arguments following: %s",m))),T(m,g),h}function T(h,m,L=s){if(/-/.test(h)&&a["camel-case-expansion"]){let A=h.split(".").map(function(O){return Te(O)}).join(".");de(h,A)}let E=je(h,m,L),g=h.split(".");Re(_,g,E),c.aliases[h]&&c.aliases[h].forEach(function(A){let O=A.split(".");Re(_,O,E)}),g.length>1&&a["dot-notation"]&&(c.aliases[g[0]]||[]).forEach(function(A){let O=A.split("."),R=[].concat(g);R.shift(),O=O.concat(R),(c.aliases[h]||[]).includes(O.join("."))||Re(_,O,E)}),I(h,c.normalize)&&!I(h,c.arrays)&&[h].concat(c.aliases[h]||[]).forEach(function(O){Object.defineProperty(D,O,{enumerable:!0,get(){return m},set(R){m=typeof R=="string"?te.normalize(R):R}})})}function de(h,m){c.aliases[h]&&c.aliases[h].length||(c.aliases[h]=[m],w[m]=!0),c.aliases[m]&&c.aliases[m].length||de(m,h)}function je(h,m,L){L&&(m=Lo(m)),(I(h,c.bools)||I(h,c.counts))&&typeof m=="string"&&(m=m==="true");let E=Array.isArray(m)?m.map(function(g){return ke(h,g)}):ke(h,m);return I(h,c.counts)&&(ee(E)||typeof E=="boolean")&&(E=$t()),I(h,c.normalize)&&I(h,c.arrays)&&(Array.isArray(m)?E=m.map(g=>te.normalize(g)):E=te.normalize(m)),E}function ke(h,m){return!a["parse-positional-numbers"]&&h==="_"||!I(h,c.strings)&&!I(h,c.bools)&&!Array.isArray(m)&&(Hn(m)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${m}`)))||!ee(m)&&I(h,c.numbers))&&(m=Number(m)),m}function vs(h){let m=Object.create(null);Or(m,c.aliases,l),Object.keys(c.configs).forEach(function(L){let E=h[L]||m[L];if(E)try{let g=null,A=te.resolve(te.cwd(),E),O=c.configs[L];if(typeof O=="function"){try{g=O(A)}catch(R){g=R}if(g instanceof Error){$=g;return}}else g=te.require(A);pt(g)}catch(g){g.name==="PermissionDenied"?$=g:h[L]&&($=Error(f("Invalid JSON config file: %s",E)))}})}function pt(h,m){Object.keys(h).forEach(function(L){let E=h[L],g=m?m+"."+L:L;typeof E=="object"&&E!==null&&!Array.isArray(E)&&a["dot-notation"]?pt(E,g):(!Ce(_,g.split("."))||I(g,c.arrays)&&a["combine-arrays"])&&T(g,E)})}function Es(){typeof u<"u"&&u.forEach(function(h){pt(h)})}function Sr(h,m){if(typeof p>"u")return;let L=typeof p=="string"?p:"",E=te.env();Object.keys(E).forEach(function(g){if(L===""||g.lastIndexOf(L,0)===0){let A=g.split("__").map(function(O,R){return R===0&&(O=O.substring(L.length)),Te(O)});(m&&c.configs[A.join(".")]||!m)&&!Ce(h,A)&&T(A.join("."),E[g])}})}function ws(h){let m,L=new Set;Object.keys(h).forEach(function(E){if(!L.has(E)&&(m=I(E,c.coercions),typeof m=="function"))try{let g=ke(E,m(h[E]));[].concat(c.aliases[E]||[],E).forEach(A=>{L.add(A),h[A]=g})}catch(g){$=g}})}function $s(h){return c.keys.forEach(m=>{~m.indexOf(".")||typeof h[m]>"u"&&(h[m]=void 0)}),h}function Or(h,m,L,E=!1){Object.keys(L).forEach(function(g){Ce(h,g.split("."))||(Re(h,g.split("."),L[g]),E&&(y[g]=!0),(m[g]||[]).forEach(function(A){Ce(h,A.split("."))||Re(h,A.split("."),L[g])}))})}function Ce(h,m){let L=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(g){L=L[g]||{}});let E=m[m.length-1];return typeof L!="object"?!1:E in L}function Re(h,m,L){let E=h;a["dot-notation"]||(m=[m.join(".")]),m.slice(0,-1).forEach(function(U){U=Hr(U),typeof E=="object"&&E[U]===void 0&&(E[U]={}),typeof E[U]!="object"||Array.isArray(E[U])?(Array.isArray(E[U])?E[U].push({}):E[U]=[E[U],{}],E=E[U][E[U].length-1]):E=E[U]});let g=Hr(m[m.length-1]),A=I(m.join("."),c.arrays),O=Array.isArray(L),R=a["duplicate-arguments-array"];!R&&I(g,c.nargs)&&(R=!0,(!ee(E[g])&&c.nargs[g]===1||Array.isArray(E[g])&&E[g].length===c.nargs[g])&&(E[g]=void 0)),L===$t()?E[g]=$t(E[g]):Array.isArray(E[g])?R&&A&&O?E[g]=a["flatten-duplicate-arrays"]?E[g].concat(L):(Array.isArray(E[g][0])?E[g]:[E[g]]).concat([L]):!R&&!!A==!!O?E[g]=L:E[g]=E[g].concat([L]):E[g]===void 0&&A?E[g]=O?L:[L]:R&&!(E[g]===void 0||I(g,c.counts)||I(g,c.bools))?E[g]=[E[g],L]:E[g]=L}function Ls(...h){h.forEach(function(m){Object.keys(m||{}).forEach(function(L){c.aliases[L]||(c.aliases[L]=[].concat(o[L]||[]),c.aliases[L].concat(L).forEach(function(E){if(/-/.test(E)&&a["camel-case-expansion"]){let g=Te(E);g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].concat(L).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&a["camel-case-expansion"]){let g=Wn(E,"-");g!==L&&c.aliases[L].indexOf(g)===-1&&(c.aliases[L].push(g),w[g]=!0)}}),c.aliases[L].forEach(function(E){c.aliases[E]=[L].concat(c.aliases[L].filter(function(g){return E!==g}))}))})})}function I(h,m){let L=[].concat(c.aliases[h]||[],h),E=Object.keys(m),g=L.find(A=>E.includes(A));return g?m[g]:!1}function Ar(h){let m=Object.keys(c);return[].concat(m.map(E=>c[E])).some(function(E){return Array.isArray(E)?E.includes(h):E[h]})}function Ss(h,...m){return[].concat(...m).some(function(E){let g=h.match(E);return g&&Ar(g[1])})}function Os(h){if(h.match(b)||!h.match(/^-[^-]+/))return!1;let m=!0,L,E=h.slice(1).split("");for(let g=0;g<E.length;g++){if(L=h.slice(g+2),!Ar(E[g])){m=!1;break}if(E[g+1]&&E[g+1]==="="||L==="-"||/[A-Za-z]/.test(E[g])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)||E[g+1]&&E[g+1].match(/\W/))break}return m}function Be(h){return a["unknown-options-as-args"]&&As(h)}function As(h){return h=h.replace(/^-{3,}/,"--"),h.match(b)||Os(h)?!1:!Ss(h,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ge(h){return!I(h,c.bools)&&!I(h,c.counts)&&`${h}`in l?l[h]:Cs(Rs(h))}function Cs(h){return{[J.BOOLEAN]:!0,[J.STRING]:"",[J.NUMBER]:void 0,[J.ARRAY]:[]}[h]}function Rs(h){let m=J.BOOLEAN;return I(h,c.strings)?m=J.STRING:I(h,c.numbers)?m=J.NUMBER:I(h,c.bools)?m=J.BOOLEAN:I(h,c.arrays)&&(m=J.ARRAY),m}function ee(h){return h===void 0}function xs(){Object.keys(c.counts).find(h=>I(h,c.arrays)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.array.",h)),!0):I(h,c.nargs)?($=Error(f("Invalid configuration: %s, opts.count excludes opts.narg.",h)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(D,_),configuration:a,defaulted:Object.assign({},y),error:$,newAliases:Object.assign({},w)}}};function $o(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,l){return l.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function $t(e){return e!==void 0?e+1:1}function Hr(e){return e==="__proto__"?"___proto___":e}function Lo(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var Lt,St,Ot,Yr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Vr=(St=(Lt=process==null?void 0:process.versions)===null||Lt===void 0?void 0:Lt.node)!==null&&St!==void 0?St:(Ot=process==null?void 0:process.version)===null||Ot===void 0?void 0:Ot.slice(1);if(Vr&&Number(Vr.match(/^([^.]+)/)[1])<Yr)throw Error(`yargs parser supports a minimum Node.js version of ${Yr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var So=process?process.env:{},Yn=new zt({cwd:process.cwd,env:()=>So,format:mo,normalize:bo,resolve:yo,require:e=>{if(typeof dt<"u")return dt(e);if(e.match(/\.json$/))return JSON.parse(vo(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Se=function(t,r){return Yn.parse(t.slice(),r).argv};Se.detailed=function(e,t){return Yn.parse(e.slice(),t)};Se.camelCase=Te;Se.decamelize=Wn;Se.looksLikeNumber=Hn;function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr={exports:{}},Vn=e=>typeof e=="object"&&e!==null,Kn=Symbol("skip"),Kr=e=>Vn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Wt=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:i}=r;delete r.target;let s=o=>o.map(a=>Kr(a)?Wt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let l=t(o,a,e);if(l===Kn)continue;let[u,p,{shouldRecurse:d=!0}={}]=l;u!=="__proto__"&&(r.deep&&d&&Kr(p)&&(p=Array.isArray(p)?s(p):Wt(p,t,r,n)),i[u]=p)}return i};lr.exports=(e,t,r)=>{if(!Vn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Wt(e,t,r)};lr.exports.mapObjectSkip=Kn;var Oo=lr.exports,Ze=ce(Oo),Ao=/[\p{Lu}]/u,Co=/[\p{Ll}]/u,Xr=/^[\p{Lu}](?![\p{Lu}])/gu,Xn=/([\p{Alpha}\p{N}_]|$)/u,cr=/[_.\- ]+/,Ro=new RegExp("^"+cr.source),Jr=new RegExp(cr.source+Xn.source,"gu"),qr=new RegExp("\\d+"+Xn.source,"gu"),xo=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e[l];a=l>2?e[l-3]==="-":!0,i&&Ao.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),i=!1,o=s,s=!0,l++):s&&o&&Co.test(u)&&(!a||n)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),o=s,s=!1,i=!0):(i=t(u)===u&&r(u)!==u,o=s,s=r(u)===u&&t(u)!==u)}return e},Io=(e,t)=>(Xr.lastIndex=0,e.replace(Xr,r=>t(r))),_o=(e,t)=>(Jr.lastIndex=0,qr.lastIndex=0,e.replace(Jr,(r,n)=>t(n)).replace(qr,r=>t(r)));function Po(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(t.locale),n=t.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(t.locale);return e.length===1?cr.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=xo(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Ro,""),e=t.preserveConsecutiveUppercase?Io(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),_o(e,n))}var Qe=class extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(let[r,n]of t)this.onEviction(r,n.value)}_deleteIfExpired(t,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,r.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,r){if(this._deleteIfExpired(t,r)===!1)return r.value}_getItemValue(t,r){return r.expiry?this._getOrDeleteIfExpired(t,r):r.value}_peek(t,r){let n=r.get(t);return this._getItemValue(t,n)}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,r){this.oldCache.delete(t),this._set(t,r)}*_entriesAscending(){for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield t)}for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield t)}}get(t){if(this.cache.has(t)){let r=this.cache.get(t);return this._getItemValue(t,r)}if(this.oldCache.has(t)){let r=this.oldCache.get(t);if(this._deleteIfExpired(t,r)===!1)return this._moveToRecent(t,r),r.value}}set(t,r,{maxAge:n=this.maxAge}={}){let i=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:i}):this._set(t,{value:r,expiry:i}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-t;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let t=[...this.cache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[i,s]=n;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesAscending(){for(let[t,r]of this._entriesAscending())yield[t,r.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,r=this){for(let[n,i]of this.entriesAscending())t.call(r,i,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},No=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),At=new Qe({maxSize:1e5}),Zr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Qr=(e,t)=>{if(!Zr(e))return e;t={deep:!1,pascalCase:!1,...t};let{exclude:r,pascalCase:n,stopPaths:i,deep:s}=t,o=new Set(i),a=l=>(u,p)=>{if(s&&Zr(p)){let d=l===void 0?u:`${l}.${u}`;o.has(d)||(p=Ze(p,a(d)))}if(!(r&&No(r,u))){let d=n?`${u}_`:u;if(At.has(d))u=At.get(d);else{let v=Po(u,{pascalCase:n,locale:!1});u.length<100&&At.set(d,v),u=v}}return[u,p]};return Ze(e,a(void 0))};function Jn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Qr(e[r],t)):Qr(e,t)}function qn(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
6
+ `)+r,s=n+1,n=e.indexOf(`
7
+ `,s)}while(n!==-1);return i+=e.slice(s),i}var{stdout:cr,stderr:lr}=or,et=Symbol("GENERATOR"),ce=Symbol("STYLER"),Oe=Symbol("IS_EMPTY"),fr=["ansi","ansi","ansi256","ansi16m"],le=Object.create(null),Ci=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=cr?cr.level:0;e.level=t.level===void 0?r:t.level};var Li=e=>{let t=(...r)=>r.join(" ");return Ci(t,e),Object.setPrototypeOf(t,we.prototype),t};function we(e){return Li(e)}Object.setPrototypeOf(we.prototype,Function.prototype);for(let[e,t]of Object.entries(H))le[e]={get(){let r=xe(this,rt(t.open,t.close,this[ce]),this[Oe]);return Object.defineProperty(this,e,{value:r}),r}};le.visible={get(){let e=xe(this,this[ce],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var tt=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?H[r].ansi16m(...n):t==="ansi256"?H[r].ansi256(H.rgbToAnsi256(...n)):H[r].ansi(H.rgbToAnsi(...n)):e==="hex"?tt("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),Oi=["rgb","hex","ansi256"];for(let e of Oi){le[e]={get(){let{level:r}=this;return function(...n){let s=rt(tt(e,fr[r],"color",...n),H.color.close,this[ce]);return xe(this,s,this[Oe])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);le[t]={get(){let{level:r}=this;return function(...n){let s=rt(tt(e,fr[r],"bgColor",...n),H.bgColor.close,this[ce]);return xe(this,s,this[Oe])}}}}var wi=Object.defineProperties(()=>{},{...le,level:{enumerable:!0,get(){return this[et].level},set(e){this[et].level=e}}}),rt=(e,t,r)=>{let n,s;return r===void 0?(n=e,s=t):(n=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:s,parent:r}},xe=(e,t,r)=>{let n=(...s)=>Ai(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,wi),n[et]=e,n[ce]=t,n[Oe]=r,n},Ai=(e,t)=>{if(e.level<=0||!t)return e[Oe]?"":t;let r=e[ce];if(r===void 0)return t;let{openAll:n,closeAll:s}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=ar(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
8
+ `);return i!==-1&&(t=ur(t,s,n,i)),n+t+s};Object.defineProperties(we.prototype,le);var Si=we(),l0=we({level:lr?lr.level:0});var hr=Si;import{cosmiconfig as jf}from"cosmiconfig";import{execa as Bf}from"execa";import ve from"fs-extra";import Wt from"node:process";import $i,{format as Ri}from"util";import{normalize as Pi,resolve as Ni}from"path";import{readFileSync as Ii}from"fs";import ee from"node:path";import xi from"node:process";import{fileURLToPath as pn}from"node:url";import dn from"node:fs";import gn from"os";import mn from"url";function Ae(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,s=e.match(/^-+/);for(let i=s?s[0].length:0;i<e.length;i++){let o=e.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function bn(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let s=0;s<e.length;s++){let i=r.charAt(s),o=e.charAt(s);i!==o&&s>0?n+=`${t}${r.charAt(s)}`:n+=o}return n}function yn(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function _i(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,s=null,i=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!s){r!==" "&&t++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[t]||(i[t]=""),i[t]+=n}return i}var Y;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Y||(Y={}));var J,mt=class{constructor(t){J=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),s=_i(t),i=typeof t=="string",o=Ti(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],g=n.envPrefix,m=a["populate--"],E=m?"--":"_",L=Object.create(null),v=Object.create(null),h=n.__||J.format,c={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(f){let d=typeof f=="object"?f.key:f,O=Object.keys(f).map(function(y){return{boolean:"bools",string:"strings",number:"numbers"}[y]}).filter(Boolean).pop();O&&(c[O][d]=!0),c.arrays[d]=!0,c.keys.push(d)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(f){c.bools[f]=!0,c.keys.push(f)}),[].concat(n.string||[]).filter(Boolean).forEach(function(f){c.strings[f]=!0,c.keys.push(f)}),[].concat(n.number||[]).filter(Boolean).forEach(function(f){c.numbers[f]=!0,c.keys.push(f)}),[].concat(n.count||[]).filter(Boolean).forEach(function(f){c.counts[f]=!0,c.keys.push(f)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(f){c.normalize[f]=!0,c.keys.push(f)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([f,d])=>{typeof d=="number"&&(c.nargs[f]=d,c.keys.push(f))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([f,d])=>{typeof d=="function"&&(c.coercions[f]=d,c.keys.push(f))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(f){c.configs[f]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([f,d])=>{(typeof d=="boolean"||typeof d=="function")&&(c.configs[f]=d)})),Fs(n.key,o,n.default,c.arrays),Object.keys(u).forEach(function(f){(c.aliases[f]||[]).forEach(function(d){u[d]=u[f]})});let C=null;ks();let N=[],I=Object.assign(Object.create(null),{_:[]}),j={};for(let f=0;f<s.length;f++){let d=s[f],O=d.replace(/^-{3,}/,"---"),y,p,S,w,R,M;if(d!=="--"&&/^-/.test(d)&&Ne(d))W(d);else if(O.match(/^---+(=|$)/)){W(d);continue}else if(d.match(/^--.+=/)||!a["short-option-groups"]&&d.match(/^-.+=/))w=d.match(/^--?([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&(P(w[1],c.arrays)?f=ne(f,w[1],s,w[2]):P(w[1],c.nargs)!==!1?f=Z(f,w[1],s,w[2]):_(w[1],w[2],!0));else if(d.match(A)&&a["boolean-negation"])w=d.match(A),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],_(p,P(p,c.arrays)?[!1]:!1));else if(d.match(/^--.+/)||!a["short-option-groups"]&&d.match(/^-[^-]+/))w=d.match(/^--?(.+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!R.match(/^-/)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))));else if(d.match(/^-.\..+=/))w=d.match(/^-([^=]+)=([\s\S]*)$/),w!==null&&Array.isArray(w)&&w.length>=3&&_(w[1],w[2]);else if(d.match(/^-.\..+/)&&!d.match(b))R=s[f+1],w=d.match(/^-(.\..+)/),w!==null&&Array.isArray(w)&&w.length>=2&&(p=w[1],R!==void 0&&!R.match(/^-/)&&!P(p,c.bools)&&!P(p,c.counts)?(_(p,R),f++):_(p,ae(p)));else if(d.match(/^-[^-]+/)&&!d.match(b)){S=d.slice(1,-1).split(""),y=!1;for(let k=0;k<S.length;k++){if(R=d.slice(k+2),S[k+1]&&S[k+1]==="="){M=d.slice(k+3),p=S[k],P(p,c.arrays)?f=ne(f,p,s,M):P(p,c.nargs)!==!1?f=Z(f,p,s,M):_(p,M),y=!0;break}if(R==="-"){_(S[k],R);continue}if(/[A-Za-z]/.test(S[k])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)&&P(R,c.bools)===!1){_(S[k],R),y=!0;break}if(S[k+1]&&S[k+1].match(/\W/)){_(S[k],R),y=!0;break}else _(S[k],ae(S[k]))}p=d.slice(-1)[0],!y&&p!=="-"&&(P(p,c.arrays)?f=ne(f,p,s):P(p,c.nargs)!==!1?f=Z(f,p,s):(R=s[f+1],R!==void 0&&(!/^(-|--)[^-]/.test(R)||R.match(b))&&!P(p,c.bools)&&!P(p,c.counts)||/^(true|false)$/.test(R)?(_(p,R),f++):_(p,ae(p))))}else if(d.match(/^-[0-9]$/)&&d.match(b)&&P(d.slice(1),c.bools))p=d.slice(1),_(p,ae(p));else if(d==="--"){N=s.slice(f+1);break}else if(a["halt-at-non-option"]){N=s.slice(f);break}else W(d)}Yt(I,!0),Yt(I,!1),Is(I),xs(),Vt(I,c.aliases,u,!0),_s(I),a["set-placeholder-key"]&&Ts(I),Object.keys(c.counts).forEach(function(f){Ee(I,f.split("."))||_(f,0)}),m&&N.length&&(I[E]=[]),N.forEach(function(f){I[E].push(f)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(I).filter(f=>f!=="--"&&f.includes("-")).forEach(f=>{delete I[f]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(f=>o[f])).forEach(f=>{a["camel-case-expansion"]&&f.includes("-")&&delete I[f.split(".").map(d=>Ae(d)).join(".")],delete I[f]});function W(f){let d=Pe("_",f);(typeof d=="string"||typeof d=="number")&&I._.push(d)}function Z(f,d,O,y){let p,S=P(d,c.nargs);if(S=typeof S!="number"||isNaN(S)?1:S,S===0)return q(y)||(C=Error(h("Argument unexpected for: %s",d))),_(d,ae(d)),f;let w=q(y)?0:1;if(a["nargs-eats-options"])O.length-(f+1)+w<S&&(C=Error(h("Not enough arguments following: %s",d))),w=S;else{for(p=f+1;p<O.length&&(!O[p].match(/^-[^0-9]/)||O[p].match(b)||Ne(O[p]));p++)w++;w<S&&(C=Error(h("Not enough arguments following: %s",d)))}let R=Math.min(w,S);for(!q(y)&&R>0&&(_(d,y),R--),p=f+1;p<R+f+1;p++)_(d,O[p]);return f+R}function ne(f,d,O,y){let p=[],S=y||O[f+1],w=P(d,c.nargs);if(P(d,c.bools)&&!/^(true|false)$/.test(S))p.push(!0);else if(q(S)||q(y)&&/^-/.test(S)&&!b.test(S)&&!Ne(S)){if(u[d]!==void 0){let R=u[d];p=Array.isArray(R)?R:[R]}}else{q(y)||p.push(Ve(d,y,!0));for(let R=f+1;R<O.length&&!(!a["greedy-arrays"]&&p.length>0||w&&typeof w=="number"&&p.length>=w||(S=O[R],/^-/.test(S)&&!b.test(S)&&!Ne(S)));R++)f=R,p.push(Ve(d,S,i))}return typeof w=="number"&&(w&&p.length<w||isNaN(w)&&p.length===0)&&(C=Error(h("Not enough arguments following: %s",d))),_(d,p),f}function _(f,d,O=i){if(/-/.test(f)&&a["camel-case-expansion"]){let S=f.split(".").map(function(w){return Ae(w)}).join(".");Ht(f,S)}let y=Ve(f,d,O),p=f.split(".");Ce(I,p,y),c.aliases[f]&&c.aliases[f].forEach(function(S){let w=S.split(".");Ce(I,w,y)}),p.length>1&&a["dot-notation"]&&(c.aliases[p[0]]||[]).forEach(function(S){let w=S.split("."),R=[].concat(p);R.shift(),w=w.concat(R),(c.aliases[f]||[]).includes(w.join("."))||Ce(I,w,y)}),P(f,c.normalize)&&!P(f,c.arrays)&&[f].concat(c.aliases[f]||[]).forEach(function(w){Object.defineProperty(j,w,{enumerable:!0,get(){return d},set(R){d=typeof R=="string"?J.normalize(R):R}})})}function Ht(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Ht(d,f)}function Ve(f,d,O){O&&(d=Fi(d)),(P(f,c.bools)||P(f,c.counts))&&typeof d=="string"&&(d=d==="true");let y=Array.isArray(d)?d.map(function(p){return Pe(f,p)}):Pe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=nt()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function Pe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(yn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function Is(f){let d=Object.create(null);Vt(d,c.aliases,u),Object.keys(c.configs).forEach(function(O){let y=f[O]||d[O];if(y)try{let p=null,S=J.resolve(J.cwd(),y),w=c.configs[O];if(typeof w=="function"){try{p=w(S)}catch(R){p=R}if(p instanceof Error){C=p;return}}else p=J.require(S);Xe(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Xe(f,d){Object.keys(f).forEach(function(O){let y=f[O],p=d?d+"."+O:O;typeof y=="object"&&y!==null&&!Array.isArray(y)&&a["dot-notation"]?Xe(y,p):(!Ee(I,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function xs(){typeof l<"u"&&l.forEach(function(f){Xe(f)})}function Yt(f,d){if(typeof g>"u")return;let O=typeof g=="string"?g:"",y=J.env();Object.keys(y).forEach(function(p){if(O===""||p.lastIndexOf(O,0)===0){let S=p.split("__").map(function(w,R){return R===0&&(w=w.substring(O.length)),Ae(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function _s(f){let d,O=new Set;Object.keys(f).forEach(function(y){if(!O.has(y)&&(d=P(y,c.coercions),typeof d=="function"))try{let p=Pe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function Ts(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function Vt(f,d,O,y=!1){Object.keys(O).forEach(function(p){Ee(f,p.split("."))||(Ce(f,p.split("."),O[p]),y&&(v[p]=!0),(d[p]||[]).forEach(function(S){Ee(f,S.split("."))||Ce(f,S.split("."),O[p])}))})}function Ee(f,d){let O=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(p){O=O[p]||{}});let y=d[d.length-1];return typeof O!="object"?!1:y in O}function Ce(f,d,O){let y=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(M){M=pr(M),typeof y=="object"&&y[M]===void 0&&(y[M]={}),typeof y[M]!="object"||Array.isArray(y[M])?(Array.isArray(y[M])?y[M].push({}):y[M]=[y[M],{}],y=y[M][y[M].length-1]):y=y[M]});let p=pr(d[d.length-1]),S=P(d.join("."),c.arrays),w=Array.isArray(O),R=a["duplicate-arguments-array"];!R&&P(p,c.nargs)&&(R=!0,(!q(y[p])&&c.nargs[p]===1||Array.isArray(y[p])&&y[p].length===c.nargs[p])&&(y[p]=void 0)),O===nt()?y[p]=nt(y[p]):Array.isArray(y[p])?R&&S&&w?y[p]=a["flatten-duplicate-arrays"]?y[p].concat(O):(Array.isArray(y[p][0])?y[p]:[y[p]]).concat([O]):!R&&!!S==!!w?y[p]=O:y[p]=y[p].concat([O]):y[p]===void 0&&S?y[p]=w?O:[O]:R&&!(y[p]===void 0||P(p,c.counts)||P(p,c.bools))?y[p]=[y[p],O]:y[p]=O}function Fs(...f){f.forEach(function(d){Object.keys(d||{}).forEach(function(O){c.aliases[O]||(c.aliases[O]=[].concat(o[O]||[]),c.aliases[O].concat(O).forEach(function(y){if(/-/.test(y)&&a["camel-case-expansion"]){let p=Ae(y);p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].concat(O).forEach(function(y){if(y.length>1&&/[A-Z]/.test(y)&&a["camel-case-expansion"]){let p=bn(y,"-");p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].forEach(function(y){c.aliases[y]=[O].concat(c.aliases[O].filter(function(p){return y!==p}))}))})})}function P(f,d){let O=[].concat(c.aliases[f]||[],f),y=Object.keys(d),p=O.find(S=>y.includes(S));return p?d[p]:!1}function Xt(f){let d=Object.keys(c);return[].concat(d.map(y=>c[y])).some(function(y){return Array.isArray(y)?y.includes(f):y[f]})}function Ds(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Xt(p[1])})}function Ms(f){if(f.match(b)||!f.match(/^-[^-]+/))return!1;let d=!0,O,y=f.slice(1).split("");for(let p=0;p<y.length;p++){if(O=f.slice(p+2),!Xt(y[p])){d=!1;break}if(y[p+1]&&y[p+1]==="="||O==="-"||/[A-Za-z]/.test(y[p])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||y[p+1]&&y[p+1].match(/\W/))break}return d}function Ne(f){return a["unknown-options-as-args"]&&js(f)}function js(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||Ms(f)?!1:!Ds(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:Bs(Gs(f))}function Bs(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function Gs(f){let d=Y.BOOLEAN;return P(f,c.strings)?d=Y.STRING:P(f,c.numbers)?d=Y.NUMBER:P(f,c.bools)?d=Y.BOOLEAN:P(f,c.arrays)&&(d=Y.ARRAY),d}function q(f){return f===void 0}function ks(){Object.keys(c.counts).find(f=>P(f,c.arrays)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.array.",f)),!0):P(f,c.nargs)?(C=Error(h("Invalid configuration: %s, opts.count excludes opts.narg.",f)),!0):!1)}return{aliases:Object.assign({},c.aliases),argv:Object.assign(j,I),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},L)}}};function Ti(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});n;){n=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(a){return t[i].indexOf(a)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),n=!0;break}}return t.forEach(function(s){s=s.filter(function(o,a,u){return u.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(r[i]=s)}),r}function nt(e){return e!==void 0?e+1:1}function pr(e){return e==="__proto__"?"___proto___":e}function Fi(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var st,it,ot,dr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,gr=(it=(st=process==null?void 0:process.versions)===null||st===void 0?void 0:st.node)!==null&&it!==void 0?it:(ot=process==null?void 0:process.version)===null||ot===void 0?void 0:ot.slice(1);if(gr&&Number(gr.match(/^([^.]+)/)[1])<dr)throw Error(`yargs parser supports a minimum Node.js version of ${dr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Di=process?process.env:{},vn=new mt({cwd:process.cwd,env:()=>Di,format:Ri,normalize:Pi,resolve:Ni,require:e=>{if(typeof Ke<"u")return Ke(e);if(e.match(/\.json$/))return JSON.parse(Ii(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),be=function(t,r){return vn.parse(t.slice(),r).argv};be.detailed=function(e,t){return vn.parse(e.slice(),t)};be.camelCase=Ae;be.decamelize=bn;be.looksLikeNumber=yn;var En=e=>typeof e=="object"&&e!==null,mr=e=>En(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Mi=Symbol("mapObjectSkip"),bt=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:s}=r;delete r.target;let i=o=>o.map(a=>mr(a)?bt(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===Mi)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&mr(g)&&(g=Array.isArray(g)?i(g):bt(g,t,r,n)),s[l]=g)}return s};function br(e,t,r){if(!En(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return bt(e,t,r)}var ji=/[\p{Lu}]/u,Bi=/[\p{Ll}]/u,yr=/^[\p{Lu}](?![\p{Lu}])/gu,Cn=/([\p{Alpha}\p{N}_]|$)/u,xt=/[_.\- ]+/,Gi=new RegExp("^"+xt.source),vr=new RegExp(xt.source+Cn.source,"gu"),Er=new RegExp("\\d+"+Cn.source,"gu"),ki=(e,t,r,n)=>{let s=!1,i=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,s&&ji.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),s=!1,o=i,i=!0,u++):i&&o&&Bi.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=i,i=!1,s=!0):(s=t(l)===l&&r(l)!==l,o=i,i=r(l)===l&&t(l)!==l)}return e},Ui=(e,t)=>(yr.lastIndex=0,e.replaceAll(yr,r=>t(r))),Wi=(e,t)=>(vr.lastIndex=0,Er.lastIndex=0,e.replaceAll(Er,(r,n,s)=>["_","-"].includes(e.charAt(s+r.length))?r:t(r)).replaceAll(vr,(r,n)=>t(n)));function zi(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(t.locale),n=t.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(t.locale);return e.length===1?xt.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=ki(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Gi,""),e=t.preserveConsecutiveUppercase?Ui(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Wi(e,n))}var Be=class extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(let[r,n]of t)this.onEviction(r,n.value)}_deleteIfExpired(t,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,r.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,r){if(this._deleteIfExpired(t,r)===!1)return r.value}_getItemValue(t,r){return r.expiry?this._getOrDeleteIfExpired(t,r):r.value}_peek(t,r){let n=r.get(t);return this._getItemValue(t,n)}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,r){this.oldCache.delete(t),this._set(t,r)}*_entriesAscending(){for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield t)}for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield t)}}get(t){if(this.cache.has(t)){let r=this.cache.get(t);return this._getItemValue(t,r)}if(this.oldCache.has(t)){let r=this.oldCache.get(t);if(this._deleteIfExpired(t,r)===!1)return this._moveToRecent(t,r),r.value}}set(t,r,{maxAge:n=this.maxAge}={}){let s=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(t)?this.cache.set(t,{value:r,expiry:s}):this._set(t,{value:r,expiry:s}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){let r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");let r=[...this._entriesAscending()],n=r.length-t;n<0?(this.cache=new Map(r),this.oldCache=new Map,this._size=r.length):(n>0&&this._emitEvictions(r.slice(0,n)),this.oldCache=new Map(r.slice(n)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(let[t]of this)yield t}*values(){for(let[,t]of this)yield t}*[Symbol.iterator](){for(let t of this.cache){let[r,n]=t;this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}for(let t of this.oldCache){let[r,n]=t;this.cache.has(r)||this._deleteIfExpired(r,n)===!1&&(yield[r,n.value])}}*entriesDescending(){let t=[...this.cache];for(let r=t.length-1;r>=0;--r){let n=t[r],[s,i]=n;this._deleteIfExpired(s,i)===!1&&(yield[s,i.value])}t=[...this.oldCache];for(let r=t.length-1;r>=0;--r){let n=t[r],[s,i]=n;this.cache.has(s)||this._deleteIfExpired(s,i)===!1&&(yield[s,i.value])}}*entriesAscending(){for(let[t,r]of this._entriesAscending())yield[t,r.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(let r of this.oldCache.keys())this.cache.has(r)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,r=this){for(let[n,s]of this.entriesAscending())t.call(r,s,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}},Hi=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),at=new Be({maxSize:1e5}),Cr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Lr=(e,t={})=>{if(!Cr(e))return e;let{exclude:r,pascalCase:n=!1,stopPaths:s,deep:i=!1,preserveConsecutiveUppercase:o=!1}=t,a=new Set(s),u=l=>(g,m)=>{if(i&&Cr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=br(m,u(E)))}if(!(r&&Hi(r,g))){let E=n?`${g}_`:g;if(at.has(E))g=at.get(E);else{let L=zi(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&at.set(E,L),g=L}}return[g,m]};return br(e,u(void 0))};function Ln(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Lr(e[r],t)):Lr(e,t)}function On(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
9
9
  `);)t++;for(;r>t&&(e[r-1]==="\r"||e[r-1]===`
10
- `);)r--;return t>0||r<e.length?e.slice(t,r):e}var To=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Fo=ce(To);function Do(e){let t=Fo(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Mo(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let s=i?/^/gm:/^(?!\s*$)/gm;return e.replace(s,n.repeat(t))}function Zn(e,t=0,r={}){return Mo(Do(e),t,r)}var ur={exports:{}},jo=st,en=!1,Qn=(e=console.error)=>{en||(en=!0,process.on("unhandledRejection",t=>{t instanceof Error||(t=new Error(`Promise rejected with value: ${jo.inspect(t)}`)),e(t.stack),process.exit(1)}))};ur.exports=Qn;ur.exports.default=Qn;var ko=ur.exports,ei=ce(ko),Bo=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},ti=Bo,Uo="2.0.0",ri=256,Go=Number.MAX_SAFE_INTEGER||9007199254740991,zo=16,Wo=ri-6,Ho=["major","premajor","minor","preminor","patch","prepatch","prerelease"],ni={MAX_LENGTH:ri,MAX_SAFE_COMPONENT_LENGTH:zo,MAX_SAFE_BUILD_LENGTH:Wo,MAX_SAFE_INTEGER:Go,RELEASE_TYPES:Ho,SEMVER_SPEC_VERSION:Uo,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ht={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=ni,s=ti;t=e.exports={};let o=t.re=[],a=t.safeRe=[],l=t.src=[],u=t.t={},p=0,d="[a-zA-Z0-9-]",v=[["\\s",1],["\\d",i],[d,n]],w=f=>{for(let[c,b]of v)f=f.split(`${c}*`).join(`${c}{0,${b}}`).split(`${c}+`).join(`${c}{1,${b}}`);return f},y=(f,c,b)=>{let S=w(c),$=p++;s(f,$,c),u[f]=$,l[$]=c,o[$]=new RegExp(c,b?"g":void 0),a[$]=new RegExp(S,b?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ht,Ht.exports);var Yo=Ht.exports,Vo=Object.freeze({loose:!0}),Ko=Object.freeze({}),Xo=e=>e?typeof e!="object"?Vo:e:Ko,Jo=Xo,tn=/^[0-9]+$/,ii=(e,t)=>{let r=tn.test(e),n=tn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},qo=(e,t)=>ii(t,e),Zo={compareIdentifiers:ii,rcompareIdentifiers:qo},ze=ti,{MAX_LENGTH:rn,MAX_SAFE_INTEGER:We}=ni,{safeRe:nn,t:sn}=Yo,Qo=Jo,{compareIdentifiers:ve}=Zo,ea=class Q{constructor(t,r){if(r=Qo(r),t instanceof Q){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>rn)throw new TypeError(`version is longer than ${rn} characters`);ze("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?nn[sn.LOOSE]:nn[sn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>We||this.major<0)throw new TypeError("Invalid major version");if(this.minor>We||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>We||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<We)return s}return i}):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(t){if(ze("SemVer.compare",this.version,this.options,t),!(t instanceof Q)){if(typeof t=="string"&&t===this.version)return 0;t=new Q(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Q||(t=new Q(t,this.options)),ve(this.major,t.major)||ve(this.minor,t.minor)||ve(this.patch,t.patch)}comparePre(t){if(t instanceof Q||(t=new Q(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(ze("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ve(n,i)}while(++r)}compareBuild(t){t instanceof Q||(t=new Q(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(ze("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return ve(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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 i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),ve(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},ta=ea,on=ta,ra=(e,t,r=!1)=>{if(e instanceof on)return e;try{return new on(e,t)}catch(n){if(!r)return null;throw n}},si=ra,na=si,ia=(e,t)=>{let r=na(e,t);return r?r.version:null},oi=ia,sa=si,oa=(e,t)=>{let r=sa(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},ai=oa,li=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HPND","HPND-Markus-Kuhn","HPND-export-US","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","mpi-permissive","mpich2","mplus","psfrag","psutils","snprintf","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],aa=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],la=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"],ca=[].concat(li).concat(aa),ua=la,fa=function(e){var t=0;function r(){return t<e.length}function n(y){if(y instanceof RegExp){var f=e.slice(t),c=f.match(y);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(y,t)===t)return t+=y.length,y}function i(){n(/[ ]*/)}function s(){for(var y,f=["WITH","AND","OR","(",")",":","+"],c=0;c<f.length&&(y=n(f[c]),!y);c++);if(y==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return y&&{type:"OPERATOR",string:y}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var y=o();if(!y)throw new Error("Expected idstring at offset "+t);return y}function l(){if(n("DocumentRef-")){var y=a();return{type:"DOCUMENTREF",string:y}}}function u(){if(n("LicenseRef-")){var y=a();return{type:"LICENSEREF",string:y}}}function p(){var y=t,f=o();if(ca.indexOf(f)!==-1)return{type:"LICENSE",string:f};if(ua.indexOf(f)!==-1)return{type:"EXCEPTION",string:f};t=y}function d(){return s()||l()||u()||p()}for(var v=[];r()&&(i(),!!r());){var w=d();if(!w)throw new Error("Unexpected `"+e[t]+"` at offset "+t);v.push(w)}return v},ha=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(f){var c=n();if(c&&c.type==="OPERATOR"&&f===c.string)return i(),c.string}function o(){if(s("WITH")){var f=n();if(f&&f.type==="EXCEPTION")return i(),f.string;throw new Error("Expected exception after `WITH`")}}function a(){var f=t,c="",b=n();if(b.type==="DOCUMENTREF"&&(i(),c+="DocumentRef-"+b.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return i(),c+="LicenseRef-"+b.string,{license:c};t=f}function l(){var f=n();if(f&&f.type==="LICENSE"){i();var c={license:f.string};s("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function u(){var f=s("(");if(f){var c=w();if(!s(")"))throw new Error("Expected `)`");return c}}function p(){return u()||a()||l()}function d(f,c){return function b(){var S=c();if(S){if(!s(f))return S;var $=b();if(!$)throw new Error("Expected expression");return{left:S,conjunction:f.toLowerCase(),right:$}}}}var v=d("AND",p),w=d("OR",v),y=w();if(!y||r())throw new Error("Syntax error");return y},pa=fa,da=ha,ci=function(e){return da(pa(e))},ga=ci,ma=li;function Xe(e){try{return ga(e),!0}catch{return!1}}function ui(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var an=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(ui),ba=0,ya=1,ln=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Yt=ma.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),va=Object.keys(Yt).map(function(t){return[t,Yt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Yt=void 0;var cn=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(va).sort(ui),Ea=0,wa=1,un=function(e){for(var t=0;t<ln.length;t++){var r=ln[t](e).trim();if(r!==e&&Xe(r))return r}return null},fn=function(e){for(var t=e.toUpperCase(),r=0;r<cn.length;r++){var n=cn[r];if(t.indexOf(n[Ea])>-1)return n[wa]}return null},hn=function(e,t){for(var r=0;r<an.length;r++){var n=an[r],i=n[ba];if(e.indexOf(i)>-1){var s=e.replace(i,n[ya]),o=t(s);if(o!==null)return o}}return null},$a=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?La(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Xe(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Xe(s))return n(s);var o=un(e);return o!==null||(o=hn(e,function(a){return Xe(a)?a:un(a)}),o!==null)||(o=fn(e),o!==null)||(o=hn(e,fn),o!==null)?n(o):null};function La(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}var Sa=ci,Oa=$a,pn='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Aa=/^SEE LICEN[CS]E IN (.+)$/;function dn(e,t){return t.slice(0,e.length)===e}function Vt(e){if(e.hasOwnProperty("license")){var t=e.license;return dn("LicenseRef",t)||dn("DocumentRef",t)}else return Vt(e.left)||Vt(e.right)}var fi=function(e){var t;try{t=Sa(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Aa.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[pn]};if(e.trim().length!==0){var i=Oa(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Vt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[pn]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},Pe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ca=typeof AbortController=="function",et=Ca?AbortController:class{constructor(){this.signal=new hi}abort(t=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||t,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},Ra=typeof AbortSignal=="function",xa=typeof et.AbortSignal=="function",hi=Ra?AbortSignal:xa?et.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(t){t.type==="abort"&&(this.aborted=!0,this.onabort(t),this._listeners.forEach(r=>r(t),this))}onabort(){}addEventListener(t,r){t==="abort"&&this._listeners.push(r)}removeEventListener(t,r){t==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},fr=new Set,Ct=(e,t)=>{let r=`LRU_CACHE_OPTION_${e}`;at(r)&&hr(r,`${e} option`,`options.${t}`,lt)},Rt=(e,t)=>{let r=`LRU_CACHE_METHOD_${e}`;if(at(r)){let{prototype:n}=lt,{get:i}=Object.getOwnPropertyDescriptor(n,e);hr(r,`${e} method`,`cache.${t}()`,i)}},Ia=(e,t)=>{let r=`LRU_CACHE_PROPERTY_${e}`;if(at(r)){let{prototype:n}=lt,{get:i}=Object.getOwnPropertyDescriptor(n,e);hr(r,`${e} property`,`cache.${t}`,i)}},pi=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},at=e=>!fr.has(e),hr=(e,t,r,n)=>{fr.add(e);let i=`The ${t} is deprecated. Please use ${r} instead.`;pi(i,"DeprecationWarning",e,n)},ne=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),di=e=>ne(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Je:null:null,Je=class extends Array{constructor(t){super(t),this.fill(0)}},_a=class{constructor(t){if(t===0)return[];let r=di(t);this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},lt=class Kt{constructor(t={}){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:v,maxSize:w=0,maxEntrySize:y=0,sizeCalculation:f,fetchMethod:c,fetchContext:b,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:_,ignoreFetchAbort:D}=t,{length:j,maxAge:Y,stale:V}=t instanceof Kt?{}:t;if(r!==0&&!ne(r))throw new TypeError("max option must be a nonnegative integer");let T=r?di(r):Array;if(!T)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=w,this.maxEntrySize=y||this.maxSize,this.sizeCalculation=f||j,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=c||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=b,!this.fetchMethod&&b!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new T(r),this.prev=new T(r),this.head=0,this.tail=0,this.free=new _a(r),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof p=="function"?(this.disposeAfter=p,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.maxSize!==0&&!ne(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!ne(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!V,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ne(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||Y||0,this.ttl){if(!ne(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let de="LRU_CACHE_UNBOUNDED";at(de)&&(fr.add(de),pi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",de,Kt))}V&&Ct("stale","allowStale"),Y&&Ct("maxAge","ttl"),j&&Ct("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Je(this.max),this.starts=new Je(this.max),this.setItemTTL=(n,i,s=Pe.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?Pe.now():0},this.statusTTL=(n,i)=>{n&&(n.ttl=this.ttls[i],n.start=this.starts[i],n.now=t||r(),n.remainingTTL=n.now+n.ttl-n.start)};let t=0,r=()=>{let n=Pe.now();if(this.ttlResolution>0){t=n;let i=setTimeout(()=>t=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{let i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(t||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(t||r())-this.starts[n]>this.ttls[n]}updateItemAge(t){}statusTTL(t,r){}setItemTTL(t,r,n){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Je(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!ne(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,t),!ne(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.addItemSize=(t,r,n)=>{if(this.sizes[t]=r,this.maxSize){let i=this.maxSize-this.sizes[t];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(t){}addItemSize(t,r){}requireSize(t,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((t||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(t){return t!==void 0&&this.keyMap.get(this.keyList[t])===t}*entries(){for(let t of this.indexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*rentries(){for(let t of this.rindexes())this.valList[t]!==void 0&&this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield[this.keyList[t],this.valList[t]])}*keys(){for(let t of this.indexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*rkeys(){for(let t of this.rindexes())this.keyList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.keyList[t])}*values(){for(let t of this.indexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}*rvalues(){for(let t of this.rindexes())this.valList[t]!==void 0&&!this.isBackgroundFetch(this.valList[t])&&(yield this.valList[t])}[Symbol.iterator](){return this.entries()}find(t,r){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.keyList[n],this))return this.get(this.keyList[n],r)}}forEach(t,r=this){for(let n of this.indexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}rforEach(t,r=this){for(let n of this.rindexes()){let i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.keyList[n],this)}}get prune(){return Rt("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(let r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),t=!0);return t}dump(){let t=[];for(let r of this.indexes({allowStale:!0})){let n=this.keyList[r],i=this.valList[r],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s===void 0)continue;let o={value:s};if(this.ttls){o.ttl=this.ttls[r];let a=Pe.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Pe.now()-i}this.set(r,n.value,n)}}dispose(t,r,n){}set(t,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,status:u}={}){if(o=this.requireSize(t,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let p=this.size===0?void 0:this.keyMap.get(t);if(p===void 0)p=this.newIndex(),this.keyList[p]=t,this.valList[p]=r,this.keyMap.set(t,p),this.next[this.tail]=p,this.prev[p]=this.tail,this.tail=p,this.size++,this.addItemSize(p,o,u),u&&(u.set="add"),l=!1;else{this.moveToTail(p);let d=this.valList[p];if(r!==d){if(this.isBackgroundFetch(d)?d.__abortController.abort(new Error("replaced")):s||(this.dispose(d,t,"set"),this.disposeAfter&&this.disposed.push([d,t,"set"])),this.removeItemSize(p),this.valList[p]=r,this.addItemSize(p,o,u),u){u.set="replace";let v=d&&this.isBackgroundFetch(d)?d.__staleWhileFetching:d;v!==void 0&&(u.oldValue=v)}}else u&&(u.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(p,n,i),this.statusTTL(u,p),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let t=this.valList[this.head];return this.evict(!0),t}}evict(t){let r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),t&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(t,{updateAgeOnHas:r=this.updateAgeOnHas,status:n}={}){let i=this.keyMap.get(t);if(i!==void 0)if(this.isStale(i))n&&(n.has="stale",this.statusTTL(n,i));else return r&&this.updateItemAge(i),n&&(n.has="hit"),this.statusTTL(n,i),!0;else n&&(n.has="miss");return!1}peek(t,{allowStale:r=this.allowStale}={}){let n=this.keyMap.get(t);if(n!==void 0&&(r||!this.isStale(n))){let i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(t,r,n,i){let s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;let o=new et;n.signal&&n.signal.addEventListener("abort",()=>o.abort(n.signal.reason));let a={signal:o.signal,options:n,context:i},l=(w,y=!1)=>{let{aborted:f}=o.signal,c=n.ignoreFetchAbort&&w!==void 0;return n.status&&(f&&!y?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,c&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),f&&!c&&!y?p(o.signal.reason):(this.valList[r]===v&&(w===void 0?v.__staleWhileFetching?this.valList[r]=v.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,w,a.options))),w)},u=w=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=w),p(w)),p=w=>{let{aborted:y}=o.signal,f=y&&n.allowStaleOnFetchAbort,c=f||n.allowStaleOnFetchRejection,b=c||n.noDeleteOnFetchRejection;if(this.valList[r]===v&&(!b||v.__staleWhileFetching===void 0?this.delete(t):f||(this.valList[r]=v.__staleWhileFetching)),c)return n.status&&v.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),v.__staleWhileFetching;if(v.__returned===v)throw w},d=(w,y)=>{this.fetchMethod(t,s,a).then(f=>w(f),y),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(w(),n.allowStaleOnFetchAbort&&(w=f=>l(f,!0)))})};n.status&&(n.status.fetchDispatched=!0);let v=new Promise(d).then(l,u);return v.__abortController=o,v.__staleWhileFetching=s,v.__returned=null,r===void 0?(this.set(t,v,{...a.options,status:void 0}),r=this.keyMap.get(t)):this.valList[r]=v,v}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,fetchContext:y=this.fetchContext,forceRefresh:f=!1,status:c,signal:b}={}){if(!this.fetchMethod)return c&&(c.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:c});let S={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:w,ignoreFetchAbort:v,status:c,signal:b},$=this.keyMap.get(t);if($===void 0){c&&(c.fetch="miss");let x=this.backgroundFetch(t,$,S,y);return x.__returned=x}else{let x=this.valList[$];if(this.isBackgroundFetch(x)){let V=r&&x.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",V&&(c.returnedStale=!0)),V?x.__staleWhileFetching:x.__returned=x}let _=this.isStale($);if(!f&&!_)return c&&(c.fetch="hit"),this.moveToTail($),n&&this.updateItemAge($),this.statusTTL(c,$),x;let D=this.backgroundFetch(t,$,S,y),j=D.__staleWhileFetching!==void 0,Y=j&&r;return c&&(c.fetch=j&&_?"stale":"refresh",Y&&_&&(c.returnedStale=!0)),Y?D.__staleWhileFetching:D.__returned=D}}get(t,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}={}){let o=this.keyMap.get(t);if(o!==void 0){let a=this.valList[o],l=this.isBackgroundFetch(a);return this.statusTTL(s,o),this.isStale(o)?(s&&(s.get="stale"),l?(s&&(s.returnedStale=r&&a.__staleWhileFetching!==void 0),r?a.__staleWhileFetching:void 0):(i||this.delete(t),s&&(s.returnedStale=r),r?a:void 0)):(s&&(s.get="hit"),l?a.__staleWhileFetching:(this.moveToTail(o),n&&this.updateItemAge(o),a))}else s&&(s.get="miss")}connect(t,r){this.prev[r]=t,this.next[t]=r}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return Rt("del","delete"),this.delete}delete(t){let r=!1;if(this.size!==0){let n=this.keyMap.get(t);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);let i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,t,"delete"),this.disposeAfter&&this.disposed.push([i,t,"delete"])),this.keyMap.delete(t),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(let t of this.rindexes({allowStale:!0})){let r=this.valList[t];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{let n=this.keyList[t];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Rt("reset","clear"),this.clear}get length(){return Ia("length","size"),this.size}static get AbortController(){return et}static get AbortSignal(){return hi}},Pa=lt,P=(...e)=>e.every(t=>t)?e.join(""):"",k=e=>e?encodeURIComponent(e):"",gi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Na={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${P("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${P("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${k(n||"HEAD")}/${s}${P("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${k(n||"HEAD")}/${s}${P("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${P("/",n,"/",k(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${k(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${P("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${P("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:gi},ae={};ae.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${P(e,"@")}raw.githubusercontent.com/${t}/${r}/${k(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${k(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};ae.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${P("/",i,"/",k(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${k(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};ae.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${P(e,"@")}${t}/${r}/${n}.git${P("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${k(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};ae.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${P("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${P("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${P("/",k(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",k(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",k(r))}${P("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${P("/",k(r))}${P("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${P("/",k(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${P("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${P("/",k(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${P("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${P("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${P("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${k(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+gi(e)}};ae.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${k(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${P("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${k(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(ae))ae[e]=Object.assign({},Na,t);var Ta=ae,Fa=ot,xt=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},gn=e=>{try{return new Fa.URL(e)}catch{}},Da=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},Ma=e=>{let t=xt(e,"@","#"),r=xt(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),xt(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},mi=(e,t)=>{let r=t?Da(e,t):e;return gn(r)||gn(Ma(r))},ja=mi,ka=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,v=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&v&&w&&l&&u&&p},Ba=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=ka(e)?`github:${e}`:e,s=ja(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,v=null,w=null,y=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let b=f.lastIndexOf("/");b>-1?(v=decodeURIComponent(f.slice(0,b)),v||(v=null),w=decodeURIComponent(f.slice(b+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),y="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;v=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),y=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,v,p,w,d,y,t]},Ua=Pa,Ga=Ta,za=Ba,Wa=mi,It=new Ua({max:1e3}),bi=class re{constructor(t,r,n,i,s,o,a={}){Object.assign(this,re.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){re.#r[t]=r,re.#r.byDomain[r.domain]=t,re.#r.byShortcut[`${t}:`]=t,re.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!It.has(n)){let i=za(t,r,{gitHosts:re.#r,protocols:re.#s});It.set(n,i?new re(...i):void 0)}return It.get(n)}static parseUrl(t){return Wa(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(Ga))bi.addHost(e,t);var Ha=bi,Ya="Function.prototype.bind called on incompatible ",_t=Array.prototype.slice,Va=Object.prototype.toString,Ka="[object Function]",Xa=function(t){var r=this;if(typeof r!="function"||Va.call(r)!==Ka)throw new TypeError(Ya+r);for(var n=_t.call(arguments,1),i,s=function(){if(this instanceof i){var p=r.apply(this,n.concat(_t.call(arguments)));return Object(p)===p?p:this}else return r.apply(t,n.concat(_t.call(arguments)))},o=Math.max(0,r.length-n.length),a=[],l=0;l<o;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},Ja=Xa,qa=Function.prototype.bind||Ja,Za=qa,Qa=Za.call(Function.call,Object.prototype.hasOwnProperty),el=!0,tl=">= 8",rl=">= 0.5 && < 0.9.7",nl=!0,il=!0,sl=">= 0.5",ol=!0,al=!0,ll=!0,cl=">= 1 && < 8",ul="< 8",fl=!0,hl=[">= 14.17 && < 15",">= 15.1"],pl=!0,dl=">= 0.7.12",gl=!0,ml="< 6",bl=!0,yl=">= 0.11.1",vl=">= 0.11.1",El=">= 0.11.1",wl=">= 0.11.1",$l=">= 0.11.1",Ll=">= 0.11.1",Sl=!0,Ol=">= 8.8",Al=!0,Cl=">= 8",Rl="< 8",xl=!0,Il=!0,_l=!0,Pl=!0,Nl=">= 8.5",Tl=">= 1",Fl=">= 0.5",Dl=!0,Ml=!0,jl=!0,kl=">= 0.11.5 && < 3",Bl=">= 0.9.4",Ul=">= 0.9.4",Gl=">= 1.4.1",zl=">= 0.9.4",Wl=">= 0.9.4",Hl=">= 0.9.4",Yl=!0,Vl=!0,Kl=[">= 0.4 && < 0.7",">= 0.8"],Xl=!0,Jl=">= 0.11.13",ql=">= 0.11.3 && < 10",Zl=">= 0.11.3",Ql=!0,ec=">= 10",tc=!0,rc=!0,nc=!0,ic=">= 1",sc=!0,oc=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],ac=">= 11.7",lc=">= 0.5",cc={assert:el,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:tl,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:rl,buffer:nl,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:il,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:sl,"node:cluster":[">= 14.18 && < 15",">= 16"],console:ol,"node:console":[">= 14.18 && < 15",">= 16"],constants:al,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:ll,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:cl,_debugger:ul,dgram:fl,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:hl,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:pl,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:dl,"node:domain":[">= 14.18 && < 15",">= 16"],events:gl,"node:events":[">= 14.18 && < 15",">= 16"],freelist:ml,fs:bl,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:yl,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:vl,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:El,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:wl,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:$l,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ll,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Sl,"node:http":[">= 14.18 && < 15",">= 16"],http2:Ol,"node:http2":[">= 14.18 && < 15",">= 16"],https:Al,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Cl,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Rl,module:xl,"node:module":[">= 14.18 && < 15",">= 16"],net:Il,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:_l,"node:os":[">= 14.18 && < 15",">= 16"],path:Pl,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Nl,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Tl,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Fl,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Dl,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Ml,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:jl,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:kl,_stream_duplex:Bl,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:Ul,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:Gl,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:zl,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:Wl,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:Hl,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:Yl,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:Vl,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:Kl,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:Xl,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:Jl,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:ql,_tls_wrap:Zl,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:Ql,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:ec,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tc,"node:tty":[">= 14.18 && < 15",">= 16"],url:rc,"node:url":[">= 14.18 && < 15",">= 16"],util:nc,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:ic,"node:v8":[">= 14.18 && < 15",">= 16"],vm:sc,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:oc,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:ac,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:lc,"node:zlib":[">= 14.18 && < 15",">= 16"]},uc=Qa;function fc(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",s=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),l=parseInt(s[o]||0,10);if(a!==l)return i==="<"?a<l:i===">="?a>=l:!1}return i===">="}function mn(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!fc(e,r[n]))return!1;return!0}function hc(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(mn(r,t[n]))return!0;return!1}return mn(r,t)}var bn=cc,yi=function(t,r){return uc(bn,t)&&hc(r,bn[t])},pc=dc;function dc(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
11
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var gc={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},mc={web:"url",name:"url"},bc={server:"start",tests:"test"},yc={topLevel:gc,bugs:mc,script:bc},vc=oi,Ec=ai,wc=fi,He=Ha,$c=yi,Lc=["dependencies","devDependencies","optionalDependencies"],Sc=pc,Pt=ot,se=yc,yn=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Oc={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=He.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(se.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,se.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):se.script[t]&&!e.scripts[se.script[t]]&&this.warn("typo",t,se.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Nc(e,this.warn),_c(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=He.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!vc(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Ec(e.version,r),!0},fixPeople:function(e){vn(e,xc),vn(e,Ic)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Rc(e.name,r,t.allowLegacyCase),$c(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Sc(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")yn(e.bugs)?e.bugs={email:e.bugs}:Pt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Tc(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Pt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&yn(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=He.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Pt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!wc(t).validForNewPackages)return this.warn("invalidLicense")}};function Ac(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Cc(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Rc(e,t,r){if(e.charAt(0)==="."||!(Ac(e)||Cc(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function vn(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function xc(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Ic(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function _c(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function Pc(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function Nc(e,t){Lc.forEach(function(r){e[r]&&(e[r]=Pc(e[r],r,t))})}function Tc(e,t){e&&Object.keys(e).forEach(function(r){se.bugs[r]&&(t("typo",r,se.bugs[r],"bugs"),e[se.bugs[r]]=e[r],delete e[r])})}var Fc="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Dc="No repository field.",Mc="Probably broken git url: %s",jc="scripts must be an object",kc="script values must be string commands",Bc="Invalid 'files' member",Uc="Invalid filename in 'files' list: %s",Gc="Invalid 'bundleDependencies' list. Must be array of package names",zc="Invalid bundleDependencies member: %s",Wc="Non-dependency in bundleDependencies: %s",Hc="%s field must be an object",Yc="Invalid dependency: %s %s",Vc="specifying %s as array is deprecated",Kc="modules field is deprecated",Xc="keywords should be an array of strings",Jc="keywords should be an array of strings",qc="%s is also the name of a node core module.",Zc="'description' field should be a string",Qc="No description",eu="No README data",tu="No license field.",ru="Bug string field must be url, email, or {email,url}",nu="bugs.url field must be a string url. Deleted.",iu="bugs.email field must be a string email. Deleted.",su="Normalized value of bugs field is an empty object. Deleted.",ou="homepage field must be a string url. Deleted.",au="license should be a valid SPDX license expression",lu="%s should probably be %s.",cu={repositories:Fc,missingRepository:Dc,brokenGitUrl:Mc,nonObjectScripts:jc,nonStringScript:kc,nonArrayFiles:Bc,invalidFilename:Uc,nonArrayBundleDependencies:Gc,nonStringBundleDependency:zc,nonDependencyBundleDependency:Wc,nonObjectDependencies:Hc,nonStringDependency:Yc,deprecatedArrayDependencies:Vc,deprecatedModules:Kc,nonArrayKeywords:Xc,nonStringKeyword:Jc,conflictingName:qc,nonStringDescription:Zc,missingDescription:Qc,missingReadme:eu,missingLicense:tu,nonEmailUrlBugsString:ru,nonUrlBugsUrlField:nu,nonEmailBugsEmailField:iu,emptyNormalizedBugs:su,nonUrlHomepage:ou,invalidLicense:au,typo:lu},vi=st,Xt=cu,uu=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return fu.apply(null,e);var r=Xt[t]?Xt[t]:t+": '%s'";return e.unshift(r),vi.format.apply(null,e)};function fu(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),vi.format(Xt.typo,e,t)}var hu=Ei,Jt=Oc;Ei.fixer=Jt;var pu=uu,du=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],gu=["dependencies","people","typos"],qt=du.map(function(e){return wi(e)+"Field"});qt=qt.concat(gu);function Ei(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Jt.warn=function(){t(pu.apply(null,arguments))},qt.forEach(function(n){Jt["fix"+wi(n)](e,r)}),e._id=e.name+"@"+e.version}function wi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var $i=ce(hu),Li={directory:"isDirectory",file:"isFile"};function mu(e){if(!Object.hasOwnProperty.call(Li,e))throw new Error(`Invalid type specified: ${e}`)}var bu=(e,t)=>t[Li[e]](),yu=e=>e instanceof URL?ar(e):e;function En(e,{cwd:t=Eo.cwd(),type:r="file",allowSymlinks:n=!0}={}){mu(r),t=yu(t);let i=n?Gt.statSync:Gt.lstatSync;for(let s of e)try{let o=i(ue.resolve(t,s),{throwIfNoEntry:!1});if(!o)continue;if(bu(r,o))return s}catch{}}var vu=e=>e instanceof URL?ar(e):e,Eu=Symbol("findUpStop");function wu(e,t={}){let r=ue.resolve(vu(t.cwd)||""),{root:n}=ue.parse(r),i=t.stopAt||n,s=t.limit||Number.POSITIVE_INFINITY,o=[e].flat(),a=u=>{if(typeof e!="function")return En(o,u);let p=e(u.cwd);return typeof p=="string"?En([p],u):p},l=[];for(;;){let u=a({...t,cwd:r});if(u===Eu||(u&&l.push(ue.resolve(r,u)),r===i||l.length>=s))break;r=ue.dirname(r)}return l}function $u(e,t={}){return wu(e,{...t,limit:1})[0]}var Lu=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1},Su=st,Ou=Lu,pr=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var n=function i(s){if(!this)return new i(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,n),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var p=s.split(/\r?\n/g);for(var d in r)if(r.hasOwnProperty(d)){var v=r[d];"message"in v&&(p=v.message(this[d],p)||p,Ou(p)||(p=[p]))}return p.join(`
12
- `)},set:function(p){s=p}});var o=null,a=Object.getOwnPropertyDescriptor(this,"stack"),l=a.get,u=a.value;delete a.value,delete a.writable,a.set=function(p){o=p},a.get=function(){var p=(o||(l?l.call(this):u)).split(/\r?\n+/g);o||(p[0]=this.name+": "+this.message);var d=1;for(var v in r)if(r.hasOwnProperty(v)){var w=r[v];if("line"in w){var y=w.line(this[v]);y&&p.splice(d++,0," "+y)}"stack"in w&&w.stack(this[v],p)}return p.join(`
13
- `)},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):Su.inherits(n,Error),n};pr.append=function(e,t){return{message:function(r,n){return r=r||t,r&&(n[0]+=" "+e.replace("%s",r.toString())),n}}};pr.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};var Au=pr,Nt=ce(Au),Cu=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},Ru=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${Cu(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,l=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===l?"":"near "}${JSON.stringify(l)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},tt=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=Ru(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},xu=Symbol.for("indent"),Iu=Symbol.for("newline"),_u=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,Pu=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,ct=(e,t,r)=>{let n=Si(e);r=r||20;try{let[,i=`
14
- `,s=" "]=n.match(Pu)||n.match(_u)||[null,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[Iu]=i,o[xu]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new tt(i,n,r,ct)}},Si=e=>String(e).replace(/^\uFEFF/,""),Nu=ct;ct.JSONParseError=tt;ct.noExceptions=(e,t)=>{try{return JSON.parse(Si(e),t)}catch{}};var Tu=ce(Nu),dr={},Fe={},ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ut.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Oi={},De={};Object.defineProperty(De,"__esModule",{value:!0});De.isIdentifierChar=xi;De.isIdentifierName=ju;De.isIdentifierStart=Ri;var gr="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ai="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Fu=new RegExp("["+gr+"]"),Du=new RegExp("["+gr+Ai+"]");gr=Ai=null;var Ci=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Mu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Zt(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Ri(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Fu.test(String.fromCharCode(e)):Zt(e,Ci)}function xi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Du.test(String.fromCharCode(e)):Zt(e,Ci)||Zt(e,Mu)}function ju(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023))}if(t){if(t=!1,!Ri(n))return!1}else if(!xi(n))return!1}return!t}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isKeyword=zu;he.isReservedWord=Ii;he.isStrictBindOnlyReservedWord=Pi;he.isStrictBindReservedWord=Gu;he.isStrictReservedWord=_i;var mr={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ku=new Set(mr.keyword),Bu=new Set(mr.strict),Uu=new Set(mr.strictBind);function Ii(e,t){return t&&e==="await"||e==="enum"}function _i(e,t){return Ii(e,t)||Bu.has(e)}function Pi(e){return Uu.has(e)}function Gu(e,t){return _i(e,t)||Pi(e)}function zu(e){return ku.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=De,r=he})(Oi);var Ni={exports:{}},Wu=/[|\\{}()[\]^$+*?.]/g,Hu=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Wu,"\\$&")},br={exports:{}},Ti={exports:{}},Yu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fe=Yu,Fi={};for(Ye in fe)fe.hasOwnProperty(Ye)&&(Fi[fe[Ye]]=Ye);var Ye,C=Ti.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(H in C)if(C.hasOwnProperty(H)){if(!("channels"in C[H]))throw new Error("missing channels property: "+H);if(!("labels"in C[H]))throw new Error("missing channel labels property: "+H);if(C[H].labels.length!==C[H].channels)throw new Error("channel and label counts mismatch: "+H);wn=C[H].channels,$n=C[H].labels,delete C[H].channels,delete C[H].labels,Object.defineProperty(C[H],"channels",{value:wn}),Object.defineProperty(C[H],"labels",{value:$n})}var wn,$n,H;C.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,l,u;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};C.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(o,a,l),p=u-Math.min(o,a,l),d=function(v){return(u-v)/6/p+1/2};return p===0?i=s=0:(s=p/u,t=d(o),r=d(a),n=d(l),o===u?i=n-r:a===u?i=1/3+t-n:l===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};C.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=C.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function Vu(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}C.rgb.keyword=function(e){var t=Fi[e];if(t)return t;var r=1/0,n;for(var i in fe)if(fe.hasOwnProperty(i)){var s=fe[i],o=Vu(e,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(e){return fe[e]};C.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(e){var t=C.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};C.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(s-i)*6*o:2*o<1?l=s:3*o<2?l=i+(s-i)*(2/3-o)*6:l=i,a[u]=l*255;return a};C.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};C.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};C.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};C.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,l;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),l=r+a*(o-r);var u,p,d;switch(s){default:case 6:case 0:u=o,p=l,d=r;break;case 1:u=l,p=o,d=r;break;case 2:u=r,p=o,d=l;break;case 3:u=r,p=l,d=o;break;case 4:u=l,p=r,d=o;break;case 5:u=o,p=r,d=l;break}return[u*255,p*255,d*255]};C.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};C.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};C.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};C.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),l=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};C.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};C.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:C.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};C.hsv.ansi16=function(e){return C.rgb.ansi16(C.hsv.rgb(e),e[2])};C.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};C.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};C.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};C.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===t?l=(r-n)/o%6:i===r?l=2+(n-t)/o:l=4+(t-r)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};C.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};C.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};C.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};C.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};C.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};C.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};C.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};C.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};C.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};C.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};C.gray.hsl=C.gray.hsv=function(e){return[0,0,e[0]]};C.gray.hwb=function(e){return[0,100,e[0]]};C.gray.cmyk=function(e){return[0,0,0,e[0]]};C.gray.lab=function(e){return[e[0],0,0]};C.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Di=Ti.exports,rt=Di;function Ku(){for(var e={},t=Object.keys(rt),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xu(e){var t=Ku(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(rt[n]),s=i.length,o=0;o<s;o++){var a=i[o],l=t[a];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(a))}return t}function Ju(e,t){return function(r){return t(e(r))}}function qu(e,t){for(var r=[t[e].parent,e],n=rt[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Ju(rt[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Zu=function(e){for(var t=Xu(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=qu(o,t))}return r},Qt=Di,Qu=Zu,Ee={},ef=Object.keys(Qt);function tf(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function rf(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}ef.forEach(function(e){Ee[e]={},Object.defineProperty(Ee[e],"channels",{value:Qt[e].channels}),Object.defineProperty(Ee[e],"labels",{value:Qt[e].labels});var t=Qu(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ee[e][n]=rf(i),Ee[e][n].raw=tf(i)})});var Mi=Ee;br.exports;(function(e){let t=Mi,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let v of Object.keys(d)){let w=d[v];a[v]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[v]=a[v],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,v)=>[p,d,v];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(br);var nf=br.exports,sf=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},of=zn,q=sf,G=process.env,we;q("no-color")||q("no-colors")||q("color=false")?we=!1:(q("color")||q("colors")||q("color=true")||q("color=always"))&&(we=!0);"FORCE_COLOR"in G&&(we=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function af(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function lf(e){if(we===!1)return 0;if(q("color=16m")||q("color=full")||q("color=truecolor"))return 3;if(q("color=256"))return 2;if(e&&!e.isTTY&&we!==!0)return 0;let t=we?1:0;if(process.platform==="win32"){let r=of.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in G)||G.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in G){let r=parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:(G.TERM==="dumb",t)}function Tt(e){let t=lf(e);return af(t)}var cf={supportsColor:Tt,stdout:Tt(process.stdout),stderr:Tt(process.stderr)},uf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ln=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ff=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,pf=new Map([["n",`
15
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ji(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):pf.get(e)||e}function df(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(ff))r.push(i[2].replace(hf,(o,a,l)=>a?ji(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function gf(e){Ln.lastIndex=0;let t=[],r;for(;(r=Ln.exec(e))!==null;){let n=r[1];if(r[2]){let i=df(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Sn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var mf=(e,t)=>{let r=[],n=[],i=[];if(t.replace(uf,(s,o,a,l,u,p)=>{if(o)i.push(ji(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:Sn(e,r)(d)),r.push({inverse:a,styles:gf(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Sn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=Hu,r=nf,n=cf.stdout,i=mf,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let b=n?n.level:0;f.level=c.level===void 0?b:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let b=[].slice.call(arguments);return y.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return v.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return v.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return v.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let b=this.level;return function(){let $={open:r.bgColor[o[b]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return v.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function v(f,c,b){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||b==="gray"||b==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)b+=" "+f[$];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())b=$.open+b.replace($.closeRe,$.open)+$.close,b=b.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,b}function y(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(b[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Ni);var bf=Ni.exports;Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=Sf;Fe.shouldHighlight=Bi;var On=ut,An=Oi,yf=bf,er=yf,vf=new Set(["as","async","from","get","of","set"]);function Ef(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var wf=/\r\n|[\n\r\u2028\u2029]/,$f=/^[()[\]{}]$/,ki;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,An.isKeyword)(r.value)||(0,An.isStrictReservedWord)(r.value,!0)||vf.has(r.value))return"keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&$f.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};ki=function*(r){let n;for(;n=On.default.exec(r);){let i=On.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function Lf(e,t){let r="";for(let{type:n,value:i}of ki(t)){let s=e[n];s?r+=i.split(wf).map(o=>s(o)).join(`
16
- `):r+=i}return r}function Bi(e){return!!er.supportsColor||e.forceColor}var Ft;function Ui(e){if(e){var t;return(t=Ft)!=null||(Ft=new er.constructor({enabled:!0,level:1})),Ft}return er}Fe.getChalk=e=>Ui(e.forceColor);function Sf(e,t={}){if(e!==""&&Bi(t)){let r=Ef(Ui(t.forceColor));return Lf(r,e)}else return e}var Gi={exports:{}},Of=/[|\\{}()[\]^$+*?.]/g,Af=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Of,"\\$&")},yr={exports:{}};yr.exports;(function(e){let t=Mi,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};5;${l}m`},i=(o,a)=>function(){let l=o.apply(t,arguments);return`\x1B[${38+a};2;${l[0]};${l[1]};${l[2]}m`};function s(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let p of Object.keys(a)){let d=a[p];for(let v of Object.keys(d)){let w=d[v];a[v]={open:`\x1B[${w[0]}m`,close:`\x1B[${w[1]}m`},d[v]=a[v],o.set(w[0],w[1])}Object.defineProperty(a,p,{value:d,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let l=p=>p,u=(p,d,v)=>[p,d,v];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(l,0)},a.color.ansi256={ansi256:n(l,0)},a.color.ansi16m={rgb:i(u,0)},a.bgColor.ansi={ansi:r(l,10)},a.bgColor.ansi256={ansi256:n(l,10)},a.bgColor.ansi16m={rgb:i(u,10)};for(let p of Object.keys(t)){if(typeof t[p]!="object")continue;let d=t[p];p==="ansi16"&&(p="ansi"),"ansi16"in d&&(a.color.ansi[p]=r(d.ansi16,0),a.bgColor.ansi[p]=r(d.ansi16,10)),"ansi256"in d&&(a.color.ansi256[p]=n(d.ansi256,0),a.bgColor.ansi256[p]=n(d.ansi256,10)),"rgb"in d&&(a.color.ansi16m[p]=i(d.rgb,0),a.bgColor.ansi16m[p]=i(d.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(yr);var Cf=yr.exports,Rf=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)},xf=zn,Z=Rf,z=process.env,$e;Z("no-color")||Z("no-colors")||Z("color=false")?$e=!1:(Z("color")||Z("colors")||Z("color=true")||Z("color=always"))&&($e=!0);"FORCE_COLOR"in z&&($e=z.FORCE_COLOR.length===0||parseInt(z.FORCE_COLOR,10)!==0);function If(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _f(e){if($e===!1)return 0;if(Z("color=16m")||Z("color=full")||Z("color=truecolor"))return 3;if(Z("color=256"))return 2;if(e&&!e.isTTY&&$e!==!0)return 0;let t=$e?1:0;if(process.platform==="win32"){let r=xf.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in z)||z.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(z.TEAMCITY_VERSION)?1:0;if(z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in z){let r=parseInt((z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(z.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(z.TERM)||"COLORTERM"in z?1:(z.TERM==="dumb",t)}function Dt(e){let t=_f(e);return If(t)}var Pf={supportsColor:Dt,stdout:Dt(process.stdout),stderr:Dt(process.stderr)},Nf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Cn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ff=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Df=new Map([["n",`
17
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function zi(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Df.get(e)||e}function Mf(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Tf))r.push(i[2].replace(Ff,(o,a,l)=>a?zi(a):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function jf(e){Cn.lastIndex=0;let t=[],r;for(;(r=Cn.exec(e))!==null;){let n=r[1];if(r[2]){let i=Mf(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Rn(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}var kf=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Nf,(s,o,a,l,u,p)=>{if(o)i.push(zi(o));else if(l){let d=i.join("");i=[],n.push(r.length===0?d:Rn(e,r)(d)),r.push({inverse:a,styles:jf(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Rn(e,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};(function(e){let t=Af,r=Cf,n=Pf.stdout,i=kf,s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),l=Object.create(null);function u(f,c){c=c||{};let b=n?n.level:0;f.level=c.level===void 0?b:c.level,f.enabled="enabled"in c?c.enabled:f.level>0}function p(f){if(!this||!(this instanceof p)||this.template){let c={};return u(c,f),c.template=function(){let b=[].slice.call(arguments);return y.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,p.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=p,c.template}u(this,f)}s&&(r.blue.open="\x1B[94m");for(let f of Object.keys(r))r[f].closeRe=new RegExp(t(r[f].close),"g"),l[f]={get(){let c=r[f];return v.call(this,this._styles?this._styles.concat(c):[c],this._empty,f)}};l.visible={get(){return v.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let f of Object.keys(r.color.ansi))a.has(f)||(l[f]={get(){let c=this.level;return function(){let S={open:r.color[o[c]][f].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return v.call(this,this._styles?this._styles.concat(S):[S],this._empty,f)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let f of Object.keys(r.bgColor.ansi)){if(a.has(f))continue;let c="bg"+f[0].toUpperCase()+f.slice(1);l[c]={get(){let b=this.level;return function(){let $={open:r.bgColor[o[b]][f].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return v.call(this,this._styles?this._styles.concat($):[$],this._empty,f)}}}}let d=Object.defineProperties(()=>{},l);function v(f,c,b){let S=function(){return w.apply(S,arguments)};S._styles=f,S._empty=c;let $=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return $.level},set(x){$.level=x}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return $.enabled},set(x){$.enabled=x}}),S.hasGrey=this.hasGrey||b==="gray"||b==="grey",S.__proto__=d,S}function w(){let f=arguments,c=f.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let $=1;$<c;$++)b+=" "+f[$];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let S=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(let $ of this._styles.slice().reverse())b=$.open+b.replace($.closeRe,$.open)+$.close,b=b.replace(/\r?\n/g,`${$.close}$&${$.open}`);return r.dim.open=S,b}function y(f,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),S=[c.raw[0]];for(let $=1;$<c.length;$++)S.push(String(b[$-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(c.raw[$]));return i(f,S.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=n,e.exports.default=e.exports})(Gi);var Bf=Gi.exports;Object.defineProperty(dr,"__esModule",{value:!0});var Uf=dr.codeFrameColumns=Wi;dr.default=Yf;var xn=Fe,Gf=Bf,In=Gf,Mt;function zf(e){if(e){var t;return(t=Mt)!=null||(Mt=new In.constructor({enabled:!0,level:1})),Mt}return In}var _n=!1;function Wf(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Pn=/\r\n|[\n\r\u2028\u2029]/;function Hf(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:o=3}=r||{},a=n.line,l=n.column,u=i.line,p=i.column,d=Math.max(a-(s+1),0),v=Math.min(t.length,u+o);a===-1&&(d=0),u===-1&&(v=t.length);let w=u-a,y={};if(w)for(let f=0;f<=w;f++){let c=f+a;if(!l)y[c]=!0;else if(f===0){let b=t[c-1].length;y[c]=[l,b-l+1]}else if(f===w)y[c]=[0,p];else{let b=t[c-f].length;y[c]=[0,b]}}else l===p?l?y[a]=[l,0]:y[a]=!0:y[a]=[l,p-l];return{start:d,end:v,markerLines:y}}function Wi(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,xn.shouldHighlight)(r),i=zf(r.forceColor),s=Wf(i),o=(f,c)=>n?f(c):c,a=e.split(Pn),{start:l,end:u,markerLines:p}=Hf(t,a,r),d=t.start&&typeof t.start.column=="number",v=String(u).length,y=(n?(0,xn.default)(e,r):e).split(Pn,u).slice(l,u).map((f,c)=>{let b=l+1+c,$=` ${` ${b}`.slice(-v)} |`,x=p[b],_=!p[b+1];if(x){let D="";if(Array.isArray(x)){let j=f.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Y=x[1]||1;D=[`
18
- `,o(s.gutter,$.replace(/\d/g," "))," ",j,o(s.marker,"^").repeat(Y)].join(""),_&&r.message&&(D+=" "+o(s.message,r.message))}return[o(s.marker,">"),o(s.gutter,$),f.length>0?` ${f}`:"",D].join("")}else return` ${o(s.gutter,$)}${f.length>0?` ${f}`:""}`}).join(`
19
- `);return r.message&&!d&&(y=`${" ".repeat(v+1)}${r.message}
20
- ${y}`),n?i.reset(y):y}function Yf(e,t,r,n={}){if(!_n){_n=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{let o=new Error(s);o.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),Wi(e,{start:{column:r,line:t}},n)}var Ve=`
21
- `,Nn="\r",Vf=function(){function e(t){this.length=t.length;for(var r=[0],n=0;n<t.length;)switch(t[n]){case Ve:n+=Ve.length,r.push(n);break;case Nn:n+=Nn.length,t[n]===Ve&&(n+=Ve.length),r.push(n);break;default:n++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var i=t-n[r];return{line:r,column:i}},e.prototype.indexForLocation=function(t){var r=t.line,n=t.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}(),Kf=Nt("JSONError",{fileName:Nt.append("in %s"),codeFrame:Nt.append(`
10
+ `);)r--;return t>0||r<e.length?e.slice(t,r):e}function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yi=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Vi=We(Yi);function Xi(e){let t=Vi(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Ki(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:s=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let i=s?/^/gm:/^(?!\s*$)/gm;return e.replace(i,n.repeat(t))}function wn(e,t=0,r={}){return Ki(Xi(e),t,r)}var qi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},An=qi,Ji="2.0.0",Sn=256,Zi=Number.MAX_SAFE_INTEGER||9007199254740991,Qi=16,eo=Sn-6,to=["major","premajor","minor","preminor","patch","prepatch","prerelease"],$n={MAX_LENGTH:Sn,MAX_SAFE_COMPONENT_LENGTH:Qi,MAX_SAFE_BUILD_LENGTH:eo,MAX_SAFE_INTEGER:Zi,RELEASE_TYPES:to,SEMVER_SPEC_VERSION:Ji,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},yt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=$n,i=An;t=e.exports={};let o=t.re=[],a=t.safeRe=[],u=t.src=[],l=t.t={},g=0,m="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",s],[m,n]],L=h=>{for(let[c,b]of E)h=h.split(`${c}*`).join(`${c}{0,${b}}`).split(`${c}+`).join(`${c}{1,${b}}`);return h},v=(h,c,b)=>{let A=L(c),C=g++;i(h,C,c),l[h]=C,u[C]=c,o[C]=new RegExp(c,b?"g":void 0),a[C]=new RegExp(A,b?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),v("FULL",`^${u[l.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),v("LOOSE",`^${u[l.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),v("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),v("COERCERTL",u[l.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(yt,yt.exports);var ro=yt.exports,no=Object.freeze({loose:!0}),so=Object.freeze({}),io=e=>e?typeof e!="object"?no:e:so,oo=io,Or=/^[0-9]+$/,Rn=(e,t)=>{let r=Or.test(e),n=Or.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},ao=(e,t)=>Rn(t,e),uo={compareIdentifiers:Rn,rcompareIdentifiers:ao},_e=An,{MAX_LENGTH:wr,MAX_SAFE_INTEGER:Te}=$n,{safeRe:Ar,t:Sr}=ro,co=oo,{compareIdentifiers:fe}=uo,lo=class K{constructor(t,r){if(r=co(r),t instanceof K){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>wr)throw new TypeError(`version is longer than ${wr} characters`);_e("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Ar[Sr.LOOSE]:Ar[Sr.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Te||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Te||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Te||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<Te)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(t){if(_e("SemVer.compare",this.version,this.options,t),!(t instanceof K)){if(typeof t=="string"&&t===this.version)return 0;t=new K(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof K||(t=new K(t,this.options)),fe(this.major,t.major)||fe(this.minor,t.minor)||fe(this.patch,t.patch)}comparePre(t){if(t instanceof K||(t=new K(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=t.prerelease[r];if(_e("prerelease compare",r,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 fe(n,s)}while(++r)}compareBuild(t){t instanceof K||(t=new K(t,this.options));let r=0;do{let n=this.build[r],s=t.build[r];if(_e("prerelease compare",r,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 fe(n,s)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");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(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),fe(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},fo=lo,$r=fo,ho=(e,t,r=!1)=>{if(e instanceof $r)return e;try{return new $r(e,t)}catch(n){if(!r)return null;throw n}},Pn=ho,po=Pn,go=(e,t)=>{let r=po(e,t);return r?r.version:null},mo=go,bo=Pn,yo=(e,t)=>{let r=bo(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},vo=yo,Eo=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-1.0+","GPL-2.0","GPL-2.0+","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0+","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.0+","LGPL-2.1","LGPL-2.1+","LGPL-3.0","LGPL-3.0+","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"],Nn=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Systemics","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Markus-Kuhn","HPND-Pbmplus","HPND-UC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-modify","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIT","MIT-0","MIT-CMU","MIT-Festival","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","UCAR","UCL-1.0","UPL-1.0","URT-RLE","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","metamail","mpi-permissive","mpich2","mplus","pnmstitch","psfrag","psutils","python-ldap","snprintf","ssh-keyscan","swrule","ulem","w3m","xinetd","xlock","xpp","zlib-acknowledgement"],Co=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"],Lo=[].concat(Nn).concat(Eo),Oo=Co,wo=function(e){var t=0;function r(){return t<e.length}function n(v){if(v instanceof RegExp){var h=e.slice(t),c=h.match(v);if(c)return t+=c[0].length,c[0]}else if(e.indexOf(v,t)===t)return t+=v.length,v}function s(){n(/[ ]*/)}function i(){for(var v,h=["WITH","AND","OR","(",")",":","+"],c=0;c<h.length&&(v=n(h[c]),!v);c++);if(v==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return v&&{type:"OPERATOR",string:v}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var v=o();if(!v)throw new Error("Expected idstring at offset "+t);return v}function u(){if(n("DocumentRef-")){var v=a();return{type:"DOCUMENTREF",string:v}}}function l(){if(n("LicenseRef-")){var v=a();return{type:"LICENSEREF",string:v}}}function g(){var v=t,h=o();if(Lo.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(Oo.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};t=v}function m(){return i()||u()||l()||g()}for(var E=[];r()&&(s(),!!r());){var L=m();if(!L)throw new Error("Unexpected `"+e[t]+"` at offset "+t);E.push(L)}return E},Ao=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function s(){if(!r())throw new Error;t++}function i(h){var c=n();if(c&&c.type==="OPERATOR"&&h===c.string)return s(),c.string}function o(){if(i("WITH")){var h=n();if(h&&h.type==="EXCEPTION")return s(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=t,c="",b=n();if(b.type==="DOCUMENTREF"&&(s(),c+="DocumentRef-"+b.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(b=n(),b.type==="LICENSEREF")return s(),c+="LicenseRef-"+b.string,{license:c};t=h}function u(){var h=n();if(h&&h.type==="LICENSE"){s();var c={license:h.string};i("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function l(){var h=i("(");if(h){var c=L();if(!i(")"))throw new Error("Expected `)`");return c}}function g(){return l()||a()||u()}function m(h,c){return function b(){var A=c();if(A){if(!i(h))return A;var C=b();if(!C)throw new Error("Expected expression");return{left:A,conjunction:h.toLowerCase(),right:C}}}}var E=m("AND",g),L=m("OR",E),v=L();if(!v||r())throw new Error("Syntax error");return v},So=wo,$o=Ao,In=function(e){return $o(So(e))},Ro=In,Po=Nn;function Me(e){try{return Ro(e),!0}catch{return!1}}function xn(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Rr=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(xn),No=0,Io=1,Pr=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],vt=Po.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),xo=Object.keys(vt).map(function(t){return[t,vt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});vt=void 0;var Nr=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(xo).sort(xn),_o=0,To=1,Ir=function(e){for(var t=0;t<Pr.length;t++){var r=Pr[t](e).trim();if(r!==e&&Me(r))return r}return null},xr=function(e){for(var t=e.toUpperCase(),r=0;r<Nr.length;r++){var n=Nr[r];if(t.indexOf(n[_o])>-1)return n[To]}return null},_r=function(e,t){for(var r=0;r<Rr.length;r++){var n=Rr[r],s=n[No];if(e.indexOf(s)>-1){var i=e.replace(s,n[Io]),o=t(i);if(o!==null)return o}}return null},Fo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Do(a):a}var s=typeof e=="string"&&e.trim().length!==0;if(!s)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Me(e))return n(e);var i=e.replace(/\+$/,"").trim();if(Me(i))return n(i);var o=Ir(e);return o!==null||(o=_r(e,function(a){return Me(a)?a:Ir(a)}),o!==null)||(o=xr(e),o!==null)||(o=_r(e,xr),o!==null)?n(o):null};function Do(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}var Mo=In,jo=Fo,Tr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Bo=/^SEE LICEN[CS]E IN (.+)$/;function Fr(e,t){return t.slice(0,e.length)===e}function Et(e){if(e.hasOwnProperty("license")){var t=e.license;return Fr("LicenseRef",t)||Fr("DocumentRef",t)}else return Et(e.left)||Et(e.right)}var Go=function(e){var t;try{t=Mo(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Bo.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Tr]};if(e.trim().length!==0){var s=jo(e);s&&n.warnings.push('license is similar to the valid expression "'+s+'"')}return n}return Et(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Tr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.LRUCache=void 0;var he=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_n=new Set,Ct=typeof process=="object"&&process?process:{},Tn=(e,t,r,n)=>{typeof Ct.emitWarning=="function"?Ct.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Ge=globalThis.AbortController,Dr=globalThis.AbortSignal;if(typeof Ge>"u"){Dr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Ge=class{constructor(){t()}signal=new Dr;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let e=Ct.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Tn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var ko=e=>!_n.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Fn=e=>Q(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?de:null:null,de=class extends Array{constructor(t){super(t),this.fill(0)}},Lt=class e{heap;length;static#n=!1;static create(t){let r=Fn(t);if(!r)return[];e.#n=!0;let n=new e(t,r);return e.#n=!1,n}constructor(t,r){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Uo=class Dn{#n;#c;#t;#m;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#i;#s;#e;#f;#p;#l;#a;#y;#u;#v;#E;#d;#C;#A;#h;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#d,sizes:t.#v,keyMap:t.#i,keyList:t.#s,valList:t.#e,next:t.#f,prev:t.#p,get head(){return t.#l},get tail(){return t.#a},free:t.#y,isBackgroundFetch:r=>t.#r(r),backgroundFetch:(r,n,s,i)=>t.#x(r,n,s,i),moveToTail:r=>t.#R(r),indexes:r=>t.#L(r),rindexes:r=>t.#O(r),isStale:r=>t.#g(r)}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#b}get size(){return this.#o}get fetchMethod(){return this.#P}get dispose(){return this.#t}get disposeAfter(){return this.#m}constructor(t){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:E,maxSize:L=0,maxEntrySize:v=0,sizeCalculation:h,fetchMethod:c,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:N,ignoreFetchAbort:I}=t;if(r!==0&&!Q(r))throw new TypeError("max option must be a nonnegative integer");let j=r?Fn(r):Array;if(!j)throw new Error("invalid max value: "+r);if(this.#n=r,this.#c=L,this.maxEntrySize=v||this.#c,this.sizeCalculation=h,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#P=c,this.#A=!!c,this.#i=new Map,this.#s=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#f=new j(r),this.#p=new j(r),this.#l=0,this.#a=0,this.#y=Lt.create(r),this.#o=0,this.#b=0,typeof l=="function"&&(this.#t=l),typeof g=="function"?(this.#m=g,this.#u=[]):(this.#m=void 0,this.#u=void 0),this.#C=!!this.#t,this.#h=!!this.#m,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!I,this.maxEntrySize!==0){if(this.#c!==0&&!Q(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!Q(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Q(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Q(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let W="LRU_CACHE_UNBOUNDED";ko(W)&&(_n.add(W),Tn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,Dn))}}getRemainingTTL(t){return this.#i.has(t)?1/0:0}#_(){let t=new de(this.#n),r=new de(this.#n);this.#d=t,this.#E=r,this.#T=(i,o,a=he.now())=>{if(r[i]=o!==0?a:0,t[i]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#g(i)&&this.delete(this.#s[i])},o+1);u.unref&&u.unref()}},this.#S=i=>{r[i]=t[i]!==0?he.now():0},this.#w=(i,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;i.ttl=a,i.start=u,i.now=n||s();let l=i.now-u;i.remainingTTL=a-l}};let n=0,s=()=>{let i=he.now();if(this.ttlResolution>0){n=i;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return i};this.getRemainingTTL=i=>{let o=this.#i.get(i);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let l=(n||s())-u;return a-l},this.#g=i=>{let o=r[i],a=t[i];return!!a&&!!o&&(n||s())-o>a}}#S=()=>{};#w=()=>{};#T=()=>{};#g=()=>!1;#j(){let t=new de(this.#n);this.#b=0,this.#v=t,this.#$=r=>{this.#b-=t[r],t[r]=0},this.#F=(r,n,s,i)=>{if(this.#r(n))return 0;if(!Q(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(n,r),!Q(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#N=(r,n,s)=>{if(t[r]=n,this.#c){let i=this.#c-t[r];for(;this.#b>i;)this.#I(!0)}this.#b+=t[r],s&&(s.entrySize=n,s.totalCalculatedSize=this.#b)}}#$=t=>{};#N=(t,r,n)=>{};#F=(t,r,n,s)=>{if(n||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#L({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#a;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#l));)r=this.#p[r]}*#O({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#g(r))&&(yield r),r===this.#a));)r=this.#f[r]}#D(t){return t!==void 0&&this.#i.get(this.#s[t])===t}*entries(){for(let t of this.#L())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*rentries(){for(let t of this.#O())this.#e[t]!==void 0&&this.#s[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#s[t],this.#e[t]])}*keys(){for(let t of this.#L()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#s[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*values(){for(let t of this.#L())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}*rvalues(){for(let t of this.#O())this.#e[t]!==void 0&&!this.#r(this.#e[t])&&(yield this.#e[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;if(i!==void 0&&t(i,this.#s[n],this))return this.get(this.#s[n],r)}}forEach(t,r=this){for(let n of this.#L()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}rforEach(t,r=this){for(let n of this.#O()){let s=this.#e[n],i=this.#r(s)?s.__staleWhileFetching:s;i!==void 0&&t.call(r,i,this.#s[n],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#g(r)&&(this.delete(this.#s[r]),t=!0);return t}info(t){let r=this.#i.get(t);if(r===void 0)return;let n=this.#e[r],s=this.#r(n)?n.__staleWhileFetching:n;if(s===void 0)return;let i={value:s};if(this.#d&&this.#E){let o=this.#d[r],a=this.#E[r];if(o&&a){let u=o-(he.now()-a);i.ttl=u,i.start=Date.now()}}return this.#v&&(i.size=this.#v[r]),i}dump(){let t=[];for(let r of this.#L({allowStale:!0})){let n=this.#s[r],s=this.#e[r],i=this.#r(s)?s.__staleWhileFetching:s;if(i===void 0||n===void 0)continue;let o={value:i};if(this.#d&&this.#E){o.ttl=this.#d[r];let a=he.now()-this.#E[r];o.start=Math.floor(Date.now()-a)}this.#v&&(o.size=this.#v[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let s=Date.now()-n.start;n.start=he.now()-s}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,g=this.#F(t,r,n.size||0,a);if(this.maxEntrySize&&g>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(t),this;let m=this.#o===0?void 0:this.#i.get(t);if(m===void 0)m=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#n?this.#I(!1):this.#o,this.#s[m]=t,this.#e[m]=r,this.#i.set(t,m),this.#f[this.#a]=m,this.#p[m]=this.#a,this.#a=m,this.#o++,this.#N(m,g,u),u&&(u.set="add"),l=!1;else{this.#R(m);let E=this.#e[m];if(r!==E){if(this.#A&&this.#r(E)){E.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:L}=E;L!==void 0&&!o&&(this.#C&&this.#t?.(L,t,"set"),this.#h&&this.#u?.push([L,t,"set"]))}else o||(this.#C&&this.#t?.(E,t,"set"),this.#h&&this.#u?.push([E,t,"set"]));if(this.#$(m),this.#N(m,g,u),this.#e[m]=r,u){u.set="replace";let L=E&&this.#r(E)?E.__staleWhileFetching:E;L!==void 0&&(u.oldValue=L)}}else u&&(u.set="update")}if(s!==0&&!this.#d&&this.#_(),this.#d&&(l||this.#T(m,s,i),u&&this.#w(u,m)),!o&&this.#h&&this.#u){let E=this.#u,L;for(;L=E?.shift();)this.#m?.(...L)}return this}pop(){try{for(;this.#o;){let t=this.#e[this.#l];if(this.#I(!0),this.#r(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}}#I(t){let r=this.#l,n=this.#s[r],s=this.#e[r];return this.#A&&this.#r(s)?s.__abortController.abort(new Error("evicted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,n,"evict"),this.#h&&this.#u?.push([s,n,"evict"])),this.#$(r),t&&(this.#s[r]=void 0,this.#e[r]=void 0,this.#y.push(r)),this.#o===1?(this.#l=this.#a=0,this.#y.length=0):this.#l=this.#f[r],this.#i.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:s}=r,i=this.#i.get(t);if(i!==void 0){let o=this.#e[i];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(i))s&&(s.has="stale",this.#w(s,i));else return n&&this.#S(i),s&&(s.has="hit",this.#w(s,i)),!0}else s&&(s.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,s=this.#i.get(t);if(s===void 0||!n&&this.#g(s))return;let i=this.#e[s];return this.#r(i)?i.__staleWhileFetching:i}#x(t,r,n,s){let i=r===void 0?void 0:this.#e[r];if(this.#r(i))return i;let o=new Ge,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:s},l=(h,c=!1)=>{let{aborted:b}=o.signal,A=n.ignoreFetchAbort&&h!==void 0;if(n.status&&(b&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,A&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!A&&!c)return m(o.signal.reason);let C=L;return this.#e[r]===L&&(h===void 0?C.__staleWhileFetching?this.#e[r]=C.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,h,u.options))),h},g=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),m(h)),m=h=>{let{aborted:c}=o.signal,b=c&&n.allowStaleOnFetchAbort,A=b||n.allowStaleOnFetchRejection,C=A||n.noDeleteOnFetchRejection,N=L;if(this.#e[r]===L&&(!C||N.__staleWhileFetching===void 0?this.delete(t):b||(this.#e[r]=N.__staleWhileFetching)),A)return n.status&&N.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),N.__staleWhileFetching;if(N.__returned===N)throw h},E=(h,c)=>{let b=this.#P?.(t,i,u);b&&b instanceof Promise&&b.then(A=>h(A===void 0?void 0:A),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(void 0),n.allowStaleOnFetchAbort&&(h=A=>l(A,!0)))})};n.status&&(n.status.fetchDispatched=!0);let L=new Promise(E).then(l,g),v=Object.assign(L,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return r===void 0?(this.set(t,v,{...u.options,status:void 0}),r=this.#i.get(t)):this.#e[r]=v,v}#r(t){if(!this.#A)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ge}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:E=this.allowStaleOnFetchRejection,ignoreFetchAbort:L=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:h,forceRefresh:c=!1,status:b,signal:A}=r;if(!this.#A)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:b});let C={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:v,ignoreFetchAbort:L,status:b,signal:A},N=this.#i.get(t);if(N===void 0){b&&(b.fetch="miss");let I=this.#x(t,N,C,h);return I.__returned=I}else{let I=this.#e[N];if(this.#r(I)){let _=n&&I.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?I.__staleWhileFetching:I.__returned=I}let j=this.#g(N);if(!c&&!j)return b&&(b.fetch="hit"),this.#R(N),s&&this.#S(N),b&&this.#w(b,N),I;let W=this.#x(t,N,C,h),ne=W.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=j?"stale":"refresh",ne&&j&&(b.returnedStale=!0)),ne?W.__staleWhileFetching:W.__returned=W}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=this.#i.get(t);if(a!==void 0){let u=this.#e[a],l=this.#r(u);return o&&this.#w(o,a),this.#g(a)?(o&&(o.get="stale"),l?(o&&n&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?u.__staleWhileFetching:void 0):(i||this.delete(t),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(this.#R(a),s&&this.#S(a),u))}else o&&(o.get="miss")}#M(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#a&&(t===this.#l?this.#l=this.#f[t]:this.#M(this.#p[t],this.#f[t]),this.#M(this.#a,t),this.#a=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#i.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#$(n);let s=this.#e[n];if(this.#r(s)?s.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(s,t,"delete"),this.#h&&this.#u?.push([s,t,"delete"])),this.#i.delete(t),this.#s[n]=void 0,this.#e[n]=void 0,n===this.#a)this.#a=this.#p[n];else if(n===this.#l)this.#l=this.#f[n];else{let i=this.#p[n];this.#f[i]=this.#f[n];let o=this.#f[n];this.#p[o]=this.#p[n]}this.#o--,this.#y.push(n)}}if(this.#h&&this.#u?.length){let n=this.#u,s;for(;s=n?.shift();)this.#m?.(...s)}return r}clear(){for(let t of this.#O({allowStale:!0})){let r=this.#e[t];if(this.#r(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#s[t];this.#C&&this.#t?.(r,n,"delete"),this.#h&&this.#u?.push([r,n,"delete"])}}if(this.#i.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#d&&this.#E&&(this.#d.fill(0),this.#E.fill(0)),this.#v&&this.#v.fill(0),this.#l=0,this.#a=0,this.#y.length=0,this.#b=0,this.#o=0,this.#h&&this.#u){let t=this.#u,r;for(;r=t?.shift();)this.#m?.(...r)}}};ze.LRUCache=Uo;var x=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",Mn=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Wo={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${x("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${x("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:i})=>`https://${e}/${t}/${r}${x("/",s,"/",D(n||"HEAD"),"/",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${x("/",s,"/",D(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${x("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${D(n||"HEAD")}/${i}${x("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${x("/",n,"/",D(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${x(e,"@")}${t}/${r}/${n}.git${x("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${D(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${x("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${x("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Mn},re={};re.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:s})=>`https://${x(e,"@")}raw.githubusercontent.com/${t}/${r}/${D(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${x(e,"@")}${t}/${r}/${n}.git${x("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${D(n||"HEAD")}`,extract:e=>{let[,t,r,n,s]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(s=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:s}}};re.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,editpath:o})=>`https://${e}/${t}/${r}${x("/",s,"/",D(n||"HEAD"),"/",i,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${D(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};re.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${x(e,"@")}${t}/${r}/${n}.git${x("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${D(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let s=r.join("/");if(!(!s||!n))return{user:s,project:n,committish:e.hash.slice(1)}}};re.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${x("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${x("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${x("/",D(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${x("/",D(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${x("/",D(r))}${x("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${x("/",D(r))}${x("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${x("/",D(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${x("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${x("/",D(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${x("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${x("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${x("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${D(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+Mn(e)}};re.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${D(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${x("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${D(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(re))re[e]=Object.assign({},Wo,t);var zo=re,Ho=mn,ut=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Mr=e=>{try{return new Ho.URL(e)}catch{}},Yo=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let s=e.indexOf("@");return s>-1?s>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},Vo=e=>{let t=ut(e,"@","#"),r=ut(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),ut(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},jn=(e,t)=>{let r=t?Yo(e,t):e;return Mr(r)||Mr(Vo(r))},Xo=jn,Ko=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),s=e.indexOf(":"),i=/\s/.exec(e),o=e.indexOf("@"),a=!i||t>-1&&i.index>t,u=o===-1||t>-1&&o>t,l=s===-1||t>-1&&s>t,g=n===-1||t>-1&&n>t,m=r>0,E=t>-1?e[t-1]!=="/":!e.endsWith("/"),L=!e.startsWith(".");return a&&m&&E&&L&&u&&l&&g},qo=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let s=Ko(e)?`github:${e}`:e,i=Xo(s,n);if(!i)return;let o=r.byShortcut[i.protocol],a=r.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],u=o||a;if(!u)return;let l=r[o||a],g=null;n[i.protocol]?.auth&&(i.username||i.password)&&(g=`${i.username}${i.password?":"+i.password:""}`);let m=null,E=null,L=null,v=null;try{if(o){let h=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,c=h.indexOf("@");c>-1&&(h=h.slice(c+1));let b=h.lastIndexOf("/");b>-1?(E=decodeURIComponent(h.slice(0,b)),E||(E=null),L=decodeURIComponent(h.slice(b+1))):L=decodeURIComponent(h),L.endsWith(".git")&&(L=L.slice(0,-4)),i.hash&&(m=decodeURIComponent(i.hash.slice(1))),v="shortcut"}else{if(!l.protocols.includes(i.protocol))return;let h=l.extract(i);if(!h)return;E=h.user&&decodeURIComponent(h.user),L=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),v=n[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[u,E,g,L,m,v,t]},{LRUCache:Jo}=ze,Zo=zo,Qo=qo,ea=jn,ct=new Jo({max:1e3}),ke=class e{constructor(t,r,n,s,i,o,a={}){Object.assign(this,e.#n[t],{type:t,user:r,auth:n,project:s,committish:i,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#n[t]=r,e.#n.byDomain[r.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#c[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!ct.has(n)){let s=Qo(t,r,{gitHosts:e.#n,protocols:e.#c});ct.set(n,s?new e(...s):void 0)}return ct.get(n)}static parseUrl(t){return ea(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let s=t(n);return n.noGitPlus&&s.startsWith("git+")?s.slice(4):s}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(Zo))ke.addHost(e,t);var ta=ke,ra="Function.prototype.bind called on incompatible ",na=Object.prototype.toString,sa=Math.max,ia="[object Function]",jr=function(t,r){for(var n=[],s=0;s<t.length;s+=1)n[s]=t[s];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},oa=function(t,r){for(var n=[],s=r||0,i=0;s<t.length;s+=1,i+=1)n[i]=t[s];return n},aa=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},ua=function(t){var r=this;if(typeof r!="function"||na.apply(r)!==ia)throw new TypeError(ra+r);for(var n=oa(arguments,1),s,i=function(){if(this instanceof s){var g=r.apply(this,jr(n,arguments));return Object(g)===g?g:this}return r.apply(t,jr(n,arguments))},o=sa(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(s=Function("binder","return function ("+aa(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,s.prototype=new l,l.prototype=null}return s},ca=ua,la=Function.prototype.bind||ca,fa=Function.prototype.call,ha=Object.prototype.hasOwnProperty,pa=la,da=pa.call(fa,ha),ga=!0,ma=">= 8",ba=">= 0.5 && < 0.9.7",ya=!0,va=!0,Ea=">= 0.5",Ca=!0,La=!0,Oa=!0,wa=">= 1 && < 8",Aa="< 8",Sa=!0,$a=[">= 14.17 && < 15",">= 15.1"],Ra=!0,Pa=">= 0.7.12",Na=!0,Ia="< 6",xa=!0,_a=">= 0.11.1",Ta=">= 0.11.1",Fa=">= 0.11.1",Da=">= 0.11.1",Ma=">= 0.11.1",ja=">= 0.11.1",Ba=!0,Ga=">= 8.8",ka=!0,Ua=">= 8",Wa="< 8",za=!0,Ha=!0,Ya=!0,Va=!0,Xa=">= 8.5",Ka=">= 1",qa=">= 0.5",Ja=!0,Za=!0,Qa=!0,eu=">= 0.11.5 && < 3",tu=">= 0.9.4",ru=">= 0.9.4",nu=">= 1.4.1",su=">= 0.9.4",iu=">= 0.9.4",ou=">= 0.9.4",au=!0,uu=!0,cu=[">= 0.4 && < 0.7",">= 0.8"],lu=!0,fu=">= 0.11.13",hu=">= 0.11.3 && < 10",pu=">= 0.11.3",du=!0,gu=">= 10",mu=!0,bu=!0,yu=!0,vu=">= 1",Eu=!0,Cu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],Lu=">= 11.7",Ou=">= 0.5",wu={assert:ga,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ma,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ba,buffer:ya,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:va,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:Ea,"node:cluster":[">= 14.18 && < 15",">= 16"],console:Ca,"node:console":[">= 14.18 && < 15",">= 16"],constants:La,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:Oa,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:wa,_debugger:Aa,dgram:Sa,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:$a,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:Ra,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:Pa,"node:domain":[">= 14.18 && < 15",">= 16"],events:Na,"node:events":[">= 14.18 && < 15",">= 16"],freelist:Ia,fs:xa,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_a,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:Ta,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Fa,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Da,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Ma,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:ja,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Ba,"node:http":[">= 14.18 && < 15",">= 16"],http2:Ga,"node:http2":[">= 14.18 && < 15",">= 16"],https:ka,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Ua,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Wa,module:za,"node:module":[">= 14.18 && < 15",">= 16"],net:Ha,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:Ya,"node:os":[">= 14.18 && < 15",">= 16"],path:Va,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Xa,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Ka,"node:process":[">= 14.18 && < 15",">= 16"],punycode:qa,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Ja,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Za,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:Qa,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:eu,_stream_duplex:tu,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:ru,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:nu,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:su,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:iu,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:ou,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:au,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:uu,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:cu,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:lu,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:fu,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:hu,_tls_wrap:pu,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:du,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:gu,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:mu,"node:tty":[">= 14.18 && < 15",">= 16"],url:bu,"node:url":[">= 14.18 && < 15",">= 16"],util:yu,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:vu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:Eu,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:Cu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:Lu,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:Ou,"node:zlib":[">= 14.18 && < 15",">= 16"]},Au=da;function Su(e,t){for(var r=e.split("."),n=t.split(" "),s=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var a=parseInt(r[o]||0,10),u=parseInt(i[o]||0,10);if(a!==u)return s==="<"?a<u:s===">="?a>=u:!1}return s===">="}function Br(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Su(e,r[n]))return!1;return!0}function $u(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(Br(r,t[n]))return!0;return!1}return Br(r,t)}var Gr=wu,Ru=function(t,r){return Au(Gr,t)&&$u(r,Gr[t])},Pu=Nu;function Nu(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
11
+ `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var Iu={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},xu={web:"url",name:"url"},_u={server:"start",tests:"test"},Tu={topLevel:Iu,bugs:xu,script:_u},Fu=mo,Du=vo,Mu=Go,Fe=ta,ju=Ru,Bu=["dependencies","devDependencies","optionalDependencies"],Gu=Pu,lt=mn,te=Tu,kr=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),ku={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Fe.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(te.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,te.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):te.script[t]&&!e.scripts[te.script[t]]&&this.warn("typo",t,te.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Ku(e,this.warn),Vu(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var s=e[r][n];typeof s!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(s)),delete e[r][n]);var i=Fe.fromUrl(e[r][n]);i&&(e[r][n]=i.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!Fu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Du(e.version,r),!0},fixPeople:function(e){Ur(e,Hu),Ur(e,Yu)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),zu(e.name,r,t.allowLegacyCase),ju(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Gu(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")kr(e.bugs)?e.bugs={email:e.bugs}:lt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{qu(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&lt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&kr(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;lt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!Mu(t).validForNewPackages)return this.warn("invalidLicense")}};function Uu(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Wu(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function zu(e,t,r){if(e.charAt(0)==="."||!(Uu(e)||Wu(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Ur(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function Hu(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",s=e.email||e.mail,i=s?" <"+s+">":"";return t+i+n}function Yu(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),s={};return t&&t[0].trim()&&(s.name=t[0].trim()),n&&(s.email=n[1]),r&&(s.url=r[1]),s}function Vu(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(s){n[s]=r[s]}),e.dependencies=n}}function Xu(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(s){return typeof s=="string"}).forEach(function(s){s=s.trim().split(/(:?[@\s><=])/);var i=s.shift(),o=s.join("");o=o.trim(),o=o.replace(/^@/,""),n[i]=o}),n}function Ku(e,t){Bu.forEach(function(r){e[r]&&(e[r]=Xu(e[r],r,t))})}function qu(e,t){e&&Object.keys(e).forEach(function(r){te.bugs[r]&&(t("typo",r,te.bugs[r],"bugs"),e[te.bugs[r]]=e[r],delete e[r])})}var Ju="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Zu="No repository field.",Qu="Probably broken git url: %s",ec="scripts must be an object",tc="script values must be string commands",rc="Invalid 'files' member",nc="Invalid filename in 'files' list: %s",sc="Invalid 'bundleDependencies' list. Must be array of package names",ic="Invalid bundleDependencies member: %s",oc="Non-dependency in bundleDependencies: %s",ac="%s field must be an object",uc="Invalid dependency: %s %s",cc="specifying %s as array is deprecated",lc="modules field is deprecated",fc="keywords should be an array of strings",hc="keywords should be an array of strings",pc="%s is also the name of a node core module.",dc="'description' field should be a string",gc="No description",mc="No README data",bc="No license field.",yc="Bug string field must be url, email, or {email,url}",vc="bugs.url field must be a string url. Deleted.",Ec="bugs.email field must be a string email. Deleted.",Cc="Normalized value of bugs field is an empty object. Deleted.",Lc="homepage field must be a string url. Deleted.",Oc="license should be a valid SPDX license expression",wc="%s should probably be %s.",Ac={repositories:Ju,missingRepository:Zu,brokenGitUrl:Qu,nonObjectScripts:ec,nonStringScript:tc,nonArrayFiles:rc,invalidFilename:nc,nonArrayBundleDependencies:sc,nonStringBundleDependency:ic,nonDependencyBundleDependency:oc,nonObjectDependencies:ac,nonStringDependency:uc,deprecatedArrayDependencies:cc,deprecatedModules:lc,nonArrayKeywords:fc,nonStringKeyword:hc,conflictingName:pc,nonStringDescription:dc,missingDescription:gc,missingReadme:mc,missingLicense:bc,nonEmailUrlBugsString:yc,nonUrlBugsUrlField:vc,nonEmailBugsEmailField:Ec,emptyNormalizedBugs:Cc,nonUrlHomepage:Lc,invalidLicense:Oc,typo:wc},Bn=$i,Ot=Ac,Sc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return $c.apply(null,e);var r=Ot[t]?Ot[t]:t+": '%s'";return e.unshift(r),Bn.format.apply(null,e)};function $c(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Bn.format(Ot.typo,e,t)}var Rc=Gn,wt=ku;Gn.fixer=wt;var Pc=Sc,Nc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Ic=["dependencies","people","typos"],At=Nc.map(function(e){return kn(e)+"Field"});At=At.concat(Ic);function Gn(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),wt.warn=function(){t(Pc.apply(null,arguments))},At.forEach(function(n){wt["fix"+kn(n)](e,r)}),e._id=e.name+"@"+e.version}function kn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _t=We(Rc),Wr=e=>e instanceof URL?pn(e):e;function xc(e,{cwd:t=xi.cwd(),type:r="file",stopAt:n}={}){let s=ee.resolve(Wr(t)??""),{root:i}=ee.parse(s);for(n=ee.resolve(s,Wr(n)??i);s&&s!==n&&s!==i;){let o=ee.isAbsolute(e)?e:ee.join(s,e);try{let a=dn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}s=ee.dirname(s)}}var Tt={},Se={},He={};Object.defineProperty(He,"__esModule",{value:!0});He.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;He.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Un={},$e={};Object.defineProperty($e,"__esModule",{value:!0});$e.isIdentifierChar=Yn;$e.isIdentifierName=Dc;$e.isIdentifierStart=Hn;var Ft="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Wn="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",_c=new RegExp("["+Ft+"]"),Tc=new RegExp("["+Ft+Wn+"]");Ft=Wn=null;var zn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Fc=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function St(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Hn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&_c.test(String.fromCharCode(e)):St(e,zn)}function Yn(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Tc.test(String.fromCharCode(e)):St(e,zn)||St(e,Fc)}function Dc(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(n=65536+((n&1023)<<10)+(s&1023))}if(t){if(t=!1,!Hn(n))return!1}else if(!Yn(n))return!1}return!t}var ie={};Object.defineProperty(ie,"__esModule",{value:!0});ie.isKeyword=kc;ie.isReservedWord=Vn;ie.isStrictBindOnlyReservedWord=Kn;ie.isStrictBindReservedWord=Gc;ie.isStrictReservedWord=Xn;var Dt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Mc=new Set(Dt.keyword),jc=new Set(Dt.strict),Bc=new Set(Dt.strictBind);function Vn(e,t){return t&&e==="await"||e==="enum"}function Xn(e,t){return Vn(e,t)||jc.has(e)}function Kn(e){return Bc.has(e)}function Gc(e,t){return Xn(e,t)||Kn(e)}function kc(e){return Mc.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=$e,r=ie})(Un);var qn={exports:{}},Uc=/[|\\{}()[\]^$+*?.]/g,Wc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Uc,"\\$&")},Mt={exports:{}},Jn={exports:{}},zc={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},se=zc,Zn={};for(De in se)se.hasOwnProperty(De)&&(Zn[se[De]]=De);var De,$=Jn.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(U in $)if($.hasOwnProperty(U)){if(!("channels"in $[U]))throw new Error("missing channels property: "+U);if(!("labels"in $[U]))throw new Error("missing channel labels property: "+U);if($[U].labels.length!==$[U].channels)throw new Error("channel and label counts mismatch: "+U);zr=$[U].channels,Hr=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:zr}),Object.defineProperty($[U],"labels",{value:Hr})}var zr,Hr,U;$.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.min(t,r,n),i=Math.max(t,r,n),o=i-s,a,u,l;return i===s?a=0:t===i?a=(r-n)/o:r===i?a=2+(n-t)/o:n===i&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),l=(s+i)/2,i===s?u=0:l<=.5?u=o/(i+s):u=o/(2-i-s),[a,u*100,l*100]};$.rgb.hsv=function(e){var t,r,n,s,i,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),g=l-Math.min(o,a,u),m=function(E){return(l-E)/6/g+1/2};return g===0?s=i=0:(i=g/l,t=m(o),r=m(a),n=m(u),o===l?s=n-r:a===l?s=1/3+t-n:u===l&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,i*100,l*100]};$.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],s=$.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[s,i*100,n*100]};$.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s,i,o,a;return a=Math.min(1-t,1-r,1-n),s=(1-t-a)/(1-a)||0,i=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,i*100,o*100,a*100]};function Hc(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}$.rgb.keyword=function(e){var t=Zn[e];if(t)return t;var r=1/0,n;for(var s in se)if(se.hasOwnProperty(s)){var i=se[s],o=Hc(e,i);o<r&&(r=o,n=s)}return n};$.keyword.rgb=function(e){return se[e]};$.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};$.rgb.lab=function(e){var t=$.rgb.xyz(e),r=t[0],n=t[1],s=t[2],i,o,a;return r/=95.047,n/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,i=116*n-16,o=500*(r-n),a=200*(n-s),[i,o,a]};$.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s,i,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,s=2*n-i,a=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=s+(i-s)*6*o:2*o<1?u=i:3*o<2?u=s+(i-s)*(2/3-o)*6:u=s,a[l]=u*255;return a};$.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=r,i=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,s*=i<=1?i:2-i,a=(n+r)/2,o=n===0?2*s/(i+s):2*r/(n+r),[t,o*100,a*100]};$.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,s){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};$.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=Math.max(n,.01),i,o,a;return a=(2-r)*n,i=(2-r)*s,o=r*s,o/=i<=1?i:2-i,o=o||0,a/=2,[t,o*100,a*100]};$.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,s=r+n,i,o,a,u;s>1&&(r/=s,n/=s),i=Math.floor(6*t),o=1-n,a=6*t-i,i&1&&(a=1-a),u=r+a*(o-r);var l,g,m;switch(i){default:case 6:case 0:l=o,g=u,m=r;break;case 1:l=u,g=o,m=r;break;case 2:l=r,g=o,m=u;break;case 3:l=r,g=u,m=o;break;case 4:l=u,g=r,m=o;break;case 5:l=o,g=r,m=u;break}return[l*255,g*255,m*255]};$.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100,i,o,a;return i=1-Math.min(1,t*(1-s)+s),o=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[i*255,o*255,a*255]};$.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s,i,o;return s=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[s*255,i*255,o*255]};$.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=116*r-16,i=500*(t-r),o=200*(r-n),[s,i,o]};$.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;i=(t+16)/116,s=r/500+i,o=i-n/200;var a=Math.pow(i,3),u=Math.pow(s,3),l=Math.pow(o,3);return i=a>.008856?a:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s*=95.047,i*=100,o*=108.883,[s,i,o]};$.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return s=Math.atan2(n,r),i=s*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[t,o,i]};$.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],s,i,o;return o=n/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o),[t,s,i]};$.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:$.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(i+=60),i};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};$.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,s=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,s,i]};$.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,s=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[n,s,i]};$.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),s=n>>16&255,i=n>>8&255,o=n&255;return[s,i,o]};$.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,s=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=s-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:s===t?u=(r-n)/o%6:s===r?u=2+(n-t)/o:u=4+(t-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};$.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,s=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(s=(r-.5*n)/(1-n)),[e[0],n*100,s*100]};$.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],n*100,s*100]};$.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var s=[0,0,0],i=t%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return u=(1-r)*n,[(r*s[0]+u)*255,(r*s[1]+u)*255,(r*s[2]+u)*255]};$.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),s=0;return n>0&&(s=t/n),[e[0],s*100,n*100]};$.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,s=0;return n>0&&n<.5?s=t/(2*n):n>=.5&&n<1&&(s=t/(2*(1-n))),[e[0],s*100,n*100]};$.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,s=n-t,i=0;return s<1&&(i=(n-s)/(1-s)),[e[0],s*100,i*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=$.gray.hsv=function(e){return[0,0,e[0]]};$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Qn=Jn.exports,Ue=Qn;function Yc(){for(var e={},t=Object.keys(Ue),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Vc(e){var t=Yc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(Ue[n]),i=s.length,o=0;o<i;o++){var a=s[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function Xc(e,t){return function(r){return t(e(r))}}function Kc(e,t){for(var r=[t[e].parent,e],n=Ue[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=Xc(Ue[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}var qc=function(e){for(var t=Vc(e),r={},n=Object.keys(t),s=n.length,i=0;i<s;i++){var o=n[i],a=t[o];a.parent!==null&&(r[o]=Kc(o,t))}return r},$t=Qn,Jc=qc,pe={},Zc=Object.keys($t);function Qc(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function el(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var s=n.length,i=0;i<s;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Zc.forEach(function(e){pe[e]={},Object.defineProperty(pe[e],"channels",{value:$t[e].channels}),Object.defineProperty(pe[e],"labels",{value:$t[e].labels});var t=Jc(e),r=Object.keys(t);r.forEach(function(n){var s=t[n];pe[e][n]=el(s),pe[e][n].raw=Qc(s)})});var es=pe;Mt.exports;(function(e){let t=es,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(Mt);var tl=Mt.exports,rl=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},nl=gn,V=rl,B=process.env,ge;V("no-color")||V("no-colors")||V("color=false")?ge=!1:(V("color")||V("colors")||V("color=true")||V("color=always"))&&(ge=!0);"FORCE_COLOR"in B&&(ge=B.FORCE_COLOR.length===0||parseInt(B.FORCE_COLOR,10)!==0);function sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function il(e){if(ge===!1)return 0;if(V("color=16m")||V("color=full")||V("color=truecolor"))return 3;if(V("color=256"))return 2;if(e&&!e.isTTY&&ge!==!0)return 0;let t=ge?1:0;if(process.platform==="win32"){let r=nl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in B)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in B)||B.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in B)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B.TEAMCITY_VERSION)?1:0;if(B.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in B){let r=parseInt((B.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(B.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B.TERM)||"COLORTERM"in B?1:(B.TERM==="dumb",t)}function ft(e){let t=il(e);return sl(t)}var ol={supportsColor:ft,stdout:ft(process.stdout),stderr:ft(process.stderr)},al=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ul=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,cl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ll=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ts(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):ll.get(e)||e}function fl(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(ul))r.push(s[2].replace(cl,(o,a,u)=>a?ts(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function hl(e){Yr.lastIndex=0;let t=[],r;for(;(r=Yr.exec(e))!==null;){let n=r[1];if(r[2]){let s=fl(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Vr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var pl=(e,t)=>{let r=[],n=[],s=[];if(t.replace(al,(i,o,a,u,l,g)=>{if(o)s.push(ts(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Vr(e,r)(m)),r.push({inverse:a,styles:hl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Vr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=Wc,r=tl,n=ol.stdout,s=pl,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(N){C.level=N}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(N){C.enabled=N}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(qn);var dl=qn.exports;Object.defineProperty(Se,"__esModule",{value:!0});Se.default=Cl;Se.shouldHighlight=ss;var Xr=He,Kr=Un,Rt=gl(dl,!0);function rs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rs=function(n){return n?r:t})(e)}function gl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rs(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var ml=new Set(["as","async","from","get","of","set"]);function bl(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var yl=/\r\n|[\n\r\u2028\u2029]/,vl=/^[()[\]{}]$/,ns;{let e=/^[a-z][\w-]*$/i,t=function(r,n,s){if(r.type==="name"){if((0,Kr.isKeyword)(r.value)||(0,Kr.isStrictReservedWord)(r.value,!0)||ml.has(r.value))return"keyword";if(e.test(r.value)&&(s[n-1]==="<"||s.slice(n-2,n)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&vl.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};ns=function*(r){let n;for(;n=Xr.default.exec(r);){let s=Xr.matchToToken(n);yield{type:t(s,n.index,r),value:s.value}}}}function El(e,t){let r="";for(let{type:n,value:s}of ns(t)){let i=e[n];i?r+=s.split(yl).map(o=>i(o)).join(`
13
+ `):r+=s}return r}function ss(e){return Rt.default.level>0||e.forceColor}var ht;function is(e){if(e){var t;return(t=ht)!=null||(ht=new Rt.default.constructor({enabled:!0,level:1})),ht}return Rt.default}Se.getChalk=e=>is(e.forceColor);function Cl(e,t={}){if(e!==""&&ss(t)){let r=bl(is(t.forceColor));return El(r,e)}else return e}var os={exports:{}},Ll=/[|\\{}()[\]^$+*?.]/g,Ol=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Ll,"\\$&")},jt={exports:{}};jt.exports;(function(e){let t=es,r=(o,a)=>function(){return`\x1B[${o.apply(t,arguments)+a}m`},n=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};5;${u}m`},s=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[2]}m`};function i(){let o=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(let g of Object.keys(a)){let m=a[g];for(let E of Object.keys(m)){let L=m[E];a[E]={open:`\x1B[${L[0]}m`,close:`\x1B[${L[1]}m`},m[E]=a[E],o.set(L[0],L[1])}Object.defineProperty(a,g,{value:m,enumerable:!1}),Object.defineProperty(a,"codes",{value:o,enumerable:!1})}let u=g=>g,l=(g,m,E)=>[g,m,E];a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi={ansi:r(u,0)},a.color.ansi256={ansi256:n(u,0)},a.color.ansi16m={rgb:s(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:s(l,10)};for(let g of Object.keys(t)){if(typeof t[g]!="object")continue;let m=t[g];g==="ansi16"&&(g="ansi"),"ansi16"in m&&(a.color.ansi[g]=r(m.ansi16,0),a.bgColor.ansi[g]=r(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[g]=n(m.ansi256,0),a.bgColor.ansi256[g]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[g]=s(m.rgb,0),a.bgColor.ansi16m[g]=s(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:i})})(jt);var wl=jt.exports,Al=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1?!0:n<s)},Sl=gn,X=Al,G=process.env,me;X("no-color")||X("no-colors")||X("color=false")?me=!1:(X("color")||X("colors")||X("color=true")||X("color=always"))&&(me=!0);"FORCE_COLOR"in G&&(me=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function $l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Rl(e){if(me===!1)return 0;if(X("color=16m")||X("color=full")||X("color=truecolor"))return 3;if(X("color=256"))return 2;if(e&&!e.isTTY&&me!==!0)return 0;let t=me?1:0;if(process.platform==="win32"){let r=Sl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in G)||G.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in G){let r=parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:(G.TERM==="dumb",t)}function pt(e){let t=Rl(e);return $l(t)}var Pl={supportsColor:pt,stdout:pt(process.stdout),stderr:pt(process.stderr)},Nl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,qr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Il=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,_l=new Map([["n",`
14
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function as(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):_l.get(e)||e}function Tl(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(Il))r.push(s[2].replace(xl,(o,a,u)=>a?as(a):u));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function Fl(e){qr.lastIndex=0;let t=[],r;for(;(r=qr.exec(e))!==null;){let n=r[1];if(r[2]){let s=Tl(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Jr(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}var Dl=(e,t)=>{let r=[],n=[],s=[];if(t.replace(Nl,(i,o,a,u,l,g)=>{if(o)s.push(as(o));else if(u){let m=s.join("");s=[],n.push(r.length===0?m:Jr(e,r)(m)),r.push({inverse:a,styles:Fl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Jr(e,r)(s.join(""))),s=[],r.pop()}else s.push(g)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")};(function(e){let t=Ol,r=wl,n=Pl.stdout,s=Dl,i=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(h,c){c=c||{};let b=n?n.level:0;h.level=c.level===void 0?b:c.level,h.enabled="enabled"in c?c.enabled:h.level>0}function g(h){if(!this||!(this instanceof g)||this.template){let c={};return l(c,h),c.template=function(){let b=[].slice.call(arguments);return v.apply(null,[c.template].concat(b))},Object.setPrototypeOf(c,g.prototype),Object.setPrototypeOf(c.template,c),c.template.constructor=g,c.template}l(this,h)}i&&(r.blue.open="\x1B[94m");for(let h of Object.keys(r))r[h].closeRe=new RegExp(t(r[h].close),"g"),u[h]={get(){let c=r[h];return E.call(this,this._styles?this._styles.concat(c):[c],this._empty,h)}};u.visible={get(){return E.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let h of Object.keys(r.color.ansi))a.has(h)||(u[h]={get(){let c=this.level;return function(){let A={open:r.color[o[c]][h].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return E.call(this,this._styles?this._styles.concat(A):[A],this._empty,h)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let h of Object.keys(r.bgColor.ansi)){if(a.has(h))continue;let c="bg"+h[0].toUpperCase()+h.slice(1);u[c]={get(){let b=this.level;return function(){let C={open:r.bgColor[o[b]][h].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return E.call(this,this._styles?this._styles.concat(C):[C],this._empty,h)}}}}let m=Object.defineProperties(()=>{},u);function E(h,c,b){let A=function(){return L.apply(A,arguments)};A._styles=h,A._empty=c;let C=this;return Object.defineProperty(A,"level",{enumerable:!0,get(){return C.level},set(N){C.level=N}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(N){C.enabled=N}}),A.hasGrey=this.hasGrey||b==="gray"||b==="grey",A.__proto__=m,A}function L(){let h=arguments,c=h.length,b=String(arguments[0]);if(c===0)return"";if(c>1)for(let C=1;C<c;C++)b+=" "+h[C];if(!this.enabled||this.level<=0||!b)return this._empty?"":b;let A=r.dim.open;i&&this.hasGrey&&(r.dim.open="");for(let C of this._styles.slice().reverse())b=C.open+b.replace(C.closeRe,C.open)+C.close,b=b.replace(/\r?\n/g,`${C.close}$&${C.open}`);return r.dim.open=A,b}function v(h,c){if(!Array.isArray(c))return[].slice.call(arguments,1).join(" ");let b=[].slice.call(arguments,2),A=[c.raw[0]];for(let C=1;C<c.length;C++)A.push(String(b[C-1]).replace(/[{}\\]/g,"\\$&")),A.push(String(c.raw[C]));return s(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(os);var Ml=os.exports;Object.defineProperty(Tt,"__esModule",{value:!0});var jl=Tt.codeFrameColumns=cs;Tt.default=Wl;var Zr=Se,Qr=Bl(Ml,!0);function us(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(us=function(n){return n?r:t})(e)}function Bl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=us(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var dt;function Gl(e){if(e){var t;return(t=dt)!=null||(dt=new Qr.default.constructor({enabled:!0,level:1})),dt}return Qr.default}var en=!1;function kl(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var tn=/\r\n|[\n\r\u2028\u2029]/;function Ul(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},a=n.line,u=n.column,l=s.line,g=s.column,m=Math.max(a-(i+1),0),E=Math.min(t.length,l+o);a===-1&&(m=0),l===-1&&(E=t.length);let L=l-a,v={};if(L)for(let h=0;h<=L;h++){let c=h+a;if(!u)v[c]=!0;else if(h===0){let b=t[c-1].length;v[c]=[u,b-u+1]}else if(h===L)v[c]=[0,g];else{let b=t[c-h].length;v[c]=[0,b]}}else u===g?u?v[a]=[u,0]:v[a]=!0:v[a]=[u,g-u];return{start:m,end:E,markerLines:v}}function cs(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Zr.shouldHighlight)(r),s=Gl(r.forceColor),i=kl(s),o=(h,c)=>n?h(c):c,a=e.split(tn),{start:u,end:l,markerLines:g}=Ul(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Zr.default)(e,r):e).split(tn,l).slice(u,l).map((h,c)=>{let b=u+1+c,C=` ${` ${b}`.slice(-E)} |`,N=g[b],I=!g[b+1];if(N){let j="";if(Array.isArray(N)){let W=h.slice(0,Math.max(N[0]-1,0)).replace(/[^\t]/g," "),Z=N[1]||1;j=[`
15
+ `,o(i.gutter,C.replace(/\d/g," "))," ",W,o(i.marker,"^").repeat(Z)].join(""),I&&r.message&&(j+=" "+o(i.message,r.message))}return[o(i.marker,">"),o(i.gutter,C),h.length>0?` ${h}`:"",j].join("")}else return` ${o(i.gutter,C)}${h.length>0?` ${h}`:""}`}).join(`
16
+ `);return r.message&&!m&&(v=`${" ".repeat(E+1)}${r.message}
17
+ ${v}`),n?s.reset(v):v}function Wl(e,t,r,n={}){if(!en){en=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let o=new Error(i);o.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),cs(e,{start:{column:r,line:t}},n)}var rn=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function zl(e,t){let r=rn(e,`
18
+ `,t-1),n=t-r-1,s=0;for(let i=r;i>=0;i=rn(e,`
19
+ `,i-1))s++;return{line:s,column:n}}function nn(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=zl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var Hl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,Pt=class e extends Error{name="JSONError";fileName;codeFrame;rawCodeFrame;#n;constructor(t){super(),this.#n=t,Error.captureStackTrace?.(this,e)}get message(){let{fileName:t,codeFrame:r}=this;return`${this.#n}${t?` in ${t}`:""}${r?`
22
20
 
23
- %s
24
- `)});function Xf(e,t,r){typeof t=="string"&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(n){throw Tu(e,t),n}}catch(n){n.message=n.message.replace(/\n/g,"");let i=n.message.match(/in JSON at position (\d+) while parsing/),s=new Kf(n);if(r&&(s.fileName=r),i&&i.length>0){let o=new Vf(e),a=Number(i[1]),l=o.locationForIndex(a),u=Uf(e,{start:{line:l.line+1,column:l.column+1}},{highlightCode:!0});s.codeFrame=u}throw s}}var ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.LRUCache=void 0;var Ne=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Hi=new Set,tr=typeof process=="object"&&process?process:{},Yi=(e,t,r,n)=>{typeof tr.emitWarning=="function"?tr.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},nt=globalThis.AbortController,Tn=globalThis.AbortSignal;if(typeof nt>"u"){Tn=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},nt=class{constructor(){t()}signal=new Tn;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=tr.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Yi("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Jf=e=>!Hi.has(e),ie=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Vi=e=>ie(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Le:null:null,Le=class extends Array{constructor(t){super(t),this.fill(0)}},rr=class e{heap;length;static#r=!1;static create(t){let r=Vi(t);if(!r)return[];e.#r=!0;let n=new e(t,r);return e.#r=!1,n}constructor(t,r){if(!e.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},qf=class Ki{#r;#s;#e;#g;#x;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#m;#a;#i;#t;#f;#p;#u;#l;#b;#c;#$;#L;#y;#v;#O;#h;static unsafeExposeInternals(t){return{starts:t.#L,ttls:t.#y,sizes:t.#$,keyMap:t.#a,keyList:t.#i,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#u},get tail(){return t.#l},free:t.#b,isBackgroundFetch:r=>t.#n(r),backgroundFetch:(r,n,i,s)=>t.#P(r,n,i,s),moveToTail:r=>t.#R(r),indexes:r=>t.#E(r),rindexes:r=>t.#w(r),isStale:r=>t.#d(r)}}get max(){return this.#r}get maxSize(){return this.#s}get calculatedSize(){return this.#m}get size(){return this.#o}get fetchMethod(){return this.#x}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:p,noDisposeOnSet:d,noUpdateTTL:v,maxSize:w=0,maxEntrySize:y=0,sizeCalculation:f,fetchMethod:c,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:x,ignoreFetchAbort:_}=t;if(r!==0&&!ie(r))throw new TypeError("max option must be a nonnegative integer");let D=r?Vi(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#r=r,this.#s=w,this.maxEntrySize=y||this.#s,this.sizeCalculation=f,this.sizeCalculation){if(!this.#s&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=c,this.#O=!!c,this.#a=new Map,this.#i=new Array(r).fill(void 0),this.#t=new Array(r).fill(void 0),this.#f=new D(r),this.#p=new D(r),this.#u=0,this.#l=0,this.#b=rr.create(r),this.#o=0,this.#m=0,typeof u=="function"&&(this.#e=u),typeof p=="function"?(this.#g=p,this.#c=[]):(this.#g=void 0,this.#c=void 0),this.#v=!!this.#e,this.#h=!!this.#g,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#s!==0&&!ie(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!ie(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ie(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!ie(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#r===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#s){let j="LRU_CACHE_UNBOUNDED";Jf(j)&&(Hi.add(j),Yi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,Ki))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#N(){let t=new Le(this.#r),r=new Le(this.#r);this.#y=t,this.#L=r,this.#T=(s,o,a=Ne.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(s)&&this.delete(this.#i[s])},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=t[s]!==0?Ne.now():0},this.#S=(s,o)=>{if(t[o]){let a=t[o],l=r[o];s.ttl=a,s.start=l,s.now=n||i();let u=s.now-l;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Ne.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],l=r[o];if(a===0||l===0)return 1/0;let u=(n||i())-l;return a-u},this.#d=s=>t[s]!==0&&r[s]!==0&&(n||i())-r[s]>t[s]}#A=()=>{};#S=()=>{};#T=()=>{};#d=()=>!1;#j(){let t=new Le(this.#r);this.#m=0,this.#$=t,this.#C=r=>{this.#m-=t[r],t[r]=0},this.#F=(r,n,i,s)=>{if(this.#n(n))return 0;if(!ie(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!ie(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#I=(r,n,i)=>{if(t[r]=n,this.#s){let s=this.#s-t[r];for(;this.#m>s;)this.#_(!0)}this.#m+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#m)}}#C=t=>{};#I=(t,r,n)=>{};#F=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#E({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#l;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#u));)r=this.#p[r]}*#w({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#u;!(!this.#D(r)||((t||!this.#d(r))&&(yield r),r===this.#l));)r=this.#f[r]}#D(t){return t!==void 0&&this.#a.get(this.#i[t])===t}*entries(){for(let t of this.#E())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*rentries(){for(let t of this.#w())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*keys(){for(let t of this.#E()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*rkeys(){for(let t of this.#w()){let r=this.#i[t];r!==void 0&&!this.#n(this.#t[t])&&(yield r)}}*values(){for(let t of this.#E())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#w())this.#t[t]!==void 0&&!this.#n(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#i[n],this))return this.get(this.#i[n],r)}}forEach(t,r=this){for(let n of this.#E()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#w()){let i=this.#t[n],s=this.#n(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#w({allowStale:!0}))this.#d(r)&&(this.delete(this.#i[r]),t=!0);return t}dump(){let t=[];for(let r of this.#E({allowStale:!0})){let n=this.#i[r],i=this.#t[r],s=this.#n(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#y&&this.#L){o.ttl=this.#y[r];let a=Ne.now()-this.#L[r];o.start=Math.floor(Date.now()-a)}this.#$&&(o.size=this.#$[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Ne.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,p=this.#F(t,r,n.size||0,a);if(this.maxEntrySize&&p>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=this.#o===0?void 0:this.#a.get(t);if(d===void 0)d=this.#o===0?this.#l:this.#b.length!==0?this.#b.pop():this.#o===this.#r?this.#_(!1):this.#o,this.#i[d]=t,this.#t[d]=r,this.#a.set(t,d),this.#f[this.#l]=d,this.#p[d]=this.#l,this.#l=d,this.#o++,this.#I(d,p,l),l&&(l.set="add"),u=!1;else{this.#R(d);let v=this.#t[d];if(r!==v){if(this.#O&&this.#n(v)){v.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=v;w!==void 0&&!o&&(this.#v&&this.#e?.(w,t,"set"),this.#h&&this.#c?.push([w,t,"set"]))}else o||(this.#v&&this.#e?.(v,t,"set"),this.#h&&this.#c?.push([v,t,"set"]));if(this.#C(d),this.#I(d,p,l),this.#t[d]=r,l){l.set="replace";let w=v&&this.#n(v)?v.__staleWhileFetching:v;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(i!==0&&!this.#y&&this.#N(),this.#y&&(u||this.#T(d,i,s),l&&this.#S(l,d)),!o&&this.#h&&this.#c){let v=this.#c,w;for(;w=v?.shift();)this.#g?.(...w)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#u];if(this.#_(!0),this.#n(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}}#_(t){let r=this.#u,n=this.#i[r],i=this.#t[r];return this.#O&&this.#n(i)?i.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,n,"evict"),this.#h&&this.#c?.push([i,n,"evict"])),this.#C(r),t&&(this.#i[r]=void 0,this.#t[r]=void 0,this.#b.push(r)),this.#o===1?(this.#u=this.#l=0,this.#b.length=0):this.#u=this.#f[r],this.#a.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#t[s];if(this.#n(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#d(s))i&&(i.has="stale",this.#S(i,s));else return n&&this.#A(s),i&&(i.has="hit",this.#S(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i!==void 0&&(n||!this.#d(i))){let s=this.#t[i];return this.#n(s)?s.__staleWhileFetching:s}}#P(t,r,n,i){let s=r===void 0?void 0:this.#t[r];if(this.#n(s))return s;let o=new nt,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:n,context:i},u=(f,c=!1)=>{let{aborted:b}=o.signal,S=n.ignoreFetchAbort&&f!==void 0;if(n.status&&(b&&!c?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!S&&!c)return d(o.signal.reason);let $=w;return this.#t[r]===w&&(f===void 0?$.__staleWhileFetching?this.#t[r]=$.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,f,l.options))),f},p=f=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=f),d(f)),d=f=>{let{aborted:c}=o.signal,b=c&&n.allowStaleOnFetchAbort,S=b||n.allowStaleOnFetchRejection,$=S||n.noDeleteOnFetchRejection,x=w;if(this.#t[r]===w&&(!$||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#t[r]=x.__staleWhileFetching)),S)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw f},v=(f,c)=>{let b=this.#x?.(t,s,l);b&&b instanceof Promise&&b.then(S=>f(S===void 0?void 0:S),c),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(f(void 0),n.allowStaleOnFetchAbort&&(f=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let w=new Promise(v).then(u,p),y=Object.assign(w,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,y,{...l.options,status:void 0}),r=this.#a.get(t)):this.#t[r]=y,y}#n(t){if(!this.#O)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof nt}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:f,forceRefresh:c=!1,status:b,signal:S}=r;if(!this.#O)return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});let $={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:p,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:y,ignoreFetchAbort:w,status:b,signal:S},x=this.#a.get(t);if(x===void 0){b&&(b.fetch="miss");let _=this.#P(t,x,$,f);return _.__returned=_}else{let _=this.#t[x];if(this.#n(_)){let T=n&&_.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",T&&(b.returnedStale=!0)),T?_.__staleWhileFetching:_.__returned=_}let D=this.#d(x);if(!c&&!D)return b&&(b.fetch="hit"),this.#R(x),i&&this.#A(x),b&&this.#S(b,x),_;let j=this.#P(t,x,$,f),V=j.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=D?"stale":"refresh",V&&D&&(b.returnedStale=!0)),V?j.__staleWhileFetching:j.__returned=j}}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let l=this.#t[a],u=this.#n(l);return o&&this.#S(o,a),this.#d(a)?(o&&(o.get="stale"),u?(o&&n&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?l.__staleWhileFetching:void 0):(s||this.delete(t),o&&n&&(o.returnedStale=!0),n?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#R(a),i&&this.#A(a),l))}else o&&(o.get="miss")}#M(t,r){this.#p[r]=t,this.#f[t]=r}#R(t){t!==this.#l&&(t===this.#u?this.#u=this.#f[t]:this.#M(this.#p[t],this.#f[t]),this.#M(this.#l,t),this.#l=t)}delete(t){let r=!1;if(this.#o!==0){let n=this.#a.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#C(n);let i=this.#t[n];this.#n(i)?i.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#e?.(i,t,"delete"),this.#h&&this.#c?.push([i,t,"delete"])),this.#a.delete(t),this.#i[n]=void 0,this.#t[n]=void 0,n===this.#l?this.#l=this.#p[n]:n===this.#u?this.#u=this.#f[n]:(this.#f[this.#p[n]]=this.#f[n],this.#p[this.#f[n]]=this.#p[n]),this.#o--,this.#b.push(n)}}if(this.#h&&this.#c?.length){let n=this.#c,i;for(;i=n?.shift();)this.#g?.(...i)}return r}clear(){for(let t of this.#w({allowStale:!0})){let r=this.#t[t];if(this.#n(r))r.__abortController.abort(new Error("deleted"));else{let n=this.#i[t];this.#v&&this.#e?.(r,n,"delete"),this.#h&&this.#c?.push([r,n,"delete"])}}if(this.#a.clear(),this.#t.fill(void 0),this.#i.fill(void 0),this.#y&&this.#L&&(this.#y.fill(0),this.#L.fill(0)),this.#$&&this.#$.fill(0),this.#u=0,this.#l=0,this.#b.length=0,this.#m=0,this.#o=0,this.#h&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#g?.(...r)}}};ft.LRUCache=qf;var N=(...e)=>e.every(t=>t)?e.join(""):"",B=e=>e?encodeURIComponent(e):"",Xi=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Zf={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${N("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${N("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${B(n||"HEAD")}/${s}${N("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",B(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${B(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${N("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${N("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Xi},le={};le.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${N(e,"@")}raw.githubusercontent.com/${t}/${r}/${B(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${B(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};le.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${N("/",i,"/",B(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${B(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};le.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${B(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};le.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${N("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${N("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${N("/",B(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",B(r))}${N("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",B(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${N("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${N("/",B(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${N("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${N("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${N("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${B(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+Xi(e)}};le.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${B(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${N("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${B(n)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:t})=>`https://todo.sr.ht/${e}/${t}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(le))le[e]=Object.assign({},Zf,t);var Qf=le,eh=ot,jt=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Fn=e=>{try{return new eh.URL(e)}catch{}},th=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},rh=e=>{let t=jt(e,"@","#"),r=jt(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),jt(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},Ji=(e,t)=>{let r=t?th(e,t):e;return Fn(r)||Fn(rh(r))},nh=Ji,ih=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,l=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,p=n===-1||t>-1&&n>t,d=r>0,v=t>-1?e[t-1]!=="/":!e.endsWith("/"),w=!e.startsWith(".");return a&&d&&v&&w&&l&&u&&p},sh=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=ih(e)?`github:${e}`:e,s=nh(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],l=o||a;if(!l)return;let u=r[o||a],p=null;n[s.protocol]?.auth&&(s.username||s.password)&&(p=`${s.username}${s.password?":"+s.password:""}`);let d=null,v=null,w=null,y=null;try{if(o){let f=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,c=f.indexOf("@");c>-1&&(f=f.slice(c+1));let b=f.lastIndexOf("/");b>-1?(v=decodeURIComponent(f.slice(0,b)),v||(v=null),w=decodeURIComponent(f.slice(b+1))):w=decodeURIComponent(f),w.endsWith(".git")&&(w=w.slice(0,-4)),s.hash&&(d=decodeURIComponent(s.hash.slice(1))),y="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let f=u.extract(s);if(!f)return;v=f.user&&decodeURIComponent(f.user),w=decodeURIComponent(f.project),d=decodeURIComponent(f.committish),y=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[l,v,p,w,d,y,t]},{LRUCache:oh}=ft,ah=Qf,lh=sh,ch=Ji,kt=new oh({max:1e3}),it=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#r[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#r={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#r[t]=r,e.#r.byDomain[r.domain]=t,e.#r.byShortcut[`${t}:`]=t,e.#s[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!kt.has(n)){let i=lh(t,r,{gitHosts:e.#r,protocols:e.#s});kt.set(n,i?new e(...i):void 0)}return kt.get(n)}static parseUrl(t){return ch(t)}#e(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof r[0]!="string"?this.#e(this.browsetreetemplate,{...r[0],path:t}):this.#e(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#e(this.browseblobtemplate,{...r[0],path:t}):this.#e(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#e(this.filetemplate,{...r,path:t})}edit(t,r){return this.#e(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(ah))it.addHost(e,t);var uh=it,fh=hh;function hh(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
25
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}var ph={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},dh={web:"url",name:"url"},gh={server:"start",tests:"test"},mh={topLevel:ph,bugs:dh,script:gh},bh=oi,yh=ai,vh=fi,Ke=uh,Eh=yi,wh=["dependencies","devDependencies","optionalDependencies"],$h=fh,Bt=ot,oe=mh,Dn=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Lh={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Ke.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(oe.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,oe.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):oe.script[t]&&!e.scripts[oe.script[t]]&&this.warn("typo",t,oe.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){_h(e,this.warn),xh(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(n){var i=e[r][n];typeof i!="string"&&(this.warn("nonStringDependency",n,JSON.stringify(i)),delete e[r][n]);var s=Ke.fromUrl(e[r][n]);s&&(e[r][n]=s.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!bh(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=yh(e.version,r),!0},fixPeople:function(e){Mn(e,Ch),Mn(e,Rh)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),Ah(e.name,r,t.allowLegacyCase),Eh(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=$h(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Ke.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Dn(e.bugs)?e.bugs={email:e.bugs}:Bt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Ph(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Bt.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Dn(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Ke.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Bt.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!vh(t).validForNewPackages)return this.warn("invalidLicense")}};function Sh(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function Oh(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Ah(e,t,r){if(e.charAt(0)==="."||!(Sh(e)||Oh(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Mn(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function Ch(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,s=i?" <"+i+">":"";return t+s+n}function Rh(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function xh(e,t){var r=e.optionalDependencies;if(r){var n=e.dependencies||{};Object.keys(r).forEach(function(i){n[i]=r[i]}),e.dependencies=n}}function Ih(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var s=i.shift(),o=i.join("");o=o.trim(),o=o.replace(/^@/,""),n[s]=o}),n}function _h(e,t){wh.forEach(function(r){e[r]&&(e[r]=Ih(e[r],r,t))})}function Ph(e,t){e&&Object.keys(e).forEach(function(r){oe.bugs[r]&&(t("typo",r,oe.bugs[r],"bugs"),e[oe.bugs[r]]=e[r],delete e[r])})}var Nh="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Th="No repository field.",Fh="Probably broken git url: %s",Dh="scripts must be an object",Mh="script values must be string commands",jh="Invalid 'files' member",kh="Invalid filename in 'files' list: %s",Bh="Invalid 'bundleDependencies' list. Must be array of package names",Uh="Invalid bundleDependencies member: %s",Gh="Non-dependency in bundleDependencies: %s",zh="%s field must be an object",Wh="Invalid dependency: %s %s",Hh="specifying %s as array is deprecated",Yh="modules field is deprecated",Vh="keywords should be an array of strings",Kh="keywords should be an array of strings",Xh="%s is also the name of a node core module.",Jh="'description' field should be a string",qh="No description",Zh="No README data",Qh="No license field.",ep="Bug string field must be url, email, or {email,url}",tp="bugs.url field must be a string url. Deleted.",rp="bugs.email field must be a string email. Deleted.",np="Normalized value of bugs field is an empty object. Deleted.",ip="homepage field must be a string url. Deleted.",sp="license should be a valid SPDX license expression",op="%s should probably be %s.",ap={repositories:Nh,missingRepository:Th,brokenGitUrl:Fh,nonObjectScripts:Dh,nonStringScript:Mh,nonArrayFiles:jh,invalidFilename:kh,nonArrayBundleDependencies:Bh,nonStringBundleDependency:Uh,nonDependencyBundleDependency:Gh,nonObjectDependencies:zh,nonStringDependency:Wh,deprecatedArrayDependencies:Hh,deprecatedModules:Yh,nonArrayKeywords:Vh,nonStringKeyword:Kh,conflictingName:Xh,nonStringDescription:Jh,missingDescription:qh,missingReadme:Zh,missingLicense:Qh,nonEmailUrlBugsString:ep,nonUrlBugsUrlField:tp,nonEmailBugsEmailField:rp,emptyNormalizedBugs:np,nonUrlHomepage:ip,invalidLicense:sp,typo:op},qi=st,nr=ap,lp=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return cp.apply(null,e);var r=nr[t]?nr[t]:t+": '%s'";return e.unshift(r),qi.format.apply(null,e)};function cp(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),qi.format(nr.typo,e,t)}var up=Zi,ir=Lh;Zi.fixer=ir;var fp=lp,hp=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],pp=["dependencies","people","typos"],sr=hp.map(function(e){return Qi(e)+"Field"});sr=sr.concat(pp);function Zi(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(n){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),ir.warn=function(){t(fp.apply(null,arguments))},sr.forEach(function(n){ir["fix"+Qi(n)](e,r)}),e._id=e.name+"@"+e.version}function Qi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dp=ce(up),gp=e=>e instanceof URL?ar(e):e,mp=e=>ue.resolve(gp(e)??".","package.json"),bp=(e,t)=>{let r=typeof e=="string"?Xf(e):e;return t&&dp(r),r};function yp({cwd:e,normalize:t=!0}={}){let r=Gt.readFileSync(mp(e),"utf8");return bp(r,t)}function es(e){let t=$u("package.json",e);if(t)return{packageJson:yp({...e,cwd:ue.dirname(t)}),path:t}}var vp=(e,t)=>(e=e.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,i)=>n+t+i.toLowerCase()));function vr(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();let n=`$1${t}$2`,i=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?vp(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Er={exports:{}},Ep=Object.prototype.toString,wp=function(e){var t;return Ep.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},$p=function(e){return e==null?[]:Array.isArray(e)?e:[e]},Lp=Object.prototype.toString,Sp=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return xp(t)?"generatorfunction":"function";if(Op(t))return"array";if(Pp(t))return"buffer";if(_p(t))return"arguments";if(Cp(t))return"date";if(Ap(t))return"error";if(Rp(t))return"regexp";switch(ts(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Ip(t))return"generator";switch(r=Lp.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ts(e){return typeof e.constructor=="function"?e.constructor.name:null}function Op(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Ap(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cp(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Rp(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function xp(e,t){return ts(e)==="GeneratorFunction"}function Ip(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function _p(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Pp(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var Np=wp,Tp=$p,or=Sp,jn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},kn=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},qe=e=>Array.isArray(e)?`[${e.map(qe).join(", ")}]`:or(e)==="string"?JSON.stringify(e):e,Fp=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${or(t)}-array`}return or(e)},Dp=(e,t)=>{let r=e==="array"?"string-array":e;return wr.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},Mp=["stopEarly","unknown","--"],rs=["string","boolean","number"],wr=rs.map(e=>`${e}-array`),Bn=[...rs,"array",...wr],ns=e=>{e=e||{};let t={};return Mp.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{let n=e[r];if(r==="arguments"&&(r="_"),typeof n=="string"&&(n={type:n}),Np(n)){let i=n,{type:s}=i;if(s){if(!Bn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${qe(Bn)}, got ${qe(s)}`);if(wr.includes(s)){let[o]=s.split("-");jn(t,"array",{key:r,[o]:!0})}else jn(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=Fp(o),l=Dp(s,o);if(l&&l!==a)throw new TypeError(`Expected "${r}" default value to be of type "${l}", got ${qe(a)}`);kn(t,"default",r,o)}Tp(i.alias).forEach(o=>{kn(t,"alias",o,r)})}}),t};Er.exports=ns;Er.exports.default=ns;var jp=Er.exports,is=ce(jp),kp=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),Ut=new Qe({maxSize:1e5}),Un=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Gn=(e,t={})=>{if(!Un(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,l)=>{if(i&&Un(l)&&(l=Ze(l,s())),!(n&&kp(n,a))){let u=`${r}${a}`;if(Ut.has(u))a=Ut.get(u);else{let p=vr(a,{separator:r});a.length<100&&Ut.set(u,p),a=p}}return[a,l]};return Ze(e,s())};function ss(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Gn(e[r],t)):Gn(e,t)}import Bp from"node:process";import{dirname as Up}from"node:path";import{fileURLToPath as Gp}from"node:url";var pe=e=>`--${vr(e,{separator:"-"})}`,Me=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var zp=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Me(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Me(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Me(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(i=>typeof i!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(s=>`(\`${pe(s)}\`, type: '${e.flags[s].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(i=>n.choices.includes(i)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Me(n)}`}}},r=[];for(let[n,i]of Object.entries(t)){let s=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(i)){let l=s.filter(p=>o(p)),u=l.map(([p])=>p);l.length>0&&r.push(a(u))}}if(r.length>0)throw new Error(r.join(`
26
- `))},os=(e,t)=>{if(typeof e!="string"&&(t=e,e=""),!t.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let r=es({cwd:Up(Gp(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Bp.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,hardRejection:!0,allowUnknownFlags:!0,allowParentFlags:!0,...t};return zp(n),n};var Wp=({flags:e,booleanDefault:t})=>{let r={};for(let[n,i]of Object.entries(e)){let s={...i};s.shortFlag&&(s.alias=s.shortFlag,delete s.shortFlag),t!==void 0&&s.type==="boolean"&&!Object.hasOwn(s,"default")&&(s.default=s.isMultiple?[t]:t),s.isMultiple&&(s.type=s.type?`${s.type}-array`:"array",s.default=s.default??[],delete s.isMultiple),Array.isArray(s.aliases)&&(s.alias&&s.aliases.push(s.alias),s.alias=s.aliases,delete s.aliases),r[n]=s}return r},as=e=>{let t=Wp(e);return t.arguments=e.input,t=ss(t,{separator:"-",exclude:["stopEarly","--"]}),e.inferType&&delete t.arguments,e.allowUnknownFlags||(e.autoHelp&&!t.help&&(t.help={type:"boolean"}),e.autoVersion&&!t.version&&(t.version={type:"boolean"})),t=is(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import ls from"node:process";var Hp=(e,t)=>{for(let[r,n]of Object.entries(t.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(e[r]))throw new Error(`The flag --${r} can only be set once.`)},Yp=(e,t,r)=>{let{choices:n,isRequired:i}=t;if(!n)return;let s=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return i?`Flag \`${pe(e)}\` has no value. ${s}`:void 0;if(Array.isArray(r)){let o=r.filter(a=>!n.includes(a));if(o.length>0)return`Unknown ${o.length>1?"values":"value"} for flag \`${pe(e)}\`: \`${o.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${pe(e)}\`: \`${r}\`. ${s}`},Vp=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=Yp(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
27
- `)}`)},cs=(e,t)=>{Hp(e,t),Vp(t.flags,e)},Kp=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
28
- `))},us=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(Kp(t),ls.exit(2))},Xp=(e,t,r,n)=>{let i=t[e],s=!0;if(typeof i.isRequired=="function"&&(s=i.isRequired(r,n),typeof s!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof s} was returned.`);return(r[e]===void 0||i.isMultiple&&r[e].length===0)&&s},Jp=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${pe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},fs=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&Xp(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(Jp(n),ls.exit(2))};var qp=(e,t)=>{let{pkg:r}=e,n=Se(e.argv,t),i="";e.help&&(i=qn((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
29
- `)&&(i=Zn(i,2)),i=`
30
- ${i}`),$i(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?`
31
- ${s}
21
+ ${r}
22
+ `:""}`}set message(t){this.#n=t}},sn=(e,t,r=!0)=>jl(e,{start:t},{highlightCode:r}),Yl=(e,t)=>{let r=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:s,column:i}=r.groups;if(s&&i)return{line:Number(s),column:Number(i)};if(n=Number(n),n===e.length){let{line:o,column:a}=nn(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return nn(e,n,{oneBased:!0})},Vl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${Hl(n)})`);function Xl(e,t,r){typeof t=="string"&&(r=t,t=void 0);let n;try{return JSON.parse(e,t)}catch(o){n=o.message}let s;e?(s=Yl(e,n),n=Vl(n)):n+=" while parsing empty string";let i=new Pt(n);throw i.fileName=r,s&&(i.codeFrame=sn(e,s),i.rawCodeFrame=sn(e,s,!1)),i}function Kl(e){return e instanceof URL?pn(e):e}var ql=e=>ee.resolve(Kl(e)??".","package.json"),Jl=(e,t)=>{let r=typeof e=="string"?Xl(e):e;return t&&_t(r),r};function Zl({cwd:e,normalize:t=!0}={}){let r=dn.readFileSync(ql(e),"utf8");return Jl(r,t)}function ls(e){let t=xc("package.json",e);if(t)return{packageJson:Zl({...e,cwd:ee.dirname(t)}),path:t}}var Ql=(e,t)=>(e=e.replace(/((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,s)=>n+t+s.toLowerCase()));function Bt(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();let n=`$1${t}$2`,s=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?Ql(s,t):s.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Gt={exports:{}},ef=Object.prototype.toString,tf=function(e){var t;return ef.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},rf=function(e){return e==null?[]:Array.isArray(e)?e:[e]},nf=Object.prototype.toString,sf=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return lf(t)?"generatorfunction":"function";if(of(t))return"array";if(pf(t))return"buffer";if(hf(t))return"arguments";if(uf(t))return"date";if(af(t))return"error";if(cf(t))return"regexp";switch(fs(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(ff(t))return"generator";switch(r=nf.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function fs(e){return typeof e.constructor=="function"?e.constructor.name:null}function of(e){return Array.isArray?Array.isArray(e):e instanceof Array}function af(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function uf(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function cf(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function lf(e,t){return fs(e)==="GeneratorFunction"}function ff(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function hf(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function pf(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var df=tf,gf=rf,Nt=sf,on=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},an=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},je=e=>Array.isArray(e)?`[${e.map(je).join(", ")}]`:Nt(e)==="string"?JSON.stringify(e):e,mf=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${Nt(t)}-array`}return Nt(e)},bf=(e,t)=>{let r=e==="array"?"string-array":e;return kt.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},yf=["stopEarly","unknown","--"],hs=["string","boolean","number"],kt=hs.map(e=>`${e}-array`),un=[...hs,"array",...kt],ps=e=>{e=e||{};let t={};return yf.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{let n=e[r];if(r==="arguments"&&(r="_"),typeof n=="string"&&(n={type:n}),df(n)){let s=n,{type:i}=s;if(i){if(!un.includes(i))throw new TypeError(`Expected type of "${r}" to be one of ${je(un)}, got ${je(i)}`);if(kt.includes(i)){let[o]=i.split("-");on(t,"array",{key:r,[o]:!0})}else on(t,i,r)}if({}.hasOwnProperty.call(s,"default")){let{default:o}=s,a=mf(o),u=bf(i,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${je(a)}`);an(t,"default",r,o)}gf(s.alias).forEach(o=>{an(t,"alias",o,r)})}}),t};Gt.exports=ps;Gt.exports.default=ps;var vf=Gt.exports,ds=We(vf),Ut={exports:{}},gs=e=>typeof e=="object"&&e!==null,ms=Symbol("skip"),cn=e=>gs(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),It=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:s}=r;delete r.target;let i=o=>o.map(a=>cn(a)?It(a,t,r,n):a);if(Array.isArray(e))return i(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===ms)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&cn(g)&&(g=Array.isArray(g)?i(g):It(g,t,r,n)),s[l]=g)}return s};Ut.exports=(e,t,r)=>{if(!gs(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return It(e,t,r)};Ut.exports.mapObjectSkip=ms;var Ef=Ut.exports,ln=We(Ef),Cf=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),gt=new Be({maxSize:1e5}),fn=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),hn=(e,t={})=>{if(!fn(e))return e;let{separator:r="_",exclude:n,deep:s=!1}=t,i=o=>(a,u)=>{if(s&&fn(u)&&(u=ln(u,i())),!(n&&Cf(n,a))){let l=`${r}${a}`;if(gt.has(l))a=gt.get(l);else{let g=Bt(a,{separator:r});a.length<100&&gt.set(l,g),a=g}}return[a,u]};return ln(e,i())};function bs(e,t){return Array.isArray(e)?Object.keys(e).map(r=>hn(e[r],t)):hn(e,t)}import Lf from"node:process";import{dirname as Of}from"node:path";import{fileURLToPath as wf}from"node:url";var oe=e=>`--${Bt(e,{separator:"-"})}`,Re=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var Af=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Re(n,"")}`},aliasIsSet:{filter:([,n])=>Object.hasOwn(n,"alias"),message:n=>`The option \`alias\` has been renamed to \`shortFlag\`. The following flags need to be updated: ${Re(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Re(n)}`},choicesNotMatchFlagType:{filter:([,n])=>n.type&&Array.isArray(n.choices)&&n.choices.some(s=>typeof s!==n.type),message(n){return`Each value of the option \`choices\` must be of the same type as its flag. Invalid flags: ${n.map(i=>`(\`${oe(i)}\`, type: '${e.flags[i].type}')`).join(", ")}`}},defaultNotInChoices:{filter:([,n])=>n.default&&Array.isArray(n.choices)&&![n.default].flat().every(s=>n.choices.includes(s)),message:n=>`Each value of the option \`default\` must exist within the option \`choices\`. Invalid flags: ${Re(n)}`}}},r=[];for(let[n,s]of Object.entries(t)){let i=Object.entries(e[n]);for(let{filter:o,message:a}of Object.values(s)){let u=i.filter(g=>o(g)),l=u.map(([g])=>g);u.length>0&&r.push(a(l))}}if(r.length>0)throw new Error(r.join(`
23
+ `))},ys=(e,t)=>{if(typeof e!="string"&&(t=e,e=""),!t.importMeta?.url)throw new TypeError("The `importMeta` option is required. Its value must be `import.meta`.");let r=ls({cwd:Of(wf(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Lf.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,...t};return Af(n),n};var Sf=({flags:e,booleanDefault:t})=>{let r={};for(let[n,s]of Object.entries(e)){let i={...s};i.shortFlag&&(i.alias=i.shortFlag,delete i.shortFlag),t!==void 0&&i.type==="boolean"&&!Object.hasOwn(i,"default")&&(i.default=i.isMultiple?[t]:t),i.isMultiple&&(i.type=i.type?`${i.type}-array`:"array",i.default=i.default??[],delete i.isMultiple),Array.isArray(i.aliases)&&(i.alias&&i.aliases.push(i.alias),i.alias=i.aliases,delete i.aliases),r[n]=i}return r},vs=e=>{let t=Sf(e);return t.arguments=e.input,t=bs(t,{separator:"-",exclude:["stopEarly","--"]}),e.inferType&&delete t.arguments,e.allowUnknownFlags||(e.autoHelp&&!t.help&&(t.help={type:"boolean"}),e.autoVersion&&!t.version&&(t.version={type:"boolean"})),t=ds(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import Es from"node:process";var $f=(e,t)=>{for(let[r,n]of Object.entries(t.flags))if(r!=="--"&&!n.isMultiple&&Array.isArray(e[r]))throw new Error(`The flag --${r} can only be set once.`)},Rf=(e,t,r)=>{let{choices:n,isRequired:s}=t;if(!n)return;let i=`Value must be one of: [\`${n.join("`, `")}\`]`;if(!r)return s?`Flag \`${oe(e)}\` has no value. ${i}`:void 0;if(Array.isArray(r)){let o=r.filter(a=>!n.includes(a));if(o.length>0)return`Unknown ${o.length>1?"values":"value"} for flag \`${oe(e)}\`: \`${o.join("`, `")}\`. ${i}`}else if(!n.includes(r))return`Unknown value for flag \`${oe(e)}\`: \`${r}\`. ${i}`},Pf=(e,t)=>{let r=[];for(let[n,s]of Object.entries(e)){let i=t[n],o=Rf(n,s,i);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
24
+ `)}`)},Cs=(e,t)=>{$f(e,t),Pf(t.flags,e)},Nf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
25
+ `))},Ls=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(Nf(t),Es.exit(2))},If=(e,t,r,n)=>{let s=t[e],i=!0;if(typeof s.isRequired=="function"&&(i=s.isRequired(r,n),typeof i!="boolean"))throw new TypeError(`Return value for isRequired callback should be of type boolean, but ${typeof i} was returned.`);return(r[e]===void 0||s.isMultiple&&r[e].length===0)&&i},xf=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},Os=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let s of Object.keys(e))e[s].isRequired&&If(s,e,t,r)&&n.push({key:s,...e[s]});n.length>0&&(xf(n),Es.exit(2))};var _f=(e,t)=>{let{pkg:r}=e,n=be(e.argv,t),s="";e.help&&(s=On((e.help||"").replace(/\t+\n*$/,"")),s.includes(`
26
+ `)&&(s=wn(s,2)),s=`
27
+ ${s}`),_t(r);let{description:i}=e;!i&&i!==!1&&({description:i}=r),i&&=s?`
28
+ ${i}
32
29
  `:`
33
- ${s}`,i=`${s||""}${i}
34
- `;let o=d=>{console.log(i),$r.exit(typeof d=="number"?d:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),$r.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let l=n._;delete n._,e.allowUnknownFlags||us(l);let u=Jn(n,{exclude:["--",/^\w$/]}),p={...u};cs(u,e);for(let d of Object.values(e.flags)){if(Array.isArray(d.aliases))for(let v of d.aliases)delete u[v];delete u[d.shortFlag]}return fs(e.flags,u,l),{input:l,flags:u,unnormalizedFlags:p,pkg:r,help:i,showHelp:o,showVersion:a}},hs=(e,t={})=>{let r=os(e,t);r.hardRejection&&ei();let n=as(r),i=qp(r,n);return $r.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import ht from"node:path";import{Transform as id}from"node:stream";import{PassThrough as sd}from"node:stream";import{fileURLToPath as od}from"node:url";import td from"node:process";import Zp from"node:process";import Qp from"node:fs/promises";import{fileURLToPath as ed}from"node:url";import Oe from"node:path";var ps=e=>e instanceof URL?ed(e):e;async function ds(e,{cwd:t=Zp.cwd(),type:r="file",stopAt:n}={}){let i=Oe.resolve(ps(t)??""),{root:s}=Oe.parse(i);for(n=Oe.resolve(i,ps(n??s));i&&i!==n&&i!==s;){let o=Oe.isAbsolute(e)?e:Oe.join(i,e);try{let a=await Qp.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=Oe.dirname(i)}}async function Lr({cwd:e=td.cwd()}={}){return ds("package.json",{cwd:e})}function ad(e,t){return new id({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?Wr[t](e):""} ${a}`).join(`
30
+ ${i}`,s=`${i||""}${s}
31
+ `;let o=m=>{console.log(s),Wt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),Wt.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let u=n._;delete n._,e.allowUnknownFlags||Ls(u);let l=Ln(n,{exclude:["--",/^\w$/]}),g={...l};Cs(l,e);for(let m of Object.values(e.flags)){if(Array.isArray(m.aliases))for(let E of m.aliases)delete l[E];delete l[m.shortFlag]}return Os(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:s,showHelp:o,showVersion:a}},ws=(e,t={})=>{let r=ys(e,t),n=vs(r),s=_f(r,n);return Wt.title=s.pkg.bin?Object.keys(s.pkg.bin).at(0):s.pkg.name,s};import Ye from"node:path";import{Transform as Gf}from"node:stream";import{PassThrough as kf}from"node:stream";import{fileURLToPath as Uf}from"node:url";import Mf from"node:process";import Tf from"node:process";import Ff from"node:fs/promises";import{fileURLToPath as Df}from"node:url";import ye from"node:path";var As=e=>e instanceof URL?Df(e):e;async function Ss(e,{cwd:t=Tf.cwd(),type:r="file",stopAt:n}={}){let s=ye.resolve(As(t)??""),{root:i}=ye.parse(s);for(n=ye.resolve(s,As(n??i));s&&s!==n&&s!==i;){let o=ye.isAbsolute(e)?e:ye.join(s,e);try{let a=await Ff.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}s=ye.dirname(s)}}async function zt({cwd:e=Mf.cwd()}={}){return Ss("package.json",{cwd:e})}function Wf(e,t){return new Gf({transform(r,n,s){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?hr[t](e):""} ${a}`).join(`
35
32
  `)+`
36
- `;this.push(o),i()}})}function ld(e,t){let r=`
33
+ `;this.push(o),s()}})}function zf(e,t){let r=`
37
34
  Usage
38
35
  $ ${e} [<file|glob> ...]
39
36
  `;if(r+=`
@@ -44,22 +41,22 @@ ${s}`,i=`${s||""}${i}
44
41
  --print-config, -p <path> Print the effective configuration at a certain path.`;break}case"help":break;case"version":break;default:console.error(`Unknown command name in generateHelpText: ${n}`)}return r+=`
45
42
  --help, -h Print this help info.`,r+=`
46
43
  --version, -v Print the package version.
47
- `,r}function cd(e){return Object.keys(e).reduce((t,r)=>{let n={};switch(r){case"init":{n={shortFlag:"i",type:"boolean"};break}case"check":{n={aliases:["lint",""],shortFlag:"l",type:"boolean"};break}case"fix":{n={shortFlag:"f",type:"boolean"};break}case"printConfig":{n={shortFlag:"p",type:"boolean"};break}case"help":{n={type:"boolean"};break}case"version":{n={type:"boolean"};break}default:console.error(`Unknown command name: ${r}`)}return t[r]=n,t},{})}async function ud(e){let t=[];return new Promise((r,n)=>{e.on("data",i=>t.push(Buffer.from(i))),e.on("error",i=>{n(i)}),e.on("end",()=>{r(Buffer.concat(t).toString("utf8"))})})}async function ms(e,t,r=[]){let n=new sd,i=await bs(n,t,r);if(n.end(),i!==0)return e.write(`Error printing config.
48
- `),i;try{let s=await ud(n);return e.write(mt(JSON.parse(s))),e.write(`
49
- `),0}catch(s){return e.write(`Error: ${s}
50
- `),1}}async function bs(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n;try{let i=nd(t.command,[...t.options??[],...r],{env:{FORCE_COLOR:"true"},stdin:"inherit"});i.stdout?.pipe(e,{end:!1}),i.stderr?.pipe(e,{end:!1}),await i,n=i.exitCode??1}catch(i){n=typeof i.exitCode=="number"?i.exitCode:1}return n}return e.write(`Error: Invalid optionCommand: ${JSON.stringify(t,void 0,2)}`),1}function gs(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
51
- `),process.exit(1))}async function ys(e,t,r,n){let i=hs({allowUnknownFlags:!1,booleanDefault:void 0,flags:cd(n),help:ld(e,n),importMeta:import.meta}),{flags:s,input:o}=i,a=Object.keys(n).reduce((p,d)=>(s[d]&&(p[d]=n[d]),p),{}),l=ad(t,r);l.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?l.write(`This command requires options. Run ${e} --help for valid commands.
52
- `):a.check=n.check);let u=0;for(let[p,d]of Object.entries(a))if(typeof d.command=="function"){gs(o,d,l);let v=o.length===0?d.defaultArguments??[]:o,w=d.options??[];u+=await d.command(l,v,w)}else if(typeof d.command=="string")gs(o,d,l),u+=await bs(l,d,o.length===0?d.defaultArguments:o);else switch(p){case"init":{let v=await Lr();if(v===void 0){l.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),u+=1;break}let w=await Lr({cwd:od(import.meta.url)});if(w===void 0){l.write(`Error: The script being called was not in a package, weird.
53
- `),u+=1;break}let y=ht.join(ht.dirname(w),"init/"),f=ht.dirname(v);l.write(`Adding initial configuration files from:
54
- "${y}" \u2192 "${f}"
55
- `);try{await Ae.copy(y,f,{filter(c,b){let S=Ae.statSync(c).isFile(),$=Ae.existsSync(b);if(S){if($&&b.includes(".vscode/")&&ht.extname(b)===".json"){l.write(`Merging:
44
+ `,r}function Hf(e){return Object.keys(e).reduce((t,r)=>{let n={};switch(r){case"init":{n={shortFlag:"i",type:"boolean"};break}case"check":{n={aliases:["lint",""],shortFlag:"l",type:"boolean"};break}case"fix":{n={shortFlag:"f",type:"boolean"};break}case"printConfig":{n={shortFlag:"p",type:"boolean"};break}case"help":{n={type:"boolean"};break}case"version":{n={type:"boolean"};break}default:console.error(`Unknown command name: ${r}`)}return t[r]=n,t},{})}async function Yf(e){let t=[];return new Promise((r,n)=>{e.on("data",s=>t.push(Buffer.from(s))),e.on("error",s=>{n(s)}),e.on("end",()=>{r(Buffer.concat(t).toString("utf8"))})})}async function Rs(e,t,r=[]){let n=new kf,s=await Ps(n,t,r);if(n.end(),s!==0)return e.write(`Error printing config.
45
+ `),s;try{let i=await Yf(n);return e.write(Je(JSON.parse(i))),e.write(`
46
+ `),0}catch(i){return e.write(`Error: ${i}
47
+ `),1}}async function Ps(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n;try{let s=Bf(t.command,[...t.options??[],...r],{env:{FORCE_COLOR:"true"},stdin:"inherit"});s.stdout?.pipe(e,{end:!1}),s.stderr?.pipe(e,{end:!1}),await s,n=s.exitCode??1}catch(s){n=typeof s.exitCode=="number"?s.exitCode:1}return n}return e.write(`Error: Invalid optionCommand: ${JSON.stringify(t,void 0,2)}`),1}function $s(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
48
+ `),process.exit(1))}async function Ns(e,t,r,n){let s=ws({allowUnknownFlags:!1,booleanDefault:void 0,flags:Hf(n),help:zf(e,n),importMeta:import.meta}),{flags:i,input:o}=s,a=Object.keys(n).reduce((g,m)=>(i[m]&&(g[m]=n[m]),g),{}),u=Wf(t,r);u.pipe(process.stdout),Object.keys(a).length===0&&(n.check===void 0?u.write(`This command requires options. Run ${e} --help for valid commands.
49
+ `):a.check=n.check);let l=0;for(let[g,m]of Object.entries(a))if(typeof m.command=="function"){$s(o,m,u);let E=o.length===0?m.defaultArguments??[]:o,L=m.options??[];l+=await m.command(u,E,L)}else if(typeof m.command=="string")$s(o,m,u),l+=await Ps(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await zt();if(E===void 0){u.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),l+=1;break}let L=await zt({cwd:Uf(import.meta.url)});if(L===void 0){u.write(`Error: The script being called was not in a package, weird.
50
+ `),l+=1;break}let v=Ye.join(Ye.dirname(L),"init/"),h=Ye.dirname(E);u.write(`Adding initial configuration files from:
51
+ "${v}" \u2192 "${h}"
52
+ `);try{await ve.copy(v,h,{filter(c,b){let A=ve.statSync(c).isFile(),C=ve.existsSync(b);if(A){if(C&&b.includes(".vscode/")&&Ye.extname(b)===".json"){u.write(`Merging:
56
53
  "${c}" \u2192 "${b}"
57
- `);let x=Ae.readJSONSync(c),_=Ae.readJSONSync(b),D=bt(_,x);return Ae.writeJSONSync(b,D,{spaces:2}),!1}return $?(l.write(`Overwriting:
54
+ `);let N=ve.readJSONSync(c),I=ve.readJSONSync(b),j=Ze(I,N);return ve.writeJSONSync(b,j,{spaces:2}),!1}return C?(u.write(`Overwriting:
58
55
  "${c}" \u2192 "${b}"
59
- `),!0):(l.write(`Copying:
56
+ `),!0):(u.write(`Copying:
60
57
  "${c}" \u2192 "${b}"
61
- `),!0)}return!0},overwrite:!0})}catch{}u+=0;break}case"check":{console.error("No default implementation for check"),u+=1;break}case"fix":{console.error("No default implementation for fix"),u+=1;break}case"printConfig":{let w=(o.length===0?d.defaultArguments??["."]:o)?.at(0),y=e.split("-").at(0);if(y===void 0){l.write(`Error: Could not find or parse config file for ${e}.
62
- `),u+=1;break}let f=await rd(y).search(w);if(!f?.config){l.write(`Error: Could not find or parse config file for ${y}.
63
- `),u+=1;break}l.write(`${t} config path: "${f?.filepath}"
64
- `),l.write(mt(f.config)),l.write(`
65
- `);break}default:{console.error(`Unknown command name: ${p}`),u+=1;break}}process.exit(u>0?1:0)}await ys("eslint-config","[ESLint]","magenta",{check:{command:"eslint",defaultArguments:["."]},fix:{command:"eslint",defaultArguments:["."],options:["--fix"]},init:{},printConfig:{async command(e,t){return ms(e,{command:"eslint",options:["--print-config"]},t)}}});
58
+ `),!0)}return!0},overwrite:!0})}catch{}l+=0;break}case"check":{console.error("No default implementation for check"),l+=1;break}case"fix":{console.error("No default implementation for fix"),l+=1;break}case"printConfig":{let L=(o.length===0?m.defaultArguments??["."]:o)?.at(0),v=e.split("-").at(0);if(v===void 0){u.write(`Error: Could not find or parse config file for ${e}.
59
+ `),l+=1;break}let h=await jf(v).search(L);if(!h?.config){u.write(`Error: Could not find or parse config file for ${v}.
60
+ `),l+=1;break}u.write(`${t} config path: "${h?.filepath}"
61
+ `),u.write(Je(h.config)),u.write(`
62
+ `);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}await Ns("eslint-config","[ESLint]","magenta",{check:{command:"eslint",defaultArguments:["."]},fix:{command:"eslint",defaultArguments:["."],options:["--fix"]},init:{},printConfig:{async command(e,t){return Rs(e,{command:"eslint",options:["--print-config"]},t)}}});