@kitschpatrol/prettier-config 4.7.1 → 4.7.3

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 +25 -25
  2. package/package.json +5 -5
  3. package/readme.md +8 -8
package/bin/cli.js CHANGED
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
- var ki=Object.create;var Kt=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames;var zi=Object.getPrototypeOf,Hi=Object.prototype.hasOwnProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Yi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wi(t))!Hi.call(e,i)&&i!==r&&Kt(e,i,{get:()=>t[i],enumerable:!(n=Ui(t,i))||n.enumerable});return e};var Xi=(e,t,r)=>(r=e!=null?ki(zi(e)):{},Vi(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var Qt=Yi((Vf,Zt)=>{"use strict";var Ki=function(t){return qi(t)&&!Ji(t)};function qi(e){return!!e&&typeof e=="object"}function Ji(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||es(e)}var Zi=typeof Symbol=="function"&&Symbol.for,Qi=Zi?Symbol.for("react.element"):60103;function es(e){return e.$$typeof===Qi}function ts(e){return Array.isArray(e)?[]:{}}function Le(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ue(ts(e),e,t):e}function rs(e,t,r){return e.concat(t).map(function(n){return Le(n,r)})}function ns(e,t){if(!t.customMerge)return ue;var r=t.customMerge(e);return typeof r=="function"?r:ue}function is(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function qt(e){return Object.keys(e).concat(is(e))}function Jt(e,t){try{return t in e}catch{return!1}}function ss(e,t){return Jt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function os(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){ss(e,i)||(Jt(e,i)&&r.isMergeableObject(t[i])?n[i]=ns(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||rs,r.isMergeableObject=r.isMergeableObject||Ki,r.cloneUnlessOtherwiseSpecified=Le;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):os(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 as=ue;Zt.exports=as});var er=Xi(Qt(),1);import cs from"@pinojs/json-colorizer";var us=/("(?:[^\\"]|\\.)*")|[:,]/g;function qe(e,t={}){let r=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),n=r===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer: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(us,(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 tr(e){return cs(qe(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var ls=(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]=Je(e[i],s,r):e.includes(s)||n.push(s);return n};function Je(e,t,r={arrayMerge:ls}){return(0,er.default)(e,t,r)}var rr=(e=0)=>t=>`\x1B[${t+e}m`,nr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,ir=(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]}},Zf=Object.keys(T.modifier),fs=Object.keys(T.color),hs=Object.keys(T.bgColor),Qf=[...fs,...hs];function ps(){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=rr(),T.color.ansi256=nr(),T.color.ansi16m=ir(),T.bgColor.ansi=rr(10),T.bgColor.ansi256=nr(10),T.bgColor.ansi16m=ir(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 ds=ps(),H=ds;import Ze from"node:process";import gs from"node:os";import sr from"node:tty";function z(e,t=globalThis.Deno?globalThis.Deno.args:Ze.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}=Ze,Ne;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?Ne=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(Ne=1);function ms(){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 bs(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ys(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=ms();n!==void 0&&(Ne=n);let i=r?Ne: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(Ze.platform==="win32"){let o=gs.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 or(e,t={}){let r=ys(e,{streamIsTTY:e&&e.isTTY,...t});return bs(r)}var vs={stdout:or({isTTY:sr.isatty(1)}),stderr:or({isTTY:sr.isatty(2)})},ar=vs;function ur(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 cr(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 ki=Object.create;var Kt=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames;var zi=Object.getPrototypeOf,Hi=Object.prototype.hasOwnProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Yi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wi(t))!Hi.call(e,i)&&i!==r&&Kt(e,i,{get:()=>t[i],enumerable:!(n=Ui(t,i))||n.enumerable});return e};var Xi=(e,t,r)=>(r=e!=null?ki(zi(e)):{},Vi(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var wi=Yi((V0,Oi)=>{"use strict";var Cf=function(t){return Lf(t)&&!Of(t)};function Lf(e){return!!e&&typeof e=="object"}function Of(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Sf(e)}var wf=typeof Symbol=="function"&&Symbol.for,Af=wf?Symbol.for("react.element"):60103;function Sf(e){return e.$$typeof===Af}function $f(e){return Array.isArray(e)?[]:{}}function Re(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ye($f(e),e,t):e}function Rf(e,t,r){return e.concat(t).map(function(n){return Re(n,r)})}function Pf(e,t){if(!t.customMerge)return ye;var r=t.customMerge(e);return typeof r=="function"?r:ye}function xf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ci(e){return Object.keys(e).concat(xf(e))}function Li(e,t){try{return t in e}catch{return!1}}function Nf(e,t){return Li(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function If(e,t,r){var n={};return r.isMergeableObject(e)&&Ci(e).forEach(function(i){n[i]=Re(e[i],r)}),Ci(t).forEach(function(i){Nf(e,i)||(Li(e,i)&&r.isMergeableObject(t[i])?n[i]=Pf(i,r)(e[i],t[i],r):n[i]=Re(t[i],r))}),n}function ye(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Rf,r.isMergeableObject=r.isMergeableObject||Cf,r.cloneUnlessOtherwiseSpecified=Re;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):If(e,t,r):Re(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 _f=ye;Oi.exports=_f});var qt=(e=0)=>t=>`\x1B[${t+e}m`,Jt=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Zt=(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]}},Vf=Object.keys(T.modifier),Ki=Object.keys(T.color),qi=Object.keys(T.bgColor),Xf=[...Ki,...qi];function Ji(){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=Jt(),T.color.ansi16m=Zt(),T.bgColor.ansi=qt(10),T.bgColor.ansi256=Jt(10),T.bgColor.ansi16m=Zt(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 Zi=Ji(),H=Zi;import qe from"node:process";import Qi from"node:os";import Qt 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,Ne;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?Ne=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(Ne=1);function es(){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 ts(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function rs(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=es();n!==void 0&&(Ne=n);let i=r?Ne: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=Qi.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 er(e,t={}){let r=rs(e,{streamIsTTY:e&&e.isTTY,...t});return ts(r)}var ns={stdout:er({isTTY:Qt.isatty(1)}),stderr:er({isTTY:Qt.isatty(2)})},tr=ns;function rr(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 nr(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:lr,stderr:fr}=ar,Qe=Symbol("GENERATOR"),ce=Symbol("STYLER"),Oe=Symbol("IS_EMPTY"),hr=["ansi","ansi","ansi256","ansi16m"],le=Object.create(null),Es=(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=lr?lr.level:0;e.level=t.level===void 0?r:t.level};var Cs=e=>{let t=(...r)=>r.join(" ");return Es(t,e),Object.setPrototypeOf(t,we.prototype),t};function we(e){return Cs(e)}Object.setPrototypeOf(we.prototype,Function.prototype);for(let[e,t]of Object.entries(H))le[e]={get(){let r=Ie(this,tt(t.open,t.close,this[ce]),this[Oe]);return Object.defineProperty(this,e,{value:r}),r}};le.visible={get(){let e=Ie(this,this[ce],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var et=(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"?et("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),Ls=["rgb","hex","ansi256"];for(let e of Ls){le[e]={get(){let{level:r}=this;return function(...n){let i=tt(et(e,hr[r],"color",...n),H.color.close,this[ce]);return Ie(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=tt(et(e,hr[r],"bgColor",...n),H.bgColor.close,this[ce]);return Ie(this,i,this[Oe])}}}}var Os=Object.defineProperties(()=>{},{...le,level:{enumerable:!0,get(){return this[Qe].level},set(e){this[Qe].level=e}}}),tt=(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}},Ie=(e,t,r)=>{let n=(...i)=>ws(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Os),n[Qe]=e,n[ce]=t,n[Oe]=r,n},ws=(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=ur(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
8
- `);return s!==-1&&(t=cr(t,i,n,s)),n+t+i};Object.defineProperties(we.prototype,le);var As=we(),c0=we({level:fr?fr.level:0});var pr=As;import{cosmiconfig as Mf}from"cosmiconfig";import{execa as jf}from"execa";import ve from"fs-extra";import Wt from"node:process";import Ss,{format as $s}from"util";import{normalize as Rs,resolve as Ps}from"path";import{readFileSync as xs}from"fs";import ee from"node:path";import Ns from"node:process";import{fileURLToPath as dn}from"node:url";import gn from"node:fs";import mn from"os";import bn 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 yn(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 vn(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 Is(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,gt=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=Is(t),s=typeof t=="string",o=_s(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)})),Ti(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;Bi();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)&&xe(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)}Yt(N,!0),Yt(N,!1),xi(N),Ni(),Vt(N,c.aliases,u,!0),Ii(N),a["set-placeholder-key"]&&_i(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=Pe("_",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)||xe(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)&&!xe(S)){if(u[d]!==void 0){let R=u[d];p=Array.isArray(R)?R:[R]}}else{q(y)||p.push(Ve(d,y,!0));for(let R=f+1;R<O.length&&!(!a["greedy-arrays"]&&p.length>0||w&&typeof w=="number"&&p.length>=w||(S=O[R],/^-/.test(S)&&!b.test(S)&&!xe(S)));R++)f=R,p.push(Ve(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(".");Ht(f,S)}let y=Ve(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 Ht(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Ht(d,f)}function Ve(f,d,O){O&&(d=Ts(d)),(P(f,c.bools)||P(f,c.counts))&&typeof d=="string"&&(d=d==="true");let y=Array.isArray(d)?d.map(function(p){return Pe(f,p)}):Pe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=rt()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function Pe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(vn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function xi(f){let d=Object.create(null);Vt(d,c.aliases,u),Object.keys(c.configs).forEach(function(O){let y=f[O]||d[O];if(y)try{let p=null,S=J.resolve(J.cwd(),y),w=c.configs[O];if(typeof w=="function"){try{p=w(S)}catch(R){p=R}if(p instanceof Error){C=p;return}}else p=J.require(S);Xe(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Xe(f,d){Object.keys(f).forEach(function(O){let y=f[O],p=d?d+"."+O:O;typeof y=="object"&&y!==null&&!Array.isArray(y)&&a["dot-notation"]?Xe(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function Ni(){typeof l<"u"&&l.forEach(function(f){Xe(f)})}function Yt(f,d){if(typeof g>"u")return;let O=typeof g=="string"?g:"",y=J.env();Object.keys(y).forEach(function(p){if(O===""||p.lastIndexOf(O,0)===0){let S=p.split("__").map(function(w,R){return R===0&&(w=w.substring(O.length)),Ae(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function Ii(f){let d,O=new Set;Object.keys(f).forEach(function(y){if(!O.has(y)&&(d=P(y,c.coercions),typeof d=="function"))try{let p=Pe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function _i(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function Vt(f,d,O,y=!1){Object.keys(O).forEach(function(p){Ee(f,p.split("."))||(Ce(f,p.split("."),O[p]),y&&(v[p]=!0),(d[p]||[]).forEach(function(S){Ee(f,S.split("."))||Ce(f,S.split("."),O[p])}))})}function Ee(f,d){let O=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(p){O=O[p]||{}});let y=d[d.length-1];return typeof O!="object"?!1:y in O}function Ce(f,d,O){let y=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(M){M=dr(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=dr(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===rt()?y[p]=rt(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 Ti(...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=yn(y,"-");p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].forEach(function(y){c.aliases[y]=[O].concat(c.aliases[O].filter(function(p){return y!==p}))}))})})}function P(f,d){let O=[].concat(c.aliases[f]||[],f),y=Object.keys(d),p=O.find(S=>y.includes(S));return p?d[p]:!1}function Xt(f){let d=Object.keys(c);return[].concat(d.map(y=>c[y])).some(function(y){return Array.isArray(y)?y.includes(f):y[f]})}function Fi(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Xt(p[1])})}function Di(f){if(f.match(b)||!f.match(/^-[^-]+/))return!1;let d=!0,O,y=f.slice(1).split("");for(let p=0;p<y.length;p++){if(O=f.slice(p+2),!Xt(y[p])){d=!1;break}if(y[p+1]&&y[p+1]==="="||O==="-"||/[A-Za-z]/.test(y[p])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||y[p+1]&&y[p+1].match(/\W/))break}return d}function xe(f){return a["unknown-options-as-args"]&&Mi(f)}function Mi(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||Di(f)?!1:!Fi(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:ji(Gi(f))}function ji(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function Gi(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 Bi(){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 _s(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 rt(e){return e!==void 0?e+1:1}function dr(e){return e==="__proto__"?"___proto___":e}function Ts(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var nt,it,st,gr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,mr=(it=(nt=process==null?void 0:process.versions)===null||nt===void 0?void 0:nt.node)!==null&&it!==void 0?it:(st=process==null?void 0:process.version)===null||st===void 0?void 0:st.slice(1);if(mr&&Number(mr.match(/^([^.]+)/)[1])<gr)throw Error(`yargs parser supports a minimum Node.js version of ${gr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Fs=process?process.env:{},En=new gt({cwd:process.cwd,env:()=>Fs,format:$s,normalize:Rs,resolve:Ps,require:e=>{if(typeof Ke<"u")return Ke(e);if(e.match(/\.json$/))return JSON.parse(xs(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),be=function(t,r){return En.parse(t.slice(),r).argv};be.detailed=function(e,t){return En.parse(e.slice(),t)};be.camelCase=Ae;be.decamelize=yn;be.looksLikeNumber=vn;var Cn=e=>typeof e=="object"&&e!==null,br=e=>Cn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Ds=Symbol("mapObjectSkip"),mt=(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=>br(a)?mt(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===Ds)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&br(g)&&(g=Array.isArray(g)?s(g):mt(g,t,r,n)),i[l]=g)}return i};function yr(e,t,r){if(!Cn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return mt(e,t,r)}var Ms=/[\p{Lu}]/u,js=/[\p{Ll}]/u,vr=/^[\p{Lu}](?![\p{Lu}])/gu,Ln=/([\p{Alpha}\p{N}_]|$)/u,Nt=/[_.\- ]+/,Gs=new RegExp("^"+Nt.source),Er=new RegExp(Nt.source+Ln.source,"gu"),Cr=new RegExp("\\d+"+Ln.source,"gu"),Bs=(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&&Ms.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&js.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},ks=(e,t)=>(vr.lastIndex=0,e.replaceAll(vr,r=>t(r))),Us=(e,t)=>(Er.lastIndex=0,Cr.lastIndex=0,e.replaceAll(Cr,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(Er,(r,n)=>t(n)));function Ws(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?Nt.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=Bs(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Gs,""),e=t.preserveConsecutiveUppercase?ks(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Us(e,n))}var Ge=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()])}},zs=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),ot=new Ge({maxSize:1e5}),Lr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Or=(e,t={})=>{if(!Lr(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&&Lr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=yr(m,u(E)))}if(!(r&&zs(r,g))){let E=n?`${g}_`:g;if(ot.has(E))g=ot.get(E);else{let L=Ws(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&ot.set(E,L),g=L}}return[g,m]};return yr(e,u(void 0))};function On(e,t){return Array.isArray(e)?Object.keys(e).map(r=>Or(e[r],t)):Or(e,t)}function wn(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:ir,stderr:sr}=tr,Je=Symbol("GENERATOR"),ue=Symbol("STYLER"),Le=Symbol("IS_EMPTY"),or=["ansi","ansi","ansi256","ansi16m"],ce=Object.create(null),is=(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=ir?ir.level:0;e.level=t.level===void 0?r:t.level};var ss=e=>{let t=(...r)=>r.join(" ");return is(t,e),Object.setPrototypeOf(t,Oe.prototype),t};function Oe(e){return ss(e)}Object.setPrototypeOf(Oe.prototype,Function.prototype);for(let[e,t]of Object.entries(H))ce[e]={get(){let r=Ie(this,Qe(t.open,t.close,this[ue]),this[Le]);return Object.defineProperty(this,e,{value:r}),r}};ce.visible={get(){let e=Ie(this,this[ue],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ze=(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"?Ze("rgb",t,r,...H.hexToRgb(...n)):H[r][e](...n),os=["rgb","hex","ansi256"];for(let e of os){ce[e]={get(){let{level:r}=this;return function(...n){let i=Qe(Ze(e,or[r],"color",...n),H.color.close,this[ue]);return Ie(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=Qe(Ze(e,or[r],"bgColor",...n),H.bgColor.close,this[ue]);return Ie(this,i,this[Le])}}}}var as=Object.defineProperties(()=>{},{...ce,level:{enumerable:!0,get(){return this[Je].level},set(e){this[Je].level=e}}}),Qe=(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}},Ie=(e,t,r)=>{let n=(...i)=>us(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,as),n[Je]=e,n[ue]=t,n[Le]=r,n},us=(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=rr(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
6
+ `);return s!==-1&&(t=nr(t,i,n,s)),n+t+i};Object.defineProperties(Oe.prototype,ce);var cs=Oe(),i0=Oe({level:sr?sr.level:0});var ar=cs;import{cosmiconfig as Mf}from"cosmiconfig";import{execa as jf}from"execa";import ve from"fs-extra";import kt from"node:process";import ls,{format as fs}from"util";import{normalize as hs,resolve as ps}from"path";import{readFileSync as ds}from"fs";import ee from"node:path";import gs from"node:process";import{fileURLToPath as un}from"node:url";import cn from"node:fs";import ln from"os";import fn from"url";function we(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 hn(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 pn(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 ms(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,pt=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=ms(t),s=typeof t=="string",o=bs(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)})),Ti(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;Bi();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)&&xe(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)}Yt(N,!0),Yt(N,!1),xi(N),Ni(),Vt(N,c.aliases,u,!0),Ii(N),a["set-placeholder-key"]&&_i(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=>we(d)).join(".")],delete N[f]});function W(f){let d=Pe("_",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)||xe(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)&&!xe(S)){if(u[d]!==void 0){let R=u[d];p=Array.isArray(R)?R:[R]}}else{q(y)||p.push(Ve(d,y,!0));for(let R=f+1;R<O.length&&!(!a["greedy-arrays"]&&p.length>0||w&&typeof w=="number"&&p.length>=w||(S=O[R],/^-/.test(S)&&!b.test(S)&&!xe(S)));R++)f=R,p.push(Ve(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 we(w)}).join(".");Ht(f,S)}let y=Ve(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 Ht(f,d){c.aliases[f]&&c.aliases[f].length||(c.aliases[f]=[d],L[d]=!0),c.aliases[d]&&c.aliases[d].length||Ht(d,f)}function Ve(f,d,O){O&&(d=ys(d)),(P(f,c.bools)||P(f,c.counts))&&typeof d=="string"&&(d=d==="true");let y=Array.isArray(d)?d.map(function(p){return Pe(f,p)}):Pe(f,d);return P(f,c.counts)&&(q(y)||typeof y=="boolean")&&(y=et()),P(f,c.normalize)&&P(f,c.arrays)&&(Array.isArray(d)?y=d.map(p=>J.normalize(p)):y=J.normalize(d)),y}function Pe(f,d){return!a["parse-positional-numbers"]&&f==="_"||!P(f,c.strings)&&!P(f,c.bools)&&!Array.isArray(d)&&(pn(d)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${d}`)))||!q(d)&&P(f,c.numbers))&&(d=Number(d)),d}function xi(f){let d=Object.create(null);Vt(d,c.aliases,u),Object.keys(c.configs).forEach(function(O){let y=f[O]||d[O];if(y)try{let p=null,S=J.resolve(J.cwd(),y),w=c.configs[O];if(typeof w=="function"){try{p=w(S)}catch(R){p=R}if(p instanceof Error){C=p;return}}else p=J.require(S);Xe(p)}catch(p){p.name==="PermissionDenied"?C=p:f[O]&&(C=Error(h("Invalid JSON config file: %s",y)))}})}function Xe(f,d){Object.keys(f).forEach(function(O){let y=f[O],p=d?d+"."+O:O;typeof y=="object"&&y!==null&&!Array.isArray(y)&&a["dot-notation"]?Xe(y,p):(!Ee(N,p.split("."))||P(p,c.arrays)&&a["combine-arrays"])&&_(p,y)})}function Ni(){typeof l<"u"&&l.forEach(function(f){Xe(f)})}function Yt(f,d){if(typeof g>"u")return;let O=typeof g=="string"?g:"",y=J.env();Object.keys(y).forEach(function(p){if(O===""||p.lastIndexOf(O,0)===0){let S=p.split("__").map(function(w,R){return R===0&&(w=w.substring(O.length)),we(w)});(d&&c.configs[S.join(".")]||!d)&&!Ee(f,S)&&_(S.join("."),y[p])}})}function Ii(f){let d,O=new Set;Object.keys(f).forEach(function(y){if(!O.has(y)&&(d=P(y,c.coercions),typeof d=="function"))try{let p=Pe(y,d(f[y]));[].concat(c.aliases[y]||[],y).forEach(S=>{O.add(S),f[S]=p})}catch(p){C=p}})}function _i(f){return c.keys.forEach(d=>{~d.indexOf(".")||typeof f[d]>"u"&&(f[d]=void 0)}),f}function Vt(f,d,O,y=!1){Object.keys(O).forEach(function(p){Ee(f,p.split("."))||(Ce(f,p.split("."),O[p]),y&&(v[p]=!0),(d[p]||[]).forEach(function(S){Ee(f,S.split("."))||Ce(f,S.split("."),O[p])}))})}function Ee(f,d){let O=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(p){O=O[p]||{}});let y=d[d.length-1];return typeof O!="object"?!1:y in O}function Ce(f,d,O){let y=f;a["dot-notation"]||(d=[d.join(".")]),d.slice(0,-1).forEach(function(M){M=ur(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=ur(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===et()?y[p]=et(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 Ti(...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=we(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=hn(y,"-");p!==O&&c.aliases[O].indexOf(p)===-1&&(c.aliases[O].push(p),L[p]=!0)}}),c.aliases[O].forEach(function(y){c.aliases[y]=[O].concat(c.aliases[O].filter(function(p){return y!==p}))}))})})}function P(f,d){let O=[].concat(c.aliases[f]||[],f),y=Object.keys(d),p=O.find(S=>y.includes(S));return p?d[p]:!1}function Xt(f){let d=Object.keys(c);return[].concat(d.map(y=>c[y])).some(function(y){return Array.isArray(y)?y.includes(f):y[f]})}function Fi(f,...d){return[].concat(...d).some(function(y){let p=f.match(y);return p&&Xt(p[1])})}function Di(f){if(f.match(b)||!f.match(/^-[^-]+/))return!1;let d=!0,O,y=f.slice(1).split("");for(let p=0;p<y.length;p++){if(O=f.slice(p+2),!Xt(y[p])){d=!1;break}if(y[p+1]&&y[p+1]==="="||O==="-"||/[A-Za-z]/.test(y[p])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||y[p+1]&&y[p+1].match(/\W/))break}return d}function xe(f){return a["unknown-options-as-args"]&&Mi(f)}function Mi(f){return f=f.replace(/^-{3,}/,"--"),f.match(b)||Di(f)?!1:!Fi(f,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ae(f){return!P(f,c.bools)&&!P(f,c.counts)&&`${f}`in u?u[f]:ji(Gi(f))}function ji(f){return{[Y.BOOLEAN]:!0,[Y.STRING]:"",[Y.NUMBER]:void 0,[Y.ARRAY]:[]}[f]}function Gi(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 Bi(){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 bs(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 et(e){return e!==void 0?e+1:1}function ur(e){return e==="__proto__"?"___proto___":e}function ys(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var tt,rt,nt,cr=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,lr=(rt=(tt=process==null?void 0:process.versions)===null||tt===void 0?void 0:tt.node)!==null&&rt!==void 0?rt:(nt=process==null?void 0:process.version)===null||nt===void 0?void 0:nt.slice(1);if(lr&&Number(lr.match(/^([^.]+)/)[1])<cr)throw Error(`yargs parser supports a minimum Node.js version of ${cr}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var vs=process?process.env:{},dn=new pt({cwd:process.cwd,env:()=>vs,format:fs,normalize:hs,resolve:ps,require:e=>{if(typeof Ke<"u")return Ke(e);if(e.match(/\.json$/))return JSON.parse(ds(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),me=function(t,r){return dn.parse(t.slice(),r).argv};me.detailed=function(e,t){return dn.parse(e.slice(),t)};me.camelCase=we;me.decamelize=hn;me.looksLikeNumber=pn;var gn=e=>typeof e=="object"&&e!==null,fr=e=>gn(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Es=Symbol("mapObjectSkip"),dt=(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=>fr(a)?dt(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===Es)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&fr(g)&&(g=Array.isArray(g)?s(g):dt(g,t,r,n)),i[l]=g)}return i};function hr(e,t,r){if(!gn(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return dt(e,t,r)}var Cs=/[\p{Lu}]/u,Ls=/[\p{Ll}]/u,pr=/^[\p{Lu}](?![\p{Lu}])/gu,mn=/([\p{Alpha}\p{N}_]|$)/u,Pt=/[_.\- ]+/,Os=new RegExp("^"+Pt.source),dr=new RegExp(Pt.source+mn.source,"gu"),gr=new RegExp("\\d+"+mn.source,"gu"),ws=(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&&Cs.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&Ls.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},As=(e,t)=>(pr.lastIndex=0,e.replaceAll(pr,r=>t(r))),Ss=(e,t)=>(dr.lastIndex=0,gr.lastIndex=0,e.replaceAll(gr,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(dr,(r,n)=>t(n)));function $s(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?Pt.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=ws(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(Os,""),e=t.preserveConsecutiveUppercase?As(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Ss(e,n))}var Ge=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()])}},Rs=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),it=new Ge({maxSize:1e5}),mr=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),br=(e,t={})=>{if(!mr(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&&mr(m)){let E=l===void 0?g:`${l}.${g}`;a.has(E)||(m=hr(m,u(E)))}if(!(r&&Rs(r,g))){let E=n?`${g}_`:g;if(it.has(E))g=it.get(E);else{let L=$s(g,{pascalCase:n,locale:!1,preserveConsecutiveUppercase:o});g.length<100&&it.set(E,L),g=L}}return[g,m]};return hr(e,u(void 0))};function bn(e,t){return Array.isArray(e)?Object.keys(e).map(r=>br(e[r],t)):br(e,t)}function yn(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 We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hs=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},Ys=We(Hs);function Vs(e){let t=Ys(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Xs(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 It(e,t=0,r={}){return Xs(Vs(e),t,r)}var Ks=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},An=Ks,qs="2.0.0",Sn=256,Js=Number.MAX_SAFE_INTEGER||9007199254740991,Zs=16,Qs=Sn-6,eo=["major","premajor","minor","preminor","patch","prepatch","prerelease"],$n={MAX_LENGTH:Sn,MAX_SAFE_COMPONENT_LENGTH:Zs,MAX_SAFE_BUILD_LENGTH:Qs,MAX_SAFE_INTEGER:Js,RELEASE_TYPES:eo,SEMVER_SPEC_VERSION:qs,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},bt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=$n,s=An;t=e.exports={};let o=t.re=[],a=t.safeRe=[],u=t.src=[],l=t.t={},g=0,m="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",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*$")})(bt,bt.exports);var to=bt.exports,ro=Object.freeze({loose:!0}),no=Object.freeze({}),io=e=>e?typeof e!="object"?ro:e:no,so=io,wr=/^[0-9]+$/,Rn=(e,t)=>{let r=wr.test(e),n=wr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},oo=(e,t)=>Rn(t,e),ao={compareIdentifiers:Rn,rcompareIdentifiers:oo},_e=An,{MAX_LENGTH:Ar,MAX_SAFE_INTEGER:Te}=$n,{safeRe:Sr,t:$r}=to,uo=so,{compareIdentifiers:fe}=ao,co=class K{constructor(t,r){if(r=uo(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>Ar)throw new TypeError(`version is longer than ${Ar} characters`);_e("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Sr[$r.LOOSE]:Sr[$r.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Te||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Te||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Te||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Te)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(_e("SemVer.compare",this.version,this.options,t),!(t instanceof K)){if(typeof t=="string"&&t===this.version)return 0;t=new K(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof K||(t=new K(t,this.options)),fe(this.major,t.major)||fe(this.minor,t.minor)||fe(this.patch,t.patch)}comparePre(t){if(t instanceof K||(t=new K(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(_e("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(_e("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}},lo=co,Rr=lo,fo=(e,t,r=!1)=>{if(e instanceof Rr)return e;try{return new Rr(e,t)}catch(n){if(!r)return null;throw n}},Pn=fo,ho=Pn,po=(e,t)=>{let r=ho(e,t);return r?r.version:null},go=po,mo=Pn,bo=(e,t)=>{let r=mo(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},yo=bo,xn=["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"],vo=["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"],Eo=["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"],Co=[].concat(xn).concat(vo),Lo=Eo,Oo=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(Co.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(Lo.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},wo=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},Ao=Oo,So=wo,Nn=function(e){return So(Ao(e))},$o=Nn,Ro=xn;function Me(e){try{return $o(e),!0}catch{return!1}}function In(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Pr=[["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(In),Po=0,xo=1,xr=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],yt=Ro.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},{}),No=Object.keys(yt).map(function(t){return[t,yt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});yt=void 0;var Nr=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(No).sort(In),Io=0,_o=1,Ir=function(e){for(var t=0;t<xr.length;t++){var r=xr[t](e).trim();if(r!==e&&Me(r))return r}return null},_r=function(e){for(var t=e.toUpperCase(),r=0;r<Nr.length;r++){var n=Nr[r];if(t.indexOf(n[Io])>-1)return n[_o]}return null},Tr=function(e,t){for(var r=0;r<Pr.length;r++){var n=Pr[r],i=n[Po];if(e.indexOf(i)>-1){var s=e.replace(i,n[xo]),o=t(s);if(o!==null)return o}}return null},To=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?Fo(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(),Me(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Me(s))return n(s);var o=Ir(e);return o!==null||(o=Tr(e,function(a){return Me(a)?a:Ir(a)}),o!==null)||(o=_r(e),o!==null)||(o=Tr(e,_r),o!==null)?n(o):null};function Fo(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 Do=Nn,Mo=To,Fr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',jo=/^SEE LICEN[CS]E IN (.+)$/;function Dr(e,t){return t.slice(0,e.length)===e}function vt(e){if(e.hasOwnProperty("license")){var t=e.license;return Dr("LicenseRef",t)||Dr("DocumentRef",t)}else return vt(e.left)||vt(e.right)}var Go=function(e){var t;try{t=Do(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=jo.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Fr]};if(e.trim().length!==0){var i=Mo(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return vt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Fr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.LRUCache=void 0;var he=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_n=new Set,Et=typeof process=="object"&&process?process:{},Tn=(e,t,r,n)=>{typeof Et.emitWarning=="function"?Et.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Be=globalThis.AbortController,Mr=globalThis.AbortSignal;if(typeof Be>"u"){Mr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Be=class{constructor(){t()}signal=new Mr;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=Et.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Tn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Bo=e=>!_n.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Fn=e=>Q(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?de:null:null,de=class extends Array{constructor(t){super(t),this.fill(0)}},Ct=class e{heap;length;static#n=!1;static create(t){let r=Fn(t);if(!r)return[];e.#n=!0;let n=new e(t,r);return e.#n=!1,n}constructor(t,r){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},ko=class Dn{#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?Fn(r):Array;if(!j)throw new Error("invalid max value: "+r);if(this.#n=r,this.#c=L,this.maxEntrySize=v||this.#c,this.sizeCalculation=h,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#P=c,this.#A=!!c,this.#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=Ct.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";Bo(W)&&(_n.add(W),Tn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,Dn))}}getRemainingTTL(t){return this.#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 Be,{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 Be}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)}}};ze.LRUCache=ko;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",Mn=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Uo={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:Mn},re={};re.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path: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-"+Mn(e)}};re.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path: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({},Uo,t);var Wo=re,zo=bn,at=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},jr=e=>{try{return new zo.URL(e)}catch{}},Ho=(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)}`},Yo=e=>{let t=at(e,"@","#"),r=at(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),at(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},jn=(e,t)=>{let r=t?Ho(e,t):e;return jr(r)||jr(Yo(r))},Vo=jn,Xo=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},Ko=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=Xo(e)?`github:${e}`:e,s=Vo(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:qo}=ze,Jo=Wo,Zo=Ko,Qo=jn,ut=new qo({max:1e3}),ke=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(!ut.has(n)){let i=Zo(t,r,{gitHosts:e.#n,protocols:e.#c});ut.set(n,i?new e(...i):void 0)}return ut.get(n)}static parseUrl(t){return Qo(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(Jo))ke.addHost(e,t);var ea=ke,ta="Function.prototype.bind called on incompatible ",ra=Object.prototype.toString,na=Math.max,ia="[object Function]",Gr=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},sa=function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},oa=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},aa=function(t){var r=this;if(typeof r!="function"||ra.apply(r)!==ia)throw new TypeError(ta+r);for(var n=sa(arguments,1),i,s=function(){if(this instanceof i){var g=r.apply(this,Gr(n,arguments));return Object(g)===g?g:this}return r.apply(t,Gr(n,arguments))},o=na(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(i=Function("binder","return function ("+oa(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},ua=aa,ca=Function.prototype.bind||ua,la=Function.prototype.call,fa=Object.prototype.hasOwnProperty,ha=ca,pa=ha.call(la,fa),da=!0,ga=">= 8",ma=">= 0.5 && < 0.9.7",ba=!0,ya=!0,va=">= 0.5",Ea=!0,Ca=!0,La=!0,Oa=">= 1 && < 8",wa="< 8",Aa=!0,Sa=[">= 14.17 && < 15",">= 15.1"],$a=!0,Ra=">= 0.7.12",Pa=!0,xa="< 6",Na=!0,Ia=">= 0.11.1",_a=">= 0.11.1",Ta=">= 0.11.1",Fa=">= 0.11.1",Da=">= 0.11.1",Ma=">= 0.11.1",ja=!0,Ga=">= 8.8",Ba=!0,ka=">= 8",Ua="< 8",Wa=!0,za=!0,Ha=!0,Ya=!0,Va=">= 8.5",Xa=">= 1",Ka=">= 0.5",qa=!0,Ja=!0,Za=!0,Qa=">= 0.11.5 && < 3",eu=">= 0.9.4",tu=">= 0.9.4",ru=">= 1.4.1",nu=">= 0.9.4",iu=">= 0.9.4",su=">= 0.9.4",ou=!0,au=!0,uu=[">= 0.4 && < 0.7",">= 0.8"],cu=!0,lu=">= 0.11.13",fu=">= 0.11.3 && < 10",hu=">= 0.11.3",pu=!0,du=">= 10",gu=!0,mu=!0,bu=!0,yu=">= 1",vu=!0,Eu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],Cu=">= 11.7",Lu=">= 0.5",Ou={assert:da,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:ga,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ma,buffer:ba,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:ya,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:va,"node:cluster":[">= 14.18 && < 15",">= 16"],console:Ea,"node:console":[">= 14.18 && < 15",">= 16"],constants:Ca,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:La,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:Oa,_debugger:wa,dgram:Aa,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:Sa,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:$a,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:Ra,"node:domain":[">= 14.18 && < 15",">= 16"],events:Pa,"node:events":[">= 14.18 && < 15",">= 16"],freelist:xa,fs:Na,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:Ia,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_a,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:Ta,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:Fa,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Da,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ma,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:ja,"node:http":[">= 14.18 && < 15",">= 16"],http2:Ga,"node:http2":[">= 14.18 && < 15",">= 16"],https:Ba,"node:https":[">= 14.18 && < 15",">= 16"],inspector:ka,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Ua,module:Wa,"node:module":[">= 14.18 && < 15",">= 16"],net:za,"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:Ha,"node:os":[">= 14.18 && < 15",">= 16"],path:Ya,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:Va,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Xa,"node:process":[">= 14.18 && < 15",">= 16"],punycode:Ka,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:qa,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Ja,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:Za,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:Qa,_stream_duplex:eu,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:tu,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:ru,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:nu,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:iu,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:su,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:ou,"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:au,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:uu,"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:cu,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:lu,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:fu,_tls_wrap:hu,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:pu,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:du,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:gu,"node:tty":[">= 14.18 && < 15",">= 16"],url:mu,"node:url":[">= 14.18 && < 15",">= 16"],util:bu,"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:yu,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vu,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:Eu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:Cu,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:Lu,"node:zlib":[">= 14.18 && < 15",">= 16"]},wu=pa;function Au(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 Br(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Au(e,r[n]))return!1;return!0}function Su(e,t){if(typeof t=="boolean")return t;var r=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof r!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&typeof t=="object"){for(var n=0;n<t.length;++n)if(Br(r,t[n]))return!0;return!1}return Br(r,t)}var kr=Ou,$u=function(t,r){return wu(kr,t)&&Su(r,kr[t])},Ru=Pu;function Pu(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 xu={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"},Nu={web:"url",name:"url"},Iu={server:"start",tests:"test"},_u={topLevel:xu,bugs:Nu,script:Iu},Tu=go,Fu=yo,Du=Go,Fe=ea,Mu=$u,ju=["dependencies","devDependencies","optionalDependencies"],Gu=Ru,ct=bn,te=_u,Ur=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),Bu={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Fe.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(te.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,te.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):te.script[t]&&!e.scripts[te.script[t]]&&this.warn("typo",t,te.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Xu(e,this.warn),Yu(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=Fe.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(!Tu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Fu(e.version,r),!0},fixPeople:function(e){Wr(e,zu),Wr(e,Hu)},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()),Wu(e.name,r,t.allowLegacyCase),Mu(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=Gu(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Ur(e.bugs)?e.bugs={email:e.bugs}:ct.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Ku(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&ct.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Ur(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;ct.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(!Du(t).validForNewPackages)return this.warn("invalidLicense")}};function ku(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 Uu(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function Wu(e,t,r){if(e.charAt(0)==="."||!(ku(e)||Uu(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Wr(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 zu(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 Hu(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 Yu(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 Vu(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 Xu(e,t){ju.forEach(function(r){e[r]&&(e[r]=Vu(e[r],r,t))})}function Ku(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 qu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Ju="No repository field.",Zu="Probably broken git url: %s",Qu="scripts must be an object",ec="script values must be string commands",tc="Invalid 'files' member",rc="Invalid filename in 'files' list: %s",nc="Invalid 'bundleDependencies' list. Must be array of package names",ic="Invalid bundleDependencies member: %s",sc="Non-dependency in bundleDependencies: %s",oc="%s field must be an object",ac="Invalid dependency: %s %s",uc="specifying %s as array is deprecated",cc="modules field is deprecated",lc="keywords should be an array of strings",fc="keywords should be an array of strings",hc="%s is also the name of a node core module.",pc="'description' field should be a string",dc="No description",gc="No README data",mc="No license field.",bc="Bug string field must be url, email, or {email,url}",yc="bugs.url field must be a string url. Deleted.",vc="bugs.email field must be a string email. Deleted.",Ec="Normalized value of bugs field is an empty object. Deleted.",Cc="homepage field must be a string url. Deleted.",Lc="license should be a valid SPDX license expression",Oc="%s should probably be %s.",wc={repositories:qu,missingRepository:Ju,brokenGitUrl:Zu,nonObjectScripts:Qu,nonStringScript:ec,nonArrayFiles:tc,invalidFilename:rc,nonArrayBundleDependencies:nc,nonStringBundleDependency:ic,nonDependencyBundleDependency:sc,nonObjectDependencies:oc,nonStringDependency:ac,deprecatedArrayDependencies:uc,deprecatedModules:cc,nonArrayKeywords:lc,nonStringKeyword:fc,conflictingName:hc,nonStringDescription:pc,missingDescription:dc,missingReadme:gc,missingLicense:mc,nonEmailUrlBugsString:bc,nonUrlBugsUrlField:yc,nonEmailBugsEmailField:vc,emptyNormalizedBugs:Ec,nonUrlHomepage:Cc,invalidLicense:Lc,typo:Oc},Gn=Ss,Lt=wc,Ac=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Sc.apply(null,e);var r=Lt[t]?Lt[t]:t+": '%s'";return e.unshift(r),Gn.format.apply(null,e)};function Sc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),Gn.format(Lt.typo,e,t)}var $c=Bn,Ot=Bu;Bn.fixer=Ot;var Rc=Ac,Pc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],xc=["dependencies","people","typos"],wt=Pc.map(function(e){return kn(e)+"Field"});wt=wt.concat(xc);function Bn(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),Ot.warn=function(){t(Rc.apply(null,arguments))},wt.forEach(function(n){Ot["fix"+kn(n)](e,r)}),e._id=e.name+"@"+e.version}function kn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _t=We($c),zr=e=>e instanceof URL?dn(e):e;function Nc(e,{cwd:t=Ns.cwd(),type:r="file",stopAt:n}={}){let i=ee.resolve(zr(t)??""),{root:s}=ee.parse(i);for(n=ee.resolve(i,zr(n)??s);i&&i!==n&&i!==s;){let o=ee.isAbsolute(e)?e:ee.join(i,e);try{let a=gn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}i=ee.dirname(i)}}var Tt={},Se={},He={};Object.defineProperty(He,"__esModule",{value:!0});He.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;He.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Un={},$e={};Object.defineProperty($e,"__esModule",{value:!0});$e.isIdentifierChar=Yn;$e.isIdentifierName=Fc;$e.isIdentifierStart=Hn;var Ft="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Wn="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Ic=new RegExp("["+Ft+"]"),_c=new RegExp("["+Ft+Wn+"]");Ft=Wn=null;var zn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Tc=[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 At(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 Hn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Ic.test(String.fromCharCode(e)):At(e,zn)}function Yn(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&_c.test(String.fromCharCode(e)):At(e,zn)||At(e,Tc)}function Fc(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,!Hn(n))return!1}else if(!Yn(n))return!1}return!t}var se={};Object.defineProperty(se,"__esModule",{value:!0});se.isKeyword=Bc;se.isReservedWord=Vn;se.isStrictBindOnlyReservedWord=Kn;se.isStrictBindReservedWord=Gc;se.isStrictReservedWord=Xn;var Dt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Dc=new Set(Dt.keyword),Mc=new Set(Dt.strict),jc=new Set(Dt.strictBind);function Vn(e,t){return t&&e==="await"||e==="enum"}function Xn(e,t){return Vn(e,t)||Mc.has(e)}function Kn(e){return jc.has(e)}function Gc(e,t){return Xn(e,t)||Kn(e)}function Bc(e){return Dc.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})(Un);var qn={exports:{}},kc=/[|\\{}()[\]^$+*?.]/g,Uc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(kc,"\\$&")},Mt={exports:{}},Jn={exports:{}},Wc={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=Wc,Zn={};for(De in ie)ie.hasOwnProperty(De)&&(Zn[ie[De]]=De);var De,$=Jn.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(U in $)if($.hasOwnProperty(U)){if(!("channels"in $[U]))throw new Error("missing channels property: "+U);if(!("labels"in $[U]))throw new Error("missing channel labels property: "+U);if($[U].labels.length!==$[U].channels)throw new Error("channel and label counts mismatch: "+U);Hr=$[U].channels,Yr=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:Hr}),Object.defineProperty($[U],"labels",{value:Yr})}var Hr,Yr,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 zc(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}$.rgb.keyword=function(e){var t=Zn[e];if(t)return t;var r=1/0,n;for(var i in ie)if(ie.hasOwnProperty(i)){var s=ie[i],o=zc(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 Qn=Jn.exports,Ue=Qn;function Hc(){for(var e={},t=Object.keys(Ue),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Yc(e){var t=Hc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Ue[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 Vc(e,t){return function(r){return t(e(r))}}function Xc(e,t){for(var r=[t[e].parent,e],n=Ue[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Vc(Ue[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var Kc=function(e){for(var t=Yc(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]=Xc(o,t))}return r},St=Qn,qc=Kc,pe={},Jc=Object.keys(St);function Zc(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 Qc(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}Jc.forEach(function(e){pe[e]={},Object.defineProperty(pe[e],"channels",{value:St[e].channels}),Object.defineProperty(pe[e],"labels",{value:St[e].labels});var t=qc(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];pe[e][n]=Qc(i),pe[e][n].raw=Zc(i)})});var ei=pe;Mt.exports;(function(e){let t=ei,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 el=Mt.exports,tl=(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)},rl=mn,V=tl,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 nl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function il(e){if(ge===!1)return 0;if(V("color=16m")||V("color=full")||V("color=truecolor"))return 3;if(V("color=256"))return 2;if(e&&!e.isTTY&&ge!==!0)return 0;let t=ge?1:0;if(process.platform==="win32"){let r=rl.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 lt(e){let t=il(e);return nl(t)}var sl={supportsColor:lt,stdout:lt(process.stdout),stderr:lt(process.stderr)},ol=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,al=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ul=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,cl=new Map([["n",`
12
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ti(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):cl.get(e)||e}function ll(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(al))r.push(i[2].replace(ul,(o,a,u)=>a?ti(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function fl(e){Vr.lastIndex=0;let t=[],r;for(;(r=Vr.exec(e))!==null;){let n=r[1];if(r[2]){let i=ll(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 hl=(e,t)=>{let r=[],n=[],i=[];if(t.replace(ol,(s,o,a,u,l,g)=>{if(o)i.push(ti(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:Xr(e,r)(m)),r.push({inverse:a,styles:fl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(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=Uc,r=el,n=sl.stdout,i=hl,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})(qn);var pl=qn.exports;Object.defineProperty(Se,"__esModule",{value:!0});Se.default=El;Se.shouldHighlight=ii;var Kr=He,qr=Un,$t=dl(pl,!0);function ri(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ri=function(n){return n?r:t})(e)}function dl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ri(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 gl=new Set(["as","async","from","get","of","set"]);function ml(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 bl=/\r\n|[\n\r\u2028\u2029]/,yl=/^[()[\]{}]$/,ni;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,qr.isKeyword)(r.value)||(0,qr.isStrictReservedWord)(r.value,!0)||gl.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"&&yl.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};ni=function*(r){let n;for(;n=Kr.default.exec(r);){let i=Kr.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function vl(e,t){let r="";for(let{type:n,value:i}of ni(t)){let s=e[n];s?r+=i.split(bl).map(o=>s(o)).join(`
13
- `):r+=i}return r}function ii(e){return $t.default.level>0||e.forceColor}var ft;function si(e){if(e){var t;return(t=ft)!=null||(ft=new $t.default.constructor({enabled:!0,level:1})),ft}return $t.default}Se.getChalk=e=>si(e.forceColor);function El(e,t={}){if(e!==""&&ii(t)){let r=ml(si(t.forceColor));return vl(r,e)}else return e}var oi={exports:{}},Cl=/[|\\{}()[\]^$+*?.]/g,Ll=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Cl,"\\$&")},jt={exports:{}};jt.exports;(function(e){let t=ei,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 Ol=jt.exports,wl=(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)},Al=mn,X=wl,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 Sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function $l(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=Al.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 ht(e){let t=$l(e);return Sl(t)}var Rl={supportsColor:ht,stdout:ht(process.stdout),stderr:ht(process.stderr)},Pl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Jr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,xl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Il=new Map([["n",`
14
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ai(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Il.get(e)||e}function _l(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(xl))r.push(i[2].replace(Nl,(o,a,u)=>a?ai(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Tl(e){Jr.lastIndex=0;let t=[],r;for(;(r=Jr.exec(e))!==null;){let n=r[1];if(r[2]){let i=_l(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 Fl=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Pl,(s,o,a,u,l,g)=>{if(o)i.push(ai(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:Zr(e,r)(m)),r.push({inverse:a,styles:Tl(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=Ll,r=Ol,n=Rl.stdout,i=Fl,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})(oi);var Dl=oi.exports;Object.defineProperty(Tt,"__esModule",{value:!0});var Ml=Tt.codeFrameColumns=ci;Tt.default=Ul;var Qr=Se,en=jl(Dl,!0);function ui(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ui=function(n){return n?r:t})(e)}function jl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ui(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 pt;function Gl(e){if(e){var t;return(t=pt)!=null||(pt=new en.default.constructor({enabled:!0,level:1})),pt}return en.default}var tn=!1;function Bl(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var rn=/\r\n|[\n\r\u2028\u2029]/;function kl(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 ci(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Qr.shouldHighlight)(r),i=Gl(r.forceColor),s=Bl(i),o=(h,c)=>n?h(c):c,a=e.split(rn),{start:u,end:l,markerLines:g}=kl(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Qr.default)(e,r):e).split(rn,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 We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0},xs=We(Ps);function Ns(e){let t=xs(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}function Is(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 xt(e,t=0,r={}){return Is(Ns(e),t,r)}var _s=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},vn=_s,Ts="2.0.0",En=256,Fs=Number.MAX_SAFE_INTEGER||9007199254740991,Ds=16,Ms=En-6,js=["major","premajor","minor","preminor","patch","prepatch","prerelease"],Cn={MAX_LENGTH:En,MAX_SAFE_COMPONENT_LENGTH:Ds,MAX_SAFE_BUILD_LENGTH:Ms,MAX_SAFE_INTEGER:Fs,RELEASE_TYPES:js,SEMVER_SPEC_VERSION:Ts,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},gt={exports:{}};(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Cn,s=vn;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*$")})(gt,gt.exports);var Gs=gt.exports,Bs=Object.freeze({loose:!0}),ks=Object.freeze({}),Us=e=>e?typeof e!="object"?Bs:e:ks,Ws=Us,yr=/^[0-9]+$/,Ln=(e,t)=>{let r=yr.test(e),n=yr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},zs=(e,t)=>Ln(t,e),Hs={compareIdentifiers:Ln,rcompareIdentifiers:zs},_e=vn,{MAX_LENGTH:vr,MAX_SAFE_INTEGER:Te}=Cn,{safeRe:Er,t:Cr}=Gs,Ys=Ws,{compareIdentifiers:le}=Hs,Vs=class K{constructor(t,r){if(r=Ys(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>vr)throw new TypeError(`version is longer than ${vr} characters`);_e("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Er[Cr.LOOSE]:Er[Cr.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Te||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Te||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Te||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Te)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(_e("SemVer.compare",this.version,this.options,t),!(t instanceof K)){if(typeof t=="string"&&t===this.version)return 0;t=new K(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof K||(t=new K(t,this.options)),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(_e("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(_e("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}},Xs=Vs,Lr=Xs,Ks=(e,t,r=!1)=>{if(e instanceof Lr)return e;try{return new Lr(e,t)}catch(n){if(!r)return null;throw n}},On=Ks,qs=On,Js=(e,t)=>{let r=qs(e,t);return r?r.version:null},Zs=Js,Qs=On,eo=(e,t)=>{let r=Qs(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},to=eo,wn=["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"],ro=["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"],no=["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"],io=[].concat(wn).concat(ro),so=no,oo=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(io.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(so.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},ao=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},uo=oo,co=ao,An=function(e){return co(uo(e))},lo=An,fo=wn;function Me(e){try{return lo(e),!0}catch{return!1}}function Sn(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Or=[["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(Sn),ho=0,po=1,wr=[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"}],mt=fo.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},{}),go=Object.keys(mt).map(function(t){return[t,mt[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});mt=void 0;var Ar=[["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(go).sort(Sn),mo=0,bo=1,Sr=function(e){for(var t=0;t<wr.length;t++){var r=wr[t](e).trim();if(r!==e&&Me(r))return r}return null},$r=function(e){for(var t=e.toUpperCase(),r=0;r<Ar.length;r++){var n=Ar[r];if(t.indexOf(n[mo])>-1)return n[bo]}return null},Rr=function(e,t){for(var r=0;r<Or.length;r++){var n=Or[r],i=n[ho];if(e.indexOf(i)>-1){var s=e.replace(i,n[po]),o=t(s);if(o!==null)return o}}return null},yo=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?vo(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(),Me(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Me(s))return n(s);var o=Sr(e);return o!==null||(o=Rr(e,function(a){return Me(a)?a:Sr(a)}),o!==null)||(o=$r(e),o!==null)||(o=Rr(e,$r),o!==null)?n(o):null};function vo(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 Eo=An,Co=yo,Pr='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Lo=/^SEE LICEN[CS]E IN (.+)$/;function xr(e,t){return t.slice(0,e.length)===e}function bt(e){if(e.hasOwnProperty("license")){var t=e.license;return xr("LicenseRef",t)||xr("DocumentRef",t)}else return bt(e.left)||bt(e.right)}var Oo=function(e){var t;try{t=Eo(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Lo.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Pr]};if(e.trim().length!==0){var i=Co(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return bt(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Pr]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.LRUCache=void 0;var fe=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,$n=new Set,yt=typeof process=="object"&&process?process:{},Rn=(e,t,r,n)=>{typeof yt.emitWarning=="function"?yt.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Be=globalThis.AbortController,Nr=globalThis.AbortSignal;if(typeof Be>"u"){Nr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Be=class{constructor(){t()}signal=new Nr;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=yt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Rn("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 wo=e=>!$n.has(e),Q=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Pn=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)}},vt=class e{heap;length;static#n=!1;static create(t){let r=Pn(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]}},Ao=class xn{#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?Pn(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=vt.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";wo(W)&&($n.add(W),Rn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",W,xn))}}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 Be,{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 Be}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)}}};ze.LRUCache=Ao;var I=(...e)=>e.every(t=>t)?e.join(""):"",D=e=>e?encodeURIComponent(e):"",Nn=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),So={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:Nn},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-"+Nn(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({},So,t);var $o=re,Ro=fn,st=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Ir=e=>{try{return new Ro.URL(e)}catch{}},Po=(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=st(e,"@","#"),r=st(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),st(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e},In=(e,t)=>{let r=t?Po(e,t):e;return Ir(r)||Ir(xo(r))},No=In,Io=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},_o=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=Io(e)?`github:${e}`:e,s=No(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:To}=ze,Fo=$o,Do=_o,Mo=In,ot=new To({max:1e3}),ke=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(!ot.has(n)){let i=Do(t,r,{gitHosts:e.#n,protocols:e.#c});ot.set(n,i?new e(...i):void 0)}return ot.get(n)}static parseUrl(t){return Mo(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(Fo))ke.addHost(e,t);var jo=ke,Go="Function.prototype.bind called on incompatible ",Bo=Object.prototype.toString,ko=Math.max,Uo="[object Function]",_r=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},Wo=function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},zo=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Ho=function(t){var r=this;if(typeof r!="function"||Bo.apply(r)!==Uo)throw new TypeError(Go+r);for(var n=Wo(arguments,1),i,s=function(){if(this instanceof i){var g=r.apply(this,_r(n,arguments));return Object(g)===g?g:this}return r.apply(t,_r(n,arguments))},o=ko(0,r.length-n.length),a=[],u=0;u<o;u++)a[u]="$"+u;if(i=Function("binder","return function ("+zo(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},Yo=Ho,Vo=Function.prototype.bind||Yo,Xo=Function.prototype.call,Ko=Object.prototype.hasOwnProperty,qo=Vo,Jo=qo.call(Xo,Ko),Zo=!0,Qo=">= 8",ea=">= 0.5 && < 0.9.7",ta=!0,ra=!0,na=">= 0.5",ia=!0,sa=!0,oa=!0,aa=">= 1 && < 8",ua="< 8",ca=!0,la=[">= 14.17 && < 15",">= 15.1"],fa=!0,ha=">= 0.7.12",pa=!0,da="< 6",ga=!0,ma=">= 0.11.1",ba=">= 0.11.1",ya=">= 0.11.1",va=">= 0.11.1",Ea=">= 0.11.1",Ca=">= 0.11.1",La=!0,Oa=">= 8.8",wa=!0,Aa=">= 8",Sa="< 8",$a=!0,Ra=!0,Pa=!0,xa=!0,Na=">= 8.5",Ia=">= 1",_a=">= 0.5",Ta=!0,Fa=!0,Da=!0,Ma=">= 0.11.5 && < 3",ja=">= 0.9.4",Ga=">= 0.9.4",Ba=">= 1.4.1",ka=">= 0.9.4",Ua=">= 0.9.4",Wa=">= 0.9.4",za=!0,Ha=!0,Ya=[">= 0.4 && < 0.7",">= 0.8"],Va=!0,Xa=">= 0.11.13",Ka=">= 0.11.3 && < 10",qa=">= 0.11.3",Ja=!0,Za=">= 10",Qa=!0,eu=!0,tu=!0,ru=">= 1",nu=!0,iu=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],su=">= 11.7",ou=">= 0.5",au={assert:Zo,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:Qo,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:ea,buffer:ta,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:ra,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:na,"node:cluster":[">= 14.18 && < 15",">= 16"],console:ia,"node:console":[">= 14.18 && < 15",">= 16"],constants:sa,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:oa,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:aa,_debugger:ua,dgram:ca,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:la,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:fa,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:ha,"node:domain":[">= 14.18 && < 15",">= 16"],events:pa,"node:events":[">= 14.18 && < 15",">= 16"],freelist:da,fs:ga,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:ma,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:ba,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:ya,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:va,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:Ea,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:Ca,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:La,"node:http":[">= 14.18 && < 15",">= 16"],http2:Oa,"node:http2":[">= 14.18 && < 15",">= 16"],https:wa,"node:https":[">= 14.18 && < 15",">= 16"],inspector:Aa,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:Sa,module:$a,"node:module":[">= 14.18 && < 15",">= 16"],net:Ra,"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:Pa,"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:Na,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:Ia,"node:process":[">= 14.18 && < 15",">= 16"],punycode:_a,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:Ta,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:Fa,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:Da,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:Ma,_stream_duplex:ja,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:Ga,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:Ba,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:ka,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:Ua,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:Wa,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:za,"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:Ha,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:Ya,"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:Va,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:Xa,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:Ka,_tls_wrap:qa,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:Ja,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:Za,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:Qa,"node:tty":[">= 14.18 && < 15",">= 16"],url:eu,"node:url":[">= 14.18 && < 15",">= 16"],util:tu,"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:ru,"node:v8":[">= 14.18 && < 15",">= 16"],vm:nu,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:iu,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:su,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:ou,"node:zlib":[">= 14.18 && < 15",">= 16"]},uu=Jo;function cu(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 Tr(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!cu(e,r[n]))return!1;return!0}function lu(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(Tr(r,t[n]))return!0;return!1}return Tr(r,t)}var Fr=au,fu=function(t,r){return uu(Fr,t)&&lu(r,Fr[t])},hu=pu;function pu(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 du={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"},gu={web:"url",name:"url"},mu={server:"start",tests:"test"},bu={topLevel:du,bugs:gu,script:mu},yu=Zs,vu=to,Eu=Oo,Fe=jo,Cu=fu,Lu=["dependencies","devDependencies","optionalDependencies"],Ou=hu,at=fn,te=bu,Dr=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf("."),wu={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Fe.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(te.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,te.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):te.script[t]&&!e.scripts[te.script[t]]&&this.warn("typo",t,te.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e,t){Iu(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=Fe.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(!yu(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=vu(e.version,r),!0},fixPeople:function(e){Mr(e,Ru),Mr(e,Pu)},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()),$u(e.name,r,t.allowLegacyCase),Cu(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=Ou(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Dr(e.bugs)?e.bugs={email:e.bugs}:at.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{_u(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&at.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Dr(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Fe.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;at.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(!Eu(t).validForNewPackages)return this.warn("invalidLicense")}};function Au(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 Su(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function $u(e,t,r){if(e.charAt(0)==="."||!(Au(e)||Su(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function Mr(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 Ru(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 Pu(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 Nu(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 Iu(e,t){Lu.forEach(function(r){e[r]&&(e[r]=Nu(e[r],r,t))})}function _u(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 Tu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Fu="No repository field.",Du="Probably broken git url: %s",Mu="scripts must be an object",ju="script values must be string commands",Gu="Invalid 'files' member",Bu="Invalid filename in 'files' list: %s",ku="Invalid 'bundleDependencies' list. Must be array of package names",Uu="Invalid bundleDependencies member: %s",Wu="Non-dependency in bundleDependencies: %s",zu="%s field must be an object",Hu="Invalid dependency: %s %s",Yu="specifying %s as array is deprecated",Vu="modules field is deprecated",Xu="keywords should be an array of strings",Ku="keywords should be an array of strings",qu="%s is also the name of a node core module.",Ju="'description' field should be a string",Zu="No description",Qu="No README data",ec="No license field.",tc="Bug string field must be url, email, or {email,url}",rc="bugs.url field must be a string url. Deleted.",nc="bugs.email field must be a string email. Deleted.",ic="Normalized value of bugs field is an empty object. Deleted.",sc="homepage field must be a string url. Deleted.",oc="license should be a valid SPDX license expression",ac="%s should probably be %s.",uc={repositories:Tu,missingRepository:Fu,brokenGitUrl:Du,nonObjectScripts:Mu,nonStringScript:ju,nonArrayFiles:Gu,invalidFilename:Bu,nonArrayBundleDependencies:ku,nonStringBundleDependency:Uu,nonDependencyBundleDependency:Wu,nonObjectDependencies:zu,nonStringDependency:Hu,deprecatedArrayDependencies:Yu,deprecatedModules:Vu,nonArrayKeywords:Xu,nonStringKeyword:Ku,conflictingName:qu,nonStringDescription:Ju,missingDescription:Zu,missingReadme:Qu,missingLicense:ec,nonEmailUrlBugsString:tc,nonUrlBugsUrlField:rc,nonEmailBugsEmailField:nc,emptyNormalizedBugs:ic,nonUrlHomepage:sc,invalidLicense:oc,typo:ac},_n=ls,Et=uc,cc=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return lc.apply(null,e);var r=Et[t]?Et[t]:t+": '%s'";return e.unshift(r),_n.format.apply(null,e)};function lc(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),_n.format(Et.typo,e,t)}var fc=Tn,Ct=wu;Tn.fixer=Ct;var hc=cc,pc=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],dc=["dependencies","people","typos"],Lt=pc.map(function(e){return Fn(e)+"Field"});Lt=Lt.concat(dc);function Tn(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),Ct.warn=function(){t(hc.apply(null,arguments))},Lt.forEach(function(n){Ct["fix"+Fn(n)](e,r)}),e._id=e.name+"@"+e.version}function Fn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nt=We(fc),jr=e=>e instanceof URL?un(e):e;function gc(e,{cwd:t=gs.cwd(),type:r="file",stopAt:n}={}){let i=ee.resolve(jr(t)??""),{root:s}=ee.parse(i);for(n=ee.resolve(i,jr(n)??s);i&&i!==n&&i!==s;){let o=ee.isAbsolute(e)?e:ee.join(i,e);try{let a=cn.statSync(o,{throwIfNoEntry:!1});if(r==="file"&&a?.isFile()||r==="directory"&&a?.isDirectory())return o}catch{}i=ee.dirname(i)}}var It={},Ae={},He={};Object.defineProperty(He,"__esModule",{value:!0});He.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;He.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Dn={},Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.isIdentifierChar=Bn;Se.isIdentifierName=vc;Se.isIdentifierStart=Gn;var _t="\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",Mn="\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",mc=new RegExp("["+_t+"]"),bc=new RegExp("["+_t+Mn+"]");_t=Mn=null;var jn=[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],yc=[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 Ot(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 Gn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&mc.test(String.fromCharCode(e)):Ot(e,jn)}function Bn(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&&bc.test(String.fromCharCode(e)):Ot(e,jn)||Ot(e,yc)}function vc(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,!Gn(n))return!1}else if(!Bn(n))return!1}return!t}var se={};Object.defineProperty(se,"__esModule",{value:!0});se.isKeyword=wc;se.isReservedWord=kn;se.isStrictBindOnlyReservedWord=Wn;se.isStrictBindReservedWord=Oc;se.isStrictReservedWord=Un;var Tt={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"]},Ec=new Set(Tt.keyword),Cc=new Set(Tt.strict),Lc=new Set(Tt.strictBind);function kn(e,t){return t&&e==="await"||e==="enum"}function Un(e,t){return kn(e,t)||Cc.has(e)}function Wn(e){return Lc.has(e)}function Oc(e,t){return Un(e,t)||Wn(e)}function wc(e){return Ec.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=Se,r=se})(Dn);var zn={exports:{}},Ac=/[|\\{}()[\]^$+*?.]/g,Sc=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Ac,"\\$&")},Ft={exports:{}},Hn={exports:{}},$c={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=$c,Yn={};for(De in ie)ie.hasOwnProperty(De)&&(Yn[ie[De]]=De);var De,$=Hn.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);Gr=$[U].channels,Br=$[U].labels,delete $[U].channels,delete $[U].labels,Object.defineProperty($[U],"channels",{value:Gr}),Object.defineProperty($[U],"labels",{value:Br})}var Gr,Br,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 Rc(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=Yn[e];if(t)return t;var r=1/0,n;for(var i in ie)if(ie.hasOwnProperty(i)){var s=ie[i],o=Rc(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 Vn=Hn.exports,Ue=Vn;function Pc(){for(var e={},t=Object.keys(Ue),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function xc(e){var t=Pc(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Ue[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 Nc(e,t){return function(r){return t(e(r))}}function Ic(e,t){for(var r=[t[e].parent,e],n=Ue[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Nc(Ue[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var _c=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]=Ic(o,t))}return r},wt=Vn,Tc=_c,he={},Fc=Object.keys(wt);function Dc(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 Mc(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}Fc.forEach(function(e){he[e]={},Object.defineProperty(he[e],"channels",{value:wt[e].channels}),Object.defineProperty(he[e],"labels",{value:wt[e].labels});var t=Tc(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];he[e][n]=Mc(i),he[e][n].raw=Dc(i)})});var Xn=he;Ft.exports;(function(e){let t=Xn,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})})(Ft);var jc=Ft.exports,Gc=(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)},Bc=ln,V=Gc,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 kc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Uc(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=Bc.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 ut(e){let t=Uc(e);return kc(t)}var Wc={supportsColor:ut,stdout:ut(process.stdout),stderr:ut(process.stderr)},zc=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,kr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Hc=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Yc=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Vc=new Map([["n",`
10
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Kn(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Vc.get(e)||e}function Xc(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(Hc))r.push(i[2].replace(Yc,(o,a,u)=>a?Kn(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Kc(e){kr.lastIndex=0;let t=[],r;for(;(r=kr.exec(e))!==null;){let n=r[1];if(r[2]){let i=Xc(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ur(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 qc=(e,t)=>{let r=[],n=[],i=[];if(t.replace(zc,(s,o,a,u,l,g)=>{if(o)i.push(Kn(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:Ur(e,r)(m)),r.push({inverse:a,styles:Kc(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ur(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=Sc,r=jc,n=Wc.stdout,i=qc,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 Jc=zn.exports;Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=il;Ae.shouldHighlight=Zn;var Wr=He,zr=Dn,At=Zc(Jc,!0);function qn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(qn=function(n){return n?r:t})(e)}function Zc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=qn(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 Qc=new Set(["as","async","from","get","of","set"]);function el(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 tl=/\r\n|[\n\r\u2028\u2029]/,rl=/^[()[\]{}]$/,Jn;{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)||Qc.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"&&rl.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};Jn=function*(r){let n;for(;n=Wr.default.exec(r);){let i=Wr.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function nl(e,t){let r="";for(let{type:n,value:i}of Jn(t)){let s=e[n];s?r+=i.split(tl).map(o=>s(o)).join(`
11
+ `):r+=i}return r}function Zn(e){return At.default.level>0||e.forceColor}var ct;function Qn(e){if(e){var t;return(t=ct)!=null||(ct=new At.default.constructor({enabled:!0,level:1})),ct}return At.default}Ae.getChalk=e=>Qn(e.forceColor);function il(e,t={}){if(e!==""&&Zn(t)){let r=el(Qn(t.forceColor));return nl(r,e)}else return e}var ei={exports:{}},sl=/[|\\{}()[\]^$+*?.]/g,ol=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(sl,"\\$&")},Dt={exports:{}};Dt.exports;(function(e){let t=Xn,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 al=Dt.exports,ul=(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)},cl=ln,X=ul,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 ll(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function fl(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=cl.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 lt(e){let t=fl(e);return ll(t)}var hl={supportsColor:lt,stdout:lt(process.stdout),stderr:lt(process.stderr)},pl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,dl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gl=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ml=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ti(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):ml.get(e)||e}function bl(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(dl))r.push(i[2].replace(gl,(o,a,u)=>a?ti(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function yl(e){Hr.lastIndex=0;let t=[],r;for(;(r=Hr.exec(e))!==null;){let n=r[1];if(r[2]){let i=bl(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Yr(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 vl=(e,t)=>{let r=[],n=[],i=[];if(t.replace(pl,(s,o,a,u,l,g)=>{if(o)i.push(ti(o));else if(u){let m=i.join("");i=[],n.push(r.length===0?m:Yr(e,r)(m)),r.push({inverse:a,styles:yl(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Yr(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=ol,r=al,n=hl.stdout,i=vl,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})(ei);var El=ei.exports;Object.defineProperty(It,"__esModule",{value:!0});var Cl=It.codeFrameColumns=ni;It.default=Sl;var Vr=Ae,Xr=Ll(El,!0);function ri(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ri=function(n){return n?r:t})(e)}function Ll(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ri(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 ft;function Ol(e){if(e){var t;return(t=ft)!=null||(ft=new Xr.default.constructor({enabled:!0,level:1})),ft}return Xr.default}var Kr=!1;function wl(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var qr=/\r\n|[\n\r\u2028\u2029]/;function Al(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 ni(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Vr.shouldHighlight)(r),i=Ol(r.forceColor),s=wl(i),o=(h,c)=>n?h(c):c,a=e.split(qr),{start:u,end:l,markerLines:g}=Al(t,a,r),m=t.start&&typeof t.start.column=="number",E=String(l).length,v=(n?(0,Vr.default)(e,r):e).split(qr,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 Ul(e,t,r,n={}){if(!tn){tn=!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),ci(e,{start:{column:r,line:t}},n)}var nn=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function Wl(e,t){let r=nn(e,`
18
- `,t-1),n=t-r-1,i=0;for(let s=r;s>=0;s=nn(e,`
19
- `,s-1))i++;return{line:i,column:n}}function sn(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=Wl(e,t);return r?{line:n.line+1,column:n.column+1}:n}var zl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,Rt=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 Sl(e,t,r,n={}){if(!Kr){Kr=!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),ni(e,{start:{column:r,line:t}},n)}var Jr=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function $l(e,t){let r=Jr(e,`
16
+ `,t-1),n=t-r-1,i=0;for(let s=r;s>=0;s=Jr(e,`
17
+ `,s-1))i++;return{line:i,column:n}}function Zr(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let n=$l(e,t);return r?{line:n.line+1,column:n.column+1}:n}var Rl=e=>`\\u{${e.codePointAt(0).toString(16)}}`,St=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}},on=(e,t,r=!0)=>Ml(e,{start:t},{highlightCode:r}),Hl=(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}=sn(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return sn(e,n,{oneBased:!0})},Yl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${zl(n)})`);function Vl(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=Hl(e,n),n=Yl(n)):n+=" while parsing empty string";let s=new Rt(n);throw s.fileName=r,i&&(s.codeFrame=on(e,i),s.rawCodeFrame=on(e,i,!1)),s}function Xl(e){return e instanceof URL?dn(e):e}var Kl=e=>ee.resolve(Xl(e)??".","package.json"),ql=(e,t)=>{let r=typeof e=="string"?Vl(e):e;return t&&_t(r),r};function Jl({cwd:e,normalize:t=!0}={}){let r=gn.readFileSync(Kl(e),"utf8");return ql(r,t)}function li(e){let t=Nc("package.json",e);if(t)return{packageJson:Jl({...e,cwd:ee.dirname(t)}),path:t}}var Zl=(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 Gt(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?Zl(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var Bt={exports:{}},Ql=Object.prototype.toString,ef=function(e){var t;return Ql.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},tf=function(e){return e==null?[]:Array.isArray(e)?e:[e]},rf=Object.prototype.toString,nf=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 cf(t)?"generatorfunction":"function";if(sf(t))return"array";if(hf(t))return"buffer";if(ff(t))return"arguments";if(af(t))return"date";if(of(t))return"error";if(uf(t))return"regexp";switch(fi(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(lf(t))return"generator";switch(r=rf.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 fi(e){return typeof e.constructor=="function"?e.constructor.name:null}function sf(e){return Array.isArray?Array.isArray(e):e instanceof Array}function of(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function af(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function uf(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function cf(e,t){return fi(e)==="GeneratorFunction"}function lf(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function ff(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 hf(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var pf=ef,df=tf,Pt=nf,an=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},un=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},je=e=>Array.isArray(e)?`[${e.map(je).join(", ")}]`:Pt(e)==="string"?JSON.stringify(e):e,gf=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${Pt(t)}-array`}return Pt(e)},mf=(e,t)=>{let r=e==="array"?"string-array":e;return kt.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},bf=["stopEarly","unknown","--"],hi=["string","boolean","number"],kt=hi.map(e=>`${e}-array`),cn=[...hi,"array",...kt],pi=e=>{e=e||{};let t={};return bf.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}),pf(n)){let i=n,{type:s}=i;if(s){if(!cn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${je(cn)}, got ${je(s)}`);if(kt.includes(s)){let[o]=s.split("-");an(t,"array",{key:r,[o]:!0})}else an(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=gf(o),u=mf(s,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${je(a)}`);un(t,"default",r,o)}df(i.alias).forEach(o=>{un(t,"alias",o,r)})}}),t};Bt.exports=pi;Bt.exports.default=pi;var yf=Bt.exports,di=We(yf),Ut={exports:{}},gi=e=>typeof e=="object"&&e!==null,mi=Symbol("skip"),ln=e=>gi(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),xt=(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=>ln(a)?xt(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===mi)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&ln(g)&&(g=Array.isArray(g)?s(g):xt(g,t,r,n)),i[l]=g)}return i};Ut.exports=(e,t,r)=>{if(!gi(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return xt(e,t,r)};Ut.exports.mapObjectSkip=mi;var vf=Ut.exports,fn=We(vf),Ef=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),dt=new Ge({maxSize:1e5}),hn=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),pn=(e,t={})=>{if(!hn(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,u)=>{if(i&&hn(u)&&(u=fn(u,s())),!(n&&Ef(n,a))){let l=`${r}${a}`;if(dt.has(l))a=dt.get(l);else{let g=Gt(a,{separator:r});a.length<100&&dt.set(l,g),a=g}}return[a,u]};return fn(e,s())};function bi(e,t){return Array.isArray(e)?Object.keys(e).map(r=>pn(e[r],t)):pn(e,t)}import Cf from"node:process";import{dirname as Lf}from"node:path";import{fileURLToPath as Of}from"node:url";var oe=e=>`--${Gt(e,{separator:"-"})}`,Re=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var wf=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(`
23
- `))},yi=(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=li({cwd:Lf(Of(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:Cf.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return wf(n),n};var Af=({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},vi=e=>{let t=Af(e);return t.arguments=e.input,t=bi(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=di(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import Ei from"node:process";var Sf=(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.`)},$f=(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}`},Rf=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=$f(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
24
- `)}`)},Ci=(e,t)=>{Sf(e,t),Rf(t.flags,e)},Pf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
25
- `))},Li=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(Pf(t),Ei.exit(2))},xf=(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},Nf=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},Oi=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&xf(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(Nf(n),Ei.exit(2))};var If=(e,t)=>{let{pkg:r}=e,n=be(e.argv,t),i="";e.help&&(i=wn((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
26
- `)&&(i=It(i,e.helpIndent)),i=`
27
- ${i}`),_t(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?It(`
20
+ `:""}`}set message(t){this.#n=t}},Qr=(e,t,r=!0)=>Cl(e,{start:t},{highlightCode:r}),Pl=(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}=Zr(e,e.length-1,{oneBased:!0});return{line:o,column:a+1}}return Zr(e,n,{oneBased:!0})},xl=e=>e.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(t,r,n)=>`"${n}"(${Rl(n)})`);function Nl(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=Pl(e,n),n=xl(n)):n+=" while parsing empty string";let s=new St(n);throw s.fileName=r,i&&(s.codeFrame=Qr(e,i),s.rawCodeFrame=Qr(e,i,!1)),s}function Il(e){return e instanceof URL?un(e):e}var _l=e=>ee.resolve(Il(e)??".","package.json"),Tl=(e,t)=>{let r=typeof e=="string"?Nl(e):e;return t&&Nt(r),r};function Fl({cwd:e,normalize:t=!0}={}){let r=cn.readFileSync(_l(e),"utf8");return Tl(r,t)}function ii(e){let t=gc("package.json",e);if(t)return{packageJson:Fl({...e,cwd:ee.dirname(t)}),path:t}}var Dl=(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 Mt(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?Dl(i,t):i.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}var jt={exports:{}},Ml=Object.prototype.toString,jl=function(e){var t;return Ml.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},Gl=function(e){return e==null?[]:Array.isArray(e)?e:[e]},Bl=Object.prototype.toString,kl=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 Yl(t)?"generatorfunction":"function";if(Ul(t))return"array";if(Kl(t))return"buffer";if(Xl(t))return"arguments";if(zl(t))return"date";if(Wl(t))return"error";if(Hl(t))return"regexp";switch(si(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(Vl(t))return"generator";switch(r=Bl.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 si(e){return typeof e.constructor=="function"?e.constructor.name:null}function Ul(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Wl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function zl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Hl(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function Yl(e,t){return si(e)==="GeneratorFunction"}function Vl(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Xl(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 Kl(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}var ql=jl,Jl=Gl,$t=kl,en=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},tn=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},je=e=>Array.isArray(e)?`[${e.map(je).join(", ")}]`:$t(e)==="string"?JSON.stringify(e):e,Zl=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${$t(t)}-array`}return $t(e)},Ql=(e,t)=>{let r=e==="array"?"string-array":e;return Gt.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},ef=["stopEarly","unknown","--"],oi=["string","boolean","number"],Gt=oi.map(e=>`${e}-array`),rn=[...oi,"array",...Gt],ai=e=>{e=e||{};let t={};return ef.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}),ql(n)){let i=n,{type:s}=i;if(s){if(!rn.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${je(rn)}, got ${je(s)}`);if(Gt.includes(s)){let[o]=s.split("-");en(t,"array",{key:r,[o]:!0})}else en(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,a=Zl(o),u=Ql(s,o);if(u&&u!==a)throw new TypeError(`Expected "${r}" default value to be of type "${u}", got ${je(a)}`);tn(t,"default",r,o)}Jl(i.alias).forEach(o=>{tn(t,"alias",o,r)})}}),t};jt.exports=ai;jt.exports.default=ai;var tf=jt.exports,ui=We(tf),Bt={exports:{}},ci=e=>typeof e=="object"&&e!==null,li=Symbol("skip"),nn=e=>ci(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),Rt=(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=>nn(a)?Rt(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===li)continue;let[l,g,{shouldRecurse:m=!0}={}]=u;l!=="__proto__"&&(r.deep&&m&&nn(g)&&(g=Array.isArray(g)?s(g):Rt(g,t,r,n)),i[l]=g)}return i};Bt.exports=(e,t,r)=>{if(!ci(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return Rt(e,t,r)};Bt.exports.mapObjectSkip=li;var rf=Bt.exports,sn=We(rf),nf=(e,t)=>e.some(r=>typeof r=="string"?r===t:(r.lastIndex=0,r.test(t))),ht=new Ge({maxSize:1e5}),on=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),an=(e,t={})=>{if(!on(e))return e;let{separator:r="_",exclude:n,deep:i=!1}=t,s=o=>(a,u)=>{if(i&&on(u)&&(u=sn(u,s())),!(n&&nf(n,a))){let l=`${r}${a}`;if(ht.has(l))a=ht.get(l);else{let g=Mt(a,{separator:r});a.length<100&&ht.set(l,g),a=g}}return[a,u]};return sn(e,s())};function fi(e,t){return Array.isArray(e)?Object.keys(e).map(r=>an(e[r],t)):an(e,t)}import sf from"node:process";import{dirname as of}from"node:path";import{fileURLToPath as af}from"node:url";var oe=e=>`--${Mt(e,{separator:"-"})}`,$e=(e,t="--")=>`\`${t}${e.join(`\`, \`${t}`)}\``;var uf=e=>{let t={flags:{keyContainsDashes:{filter:([n])=>n.includes("-")&&n!=="--",message:n=>`Flag keys may not contain '-'. Invalid flags: ${$e(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: ${$e(n)}`},choicesNotAnArray:{filter:([,n])=>Object.hasOwn(n,"choices")&&!Array.isArray(n.choices),message:n=>`The option \`choices\` must be an array. Invalid flags: ${$e(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: ${$e(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
+ `))},hi=(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=ii({cwd:of(af(t.importMeta.url)),normalize:!1}),n={pkg:r?r.packageJson:{},argv:sf.argv.slice(2),flags:{},inferType:!1,input:"string",help:e,autoHelp:!0,autoVersion:!0,booleanDefault:!1,allowUnknownFlags:!0,allowParentFlags:!0,helpIndent:2,...t};return uf(n),n};var cf=({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},pi=e=>{let t=cf(e);return t.arguments=e.input,t=fi(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=ui(t),t.configuration={...t.configuration,"greedy-arrays":!1},t["--"]&&(t.configuration["populate--"]=!0),e.allowUnknownFlags||(t.configuration["unknown-options-as-args"]=!0),t};import di from"node:process";var lf=(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.`)},ff=(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}`},hf=(e,t)=>{let r=[];for(let[n,i]of Object.entries(e)){let s=t[n],o=ff(n,i,s);o&&r.push(o)}if(r.length>0)throw new Error(`${r.join(`
22
+ `)}`)},gi=(e,t)=>{lf(e,t),hf(t.flags,e)},pf=e=>{console.error([`Unknown flag${e.length>1?"s":""}`,...e].join(`
23
+ `))},mi=e=>{let t=e.filter(r=>typeof r=="string"&&r.startsWith("-"));t.length>0&&(pf(t),di.exit(2))},df=(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},gf=e=>{console.error(`Missing required flag${e.length>1?"s":""}`);for(let t of e)console.error(` ${oe(t.key)}${t.shortFlag?`, -${t.shortFlag}`:""}`)},bi=(e,t,r)=>{let n=[];if(e===void 0)return[];for(let i of Object.keys(e))e[i].isRequired&&df(i,e,t,r)&&n.push({key:i,...e[i]});n.length>0&&(gf(n),di.exit(2))};var mf=(e,t)=>{let{pkg:r}=e,n=me(e.argv,t),i="";e.help&&(i=yn((e.help||"").replace(/\t+\n*$/,"")),i.includes(`
24
+ `)&&(i=xt(i,e.helpIndent)),i=`
25
+ ${i}`),Nt(r);let{description:s}=e;!s&&s!==!1&&({description:s}=r),s&&=i?xt(`
28
26
  ${s}
29
27
  `,e.helpIndent):`
30
28
  ${s}`,i=`${s||""}${i}
31
- `;let o=m=>{console.log(i),Wt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),Wt.exit(0)};n._.length===0&&e.argv.length===1&&(n.version===!0&&e.autoVersion?a():n.help===!0&&e.autoHelp&&o(0));let u=n._;delete n._,e.allowUnknownFlags||Li(u);let l=On(n,{exclude:["--",/^\w$/]}),g={...l};Ci(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 Oi(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:i,showHelp:o,showVersion:a}},wi=(e,t={})=>{let r=yi(e,t),n=vi(r),i=If(r,n);return Wt.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import Ye from"node:path";import{Transform as Gf}from"node:stream";import{fileURLToPath as Bf}from"node:url";import Df from"node:process";import _f from"node:process";import Tf from"node:fs/promises";import{fileURLToPath as Ff}from"node:url";import ye from"node:path";var Ai=e=>e instanceof URL?Ff(e):e;async function Si(e,{cwd:t=_f.cwd(),type:r="file",stopAt:n}={}){let i=ye.resolve(Ai(t)??""),{root:s}=ye.parse(i);for(n=ye.resolve(i,Ai(n??s));i&&i!==n&&i!==s;){let o=ye.isAbsolute(e)?e:ye.join(i,e);try{let a=await Tf.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=ye.dirname(i)}}async function zt({cwd:e=Df.cwd()}={}){return Si("package.json",{cwd:e})}function kf(e,t){return new Gf({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?pr[t](e):""} ${a}`).join(`
29
+ `;let o=m=>{console.log(i),kt.exit(typeof m=="number"?m:2)},a=()=>{console.log(typeof e.version=="string"?e.version:r.version),kt.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||mi(u);let l=bn(n,{exclude:["--",/^\w$/]}),g={...l};gi(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 bi(e.flags,l,u),{input:u,flags:l,unnormalizedFlags:g,pkg:r,help:i,showHelp:o,showVersion:a}},yi=(e,t={})=>{let r=hi(e,t),n=pi(r),i=mf(r,n);return kt.title=i.pkg.bin?Object.keys(i.pkg.bin).at(0):i.pkg.name,i};import Ye from"node:path";import{Transform as Gf}from"node:stream";import{fileURLToPath as Bf}from"node:url";import Ef from"node:process";import bf from"node:process";import yf from"node:fs/promises";import{fileURLToPath as vf}from"node:url";import be from"node:path";var vi=e=>e instanceof URL?vf(e):e;async function Ei(e,{cwd:t=bf.cwd(),type:r="file",stopAt:n}={}){let i=be.resolve(vi(t)??""),{root:s}=be.parse(i);for(n=be.resolve(i,vi(n??s));i&&i!==n&&i!==s;){let o=be.isAbsolute(e)?e:be.join(i,e);try{let a=await yf.stat(o);if(r==="file"&&a.isFile()||r==="directory"&&a.isDirectory())return o}catch{}i=be.dirname(i)}}async function Ut({cwd:e=Ef.cwd()}={}){return Ei("package.json",{cwd:e})}var Ai=Xi(wi(),1);import Ff from"@pinojs/json-colorizer";var Tf=/("(?:[^\\"]|\\.)*")|[:,]/g;function Wt(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(Tf,(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 Si(e){return Ff(Wt(e,{indent:2,replacer(t,r){return typeof r=="function"?r.name:r}}),{colors:{BRACKET:"gray"}})}var Df=(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]=zt(e[i],s,r):e.includes(s)||n.push(s);return n};function zt(e,t,r={arrayMerge:Df}){return(0,Ai.default)(e,t,r)}function kf(e,t){return new Gf({transform(r,n,i){let o=r.toString().split(/\r?\n/).filter(a=>a.trim().length>0).map(a=>`${e?ar[t](e):""} ${a}`).join(`
32
32
  `)+`
33
33
  `;this.push(o),i()}})}function Uf(e,t){let r=`
34
34
  Usage
@@ -36,24 +36,24 @@ ${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 Wf(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 zf(e,t,r=[]){if(t.command!==void 0&&typeof t.command=="string"){let n=1;try{let i=jf(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){Hf(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 $i(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 Ri(e,t,r,n){let i=wi({allowUnknownFlags:!1,booleanDefault:void 0,flags:Wf(n),help:Uf(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=kf(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"){$i(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")$i(o,m,u),l+=await zf(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await zt();if(E===void 0){u.write("Error: The `--init` flag must be used in a directory with a package.json file\n"),l+=1;break}let L=await zt({cwd:Bf(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 Ri(e,t,r,n){let i=yi({allowUnknownFlags:!1,booleanDefault:void 0,flags:Wf(n),help:Uf(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=kf(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"){$i(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")$i(o,m,u),l+=await zf(u,m,o.length===0?m.defaultArguments:o);else switch(g){case"init":{let E=await Ut();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 Ut({cwd:Bf(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=Ye.join(Ye.dirname(L),"init/"),h=Ye.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/")&&Ye.extname(b)===".json"){u.write(`Merging:
50
50
  "${c}" \u2192 "${b}"
51
- `);let x=ve.readJSONSync(c),N=ve.readJSONSync(b),j=Je(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=zt(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 Mf(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(tr(h.config)),u.write(`
58
+ `),u.write(Si(h.config)),u.write(`
59
59
  `);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Hf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}var Pi=["--log-level=warn","--plugin=@prettier/plugin-php","--plugin=@prettier/plugin-ruby","--plugin=@prettier/plugin-xml","--plugin=prettier-plugin-astro","--plugin=prettier-plugin-pkg","--plugin=prettier-plugin-sh","--plugin=prettier-plugin-sql","--plugin=prettier-plugin-svelte","--plugin=prettier-plugin-tailwindcss","--plugin=prettier-plugin-toml"];await Ri("prettier-config","[Prettier]","blue",{check:{command:"prettier",defaultArguments:["."],options:[...Pi,"--check"]},fix:{command:"prettier",defaultArguments:["."],options:[...Pi,"--write"]},init:{},printConfig:{}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/prettier-config",
3
- "version": "4.7.1",
3
+ "version": "4.7.3",
4
4
  "type": "module",
5
5
  "description": "Prettier configuration for @kitschpatrol/shared-config.",
6
6
  "repository": {
@@ -47,12 +47,12 @@
47
47
  "cosmiconfig": "^9.0.0",
48
48
  "execa": "^8.0.1",
49
49
  "fs-extra": "^11.2.0",
50
- "prettier-plugin-astro": "^0.14.0",
50
+ "prettier-plugin-astro": "^0.14.1",
51
51
  "prettier-plugin-pkg": "^0.18.1",
52
52
  "prettier-plugin-sh": "^0.14.0",
53
- "prettier-plugin-sql": "^0.18.0",
54
- "prettier-plugin-svelte": "^3.2.4",
55
- "prettier-plugin-tailwindcss": "^0.6.2",
53
+ "prettier-plugin-sql": "^0.18.1",
54
+ "prettier-plugin-svelte": "^3.2.6",
55
+ "prettier-plugin-tailwindcss": "^0.6.6",
56
56
  "prettier-plugin-toml": "^2.0.1"
57
57
  },
58
58
  "publishConfig": {
package/readme.md CHANGED
@@ -78,14 +78,14 @@ Usage:
78
78
  prettier-config [<file|glob> ...]
79
79
  ```
80
80
 
81
- | Option | Alias | Argument | Description |
82
- | ---------------- | ----- | -------- | ---------------------------------------------------------------- |
83
- | `--check` | `-c` | | Check for and report issues. Same as prettier-config. |
84
- | `--fix` | `-f` | | Fix all auto-fixable issues, and report the un-fixable. |
85
- | `--init` | `-i` | | Initialize by copying starter config files to your project root. |
86
- | `--print-config` | `-p` | `<path>` | Print the effective configuration at a certain path. |
87
- | `--help` | `-h` | | Print this help info. |
88
- | `--version` | `-v` | | Print the package version. |
81
+ | Option | Argument | Description |
82
+ | ------------------------ | -------- | ---------------------------------------------------------------- |
83
+ | `--check`<br>`-c` | | Check for and report issues. Same as `prettier-config`. |
84
+ | `--fix`<br>`-f` | | Fix all auto-fixable issues, and report the un-fixable. |
85
+ | `--init`<br>`-i` | | Initialize by copying starter config files to your project root. |
86
+ | `--print-config`<br>`-p` | `<path>` | Print the effective configuration at a certain path. |
87
+ | `--help`<br>`-h` | | Print this help info. |
88
+ | `--version`<br>`-v` | | Print the package version. |
89
89
 
90
90
  <!-- /cli-help -->
91
91