@kitschpatrol/shared-config 4.7.2 → 4.7.4

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.
Files changed (3) hide show
  1. package/bin/cli.js +28 -28
  2. package/package.json +9 -9
  3. package/readme.md +1 -1
package/bin/cli.js CHANGED
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
- var Wi=Object.create;var Zt=Object.defineProperty;var zi=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var Yi=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty;var qe=(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 Xi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ki=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hi(t))!Vi.call(e,i)&&i!==r&&Zt(e,i,{get:()=>t[i],enumerable:!(n=zi(t,i))||n.enumerable});return e};var qi=(e,t,r)=>(r=e!=null?Wi(Yi(e)):{},Ki(t||!e||!e.__esModule?Zt(r,"default",{value:e,enumerable:!0}):r,e));var rr=Xi((qf,tr)=>{"use strict";var Ji=function(t){return Zi(t)&&!Qi(t)};function Zi(e){return!!e&&typeof e=="object"}function Qi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rs(e)}var es=typeof Symbol=="function"&&Symbol.for,ts=es?Symbol.for("react.element"):60103;function rs(e){return e.$$typeof===ts}function ns(e){return Array.isArray(e)?[]:{}}function Le(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ue(ns(e),e,t):e}function is(e,t,r){return e.concat(t).map(function(n){return Le(n,r)})}function ss(e,t){if(!t.customMerge)return ue;var r=t.customMerge(e);return typeof r=="function"?r:ue}function os(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qt(e){return Object.keys(e).concat(os(e))}function er(e,t){try{return t in e}catch{return!1}}function as(e,t){return er(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function us(e,t,r){var n={};return r.isMergeableObject(e)&&Qt(e).forEach(function(i){n[i]=Le(e[i],r)}),Qt(t).forEach(function(i){as(e,i)||(er(e,i)&&r.isMergeableObject(t[i])?n[i]=ss(i,r)(e[i],t[i],r):n[i]=Le(t[i],r))}),n}function ue(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||is,r.isMergeableObject=r.isMergeableObject||Ji,r.cloneUnlessOtherwiseSpecified=Le;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):us(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,i){return ue(n,i,r)},{})};var cs=ue;tr.exports=cs});var nr=qi(rr(),1);import fs from"@pinojs/json-colorizer";var ls=/("(?:[^\\"]|\\.)*")|[:,]/g;function Je(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,u){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let l=JSON.stringify(o,i);if(l===void 0)return l;let g=n-a.length-u;if(l.length<=g){let m=l.replace(ls,(E,L)=>L||`${E} `);if(m.length<=g)return m}if(i!=null&&(o=JSON.parse(l),i=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(s(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)}: `,x=s(o[A],m,C.length+(L===b-1?0:1));x!==void 0&&E.push(C+x)}}if(E.length>0)return[v,r+E.join(`,
3
- ${m}`),h].join(`
4
- ${a}`)}return l}(e,"",0)}function ir(e){return fs(Je(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var hs=(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]=Ze(e[i],s,r):e.includes(s)||n.push(s);return n};function Ze(e,t,r={arrayMerge:hs}){return(0,nr.default)(e,t,r)}var sr=(e=0)=>t=>`\x1B[${t+e}m`,or=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,ar=(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]}},t0=Object.keys(T.modifier),ps=Object.keys(T.color),ds=Object.keys(T.bgColor),r0=[...ps,...ds];function gs(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,i]of Object.entries(r))T[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=T[n],e.set(i[0],i[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=sr(),T.color.ansi256=or(),T.color.ansi16m=ar(),T.bgColor.ansi=sr(10),T.bgColor.ansi256=or(10),T.bgColor.ansi16m=ar(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(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&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,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)=>T.ansi256ToAnsi(T.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>T.ansi256ToAnsi(T.hexToAnsi256(t)),enumerable:!1}}),T}var ms=gs(),H=ms;import Qe from"node:process";import bs from"node:os";import ur 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),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}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 ys(){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 vs(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Es(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=ys();n!==void 0&&(Ie=n);let i=r?Ie:n;if(i===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&&i===void 0)return 0;let s=i||0;if(F.TERM==="dumb")return s;if(Qe.platform==="win32"){let o=bs.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:s;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:s}function cr(e,t={}){let r=Es(e,{streamIsTTY:e&&e.isTTY,...t});return vs(r)}var Cs={stdout:cr({isTTY:ur.isatty(1)}),stderr:cr({isTTY:ur.isatty(2)})},lr=Cs;function fr(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 hr(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 Wi=Object.create;var Zt=Object.defineProperty;var zi=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var Yi=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty;var qe=(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 Xi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ki=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hi(t))!Vi.call(e,i)&&i!==r&&Zt(e,i,{get:()=>t[i],enumerable:!(n=zi(t,i))||n.enumerable});return e};var qi=(e,t,r)=>(r=e!=null?Wi(Yi(e)):{},Ki(t||!e||!e.__esModule?Zt(r,"default",{value:e,enumerable:!0}):r,e));var Si=Xi((q0,Ai)=>{"use strict";var Of=function(t){return wf(t)&&!Af(t)};function wf(e){return!!e&&typeof e=="object"}function Af(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Rf(e)}var Sf=typeof Symbol=="function"&&Symbol.for,$f=Sf?Symbol.for("react.element"):60103;function Rf(e){return e.$$typeof===$f}function Pf(e){return Array.isArray(e)?[]:{}}function Pe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ye(Pf(e),e,t):e}function xf(e,t,r){return e.concat(t).map(function(n){return Pe(n,r)})}function Nf(e,t){if(!t.customMerge)return ye;var r=t.customMerge(e);return typeof r=="function"?r:ye}function If(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Oi(e){return Object.keys(e).concat(If(e))}function wi(e,t){try{return t in e}catch{return!1}}function _f(e,t){return wi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Tf(e,t,r){var n={};return r.isMergeableObject(e)&&Oi(e).forEach(function(i){n[i]=Pe(e[i],r)}),Oi(t).forEach(function(i){_f(e,i)||(wi(e,i)&&r.isMergeableObject(t[i])?n[i]=Nf(i,r)(e[i],t[i],r):n[i]=Pe(t[i],r))}),n}function ye(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||xf,r.isMergeableObject=r.isMergeableObject||Of,r.cloneUnlessOtherwiseSpecified=Pe;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Tf(e,t,r):Pe(t,r)}ye.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ye(n,i,r)},{})};var Ff=ye;Ai.exports=Ff});var Qt=(e=0)=>t=>`\x1B[${t+e}m`,er=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,tr=(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),Ji=Object.keys(T.color),Zi=Object.keys(T.bgColor),Jf=[...Ji,...Zi];function Qi(){let e=new Map;for(let[t,r]of Object.entries(T)){for(let[n,i]of Object.entries(r))T[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=T[n],e.set(i[0],i[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=Qt(),T.color.ansi256=er(),T.color.ansi16m=tr(),T.bgColor.ansi=Qt(10),T.bgColor.ansi256=er(10),T.bgColor.ansi16m=tr(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(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&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,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)=>T.ansi256ToAnsi(T.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>T.ansi256ToAnsi(T.hexToAnsi256(t)),enumerable:!1}}),T}var es=Qi(),H=es;import Je from"node:process";import ts from"node:os";import rr from"node:tty";function z(e,t=globalThis.Deno?globalThis.Deno.args:Je.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:F}=Je,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 rs(){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 ns(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function is(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=rs();n!==void 0&&(Ie=n);let i=r?Ie:n;if(i===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&&i===void 0)return 0;let s=i||0;if(F.TERM==="dumb")return s;if(Je.platform==="win32"){let o=ts.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:s;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:s}function nr(e,t={}){let r=is(e,{streamIsTTY:e&&e.isTTY,...t});return ns(r)}var ss={stdout:nr({isTTY:rr.isatty(1)}),stderr:nr({isTTY:rr.isatty(2)})},ir=ss;function sr(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 or(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
5
3
  `:`
6
4
  `)+r,i=n+1,n=e.indexOf(`
7
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:pr,stderr:dr}=lr,et=Symbol("GENERATOR"),ce=Symbol("STYLER"),Oe=Symbol("IS_EMPTY"),gr=["ansi","ansi","ansi256","ansi16m"],le=Object.create(null),Ls=(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=pr?pr.level:0;e.level=t.level===void 0?r:t.level};var Os=e=>{let t=(...r)=>r.join(" ");return Ls(t,e),Object.setPrototypeOf(t,we.prototype),t};function we(e){return Os(e)}Object.setPrototypeOf(we.prototype,Function.prototype);for(let[e,t]of Object.entries(H))le[e]={get(){let r=_e(this,rt(t.open,t.close,this[ce]),this[Oe]);return Object.defineProperty(this,e,{value:r}),r}};le.visible={get(){let e=_e(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),ws=["rgb","hex","ansi256"];for(let e of ws){le[e]={get(){let{level:r}=this;return function(...n){let i=rt(tt(e,gr[r],"color",...n),H.color.close,this[ce]);return _e(this,i,this[Oe])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);le[t]={get(){let{level:r}=this;return function(...n){let i=rt(tt(e,gr[r],"bgColor",...n),H.bgColor.close,this[ce]);return _e(this,i,this[Oe])}}}}var As=Object.defineProperties(()=>{},{...le,level:{enumerable:!0,get(){return this[et].level},set(e){this[et].level=e}}}),rt=(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}},_e=(e,t,r)=>{let n=(...i)=>Ss(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,As),n[et]=e,n[ce]=t,n[Oe]=r,n},Ss=(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:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=fr(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
8
- `);return s!==-1&&(t=hr(t,i,n,s)),n+t+i};Object.defineProperties(we.prototype,le);var $s=we(),h0=we({level:dr?dr.level:0});var Ae=$s;import{cosmiconfig as Gf}from"cosmiconfig";import{execa as Bf}from"execa";import ve from"fs-extra";import zt from"node:process";import Rs,{format as Ps}from"util";import{normalize as xs,resolve as Ns}from"path";import{readFileSync as Is}from"fs";import ee from"node:path";import _s from"node:process";import{fileURLToPath as mn}from"node:url";import bn from"node:fs";import yn from"os";import vn from"url";function Se(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 En(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 Cn(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 Ts(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 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),i=Ts(t),s=typeof t=="string",o=Fs(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)})),Di(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;Ui();let x=[],N=Object.assign(Object.create(null),{_:[]}),j={};for(let f=0;f<i.length;f++){let d=i[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],i,w[2]):P(w[1],c.nargs)!==!1?f=Z(f,w[1],i,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,i):P(p,c.nargs)!==!1?f=Z(f,p,i):(R=i[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=i[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,i,M):P(p,c.nargs)!==!1?f=Z(f,p,i,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,i):P(p,c.nargs)!==!1?f=Z(f,p,i):(R=i[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==="--"){x=i.slice(f+1);break}else if(a["halt-at-non-option"]){x=i.slice(f);break}else W(d)}Kt(N,!0),Kt(N,!1),Ii(N),_i(),qt(N,c.aliases,u,!0),Ti(N),a["set-placeholder-key"]&&Fi(N),Object.keys(c.counts).forEach(function(f){Ee(N,f.split("."))||_(f,0)}),m&&x.length&&(N[E]=[]),x.forEach(function(f){N[E].push(f)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(N).filter(f=>f!=="--"&&f.includes("-")).forEach(f=>{delete N[f]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(f=>o[f])).forEach(f=>{a["camel-case-expansion"]&&f.includes("-")&&delete N[f.split(".").map(d=>Se(d)).join(".")],delete N[f]});function W(f){let d=xe("_",f);(typeof d=="string"||typeof d=="number")&&N._.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(Xe(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(Xe(d,S,s))}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=s){if(/-/.test(f)&&a["camel-case-expansion"]){let S=f.split(".").map(function(w){return Se(w)}).join(".");Xt(f,S)}let y=Xe(f,d,O),p=f.split(".");Ce(N,p,y),c.aliases[f]&&c.aliases[f].forEach(function(S){let w=S.split(".");Ce(N,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(N,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 Xt(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Xt(d,f)}function Xe(f,d,O){O&&(d=Ds(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 xe(f,p)}):xe(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 xe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(Cn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function Ii(f){let d=Object.create(null);qt(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);Ke(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Ke(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"]?Ke(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function _i(){typeof l<"u"&&l.forEach(function(f){Ke(f)})}function Kt(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)),Se(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function Ti(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=xe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function Fi(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function qt(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=mr(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=mr(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 Di(...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=Se(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=En(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 Jt(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 Mi(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Jt(p[1])})}function ji(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),!Jt(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"]&&Gi(f)}function Gi(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||ji(f)?!1:!Mi(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:Bi(ki(f))}function Bi(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function ki(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 Ui(){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,N),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},L)}}};function Fs(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,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function nt(e){return e!==void 0?e+1:1}function mr(e){return e==="__proto__"?"___proto___":e}function Ds(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var it,st,ot,br=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,yr=(st=(it=process==null?void 0:process.versions)===null||it===void 0?void 0:it.node)!==null&&st!==void 0?st:(ot=process==null?void 0:process.version)===null||ot===void 0?void 0:ot.slice(1);if(yr&&Number(yr.match(/^([^.]+)/)[1])<br)throw Error(`yargs parser supports a minimum Node.js version of ${br}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Ms=process?process.env:{},Ln=new mt({cwd:process.cwd,env:()=>Ms,format:Ps,normalize:xs,resolve:Ns,require:e=>{if(typeof qe<"u")return qe(e);if(e.match(/\.json$/))return JSON.parse(Is(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),be=function(t,r){return Ln.parse(t.slice(),r).argv};be.detailed=function(e,t){return Ln.parse(e.slice(),t)};be.camelCase=Se;be.decamelize=En;be.looksLikeNumber=Cn;var On=e=>typeof e=="object"&&e!==null,vr=e=>On(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),js=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:i}=r;delete r.target;let s=o=>o.map(a=>vr(a)?bt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===js)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&vr(g)&&(g=Array.isArray(g)?s(g):bt(g,t,r,n)),i[l]=g)}return i};function Er(e,t,r){if(!On(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return bt(e,t,r)}var Gs=/[\p{Lu}]/u,Bs=/[\p{Ll}]/u,Cr=/^[\p{Lu}](?![\p{Lu}])/gu,wn=/([\p{Alpha}\p{N}_]|$)/u,It=/[_.\- ]+/,ks=new RegExp("^"+It.source),Lr=new RegExp(It.source+wn.source,"gu"),Or=new RegExp("\\d+"+wn.source,"gu"),Us=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,i&&Gs.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&Bs.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=s,s=!1,i=!0):(i=t(l)===l&&r(l)!==l,o=s,s=r(l)===l&&t(l)!==l)}return e},Ws=(e,t)=>(Cr.lastIndex=0,e.replaceAll(Cr,r=>t(r))),zs=(e,t)=>(Lr.lastIndex=0,Or.lastIndex=0,e.replaceAll(Or,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(Lr,(r,n)=>t(n)));function Hs(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?It.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=Us(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(ks,""),e=t.preserveConsecutiveUppercase?Ws(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),zs(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 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()])}},Ys=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),at=new Be({maxSize:1e5}),wr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Ar=(e,t={})=>{if(!wr(e))return e;let{exclude:r,pascalCase:n=!1,stopPaths:i,deep:s=!1,preserveConsecutiveUppercase:o=!1}=t,a=new Set(i),u=l=>(g,m)=>{if(s&&wr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=Er(m,u(E)))}if(!(r&&Ys(r,g))){let E=n?`${g}_`:g;if(at.has(E))g=at.get(E);else{let L=Hs(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&at.set(E,L),g=L}}return[g,m]};return Er(e,u(void 0))};function An(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Ar(e[r],t)):Ar(e,t)}function Sn(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
5
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:ar,stderr:ur}=ir,Ze=Symbol("GENERATOR"),ue=Symbol("STYLER"),Le=Symbol("IS_EMPTY"),cr=["ansi","ansi","ansi256","ansi16m"],ce=Object.create(null),os=(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=ar?ar.level:0;e.level=t.level===void 0?r:t.level};var as=e=>{let t=(...r)=>r.join(" ");return os(t,e),Object.setPrototypeOf(t,Oe.prototype),t};function Oe(e){return as(e)}Object.setPrototypeOf(Oe.prototype,Function.prototype);for(let[e,t]of Object.entries(H))ce[e]={get(){let r=_e(this,et(t.open,t.close,this[ue]),this[Le]);return Object.defineProperty(this,e,{value:r}),r}};ce.visible={get(){let e=_e(this,this[ue],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Qe=(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"?Qe("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),us=["rgb","hex","ansi256"];for(let e of us){ce[e]={get(){let{level:r}=this;return function(...n){let i=et(Qe(e,cr[r],"color",...n),H.color.close,this[ue]);return _e(this,i,this[Le])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ce[t]={get(){let{level:r}=this;return function(...n){let i=et(Qe(e,cr[r],"bgColor",...n),H.bgColor.close,this[ue]);return _e(this,i,this[Le])}}}}var cs=Object.defineProperties(()=>{},{...ce,level:{enumerable:!0,get(){return this[Ze].level},set(e){this[Ze].level=e}}}),et=(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}},_e=(e,t,r)=>{let n=(...i)=>ls(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,cs),n[Ze]=e,n[ue]=t,n[Le]=r,n},ls=(e,t)=>{if(e.level<=0||!t)return e[Le]?"":t;let r=e[ue];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=sr(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
6
+ `);return s!==-1&&(t=or(t,i,n,s)),n+t+i};Object.defineProperties(Oe.prototype,ce);var fs=Oe(),a0=Oe({level:ur?ur.level:0});var we=fs;import{cosmiconfig as Gf}from"cosmiconfig";import{execa as Bf}from"execa";import ve from"fs-extra";import Ut from"node:process";import hs,{format as ps}from"util";import{normalize as ds,resolve as gs}from"path";import{readFileSync as ms}from"fs";import ee from"node:path";import bs from"node:process";import{fileURLToPath as ln}from"node:url";import fn from"node:fs";import hn from"os";import pn 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,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 dn(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 gn(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 ys(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 Y;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Y||(Y={}));var J,dt=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),i=ys(t),s=typeof t=="string",o=vs(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)})),Di(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;Ui();let x=[],N=Object.assign(Object.create(null),{_:[]}),j={};for(let f=0;f<i.length;f++){let d=i[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],i,w[2]):P(w[1],c.nargs)!==!1?f=Z(f,w[1],i,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,i):P(p,c.nargs)!==!1?f=Z(f,p,i):(R=i[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=i[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,i,M):P(p,c.nargs)!==!1?f=Z(f,p,i,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,i):P(p,c.nargs)!==!1?f=Z(f,p,i):(R=i[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==="--"){x=i.slice(f+1);break}else if(a["halt-at-non-option"]){x=i.slice(f);break}else W(d)}Kt(N,!0),Kt(N,!1),Ii(N),_i(),qt(N,c.aliases,u,!0),Ti(N),a["set-placeholder-key"]&&Fi(N),Object.keys(c.counts).forEach(function(f){Ee(N,f.split("."))||_(f,0)}),m&&x.length&&(N[E]=[]),x.forEach(function(f){N[E].push(f)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(N).filter(f=>f!=="--"&&f.includes("-")).forEach(f=>{delete N[f]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(f=>o[f])).forEach(f=>{a["camel-case-expansion"]&&f.includes("-")&&delete N[f.split(".").map(d=>Ae(d)).join(".")],delete N[f]});function W(f){let d=xe("_",f);(typeof d=="string"||typeof d=="number")&&N._.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(Xe(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(Xe(d,S,s))}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=s){if(/-/.test(f)&&a["camel-case-expansion"]){let S=f.split(".").map(function(w){return Ae(w)}).join(".");Xt(f,S)}let y=Xe(f,d,O),p=f.split(".");Ce(N,p,y),c.aliases[f]&&c.aliases[f].forEach(function(S){let w=S.split(".");Ce(N,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(N,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 Xt(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Xt(d,f)}function Xe(f,d,O){O&&(d=Es(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 xe(f,p)}):xe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=tt()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function xe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(gn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function Ii(f){let d=Object.create(null);qt(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);Ke(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Ke(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"]?Ke(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function _i(){typeof l<"u"&&l.forEach(function(f){Ke(f)})}function Kt(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 Ti(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=xe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function Fi(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function qt(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=lr(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=lr(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===tt()?y[p]=tt(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 Di(...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=dn(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 Jt(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 Mi(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Jt(p[1])})}function ji(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),!Jt(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"]&&Gi(f)}function Gi(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||ji(f)?!1:!Mi(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:Bi(ki(f))}function Bi(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function ki(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 Ui(){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,N),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},L)}}};function vs(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,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function tt(e){return e!==void 0?e+1:1}function lr(e){return e==="__proto__"?"___proto___":e}function Es(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var rt,nt,it,fr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,hr=(nt=(rt=process==null?void 0:process.versions)===null||rt===void 0?void 0:rt.node)!==null&&nt!==void 0?nt:(it=process==null?void 0:process.version)===null||it===void 0?void 0:it.slice(1);if(hr&&Number(hr.match(/^([^.]+)/)[1])<fr)throw Error(`yargs parser supports a minimum Node.js version of ${fr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Cs=process?process.env:{},mn=new dt({cwd:process.cwd,env:()=>Cs,format:ps,normalize:ds,resolve:gs,require:e=>{if(typeof qe<"u")return qe(e);if(e.match(/\.json$/))return JSON.parse(ms(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),me=function(t,r){return mn.parse(t.slice(),r).argv};me.detailed=function(e,t){return mn.parse(e.slice(),t)};me.camelCase=Ae;me.decamelize=dn;me.looksLikeNumber=gn;var bn=e=>typeof e=="object"&&e!==null,pr=e=>bn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Ls=Symbol("mapObjectSkip"),gt=(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=>pr(a)?gt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===Ls)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&pr(g)&&(g=Array.isArray(g)?s(g):gt(g,t,r,n)),i[l]=g)}return i};function dr(e,t,r){if(!bn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return gt(e,t,r)}var Os=/[\p{Lu}]/u,ws=/[\p{Ll}]/u,gr=/^[\p{Lu}](?![\p{Lu}])/gu,yn=/([\p{Alpha}\p{N}_]|$)/u,xt=/[_.\- ]+/,As=new RegExp("^"+xt.source),mr=new RegExp(xt.source+yn.source,"gu"),br=new RegExp("\\d+"+yn.source,"gu"),Ss=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,i&&Os.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&ws.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=s,s=!1,i=!0):(i=t(l)===l&&r(l)!==l,o=s,s=r(l)===l&&t(l)!==l)}return e},$s=(e,t)=>(gr.lastIndex=0,e.replaceAll(gr,r=>t(r))),Rs=(e,t)=>(mr.lastIndex=0,br.lastIndex=0,e.replaceAll(br,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(mr,(r,n)=>t(n)));function Ps(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?xt.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=Ss(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(As,""),e=t.preserveConsecutiveUppercase?$s(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Rs(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 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()])}},xs=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),st=new Be({maxSize:1e5}),yr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),vr=(e,t={})=>{if(!yr(e))return e;let{exclude:r,pascalCase:n=!1,stopPaths:i,deep:s=!1,preserveConsecutiveUppercase:o=!1}=t,a=new Set(i),u=l=>(g,m)=>{if(s&&yr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=dr(m,u(E)))}if(!(r&&xs(r,g))){let E=n?`${g}_`:g;if(st.has(E))g=st.get(E);else{let L=Ps(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&st.set(E,L),g=L}}return[g,m]};return dr(e,u(void 0))};function vn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>vr(e[r],t)):vr(e,t)}function En(e){let t=0,r=e.length;for(;t<r&&(e[t]==="\r"||e[t]===`
9
7
  `);)t++;for(;r>t&&(e[r-1]==="\r"||e[r-1]===`
10
- `);)r--;return t>0||r<e.length?e.slice(t,r):e}function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vs=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Xs=ze(Vs);function Ks(e){let t=Xs(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function qs(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 _t(e,t=0,r={}){return qs(Ks(e),t,r)}var Js=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},$n=Js,Zs="2.0.0",Rn=256,Qs=Number.MAX_SAFE_INTEGER||9007199254740991,eo=16,to=Rn-6,ro=["major","premajor","minor","preminor","patch","prepatch","prerelease"],Pn={MAX_LENGTH:Rn,MAX_SAFE_COMPONENT_LENGTH:eo,MAX_SAFE_BUILD_LENGTH:to,MAX_SAFE_INTEGER:Qs,RELEASE_TYPES:ro,SEMVER_SPEC_VERSION:Zs,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:i}=Pn,s=$n;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",i],[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++;s(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("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",u[l.COERCE],!0),v("COERCERTLFULL",u[l.COERCEFULL],!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 no=yt.exports,io=Object.freeze({loose:!0}),so=Object.freeze({}),oo=e=>e?typeof e!="object"?io:e:so,ao=oo,Sr=/^[0-9]+$/,xn=(e,t)=>{let r=Sr.test(e),n=Sr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},uo=(e,t)=>xn(t,e),co={compareIdentifiers:xn,rcompareIdentifiers:uo},Te=$n,{MAX_LENGTH:$r,MAX_SAFE_INTEGER:Fe}=Pn,{safeRe:Rr,t:Pr}=no,lo=ao,{compareIdentifiers:fe}=co,fo=class K{constructor(t,r){if(r=lo(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>$r)throw new TypeError(`version is longer than ${$r} characters`);Te("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Rr[Pr.LOOSE]:Rr[Pr.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>Fe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fe||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<Fe)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(Te("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],i=t.prerelease[r];if(Te("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 fe(n,i)}while(++r)}compareBuild(t){t instanceof K||(t=new K(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Te("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 fe(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]),fe(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}},ho=fo,xr=ho,po=(e,t,r=!1)=>{if(e instanceof xr)return e;try{return new xr(e,t)}catch(n){if(!r)return null;throw n}},Nn=po,go=Nn,mo=(e,t)=>{let r=go(e,t);return r?r.version:null},bo=mo,yo=Nn,vo=(e,t)=>{let r=yo(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},Eo=vo,In=["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=["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"],Lo=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","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-2.0-note","GCC-exception-3.1","GNAT-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"],Oo=[].concat(In).concat(Co),wo=Lo,Ao=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 i(){n(/[ ]*/)}function s(){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(Oo.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(wo.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};t=v}function m(){return s()||u()||l()||g()}for(var E=[];r()&&(i(),!!r());){var L=m();if(!L)throw new Error("Unexpected `"+e[t]+"` at offset "+t);E.push(L)}return E},So=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(h){var c=n();if(c&&c.type==="OPERATOR"&&h===c.string)return i(),c.string}function o(){if(s("WITH")){var h=n();if(h&&h.type==="EXCEPTION")return i(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=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=h}function u(){var h=n();if(h&&h.type==="LICENSE"){i();var c={license:h.string};s("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function l(){var h=s("(");if(h){var c=L();if(!s(")"))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(!s(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},$o=Ao,Ro=So,_n=function(e){return Ro($o(e))},Po=_n,xo=In;function je(e){try{return Po(e),!0}catch{return!1}}function Tn(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Nr=[["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(Tn),No=0,Io=1,Ir=[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=xo.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},{}),_o=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 _r=[["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(_o).sort(Tn),To=0,Fo=1,Tr=function(e){for(var t=0;t<Ir.length;t++){var r=Ir[t](e).trim();if(r!==e&&je(r))return r}return null},Fr=function(e){for(var t=e.toUpperCase(),r=0;r<_r.length;r++){var n=_r[r];if(t.indexOf(n[To])>-1)return n[Fo]}return null},Dr=function(e,t){for(var r=0;r<Nr.length;r++){var n=Nr[r],i=n[No];if(e.indexOf(i)>-1){var s=e.replace(i,n[Io]),o=t(s);if(o!==null)return o}}return null},Do=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Mo(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(),je(e))return n(e);var s=e.replace(/\+$/,"").trim();if(je(s))return n(s);var o=Tr(e);return o!==null||(o=Dr(e,function(a){return je(a)?a:Tr(a)}),o!==null)||(o=Fr(e),o!==null)||(o=Dr(e,Fr),o!==null)?n(o):null};function Mo(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 jo=_n,Go=Do,Mr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Bo=/^SEE LICEN[CS]E IN (.+)$/;function jr(e,t){return t.slice(0,e.length)===e}function Et(e){if(e.hasOwnProperty("license")){var t=e.license;return jr("LicenseRef",t)||jr("DocumentRef",t)}else return Et(e.left)||Et(e.right)}var ko=function(e){var t;try{t=jo(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:[Mr]};if(e.trim().length!==0){var i=Go(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Et(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Mr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},He={};Object.defineProperty(He,"__esModule",{value:!0});He.LRUCache=void 0;var he=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Fn=new Set,Ct=typeof process=="object"&&process?process:{},Dn=(e,t,r,n)=>{typeof Ct.emitWarning=="function"?Ct.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},ke=globalThis.AbortController,Gr=globalThis.AbortSignal;if(typeof ke>"u"){Gr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},ke=class{constructor(){t()}signal=new Gr;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=Ct.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Dn("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 Uo=e=>!Fn.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Mn=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=Mn(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]}},Wo=class jn{#n;#c;#t;#m;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#s;#i;#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.#s,keyList:t.#i,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,i,s)=>t.#I(r,n,i,s),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:i=1,ttlAutopurge:s,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:x,ignoreFetchAbort:N}=t;if(r!==0&&!Q(r))throw new TypeError("max option must be a nonnegative integer");let j=r?Mn(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.#s=new Map,this.#i=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=!!x,this.ignoreFetchAbort=!!N,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(i)||i===0?i:1,this.ttlAutopurge=!!s,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";Uo(W)&&(Fn.add(W),Dn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,jn))}}getRemainingTTL(t){return this.#s.has(t)?1/0:0}#_(){let t=new de(this.#n),r=new de(this.#n);this.#d=t,this.#E=r,this.#T=(s,o,a=he.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#g(s)&&this.delete(this.#i[s])},o+1);u.unref&&u.unref()}},this.#S=s=>{r[s]=t[s]!==0?he.now():0},this.#w=(s,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let l=s.now-u;s.remainingTTL=a-l}};let n=0,i=()=>{let s=he.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.#s.get(s);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let l=(n||i())-u;return a-l},this.#g=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-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,i,s)=>{if(this.#r(n))return 0;if(!Q(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Q(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.#x=(r,n,i)=>{if(t[r]=n,this.#c){let s=this.#c-t[r];for(;this.#b>s;)this.#N(!0)}this.#b+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#b)}}#$=t=>{};#x=(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};*#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.#s.get(this.#i[t])===t}*entries(){for(let t of this.#L())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*rentries(){for(let t of this.#O())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*keys(){for(let t of this.#L()){let r=this.#i[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#i[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()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#L()){let i=this.#e[n],s=this.#r(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.#L()){let i=this.#e[n],s=this.#r(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#O()){let i=this.#e[n],s=this.#r(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#g(r)&&(this.delete(this.#i[r]),t=!0);return t}info(t){let r=this.#s.get(t);if(r===void 0)return;let n=this.#e[r],i=this.#r(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#d&&this.#E){let o=this.#d[r],a=this.#E[r];if(o&&a){let u=o-(he.now()-a);s.ttl=u,s.start=Date.now()}}return this.#v&&(s.size=this.#v[r]),s}dump(){let t=[];for(let r of this.#L({allowStale:!0})){let n=this.#i[r],i=this.#e[r],s=this.#r(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};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 i=Date.now()-n.start;n.start=he.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: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.#s.get(t);if(m===void 0)m=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#n?this.#N(!1):this.#o,this.#i[m]=t,this.#e[m]=r,this.#s.set(t,m),this.#f[this.#a]=m,this.#p[m]=this.#a,this.#a=m,this.#o++,this.#x(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.#x(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(i!==0&&!this.#d&&this.#_(),this.#d&&(l||this.#T(m,i,s),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.#N(!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)}}}#N(t){let r=this.#l,n=this.#i[r],i=this.#e[r];return this.#A&&this.#r(i)?i.__abortController.abort(new Error("evicted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(i,n,"evict"),this.#h&&this.#u?.push([i,n,"evict"])),this.#$(r),t&&(this.#i[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.#s.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#s.get(t);if(s!==void 0){let o=this.#e[s];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(s))i&&(i.has="stale",this.#w(i,s));else return n&&this.#S(s),i&&(i.has="hit",this.#w(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#s.get(t);if(i===void 0||!n&&this.#g(i))return;let s=this.#e[i];return this.#r(s)?s.__staleWhileFetching:s}#I(t,r,n,i){let s=r===void 0?void 0:this.#e[r];if(this.#r(s))return s;let o=new ke,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},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,x=L;if(this.#e[r]===L&&(!C||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#e[r]=x.__staleWhileFetching)),A)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw h},E=(h,c)=>{let b=this.#P?.(t,s,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:s,__returned:void 0});return r===void 0?(this.set(t,v,{...u.options,status:void 0}),r=this.#s.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 ke}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: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:i,noDeleteOnStaleGet:s,status:b});let C={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:v,ignoreFetchAbort:L,status:b,signal:A},x=this.#s.get(t);if(x===void 0){b&&(b.fetch="miss");let N=this.#I(t,x,C,h);return N.__returned=N}else{let N=this.#e[x];if(this.#r(N)){let _=n&&N.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?N.__staleWhileFetching:N.__returned=N}let j=this.#g(x);if(!c&&!j)return b&&(b.fetch="hit"),this.#R(x),i&&this.#S(x),b&&this.#w(b,x),N;let W=this.#I(t,x,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:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#s.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):(s||this.delete(t),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(this.#R(a),i&&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.#s.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#$(n);let i=this.#e[n];if(this.#r(i)?i.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(i,t,"delete"),this.#h&&this.#u?.push([i,t,"delete"])),this.#s.delete(t),this.#i[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 s=this.#p[n];this.#f[s]=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,i;for(;i=n?.shift();)this.#m?.(...i)}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.#i[t];this.#C&&this.#t?.(r,n,"delete"),this.#h&&this.#u?.push([r,n,"delete"])}}if(this.#s.clear(),this.#e.fill(void 0),this.#i.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)}}};He.LRUCache=Wo;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",Gn=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),zo={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${I("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${I("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${D(n||"HEAD")}/${s}${I("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${D(n||"HEAD")}/${s}${I("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${I("/",n,"/",D(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${D(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${I("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${I("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Gn},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:i})=>`https://${I(e,"@")}raw.githubusercontent.com/${t}/${r}/${D(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,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,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}}};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:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n||"HEAD"),"/",s,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:i})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,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 i=r.join("/");if(!(!i||!n))return{user:i,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${I("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${I("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${I("/",D(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${I("/",D(r))}${I("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${I("/",D(r))}${I("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${I("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${I("/",D(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${I("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${I("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${I("#",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-"+Gn(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:i})=>`https://${e}/${t}/${r}/blob/${D(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${I("#",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({},zo,t);var Ho=re,Yo=vn,ut=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Br=e=>{try{return new Yo.URL(e)}catch{}},Vo=(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)}`},Xo=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},Bn=(e,t)=>{let r=t?Vo(e,t):e;return Br(r)||Br(Xo(r))},Ko=Bn,qo=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,u=o===-1||t>-1&&o>t,l=i===-1||t>-1&&i>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},Jo=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=qo(e)?`github:${e}`:e,s=Ko(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let l=r[o||a],g=null;n[s.protocol]?.auth&&(s.username||s.password)&&(g=`${s.username}${s.password?":"+s.password:""}`);let m=null,E=null,L=null,v=null;try{if(o){let h=s.pathname.startsWith("/")?s.pathname.slice(1):s.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)),s.hash&&(m=decodeURIComponent(s.hash.slice(1))),v="shortcut"}else{if(!l.protocols.includes(s.protocol))return;let h=l.extract(s);if(!h)return;E=h.user&&decodeURIComponent(h.user),L=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),v=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[u,E,g,L,m,v,t]},{LRUCache:Zo}=He,Qo=Ho,ea=Jo,ta=Bn,ct=new Zo({max:1e3}),Ue=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#n[t],{type:t,user:r,auth:n,project:i,committish:s,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 i=ea(t,r,{gitHosts:e.#n,protocols:e.#c});ct.set(n,i?new e(...i):void 0)}return ct.get(n)}static parseUrl(t){return ta(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 i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}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(Qo))Ue.addHost(e,t);var ra=Ue,na="Function.prototype.bind called on incompatible ",ia=Object.prototype.toString,sa=Math.max,oa="[object Function]",kr=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},aa=function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},ua=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},ca=function(t){var r=this;if(typeof r!="function"||ia.apply(r)!==oa)throw new TypeError(na+r);for(var n=aa(arguments,1),i,s=function(){if(this instanceof i){var g=r.apply(this,kr(n,arguments));return Object(g)===g?g:this}return r.apply(t,kr(n,arguments))},o=sa(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(i=Function("binder","return function ("+ua(a,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},la=ca,fa=Function.prototype.bind||la,ha=Function.prototype.call,pa=Object.prototype.hasOwnProperty,da=fa,ga=da.call(ha,pa),ma=!0,ba=">= 8",ya=">= 0.5 && < 0.9.7",va=!0,Ea=!0,Ca=">= 0.5",La=!0,Oa=!0,wa=!0,Aa=">= 1 && < 8",Sa="< 8",$a=!0,Ra=[">= 14.17 && < 15",">= 15.1"],Pa=!0,xa=">= 0.7.12",Na=!0,Ia="< 6",_a=!0,Ta=">= 0.11.1",Fa=">= 0.11.1",Da=">= 0.11.1",Ma=">= 0.11.1",ja=">= 0.11.1",Ga=">= 0.11.1",Ba=!0,ka=">= 8.8",Ua=!0,Wa=">= 8",za="< 8",Ha=!0,Ya=!0,Va=!0,Xa=!0,Ka=">= 8.5",qa=">= 1",Ja=">= 0.5",Za=!0,Qa=!0,eu=!0,tu=">= 0.11.5 && < 3",ru=">= 0.9.4",nu=">= 0.9.4",iu=">= 1.4.1",su=">= 0.9.4",ou=">= 0.9.4",au=">= 0.9.4",uu=!0,cu=!0,lu=[">= 0.4 && < 0.7",">= 0.8"],fu=!0,hu=">= 0.11.13",pu=">= 0.11.3 && < 10",du=">= 0.11.3",gu=!0,mu=">= 10",bu=!0,yu=!0,vu=!0,Eu=">= 1",Cu=!0,Lu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],Ou=">= 11.7",wu=">= 0.5",Au={assert:ma,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ba,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ya,buffer:va,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:Ea,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:Ca,"node:cluster":[">= 14.18 && < 15",">= 16"],console:La,"node:console":[">= 14.18 && < 15",">= 16"],constants:Oa,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:wa,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:Aa,_debugger:Sa,dgram:$a,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:Ra,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:Pa,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:xa,"node:domain":[">= 14.18 && < 15",">= 16"],events:Na,"node:events":[">= 14.18 && < 15",">= 16"],freelist:Ia,fs:_a,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:Ta,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:Fa,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Da,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Ma,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:ja,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ga,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:Ba,"node:http":[">= 14.18 && < 15",">= 16"],http2:ka,"node:http2":[">= 14.18 && < 15",">= 16"],https:Ua,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Wa,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:za,module:Ha,"node:module":[">= 14.18 && < 15",">= 16"],net:Ya,"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:Va,"node:os":[">= 14.18 && < 15",">= 16"],path:Xa,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Ka,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:qa,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Ja,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Za,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Qa,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:eu,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:tu,_stream_duplex:ru,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:nu,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:iu,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:su,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:ou,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:au,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:uu,"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:cu,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:lu,"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:fu,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:hu,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:pu,_tls_wrap:du,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:gu,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:mu,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:bu,"node:tty":[">= 14.18 && < 15",">= 16"],url:yu,"node:url":[">= 14.18 && < 15",">= 16"],util:vu,"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:Eu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:Cu,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:Lu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:Ou,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:wu,"node:zlib":[">= 14.18 && < 15",">= 16"]},Su=ga;function $u(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),u=parseInt(s[o]||0,10);if(a!==u)return i==="<"?a<u:i===">="?a>=u:!1}return i===">="}function Ur(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!$u(e,r[n]))return!1;return!0}function Ru(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(Ur(r,t[n]))return!0;return!1}return Ur(r,t)}var Wr=Au,Pu=function(t,r){return Su(Wr,t)&&Ru(r,Wr[t])},xu=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"},_u={web:"url",name:"url"},Tu={server:"start",tests:"test"},Fu={topLevel:Iu,bugs:_u,script:Tu},Du=bo,Mu=Eo,ju=ko,De=ra,Gu=Pu,Bu=["dependencies","devDependencies","optionalDependencies"],ku=xu,lt=vn,te=Fu,zr=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Uu={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=De.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){qu(e,this.warn),Xu(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=De.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(!Du(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Mu(e.version,r),!0},fixPeople:function(e){Hr(e,Yu),Hr(e,Vu)},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()),Hu(e.name,r,t.allowLegacyCase),Gu(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=ku(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=De.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")zr(e.bugs)?e.bugs={email:e.bugs}:lt.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Ju(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"&&zr(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=De.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(!ju(t).validForNewPackages)return this.warn("invalidLicense")}};function Wu(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 zu(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Hu(e,t,r){if(e.charAt(0)==="."||!(Wu(e)||zu(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Hr(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 Yu(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 Vu(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 Xu(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 Ku(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 qu(e,t){Bu.forEach(function(r){e[r]&&(e[r]=Ku(e[r],r,t))})}function Ju(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 Zu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Qu="No repository field.",ec="Probably broken git url: %s",tc="scripts must be an object",rc="script values must be string commands",nc="Invalid 'files' member",ic="Invalid filename in 'files' list: %s",sc="Invalid 'bundleDependencies' list. Must be array of package names",oc="Invalid bundleDependencies member: %s",ac="Non-dependency in bundleDependencies: %s",uc="%s field must be an object",cc="Invalid dependency: %s %s",lc="specifying %s as array is deprecated",fc="modules field is deprecated",hc="keywords should be an array of strings",pc="keywords should be an array of strings",dc="%s is also the name of a node core module.",gc="'description' field should be a string",mc="No description",bc="No README data",yc="No license field.",vc="Bug string field must be url, email, or {email,url}",Ec="bugs.url field must be a string url. Deleted.",Cc="bugs.email field must be a string email. Deleted.",Lc="Normalized value of bugs field is an empty object. Deleted.",Oc="homepage field must be a string url. Deleted.",wc="license should be a valid SPDX license expression",Ac="%s should probably be %s.",Sc={repositories:Zu,missingRepository:Qu,brokenGitUrl:ec,nonObjectScripts:tc,nonStringScript:rc,nonArrayFiles:nc,invalidFilename:ic,nonArrayBundleDependencies:sc,nonStringBundleDependency:oc,nonDependencyBundleDependency:ac,nonObjectDependencies:uc,nonStringDependency:cc,deprecatedArrayDependencies:lc,deprecatedModules:fc,nonArrayKeywords:hc,nonStringKeyword:pc,conflictingName:dc,nonStringDescription:gc,missingDescription:mc,missingReadme:bc,missingLicense:yc,nonEmailUrlBugsString:vc,nonUrlBugsUrlField:Ec,nonEmailBugsEmailField:Cc,emptyNormalizedBugs:Lc,nonUrlHomepage:Oc,invalidLicense:wc,typo:Ac},kn=Rs,Ot=Sc,$c=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Rc.apply(null,e);var r=Ot[t]?Ot[t]:t+": '%s'";return e.unshift(r),kn.format.apply(null,e)};function Rc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),kn.format(Ot.typo,e,t)}var Pc=Un,wt=Uu;Un.fixer=wt;var xc=$c,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 Wn(e)+"Field"});At=At.concat(Ic);function Un(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(xc.apply(null,arguments))},At.forEach(function(n){wt["fix"+Wn(n)](e,r)}),e._id=e.name+"@"+e.version}function Wn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Tt=ze(Pc),Yr=e=>e instanceof URL?mn(e):e;function _c(e,{cwd:t=_s.cwd(),type:r="file",stopAt:n}={}){let i=ee.resolve(Yr(t)??""),{root:s}=ee.parse(i);for(n=ee.resolve(i,Yr(n)??s);i&&i!==n&&i!==s;){let o=ee.isAbsolute(e)?e:ee.join(i,e);try{let a=bn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}i=ee.dirname(i)}}var Ft={},$e={},Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.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;Ye.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 zn={},Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.isIdentifierChar=Xn;Re.isIdentifierName=Mc;Re.isIdentifierStart=Vn;var Dt="\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",Hn="\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",Tc=new RegExp("["+Dt+"]"),Fc=new RegExp("["+Dt+Hn+"]");Dt=Hn=null;var Yn=[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],Dc=[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,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 Vn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Tc.test(String.fromCharCode(e)):St(e,Yn)}function Xn(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&&Fc.test(String.fromCharCode(e)):St(e,Yn)||St(e,Dc)}function Mc(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,!Vn(n))return!1}else if(!Xn(n))return!1}return!t}var se={};Object.defineProperty(se,"__esModule",{value:!0});se.isKeyword=Uc;se.isReservedWord=Kn;se.isStrictBindOnlyReservedWord=Jn;se.isStrictBindReservedWord=kc;se.isStrictReservedWord=qn;var Mt={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"]},jc=new Set(Mt.keyword),Gc=new Set(Mt.strict),Bc=new Set(Mt.strictBind);function Kn(e,t){return t&&e==="await"||e==="enum"}function qn(e,t){return Kn(e,t)||Gc.has(e)}function Jn(e){return Bc.has(e)}function kc(e,t){return qn(e,t)||Jn(e)}function Uc(e){return jc.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=Re,r=se})(zn);var Zn={exports:{}},Wc=/[|\\{}()[\]^$+*?.]/g,zc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Wc,"\\$&")},jt={exports:{}},Qn={exports:{}},Hc={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]},ie=Hc,ei={};for(Me in ie)ie.hasOwnProperty(Me)&&(ei[ie[Me]]=Me);var Me,$=Qn.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);Vr=$[U].channels,Xr=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:Vr}),Object.defineProperty($[U],"labels",{value:Xr})}var Vr,Xr,U;$.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,u,l;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),l=(i+s)/2,s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};$.rgb.hsv=function(e){var t,r,n,i,s,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?i=s=0:(s=g/l,t=m(o),r=m(a),n=m(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};$.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=$.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]};$.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 Yc(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=ei[e];if(t)return t;var r=1/0,n;for(var i in ie)if(ie.hasOwnProperty(i)){var s=ie[i],o=Yc(e,s);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return ie[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 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]};$.rgb.lab=function(e){var t=$.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]};$.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,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=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[l]=u*255;return a};$.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]};$.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),u=255*n*(1-r*(1-s));switch(n*=255,i){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,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]};$.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),u=r+a*(o-r);var l,g,m;switch(s){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,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]};$.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]};$.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]};$.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),u=Math.pow(i,3),l=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};$.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]};$.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]};$.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:$.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};$.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 i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};$.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]};$.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]};$.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),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};$.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===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,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]};$.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]};$.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};$.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]};$.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]};$.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,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*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 ti=Qn.exports,We=ti;function Vc(){for(var e={},t=Object.keys(We),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xc(e){var t=Vc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(We[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function Kc(e,t){return function(r){return t(e(r))}}function qc(e,t){for(var r=[t[e].parent,e],n=We[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Kc(We[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Jc=function(e){for(var t=Xc(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]=qc(o,t))}return r},$t=ti,Zc=Jc,pe={},Qc=Object.keys($t);function el(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 tl(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}Qc.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=Zc(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];pe[e][n]=tl(i),pe[e][n].raw=el(i)})});var ri=pe;jt.exports;(function(e){let t=ri,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`},i=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[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 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:i(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:i(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]=i(m.rgb,0),a.bgColor.ansi16m[g]=i(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(jt);var rl=jt.exports,nl=(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)},il=yn,V=nl,G=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 G&&(ge=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ol(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=il.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 ft(e){let t=ol(e);return sl(t)}var al={supportsColor:ft,stdout:ft(process.stdout),stderr:ft(process.stderr)},ul=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Kr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,cl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ll=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,fl=new Map([["n",`
12
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ni(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):fl.get(e)||e}function hl(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(cl))r.push(i[2].replace(ll,(o,a,u)=>a?ni(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function pl(e){Kr.lastIndex=0;let t=[],r;for(;(r=Kr.exec(e))!==null;){let n=r[1];if(r[2]){let i=hl(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function qr(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 dl=(e,t)=>{let r=[],n=[],i=[];if(t.replace(ul,(s,o,a,u,l,g)=>{if(o)i.push(ni(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:qr(e,r)(m)),r.push({inverse:a,styles:pl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(qr(e,r)(i.join(""))),i=[],r.pop()}else i.push(g)}),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=zc,r=rl,n=al.stdout,i=dl,s=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)}s&&(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(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),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;s&&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 i(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(Zn);var gl=Zn.exports;Object.defineProperty($e,"__esModule",{value:!0});$e.default=Ll;$e.shouldHighlight=oi;var Jr=Ye,Zr=zn,Rt=ml(gl,!0);function ii(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ii=function(n){return n?r:t})(e)}function ml(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ii(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var bl=new Set(["as","async","from","get","of","set"]);function yl(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 vl=/\r\n|[\n\r\u2028\u2029]/,El=/^[()[\]{}]$/,si;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,Zr.isKeyword)(r.value)||(0,Zr.isStrictReservedWord)(r.value,!0)||bl.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"&&El.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};si=function*(r){let n;for(;n=Jr.default.exec(r);){let i=Jr.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function Cl(e,t){let r="";for(let{type:n,value:i}of si(t)){let s=e[n];s?r+=i.split(vl).map(o=>s(o)).join(`
13
- `):r+=i}return r}function oi(e){return Rt.default.level>0||e.forceColor}var ht;function ai(e){if(e){var t;return(t=ht)!=null||(ht=new Rt.default.constructor({enabled:!0,level:1})),ht}return Rt.default}$e.getChalk=e=>ai(e.forceColor);function Ll(e,t={}){if(e!==""&&oi(t)){let r=yl(ai(t.forceColor));return Cl(r,e)}else return e}var ui={exports:{}},Ol=/[|\\{}()[\]^$+*?.]/g,wl=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Ol,"\\$&")},Gt={exports:{}};Gt.exports;(function(e){let t=ri,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`},i=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[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 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:i(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:i(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]=i(m.rgb,0),a.bgColor.ansi16m[g]=i(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(Gt);var Al=Gt.exports,Sl=(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)},$l=yn,X=Sl,B=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 B&&(me=B.FORCE_COLOR.length===0||parseInt(B.FORCE_COLOR,10)!==0);function Rl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Pl(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=$l.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 pt(e){let t=Pl(e);return Rl(t)}var xl={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$/,_l=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Tl=new Map([["n",`
14
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ci(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Tl.get(e)||e}function Fl(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(Il))r.push(i[2].replace(_l,(o,a,u)=>a?ci(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Dl(e){Qr.lastIndex=0;let t=[],r;for(;(r=Qr.exec(e))!==null;){let n=r[1];if(r[2]){let i=Fl(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function en(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 Ml=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Nl,(s,o,a,u,l,g)=>{if(o)i.push(ci(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:en(e,r)(m)),r.push({inverse:a,styles:Dl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(en(e,r)(i.join(""))),i=[],r.pop()}else i.push(g)}),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=wl,r=Al,n=xl.stdout,i=Ml,s=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)}s&&(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(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),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;s&&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 i(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(ui);var jl=ui.exports;Object.defineProperty(Ft,"__esModule",{value:!0});var Gl=Ft.codeFrameColumns=fi;Ft.default=zl;var tn=$e,rn=Bl(jl,!0);function li(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(li=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=li(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var dt;function kl(e){if(e){var t;return(t=dt)!=null||(dt=new rn.default.constructor({enabled:!0,level:1})),dt}return rn.default}var nn=!1;function Ul(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var sn=/\r\n|[\n\r\u2028\u2029]/;function Wl(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,u=n.column,l=i.line,g=i.column,m=Math.max(a-(s+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 fi(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,tn.shouldHighlight)(r),i=kl(r.forceColor),s=Ul(i),o=(h,c)=>n?h(c):c,a=e.split(sn),{start:u,end:l,markerLines:g}=Wl(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,tn.default)(e,r):e).split(sn,l).slice(u,l).map((h,c)=>{let b=u+1+c,C=` ${` ${b}`.slice(-E)} |`,x=g[b],N=!g[b+1];if(x){let j="";if(Array.isArray(x)){let W=h.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Z=x[1]||1;j=[`
8
+ `);)r--;return t>0||r<e.length?e.slice(t,r):e}function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Is=ze(Ns);function _s(e){let t=Is(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Ts(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 Nt(e,t=0,r={}){return Ts(_s(e),t,r)}var Fs=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Cn=Fs,Ds="2.0.0",Ln=256,Ms=Number.MAX_SAFE_INTEGER||9007199254740991,js=16,Gs=Ln-6,Bs=["major","premajor","minor","preminor","patch","prepatch","prerelease"],On={MAX_LENGTH:Ln,MAX_SAFE_COMPONENT_LENGTH:js,MAX_SAFE_BUILD_LENGTH:Gs,MAX_SAFE_INTEGER:Ms,RELEASE_TYPES:Bs,SEMVER_SPEC_VERSION:Ds,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},mt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=On,s=Cn;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",i],[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++;s(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("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",u[l.COERCE],!0),v("COERCERTLFULL",u[l.COERCEFULL],!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*$")})(mt,mt.exports);var ks=mt.exports,Us=Object.freeze({loose:!0}),Ws=Object.freeze({}),zs=e=>e?typeof e!="object"?Us:e:Ws,Hs=zs,Er=/^[0-9]+$/,wn=(e,t)=>{let r=Er.test(e),n=Er.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Ys=(e,t)=>wn(t,e),Vs={compareIdentifiers:wn,rcompareIdentifiers:Ys},Te=Cn,{MAX_LENGTH:Cr,MAX_SAFE_INTEGER:Fe}=On,{safeRe:Lr,t:Or}=ks,Xs=Hs,{compareIdentifiers:le}=Vs,Ks=class K{constructor(t,r){if(r=Xs(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>Cr)throw new TypeError(`version is longer than ${Cr} characters`);Te("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Lr[Or.LOOSE]:Lr[Or.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>Fe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fe||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<Fe)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(Te("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)),le(this.major,t.major)||le(this.minor,t.minor)||le(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],i=t.prerelease[r];if(Te("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 le(n,i)}while(++r)}compareBuild(t){t instanceof K||(t=new K(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Te("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 le(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]),le(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}},qs=Ks,wr=qs,Js=(e,t,r=!1)=>{if(e instanceof wr)return e;try{return new wr(e,t)}catch(n){if(!r)return null;throw n}},An=Js,Zs=An,Qs=(e,t)=>{let r=Zs(e,t);return r?r.version:null},eo=Qs,to=An,ro=(e,t)=>{let r=to(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},no=ro,Sn=["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"],io=["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"],so=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","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-2.0-note","GCC-exception-3.1","GNAT-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"],oo=[].concat(Sn).concat(io),ao=so,uo=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 i(){n(/[ ]*/)}function s(){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(oo.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(ao.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};t=v}function m(){return s()||u()||l()||g()}for(var E=[];r()&&(i(),!!r());){var L=m();if(!L)throw new Error("Unexpected `"+e[t]+"` at offset "+t);E.push(L)}return E},co=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(h){var c=n();if(c&&c.type==="OPERATOR"&&h===c.string)return i(),c.string}function o(){if(s("WITH")){var h=n();if(h&&h.type==="EXCEPTION")return i(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=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=h}function u(){var h=n();if(h&&h.type==="LICENSE"){i();var c={license:h.string};s("+")&&(c.plus=!0);var b=o();return b&&(c.exception=b),c}}function l(){var h=s("(");if(h){var c=L();if(!s(")"))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(!s(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},lo=uo,fo=co,$n=function(e){return fo(lo(e))},ho=$n,po=Sn;function je(e){try{return ho(e),!0}catch{return!1}}function Rn(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Ar=[["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(Rn),go=0,mo=1,Sr=[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"}],bt=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},{}),bo=Object.keys(bt).map(function(t){return[t,bt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});bt=void 0;var $r=[["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(bo).sort(Rn),yo=0,vo=1,Rr=function(e){for(var t=0;t<Sr.length;t++){var r=Sr[t](e).trim();if(r!==e&&je(r))return r}return null},Pr=function(e){for(var t=e.toUpperCase(),r=0;r<$r.length;r++){var n=$r[r];if(t.indexOf(n[yo])>-1)return n[vo]}return null},xr=function(e,t){for(var r=0;r<Ar.length;r++){var n=Ar[r],i=n[go];if(e.indexOf(i)>-1){var s=e.replace(i,n[mo]),o=t(s);if(o!==null)return o}}return null},Eo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Co(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(),je(e))return n(e);var s=e.replace(/\+$/,"").trim();if(je(s))return n(s);var o=Rr(e);return o!==null||(o=xr(e,function(a){return je(a)?a:Rr(a)}),o!==null)||(o=Pr(e),o!==null)||(o=xr(e,Pr),o!==null)?n(o):null};function Co(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 Lo=$n,Oo=Eo,Nr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',wo=/^SEE LICEN[CS]E IN (.+)$/;function Ir(e,t){return t.slice(0,e.length)===e}function yt(e){if(e.hasOwnProperty("license")){var t=e.license;return Ir("LicenseRef",t)||Ir("DocumentRef",t)}else return yt(e.left)||yt(e.right)}var Ao=function(e){var t;try{t=Lo(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=wo.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Nr]};if(e.trim().length!==0){var i=Oo(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return yt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Nr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},He={};Object.defineProperty(He,"__esModule",{value:!0});He.LRUCache=void 0;var fe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Pn=new Set,vt=typeof process=="object"&&process?process:{},xn=(e,t,r,n)=>{typeof vt.emitWarning=="function"?vt.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},ke=globalThis.AbortController,_r=globalThis.AbortSignal;if(typeof ke>"u"){_r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},ke=class{constructor(){t()}signal=new _r;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=vt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,xn("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 So=e=>!Pn.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Nn=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?pe:null:null,pe=class extends Array{constructor(t){super(t),this.fill(0)}},Et=class e{heap;length;static#n=!1;static create(t){let r=Nn(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]}},$o=class In{#n;#c;#t;#m;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#b;#s;#i;#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.#s,keyList:t.#i,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,i,s)=>t.#I(r,n,i,s),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:i=1,ttlAutopurge:s,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:x,ignoreFetchAbort:N}=t;if(r!==0&&!Q(r))throw new TypeError("max option must be a nonnegative integer");let j=r?Nn(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.#s=new Map,this.#i=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=Et.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=!!x,this.ignoreFetchAbort=!!N,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(i)||i===0?i:1,this.ttlAutopurge=!!s,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";So(W)&&(Pn.add(W),xn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,In))}}getRemainingTTL(t){return this.#s.has(t)?1/0:0}#_(){let t=new pe(this.#n),r=new pe(this.#n);this.#d=t,this.#E=r,this.#T=(s,o,a=fe.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#g(s)&&this.delete(this.#i[s])},o+1);u.unref&&u.unref()}},this.#S=s=>{r[s]=t[s]!==0?fe.now():0},this.#w=(s,o)=>{if(t[o]){let a=t[o],u=r[o];if(!a||!u)return;s.ttl=a,s.start=u,s.now=n||i();let l=s.now-u;s.remainingTTL=a-l}};let n=0,i=()=>{let s=fe.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.#s.get(s);if(o===void 0)return 0;let a=t[o],u=r[o];if(!a||!u)return 1/0;let l=(n||i())-u;return a-l},this.#g=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#S=()=>{};#w=()=>{};#T=()=>{};#g=()=>!1;#j(){let t=new pe(this.#n);this.#b=0,this.#v=t,this.#$=r=>{this.#b-=t[r],t[r]=0},this.#F=(r,n,i,s)=>{if(this.#r(n))return 0;if(!Q(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Q(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.#x=(r,n,i)=>{if(t[r]=n,this.#c){let s=this.#c-t[r];for(;this.#b>s;)this.#N(!0)}this.#b+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#b)}}#$=t=>{};#x=(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};*#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.#s.get(this.#i[t])===t}*entries(){for(let t of this.#L())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*rentries(){for(let t of this.#O())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#r(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*keys(){for(let t of this.#L()){let r=this.#i[t];r!==void 0&&!this.#r(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#i[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()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#L()){let i=this.#e[n],s=this.#r(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.#L()){let i=this.#e[n],s=this.#r(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#O()){let i=this.#e[n],s=this.#r(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#g(r)&&(this.delete(this.#i[r]),t=!0);return t}info(t){let r=this.#s.get(t);if(r===void 0)return;let n=this.#e[r],i=this.#r(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#d&&this.#E){let o=this.#d[r],a=this.#E[r];if(o&&a){let u=o-(fe.now()-a);s.ttl=u,s.start=Date.now()}}return this.#v&&(s.size=this.#v[r]),s}dump(){let t=[];for(let r of this.#L({allowStale:!0})){let n=this.#i[r],i=this.#e[r],s=this.#r(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#d&&this.#E){o.ttl=this.#d[r];let a=fe.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 i=Date.now()-n.start;n.start=fe.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: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.#s.get(t);if(m===void 0)m=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#n?this.#N(!1):this.#o,this.#i[m]=t,this.#e[m]=r,this.#s.set(t,m),this.#f[this.#a]=m,this.#p[m]=this.#a,this.#a=m,this.#o++,this.#x(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.#x(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(i!==0&&!this.#d&&this.#_(),this.#d&&(l||this.#T(m,i,s),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.#N(!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)}}}#N(t){let r=this.#l,n=this.#i[r],i=this.#e[r];return this.#A&&this.#r(i)?i.__abortController.abort(new Error("evicted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(i,n,"evict"),this.#h&&this.#u?.push([i,n,"evict"])),this.#$(r),t&&(this.#i[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.#s.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#s.get(t);if(s!==void 0){let o=this.#e[s];if(this.#r(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(s))i&&(i.has="stale",this.#w(i,s));else return n&&this.#S(s),i&&(i.has="hit",this.#w(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#s.get(t);if(i===void 0||!n&&this.#g(i))return;let s=this.#e[i];return this.#r(s)?s.__staleWhileFetching:s}#I(t,r,n,i){let s=r===void 0?void 0:this.#e[r];if(this.#r(s))return s;let o=new ke,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let u={signal:o.signal,options:n,context:i},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,x=L;if(this.#e[r]===L&&(!C||x.__staleWhileFetching===void 0?this.delete(t):b||(this.#e[r]=x.__staleWhileFetching)),A)return n.status&&x.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw h},E=(h,c)=>{let b=this.#P?.(t,s,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:s,__returned:void 0});return r===void 0?(this.set(t,v,{...u.options,status:void 0}),r=this.#s.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 ke}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: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:i,noDeleteOnStaleGet:s,status:b});let C={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:v,ignoreFetchAbort:L,status:b,signal:A},x=this.#s.get(t);if(x===void 0){b&&(b.fetch="miss");let N=this.#I(t,x,C,h);return N.__returned=N}else{let N=this.#e[x];if(this.#r(N)){let _=n&&N.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?N.__staleWhileFetching:N.__returned=N}let j=this.#g(x);if(!c&&!j)return b&&(b.fetch="hit"),this.#R(x),i&&this.#S(x),b&&this.#w(b,x),N;let W=this.#I(t,x,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:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#s.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):(s||this.delete(t),o&&n&&(o.returnedStale=!0),n?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(this.#R(a),i&&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.#s.get(t);if(n!==void 0)if(r=!0,this.#o===1)this.clear();else{this.#$(n);let i=this.#e[n];if(this.#r(i)?i.__abortController.abort(new Error("deleted")):(this.#C||this.#h)&&(this.#C&&this.#t?.(i,t,"delete"),this.#h&&this.#u?.push([i,t,"delete"])),this.#s.delete(t),this.#i[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 s=this.#p[n];this.#f[s]=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,i;for(;i=n?.shift();)this.#m?.(...i)}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.#i[t];this.#C&&this.#t?.(r,n,"delete"),this.#h&&this.#u?.push([r,n,"delete"])}}if(this.#s.clear(),this.#e.fill(void 0),this.#i.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)}}};He.LRUCache=$o;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",_n=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ro={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${I("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${I("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${D(n||"HEAD")}/${s}${I("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${D(n||"HEAD")}/${s}${I("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${I("/",n,"/",D(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${D(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${I("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${I("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:_n},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:i})=>`https://${I(e,"@")}raw.githubusercontent.com/${t}/${r}/${D(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,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,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}}};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:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${I("/",i,"/",D(n||"HEAD"),"/",s,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:i})=>`git+https://${I(e,"@")}${t}/${r}/${n}.git${I("#",i)}`,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 i=r.join("/");if(!(!i||!n))return{user:i,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${I("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${I("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${I("/",D(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${I("/",D(r))}${I("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${I("/",D(r))}${I("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${I("/",D(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${I("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${I("/",D(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${I("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${I("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${I("#",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-"+_n(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:i})=>`https://${e}/${t}/${r}/blob/${D(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${I("#",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({},Ro,t);var Po=re,xo=pn,ot=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Tr=e=>{try{return new xo.URL(e)}catch{}},No=(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)}`},Io=e=>{let t=ot(e,"@","#"),r=ot(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),ot(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},Tn=(e,t)=>{let r=t?No(e,t):e;return Tr(r)||Tr(Io(r))},_o=Tn,To=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,u=o===-1||t>-1&&o>t,l=i===-1||t>-1&&i>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},Fo=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=To(e)?`github:${e}`:e,s=_o(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],u=o||a;if(!u)return;let l=r[o||a],g=null;n[s.protocol]?.auth&&(s.username||s.password)&&(g=`${s.username}${s.password?":"+s.password:""}`);let m=null,E=null,L=null,v=null;try{if(o){let h=s.pathname.startsWith("/")?s.pathname.slice(1):s.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)),s.hash&&(m=decodeURIComponent(s.hash.slice(1))),v="shortcut"}else{if(!l.protocols.includes(s.protocol))return;let h=l.extract(s);if(!h)return;E=h.user&&decodeURIComponent(h.user),L=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),v=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[u,E,g,L,m,v,t]},{LRUCache:Do}=He,Mo=Po,jo=Fo,Go=Tn,at=new Do({max:1e3}),Ue=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#n[t],{type:t,user:r,auth:n,project:i,committish:s,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(!at.has(n)){let i=jo(t,r,{gitHosts:e.#n,protocols:e.#c});at.set(n,i?new e(...i):void 0)}return at.get(n)}static parseUrl(t){return Go(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 i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}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(Mo))Ue.addHost(e,t);var Bo=Ue,ko="Function.prototype.bind called on incompatible ",Uo=Object.prototype.toString,Wo=Math.max,zo="[object Function]",Fr=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},Ho=function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},Yo=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Vo=function(t){var r=this;if(typeof r!="function"||Uo.apply(r)!==zo)throw new TypeError(ko+r);for(var n=Ho(arguments,1),i,s=function(){if(this instanceof i){var g=r.apply(this,Fr(n,arguments));return Object(g)===g?g:this}return r.apply(t,Fr(n,arguments))},o=Wo(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(i=Function("binder","return function ("+Yo(a,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},Xo=Vo,Ko=Function.prototype.bind||Xo,qo=Function.prototype.call,Jo=Object.prototype.hasOwnProperty,Zo=Ko,Qo=Zo.call(qo,Jo),ea=!0,ta=">= 8",ra=">= 0.5 && < 0.9.7",na=!0,ia=!0,sa=">= 0.5",oa=!0,aa=!0,ua=!0,ca=">= 1 && < 8",la="< 8",fa=!0,ha=[">= 14.17 && < 15",">= 15.1"],pa=!0,da=">= 0.7.12",ga=!0,ma="< 6",ba=!0,ya=">= 0.11.1",va=">= 0.11.1",Ea=">= 0.11.1",Ca=">= 0.11.1",La=">= 0.11.1",Oa=">= 0.11.1",wa=!0,Aa=">= 8.8",Sa=!0,$a=">= 8",Ra="< 8",Pa=!0,xa=!0,Na=!0,Ia=!0,_a=">= 8.5",Ta=">= 1",Fa=">= 0.5",Da=!0,Ma=!0,ja=!0,Ga=">= 0.11.5 && < 3",Ba=">= 0.9.4",ka=">= 0.9.4",Ua=">= 1.4.1",Wa=">= 0.9.4",za=">= 0.9.4",Ha=">= 0.9.4",Ya=!0,Va=!0,Xa=[">= 0.4 && < 0.7",">= 0.8"],Ka=!0,qa=">= 0.11.13",Ja=">= 0.11.3 && < 10",Za=">= 0.11.3",Qa=!0,eu=">= 10",tu=!0,ru=!0,nu=!0,iu=">= 1",su=!0,ou=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],au=">= 11.7",uu=">= 0.5",cu={assert:ea,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ta,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ra,buffer:na,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:ia,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:sa,"node:cluster":[">= 14.18 && < 15",">= 16"],console:oa,"node:console":[">= 14.18 && < 15",">= 16"],constants:aa,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:ua,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:ca,_debugger:la,dgram:fa,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:ha,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:pa,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:da,"node:domain":[">= 14.18 && < 15",">= 16"],events:ga,"node:events":[">= 14.18 && < 15",">= 16"],freelist:ma,fs:ba,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:ya,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:va,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Ea,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Ca,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:La,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Oa,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:wa,"node:http":[">= 14.18 && < 15",">= 16"],http2:Aa,"node:http2":[">= 14.18 && < 15",">= 16"],https:Sa,"node:https":[">= 14.18 && < 15",">= 16"],inspector:$a,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Ra,module:Pa,"node:module":[">= 14.18 && < 15",">= 16"],net:xa,"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:Na,"node:os":[">= 14.18 && < 15",">= 16"],path:Ia,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:_a,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Ta,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Fa,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Da,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Ma,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:ja,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:Ga,_stream_duplex:Ba,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:ka,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:Ua,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:Wa,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:za,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:Ha,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:Ya,"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:Va,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:Xa,"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:Ka,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:qa,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:Ja,_tls_wrap:Za,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:Qa,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:eu,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tu,"node:tty":[">= 14.18 && < 15",">= 16"],url:ru,"node:url":[">= 14.18 && < 15",">= 16"],util:nu,"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:iu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:su,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:ou,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:au,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:uu,"node:zlib":[">= 14.18 && < 15",">= 16"]},lu=Qo;function fu(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),u=parseInt(s[o]||0,10);if(a!==u)return i==="<"?a<u:i===">="?a>=u:!1}return i===">="}function Dr(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!fu(e,r[n]))return!1;return!0}function hu(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(Dr(r,t[n]))return!0;return!1}return Dr(r,t)}var Mr=cu,pu=function(t,r){return lu(Mr,t)&&hu(r,Mr[t])},du=gu;function gu(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
9
+ `);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 mu={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"},bu={web:"url",name:"url"},yu={server:"start",tests:"test"},vu={topLevel:mu,bugs:bu,script:yu},Eu=eo,Cu=no,Lu=Ao,De=Bo,Ou=pu,wu=["dependencies","devDependencies","optionalDependencies"],Au=du,ut=pn,te=vu,jr=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Su={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=De.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){Tu(e,this.warn),Iu(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=De.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(!Eu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Cu(e.version,r),!0},fixPeople:function(e){Gr(e,xu),Gr(e,Nu)},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()),Pu(e.name,r,t.allowLegacyCase),Ou(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=Au(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=De.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")jr(e.bugs)?e.bugs={email:e.bugs}:ut.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Fu(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&ut.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&jr(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=De.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;ut.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(!Lu(t).validForNewPackages)return this.warn("invalidLicense")}};function $u(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 Ru(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Pu(e,t,r){if(e.charAt(0)==="."||!($u(e)||Ru(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Gr(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 xu(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 Nu(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 Iu(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 _u(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 Tu(e,t){wu.forEach(function(r){e[r]&&(e[r]=_u(e[r],r,t))})}function Fu(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 Du="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Mu="No repository field.",ju="Probably broken git url: %s",Gu="scripts must be an object",Bu="script values must be string commands",ku="Invalid 'files' member",Uu="Invalid filename in 'files' list: %s",Wu="Invalid 'bundleDependencies' list. Must be array of package names",zu="Invalid bundleDependencies member: %s",Hu="Non-dependency in bundleDependencies: %s",Yu="%s field must be an object",Vu="Invalid dependency: %s %s",Xu="specifying %s as array is deprecated",Ku="modules field is deprecated",qu="keywords should be an array of strings",Ju="keywords should be an array of strings",Zu="%s is also the name of a node core module.",Qu="'description' field should be a string",ec="No description",tc="No README data",rc="No license field.",nc="Bug string field must be url, email, or {email,url}",ic="bugs.url field must be a string url. Deleted.",sc="bugs.email field must be a string email. Deleted.",oc="Normalized value of bugs field is an empty object. Deleted.",ac="homepage field must be a string url. Deleted.",uc="license should be a valid SPDX license expression",cc="%s should probably be %s.",lc={repositories:Du,missingRepository:Mu,brokenGitUrl:ju,nonObjectScripts:Gu,nonStringScript:Bu,nonArrayFiles:ku,invalidFilename:Uu,nonArrayBundleDependencies:Wu,nonStringBundleDependency:zu,nonDependencyBundleDependency:Hu,nonObjectDependencies:Yu,nonStringDependency:Vu,deprecatedArrayDependencies:Xu,deprecatedModules:Ku,nonArrayKeywords:qu,nonStringKeyword:Ju,conflictingName:Zu,nonStringDescription:Qu,missingDescription:ec,missingReadme:tc,missingLicense:rc,nonEmailUrlBugsString:nc,nonUrlBugsUrlField:ic,nonEmailBugsEmailField:sc,emptyNormalizedBugs:oc,nonUrlHomepage:ac,invalidLicense:uc,typo:cc},Fn=hs,Ct=lc,fc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return hc.apply(null,e);var r=Ct[t]?Ct[t]:t+": '%s'";return e.unshift(r),Fn.format.apply(null,e)};function hc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Fn.format(Ct.typo,e,t)}var pc=Dn,Lt=Su;Dn.fixer=Lt;var dc=fc,gc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],mc=["dependencies","people","typos"],Ot=gc.map(function(e){return Mn(e)+"Field"});Ot=Ot.concat(mc);function Dn(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),Lt.warn=function(){t(dc.apply(null,arguments))},Ot.forEach(function(n){Lt["fix"+Mn(n)](e,r)}),e._id=e.name+"@"+e.version}function Mn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var It=ze(pc),Br=e=>e instanceof URL?ln(e):e;function bc(e,{cwd:t=bs.cwd(),type:r="file",stopAt:n}={}){let i=ee.resolve(Br(t)??""),{root:s}=ee.parse(i);for(n=ee.resolve(i,Br(n)??s);i&&i!==n&&i!==s;){let o=ee.isAbsolute(e)?e:ee.join(i,e);try{let a=fn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}i=ee.dirname(i)}}var _t={},Se={},Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.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;Ye.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 jn={},$e={};Object.defineProperty($e,"__esModule",{value:!0});$e.isIdentifierChar=Un;$e.isIdentifierName=Cc;$e.isIdentifierStart=kn;var Tt="\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",Gn="\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",yc=new RegExp("["+Tt+"]"),vc=new RegExp("["+Tt+Gn+"]");Tt=Gn=null;var Bn=[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],Ec=[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 wt(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 kn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&yc.test(String.fromCharCode(e)):wt(e,Bn)}function Un(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&&vc.test(String.fromCharCode(e)):wt(e,Bn)||wt(e,Ec)}function Cc(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,!kn(n))return!1}else if(!Un(n))return!1}return!t}var se={};Object.defineProperty(se,"__esModule",{value:!0});se.isKeyword=Sc;se.isReservedWord=Wn;se.isStrictBindOnlyReservedWord=Hn;se.isStrictBindReservedWord=Ac;se.isStrictReservedWord=zn;var Ft={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"]},Lc=new Set(Ft.keyword),Oc=new Set(Ft.strict),wc=new Set(Ft.strictBind);function Wn(e,t){return t&&e==="await"||e==="enum"}function zn(e,t){return Wn(e,t)||Oc.has(e)}function Hn(e){return wc.has(e)}function Ac(e,t){return zn(e,t)||Hn(e)}function Sc(e){return Lc.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=se})(jn);var Yn={exports:{}},$c=/[|\\{}()[\]^$+*?.]/g,Rc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($c,"\\$&")},Dt={exports:{}},Vn={exports:{}},Pc={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]},ie=Pc,Xn={};for(Me in ie)ie.hasOwnProperty(Me)&&(Xn[ie[Me]]=Me);var Me,$=Vn.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);kr=$[U].channels,Ur=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:kr}),Object.defineProperty($[U],"labels",{value:Ur})}var kr,Ur,U;$.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,u,l;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),l=(i+s)/2,s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};$.rgb.hsv=function(e){var t,r,n,i,s,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?i=s=0:(s=g/l,t=m(o),r=m(a),n=m(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};$.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=$.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]};$.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 xc(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=Xn[e];if(t)return t;var r=1/0,n;for(var i in ie)if(ie.hasOwnProperty(i)){var s=ie[i],o=xc(e,s);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return ie[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 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]};$.rgb.lab=function(e){var t=$.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]};$.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,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=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[l]=u*255;return a};$.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]};$.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),u=255*n*(1-r*(1-s));switch(n*=255,i){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,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]};$.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),u=r+a*(o-r);var l,g,m;switch(s){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,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]};$.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]};$.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]};$.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),u=Math.pow(i,3),l=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};$.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]};$.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]};$.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:$.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};$.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 i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};$.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]};$.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]};$.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),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};$.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===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,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]};$.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]};$.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};$.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]};$.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]};$.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,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*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 Kn=Vn.exports,We=Kn;function Nc(){for(var e={},t=Object.keys(We),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Ic(e){var t=Nc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(We[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}return t}function _c(e,t){return function(r){return t(e(r))}}function Tc(e,t){for(var r=[t[e].parent,e],n=We[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=_c(We[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Fc=function(e){for(var t=Ic(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]=Tc(o,t))}return r},At=Kn,Dc=Fc,he={},Mc=Object.keys(At);function jc(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 Gc(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}Mc.forEach(function(e){he[e]={},Object.defineProperty(he[e],"channels",{value:At[e].channels}),Object.defineProperty(he[e],"labels",{value:At[e].labels});var t=Dc(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];he[e][n]=Gc(i),he[e][n].raw=jc(i)})});var qn=he;Dt.exports;(function(e){let t=qn,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`},i=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[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 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:i(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:i(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]=i(m.rgb,0),a.bgColor.ansi16m[g]=i(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(Dt);var Bc=Dt.exports,kc=(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)},Uc=hn,V=kc,G=process.env,de;V("no-color")||V("no-colors")||V("color=false")?de=!1:(V("color")||V("colors")||V("color=true")||V("color=always"))&&(de=!0);"FORCE_COLOR"in G&&(de=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function Wc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function zc(e){if(de===!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&&de!==!0)return 0;let t=de?1:0;if(process.platform==="win32"){let r=Uc.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 ct(e){let t=zc(e);return Wc(t)}var Hc={supportsColor:ct,stdout:ct(process.stdout),stderr:ct(process.stderr)},Yc=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Wr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Vc=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Xc=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Kc=new Map([["n",`
10
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Jn(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Kc.get(e)||e}function qc(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(Vc))r.push(i[2].replace(Xc,(o,a,u)=>a?Jn(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Jc(e){Wr.lastIndex=0;let t=[],r;for(;(r=Wr.exec(e))!==null;){let n=r[1];if(r[2]){let i=qc(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function zr(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 Zc=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Yc,(s,o,a,u,l,g)=>{if(o)i.push(Jn(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:zr(e,r)(m)),r.push({inverse:a,styles:Jc(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(zr(e,r)(i.join(""))),i=[],r.pop()}else i.push(g)}),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=Rc,r=Bc,n=Hc.stdout,i=Zc,s=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)}s&&(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(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),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;s&&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 i(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(Yn);var Qc=Yn.exports;Object.defineProperty(Se,"__esModule",{value:!0});Se.default=ol;Se.shouldHighlight=ei;var Hr=Ye,Yr=jn,St=el(Qc,!0);function Zn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Zn=function(n){return n?r:t})(e)}function el(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Zn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var tl=new Set(["as","async","from","get","of","set"]);function rl(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 nl=/\r\n|[\n\r\u2028\u2029]/,il=/^[()[\]{}]$/,Qn;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,Yr.isKeyword)(r.value)||(0,Yr.isStrictReservedWord)(r.value,!0)||tl.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"&&il.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Qn=function*(r){let n;for(;n=Hr.default.exec(r);){let i=Hr.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function sl(e,t){let r="";for(let{type:n,value:i}of Qn(t)){let s=e[n];s?r+=i.split(nl).map(o=>s(o)).join(`
11
+ `):r+=i}return r}function ei(e){return St.default.level>0||e.forceColor}var lt;function ti(e){if(e){var t;return(t=lt)!=null||(lt=new St.default.constructor({enabled:!0,level:1})),lt}return St.default}Se.getChalk=e=>ti(e.forceColor);function ol(e,t={}){if(e!==""&&ei(t)){let r=rl(ti(t.forceColor));return sl(r,e)}else return e}var ri={exports:{}},al=/[|\\{}()[\]^$+*?.]/g,ul=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(al,"\\$&")},Mt={exports:{}};Mt.exports;(function(e){let t=qn,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`},i=(o,a)=>function(){let u=o.apply(t,arguments);return`\x1B[${38+a};2;${u[0]};${u[1]};${u[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 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:i(l,0)},a.bgColor.ansi={ansi:r(u,10)},a.bgColor.ansi256={ansi256:n(u,10)},a.bgColor.ansi16m={rgb:i(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]=i(m.rgb,0),a.bgColor.ansi16m[g]=i(m.rgb,10))}return a}Object.defineProperty(e,"exports",{enumerable:!0,get:s})})(Mt);var cl=Mt.exports,ll=(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)},fl=hn,X=ll,B=process.env,ge;X("no-color")||X("no-colors")||X("color=false")?ge=!1:(X("color")||X("colors")||X("color=true")||X("color=always"))&&(ge=!0);"FORCE_COLOR"in B&&(ge=B.FORCE_COLOR.length===0||parseInt(B.FORCE_COLOR,10)!==0);function hl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function pl(e){if(ge===!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&&ge!==!0)return 0;let t=ge?1:0;if(process.platform==="win32"){let r=fl.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=pl(e);return hl(t)}var dl={supportsColor:ft,stdout:ft(process.stdout),stderr:ft(process.stderr)},gl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ml=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,yl=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ni(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):yl.get(e)||e}function vl(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(ml))r.push(i[2].replace(bl,(o,a,u)=>a?ni(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function El(e){Vr.lastIndex=0;let t=[],r;for(;(r=Vr.exec(e))!==null;){let n=r[1];if(r[2]){let i=vl(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Xr(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 Cl=(e,t)=>{let r=[],n=[],i=[];if(t.replace(gl,(s,o,a,u,l,g)=>{if(o)i.push(ni(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:Xr(e,r)(m)),r.push({inverse:a,styles:El(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Xr(e,r)(i.join(""))),i=[],r.pop()}else i.push(g)}),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=ul,r=cl,n=dl.stdout,i=Cl,s=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)}s&&(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(x){C.level=x}}),Object.defineProperty(A,"enabled",{enumerable:!0,get(){return C.enabled},set(x){C.enabled=x}}),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;s&&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 i(h,A.join(""))}Object.defineProperties(g.prototype,u),e.exports=g(),e.exports.supportsColor=n,e.exports.default=e.exports})(ri);var Ll=ri.exports;Object.defineProperty(_t,"__esModule",{value:!0});var Ol=_t.codeFrameColumns=si;_t.default=Rl;var Kr=Se,qr=wl(Ll,!0);function ii(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ii=function(n){return n?r:t})(e)}function wl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ii(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var ht;function Al(e){if(e){var t;return(t=ht)!=null||(ht=new qr.default.constructor({enabled:!0,level:1})),ht}return qr.default}var Jr=!1;function Sl(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var Zr=/\r\n|[\n\r\u2028\u2029]/;function $l(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,u=n.column,l=i.line,g=i.column,m=Math.max(a-(s+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 si(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Kr.shouldHighlight)(r),i=Al(r.forceColor),s=Sl(i),o=(h,c)=>n?h(c):c,a=e.split(Zr),{start:u,end:l,markerLines:g}=$l(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Kr.default)(e,r):e).split(Zr,l).slice(u,l).map((h,c)=>{let b=u+1+c,C=` ${` ${b}`.slice(-E)} |`,x=g[b],N=!g[b+1];if(x){let j="";if(Array.isArray(x)){let W=h.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),Z=x[1]||1;j=[`
15
13
  `,o(s.gutter,C.replace(/\d/g," "))," ",W,o(s.marker,"^").repeat(Z)].join(""),N&&r.message&&(j+=" "+o(s.message,r.message))}return[o(s.marker,">"),o(s.gutter,C),h.length>0?` ${h}`:"",j].join("")}else return` ${o(s.gutter,C)}${h.length>0?` ${h}`:""}`}).join(`
16
14
  `);return r.message&&!m&&(v=`${" ".repeat(E+1)}${r.message}
17
- ${v}`),n?i.reset(v):v}function zl(e,t,r,n={}){if(!nn){nn=!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),fi(e,{start:{column:r,line:t}},n)}var on=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function Hl(e,t){let r=on(e,`
18
- `,t-1),n=t-r-1,i=0;for(let s=r;s>=0;s=on(e,`
19
- `,s-1))i++;return{line:i,column:n}}function an(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=Hl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var Yl=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?`
15
+ ${v}`),n?i.reset(v):v}function Rl(e,t,r,n={}){if(!Jr){Jr=!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),si(e,{start:{column:r,line:t}},n)}var Qr=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function Pl(e,t){let r=Qr(e,`
16
+ `,t-1),n=t-r-1,i=0;for(let s=r;s>=0;s=Qr(e,`
17
+ `,s-1))i++;return{line:i,column:n}}function en(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=Pl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var xl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,$t=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?`
20
18
 
21
19
  ${r}
22
- `:""}`}set message(t){this.#n=t}},un=(e,t,r=!0)=>Gl(e,{start:t},{highlightCode:r}),Vl=(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:i,column:s}=r.groups;if(i&&s)return{line:Number(i),column:Number(s)};if(n=Number(n),n===e.length){let{line:o,column:a}=an(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return an(e,n,{oneBased:!0})},Xl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${Yl(n)})`);function Kl(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 i;e?(i=Vl(e,n),n=Xl(n)):n+=" while parsing empty string";let s=new Pt(n);throw s.fileName=r,i&&(s.codeFrame=un(e,i),s.rawCodeFrame=un(e,i,!1)),s}function ql(e){return e instanceof URL?mn(e):e}var Jl=e=>ee.resolve(ql(e)??".","package.json"),Zl=(e,t)=>{let r=typeof e=="string"?Kl(e):e;return t&&Tt(r),r};function Ql({cwd:e,normalize:t=!0}={}){let r=bn.readFileSync(Jl(e),"utf8");return Zl(r,t)}function hi(e){let t=_c("package.json",e);if(t)return{packageJson:Ql({...e,cwd:ee.dirname(t)}),path:t}}var ef=(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 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`,i=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?ef(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var kt={exports:{}},tf=Object.prototype.toString,rf=function(e){var t;return tf.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},nf=function(e){return e==null?[]:Array.isArray(e)?e:[e]},sf=Object.prototype.toString,of=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 ff(t)?"generatorfunction":"function";if(af(t))return"array";if(df(t))return"buffer";if(pf(t))return"arguments";if(cf(t))return"date";if(uf(t))return"error";if(lf(t))return"regexp";switch(pi(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(hf(t))return"generator";switch(r=sf.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 pi(e){return typeof e.constructor=="function"?e.constructor.name:null}function af(e){return Array.isArray?Array.isArray(e):e instanceof Array}function uf(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function cf(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function lf(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function ff(e,t){return pi(e)==="GeneratorFunction"}function hf(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function pf(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 df(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var gf=rf,mf=nf,xt=of,cn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},ln=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},Ge=e=>Array.isArray(e)?`[${e.map(Ge).join(", ")}]`:xt(e)==="string"?JSON.stringify(e):e,bf=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${xt(t)}-array`}return xt(e)},yf=(e,t)=>{let r=e==="array"?"string-array":e;return Ut.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},vf=["stopEarly","unknown","--"],di=["string","boolean","number"],Ut=di.map(e=>`${e}-array`),fn=[...di,"array",...Ut],gi=e=>{e=e||{};let t={};return vf.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}),gf(n)){let i=n,{type:s}=i;if(s){if(!fn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${Ge(fn)}, got ${Ge(s)}`);if(Ut.includes(s)){let[o]=s.split("-");cn(t,"array",{key:r,[o]:!0})}else cn(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=bf(o),u=yf(s,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${Ge(a)}`);ln(t,"default",r,o)}mf(i.alias).forEach(o=>{ln(t,"alias",o,r)})}}),t};kt.exports=gi;kt.exports.default=gi;var Ef=kt.exports,mi=ze(Ef),Wt={exports:{}},bi=e=>typeof e=="object"&&e!==null,yi=Symbol("skip"),hn=e=>bi(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Nt=(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=>hn(a)?Nt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===yi)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&hn(g)&&(g=Array.isArray(g)?s(g):Nt(g,t,r,n)),i[l]=g)}return i};Wt.exports=(e,t,r)=>{if(!bi(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Nt(e,t,r)};Wt.exports.mapObjectSkip=yi;var Cf=Wt.exports,pn=ze(Cf),Lf=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),gt=new Be({maxSize:1e5}),dn=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),gn=(e,t={})=>{if(!dn(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,u)=>{if(i&&dn(u)&&(u=pn(u,s())),!(n&&Lf(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 pn(e,s())};function vi(e,t){return Array.isArray(e)?Object.keys(e).map(r=>gn(e[r],t)):gn(e,t)}import Of from"node:process";import{dirname as wf}from"node:path";import{fileURLToPath as Af}from"node:url";var oe=e=>`--${Bt(e,{separator:"-"})}`,Pe=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var Sf=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${Pe(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: ${Pe(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${Pe(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=>`(\`${oe(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: ${Pe(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 u=s.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
- `))},Ei=(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=hi({cwd:wf(Af(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Of.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return Sf(n),n};var $f=({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},Ci=e=>{let t=$f(e);return t.arguments=e.input,t=vi(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=mi(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import Li from"node:process";var Rf=(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.`)},Pf=(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 \`${oe(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 \`${oe(e)}\`: \`${o.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${oe(e)}\`: \`${r}\`. ${s}`},xf=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=Pf(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
24
- `)}`)},Oi=(e,t)=>{Rf(e,t),xf(t.flags,e)},Nf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
25
- `))},wi=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(Nf(t),Li.exit(2))},If=(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},_f=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},Ai=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&If(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(_f(n),Li.exit(2))};var Tf=(e,t)=>{let{pkg:r}=e,n=be(e.argv,t),i="";e.help&&(i=Sn((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
26
- `)&&(i=_t(i,e.helpIndent)),i=`
27
- ${i}`),Tt(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?_t(`
20
+ `:""}`}set message(t){this.#n=t}},tn=(e,t,r=!0)=>Ol(e,{start:t},{highlightCode:r}),Nl=(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:i,column:s}=r.groups;if(i&&s)return{line:Number(i),column:Number(s)};if(n=Number(n),n===e.length){let{line:o,column:a}=en(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return en(e,n,{oneBased:!0})},Il=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${xl(n)})`);function _l(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 i;e?(i=Nl(e,n),n=Il(n)):n+=" while parsing empty string";let s=new $t(n);throw s.fileName=r,i&&(s.codeFrame=tn(e,i),s.rawCodeFrame=tn(e,i,!1)),s}function Tl(e){return e instanceof URL?ln(e):e}var Fl=e=>ee.resolve(Tl(e)??".","package.json"),Dl=(e,t)=>{let r=typeof e=="string"?_l(e):e;return t&&It(r),r};function Ml({cwd:e,normalize:t=!0}={}){let r=fn.readFileSync(Fl(e),"utf8");return Dl(r,t)}function oi(e){let t=bc("package.json",e);if(t)return{packageJson:Ml({...e,cwd:ee.dirname(t)}),path:t}}var jl=(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 jt(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?jl(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Gt={exports:{}},Gl=Object.prototype.toString,Bl=function(e){var t;return Gl.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},kl=function(e){return e==null?[]:Array.isArray(e)?e:[e]},Ul=Object.prototype.toString,Wl=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 Xl(t)?"generatorfunction":"function";if(zl(t))return"array";if(Jl(t))return"buffer";if(ql(t))return"arguments";if(Yl(t))return"date";if(Hl(t))return"error";if(Vl(t))return"regexp";switch(ai(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(Kl(t))return"generator";switch(r=Ul.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 ai(e){return typeof e.constructor=="function"?e.constructor.name:null}function zl(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Hl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Yl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Vl(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function Xl(e,t){return ai(e)==="GeneratorFunction"}function Kl(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function ql(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 Jl(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var Zl=Bl,Ql=kl,Rt=Wl,rn=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},nn=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},Ge=e=>Array.isArray(e)?`[${e.map(Ge).join(", ")}]`:Rt(e)==="string"?JSON.stringify(e):e,ef=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${Rt(t)}-array`}return Rt(e)},tf=(e,t)=>{let r=e==="array"?"string-array":e;return Bt.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},rf=["stopEarly","unknown","--"],ui=["string","boolean","number"],Bt=ui.map(e=>`${e}-array`),sn=[...ui,"array",...Bt],ci=e=>{e=e||{};let t={};return rf.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}),Zl(n)){let i=n,{type:s}=i;if(s){if(!sn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${Ge(sn)}, got ${Ge(s)}`);if(Bt.includes(s)){let[o]=s.split("-");rn(t,"array",{key:r,[o]:!0})}else rn(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=ef(o),u=tf(s,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${Ge(a)}`);nn(t,"default",r,o)}Ql(i.alias).forEach(o=>{nn(t,"alias",o,r)})}}),t};Gt.exports=ci;Gt.exports.default=ci;var nf=Gt.exports,li=ze(nf),kt={exports:{}},fi=e=>typeof e=="object"&&e!==null,hi=Symbol("skip"),on=e=>fi(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Pt=(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=>on(a)?Pt(a,t,r,n):a);if(Array.isArray(e))return s(e);for(let[o,a]of Object.entries(e)){let u=t(o,a,e);if(u===hi)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&on(g)&&(g=Array.isArray(g)?s(g):Pt(g,t,r,n)),i[l]=g)}return i};kt.exports=(e,t,r)=>{if(!fi(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Pt(e,t,r)};kt.exports.mapObjectSkip=hi;var sf=kt.exports,an=ze(sf),of=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),pt=new Be({maxSize:1e5}),un=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),cn=(e,t={})=>{if(!un(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,u)=>{if(i&&un(u)&&(u=an(u,s())),!(n&&of(n,a))){let l=`${r}${a}`;if(pt.has(l))a=pt.get(l);else{let g=jt(a,{separator:r});a.length<100&&pt.set(l,g),a=g}}return[a,u]};return an(e,s())};function pi(e,t){return Array.isArray(e)?Object.keys(e).map(r=>cn(e[r],t)):cn(e,t)}import af from"node:process";import{dirname as uf}from"node:path";import{fileURLToPath as cf}from"node:url";var oe=e=>`--${jt(e,{separator:"-"})}`,Re=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var lf=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(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=>`(\`${oe(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: ${Re(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 u=s.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(`
21
+ `))},di=(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=oi({cwd:uf(cf(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:af.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return lf(n),n};var ff=({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},gi=e=>{let t=ff(e);return t.arguments=e.input,t=pi(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=li(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import mi from"node:process";var hf=(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.`)},pf=(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 \`${oe(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 \`${oe(e)}\`: \`${o.join("`, `")}\`. ${s}`}else if(!n.includes(r))return`Unknown value for flag \`${oe(e)}\`: \`${r}\`. ${s}`},df=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=pf(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
22
+ `)}`)},bi=(e,t)=>{hf(e,t),df(t.flags,e)},gf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
23
+ `))},yi=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(gf(t),mi.exit(2))},mf=(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},bf=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},vi=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&mf(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(bf(n),mi.exit(2))};var yf=(e,t)=>{let{pkg:r}=e,n=me(e.argv,t),i="";e.help&&(i=En((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
24
+ `)&&(i=Nt(i,e.helpIndent)),i=`
25
+ ${i}`),It(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?Nt(`
28
26
  ${s}
29
27
  `,e.helpIndent):`
30
28
  ${s}`,i=`${s||""}${i}
31
- `;let o=m=>{console.log(i),zt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),zt.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||wi(u);let l=An(n,{exclude:["--",/^\w$/]}),g={...l};Oi(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 Ai(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:i,showHelp:o,showVersion:a}},Si=(e,t={})=>{let r=Ei(e,t),n=Ci(r),i=Tf(r,n);return zt.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import Ve from"node:path";import{Transform as kf}from"node:stream";import{fileURLToPath as Uf}from"node:url";import jf from"node:process";import Ff from"node:process";import Df from"node:fs/promises";import{fileURLToPath as Mf}from"node:url";import ye from"node:path";var $i=e=>e instanceof URL?Mf(e):e;async function Ri(e,{cwd:t=Ff.cwd(),type:r="file",stopAt:n}={}){let i=ye.resolve($i(t)??""),{root:s}=ye.parse(i);for(n=ye.resolve(i,$i(n??s));i&&i!==n&&i!==s;){let o=ye.isAbsolute(e)?e:ye.join(i,e);try{let a=await Df.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=ye.dirname(i)}}async function Ht({cwd:e=jf.cwd()}={}){return Ri("package.json",{cwd:e})}function Wf(e,t){return new kf({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?Ae[t](e):""} ${a}`).join(`
29
+ `;let o=m=>{console.log(i),Ut.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),Ut.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||yi(u);let l=vn(n,{exclude:["--",/^\w$/]}),g={...l};bi(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 vi(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:i,showHelp:o,showVersion:a}},Ei=(e,t={})=>{let r=di(e,t),n=gi(r),i=yf(r,n);return Ut.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import Ve from"node:path";import{Transform as kf}from"node:stream";import{fileURLToPath as Uf}from"node:url";import Lf from"node:process";import vf from"node:process";import Ef from"node:fs/promises";import{fileURLToPath as Cf}from"node:url";import be from"node:path";var Ci=e=>e instanceof URL?Cf(e):e;async function Li(e,{cwd:t=vf.cwd(),type:r="file",stopAt:n}={}){let i=be.resolve(Ci(t)??""),{root:s}=be.parse(i);for(n=be.resolve(i,Ci(n??s));i&&i!==n&&i!==s;){let o=be.isAbsolute(e)?e:be.join(i,e);try{let a=await Ef.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=be.dirname(i)}}async function Wt({cwd:e=Lf.cwd()}={}){return Li("package.json",{cwd:e})}var $i=qi(Si(),1);import Mf from"@pinojs/json-colorizer";var Df=/("(?:[^\\"]|\\.)*")|[:,]/g;function zt(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,u){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let l=JSON.stringify(o,i);if(l===void 0)return l;let g=n-a.length-u;if(l.length<=g){let m=l.replace(Df,(E,L)=>L||`${E} `);if(m.length<=g)return m}if(i!=null&&(o=JSON.parse(l),i=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(s(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)}: `,x=s(o[A],m,C.length+(L===b-1?0:1));x!==void 0&&E.push(C+x)}}if(E.length>0)return[v,r+E.join(`,
30
+ ${m}`),h].join(`
31
+ ${a}`)}return l}(e,"",0)}function Ri(e){return Mf(zt(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var jf=(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]=Ht(e[i],s,r):e.includes(s)||n.push(s);return n};function Ht(e,t,r={arrayMerge:jf}){return(0,$i.default)(e,t,r)}function Wf(e,t){return new kf({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?we[t](e):""} ${a}`).join(`
32
32
  `)+`
33
33
  `;this.push(o),i()}})}function zf(e,t){let r=`
34
34
  Usage
@@ -36,27 +36,27 @@ ${s}`,i=`${s||""}${i}
36
36
  `;if(r+=`
37
37
  Options`,Object.keys(t).length>0)for(let n of Object.keys(t))switch(n){case"init":{r+=`
38
38
  --init, -i Initialize by copying starter config files to your project root.`;break}case"check":{r+=`
39
- --check, -c Check for and report issues. Same as ${e}.`;break}case"fix":{r+=`
39
+ --check, -c Check for and report issues. Same as \`${e}\`.`;break}case"fix":{r+=`
40
40
  --fix, -f Fix all auto-fixable issues, and report the un-fixable.`;break}case"printConfig":{r+=`
41
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+=`
42
42
  --help, -h Print this help info.`,r+=`
43
43
  --version, -v Print the package version.
44
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 Yt(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n=1;try{let i=Bf(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){Yf(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 Pi(e,t,r){e.length===0&&!t.defaultArguments&&(r.write(`Error: This command must be used with a file argument
45
- `),process.exit(1))}async function xi(e,t,r,n){let i=Si({allowUnknownFlags:!1,booleanDefault:void 0,flags:Hf(n),help:zf(e,n),importMeta:import.meta}),{flags:s,input:o}=i,a=Object.keys(n).reduce((g,m)=>(s[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.
46
- `):a.check=n.check);let l=0;for(let[g,m]of Object.entries(a))if(typeof m.command=="function"){Pi(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")Pi(o,m,u),l+=await Yt(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await Ht();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 Ht({cwd:Uf(import.meta.url)});if(L===void 0){u.write(`Error: The script being called was not in a package, weird.
45
+ `),process.exit(1))}async function xi(e,t,r,n){let i=Ei({allowUnknownFlags:!1,booleanDefault:void 0,flags:Hf(n),help:zf(e,n),importMeta:import.meta}),{flags:s,input:o}=i,a=Object.keys(n).reduce((g,m)=>(s[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.
46
+ `):a.check=n.check);let l=0;for(let[g,m]of Object.entries(a))if(typeof m.command=="function"){Pi(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")Pi(o,m,u),l+=await Yt(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await Wt();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 Wt({cwd:Uf(import.meta.url)});if(L===void 0){u.write(`Error: The script being called was not in a package, weird.
47
47
  `),l+=1;break}let v=Ve.join(Ve.dirname(L),"init/"),h=Ve.dirname(E);u.write(`Adding initial configuration files from:
48
48
  "${v}" \u2192 "${h}"
49
49
  `);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/")&&Ve.extname(b)===".json"){u.write(`Merging:
50
50
  "${c}" \u2192 "${b}"
51
- `);let x=ve.readJSONSync(c),N=ve.readJSONSync(b),j=Ze(N,x);return ve.writeJSONSync(b,j,{spaces:2}),!1}return C?(u.write(`Overwriting:
51
+ `);let x=ve.readJSONSync(c),N=ve.readJSONSync(b),j=Ht(N,x);return ve.writeJSONSync(b,j,{spaces:2}),!1}return C?(u.write(`Overwriting:
52
52
  "${c}" \u2192 "${b}"
53
53
  `),!0):(u.write(`Copying:
54
54
  "${c}" \u2192 "${b}"
55
55
  `),!0)}return!0},overwrite:!0})}catch{}l+=0;break}case"check":{console.error("There is no default implementation for check. The [tool]-config package must define a command."),l+=1;break}case"fix":{console.error("There is no default implementation for fix. The [tool]-config package must define a command."),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}.
56
56
  `),l+=1;break}let h=await Gf(v).search(L);if(!h?.config){u.write(`Error: Could not find or parse config file for ${v}.
57
57
  `),l+=1;break}u.write(`${t} config path: "${h?.filepath}"
58
- `),u.write(ir(h.config)),u.write(`
59
- `);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Yf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}var Vt={check:["cspell-config","eslint-config","mdat-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],printConfig:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],help:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],version:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],fix:["eslint-config","mdat-config","prettier-config","stylelint-config"]};function Vf(e){return e.replaceAll(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase())}function Ni(e,t){return t===1?e:e+"s"}async function Xf(e,t,r,n){let i=[],s=[];for(let o of t)e.write(`Running "${o}${n.join(" ")} ${r.join(" ")}"
60
- `),await Yt(e,{command:o,options:r},n)===0?i.push(o):s.push(o);return i.length>0&&e.write(`\u2705 ${Ae.green.bold(`${i.length} Successful ${Ni("command",i.length)}:`)} ${i.join(", ")}
61
- `),s.length>0&&e.write(`\u274C ${Ae.green.bold(`${s.length} Failed ${Ni("command",s.length)}:`)} ${s.join(", ")}
58
+ `),u.write(Ri(h.config)),u.write(`
59
+ `);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Yf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}var Vt={check:["cspell-config","eslint-config","mdat-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","mdat-config","remark-config","repo-config","prettier-config","stylelint-config"],printConfig:["cspell-config","eslint-config","mdat-config","remark-config","repo-config","prettier-config","stylelint-config"],help:["cspell-config","eslint-config","mdat-config","remark-config","repo-config","prettier-config","stylelint-config"],version:["cspell-config","eslint-config","mdat-config","remark-config","repo-config","prettier-config","stylelint-config"],fix:["eslint-config","mdat-config","prettier-config","stylelint-config"]};function Vf(e){return e.replaceAll(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase())}function Ni(e,t){return t===1?e:e+"s"}async function Xf(e,t,r,n){let i=[],s=[];for(let o of t)e.write(`Running "${o}${n.join(" ")} ${r.join(" ")}"
60
+ `),await Yt(e,{command:o,options:r},n)===0?i.push(o):s.push(o);return i.length>0&&e.write(`\u2705 ${we.green.bold(`${i.length} Successful ${Ni("command",i.length)}:`)} ${i.join(", ")}
61
+ `),s.length>0&&e.write(`\u274C ${we.green.bold(`${s.length} Failed ${Ni("command",s.length)}:`)} ${s.join(", ")}
62
62
  `),s.length>0?1:0}await xi("shared-config","\u{1F52C}","yellow",Object.keys(Vt).reduce((e,t)=>(e[t]={async command(r,n){return Xf(r,Vt[t],[`--${Vf(t)}`],n)},defaultArguments:[]},e),{}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/shared-config",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "type": "module",
5
5
  "description": "A collection of shared configurations for various linters and formatting tools. All managed as a single dependency, and invoked via a single command.",
6
6
  "repository": {
@@ -45,18 +45,18 @@
45
45
  "cosmiconfig": "^9.0.0",
46
46
  "execa": "^8.0.1",
47
47
  "fs-extra": "^11.2.0",
48
- "@kitschpatrol/cspell-config": "4.7.2",
49
- "@kitschpatrol/eslint-config": "4.7.2",
50
- "@kitschpatrol/mdat-config": "4.7.2",
51
- "@kitschpatrol/prettier-config": "4.7.2",
52
- "@kitschpatrol/stylelint-config": "4.7.2",
53
- "@kitschpatrol/remark-config": "4.7.2",
54
- "@kitschpatrol/repo-config": "4.7.2"
48
+ "@kitschpatrol/eslint-config": "4.7.4",
49
+ "@kitschpatrol/prettier-config": "4.7.4",
50
+ "@kitschpatrol/cspell-config": "4.7.4",
51
+ "@kitschpatrol/stylelint-config": "4.7.4",
52
+ "@kitschpatrol/remark-config": "4.7.4",
53
+ "@kitschpatrol/mdat-config": "4.7.4",
54
+ "@kitschpatrol/repo-config": "4.7.4"
55
55
  },
56
56
  "devDependencies": {
57
57
  "camelcase": "^8.0.0",
58
58
  "chalk": "^5.3.0",
59
- "globby": "^14.0.1"
59
+ "globby": "^14.0.2"
60
60
  },
61
61
  "publishConfig": {
62
62
  "access": "public"
package/readme.md CHANGED
@@ -154,7 +154,7 @@ shared-config [<file|glob> ...]
154
154
 
155
155
  | Option | Argument | Description |
156
156
  | ------------------------ | -------- | ---------------------------------------------------------------- |
157
- | `--check`<br>`-c` | | Check for and report issues. Same as shared-config. |
157
+ | `--check`<br>`-c` | | Check for and report issues. Same as `shared-config`. |
158
158
  | `--init`<br>`-i` | | Initialize by copying starter config files to your project root. |
159
159
  | `--print-config`<br>`-p` | `<path>` | Print the effective configuration at a certain path. |
160
160
  | `--fix`<br>`-f` | | Fix all auto-fixable issues, and report the un-fixable. |