@e2b/cli 0.0.14 → 0.0.16

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/README.md +11 -6
  2. package/dist/index.js +64 -62
  3. package/package.json +2 -4
package/dist/index.js CHANGED
@@ -1,110 +1,112 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Ly=Object.create;var hi=Object.defineProperty;var $y=Object.getOwnPropertyDescriptor;var My=Object.getOwnPropertyNames;var Hy=Object.getPrototypeOf,Uy=Object.prototype.hasOwnProperty;var jy=(t,e)=>()=>(t&&(e=t(t=0)),e);var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ic=(t,e)=>{for(var r in e)hi(t,r,{get:e[r],enumerable:!0})},Pc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of My(e))!Uy.call(t,i)&&i!==r&&hi(t,i,{get:()=>e[i],enumerable:!(n=$y(e,i))||n.enumerable});return t};var M=(t,e,r)=>(r=t!=null?Ly(Hy(t)):{},Pc(e||!t||!t.__esModule?hi(r,"default",{value:t,enumerable:!0}):r,t)),qy=t=>Pc(hi({},"__esModule",{value:!0}),t);var Gy,importMetaUrl,l=jy(()=>{"use strict";Gy=()=>typeof document>"u"?new URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,importMetaUrl=Gy()});var en=C(Bo=>{"use strict";l();var di=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Ro=class extends di{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Bo.CommanderError=di;Bo.InvalidArgumentError=Ro});var pi=C(Po=>{"use strict";l();var{InvalidArgumentError:ux}=en(),Io=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new ux(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function ax(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Po.Argument=Io;Po.humanReadableArgName=ax});var ko=C(Nc=>{"use strict";l();var{humanReadableArgName:lx}=pi(),No=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>lx(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function u(_,O){if(O){let k=`${_.padEnd(n+o)}${O}`;return r.wrap(k,i-s,n+o)}return _}function a(_){return _.join(`
2
+ "use strict";var $y=Object.create;var hi=Object.defineProperty;var My=Object.getOwnPropertyDescriptor;var Hy=Object.getOwnPropertyNames;var Uy=Object.getPrototypeOf,jy=Object.prototype.hasOwnProperty;var qy=(t,e)=>()=>(t&&(e=t(t=0)),e);var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ic=(t,e)=>{for(var r in e)hi(t,r,{get:e[r],enumerable:!0})},Pc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hy(e))!jy.call(t,i)&&i!==r&&hi(t,i,{get:()=>e[i],enumerable:!(n=My(e,i))||n.enumerable});return t};var H=(t,e,r)=>(r=t!=null?$y(Uy(t)):{},Pc(e||!t||!t.__esModule?hi(r,"default",{value:t,enumerable:!0}):r,t)),Gy=t=>Pc(hi({},"__esModule",{value:!0}),t);var Wy,importMetaUrl,l=qy(()=>{"use strict";Wy=()=>typeof document>"u"?new URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,importMetaUrl=Wy()});var en=C(Bo=>{"use strict";l();var di=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Ro=class extends di{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Bo.CommanderError=di;Bo.InvalidArgumentError=Ro});var pi=C(Po=>{"use strict";l();var{InvalidArgumentError:ax}=en(),Io=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new ax(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function lx(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Po.Argument=Io;Po.humanReadableArgName=lx});var ko=C(Nc=>{"use strict";l();var{humanReadableArgName:cx}=pi(),No=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>cx(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function u(_,O){if(O){let k=`${_.padEnd(n+o)}${O}`;return r.wrap(k,i-s,n+o)}return _}function a(_){return _.join(`
3
3
  `).replace(/^/gm," ".repeat(s))}let c=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(c=c.concat([r.wrap(f,i,0),""]));let p=r.visibleArguments(e).map(_=>u(r.argumentTerm(_),r.argumentDescription(_)));p.length>0&&(c=c.concat(["Arguments:",a(p),""]));let m=r.visibleOptions(e).map(_=>u(r.optionTerm(_),r.optionDescription(_)));if(m.length>0&&(c=c.concat(["Options:",a(m),""])),this.showGlobalOptions){let _=r.visibleGlobalOptions(e).map(O=>u(r.optionTerm(O),r.optionDescription(O)));_.length>0&&(c=c.concat(["Global Options:",a(_),""]))}let y=r.visibleCommands(e).map(_=>u(r.subcommandTerm(_),r.subcommandDescription(_)));return y.length>0&&(c=c.concat(["Commands:",a(y),""])),c.join(`
4
4
  `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let u=r-n;if(u<i)return e;let a=e.slice(0,n),c=e.slice(n).replace(`\r
5
5
  `,`
6
6
  `),f=" ".repeat(n),m="\\s\u200B",y=new RegExp(`
7
7
  |.{1,${u-1}}([${m}]|$)|[^${m}]+?([${m}]|$)`,"g"),_=c.match(y)||[];return a+_.map((O,k)=>O===`
8
8
  `?"":(k>0?f:"")+O.trimEnd()).join(`
9
- `)}};Nc.Help=No});var Mo=C(Di=>{"use strict";l();var{InvalidArgumentError:cx}=en(),Lo=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=kc(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new cx(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return fx(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},$o=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function fx(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function kc(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Di.Option=Lo;Di.splitOptionFlags=kc;Di.DualOptions=$o});var $c=C(Lc=>{"use strict";l();function hx(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function dx(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let u=hx(t,o),a=Math.max(t.length,o.length);(a-u)/a>s&&(u<i?(i=u,n=[o]):u===i&&n.push(o))}),n.sort((o,u)=>o.localeCompare(u)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
9
+ `)}};Nc.Help=No});var Mo=C(Di=>{"use strict";l();var{InvalidArgumentError:fx}=en(),Lo=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=kc(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new fx(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return hx(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},$o=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function hx(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function kc(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Di.Option=Lo;Di.splitOptionFlags=kc;Di.DualOptions=$o});var $c=C(Lc=>{"use strict";l();function dx(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function px(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let u=dx(t,o),a=Math.max(t.length,o.length);(a-u)/a>s&&(u<i?(i=u,n=[o]):u===i&&n.push(o))}),n.sort((o,u)=>o.localeCompare(u)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}Lc.suggestSimilar=dx});var Gc=C(qc=>{"use strict";l();var px=require("events").EventEmitter,Ho=require("child_process"),dt=require("path"),Uo=require("fs"),se=require("process"),{Argument:Dx,humanReadableArgName:mx}=pi(),{CommanderError:jo}=en(),{Help:gx}=ko(),{Option:Mc,splitOptionFlags:Ex,DualOptions:yx}=Mo(),{suggestSimilar:Hc}=$c(),qo=class t extends px{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>se.stdout.write(r),writeErr:r=>se.stderr.write(r),getOutHelpWidth:()=>se.stdout.isTTY?se.stdout.columns:void 0,getErrHelpWidth:()=>se.stderr.isTTY?se.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,u]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return i&&(a.description(i),a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(s.noHelp||s.hidden),a._executableFile=s.executableFile||null,u&&a.arguments(u),this.commands.push(a),a.parent=this,a.copyInheritedSettings(this),i?this:a}createCommand(e){return new t(e)}createHelp(){return Object.assign(new gx,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new Dx(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
11
+ (Did you mean ${n[0]}?)`:""}Lc.suggestSimilar=px});var Gc=C(qc=>{"use strict";l();var Dx=require("events").EventEmitter,Ho=require("child_process"),dt=require("path"),Uo=require("fs"),se=require("process"),{Argument:mx,humanReadableArgName:gx}=pi(),{CommanderError:jo}=en(),{Help:Ex}=ko(),{Option:Mc,splitOptionFlags:yx,DualOptions:xx}=Mo(),{suggestSimilar:Hc}=$c(),qo=class t extends Dx{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>se.stdout.write(r),writeErr:r=>se.stderr.write(r),getOutHelpWidth:()=>se.stdout.isTTY?se.stdout.columns:void 0,getErrHelpWidth:()=>se.stderr.isTTY?se.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,u]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return i&&(a.description(i),a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(s.noHelp||s.hidden),a._executableFile=s.executableFile||null,u&&a.arguments(u),this.commands.push(a),a.parent=this,a.copyInheritedSettings(this),i?this:a}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Ex,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new mx(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
13
  Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new jo(e,r,n)),se.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new Mc(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${i} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,u)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let a=this.getOptionValue(n);s!==null&&e.parseArg?s=this._callParseArg(e,s,a,o):s!==null&&e.variadic&&(s=e._concatValue(s,a)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,u)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof Mc)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let u=i;i=(a,c)=>{let f=u.exec(a);return f?f[0]:c},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=se.argv,se.versions&&se.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":se.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,p){let m=dt.resolve(f,p);if(Uo.existsSync(m))return m;if(i.includes(dt.extname(p)))return;let y=i.find(_=>Uo.existsSync(`${m}${_}`));if(y)return`${m}${y}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,u=this._executableDir||"";if(this._scriptPath){let f;try{f=Uo.realpathSync(this._scriptPath)}catch{f=this._scriptPath}u=dt.resolve(dt.dirname(f),u)}if(u){let f=s(u,o);if(!f&&!e._executableFile&&this._scriptPath){let p=dt.basename(this._scriptPath,dt.extname(this._scriptPath));p!==this._name&&(f=s(u,`${p}-${e._name}`))}o=f||o}n=i.includes(dt.extname(o));let a;se.platform!=="win32"?n?(r.unshift(o),r=jc(se.execArgv).concat(r),a=Ho.spawn(se.argv[0],r,{stdio:"inherit"})):a=Ho.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=jc(se.execArgv).concat(r),a=Ho.spawn(se.execPath,r,{stdio:"inherit"})),a.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(p=>{se.on(p,()=>{a.killed===!1&&a.exitCode===null&&a.kill(p)})});let c=this._exitCallback;c?a.on("close",()=>{c(new jo(se.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):a.on("close",se.exit.bind(se)),a.on("error",f=>{if(f.code==="ENOENT"){let p=u?`searched for local subcommand relative to directory '${u}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",m=`'${o}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
16
  - ${p}`;throw new Error(m)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)se.exit(1);else{let p=new jo(1,"commander.executeSubCommandAsync","(error)");p.nestedError=f,c(p)}}),this.runningCommand=a}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg){let u=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,i,s,u)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,u)=>e(n,u,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return Uc(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Uc(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(a){return a.length>1&&a[0]==="-"}let u=null;for(;s.length;){let a=s.shift();if(a==="--"){i===n&&i.push(a),i.push(...s);break}if(u&&!o(a)){this.emit(`option:${u.name()}`,a);continue}if(u=null,o(a)){let c=this._findOption(a);if(c){if(c.required){let f=s.shift();f===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,f)}else if(c.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${c.name()}`,f)}else this.emit(`option:${c.name()}`);u=c.variadic?c:null;continue}}if(a.length>2&&a[0]==="-"&&a[1]!=="-"){let c=this._findOption(`-${a[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,a.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${a.slice(2)}`));continue}}if(/^--[^=]+=/.test(a)){let c=a.indexOf("="),f=this._findOption(a.slice(0,c));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,a.slice(c+1));continue}}if(o(a)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(a)){r.push(a),s.length>0&&n.push(...s);break}else if(a===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(a),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(a),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(a),s.length>0&&i.push(...s);break}i.push(a)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in se.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,se.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new yx(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let u=o.attributeName(),a=this.getOptionValue(u),c=this.options.find(p=>p.negate&&u===p.attributeName()),f=this.options.find(p=>!p.negate&&u===p.attributeName());return c&&(c.presetArg===void 0&&a===!1||c.presetArg!==void 0&&a===c.presetArg)?c:f||o},i=o=>{let u=n(o),a=u.attributeName();return this.getOptionValueSource(a)==="env"?`environment variable '${u.envVar}'`:`option '${u.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(u=>u.long).map(u=>u.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Hc(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Hc(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>mx(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=dt.basename(e,dt.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Ex(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=se.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in se.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,se.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new xx(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let u=o.attributeName(),a=this.getOptionValue(u),c=this.options.find(p=>p.negate&&u===p.attributeName()),f=this.options.find(p=>!p.negate&&u===p.attributeName());return c&&(c.presetArg===void 0&&a===!1||c.presetArg!==void 0&&a===c.presetArg)?c:f||o},i=o=>{let u=n(o),a=u.attributeName();return this.getOptionValueSource(a)==="env"?`environment variable '${u.envVar}'`:`option '${u.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(u=>u.long).map(u=>u.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Hc(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Hc(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>gx(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=dt.basename(e,dt.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=yx(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=se.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
22
- `)}),this}};function Uc(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function jc(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}qc.Command=qo});var Kc=C((ze,zc)=>{"use strict";l();var{Argument:xx}=pi(),{Command:Wc}=Gc(),{CommanderError:bx,InvalidArgumentError:Vc}=en(),{Help:_x}=ko(),{Option:Cx}=Mo();ze=zc.exports=new Wc;ze.program=ze;ze.Command=Wc;ze.Option=Cx;ze.Argument=xx;ze.Help=_x;ze.CommanderError=bx;ze.InvalidArgumentError=Vc;ze.InvalidOptionArgumentError=Vc});var Jc=C(tn=>{"use strict";l();Object.defineProperty(tn,"__esModule",{value:!0});tn.listen=void 0;var Fx=require("http"),wx=require("https"),Sx=require("path"),vx=require("events"),Ax=t=>{if(typeof t.protocol=="string")return t.protocol;if(t instanceof Fx.Server)return"http";if(t instanceof wx.Server)return"https"};async function Zc(t,...e){t.listen(...e,()=>{}),await(0,vx.once)(t,"listening");let r=t.address();if(!r)throw new Error("Server not listening");let n,i=Ax(t);if(typeof r=="string")n=encodeURIComponent((0,Sx.resolve)(r)),i?i+="+unix":i="unix";else{let{address:s,port:o,family:u}=r;n=u==="IPv6"?`[${s}]`:s,n+=`:${o}`,i||(i="tcp")}return new URL(`${i}://${n}`)}tn.listen=Zc;tn.default=Zc});var tf=C((h3,ef)=>{"use strict";l();var Qc=require("fs"),Go;function Tx(){try{return Qc.statSync("/.dockerenv"),!0}catch{return!1}}function Ox(){try{return Qc.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}ef.exports=()=>(Go===void 0&&(Go=Tx()||Ox()),Go)});var sf=C((p3,Wo)=>{"use strict";l();var Rx=require("os"),Bx=require("fs"),rf=tf(),nf=()=>{if(process.platform!=="linux")return!1;if(Rx.release().toLowerCase().includes("microsoft"))return!rf();try{return Bx.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!rf():!1}catch{return!1}};process.env.__IS_WSL_TEST__?Wo.exports=nf:Wo.exports=nf()});var of=C((E3,mi)=>{"use strict";l();var De=function(t){"use strict";var e=1e7,r=7,n=9007199254740992,i=m(n),s="0123456789abcdefghijklmnopqrstuvwxyz",o=typeof BigInt=="function";function u(h,d,D,g){return typeof h>"u"?u[0]:typeof d<"u"?+d==10&&!D?W(h):B(h,d,D,g):W(h)}function a(h,d){this.value=h,this.sign=d,this.isSmall=!1}a.prototype=Object.create(u.prototype);function c(h){this.value=h,this.sign=h<0,this.isSmall=!0}c.prototype=Object.create(u.prototype);function f(h){this.value=h}f.prototype=Object.create(u.prototype);function p(h){return-n<h&&h<n}function m(h){return h<1e7?[h]:h<1e14?[h%1e7,Math.floor(h/1e7)]:[h%1e7,Math.floor(h/1e7)%1e7,Math.floor(h/1e14)]}function y(h){_(h);var d=h.length;if(d<4&&lt(h,i)<0)switch(d){case 0:return 0;case 1:return h[0];case 2:return h[0]+h[1]*e;default:return h[0]+(h[1]+h[2]*e)*e}return h}function _(h){for(var d=h.length;h[--d]===0;);h.length=d+1}function O(h){for(var d=new Array(h),D=-1;++D<h;)d[D]=0;return d}function k(h){return h>0?Math.floor(h):Math.ceil(h)}function H(h,d){var D=h.length,g=d.length,b=new Array(D),E=0,w=e,S,v;for(v=0;v<g;v++)S=h[v]+d[v]+E,E=S>=w?1:0,b[v]=S-E*w;for(;v<D;)S=h[v]+E,E=S===w?1:0,b[v++]=S-E*w;return E>0&&b.push(E),b}function q(h,d){return h.length>=d.length?H(h,d):H(d,h)}function j(h,d){var D=h.length,g=new Array(D),b=e,E,w;for(w=0;w<D;w++)E=h[w]-b+d,d=Math.floor(E/b),g[w]=E-d*b,d+=1;for(;d>0;)g[w++]=d%b,d=Math.floor(d/b);return g}a.prototype.add=function(h){var d=W(h);if(this.sign!==d.sign)return this.subtract(d.negate());var D=this.value,g=d.value;return d.isSmall?new a(j(D,Math.abs(g)),this.sign):new a(q(D,g),this.sign)},a.prototype.plus=a.prototype.add,c.prototype.add=function(h){var d=W(h),D=this.value;if(D<0!==d.sign)return this.subtract(d.negate());var g=d.value;if(d.isSmall){if(p(D+g))return new c(D+g);g=m(Math.abs(g))}return new a(j(g,Math.abs(D)),D<0)},c.prototype.plus=c.prototype.add,f.prototype.add=function(h){return new f(this.value+W(h).value)},f.prototype.plus=f.prototype.add;function T(h,d){var D=h.length,g=d.length,b=new Array(D),E=0,w=e,S,v;for(S=0;S<g;S++)v=h[S]-E-d[S],v<0?(v+=w,E=1):E=0,b[S]=v;for(S=g;S<D;S++){if(v=h[S]-E,v<0)v+=w;else{b[S++]=v;break}b[S]=v}for(;S<D;S++)b[S]=h[S];return _(b),b}function $(h,d,D){var g;return lt(h,d)>=0?g=T(h,d):(g=T(d,h),D=!D),g=y(g),typeof g=="number"?(D&&(g=-g),new c(g)):new a(g,D)}function R(h,d,D){var g=h.length,b=new Array(g),E=-d,w=e,S,v;for(S=0;S<g;S++)v=h[S]+E,E=Math.floor(v/w),v%=w,b[S]=v<0?v+w:v;return b=y(b),typeof b=="number"?(D&&(b=-b),new c(b)):new a(b,D)}a.prototype.subtract=function(h){var d=W(h);if(this.sign!==d.sign)return this.add(d.negate());var D=this.value,g=d.value;return d.isSmall?R(D,Math.abs(g),this.sign):$(D,g,this.sign)},a.prototype.minus=a.prototype.subtract,c.prototype.subtract=function(h){var d=W(h),D=this.value;if(D<0!==d.sign)return this.add(d.negate());var g=d.value;return d.isSmall?new c(D-g):R(g,Math.abs(D),D>=0)},c.prototype.minus=c.prototype.subtract,f.prototype.subtract=function(h){return new f(this.value-W(h).value)},f.prototype.minus=f.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},c.prototype.negate=function(){var h=this.sign,d=new c(-this.value);return d.sign=!h,d},f.prototype.negate=function(){return new f(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function L(h,d){var D=h.length,g=d.length,b=D+g,E=O(b),w=e,S,v,z,J,K;for(z=0;z<D;++z){J=h[z];for(var re=0;re<g;++re)K=d[re],S=J*K+E[z+re],v=Math.floor(S/w),E[z+re]=S-v*w,E[z+re+1]+=v}return _(E),E}function F(h,d){var D=h.length,g=new Array(D),b=e,E=0,w,S;for(S=0;S<D;S++)w=h[S]*d+E,E=Math.floor(w/b),g[S]=w-E*b;for(;E>0;)g[S++]=E%b,E=Math.floor(E/b);return g}function A(h,d){for(var D=[];d-- >0;)D.push(0);return D.concat(h)}function N(h,d){var D=Math.max(h.length,d.length);if(D<=30)return L(h,d);D=Math.ceil(D/2);var g=h.slice(D),b=h.slice(0,D),E=d.slice(D),w=d.slice(0,D),S=N(b,w),v=N(g,E),z=N(q(b,g),q(w,E)),J=q(q(S,A(T(T(z,S),v),D)),A(v,2*D));return _(J),J}function I(h,d){return-.012*h-.012*d+15e-6*h*d>0}a.prototype.multiply=function(h){var d=W(h),D=this.value,g=d.value,b=this.sign!==d.sign,E;if(d.isSmall){if(g===0)return u[0];if(g===1)return this;if(g===-1)return this.negate();if(E=Math.abs(g),E<e)return new a(F(D,E),b);g=m(E)}return I(D.length,g.length)?new a(N(D,g),b):new a(L(D,g),b)},a.prototype.times=a.prototype.multiply;function V(h,d,D){return h<e?new a(F(d,h),D):new a(L(d,m(h)),D)}c.prototype._multiplyBySmall=function(h){return p(h.value*this.value)?new c(h.value*this.value):V(Math.abs(h.value),m(Math.abs(this.value)),this.sign!==h.sign)},a.prototype._multiplyBySmall=function(h){return h.value===0?u[0]:h.value===1?this:h.value===-1?this.negate():V(Math.abs(h.value),this.value,this.sign!==h.sign)},c.prototype.multiply=function(h){return W(h)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,f.prototype.multiply=function(h){return new f(this.value*W(h).value)},f.prototype.times=f.prototype.multiply;function G(h){var d=h.length,D=O(d+d),g=e,b,E,w,S,v;for(w=0;w<d;w++){S=h[w],E=0-S*S;for(var z=w;z<d;z++)v=h[z],b=2*(S*v)+D[w+z]+E,E=Math.floor(b/g),D[w+z]=b-E*g;D[w+d]=E}return _(D),D}a.prototype.square=function(){return new a(G(this.value),!1)},c.prototype.square=function(){var h=this.value*this.value;return p(h)?new c(h):new a(G(m(Math.abs(this.value))),!1)},f.prototype.square=function(h){return new f(this.value*this.value)};function Z(h,d){var D=h.length,g=d.length,b=e,E=O(d.length),w=d[g-1],S=Math.ceil(b/(2*w)),v=F(h,S),z=F(d,S),J,K,re,Pe,Te,vo,Ao;for(v.length<=D&&v.push(0),z.push(0),w=z[g-1],K=D-g;K>=0;K--){for(J=b-1,v[K+g]!==w&&(J=Math.floor((v[K+g]*b+v[K+g-1])/w)),re=0,Pe=0,vo=z.length,Te=0;Te<vo;Te++)re+=J*z[Te],Ao=Math.floor(re/b),Pe+=v[K+Te]-(re-Ao*b),re=Ao,Pe<0?(v[K+Te]=Pe+b,Pe=-1):(v[K+Te]=Pe,Pe=0);for(;Pe!==0;){for(J-=1,re=0,Te=0;Te<vo;Te++)re+=v[K+Te]-b+z[Te],re<0?(v[K+Te]=re+b,re=0):(v[K+Te]=re,re=1);Pe+=re}E[K]=J}return v=He(v,S)[0],[y(E),y(v)]}function te(h,d){for(var D=h.length,g=d.length,b=[],E=[],w=e,S,v,z,J,K;D;){if(E.unshift(h[--D]),_(E),lt(E,d)<0){b.push(0);continue}v=E.length,z=E[v-1]*w+E[v-2],J=d[g-1]*w+d[g-2],v>g&&(z=(z+1)*w),S=Math.ceil(z/J);do{if(K=F(d,S),lt(K,E)<=0)break;S--}while(S);b.push(S),E=T(E,K)}return b.reverse(),[y(b),y(E)]}function He(h,d){var D=h.length,g=O(D),b=e,E,w,S,v;for(S=0,E=D-1;E>=0;--E)v=S*b+h[E],w=k(v/d),S=v-w*d,g[E]=w|0;return[g,S|0]}function at(h,d){var D,g=W(d);if(o)return[new f(h.value/g.value),new f(h.value%g.value)];var b=h.value,E=g.value,w;if(E===0)throw new Error("Cannot divide by zero");if(h.isSmall)return g.isSmall?[new c(k(b/E)),new c(b%E)]:[u[0],h];if(g.isSmall){if(E===1)return[h,u[0]];if(E==-1)return[h.negate(),u[0]];var S=Math.abs(E);if(S<e){D=He(b,S),w=y(D[0]);var v=D[1];return h.sign&&(v=-v),typeof w=="number"?(h.sign!==g.sign&&(w=-w),[new c(w),new c(v)]):[new a(w,h.sign!==g.sign),new c(v)]}E=m(S)}var z=lt(b,E);if(z===-1)return[u[0],h];if(z===0)return[u[h.sign===g.sign?1:-1],u[0]];b.length+E.length<=200?D=Z(b,E):D=te(b,E),w=D[0];var J=h.sign!==g.sign,K=D[1],re=h.sign;return typeof w=="number"?(J&&(w=-w),w=new c(w)):w=new a(w,J),typeof K=="number"?(re&&(K=-K),K=new c(K)):K=new a(K,re),[w,K]}a.prototype.divmod=function(h){var d=at(this,h);return{quotient:d[0],remainder:d[1]}},f.prototype.divmod=c.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(h){return at(this,h)[0]},f.prototype.over=f.prototype.divide=function(h){return new f(this.value/W(h).value)},c.prototype.over=c.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(h){return at(this,h)[1]},f.prototype.mod=f.prototype.remainder=function(h){return new f(this.value%W(h).value)},c.prototype.remainder=c.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(h){var d=W(h),D=this.value,g=d.value,b,E,w;if(g===0)return u[1];if(D===0)return u[0];if(D===1)return u[1];if(D===-1)return d.isEven()?u[1]:u[-1];if(d.sign)return u[0];if(!d.isSmall)throw new Error("The exponent "+d.toString()+" is too large.");if(this.isSmall&&p(b=Math.pow(D,g)))return new c(k(b));for(E=this,w=u[1];g&!0&&(w=w.times(E),--g),g!==0;)g/=2,E=E.square();return w},c.prototype.pow=a.prototype.pow,f.prototype.pow=function(h){var d=W(h),D=this.value,g=d.value,b=BigInt(0),E=BigInt(1),w=BigInt(2);if(g===b)return u[1];if(D===b)return u[0];if(D===E)return u[1];if(D===BigInt(-1))return d.isEven()?u[1]:u[-1];if(d.isNegative())return new f(b);for(var S=this,v=u[1];(g&E)===E&&(v=v.times(S),--g),g!==b;)g/=w,S=S.square();return v},a.prototype.modPow=function(h,d){if(h=W(h),d=W(d),d.isZero())throw new Error("Cannot take modPow with modulus 0");var D=u[1],g=this.mod(d);for(h.isNegative()&&(h=h.multiply(u[-1]),g=g.modInv(d));h.isPositive();){if(g.isZero())return u[0];h.isOdd()&&(D=D.multiply(g).mod(d)),h=h.divide(2),g=g.square().mod(d)}return D},f.prototype.modPow=c.prototype.modPow=a.prototype.modPow;function lt(h,d){if(h.length!==d.length)return h.length>d.length?1:-1;for(var D=h.length-1;D>=0;D--)if(h[D]!==d[D])return h[D]>d[D]?1:-1;return 0}a.prototype.compareAbs=function(h){var d=W(h),D=this.value,g=d.value;return d.isSmall?1:lt(D,g)},c.prototype.compareAbs=function(h){var d=W(h),D=Math.abs(this.value),g=d.value;return d.isSmall?(g=Math.abs(g),D===g?0:D>g?1:-1):-1},f.prototype.compareAbs=function(h){var d=this.value,D=W(h).value;return d=d>=0?d:-d,D=D>=0?D:-D,d===D?0:d>D?1:-1},a.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=W(h),D=this.value,g=d.value;return this.sign!==d.sign?d.sign?1:-1:d.isSmall?this.sign?-1:1:lt(D,g)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,c.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=W(h),D=this.value,g=d.value;return d.isSmall?D==g?0:D>g?1:-1:D<0!==d.sign?D<0?-1:1:D<0?1:-1},c.prototype.compareTo=c.prototype.compare,f.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=this.value,D=W(h).value;return d===D?0:d>D?1:-1},f.prototype.compareTo=f.prototype.compare,a.prototype.equals=function(h){return this.compare(h)===0},f.prototype.eq=f.prototype.equals=c.prototype.eq=c.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(h){return this.compare(h)!==0},f.prototype.neq=f.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(h){return this.compare(h)>0},f.prototype.gt=f.prototype.greater=c.prototype.gt=c.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(h){return this.compare(h)<0},f.prototype.lt=f.prototype.lesser=c.prototype.lt=c.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},f.prototype.geq=f.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},f.prototype.leq=f.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(this.value[0]&1)===0},c.prototype.isEven=function(){return(this.value&1)===0},f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(this.value[0]&1)===1},c.prototype.isOdd=function(){return(this.value&1)===1},f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},f.prototype.isPositive=c.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},f.prototype.isNegative=c.prototype.isNegative,a.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return Math.abs(this.value)===1},f.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return this.value===0},f.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(h){var d=W(h);return d.isZero()?!1:d.isUnit()?!0:d.compareAbs(2)===0?this.isEven():this.mod(d).isZero()},f.prototype.isDivisibleBy=c.prototype.isDivisibleBy=a.prototype.isDivisibleBy;function li(h){var d=h.abs();if(d.isUnit())return!1;if(d.equals(2)||d.equals(3)||d.equals(5))return!0;if(d.isEven()||d.isDivisibleBy(3)||d.isDivisibleBy(5))return!1;if(d.lesser(49))return!0}function ct(h,d){for(var D=h.prev(),g=D,b=0,E,w,S,v;g.isEven();)g=g.divide(2),b++;e:for(S=0;S<d.length;S++)if(!h.lesser(d[S])&&(v=De(d[S]).modPow(g,h),!(v.isUnit()||v.equals(D)))){for(E=b-1;E!=0;E--){if(v=v.square().mod(h),v.isUnit())return!1;if(v.equals(D))continue e}return!1}return!0}a.prototype.isPrime=function(h){var d=li(this);if(d!==t)return d;var D=this.abs(),g=D.bitLength();if(g<=64)return ct(D,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var b=Math.log(2)*g.toJSNumber(),E=Math.ceil(h===!0?2*Math.pow(b,2):b),w=[],S=0;S<E;S++)w.push(De(S+2));return ct(D,w)},f.prototype.isPrime=c.prototype.isPrime=a.prototype.isPrime,a.prototype.isProbablePrime=function(h,d){var D=li(this);if(D!==t)return D;for(var g=this.abs(),b=h===t?5:h,E=[],w=0;w<b;w++)E.push(De.randBetween(2,g.minus(2),d));return ct(g,E)},f.prototype.isProbablePrime=c.prototype.isProbablePrime=a.prototype.isProbablePrime,a.prototype.modInv=function(h){for(var d=De.zero,D=De.one,g=W(h),b=this.abs(),E,w,S;!b.isZero();)E=g.divide(b),w=d,S=g,d=D,g=b,D=w.subtract(E.multiply(D)),b=S.subtract(E.multiply(b));if(!g.isUnit())throw new Error(this.toString()+" and "+h.toString()+" are not co-prime");return d.compare(0)===-1&&(d=d.add(h)),this.isNegative()?d.negate():d},f.prototype.modInv=c.prototype.modInv=a.prototype.modInv,a.prototype.next=function(){var h=this.value;return this.sign?R(h,1,this.sign):new a(j(h,1),this.sign)},c.prototype.next=function(){var h=this.value;return h+1<n?new c(h+1):new a(i,!1)},f.prototype.next=function(){return new f(this.value+BigInt(1))},a.prototype.prev=function(){var h=this.value;return this.sign?new a(j(h,1),!0):R(h,1,this.sign)},c.prototype.prev=function(){var h=this.value;return h-1>-n?new c(h-1):new a(i,!0)},f.prototype.prev=function(){return new f(this.value-BigInt(1))};for(var Ve=[1];2*Ve[Ve.length-1]<=e;)Ve.push(2*Ve[Ve.length-1]);var Yt=Ve.length,ft=Ve[Yt-1];function mr(h){return Math.abs(h)<=e}a.prototype.shiftLeft=function(h){var d=W(h).toJSNumber();if(!mr(d))throw new Error(String(d)+" is too large for shifting.");if(d<0)return this.shiftRight(-d);var D=this;if(D.isZero())return D;for(;d>=Yt;)D=D.multiply(ft),d-=Yt-1;return D.multiply(Ve[d])},f.prototype.shiftLeft=c.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(h){var d,D=W(h).toJSNumber();if(!mr(D))throw new Error(String(D)+" is too large for shifting.");if(D<0)return this.shiftLeft(-D);for(var g=this;D>=Yt;){if(g.isZero()||g.isNegative()&&g.isUnit())return g;d=at(g,ft),g=d[1].isNegative()?d[0].prev():d[0],D-=Yt-1}return d=at(g,Ve[D]),d[1].isNegative()?d[0].prev():d[0]},f.prototype.shiftRight=c.prototype.shiftRight=a.prototype.shiftRight;function Ue(h,d,D){d=W(d);for(var g=h.isNegative(),b=d.isNegative(),E=g?h.not():h,w=b?d.not():d,S=0,v=0,z=null,J=null,K=[];!E.isZero()||!w.isZero();)z=at(E,ft),S=z[1].toJSNumber(),g&&(S=ft-1-S),J=at(w,ft),v=J[1].toJSNumber(),b&&(v=ft-1-v),E=z[0],w=J[0],K.push(D(S,v));for(var re=D(g?1:0,b?1:0)!==0?De(-1):De(0),Pe=K.length-1;Pe>=0;Pe-=1)re=re.multiply(ft).add(De(K[Pe]));return re}a.prototype.not=function(){return this.negate().prev()},f.prototype.not=c.prototype.not=a.prototype.not,a.prototype.and=function(h){return Ue(this,h,function(d,D){return d&D})},f.prototype.and=c.prototype.and=a.prototype.and,a.prototype.or=function(h){return Ue(this,h,function(d,D){return d|D})},f.prototype.or=c.prototype.or=a.prototype.or,a.prototype.xor=function(h){return Ue(this,h,function(d,D){return d^D})},f.prototype.xor=c.prototype.xor=a.prototype.xor;var vt=1<<30,x=(e&-e)*(e&-e)|vt;function ht(h){var d=h.value,D=typeof d=="number"?d|vt:typeof d=="bigint"?d|BigInt(vt):d[0]+d[1]*e|x;return D&-D}function X(h,d){if(d.compareTo(h)<=0){var D=X(h,d.square(d)),g=D.p,b=D.e,E=g.multiply(d);return E.compareTo(h)<=0?{p:E,e:b*2+1}:{p:g,e:b*2}}return{p:De(1),e:0}}a.prototype.bitLength=function(){var h=this;return h.compareTo(De(0))<0&&(h=h.negate().subtract(De(1))),h.compareTo(De(0))===0?De(0):De(X(h,De(2)).e).add(De(1))},f.prototype.bitLength=c.prototype.bitLength=a.prototype.bitLength;function Xt(h,d){return h=W(h),d=W(d),h.greater(d)?h:d}function je(h,d){return h=W(h),d=W(d),h.lesser(d)?h:d}function U(h,d){if(h=W(h).abs(),d=W(d).abs(),h.equals(d))return h;if(h.isZero())return d;if(d.isZero())return h;for(var D=u[1],g,b;h.isEven()&&d.isEven();)g=je(ht(h),ht(d)),h=h.divide(g),d=d.divide(g),D=D.multiply(g);for(;h.isEven();)h=h.divide(ht(h));do{for(;d.isEven();)d=d.divide(ht(d));h.greater(d)&&(b=d,d=h,h=b),d=d.subtract(h)}while(!d.isZero());return D.isUnit()?h:h.multiply(D)}function Qr(h,d){return h=W(h).abs(),d=W(d).abs(),h.divide(U(h,d)).multiply(d)}function Q(h,d,D){h=W(h),d=W(d);var g=D||Math.random,b=je(h,d),E=Xt(h,d),w=E.subtract(b).add(1);if(w.isSmall)return b.add(Math.floor(g()*w));for(var S=P(w,e).value,v=[],z=!0,J=0;J<S.length;J++){var K=z?S[J]+(J+1<S.length?S[J+1]/e:0):e,re=k(g()*K);v.push(re),re<S[J]&&(z=!1)}return b.add(u.fromArray(v,e,!1))}var B=function(h,d,D,g){D=D||s,h=String(h),g||(h=h.toLowerCase(),D=D.toLowerCase());var b=h.length,E,w=Math.abs(d),S={};for(E=0;E<D.length;E++)S[D[E]]=E;for(E=0;E<b;E++){var v=h[E];if(v!=="-"&&v in S&&S[v]>=w){if(v==="1"&&w===1)continue;throw new Error(v+" is not a valid digit in base "+d+".")}}d=W(d);var z=[],J=h[0]==="-";for(E=J?1:0;E<h.length;E++){var v=h[E];if(v in S)z.push(W(S[v]));else if(v==="<"){var K=E;do E++;while(h[E]!==">"&&E<h.length);z.push(W(h.slice(K+1,E)))}else throw new Error(v+" is not a valid character")}return Y(z,d,J)};function Y(h,d,D){var g=u[0],b=u[1],E;for(E=h.length-1;E>=0;E--)g=g.add(h[E].times(b)),b=b.times(d);return D?g.negate():g}function he(h,d){return d=d||s,h<d.length?d[h]:"<"+h+">"}function P(h,d){if(d=De(d),d.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(d.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var D=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return D.unshift([1]),{value:[].concat.apply([],D),isNegative:!1}}var g=!1;if(h.isNegative()&&d.isPositive()&&(g=!0,h=h.abs()),d.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:g};for(var b=[],E=h,w;E.isNegative()||E.compareAbs(d)>=0;){w=E.divmod(d),E=w.quotient;var S=w.remainder;S.isNegative()&&(S=d.minus(S).abs(),E=E.next()),b.push(S.toJSNumber())}return b.push(E.toJSNumber()),{value:b.reverse(),isNegative:g}}function ci(h,d,D){var g=P(h,d);return(g.isNegative?"-":"")+g.value.map(function(b){return he(b,D)}).join("")}a.prototype.toArray=function(h){return P(this,h)},c.prototype.toArray=function(h){return P(this,h)},f.prototype.toArray=function(h){return P(this,h)},a.prototype.toString=function(h,d){if(h===t&&(h=10),h!==10)return ci(this,h,d);for(var D=this.value,g=D.length,b=String(D[--g]),E="0000000",w;--g>=0;)w=String(D[g]),b+=E.slice(w.length)+w;var S=this.sign?"-":"";return S+b},c.prototype.toString=function(h,d){return h===t&&(h=10),h!=10?ci(this,h,d):String(this.value)},f.prototype.toString=c.prototype.toString,f.prototype.toJSON=a.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function fi(h){if(p(+h)){var d=+h;if(d===k(d))return o?new f(BigInt(d)):new c(d);throw new Error("Invalid integer: "+h)}var D=h[0]==="-";D&&(h=h.slice(1));var g=h.split(/e/i);if(g.length>2)throw new Error("Invalid integer: "+g.join("e"));if(g.length===2){var b=g[1];if(b[0]==="+"&&(b=b.slice(1)),b=+b,b!==k(b)||!p(b))throw new Error("Invalid integer: "+b+" is not a valid exponent.");var E=g[0],w=E.indexOf(".");if(w>=0&&(b-=E.length-w-1,E=E.slice(0,w)+E.slice(w+1)),b<0)throw new Error("Cannot include negative exponent part for integers");E+=new Array(b+1).join("0"),h=E}var S=/^([0-9][0-9]*)$/.test(h);if(!S)throw new Error("Invalid integer: "+h);if(o)return new f(BigInt(D?"-"+h:h));for(var v=[],z=h.length,J=r,K=z-J;z>0;)v.push(+h.slice(K,z)),K-=J,K<0&&(K=0),z-=J;return _(v),new a(v,D)}function So(h){if(o)return new f(BigInt(h));if(p(h)){if(h!==k(h))throw new Error(h+" is not an integer.");return new c(h)}return fi(h.toString())}function W(h){return typeof h=="number"?So(h):typeof h=="string"?fi(h):typeof h=="bigint"?new f(h):h}for(var Qe=0;Qe<1e3;Qe++)u[Qe]=W(Qe),Qe>0&&(u[-Qe]=W(-Qe));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=Xt,u.min=je,u.gcd=U,u.lcm=Qr,u.isInstance=function(h){return h instanceof a||h instanceof c||h instanceof f},u.randBetween=Q,u.fromArray=function(h,d,D){return Y(h.map(W),W(d||10),D)},u}();typeof mi<"u"&&mi.hasOwnProperty("exports")&&(mi.exports=De);typeof define=="function"&&define.amd&&define(function(){return De})});var uf=C(me=>{"use strict";l();var Ix=require("fs"),Px=of(),At=!1;me.maxObjectSize=100*1e3*1e3;me.maxObjectCount=32768;var Nx=9783072e5,kx=me.UID=function(t){this.UID=t},x3=me.parseFile=function(t,e){return new Promise(function(r,n){function i(s){let o=null,u;try{u=Lx(s),r(u)}catch(a){o=a,n(o)}finally{e&&e(o,u)}}if(Buffer.isBuffer(t))return i(t);Ix.readFile(t,function(s,o){if(s)return n(s),e(s);i(o)})})},Lx=me.parseBuffer=function(t){if(t.slice(0,6).toString("utf8")!=="bplist")throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.");let r=t.slice(t.length-32,t.length),n=r.readUInt8(6);At&&console.log("offsetSize: "+n);let i=r.readUInt8(7);At&&console.log("objectRefSize: "+i);let s=Vo(r,8);At&&console.log("numObjects: "+s);let o=Vo(r,16);At&&console.log("topObject: "+o);let u=Vo(r,24);if(At&&console.log("offsetTableOffset: "+u),s>me.maxObjectCount)throw new Error("maxObjectCount exceeded");let a=[];for(let f=0;f<s;f++){let p=t.slice(u+f*n,u+(f+1)*n);a[f]=Oe(p,0),At&&console.log("Offset for Object #"+f+" is "+a[f]+" ["+a[f].toString(16)+"]")}function c(f){let p=a[f],m=t[p],y=(m&240)>>4,_=m&15;switch(y){case 0:return O();case 1:return H();case 8:return q();case 2:return j();case 3:return T();case 4:return $();case 5:return R();case 6:return R(!0);case 10:return L();case 13:return F();default:throw new Error("Unhandled type 0x"+y.toString(16))}function O(){switch(_){case 0:return null;case 8:return!1;case 9:return!0;case 15:return null;default:throw new Error("Unhandled simple type 0x"+y.toString(16))}}function k(A){let N="",I;for(I=0;I<A.length&&A[I]==0;I++);for(;I<A.length;I++){let V="00"+A[I].toString(16);N+=V.substr(V.length-2)}return N}function H(){let A=Math.pow(2,_);if(_==4){let N=t.slice(p+1,p+1+A),I=k(N);return Px(I,16)}if(_==3)return t.readInt32BE(p+1);if(A<me.maxObjectSize)return Oe(t.slice(p+1,p+1+A));throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function q(){let A=_+1;if(A<me.maxObjectSize)return new kx(Oe(t.slice(p+1,p+1+A)));throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function j(){let A=Math.pow(2,_);if(A<me.maxObjectSize){let N=t.slice(p+1,p+1+A);if(A===4)return N.readFloatBE(0);if(A===8)return N.readDoubleBE(0)}else throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function T(){_!=3&&console.error("Unknown date type :"+_+". Parsing anyway...");let A=t.slice(p+1,p+9);return new Date(Nx+1e3*A.readDoubleBE(0))}function $(){let A=1,N=_;if(_==15){let I=t[p+1],V=(I&240)/16;V!=1&&console.error("0x4: UNEXPECTED LENGTH-INT TYPE! "+V);let G=I&15,Z=Math.pow(2,G);A=2+Z,Z<3,N=Oe(t.slice(p+2,p+2+Z))}if(N<me.maxObjectSize)return t.slice(p+A,p+A+N);throw new Error("To little heap space available! Wanted to read "+N+" bytes, but only "+me.maxObjectSize+" are available.")}function R(A){A=A||0;let N="utf8",I=_,V=1;if(_==15){let G=t[p+1],Z=(G&240)/16;Z!=1&&console.err("UNEXPECTED LENGTH-INT TYPE! "+Z);let te=G&15,He=Math.pow(2,te);V=2+He,He<3,I=Oe(t.slice(p+2,p+2+He))}if(I*=A+1,I<me.maxObjectSize){let G=Buffer.from(t.slice(p+V,p+V+I));return A&&(G=$x(G),N="ucs2"),G.toString(N)}throw new Error("To little heap space available! Wanted to read "+I+" bytes, but only "+me.maxObjectSize+" are available.")}function L(){let A=_,N=1;if(_==15){let V=t[p+1],G=(V&240)/16;G!=1&&console.error("0xa: UNEXPECTED LENGTH-INT TYPE! "+G);let Z=V&15,te=Math.pow(2,Z);N=2+te,te<3,A=Oe(t.slice(p+2,p+2+te))}if(A*i>me.maxObjectSize)throw new Error("To little heap space available!");let I=[];for(let V=0;V<A;V++){let G=Oe(t.slice(p+N+V*i,p+N+(V+1)*i));I[V]=c(G)}return I}function F(){let A=_,N=1;if(_==15){let V=t[p+1],G=(V&240)/16;G!=1&&console.error("0xD: UNEXPECTED LENGTH-INT TYPE! "+G);let Z=V&15,te=Math.pow(2,Z);N=2+te,te<3,A=Oe(t.slice(p+2,p+2+te))}if(A*2*i>me.maxObjectSize)throw new Error("To little heap space available!");At&&console.log("Parsing dictionary #"+f);let I={};for(let V=0;V<A;V++){let G=Oe(t.slice(p+N+V*i,p+N+(V+1)*i)),Z=Oe(t.slice(p+N+A*i+V*i,p+N+A*i+(V+1)*i)),te=c(G),He=c(Z);At&&console.log(" DICT #"+f+": Mapped "+te+" to "+He),I[te]=He}return I}}return[c(o)]};function Oe(t,e){e=e||0;let r=0;for(let n=e;n<t.length;n++)r<<=8,r|=t[n]&255;return r}function Vo(t,e){return t.slice(e,e+8).readUInt32BE(4,8)}function $x(t){let e=t.length;for(let r=0;r<e;r+=2){let n=t[r];t[r]=t[r+1],t[r+1]=n}return t}});var cf=C((C3,lf)=>{"use strict";l();var Mx=require("os"),af=Mx.homedir();lf.exports=t=>{if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return af?t.replace(/^~(?=$|\/|\\)/,af):t}});var yf=C((v3,Ef)=>{"use strict";l();Ef.exports=gf;gf.sync=qx;var Df=require("fs");function jx(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function mf(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:jx(e,r)}function gf(t,e,r){Df.stat(t,function(n,i){r(n,n?!1:mf(i,t,e))})}function qx(t,e){return mf(Df.statSync(t),t,e)}});var Ff=C((T3,Cf)=>{"use strict";l();Cf.exports=bf;bf.sync=Gx;var xf=require("fs");function bf(t,e,r){xf.stat(t,function(n,i){r(n,n?!1:_f(i,e))})}function Gx(t,e){return _f(xf.statSync(t),e)}function _f(t,e){return t.isFile()&&Wx(t,e)}function Wx(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),f=u|a,p=r&c||r&a&&i===o||r&u&&n===s||r&f&&s===0;return p}});var Sf=C((B3,wf)=>{"use strict";l();var R3=require("fs"),gi;process.platform==="win32"||global.TESTING_WINDOWS?gi=yf():gi=Ff();wf.exports=Ko;Ko.sync=Vx;function Ko(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Ko(t,e||{},function(s,o){s?i(s):n(o)})})}gi(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function Vx(t,e){try{return gi.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var If=C((P3,Bf)=>{"use strict";l();var gr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",vf=require("path"),zx=gr?";":":",Af=Sf(),Tf=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Of=(t,e)=>{let r=e.colon||zx,n=t.match(/\//)||gr&&t.match(/\\/)?[""]:[...gr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=gr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=gr?i.split(r):[""];return gr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},Rf=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=Of(t,e),o=[],u=c=>new Promise((f,p)=>{if(c===n.length)return e.all&&o.length?f(o):p(Tf(t));let m=n[c],y=/^".*"$/.test(m)?m.slice(1,-1):m,_=vf.join(y,t),O=!y&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;f(a(O,c,0))}),a=(c,f,p)=>new Promise((m,y)=>{if(p===i.length)return m(u(f+1));let _=i[p];Af(c+_,{pathExt:s},(O,k)=>{if(!O&&k)if(e.all)o.push(c+_);else return m(c+_);return m(a(c,f,p+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},Kx=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=Of(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=vf.join(a,t),f=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let p=0;p<n.length;p++){let m=f+n[p];try{if(Af.sync(m,{pathExt:i}))if(e.all)s.push(m);else return m}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Tf(t)};Bf.exports=Rf;Rf.sync=Kx});var Xo=C((k3,Yo)=>{"use strict";l();var Pf=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Yo.exports=Pf;Yo.exports.default=Pf});var $f=C(($3,Lf)=>{"use strict";l();var Nf=require("path"),Yx=If(),Xx=Xo();function kf(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=Yx.sync(t.command,{path:r[Xx({env:r})],pathExt:e?Nf.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=Nf.resolve(i?t.options.cwd:"",o)),o}function Zx(t){return kf(t)||kf(t,!0)}Lf.exports=Zx});var Mf=C((H3,Jo)=>{"use strict";l();var Zo=/([()\][%!^"`<>&|;, *?])/g;function Jx(t){return t=t.replace(Zo,"^$1"),t}function Qx(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Zo,"^$1"),e&&(t=t.replace(Zo,"^$1")),t}Jo.exports.command=Jx;Jo.exports.argument=Qx});var Uf=C((j3,Hf)=>{"use strict";l();Hf.exports=/^#!(.*)/});var qf=C((G3,jf)=>{"use strict";l();var eb=Uf();jf.exports=(t="")=>{let e=t.match(eb);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Wf=C((V3,Gf)=>{"use strict";l();var Qo=require("fs"),tb=qf();function rb(t){let r=Buffer.alloc(150),n;try{n=Qo.openSync(t,"r"),Qo.readSync(n,r,0,150,0),Qo.closeSync(n)}catch{}return tb(r.toString())}Gf.exports=rb});var Yf=C((K3,Kf)=>{"use strict";l();var nb=require("path"),Vf=$f(),zf=Mf(),ib=Wf(),sb=process.platform==="win32",ob=/\.(?:com|exe)$/i,ub=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ab(t){t.file=Vf(t);let e=t.file&&ib(t.file);return e?(t.args.unshift(t.file),t.command=e,Vf(t)):t.file}function lb(t){if(!sb)return t;let e=ab(t),r=!ob.test(e);if(t.options.forceShell||r){let n=ub.test(e);t.command=nb.normalize(t.command),t.command=zf.command(t.command),t.args=t.args.map(s=>zf.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function cb(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:lb(n)}Kf.exports=cb});var Jf=C((X3,Zf)=>{"use strict";l();var eu=process.platform==="win32";function tu(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function fb(t,e){if(!eu)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=Xf(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Xf(t,e){return eu&&t===1&&!e.file?tu(e.original,"spawn"):null}function hb(t,e){return eu&&t===1&&!e.file?tu(e.original,"spawnSync"):null}Zf.exports={hookChildProcess:fb,verifyENOENT:Xf,verifyENOENTSync:hb,notFoundError:tu}});var iu=C((J3,Er)=>{"use strict";l();var Qf=require("child_process"),ru=Yf(),nu=Jf();function eh(t,e,r){let n=ru(t,e,r),i=Qf.spawn(n.command,n.args,n.options);return nu.hookChildProcess(i,n),i}function db(t,e,r){let n=ru(t,e,r),i=Qf.spawnSync(n.command,n.args,n.options);return i.error=i.error||nu.verifyENOENTSync(i.status,n),i}Er.exports=eh;Er.exports.spawn=eh;Er.exports.sync=db;Er.exports._parse=ru;Er.exports._enoent=nu});var rh=C((eO,th)=>{"use strict";l();th.exports=t=>{let e=typeof t=="string"?`
22
+ `)}),this}};function Uc(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function jc(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}qc.Command=qo});var Kc=C((Ke,zc)=>{"use strict";l();var{Argument:bx}=pi(),{Command:Wc}=Gc(),{CommanderError:_x,InvalidArgumentError:Vc}=en(),{Help:Cx}=ko(),{Option:Fx}=Mo();Ke=zc.exports=new Wc;Ke.program=Ke;Ke.Command=Wc;Ke.Option=Fx;Ke.Argument=bx;Ke.Help=Cx;Ke.CommanderError=_x;Ke.InvalidArgumentError=Vc;Ke.InvalidOptionArgumentError=Vc});var Jc=C(tn=>{"use strict";l();Object.defineProperty(tn,"__esModule",{value:!0});tn.listen=void 0;var wx=require("http"),Sx=require("https"),vx=require("path"),Ax=require("events"),Tx=t=>{if(typeof t.protocol=="string")return t.protocol;if(t instanceof wx.Server)return"http";if(t instanceof Sx.Server)return"https"};async function Zc(t,...e){t.listen(...e,()=>{}),await(0,Ax.once)(t,"listening");let r=t.address();if(!r)throw new Error("Server not listening");let n,i=Tx(t);if(typeof r=="string")n=encodeURIComponent((0,vx.resolve)(r)),i?i+="+unix":i="unix";else{let{address:s,port:o,family:u}=r;n=u==="IPv6"?`[${s}]`:s,n+=`:${o}`,i||(i="tcp")}return new URL(`${i}://${n}`)}tn.listen=Zc;tn.default=Zc});var tf=C((h3,ef)=>{"use strict";l();var Qc=require("fs"),Go;function Ox(){try{return Qc.statSync("/.dockerenv"),!0}catch{return!1}}function Rx(){try{return Qc.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}ef.exports=()=>(Go===void 0&&(Go=Ox()||Rx()),Go)});var sf=C((p3,Wo)=>{"use strict";l();var Bx=require("os"),Ix=require("fs"),rf=tf(),nf=()=>{if(process.platform!=="linux")return!1;if(Bx.release().toLowerCase().includes("microsoft"))return!rf();try{return Ix.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!rf():!1}catch{return!1}};process.env.__IS_WSL_TEST__?Wo.exports=nf:Wo.exports=nf()});var of=C((E3,mi)=>{"use strict";l();var De=function(t){"use strict";var e=1e7,r=7,n=9007199254740992,i=m(n),s="0123456789abcdefghijklmnopqrstuvwxyz",o=typeof BigInt=="function";function u(h,d,D,g){return typeof h>"u"?u[0]:typeof d<"u"?+d==10&&!D?W(h):B(h,d,D,g):W(h)}function a(h,d){this.value=h,this.sign=d,this.isSmall=!1}a.prototype=Object.create(u.prototype);function c(h){this.value=h,this.sign=h<0,this.isSmall=!0}c.prototype=Object.create(u.prototype);function f(h){this.value=h}f.prototype=Object.create(u.prototype);function p(h){return-n<h&&h<n}function m(h){return h<1e7?[h]:h<1e14?[h%1e7,Math.floor(h/1e7)]:[h%1e7,Math.floor(h/1e7)%1e7,Math.floor(h/1e14)]}function y(h){_(h);var d=h.length;if(d<4&&lt(h,i)<0)switch(d){case 0:return 0;case 1:return h[0];case 2:return h[0]+h[1]*e;default:return h[0]+(h[1]+h[2]*e)*e}return h}function _(h){for(var d=h.length;h[--d]===0;);h.length=d+1}function O(h){for(var d=new Array(h),D=-1;++D<h;)d[D]=0;return d}function k(h){return h>0?Math.floor(h):Math.ceil(h)}function M(h,d){var D=h.length,g=d.length,b=new Array(D),E=0,w=e,S,v;for(v=0;v<g;v++)S=h[v]+d[v]+E,E=S>=w?1:0,b[v]=S-E*w;for(;v<D;)S=h[v]+E,E=S===w?1:0,b[v++]=S-E*w;return E>0&&b.push(E),b}function q(h,d){return h.length>=d.length?M(h,d):M(d,h)}function j(h,d){var D=h.length,g=new Array(D),b=e,E,w;for(w=0;w<D;w++)E=h[w]-b+d,d=Math.floor(E/b),g[w]=E-d*b,d+=1;for(;d>0;)g[w++]=d%b,d=Math.floor(d/b);return g}a.prototype.add=function(h){var d=W(h);if(this.sign!==d.sign)return this.subtract(d.negate());var D=this.value,g=d.value;return d.isSmall?new a(j(D,Math.abs(g)),this.sign):new a(q(D,g),this.sign)},a.prototype.plus=a.prototype.add,c.prototype.add=function(h){var d=W(h),D=this.value;if(D<0!==d.sign)return this.subtract(d.negate());var g=d.value;if(d.isSmall){if(p(D+g))return new c(D+g);g=m(Math.abs(g))}return new a(j(g,Math.abs(D)),D<0)},c.prototype.plus=c.prototype.add,f.prototype.add=function(h){return new f(this.value+W(h).value)},f.prototype.plus=f.prototype.add;function T(h,d){var D=h.length,g=d.length,b=new Array(D),E=0,w=e,S,v;for(S=0;S<g;S++)v=h[S]-E-d[S],v<0?(v+=w,E=1):E=0,b[S]=v;for(S=g;S<D;S++){if(v=h[S]-E,v<0)v+=w;else{b[S++]=v;break}b[S]=v}for(;S<D;S++)b[S]=h[S];return _(b),b}function $(h,d,D){var g;return lt(h,d)>=0?g=T(h,d):(g=T(d,h),D=!D),g=y(g),typeof g=="number"?(D&&(g=-g),new c(g)):new a(g,D)}function R(h,d,D){var g=h.length,b=new Array(g),E=-d,w=e,S,v;for(S=0;S<g;S++)v=h[S]+E,E=Math.floor(v/w),v%=w,b[S]=v<0?v+w:v;return b=y(b),typeof b=="number"?(D&&(b=-b),new c(b)):new a(b,D)}a.prototype.subtract=function(h){var d=W(h);if(this.sign!==d.sign)return this.add(d.negate());var D=this.value,g=d.value;return d.isSmall?R(D,Math.abs(g),this.sign):$(D,g,this.sign)},a.prototype.minus=a.prototype.subtract,c.prototype.subtract=function(h){var d=W(h),D=this.value;if(D<0!==d.sign)return this.add(d.negate());var g=d.value;return d.isSmall?new c(D-g):R(g,Math.abs(D),D>=0)},c.prototype.minus=c.prototype.subtract,f.prototype.subtract=function(h){return new f(this.value-W(h).value)},f.prototype.minus=f.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},c.prototype.negate=function(){var h=this.sign,d=new c(-this.value);return d.sign=!h,d},f.prototype.negate=function(){return new f(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function L(h,d){var D=h.length,g=d.length,b=D+g,E=O(b),w=e,S,v,z,J,K;for(z=0;z<D;++z){J=h[z];for(var re=0;re<g;++re)K=d[re],S=J*K+E[z+re],v=Math.floor(S/w),E[z+re]=S-v*w,E[z+re+1]+=v}return _(E),E}function F(h,d){var D=h.length,g=new Array(D),b=e,E=0,w,S;for(S=0;S<D;S++)w=h[S]*d+E,E=Math.floor(w/b),g[S]=w-E*b;for(;E>0;)g[S++]=E%b,E=Math.floor(E/b);return g}function A(h,d){for(var D=[];d-- >0;)D.push(0);return D.concat(h)}function N(h,d){var D=Math.max(h.length,d.length);if(D<=30)return L(h,d);D=Math.ceil(D/2);var g=h.slice(D),b=h.slice(0,D),E=d.slice(D),w=d.slice(0,D),S=N(b,w),v=N(g,E),z=N(q(b,g),q(w,E)),J=q(q(S,A(T(T(z,S),v),D)),A(v,2*D));return _(J),J}function I(h,d){return-.012*h-.012*d+15e-6*h*d>0}a.prototype.multiply=function(h){var d=W(h),D=this.value,g=d.value,b=this.sign!==d.sign,E;if(d.isSmall){if(g===0)return u[0];if(g===1)return this;if(g===-1)return this.negate();if(E=Math.abs(g),E<e)return new a(F(D,E),b);g=m(E)}return I(D.length,g.length)?new a(N(D,g),b):new a(L(D,g),b)},a.prototype.times=a.prototype.multiply;function V(h,d,D){return h<e?new a(F(d,h),D):new a(L(d,m(h)),D)}c.prototype._multiplyBySmall=function(h){return p(h.value*this.value)?new c(h.value*this.value):V(Math.abs(h.value),m(Math.abs(this.value)),this.sign!==h.sign)},a.prototype._multiplyBySmall=function(h){return h.value===0?u[0]:h.value===1?this:h.value===-1?this.negate():V(Math.abs(h.value),this.value,this.sign!==h.sign)},c.prototype.multiply=function(h){return W(h)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,f.prototype.multiply=function(h){return new f(this.value*W(h).value)},f.prototype.times=f.prototype.multiply;function G(h){var d=h.length,D=O(d+d),g=e,b,E,w,S,v;for(w=0;w<d;w++){S=h[w],E=0-S*S;for(var z=w;z<d;z++)v=h[z],b=2*(S*v)+D[w+z]+E,E=Math.floor(b/g),D[w+z]=b-E*g;D[w+d]=E}return _(D),D}a.prototype.square=function(){return new a(G(this.value),!1)},c.prototype.square=function(){var h=this.value*this.value;return p(h)?new c(h):new a(G(m(Math.abs(this.value))),!1)},f.prototype.square=function(h){return new f(this.value*this.value)};function Z(h,d){var D=h.length,g=d.length,b=e,E=O(d.length),w=d[g-1],S=Math.ceil(b/(2*w)),v=F(h,S),z=F(d,S),J,K,re,Pe,Te,vo,Ao;for(v.length<=D&&v.push(0),z.push(0),w=z[g-1],K=D-g;K>=0;K--){for(J=b-1,v[K+g]!==w&&(J=Math.floor((v[K+g]*b+v[K+g-1])/w)),re=0,Pe=0,vo=z.length,Te=0;Te<vo;Te++)re+=J*z[Te],Ao=Math.floor(re/b),Pe+=v[K+Te]-(re-Ao*b),re=Ao,Pe<0?(v[K+Te]=Pe+b,Pe=-1):(v[K+Te]=Pe,Pe=0);for(;Pe!==0;){for(J-=1,re=0,Te=0;Te<vo;Te++)re+=v[K+Te]-b+z[Te],re<0?(v[K+Te]=re+b,re=0):(v[K+Te]=re,re=1);Pe+=re}E[K]=J}return v=He(v,S)[0],[y(E),y(v)]}function te(h,d){for(var D=h.length,g=d.length,b=[],E=[],w=e,S,v,z,J,K;D;){if(E.unshift(h[--D]),_(E),lt(E,d)<0){b.push(0);continue}v=E.length,z=E[v-1]*w+E[v-2],J=d[g-1]*w+d[g-2],v>g&&(z=(z+1)*w),S=Math.ceil(z/J);do{if(K=F(d,S),lt(K,E)<=0)break;S--}while(S);b.push(S),E=T(E,K)}return b.reverse(),[y(b),y(E)]}function He(h,d){var D=h.length,g=O(D),b=e,E,w,S,v;for(S=0,E=D-1;E>=0;--E)v=S*b+h[E],w=k(v/d),S=v-w*d,g[E]=w|0;return[g,S|0]}function at(h,d){var D,g=W(d);if(o)return[new f(h.value/g.value),new f(h.value%g.value)];var b=h.value,E=g.value,w;if(E===0)throw new Error("Cannot divide by zero");if(h.isSmall)return g.isSmall?[new c(k(b/E)),new c(b%E)]:[u[0],h];if(g.isSmall){if(E===1)return[h,u[0]];if(E==-1)return[h.negate(),u[0]];var S=Math.abs(E);if(S<e){D=He(b,S),w=y(D[0]);var v=D[1];return h.sign&&(v=-v),typeof w=="number"?(h.sign!==g.sign&&(w=-w),[new c(w),new c(v)]):[new a(w,h.sign!==g.sign),new c(v)]}E=m(S)}var z=lt(b,E);if(z===-1)return[u[0],h];if(z===0)return[u[h.sign===g.sign?1:-1],u[0]];b.length+E.length<=200?D=Z(b,E):D=te(b,E),w=D[0];var J=h.sign!==g.sign,K=D[1],re=h.sign;return typeof w=="number"?(J&&(w=-w),w=new c(w)):w=new a(w,J),typeof K=="number"?(re&&(K=-K),K=new c(K)):K=new a(K,re),[w,K]}a.prototype.divmod=function(h){var d=at(this,h);return{quotient:d[0],remainder:d[1]}},f.prototype.divmod=c.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(h){return at(this,h)[0]},f.prototype.over=f.prototype.divide=function(h){return new f(this.value/W(h).value)},c.prototype.over=c.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(h){return at(this,h)[1]},f.prototype.mod=f.prototype.remainder=function(h){return new f(this.value%W(h).value)},c.prototype.remainder=c.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(h){var d=W(h),D=this.value,g=d.value,b,E,w;if(g===0)return u[1];if(D===0)return u[0];if(D===1)return u[1];if(D===-1)return d.isEven()?u[1]:u[-1];if(d.sign)return u[0];if(!d.isSmall)throw new Error("The exponent "+d.toString()+" is too large.");if(this.isSmall&&p(b=Math.pow(D,g)))return new c(k(b));for(E=this,w=u[1];g&!0&&(w=w.times(E),--g),g!==0;)g/=2,E=E.square();return w},c.prototype.pow=a.prototype.pow,f.prototype.pow=function(h){var d=W(h),D=this.value,g=d.value,b=BigInt(0),E=BigInt(1),w=BigInt(2);if(g===b)return u[1];if(D===b)return u[0];if(D===E)return u[1];if(D===BigInt(-1))return d.isEven()?u[1]:u[-1];if(d.isNegative())return new f(b);for(var S=this,v=u[1];(g&E)===E&&(v=v.times(S),--g),g!==b;)g/=w,S=S.square();return v},a.prototype.modPow=function(h,d){if(h=W(h),d=W(d),d.isZero())throw new Error("Cannot take modPow with modulus 0");var D=u[1],g=this.mod(d);for(h.isNegative()&&(h=h.multiply(u[-1]),g=g.modInv(d));h.isPositive();){if(g.isZero())return u[0];h.isOdd()&&(D=D.multiply(g).mod(d)),h=h.divide(2),g=g.square().mod(d)}return D},f.prototype.modPow=c.prototype.modPow=a.prototype.modPow;function lt(h,d){if(h.length!==d.length)return h.length>d.length?1:-1;for(var D=h.length-1;D>=0;D--)if(h[D]!==d[D])return h[D]>d[D]?1:-1;return 0}a.prototype.compareAbs=function(h){var d=W(h),D=this.value,g=d.value;return d.isSmall?1:lt(D,g)},c.prototype.compareAbs=function(h){var d=W(h),D=Math.abs(this.value),g=d.value;return d.isSmall?(g=Math.abs(g),D===g?0:D>g?1:-1):-1},f.prototype.compareAbs=function(h){var d=this.value,D=W(h).value;return d=d>=0?d:-d,D=D>=0?D:-D,d===D?0:d>D?1:-1},a.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=W(h),D=this.value,g=d.value;return this.sign!==d.sign?d.sign?1:-1:d.isSmall?this.sign?-1:1:lt(D,g)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,c.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=W(h),D=this.value,g=d.value;return d.isSmall?D==g?0:D>g?1:-1:D<0!==d.sign?D<0?-1:1:D<0?1:-1},c.prototype.compareTo=c.prototype.compare,f.prototype.compare=function(h){if(h===1/0)return-1;if(h===-1/0)return 1;var d=this.value,D=W(h).value;return d===D?0:d>D?1:-1},f.prototype.compareTo=f.prototype.compare,a.prototype.equals=function(h){return this.compare(h)===0},f.prototype.eq=f.prototype.equals=c.prototype.eq=c.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(h){return this.compare(h)!==0},f.prototype.neq=f.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(h){return this.compare(h)>0},f.prototype.gt=f.prototype.greater=c.prototype.gt=c.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(h){return this.compare(h)<0},f.prototype.lt=f.prototype.lesser=c.prototype.lt=c.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(h){return this.compare(h)>=0},f.prototype.geq=f.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(h){return this.compare(h)<=0},f.prototype.leq=f.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(this.value[0]&1)===0},c.prototype.isEven=function(){return(this.value&1)===0},f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(this.value[0]&1)===1},c.prototype.isOdd=function(){return(this.value&1)===1},f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},f.prototype.isPositive=c.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},f.prototype.isNegative=c.prototype.isNegative,a.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return Math.abs(this.value)===1},f.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return this.value===0},f.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(h){var d=W(h);return d.isZero()?!1:d.isUnit()?!0:d.compareAbs(2)===0?this.isEven():this.mod(d).isZero()},f.prototype.isDivisibleBy=c.prototype.isDivisibleBy=a.prototype.isDivisibleBy;function li(h){var d=h.abs();if(d.isUnit())return!1;if(d.equals(2)||d.equals(3)||d.equals(5))return!0;if(d.isEven()||d.isDivisibleBy(3)||d.isDivisibleBy(5))return!1;if(d.lesser(49))return!0}function ct(h,d){for(var D=h.prev(),g=D,b=0,E,w,S,v;g.isEven();)g=g.divide(2),b++;e:for(S=0;S<d.length;S++)if(!h.lesser(d[S])&&(v=De(d[S]).modPow(g,h),!(v.isUnit()||v.equals(D)))){for(E=b-1;E!=0;E--){if(v=v.square().mod(h),v.isUnit())return!1;if(v.equals(D))continue e}return!1}return!0}a.prototype.isPrime=function(h){var d=li(this);if(d!==t)return d;var D=this.abs(),g=D.bitLength();if(g<=64)return ct(D,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var b=Math.log(2)*g.toJSNumber(),E=Math.ceil(h===!0?2*Math.pow(b,2):b),w=[],S=0;S<E;S++)w.push(De(S+2));return ct(D,w)},f.prototype.isPrime=c.prototype.isPrime=a.prototype.isPrime,a.prototype.isProbablePrime=function(h,d){var D=li(this);if(D!==t)return D;for(var g=this.abs(),b=h===t?5:h,E=[],w=0;w<b;w++)E.push(De.randBetween(2,g.minus(2),d));return ct(g,E)},f.prototype.isProbablePrime=c.prototype.isProbablePrime=a.prototype.isProbablePrime,a.prototype.modInv=function(h){for(var d=De.zero,D=De.one,g=W(h),b=this.abs(),E,w,S;!b.isZero();)E=g.divide(b),w=d,S=g,d=D,g=b,D=w.subtract(E.multiply(D)),b=S.subtract(E.multiply(b));if(!g.isUnit())throw new Error(this.toString()+" and "+h.toString()+" are not co-prime");return d.compare(0)===-1&&(d=d.add(h)),this.isNegative()?d.negate():d},f.prototype.modInv=c.prototype.modInv=a.prototype.modInv,a.prototype.next=function(){var h=this.value;return this.sign?R(h,1,this.sign):new a(j(h,1),this.sign)},c.prototype.next=function(){var h=this.value;return h+1<n?new c(h+1):new a(i,!1)},f.prototype.next=function(){return new f(this.value+BigInt(1))},a.prototype.prev=function(){var h=this.value;return this.sign?new a(j(h,1),!0):R(h,1,this.sign)},c.prototype.prev=function(){var h=this.value;return h-1>-n?new c(h-1):new a(i,!0)},f.prototype.prev=function(){return new f(this.value-BigInt(1))};for(var ze=[1];2*ze[ze.length-1]<=e;)ze.push(2*ze[ze.length-1]);var Yt=ze.length,ft=ze[Yt-1];function mr(h){return Math.abs(h)<=e}a.prototype.shiftLeft=function(h){var d=W(h).toJSNumber();if(!mr(d))throw new Error(String(d)+" is too large for shifting.");if(d<0)return this.shiftRight(-d);var D=this;if(D.isZero())return D;for(;d>=Yt;)D=D.multiply(ft),d-=Yt-1;return D.multiply(ze[d])},f.prototype.shiftLeft=c.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(h){var d,D=W(h).toJSNumber();if(!mr(D))throw new Error(String(D)+" is too large for shifting.");if(D<0)return this.shiftLeft(-D);for(var g=this;D>=Yt;){if(g.isZero()||g.isNegative()&&g.isUnit())return g;d=at(g,ft),g=d[1].isNegative()?d[0].prev():d[0],D-=Yt-1}return d=at(g,ze[D]),d[1].isNegative()?d[0].prev():d[0]},f.prototype.shiftRight=c.prototype.shiftRight=a.prototype.shiftRight;function Ue(h,d,D){d=W(d);for(var g=h.isNegative(),b=d.isNegative(),E=g?h.not():h,w=b?d.not():d,S=0,v=0,z=null,J=null,K=[];!E.isZero()||!w.isZero();)z=at(E,ft),S=z[1].toJSNumber(),g&&(S=ft-1-S),J=at(w,ft),v=J[1].toJSNumber(),b&&(v=ft-1-v),E=z[0],w=J[0],K.push(D(S,v));for(var re=D(g?1:0,b?1:0)!==0?De(-1):De(0),Pe=K.length-1;Pe>=0;Pe-=1)re=re.multiply(ft).add(De(K[Pe]));return re}a.prototype.not=function(){return this.negate().prev()},f.prototype.not=c.prototype.not=a.prototype.not,a.prototype.and=function(h){return Ue(this,h,function(d,D){return d&D})},f.prototype.and=c.prototype.and=a.prototype.and,a.prototype.or=function(h){return Ue(this,h,function(d,D){return d|D})},f.prototype.or=c.prototype.or=a.prototype.or,a.prototype.xor=function(h){return Ue(this,h,function(d,D){return d^D})},f.prototype.xor=c.prototype.xor=a.prototype.xor;var vt=1<<30,x=(e&-e)*(e&-e)|vt;function ht(h){var d=h.value,D=typeof d=="number"?d|vt:typeof d=="bigint"?d|BigInt(vt):d[0]+d[1]*e|x;return D&-D}function X(h,d){if(d.compareTo(h)<=0){var D=X(h,d.square(d)),g=D.p,b=D.e,E=g.multiply(d);return E.compareTo(h)<=0?{p:E,e:b*2+1}:{p:g,e:b*2}}return{p:De(1),e:0}}a.prototype.bitLength=function(){var h=this;return h.compareTo(De(0))<0&&(h=h.negate().subtract(De(1))),h.compareTo(De(0))===0?De(0):De(X(h,De(2)).e).add(De(1))},f.prototype.bitLength=c.prototype.bitLength=a.prototype.bitLength;function Xt(h,d){return h=W(h),d=W(d),h.greater(d)?h:d}function je(h,d){return h=W(h),d=W(d),h.lesser(d)?h:d}function U(h,d){if(h=W(h).abs(),d=W(d).abs(),h.equals(d))return h;if(h.isZero())return d;if(d.isZero())return h;for(var D=u[1],g,b;h.isEven()&&d.isEven();)g=je(ht(h),ht(d)),h=h.divide(g),d=d.divide(g),D=D.multiply(g);for(;h.isEven();)h=h.divide(ht(h));do{for(;d.isEven();)d=d.divide(ht(d));h.greater(d)&&(b=d,d=h,h=b),d=d.subtract(h)}while(!d.isZero());return D.isUnit()?h:h.multiply(D)}function Qr(h,d){return h=W(h).abs(),d=W(d).abs(),h.divide(U(h,d)).multiply(d)}function Q(h,d,D){h=W(h),d=W(d);var g=D||Math.random,b=je(h,d),E=Xt(h,d),w=E.subtract(b).add(1);if(w.isSmall)return b.add(Math.floor(g()*w));for(var S=P(w,e).value,v=[],z=!0,J=0;J<S.length;J++){var K=z?S[J]+(J+1<S.length?S[J+1]/e:0):e,re=k(g()*K);v.push(re),re<S[J]&&(z=!1)}return b.add(u.fromArray(v,e,!1))}var B=function(h,d,D,g){D=D||s,h=String(h),g||(h=h.toLowerCase(),D=D.toLowerCase());var b=h.length,E,w=Math.abs(d),S={};for(E=0;E<D.length;E++)S[D[E]]=E;for(E=0;E<b;E++){var v=h[E];if(v!=="-"&&v in S&&S[v]>=w){if(v==="1"&&w===1)continue;throw new Error(v+" is not a valid digit in base "+d+".")}}d=W(d);var z=[],J=h[0]==="-";for(E=J?1:0;E<h.length;E++){var v=h[E];if(v in S)z.push(W(S[v]));else if(v==="<"){var K=E;do E++;while(h[E]!==">"&&E<h.length);z.push(W(h.slice(K+1,E)))}else throw new Error(v+" is not a valid character")}return Y(z,d,J)};function Y(h,d,D){var g=u[0],b=u[1],E;for(E=h.length-1;E>=0;E--)g=g.add(h[E].times(b)),b=b.times(d);return D?g.negate():g}function he(h,d){return d=d||s,h<d.length?d[h]:"<"+h+">"}function P(h,d){if(d=De(d),d.isZero()){if(h.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(d.equals(-1)){if(h.isZero())return{value:[0],isNegative:!1};if(h.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-h.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var D=Array.apply(null,Array(h.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return D.unshift([1]),{value:[].concat.apply([],D),isNegative:!1}}var g=!1;if(h.isNegative()&&d.isPositive()&&(g=!0,h=h.abs()),d.isUnit())return h.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(h.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:g};for(var b=[],E=h,w;E.isNegative()||E.compareAbs(d)>=0;){w=E.divmod(d),E=w.quotient;var S=w.remainder;S.isNegative()&&(S=d.minus(S).abs(),E=E.next()),b.push(S.toJSNumber())}return b.push(E.toJSNumber()),{value:b.reverse(),isNegative:g}}function ci(h,d,D){var g=P(h,d);return(g.isNegative?"-":"")+g.value.map(function(b){return he(b,D)}).join("")}a.prototype.toArray=function(h){return P(this,h)},c.prototype.toArray=function(h){return P(this,h)},f.prototype.toArray=function(h){return P(this,h)},a.prototype.toString=function(h,d){if(h===t&&(h=10),h!==10)return ci(this,h,d);for(var D=this.value,g=D.length,b=String(D[--g]),E="0000000",w;--g>=0;)w=String(D[g]),b+=E.slice(w.length)+w;var S=this.sign?"-":"";return S+b},c.prototype.toString=function(h,d){return h===t&&(h=10),h!=10?ci(this,h,d):String(this.value)},f.prototype.toString=c.prototype.toString,f.prototype.toJSON=a.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function fi(h){if(p(+h)){var d=+h;if(d===k(d))return o?new f(BigInt(d)):new c(d);throw new Error("Invalid integer: "+h)}var D=h[0]==="-";D&&(h=h.slice(1));var g=h.split(/e/i);if(g.length>2)throw new Error("Invalid integer: "+g.join("e"));if(g.length===2){var b=g[1];if(b[0]==="+"&&(b=b.slice(1)),b=+b,b!==k(b)||!p(b))throw new Error("Invalid integer: "+b+" is not a valid exponent.");var E=g[0],w=E.indexOf(".");if(w>=0&&(b-=E.length-w-1,E=E.slice(0,w)+E.slice(w+1)),b<0)throw new Error("Cannot include negative exponent part for integers");E+=new Array(b+1).join("0"),h=E}var S=/^([0-9][0-9]*)$/.test(h);if(!S)throw new Error("Invalid integer: "+h);if(o)return new f(BigInt(D?"-"+h:h));for(var v=[],z=h.length,J=r,K=z-J;z>0;)v.push(+h.slice(K,z)),K-=J,K<0&&(K=0),z-=J;return _(v),new a(v,D)}function So(h){if(o)return new f(BigInt(h));if(p(h)){if(h!==k(h))throw new Error(h+" is not an integer.");return new c(h)}return fi(h.toString())}function W(h){return typeof h=="number"?So(h):typeof h=="string"?fi(h):typeof h=="bigint"?new f(h):h}for(var Qe=0;Qe<1e3;Qe++)u[Qe]=W(Qe),Qe>0&&(u[-Qe]=W(-Qe));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=Xt,u.min=je,u.gcd=U,u.lcm=Qr,u.isInstance=function(h){return h instanceof a||h instanceof c||h instanceof f},u.randBetween=Q,u.fromArray=function(h,d,D){return Y(h.map(W),W(d||10),D)},u}();typeof mi<"u"&&mi.hasOwnProperty("exports")&&(mi.exports=De);typeof define=="function"&&define.amd&&define(function(){return De})});var uf=C(me=>{"use strict";l();var Px=require("fs"),Nx=of(),At=!1;me.maxObjectSize=100*1e3*1e3;me.maxObjectCount=32768;var kx=9783072e5,Lx=me.UID=function(t){this.UID=t},x3=me.parseFile=function(t,e){return new Promise(function(r,n){function i(s){let o=null,u;try{u=$x(s),r(u)}catch(a){o=a,n(o)}finally{e&&e(o,u)}}if(Buffer.isBuffer(t))return i(t);Px.readFile(t,function(s,o){if(s)return n(s),e(s);i(o)})})},$x=me.parseBuffer=function(t){if(t.slice(0,6).toString("utf8")!=="bplist")throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.");let r=t.slice(t.length-32,t.length),n=r.readUInt8(6);At&&console.log("offsetSize: "+n);let i=r.readUInt8(7);At&&console.log("objectRefSize: "+i);let s=Vo(r,8);At&&console.log("numObjects: "+s);let o=Vo(r,16);At&&console.log("topObject: "+o);let u=Vo(r,24);if(At&&console.log("offsetTableOffset: "+u),s>me.maxObjectCount)throw new Error("maxObjectCount exceeded");let a=[];for(let f=0;f<s;f++){let p=t.slice(u+f*n,u+(f+1)*n);a[f]=Oe(p,0),At&&console.log("Offset for Object #"+f+" is "+a[f]+" ["+a[f].toString(16)+"]")}function c(f){let p=a[f],m=t[p],y=(m&240)>>4,_=m&15;switch(y){case 0:return O();case 1:return M();case 8:return q();case 2:return j();case 3:return T();case 4:return $();case 5:return R();case 6:return R(!0);case 10:return L();case 13:return F();default:throw new Error("Unhandled type 0x"+y.toString(16))}function O(){switch(_){case 0:return null;case 8:return!1;case 9:return!0;case 15:return null;default:throw new Error("Unhandled simple type 0x"+y.toString(16))}}function k(A){let N="",I;for(I=0;I<A.length&&A[I]==0;I++);for(;I<A.length;I++){let V="00"+A[I].toString(16);N+=V.substr(V.length-2)}return N}function M(){let A=Math.pow(2,_);if(_==4){let N=t.slice(p+1,p+1+A),I=k(N);return Nx(I,16)}if(_==3)return t.readInt32BE(p+1);if(A<me.maxObjectSize)return Oe(t.slice(p+1,p+1+A));throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function q(){let A=_+1;if(A<me.maxObjectSize)return new Lx(Oe(t.slice(p+1,p+1+A)));throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function j(){let A=Math.pow(2,_);if(A<me.maxObjectSize){let N=t.slice(p+1,p+1+A);if(A===4)return N.readFloatBE(0);if(A===8)return N.readDoubleBE(0)}else throw new Error("To little heap space available! Wanted to read "+A+" bytes, but only "+me.maxObjectSize+" are available.")}function T(){_!=3&&console.error("Unknown date type :"+_+". Parsing anyway...");let A=t.slice(p+1,p+9);return new Date(kx+1e3*A.readDoubleBE(0))}function $(){let A=1,N=_;if(_==15){let I=t[p+1],V=(I&240)/16;V!=1&&console.error("0x4: UNEXPECTED LENGTH-INT TYPE! "+V);let G=I&15,Z=Math.pow(2,G);A=2+Z,Z<3,N=Oe(t.slice(p+2,p+2+Z))}if(N<me.maxObjectSize)return t.slice(p+A,p+A+N);throw new Error("To little heap space available! Wanted to read "+N+" bytes, but only "+me.maxObjectSize+" are available.")}function R(A){A=A||0;let N="utf8",I=_,V=1;if(_==15){let G=t[p+1],Z=(G&240)/16;Z!=1&&console.err("UNEXPECTED LENGTH-INT TYPE! "+Z);let te=G&15,He=Math.pow(2,te);V=2+He,He<3,I=Oe(t.slice(p+2,p+2+He))}if(I*=A+1,I<me.maxObjectSize){let G=Buffer.from(t.slice(p+V,p+V+I));return A&&(G=Mx(G),N="ucs2"),G.toString(N)}throw new Error("To little heap space available! Wanted to read "+I+" bytes, but only "+me.maxObjectSize+" are available.")}function L(){let A=_,N=1;if(_==15){let V=t[p+1],G=(V&240)/16;G!=1&&console.error("0xa: UNEXPECTED LENGTH-INT TYPE! "+G);let Z=V&15,te=Math.pow(2,Z);N=2+te,te<3,A=Oe(t.slice(p+2,p+2+te))}if(A*i>me.maxObjectSize)throw new Error("To little heap space available!");let I=[];for(let V=0;V<A;V++){let G=Oe(t.slice(p+N+V*i,p+N+(V+1)*i));I[V]=c(G)}return I}function F(){let A=_,N=1;if(_==15){let V=t[p+1],G=(V&240)/16;G!=1&&console.error("0xD: UNEXPECTED LENGTH-INT TYPE! "+G);let Z=V&15,te=Math.pow(2,Z);N=2+te,te<3,A=Oe(t.slice(p+2,p+2+te))}if(A*2*i>me.maxObjectSize)throw new Error("To little heap space available!");At&&console.log("Parsing dictionary #"+f);let I={};for(let V=0;V<A;V++){let G=Oe(t.slice(p+N+V*i,p+N+(V+1)*i)),Z=Oe(t.slice(p+N+A*i+V*i,p+N+A*i+(V+1)*i)),te=c(G),He=c(Z);At&&console.log(" DICT #"+f+": Mapped "+te+" to "+He),I[te]=He}return I}}return[c(o)]};function Oe(t,e){e=e||0;let r=0;for(let n=e;n<t.length;n++)r<<=8,r|=t[n]&255;return r}function Vo(t,e){return t.slice(e,e+8).readUInt32BE(4,8)}function Mx(t){let e=t.length;for(let r=0;r<e;r+=2){let n=t[r];t[r]=t[r+1],t[r+1]=n}return t}});var cf=C((C3,lf)=>{"use strict";l();var Hx=require("os"),af=Hx.homedir();lf.exports=t=>{if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return af?t.replace(/^~(?=$|\/|\\)/,af):t}});var yf=C((v3,Ef)=>{"use strict";l();Ef.exports=gf;gf.sync=Gx;var Df=require("fs");function qx(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function mf(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:qx(e,r)}function gf(t,e,r){Df.stat(t,function(n,i){r(n,n?!1:mf(i,t,e))})}function Gx(t,e){return mf(Df.statSync(t),t,e)}});var Ff=C((T3,Cf)=>{"use strict";l();Cf.exports=bf;bf.sync=Wx;var xf=require("fs");function bf(t,e,r){xf.stat(t,function(n,i){r(n,n?!1:_f(i,e))})}function Wx(t,e){return _f(xf.statSync(t),e)}function _f(t,e){return t.isFile()&&Vx(t,e)}function Vx(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),f=u|a,p=r&c||r&a&&i===o||r&u&&n===s||r&f&&s===0;return p}});var Sf=C((B3,wf)=>{"use strict";l();var R3=require("fs"),gi;process.platform==="win32"||global.TESTING_WINDOWS?gi=yf():gi=Ff();wf.exports=Ko;Ko.sync=zx;function Ko(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Ko(t,e||{},function(s,o){s?i(s):n(o)})})}gi(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function zx(t,e){try{return gi.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var If=C((P3,Bf)=>{"use strict";l();var gr=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",vf=require("path"),Kx=gr?";":":",Af=Sf(),Tf=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Of=(t,e)=>{let r=e.colon||Kx,n=t.match(/\//)||gr&&t.match(/\\/)?[""]:[...gr?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=gr?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=gr?i.split(r):[""];return gr&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},Rf=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=Of(t,e),o=[],u=c=>new Promise((f,p)=>{if(c===n.length)return e.all&&o.length?f(o):p(Tf(t));let m=n[c],y=/^".*"$/.test(m)?m.slice(1,-1):m,_=vf.join(y,t),O=!y&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;f(a(O,c,0))}),a=(c,f,p)=>new Promise((m,y)=>{if(p===i.length)return m(u(f+1));let _=i[p];Af(c+_,{pathExt:s},(O,k)=>{if(!O&&k)if(e.all)o.push(c+_);else return m(c+_);return m(a(c,f,p+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},Yx=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=Of(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,c=vf.join(a,t),f=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let p=0;p<n.length;p++){let m=f+n[p];try{if(Af.sync(m,{pathExt:i}))if(e.all)s.push(m);else return m}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Tf(t)};Bf.exports=Rf;Rf.sync=Yx});var Xo=C((k3,Yo)=>{"use strict";l();var Pf=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Yo.exports=Pf;Yo.exports.default=Pf});var $f=C(($3,Lf)=>{"use strict";l();var Nf=require("path"),Xx=If(),Zx=Xo();function kf(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=Xx.sync(t.command,{path:r[Zx({env:r})],pathExt:e?Nf.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=Nf.resolve(i?t.options.cwd:"",o)),o}function Jx(t){return kf(t)||kf(t,!0)}Lf.exports=Jx});var Mf=C((H3,Jo)=>{"use strict";l();var Zo=/([()\][%!^"`<>&|;, *?])/g;function Qx(t){return t=t.replace(Zo,"^$1"),t}function eb(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Zo,"^$1"),e&&(t=t.replace(Zo,"^$1")),t}Jo.exports.command=Qx;Jo.exports.argument=eb});var Uf=C((j3,Hf)=>{"use strict";l();Hf.exports=/^#!(.*)/});var qf=C((G3,jf)=>{"use strict";l();var tb=Uf();jf.exports=(t="")=>{let e=t.match(tb);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Wf=C((V3,Gf)=>{"use strict";l();var Qo=require("fs"),rb=qf();function nb(t){let r=Buffer.alloc(150),n;try{n=Qo.openSync(t,"r"),Qo.readSync(n,r,0,150,0),Qo.closeSync(n)}catch{}return rb(r.toString())}Gf.exports=nb});var Yf=C((K3,Kf)=>{"use strict";l();var ib=require("path"),Vf=$f(),zf=Mf(),sb=Wf(),ob=process.platform==="win32",ub=/\.(?:com|exe)$/i,ab=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function lb(t){t.file=Vf(t);let e=t.file&&sb(t.file);return e?(t.args.unshift(t.file),t.command=e,Vf(t)):t.file}function cb(t){if(!ob)return t;let e=lb(t),r=!ub.test(e);if(t.options.forceShell||r){let n=ab.test(e);t.command=ib.normalize(t.command),t.command=zf.command(t.command),t.args=t.args.map(s=>zf.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function fb(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:cb(n)}Kf.exports=fb});var Jf=C((X3,Zf)=>{"use strict";l();var eu=process.platform==="win32";function tu(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function hb(t,e){if(!eu)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=Xf(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function Xf(t,e){return eu&&t===1&&!e.file?tu(e.original,"spawn"):null}function db(t,e){return eu&&t===1&&!e.file?tu(e.original,"spawnSync"):null}Zf.exports={hookChildProcess:hb,verifyENOENT:Xf,verifyENOENTSync:db,notFoundError:tu}});var iu=C((J3,Er)=>{"use strict";l();var Qf=require("child_process"),ru=Yf(),nu=Jf();function eh(t,e,r){let n=ru(t,e,r),i=Qf.spawn(n.command,n.args,n.options);return nu.hookChildProcess(i,n),i}function pb(t,e,r){let n=ru(t,e,r),i=Qf.spawnSync(n.command,n.args,n.options);return i.error=i.error||nu.verifyENOENTSync(i.status,n),i}Er.exports=eh;Er.exports.spawn=eh;Er.exports.sync=pb;Er.exports._parse=ru;Er.exports._enoent=nu});var rh=C((eO,th)=>{"use strict";l();th.exports=t=>{let e=typeof t=="string"?`
23
23
  `:`
24
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var sh=C((rO,nn)=>{"use strict";l();var rn=require("path"),nh=Xo(),ih=t=>{t={cwd:process.cwd(),path:process.env[nh()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),n=[];for(;e!==r;)n.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let i=rn.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(rn.delimiter)};nn.exports=ih;nn.exports.default=ih;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=nh({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var uh=C((iO,su)=>{"use strict";l();var oh=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};su.exports=oh;su.exports.default=oh});var lh=C((oO,yi)=>{"use strict";l();var pb=uh(),Ei=new WeakMap,ah=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ei.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return pb(s,t),Ei.set(s,n),s};yi.exports=ah;yi.exports.default=ah;yi.exports.callCount=t=>{if(!Ei.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ei.get(t)}});var ch=C(xi=>{"use strict";l();Object.defineProperty(xi,"__esModule",{value:!0});xi.SIGNALS=void 0;var Db=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];xi.SIGNALS=Db});var ou=C(yr=>{"use strict";l();Object.defineProperty(yr,"__esModule",{value:!0});yr.SIGRTMAX=yr.getRealtimeSignals=void 0;var mb=function(){let t=hh-fh+1;return Array.from({length:t},gb)};yr.getRealtimeSignals=mb;var gb=function(t,e){return{name:`SIGRT${e+1}`,number:fh+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},fh=34,hh=64;yr.SIGRTMAX=hh});var dh=C(bi=>{"use strict";l();Object.defineProperty(bi,"__esModule",{value:!0});bi.getSignals=void 0;var Eb=require("os"),yb=ch(),xb=ou(),bb=function(){let t=(0,xb.getRealtimeSignals)();return[...yb.SIGNALS,...t].map(_b)};bi.getSignals=bb;var _b=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=Eb.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:n,forced:i,standard:s}}});var Dh=C(xr=>{"use strict";l();Object.defineProperty(xr,"__esModule",{value:!0});xr.signalsByNumber=xr.signalsByName=void 0;var Cb=require("os"),ph=dh(),Fb=ou(),wb=function(){return(0,ph.getSignals)().reduce(Sb,{})},Sb=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:u}}},vb=wb();xr.signalsByName=vb;var Ab=function(){let t=(0,ph.getSignals)(),e=Fb.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>Tb(i,t));return Object.assign({},...r)},Tb=function(t,e){let r=Ob(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:u,standard:a}}},Ob=function(t,e){let r=e.find(({name:n})=>Cb.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},Rb=Ab();xr.signalsByNumber=Rb});var gh=C((mO,mh)=>{"use strict";l();var{signalsByName:Bb}=Dh(),Ib=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",Pb=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:f,parsed:{options:{timeout:p}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let m=i===void 0?void 0:Bb[i].description,y=n&&n.code,O=`Command ${Ib({timedOut:a,timeout:p,errorCode:y,signal:i,signalDescription:m,exitCode:s,isCanceled:c})}: ${o}`,k=Object.prototype.toString.call(n)==="[object Error]",H=k?`${O}
25
- ${n.message}`:O,q=[H,e,t].filter(Boolean).join(`
26
- `);return k?(n.originalMessage=n.message,n.message=q):n=new Error(q),n.shortMessage=H,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=m,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=f&&!a,n};mh.exports=Pb});var yh=C((EO,uu)=>{"use strict";l();var _i=["stdin","stdout","stderr"],Nb=t=>_i.some(e=>t[e]!==void 0),Eh=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _i.map(n=>t[n]);if(Nb(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_i.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_i.length);return Array.from({length:r},(n,i)=>e[i])};uu.exports=Eh;uu.exports.node=t=>{let e=Eh(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var xh=C((xO,Ci)=>{"use strict";l();Ci.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ci.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ci.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=C((_O,Cr)=>{"use strict";l();var oe=global.process,Jt=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Jt(oe)?(bh=require("assert"),br=xh(),_h=/^win/i.test(oe.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),oe.__signal_exit_emitter__?Ee=oe.__signal_exit_emitter__:(Ee=oe.__signal_exit_emitter__=new sn,Ee.count=0,Ee.emitted={}),Ee.infinite||(Ee.setMaxListeners(1/0),Ee.infinite=!0),Cr.exports=function(t,e){if(!Jt(global.process))return function(){};bh.equal(typeof t,"function","a callback must be provided for exit handler"),_r===!1&&au();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ee.removeListener(r,t),Ee.listeners("exit").length===0&&Ee.listeners("afterexit").length===0&&Fi()};return Ee.on(r,t),n},Fi=function(){!_r||!Jt(global.process)||(_r=!1,br.forEach(function(e){try{oe.removeListener(e,wi[e])}catch{}}),oe.emit=Si,oe.reallyExit=lu,Ee.count-=1)},Cr.exports.unload=Fi,Qt=function(e,r,n){Ee.emitted[e]||(Ee.emitted[e]=!0,Ee.emit(e,r,n))},wi={},br.forEach(function(t){wi[t]=function(){if(Jt(global.process)){var r=oe.listeners(t);r.length===Ee.count&&(Fi(),Qt("exit",null,t),Qt("afterexit",null,t),_h&&t==="SIGHUP"&&(t="SIGINT"),oe.kill(oe.pid,t))}}}),Cr.exports.signals=function(){return br},_r=!1,au=function(){_r||!Jt(global.process)||(_r=!0,Ee.count+=1,br=br.filter(function(e){try{return oe.on(e,wi[e]),!0}catch{return!1}}),oe.emit=Fh,oe.reallyExit=Ch)},Cr.exports.load=au,lu=oe.reallyExit,Ch=function(e){Jt(global.process)&&(oe.exitCode=e||0,Qt("exit",oe.exitCode,null),Qt("afterexit",oe.exitCode,null),lu.call(oe,oe.exitCode))},Si=oe.emit,Fh=function(e,r){if(e==="exit"&&Jt(global.process)){r!==void 0&&(oe.exitCode=r);var n=Si.apply(this,arguments);return Qt("exit",oe.exitCode,null),Qt("afterexit",oe.exitCode,null),n}else return Si.apply(this,arguments)}):Cr.exports=function(){return function(){}};var bh,br,_h,sn,Ee,Fi,Qt,wi,_r,au,lu,Ch,Si,Fh});var Sh=C((FO,wh)=>{"use strict";l();var kb=require("os"),Lb=cu(),$b=1e3*5,Mb=(t,e="SIGTERM",r={})=>{let n=t(e);return Hb(t,e,r,n),n},Hb=(t,e,r,n)=>{if(!Ub(e,r,n))return;let i=qb(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},Ub=(t,{forceKillAfterTimeout:e},r)=>jb(t)&&e!==!1&&r,jb=t=>t===kb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",qb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return $b;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Gb=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Wb=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Vb=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{Wb(t,r,a)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},zb=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Kb=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=Lb(()=>{t.kill()});return n.finally(()=>{i()})};wh.exports={spawnedKill:Mb,spawnedCancel:Gb,setupTimeout:Vb,validateTimeout:zb,setExitHandler:Kb}});var Ah=C((SO,vh)=>{"use strict";l();var et=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";et.writable=t=>et(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";et.readable=t=>et(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";et.duplex=t=>et.writable(t)&&et.readable(t);et.transform=t=>et.duplex(t)&&typeof t._transform=="function";vh.exports=et});var Oh=C((AO,Th)=>{"use strict";l();var{PassThrough:Yb}=require("stream");Th.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Yb({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var hu=C((OO,on)=>{"use strict";l();var{constants:Xb}=require("buffer"),Zb=require("stream"),{promisify:Jb}=require("util"),Qb=Oh(),e_=Jb(Zb.pipeline),vi=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function fu(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=Qb(e);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=Xb.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await e_(t,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new vi)})}),n.getBufferedValue()}on.exports=fu;on.exports.buffer=(t,e)=>fu(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>fu(t,{...e,array:!0});on.exports.MaxBufferError=vi});var du=C((BO,Rh)=>{"use strict";l();var{PassThrough:t_}=require("stream");Rh.exports=function(){var t=[],e=new t_({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Nh=C((PO,Ph)=>{"use strict";l();var Ih=Ah(),Bh=hu(),r_=du(),n_=(t,e)=>{e===void 0||t.stdin===void 0||(Ih(e)?e.pipe(t.stdin):t.stdin.end(e))},i_=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=r_();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},pu=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Du=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Bh(t,{encoding:e,maxBuffer:n}):Bh.buffer(t,{maxBuffer:n})},s_=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=Du(t,{encoding:n,buffer:i,maxBuffer:s}),a=Du(e,{encoding:n,buffer:i,maxBuffer:s}),c=Du(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},pu(t,u),pu(e,a),pu(r,c)])}},o_=({input:t})=>{if(Ih(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ph.exports={handleInput:n_,makeAllStream:i_,getSpawnedResult:s_,validateInputSync:o_}});var Lh=C((kO,kh)=>{"use strict";l();var u_=(async()=>{})().constructor.prototype,a_=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(u_,t)]),l_=(t,e)=>{for(let[r,n]of a_){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},c_=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});kh.exports={mergePromise:l_,getSpawnedPromise:c_}});var Hh=C(($O,Mh)=>{"use strict";l();var $h=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],f_=/^[\w.-]+$/,h_=/"/g,d_=t=>typeof t!="string"||f_.test(t)?t:`"${t.replace(h_,'\\"')}"`,p_=(t,e)=>$h(t,e).join(" "),D_=(t,e)=>$h(t,e).map(r=>d_(r)).join(" "),m_=/ +/g,g_=t=>{let e=[];for(let r of t.trim().split(m_)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Mh.exports={joinCommand:p_,getEscapedCommand:D_,parseCommand:g_}});var zh=C((HO,Fr)=>{"use strict";l();var E_=require("path"),mu=require("child_process"),y_=iu(),x_=rh(),b_=sh(),__=lh(),Ai=gh(),jh=yh(),{spawnedKill:C_,spawnedCancel:F_,setupTimeout:w_,validateTimeout:S_,setExitHandler:v_}=Sh(),{handleInput:A_,getSpawnedResult:T_,makeAllStream:O_,validateInputSync:R_}=Nh(),{mergePromise:Uh,getSpawnedPromise:B_}=Lh(),{joinCommand:qh,parseCommand:Gh,getEscapedCommand:Wh}=Hh(),I_=1e3*1e3*100,P_=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?b_.env({env:s,cwd:n,execPath:i}):s},Vh=(t,e,r={})=>{let n=y_._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:I_,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=P_(r),r.stdio=jh(r),process.platform==="win32"&&E_.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},un=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?x_(e):e,Ti=(t,e,r)=>{let n=Vh(t,e,r),i=qh(t,e),s=Wh(t,e);S_(n.options);let o;try{o=mu.spawn(n.file,n.args,n.options)}catch(y){let _=new mu.ChildProcess,O=Promise.reject(Ai({error:y,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Uh(_,O)}let u=B_(o),a=w_(o,n.options,u),c=v_(o,n.options,a),f={isCanceled:!1};o.kill=C_.bind(null,o.kill.bind(o)),o.cancel=F_.bind(null,o,f);let m=__(async()=>{let[{error:y,exitCode:_,signal:O,timedOut:k},H,q,j]=await T_(o,n.options,c),T=un(n.options,H),$=un(n.options,q),R=un(n.options,j);if(y||_!==0||O!==null){let L=Ai({error:y,exitCode:_,signal:O,stdout:T,stderr:$,all:R,command:i,escapedCommand:s,parsed:n,timedOut:k,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return L;throw L}return{command:i,escapedCommand:s,exitCode:0,stdout:T,stderr:$,all:R,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return A_(o,n.options.input),o.all=O_(o,n.options),Uh(o,m)};Fr.exports=Ti;Fr.exports.sync=(t,e,r)=>{let n=Vh(t,e,r),i=qh(t,e),s=Wh(t,e);R_(n.options);let o;try{o=mu.spawnSync(n.file,n.args,n.options)}catch(c){throw Ai({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=un(n.options,o.stdout,o.error),a=un(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ai({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Fr.exports.command=(t,e)=>{let[r,...n]=Gh(t);return Ti(r,n,e)};Fr.exports.commandSync=(t,e)=>{let[r,...n]=Gh(t);return Ti.sync(r,n,e)};Fr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=jh.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Ti(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var hp=C((kR,fp)=>{"use strict";l();var Re=require("path"),Yu=t=>new Xu(t);Yu.default=Yu;fp.exports=Yu;function lp(t){return Array.isArray(t)?t:[t]}var HC=/(?<=.)\/$/,UC=/(?<=.)\\$/,jC=Re.sep==="\\"?UC:HC,cp=typeof Symbol<"u"?Symbol.for("dockerignore"):"dockerignore";function Ku(t){return Re.normalize(t).replace(jC,"")}function qC(t){return Re.sep==="/"?t:t.replace(/\\/g,"/")}function GC(t){return Re.sep==="/"?t:t.replace(/\//g,Re.sep)}var Xu=class{constructor({ignorecase:e=!0}={}){this._rules=[],this._ignorecase=e,this[cp]=!0,this._initCache()}_initCache(){this._cache={}}add(e){return this._added=!1,typeof e=="string"&&(e=e.split(/\r?\n/g)),lp(e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[cp]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(this._checkPattern(e)){let r=this._createRule(e.trim());r!==null&&(this._added=!0,this._rules.push(r))}}_checkPattern(e){return e&&typeof e=="string"&&e.indexOf("#")!==0&&e.trim()!==""}filter(e){return lp(e).filter(r=>this._filter(r))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_createRule(e){let r=e,n=!1;if(e[0]==="!"&&(n=!0,e=e.substring(1).trim()),e.length>0&&(e=Ku(e),e=qC(e),e.length>1&&e[0]==="/"&&(e=e.slice(1))),n&&(e="!"+e),e=e.trim(),e==="")return null;if(e=Ku(e),e[0]==="!"){if(e.length===1)return null;n=!0,e=e.substring(1)}else n=!1;return{origin:r,pattern:e,dirs:e.split(Re.sep),negative:n}}_filter(e){return e?e in this._cache?this._cache[e]:this._cache[e]=this._test(e):!1}_test(e){e=GC(e);let r=Ku(Re.dirname(e)),n=r.split(Re.sep),i=!1;return this._rules.forEach(s=>{let o=this._match(e,s);if(!o&&r!==".")if(s.dirs.includes("**"))for(let u=s.dirs.filter(a=>a!=="**").length;u<=n.length;u++)o=o||this._match(n.slice(0,u).join(Re.sep),s);else s.dirs.length<=n.length&&(o=this._match(n.slice(0,s.dirs.length).join(Re.sep),s));o&&(i=!s.negative)}),!i}_match(e,r){return this._compile(r).regexp.test(e)}_compile(e){if(e.regexp)return e;let r="^",n=Re.sep==="\\"?"\\\\":Re.sep;for(let i=0;i<e.pattern.length;i++){let s=e.pattern[i];if(s==="*")e.pattern[i+1]==="*"?(i++,e.pattern[i+1]===Re.sep&&i++,e.pattern[i+1]===void 0?r+=".*":r+=`(.*${n})?`):r+=`[^${n}]*`;else if(s==="?")r+=`[^${n}]`;else if(s==="."||s==="$")r+=`\\${s}`;else if(s==="\\"){if(Re.sep==="\\"){r+=n;continue}e.pattern[i+1]!==void 0?(r+="\\"+e.pattern[i+1],i++):r+="\\"}else r+=s}return r+="$",e.regexp=new RegExp(r,this._ignorecase?"i":""),e}}});var dp=C(Vi=>{"use strict";l();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AsyncProvider=void 0;var Zu=class{#e;constructor(e){this.#e=e}read(e,r){let n=[];this.#e.onError(i=>{WC(r,i)}),this.#e.onEntry(i=>{n.push(i)}),this.#e.onEnd(()=>{VC(r,n)}),this.#e.read(e)}};Vi.AsyncProvider=Zu;function WC(t,e){t(e)}function VC(t,e){t(null,e)}});var pp=C(zi=>{"use strict";l();Object.defineProperty(zi,"__esModule",{value:!0});zi.StreamProvider=void 0;var zC=require("stream"),Ju=class{#e;#t;constructor(e){this.#e=e,this.#t=this.#n()}read(e){return this.#e.onError(r=>{this.#t.emit("error",r)}),this.#e.onEntry(r=>{this.#t.push(r)}),this.#e.onEnd(()=>{this.#t.push(null)}),this.#e.read(e),this.#t}#n(){return new zC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this.#e.isDestroyed||this.#e.destroy()}})}};zi.StreamProvider=Ju});var Dp=C(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.SyncProvider=void 0;var Qu=class{#e;constructor(e){this.#e=e}read(e){return this.#e.read(e)}};Ki.SyncProvider=Qu});var mp=C(Dt=>{"use strict";l();var KC=Dt&&Dt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ea=Dt&&Dt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&KC(e,t,r)};Object.defineProperty(Dt,"__esModule",{value:!0});ea(dp(),Dt);ea(pp(),Dt);ea(Dp(),Dt)});var Ep=C(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.read=void 0;function YC(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){gp(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){ta(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){gp(r,s);return}ta(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ta(r,o)})})}Yi.read=YC;function gp(t,e){t(e)}function ta(t,e){t(null,e)}});var yp=C(Xi=>{"use strict";l();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.read=void 0;function XC(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Xi.read=XC});var xp=C(Ot=>{"use strict";l();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createFileSystemAdapter=Ot.FILE_SYSTEM_ADAPTER=void 0;var Zi=require("fs");Ot.FILE_SYSTEM_ADAPTER={lstat:Zi.lstat,stat:Zi.stat,lstatSync:Zi.lstatSync,statSync:Zi.statSync};function ZC(t){return t===void 0?Ot.FILE_SYSTEM_ADAPTER:{...Ot.FILE_SYSTEM_ADAPTER,...t}}Ot.createFileSystemAdapter=ZC});var na=C(Ji=>{"use strict";l();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Settings=void 0;var JC=xp(),ra=class{followSymbolicLink;fs;markSymbolicLink;throwErrorOnBrokenSymbolicLink;constructor(e={}){this.followSymbolicLink=e.followSymbolicLink??!0,this.fs=JC.createFileSystemAdapter(e.fs),this.markSymbolicLink=e.markSymbolicLink??!1,this.throwErrorOnBrokenSymbolicLink=e.throwErrorOnBrokenSymbolicLink??!0}};Ji.Settings=ra});var Cp=C(Or=>{"use strict";l();Object.defineProperty(Or,"__esModule",{value:!0});Or.statSync=Or.stat=void 0;var bp=Ep(),QC=yp(),_p=na();function eF(t,e,r){if(typeof e=="function"){bp.read(t,ia(),e);return}bp.read(t,ia(e),r)}Or.stat=eF;function tF(t,e){let r=ia(e);return QC.read(t,r)}Or.statSync=tF;function ia(t={}){return t instanceof _p.Settings?t:new _p.Settings(t)}});var Qi=C(Rt=>{"use strict";l();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Settings=Rt.statSync=Rt.stat=void 0;var Fp=Cp();Object.defineProperty(Rt,"stat",{enumerable:!0,get:function(){return Fp.stat}});Object.defineProperty(Rt,"statSync",{enumerable:!0,get:function(){return Fp.statSync}});var rF=na();Object.defineProperty(Rt,"Settings",{enumerable:!0,get:function(){return rF.Settings}})});var wp=C(Bt=>{"use strict";l();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var Rr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:Rr.lstat,stat:Rr.stat,lstatSync:Rr.lstatSync,statSync:Rr.statSync,readdir:Rr.readdir,readdirSync:Rr.readdirSync};function nF(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:{...Bt.FILE_SYSTEM_ADAPTER,...t}}Bt.createFileSystemAdapter=nF});var oa=C(es=>{"use strict";l();Object.defineProperty(es,"__esModule",{value:!0});es.Settings=void 0;var iF=require("path"),sF=Qi(),oF=wp(),sa=class{followSymbolicLinks;fs;pathSegmentSeparator;stats;throwErrorOnBrokenSymbolicLink;fsStatSettings;constructor(e={}){this.followSymbolicLinks=e.followSymbolicLinks??!1,this.fs=oF.createFileSystemAdapter(e.fs),this.pathSegmentSeparator=e.pathSegmentSeparator??iF.sep,this.stats=e.stats??!1,this.throwErrorOnBrokenSymbolicLink=e.throwErrorOnBrokenSymbolicLink??!0,this.fsStatSettings=new sF.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}};es.Settings=sa});var Ap=C((aB,vp)=>{"use strict";l();var Sp;vp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Sp||(Sp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Op=C((cB,Tp)=>{"use strict";l();Tp.exports=aF;var uF=Ap();function aF(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(a){function c(){e&&e(a,r),e=null}s?uF(c):c()}function u(a,c,f){r[a]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){t[a](function(c,f){u(a,c,f)})}):t.forEach(function(a,c){a(function(f,p){u(c,f,p)})}):o(null),s=!1}});var Bp=C(Br=>{"use strict";l();Object.defineProperty(Br,"__esModule",{value:!0});Br.DirentFromStats=Br.createDirentFromStats=void 0;var Rp=require("fs"),ua=Symbol("stats");function lF(t,e){return new gn(t,e)}Br.createDirentFromStats=lF;var gn=class extends Rp.Dirent{[ua];constructor(e,r){super(e,null),this[ua]=r}};Br.DirentFromStats=gn;for(let t of Reflect.ownKeys(Rp.Dirent.prototype)){let e=t;e!=="constructor"&&(gn.prototype[e]=function(){return this[ua][e]()})}});var aa=C(ts=>{"use strict";l();Object.defineProperty(ts,"__esModule",{value:!0});ts.fs=void 0;ts.fs=Bp()});var la=C(rs=>{"use strict";l();Object.defineProperty(rs,"__esModule",{value:!0});rs.joinPathSegments=void 0;function cF(t,e,r){return t.endsWith(r)?t+e:t+r+e}rs.joinPathSegments=cF});var Np=C(ns=>{"use strict";l();Object.defineProperty(ns,"__esModule",{value:!0});ns.read=void 0;var fF=Qi(),hF=Op(),dF=aa(),pF=la();function DF(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Ip(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:pF.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.stats&&!e.followSymbolicLinks){Pp(r,s);return}let o=mF(s,e);hF(o,u=>{if(u!==null){Ip(r,u);return}Pp(r,s)})})}ns.read=DF;function mF(t,e){let r=[];for(let n of t){let i=gF(n,e);i!==void 0&&r.push(i)}return r}function gF(t,e){let r=EF(t,e);if(r!==void 0)return n=>{r((i,s)=>{if(i!==null){n(e.throwErrorOnBrokenSymbolicLink?i:null);return}e.stats&&(t.stats=s),e.followSymbolicLinks&&(t.dirent=dF.fs.createDirentFromStats(t.name,s)),n(null,t)})}}function EF(t,e){if(e.stats)return r=>{fF.stat(t.path,e.fsStatSettings,r)};if(e.followSymbolicLinks&&t.dirent.isSymbolicLink())return r=>{e.fs.stat(t.path,r)}}function Ip(t,e){t(e)}function Pp(t,e){t(null,e)}});var kp=C(is=>{"use strict";l();Object.defineProperty(is,"__esModule",{value:!0});is.read=void 0;var yF=Qi(),xF=aa(),bF=la();function _F(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:bF.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(e.stats&&(i.stats=yF.statSync(i.path,e.fsStatSettings)),e.followSymbolicLinks&&i.dirent.isSymbolicLink())try{let s=i.stats??e.fs.statSync(i.path);i.dirent=xF.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}is.read=_F});var Mp=C(Ir=>{"use strict";l();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.scandirSync=Ir.scandir=void 0;var Lp=oa(),$p=Np(),CF=kp();function FF(t,e,r){if(typeof e=="function"){$p.read(t,ca(),e);return}$p.read(t,ca(e),r)}Ir.scandir=FF;function wF(t,e){let r=ca(e);return CF.read(t,r)}Ir.scandirSync=wF;function ca(t={}){return t instanceof Lp.Settings?t:new Lp.Settings(t)}});var fa=C(It=>{"use strict";l();Object.defineProperty(It,"__esModule",{value:!0});It.Settings=It.scandirSync=It.scandir=void 0;var Hp=Mp();Object.defineProperty(It,"scandir",{enumerable:!0,get:function(){return Hp.scandir}});Object.defineProperty(It,"scandirSync",{enumerable:!0,get:function(){return Hp.scandirSync}});var SF=oa();Object.defineProperty(It,"Settings",{enumerable:!0,get:function(){return SF.Settings}})});var da=C(ss=>{"use strict";l();Object.defineProperty(ss,"__esModule",{value:!0});ss.Settings=void 0;var vF=require("path"),AF=fa(),ha=class{basePath;concurrency;deepFilter;entryFilter;errorFilter;pathSegmentSeparator;fsScandirSettings;constructor(e={}){this.basePath=e.basePath??void 0,this.concurrency=e.concurrency??Number.POSITIVE_INFINITY,this.deepFilter=e.deepFilter??null,this.entryFilter=e.entryFilter??null,this.errorFilter=e.errorFilter??null,this.pathSegmentSeparator=e.pathSegmentSeparator??vF.sep,this.fsScandirSettings=new AF.Settings({followSymbolicLinks:e.followSymbolicLinks,fs:e.fs,pathSegmentSeparator:this.pathSegmentSeparator,stats:e.stats,throwErrorOnBrokenSymbolicLink:e.throwErrorOnBrokenSymbolicLink})}};ss.Settings=ha});var jp=C((AB,Up)=>{"use strict";l();function TF(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Up.exports=TF});var Gp=C((OB,pa)=>{"use strict";l();var OF=jp();function qp(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=OF(RF),i=null,s=null,o=0,u=null,a={push:O,drain:Ge,saturated:Ge,pause:f,paused:!1,concurrency:r,running:c,resume:y,idle:_,length:p,getQueue:m,unshift:k,empty:Ge,kill:q,killAndDrain:j,error:T};return a;function c(){return o}function f(){a.paused=!0}function p(){for(var $=i,R=0;$;)$=$.next,R++;return R}function m(){for(var $=i,R=[];$;)R.push($.value),$=$.next;return R}function y(){if(a.paused){a.paused=!1;for(var $=0;$<a.concurrency;$++)o++,H()}}function _(){return o===0&&a.length()===0}function O($,R){var L=n.get();L.context=t,L.release=H,L.value=$,L.callback=R||Ge,L.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=L,s=L):(i=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function k($,R){var L=n.get();L.context=t,L.release=H,L.value=$,L.callback=R||Ge,o===a.concurrency||a.paused?i?(L.next=i,i=L):(i=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function H($){$&&n.release($);var R=i;R?a.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,e.call(t,R.value,R.worked),s===null&&a.empty()):--o===0&&a.drain()}function q(){i=null,s=null,a.drain=Ge}function j(){i=null,s=null,a.drain(),a.drain=Ge}function T($){u=$}}function Ge(){}function RF(){this.value=null,this.callback=Ge,this.next=null,this.release=Ge,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ge,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function BF(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,p){e.call(this,f).then(function(m){p(null,m)},p)}var i=qp(t,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=a,i.drained=c,i;function u(f){var p=new Promise(function(m,y){s(f,function(_,O){if(_){y(_);return}m(O)})});return p.catch(Ge),p}function a(f){var p=new Promise(function(m,y){o(f,function(_,O){if(_){y(_);return}m(O)})});return p.catch(Ge),p}function c(){if(i.idle())return new Promise(function(m){m()});var f=i.drain,p=new Promise(function(m){i.drain=function(){f(),m()}});return p}}pa.exports=qp;pa.exports.promise=BF});var Da=C(tt=>{"use strict";l();Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function IF(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=IF;function PF(t,e){return t===null||t(e)}tt.isAppliedFilter=PF;function NF(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=NF;function kF(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=kF});var Wp=C(os=>{"use strict";l();Object.defineProperty(os,"__esModule",{value:!0});os.AsyncReader=void 0;var LF=require("events"),$F=Gp(),En=Da(),ma=class{#e=new LF.EventEmitter;onEntry(e){this.#e.on("entry",e)}onError(e){this.#e.once("error",e)}onEnd(e){this.#e.once("end",e)}_emitEntry(e){this.#e.emit("entry",e)}_emitEnd(){this.#e.emit("end")}_emitError(e){this.#e.emit("error",e)}},ga=class extends ma{#e=!1;#t=!1;#n;#r;#i;constructor(e,r){super();let n=$F(this.#o.bind(this),r.concurrency);n.drain=()=>{this.#e||this._emitEnd()},this.#n=e,this.#r=r,this.#i=n}read(e){this.#e=!1,this.#t=!1;let r=En.replacePathSegmentSeparator(e,this.#r.pathSegmentSeparator);this.#s(r,this.#r.basePath)}get isDestroyed(){return this.#t}destroy(){this.#t||(this.#t=!0,this.#i.killAndDrain())}#s(e,r){this.#i.push({directory:e,base:r},n=>{n!==null&&this.#u(n)})}#o(e,r){this.#n.scandir(e.directory,this.#r.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this.#a(s,e.base);r(null,void 0)})}#u(e){this.#t||!En.isFatalError(this.#r,e)||(this.#e=!0,this.#t=!0,this._emitError(e))}#a(e,r){if(this.#t||this.#e)return;let n=e.path;r!==void 0&&(e.path=En.joinPathSegments(r,e.name,this.#r.pathSegmentSeparator)),En.isAppliedFilter(this.#r.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&En.isAppliedFilter(this.#r.deepFilter,e)&&this.#s(n,r===void 0?void 0:e.path)}};os.AsyncReader=ga});var Vp=C(us=>{"use strict";l();Object.defineProperty(us,"__esModule",{value:!0});us.SyncReader=void 0;var yn=Da(),Ea=class{#e;#t;#n=new Set;#r=[];constructor(e,r){this.#e=e,this.#t=r}read(e){let r=yn.replacePathSegmentSeparator(e,this.#t.pathSegmentSeparator);return this.#i(r,this.#t.basePath),this.#s(),this.#r}#i(e,r){this.#n.add({directory:e,base:r})}#s(){for(let e of this.#n.values())this.#o(e.directory,e.base)}#o(e,r){try{let n=this.#e.scandirSync(e,this.#t.fsScandirSettings);for(let i of n)this.#a(i,r)}catch(n){this.#u(n)}}#u(e){if(yn.isFatalError(this.#t,e))throw e}#a(e,r){let n=e.path;r!==void 0&&(e.path=yn.joinPathSegments(r,e.name,this.#t.pathSegmentSeparator)),yn.isAppliedFilter(this.#t.entryFilter,e)&&this.#l(e),e.dirent.isDirectory()&&yn.isAppliedFilter(this.#t.deepFilter,e)&&this.#i(n,r===void 0?void 0:e.path)}#l(e){this.#r.push(e)}};us.SyncReader=Ea});var Kp=C(Pt=>{"use strict";l();var MF=Pt&&Pt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zp=Pt&&Pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&MF(e,t,r)};Object.defineProperty(Pt,"__esModule",{value:!0});zp(Wp(),Pt);zp(Vp(),Pt)});var Xp=C(as=>{"use strict";l();Object.defineProperty(as,"__esModule",{value:!0});as.FileSystemAdapter=void 0;var Yp=fa(),ya=class{scandir=Yp.scandir;scandirSync=Yp.scandirSync};as.FileSystemAdapter=ya});var Jp=C(Nt=>{"use strict";l();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.walkStream=Nt.walkSync=Nt.walk=void 0;var xa=mp(),Zp=da(),ba=Kp(),HF=Xp(),_a=new HF.FileSystemAdapter;function UF(t,e,r){let n=typeof e=="function",i=n?e:r,s=n?ls():ls(e),o=new ba.AsyncReader(_a,s);new xa.AsyncProvider(o).read(t,i)}Nt.walk=UF;function jF(t,e){let r=ls(e),n=new ba.SyncReader(_a,r);return new xa.SyncProvider(n).read(t)}Nt.walkSync=jF;function qF(t,e){let r=ls(e),n=new ba.AsyncReader(_a,r);return new xa.StreamProvider(n).read(t)}Nt.walkStream=qF;function ls(t={}){return t instanceof Zp.Settings?t:new Zp.Settings(t)}});var Qp=C(rt=>{"use strict";l();Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkSync=rt.walkStream=rt.walk=void 0;var Ca=Jp();Object.defineProperty(rt,"walk",{enumerable:!0,get:function(){return Ca.walk}});Object.defineProperty(rt,"walkStream",{enumerable:!0,get:function(){return Ca.walkStream}});Object.defineProperty(rt,"walkSync",{enumerable:!0,get:function(){return Ca.walkSync}});var GF=da();Object.defineProperty(rt,"Settings",{enumerable:!0,get:function(){return GF.Settings}})});var lD=C((VB,aD)=>{"use strict";l();function eD(t){return Array.isArray(t)?t:[t]}var iD="",tD=" ",Fa="\\",WF=/^\s+$/,VF=/(?:[^\\]|^)\\$/,zF=/^\\!/,KF=/^\\#/,YF=/\r?\n/g,XF=/^\.*\/|^\.+$/,wa="/",sD="node-ignore";typeof Symbol<"u"&&(sD=Symbol.for("node-ignore"));var rD=sD,ZF=(t,e,r)=>Object.defineProperty(t,e,{value:r}),JF=/([0-z])-([0-z])/g,oD=()=>!1,QF=t=>t.replace(JF,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:iD),ew=t=>{let{length:e}=t;return t.slice(0,e-e%2)},tw=[[/\\?\s+$/,t=>t.indexOf("\\")===0?tD:iD],[/\\\s/g,()=>tD],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return e+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Fa],[/\\\\/g,()=>Fa],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>e===Fa?`\\[${r}${ew(n)}${i}`:i==="]"&&n.length%2===0?`[${QF(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],nD=Object.create(null),rw=(t,e)=>{let r=nD[t];return r||(r=tw.reduce((n,i)=>n.replace(i[0],i[1].bind(t)),t),nD[t]=r),e?new RegExp(r,"i"):new RegExp(r)},Aa=t=>typeof t=="string",nw=t=>t&&Aa(t)&&!WF.test(t)&&!VF.test(t)&&t.indexOf("#")!==0,iw=t=>t.split(YF),Sa=class{constructor(e,r,n,i){this.origin=e,this.pattern=r,this.negative=n,this.regex=i}},sw=(t,e)=>{let r=t,n=!1;t.indexOf("!")===0&&(n=!0,t=t.substr(1)),t=t.replace(zF,"!").replace(KF,"#");let i=rw(t,e);return new Sa(r,t,n,i)},ow=(t,e)=>{throw new e(t)},mt=(t,e,r)=>Aa(t)?t?mt.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),uD=t=>XF.test(t);mt.isNotRelative=uD;mt.convert=t=>t;var va=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:n=!1}={}){ZF(this,rD,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[rD]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(nw(e)){let r=sw(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,eD(Aa(e)?iw(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(e)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(e,r,n,i){let s=e&&mt.convert(e);return mt(s,e,this._allowRelativePaths?oD:ow),this._t(s,r,n,i)}_t(e,r,n,i){if(e in r)return r[e];if(i||(i=e.split(wa)),i.pop(),!i.length)return r[e]=this._testOne(e,n);let s=this._t(i.join(wa)+wa,r,n,i);return r[e]=s.ignored?s:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return eD(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},cs=t=>new va(t),uw=t=>mt(t&&mt.convert(t),t,oD);cs.isPathValid=uw;cs.default=cs;aD.exports=cs;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");mt.convert=t;let e=/^[a-z]:\//i;mt.isNotRelative=r=>e.test(r)||uD(r)}});var SD=C((Es,Fn)=>{"use strict";l();(function(){"use strict";var t={function:!0,object:!0},e=t[typeof window]&&window||this,r=e,n=t[typeof Es]&&Es,i=t[typeof Fn]&&Fn&&!Fn.nodeType&&Fn,s=n&&i&&typeof global=="object"&&global;s&&(s.global===s||s.window===s||s.self===s)&&(e=s);var o=Math.pow(2,53)-1,u=/\bOpera/,a=this,c=Object.prototype,f=c.hasOwnProperty,p=c.toString;function m(F){return F=String(F),F.charAt(0).toUpperCase()+F.slice(1)}function y(F,A,N){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return A&&N&&/^Win/i.test(F)&&!/^Windows Phone /i.test(F)&&(I=I[/[\d.]+$/.exec(F)])&&(F="Windows "+I),F=String(F),A&&N&&(F=F.replace(RegExp(A,"i"),N)),F=O(F.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),F}function _(F,A){var N=-1,I=F?F.length:0;if(typeof I=="number"&&I>-1&&I<=o)for(;++N<I;)A(F[N],N,F);else k(F,A)}function O(F){return F=$(F),/^(?:webOS|i(?:OS|P))/.test(F)?F:m(F)}function k(F,A){for(var N in F)f.call(F,N)&&A(F[N],N,F)}function H(F){return F==null?m(F):p.call(F).slice(8,-1)}function q(F,A){var N=F!=null?typeof F[A]:"number";return!/^(?:boolean|number|string|undefined)$/.test(N)&&(N=="object"?!!F[A]:!0)}function j(F){return String(F).replace(/([ -])(?!$)/g,"$1?")}function T(F,A){var N=null;return _(F,function(I,V){N=A(N,I,V,F)}),N}function $(F){return String(F).replace(/^ +| +$/g,"")}function R(F){var A=e,N=F&&typeof F=="object"&&H(F)!="String";N&&(A=F,F=null);var I=A.navigator||{},V=I.userAgent||"";F||(F=V);var G=N||a==r,Z=N?!!I.likeChrome:/\bChrome\b/.test(F)&&!/internal|\n/i.test(p.toString()),te="Object",He=N?te:"ScriptBridgingProxyObject",at=N?te:"Environment",lt=N&&A.java?"JavaPackage":H(A.java),li=N?te:"RuntimeObject",ct=/\bJava/.test(lt)&&A.java,Ve=ct&&H(A.environment)==at,Yt=ct?"a":"\u03B1",ft=ct?"b":"\u03B2",mr=A.document||{},Ue=A.operamini||A.opera,vt=u.test(vt=N&&Ue?Ue["[[Class]]"]:H(Ue))?vt:Ue=null,x,ht=F,X=[],Xt=null,je=F==V,U=je&&Ue&&typeof Ue.version=="function"&&Ue.version(),Qr,Q=ci([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=So(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Y=Qe([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),he=fi({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),P=W(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ci(g){return T(g,function(b,E){return b||RegExp("\\b"+(E.pattern||j(E))+"\\b","i").exec(F)&&(E.label||E)})}function fi(g){return T(g,function(b,E,w){return b||(E[Y]||E[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Y)]||RegExp("\\b"+j(w)+"(?:\\b|\\w*\\d)","i").exec(F))&&w})}function So(g){return T(g,function(b,E){return b||RegExp("\\b"+(E.pattern||j(E))+"\\b","i").exec(F)&&(E.label||E)})}function W(g){return T(g,function(b,E){var w=E.pattern||j(E);return!b&&(b=RegExp("\\b"+w+"(?:/[\\d.]+|[ \\w.]*)","i").exec(F))&&(b=y(b,w,E.label||E)),b})}function Qe(g){return T(g,function(b,E){var w=E.pattern||j(E);return!b&&(b=RegExp("\\b"+w+" *\\d+[.\\w_]*","i").exec(F)||RegExp("\\b"+w+" *\\w+-[\\w]*","i").exec(F)||RegExp("\\b"+w+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(F))&&((b=String(E.label&&!RegExp(w,"i").test(E.label)?E.label:b).split("/"))[1]&&!/[\d.]+/.test(b[0])&&(b[0]+=" "+b[1]),E=E.label||E,b=O(b[0].replace(RegExp(w,"i"),E).replace(RegExp("; *(?:"+E+"[_-])?","i")," ").replace(RegExp("("+E+")[-_.]?(\\w)","i"),"$1 $2"))),b})}function h(g){return T(g,function(b,E){return b||(RegExp(E+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(F)||0)[1]||null})}function d(){return this.description||""}if(Q&&(Q=[Q]),/\bAndroid\b/.test(P)&&!Y&&(x=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(F))&&(Y=$(x[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),he&&!Y?Y=Qe([he]):he&&Y&&(Y=Y.replace(RegExp("^("+j(he)+")[-_.\\s]","i"),he+" ").replace(RegExp("^("+j(he)+")[-_.]?(\\w)","i"),he+" $2")),(x=/\bGoogle TV\b/.exec(Y))&&(Y=x[0]),/\bSimulator\b/i.test(F)&&(Y=(Y?Y+" ":"")+"Simulator"),B=="Opera Mini"&&/\bOPiOS\b/.test(F)&&X.push("running in Turbo/Uncompressed mode"),B=="IE"&&/\blike iPhone OS\b/.test(F)?(x=R(F.replace(/like iPhone OS/,"")),he=x.manufacturer,Y=x.product):/^iP/.test(Y)?(B||(B="Safari"),P="iOS"+((x=/ OS ([\d_]+)/i.exec(F))?" "+x[1].replace(/_/g,"."):"")):B=="Konqueror"&&/^Linux\b/i.test(P)?P="Kubuntu":he&&he!="Google"&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(F)||/\bVita\b/.test(Y))||/\bAndroid\b/.test(P)&&/^Chrome/.test(B)&&/\bVersion\//i.test(F)?(B="Android Browser",P=/\bAndroid\b/.test(P)?P:"Android"):B=="Silk"?(/\bMobi/i.test(F)||(P="Android",X.unshift("desktop mode")),/Accelerated *= *true/i.test(F)&&X.unshift("accelerated")):B=="UC Browser"&&/\bUCWEB\b/.test(F)?X.push("speed mode"):B=="PaleMoon"&&(x=/\bFirefox\/([\d.]+)\b/.exec(F))?X.push("identifying as Firefox "+x[1]):B=="Firefox"&&(x=/\b(Mobile|Tablet|TV)\b/i.exec(F))?(P||(P="Firefox OS"),Y||(Y=x[1])):!B||(x=!/\bMinefield\b/i.test(F)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!Y&&/[\/,]|^[^(]+?\)/.test(F.slice(F.indexOf(x+"/")+8))&&(B=null),(x=Y||he||P)&&(Y||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(P))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(P)?P:x)+" Browser")):B=="Electron"&&(x=(/\bChrome\/([\d.]+)\b/.exec(F)||0)[1])&&X.push("Chromium "+x),U||(U=h(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",j(B),"(?:Firefox|Minefield|NetFront)"])),(x=Q=="iCab"&&parseFloat(U)>3&&"WebKit"||/\bOpera\b/.test(B)&&(/\bOPR\b/.test(F)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(F)&&!/^(?:Trident|EdgeHTML)$/.test(Q)&&"WebKit"||!Q&&/\bMSIE\b/i.test(F)&&(P=="Mac OS"?"Tasman":"Trident")||Q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(Q=[x]),B=="IE"&&(x=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(F)||0)[1])?(B+=" Mobile",P="Windows Phone "+(/\+$/.test(x)?x:x+".x"),X.unshift("desktop mode")):/\bWPDesktop\b/i.test(F)?(B="IE Mobile",P="Windows Phone 8.x",X.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(F)||0)[1])):B!="IE"&&Q=="Trident"&&(x=/\brv:([\d.]+)/.exec(F))&&(B&&X.push("identifying as "+B+(U?" "+U:"")),B="IE",U=x[1]),je){if(q(A,"global"))if(ct&&(x=ct.lang.System,ht=x.getProperty("os.arch"),P=P||x.getProperty("os.name")+" "+x.getProperty("os.version")),Ve){try{U=A.require("ringo/engine").version.join("."),B="RingoJS"}catch{(x=A.system)&&x.global.system==A.system&&(B="Narwhal",P||(P=x[0].os||null))}B||(B="Rhino")}else typeof A.process=="object"&&!A.process.browser&&(x=A.process)&&(typeof x.versions=="object"&&(typeof x.versions.electron=="string"?(X.push("Node "+x.versions.node),B="Electron",U=x.versions.electron):typeof x.versions.nw=="string"&&(X.push("Chromium "+U,"Node "+x.versions.node),B="NW.js",U=x.versions.nw)),B||(B="Node.js",ht=x.arch,P=x.platform,U=/[\d.]+/.exec(x.version),U=U?U[0]:null));else H(x=A.runtime)==He?(B="Adobe AIR",P=x.flash.system.Capabilities.os):H(x=A.phantom)==li?(B="PhantomJS",U=(x=x.version||null)&&x.major+"."+x.minor+"."+x.patch):typeof mr.documentMode=="number"&&(x=/\bTrident\/(\d+)/i.exec(F))?(U=[U,mr.documentMode],(x=+x[1]+4)!=U[1]&&(X.push("IE "+U[1]+" mode"),Q&&(Q[1]=""),U[1]=x),U=B=="IE"?String(U[1].toFixed(1)):U[0]):typeof mr.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(B)&&(X.push("masking as "+B+" "+U),B="IE",U="11.0",Q=["Trident"],P="Windows");P=P&&O(P)}if(U&&(x=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(F+";"+(je&&I.appMinorVersion))||/\bMinefield\b/i.test(F)&&"a")&&(Xt=/b/i.test(x)?"beta":"alpha",U=U.replace(RegExp(x+"\\+?$"),"")+(Xt=="beta"?ft:Yt)+(/\d+\+?/.exec(x)||"")),B=="Fennec"||B=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(P))B="Firefox Mobile";else if(B=="Maxthon"&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Y))Y=="Xbox 360"&&(P=null),Y=="Xbox 360"&&/\bIEMobile\b/.test(F)&&X.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(B)||B&&!Y&&!/Browser|Mobi/.test(B))&&(P=="Windows CE"||/Mobi/i.test(F)))B+=" Mobile";else if(B=="IE"&&je)try{A.external===null&&X.unshift("platform preview")}catch{X.unshift("embedded")}else(/\bBlackBerry\b/.test(Y)||/\bBB10\b/.test(F))&&(x=(RegExp(Y.replace(/ +/g," *")+"/([.\\d]+)","i").exec(F)||0)[1]||U)?(x=[x,/BB10/.test(F)],P=(x[1]?(Y=null,he="BlackBerry"):"Device Software")+" "+x[0],U=null):this!=k&&Y!="Wii"&&(je&&Ue||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(F)||B=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(P)||B=="IE"&&(P&&!/^Win/.test(P)&&U>5.5||/\bWindows XP\b/.test(P)&&U>8||U==8&&!/\bTrident\b/.test(F)))&&!u.test(x=R.call(k,F.replace(u,"")+";"))&&x.name&&(x="ing as "+x.name+((x=x.version)?" "+x:""),u.test(B)?(/\bIE\b/.test(x)&&P=="Mac OS"&&(P=null),x="identify"+x):(x="mask"+x,vt?B=O(vt.replace(/([a-z])([A-Z])/g,"$1 $2")):B="Opera",/\bIE\b/.test(x)&&(P=null),je||(U=null)),Q=["Presto"],X.push(x));(x=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(F)||0)[1])&&(x=[parseFloat(x.replace(/\.(\d)$/,".0$1")),x],B=="Safari"&&x[1].slice(-1)=="+"?(B="WebKit Nightly",Xt="alpha",U=x[1].slice(0,-1)):(U==x[1]||U==(x[2]=(/\bSafari\/([\d.]+\+?)/i.exec(F)||0)[1]))&&(U=null),x[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(F)||0)[1],x[0]==537.36&&x[2]==537.36&&parseFloat(x[1])>=28&&Q=="WebKit"&&(Q=["Blink"]),!je||!Z&&!x[1]?(Q&&(Q[1]="like Safari"),x=(x=x[0],x<400?1:x<500?2:x<526?3:x<533?4:x<534?"4+":x<535?5:x<537?6:x<538?7:x<601?8:x<602?9:x<604?10:x<606?11:x<608?12:"12")):(Q&&(Q[1]="like Chrome"),x=x[1]||(x=x[0],x<530?1:x<532?2:x<532.05?3:x<533?4:x<534.03?5:x<534.07?6:x<534.1?7:x<534.13?8:x<534.16?9:x<534.24?10:x<534.3?11:x<535.01?12:x<535.02?"13+":x<535.07?15:x<535.11?16:x<535.19?17:x<536.05?18:x<536.1?19:x<537.01?20:x<537.11?"21+":x<537.13?23:x<537.18?24:x<537.24?25:x<537.36?26:Q!="Blink"?"27":"28")),Q&&(Q[1]+=" "+(x+=typeof x=="number"?".x":/[.+]/.test(x)?"":"+")),B=="Safari"&&(!U||parseInt(U)>45)?U=x:B=="Chrome"&&/\bHeadlessChrome/i.test(F)&&X.unshift("headless")),B=="Opera"&&(x=/\bzbov|zvav$/.exec(P))?(B+=" ",X.unshift("desktop mode"),x=="zvav"?(B+="Mini",U=null):B+="Mobile",P=P.replace(RegExp(" *"+x+"$"),"")):B=="Safari"&&/\bChrome\b/.exec(Q&&Q[1])?(X.unshift("desktop mode"),B="Chrome Mobile",U=null,/\bOS X\b/.test(P)?(he="Apple",P="iOS 4.3+"):P=null):/\bSRWare Iron\b/.test(B)&&!U&&(U=h("Chrome")),U&&U.indexOf(x=/[\d.]+$/.exec(P))==0&&F.indexOf("/"+x+"-")>-1&&(P=$(P.replace(x,""))),P&&P.indexOf(B)!=-1&&!RegExp(B+" OS").test(P)&&(P=P.replace(RegExp(" *"+j(B)+" *"),"")),Q&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||B!="Safari"&&/^iOS/.test(P)&&/\bSafari\b/.test(Q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&Q[1])&&(x=Q[Q.length-1])&&X.push(x),X.length&&(X=["("+X.join("; ")+")"]),he&&Y&&Y.indexOf(he)<0&&X.push("on "+he),Y&&X.push((/^on /.test(X[X.length-1])?"":"on ")+Y),P&&(x=/ ([\d.+]+)$/.exec(P),Qr=x&&P.charAt(P.length-x[0].length-1)=="/",P={architecture:32,family:x&&!Qr?P.replace(x[0],""):P,version:x?x[1]:null,toString:function(){var g=this.version;return this.family+(g&&!Qr?" "+g:"")+(this.architecture==64?" 64-bit":"")}}),(x=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ht))&&!/\bi686\b/i.test(ht)?(P&&(P.architecture=64,P.family=P.family.replace(RegExp(" *"+x),"")),B&&(/\bWOW64\b/i.test(F)||je&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(F))&&X.unshift("32-bit")):P&&/^OS X/.test(P.family)&&B=="Chrome"&&parseFloat(U)>=39&&(P.architecture=64),F||(F=null);var D={};return D.description=F,D.layout=Q&&Q[0],D.manufacturer=he,D.name=B,D.prerelease=Xt,D.product=Y,D.ua=F,D.version=B&&U,D.os=P||{architecture:null,family:null,version:null,toString:function(){return"null"}},D.parse=R,D.toString=d,D.version&&X.unshift(U),D.name&&X.unshift(B),P&&B&&!(P==String(P).split(" ")[0]&&(P==B.split(" ")[0]||Y))&&X.push(Y?"("+P+")":"on "+P),X.length&&(D.description=X.join(" ")),D}var L=R();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(e.platform=L,define(function(){return L})):n&&i?k(L,function(F,A){n[A]=F}):e.platform=L}).call(Es)});var RD=C((Lk,OD)=>{"use strict";l();OD.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var kD=C((nL,ND)=>{"use strict";l();var t2=require("crypto");ND.exports=function(){return t2.randomBytes(16)}});var MD=C((sL,$D)=>{"use strict";l();var LD=[];for(Tn=0;Tn<256;++Tn)LD[Tn]=(Tn+256).toString(16).substr(1);var Tn;function r2(t,e){var r=e||0,n=LD;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")}$D.exports=r2});var jD=C((uL,UD)=>{"use strict";l();var n2=kD(),i2=MD(),HD,Ia,Pa=0,Na=0;function s2(t,e,r){var n=e&&r||0,i=e||[];t=t||{};var s=t.node||HD,o=t.clockseq!==void 0?t.clockseq:Ia;if(s==null||o==null){var u=n2();s==null&&(s=HD=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),o==null&&(o=Ia=(u[6]<<8|u[7])&16383)}var a=t.msecs!==void 0?t.msecs:new Date().getTime(),c=t.nsecs!==void 0?t.nsecs:Na+1,f=a-Pa+(c-Na)/1e4;if(f<0&&t.clockseq===void 0&&(o=o+1&16383),(f<0||a>Pa)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Pa=a,Na=c,Ia=o,a+=122192928e5;var p=((a&268435455)*1e4+c)%4294967296;i[n++]=p>>>24&255,i[n++]=p>>>16&255,i[n++]=p>>>8&255,i[n++]=p&255;var m=a/4294967296*1e4&268435455;i[n++]=m>>>8&255,i[n++]=m&255,i[n++]=m>>>24&15|16,i[n++]=m>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(var y=0;y<6;++y)i[n+y]=s[y];return e||i2(i)}UD.exports=s2});var rr=C((lL,qD)=>{"use strict";l();qD.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}});var sm=C((fL,im)=>{"use strict";l();var zD=require("fs"),Et=require("path"),KD=require("os"),YD=typeof __webpack_require__=="function"?__non_webpack_require__:require,o2=process.config&&process.config.variables||{},u2=!!process.env.PREBUILDS_ONLY,GD=process.versions.modules,ka=c2()?"electron":l2()?"node-webkit":"node",La=process.env.npm_config_arch||KD.arch(),$a=process.env.npm_config_platform||KD.platform(),XD=process.env.LIBC||(f2($a)?"musl":"glibc"),Ma=process.env.ARM_VERSION||(La==="arm64"?"8":o2.arm_version)||"",ZD=(process.versions.uv||"").split(".")[0];im.exports=it;function it(t){return YD(it.resolve(t))}it.resolve=it.path=function(t){t=Et.resolve(t||".");try{var e=YD(Et.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch{}if(!u2){var r=WD(Et.join(t,"build/Release"),VD);if(r)return r;var n=WD(Et.join(t,"build/Debug"),VD);if(n)return n}var i=u(t);if(i)return i;var s=u(Et.dirname(process.execPath));if(s)return s;var o=["platform="+$a,"arch="+La,"runtime="+ka,"abi="+GD,"uv="+ZD,Ma?"armv="+Ma:"","libc="+XD,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+o+`
24
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var sh=C((rO,nn)=>{"use strict";l();var rn=require("path"),nh=Xo(),ih=t=>{t={cwd:process.cwd(),path:process.env[nh()],execPath:process.execPath,...t};let e,r=rn.resolve(t.cwd),n=[];for(;e!==r;)n.push(rn.join(r,"node_modules/.bin")),e=r,r=rn.resolve(r,"..");let i=rn.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(rn.delimiter)};nn.exports=ih;nn.exports.default=ih;nn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=nh({env:e});return t.path=e[r],e[r]=nn.exports(t),e}});var uh=C((iO,su)=>{"use strict";l();var oh=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};su.exports=oh;su.exports.default=oh});var lh=C((oO,yi)=>{"use strict";l();var Db=uh(),Ei=new WeakMap,ah=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ei.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Db(s,t),Ei.set(s,n),s};yi.exports=ah;yi.exports.default=ah;yi.exports.callCount=t=>{if(!Ei.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ei.get(t)}});var ch=C(xi=>{"use strict";l();Object.defineProperty(xi,"__esModule",{value:!0});xi.SIGNALS=void 0;var mb=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];xi.SIGNALS=mb});var ou=C(yr=>{"use strict";l();Object.defineProperty(yr,"__esModule",{value:!0});yr.SIGRTMAX=yr.getRealtimeSignals=void 0;var gb=function(){let t=hh-fh+1;return Array.from({length:t},Eb)};yr.getRealtimeSignals=gb;var Eb=function(t,e){return{name:`SIGRT${e+1}`,number:fh+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},fh=34,hh=64;yr.SIGRTMAX=hh});var dh=C(bi=>{"use strict";l();Object.defineProperty(bi,"__esModule",{value:!0});bi.getSignals=void 0;var yb=require("os"),xb=ch(),bb=ou(),_b=function(){let t=(0,bb.getRealtimeSignals)();return[...xb.SIGNALS,...t].map(Cb)};bi.getSignals=_b;var Cb=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=yb.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:n,forced:i,standard:s}}});var Dh=C(xr=>{"use strict";l();Object.defineProperty(xr,"__esModule",{value:!0});xr.signalsByNumber=xr.signalsByName=void 0;var Fb=require("os"),ph=dh(),wb=ou(),Sb=function(){return(0,ph.getSignals)().reduce(vb,{})},vb=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:u}}},Ab=Sb();xr.signalsByName=Ab;var Tb=function(){let t=(0,ph.getSignals)(),e=wb.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>Ob(i,t));return Object.assign({},...r)},Ob=function(t,e){let r=Rb(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:u,standard:a}}},Rb=function(t,e){let r=e.find(({name:n})=>Fb.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},Bb=Tb();xr.signalsByNumber=Bb});var gh=C((mO,mh)=>{"use strict";l();var{signalsByName:Ib}=Dh(),Pb=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",Nb=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:f,parsed:{options:{timeout:p}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let m=i===void 0?void 0:Ib[i].description,y=n&&n.code,O=`Command ${Pb({timedOut:a,timeout:p,errorCode:y,signal:i,signalDescription:m,exitCode:s,isCanceled:c})}: ${o}`,k=Object.prototype.toString.call(n)==="[object Error]",M=k?`${O}
25
+ ${n.message}`:O,q=[M,e,t].filter(Boolean).join(`
26
+ `);return k?(n.originalMessage=n.message,n.message=q):n=new Error(q),n.shortMessage=M,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=m,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=f&&!a,n};mh.exports=Nb});var yh=C((EO,uu)=>{"use strict";l();var _i=["stdin","stdout","stderr"],kb=t=>_i.some(e=>t[e]!==void 0),Eh=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _i.map(n=>t[n]);if(kb(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_i.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_i.length);return Array.from({length:r},(n,i)=>e[i])};uu.exports=Eh;uu.exports.node=t=>{let e=Eh(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var xh=C((xO,Ci)=>{"use strict";l();Ci.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ci.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ci.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var cu=C((_O,Cr)=>{"use strict";l();var oe=global.process,Jt=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Jt(oe)?(bh=require("assert"),br=xh(),_h=/^win/i.test(oe.platform),sn=require("events"),typeof sn!="function"&&(sn=sn.EventEmitter),oe.__signal_exit_emitter__?Ee=oe.__signal_exit_emitter__:(Ee=oe.__signal_exit_emitter__=new sn,Ee.count=0,Ee.emitted={}),Ee.infinite||(Ee.setMaxListeners(1/0),Ee.infinite=!0),Cr.exports=function(t,e){if(!Jt(global.process))return function(){};bh.equal(typeof t,"function","a callback must be provided for exit handler"),_r===!1&&au();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ee.removeListener(r,t),Ee.listeners("exit").length===0&&Ee.listeners("afterexit").length===0&&Fi()};return Ee.on(r,t),n},Fi=function(){!_r||!Jt(global.process)||(_r=!1,br.forEach(function(e){try{oe.removeListener(e,wi[e])}catch{}}),oe.emit=Si,oe.reallyExit=lu,Ee.count-=1)},Cr.exports.unload=Fi,Qt=function(e,r,n){Ee.emitted[e]||(Ee.emitted[e]=!0,Ee.emit(e,r,n))},wi={},br.forEach(function(t){wi[t]=function(){if(Jt(global.process)){var r=oe.listeners(t);r.length===Ee.count&&(Fi(),Qt("exit",null,t),Qt("afterexit",null,t),_h&&t==="SIGHUP"&&(t="SIGINT"),oe.kill(oe.pid,t))}}}),Cr.exports.signals=function(){return br},_r=!1,au=function(){_r||!Jt(global.process)||(_r=!0,Ee.count+=1,br=br.filter(function(e){try{return oe.on(e,wi[e]),!0}catch{return!1}}),oe.emit=Fh,oe.reallyExit=Ch)},Cr.exports.load=au,lu=oe.reallyExit,Ch=function(e){Jt(global.process)&&(oe.exitCode=e||0,Qt("exit",oe.exitCode,null),Qt("afterexit",oe.exitCode,null),lu.call(oe,oe.exitCode))},Si=oe.emit,Fh=function(e,r){if(e==="exit"&&Jt(global.process)){r!==void 0&&(oe.exitCode=r);var n=Si.apply(this,arguments);return Qt("exit",oe.exitCode,null),Qt("afterexit",oe.exitCode,null),n}else return Si.apply(this,arguments)}):Cr.exports=function(){return function(){}};var bh,br,_h,sn,Ee,Fi,Qt,wi,_r,au,lu,Ch,Si,Fh});var Sh=C((FO,wh)=>{"use strict";l();var Lb=require("os"),$b=cu(),Mb=1e3*5,Hb=(t,e="SIGTERM",r={})=>{let n=t(e);return Ub(t,e,r,n),n},Ub=(t,e,r,n)=>{if(!jb(e,r,n))return;let i=Gb(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},jb=(t,{forceKillAfterTimeout:e},r)=>qb(t)&&e!==!1&&r,qb=t=>t===Lb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Gb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Mb;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Wb=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Vb=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},zb=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{Vb(t,r,a)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},Kb=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Yb=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=$b(()=>{t.kill()});return n.finally(()=>{i()})};wh.exports={spawnedKill:Hb,spawnedCancel:Wb,setupTimeout:zb,validateTimeout:Kb,setExitHandler:Yb}});var Ah=C((SO,vh)=>{"use strict";l();var et=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";et.writable=t=>et(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";et.readable=t=>et(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";et.duplex=t=>et.writable(t)&&et.readable(t);et.transform=t=>et.duplex(t)&&typeof t._transform=="function";vh.exports=et});var Oh=C((AO,Th)=>{"use strict";l();var{PassThrough:Xb}=require("stream");Th.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Xb({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var hu=C((OO,on)=>{"use strict";l();var{constants:Zb}=require("buffer"),Jb=require("stream"),{promisify:Qb}=require("util"),e_=Oh(),t_=Qb(Jb.pipeline),vi=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function fu(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=e_(e);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=Zb.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await t_(t,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new vi)})}),n.getBufferedValue()}on.exports=fu;on.exports.buffer=(t,e)=>fu(t,{...e,encoding:"buffer"});on.exports.array=(t,e)=>fu(t,{...e,array:!0});on.exports.MaxBufferError=vi});var du=C((BO,Rh)=>{"use strict";l();var{PassThrough:r_}=require("stream");Rh.exports=function(){var t=[],e=new r_({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Nh=C((PO,Ph)=>{"use strict";l();var Ih=Ah(),Bh=hu(),n_=du(),i_=(t,e)=>{e===void 0||t.stdin===void 0||(Ih(e)?e.pipe(t.stdin):t.stdin.end(e))},s_=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=n_();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},pu=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Du=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Bh(t,{encoding:e,maxBuffer:n}):Bh.buffer(t,{maxBuffer:n})},o_=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=Du(t,{encoding:n,buffer:i,maxBuffer:s}),a=Du(e,{encoding:n,buffer:i,maxBuffer:s}),c=Du(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},pu(t,u),pu(e,a),pu(r,c)])}},u_=({input:t})=>{if(Ih(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ph.exports={handleInput:i_,makeAllStream:s_,getSpawnedResult:o_,validateInputSync:u_}});var Lh=C((kO,kh)=>{"use strict";l();var a_=(async()=>{})().constructor.prototype,l_=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(a_,t)]),c_=(t,e)=>{for(let[r,n]of l_){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},f_=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});kh.exports={mergePromise:c_,getSpawnedPromise:f_}});var Hh=C(($O,Mh)=>{"use strict";l();var $h=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],h_=/^[\w.-]+$/,d_=/"/g,p_=t=>typeof t!="string"||h_.test(t)?t:`"${t.replace(d_,'\\"')}"`,D_=(t,e)=>$h(t,e).join(" "),m_=(t,e)=>$h(t,e).map(r=>p_(r)).join(" "),g_=/ +/g,E_=t=>{let e=[];for(let r of t.trim().split(g_)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Mh.exports={joinCommand:D_,getEscapedCommand:m_,parseCommand:E_}});var zh=C((HO,Fr)=>{"use strict";l();var y_=require("path"),mu=require("child_process"),x_=iu(),b_=rh(),__=sh(),C_=lh(),Ai=gh(),jh=yh(),{spawnedKill:F_,spawnedCancel:w_,setupTimeout:S_,validateTimeout:v_,setExitHandler:A_}=Sh(),{handleInput:T_,getSpawnedResult:O_,makeAllStream:R_,validateInputSync:B_}=Nh(),{mergePromise:Uh,getSpawnedPromise:I_}=Lh(),{joinCommand:qh,parseCommand:Gh,getEscapedCommand:Wh}=Hh(),P_=1e3*1e3*100,N_=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?__.env({env:s,cwd:n,execPath:i}):s},Vh=(t,e,r={})=>{let n=x_._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:P_,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=N_(r),r.stdio=jh(r),process.platform==="win32"&&y_.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},un=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?b_(e):e,Ti=(t,e,r)=>{let n=Vh(t,e,r),i=qh(t,e),s=Wh(t,e);v_(n.options);let o;try{o=mu.spawn(n.file,n.args,n.options)}catch(y){let _=new mu.ChildProcess,O=Promise.reject(Ai({error:y,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Uh(_,O)}let u=I_(o),a=S_(o,n.options,u),c=A_(o,n.options,a),f={isCanceled:!1};o.kill=F_.bind(null,o.kill.bind(o)),o.cancel=w_.bind(null,o,f);let m=C_(async()=>{let[{error:y,exitCode:_,signal:O,timedOut:k},M,q,j]=await O_(o,n.options,c),T=un(n.options,M),$=un(n.options,q),R=un(n.options,j);if(y||_!==0||O!==null){let L=Ai({error:y,exitCode:_,signal:O,stdout:T,stderr:$,all:R,command:i,escapedCommand:s,parsed:n,timedOut:k,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return L;throw L}return{command:i,escapedCommand:s,exitCode:0,stdout:T,stderr:$,all:R,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return T_(o,n.options.input),o.all=R_(o,n.options),Uh(o,m)};Fr.exports=Ti;Fr.exports.sync=(t,e,r)=>{let n=Vh(t,e,r),i=qh(t,e),s=Wh(t,e);B_(n.options);let o;try{o=mu.spawnSync(n.file,n.args,n.options)}catch(c){throw Ai({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=un(n.options,o.stdout,o.error),a=un(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ai({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Fr.exports.command=(t,e)=>{let[r,...n]=Gh(t);return Ti(r,n,e)};Fr.exports.commandSync=(t,e)=>{let[r,...n]=Gh(t);return Ti.sync(r,n,e)};Fr.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=jh.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Ti(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var hp=C((kR,fp)=>{"use strict";l();var Re=require("path"),Yu=t=>new Xu(t);Yu.default=Yu;fp.exports=Yu;function lp(t){return Array.isArray(t)?t:[t]}var UC=/(?<=.)\/$/,jC=/(?<=.)\\$/,qC=Re.sep==="\\"?jC:UC,cp=typeof Symbol<"u"?Symbol.for("dockerignore"):"dockerignore";function Ku(t){return Re.normalize(t).replace(qC,"")}function GC(t){return Re.sep==="/"?t:t.replace(/\\/g,"/")}function WC(t){return Re.sep==="/"?t:t.replace(/\//g,Re.sep)}var Xu=class{constructor({ignorecase:e=!0}={}){this._rules=[],this._ignorecase=e,this[cp]=!0,this._initCache()}_initCache(){this._cache={}}add(e){return this._added=!1,typeof e=="string"&&(e=e.split(/\r?\n/g)),lp(e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[cp]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(this._checkPattern(e)){let r=this._createRule(e.trim());r!==null&&(this._added=!0,this._rules.push(r))}}_checkPattern(e){return e&&typeof e=="string"&&e.indexOf("#")!==0&&e.trim()!==""}filter(e){return lp(e).filter(r=>this._filter(r))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_createRule(e){let r=e,n=!1;if(e[0]==="!"&&(n=!0,e=e.substring(1).trim()),e.length>0&&(e=Ku(e),e=GC(e),e.length>1&&e[0]==="/"&&(e=e.slice(1))),n&&(e="!"+e),e=e.trim(),e==="")return null;if(e=Ku(e),e[0]==="!"){if(e.length===1)return null;n=!0,e=e.substring(1)}else n=!1;return{origin:r,pattern:e,dirs:e.split(Re.sep),negative:n}}_filter(e){return e?e in this._cache?this._cache[e]:this._cache[e]=this._test(e):!1}_test(e){e=WC(e);let r=Ku(Re.dirname(e)),n=r.split(Re.sep),i=!1;return this._rules.forEach(s=>{let o=this._match(e,s);if(!o&&r!==".")if(s.dirs.includes("**"))for(let u=s.dirs.filter(a=>a!=="**").length;u<=n.length;u++)o=o||this._match(n.slice(0,u).join(Re.sep),s);else s.dirs.length<=n.length&&(o=this._match(n.slice(0,s.dirs.length).join(Re.sep),s));o&&(i=!s.negative)}),!i}_match(e,r){return this._compile(r).regexp.test(e)}_compile(e){if(e.regexp)return e;let r="^",n=Re.sep==="\\"?"\\\\":Re.sep;for(let i=0;i<e.pattern.length;i++){let s=e.pattern[i];if(s==="*")e.pattern[i+1]==="*"?(i++,e.pattern[i+1]===Re.sep&&i++,e.pattern[i+1]===void 0?r+=".*":r+=`(.*${n})?`):r+=`[^${n}]*`;else if(s==="?")r+=`[^${n}]`;else if(s==="."||s==="$")r+=`\\${s}`;else if(s==="\\"){if(Re.sep==="\\"){r+=n;continue}e.pattern[i+1]!==void 0?(r+="\\"+e.pattern[i+1],i++):r+="\\"}else r+=s}return r+="$",e.regexp=new RegExp(r,this._ignorecase?"i":""),e}}});var dp=C(Vi=>{"use strict";l();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AsyncProvider=void 0;var Zu=class{#e;constructor(e){this.#e=e}read(e,r){let n=[];this.#e.onError(i=>{VC(r,i)}),this.#e.onEntry(i=>{n.push(i)}),this.#e.onEnd(()=>{zC(r,n)}),this.#e.read(e)}};Vi.AsyncProvider=Zu;function VC(t,e){t(e)}function zC(t,e){t(null,e)}});var pp=C(zi=>{"use strict";l();Object.defineProperty(zi,"__esModule",{value:!0});zi.StreamProvider=void 0;var KC=require("stream"),Ju=class{#e;#t;constructor(e){this.#e=e,this.#t=this.#n()}read(e){return this.#e.onError(r=>{this.#t.emit("error",r)}),this.#e.onEntry(r=>{this.#t.push(r)}),this.#e.onEnd(()=>{this.#t.push(null)}),this.#e.read(e),this.#t}#n(){return new KC.Readable({objectMode:!0,read:()=>{},destroy:()=>{this.#e.isDestroyed||this.#e.destroy()}})}};zi.StreamProvider=Ju});var Dp=C(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.SyncProvider=void 0;var Qu=class{#e;constructor(e){this.#e=e}read(e){return this.#e.read(e)}};Ki.SyncProvider=Qu});var mp=C(Dt=>{"use strict";l();var YC=Dt&&Dt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ea=Dt&&Dt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YC(e,t,r)};Object.defineProperty(Dt,"__esModule",{value:!0});ea(dp(),Dt);ea(pp(),Dt);ea(Dp(),Dt)});var Ep=C(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.read=void 0;function XC(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){gp(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){ta(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){gp(r,s);return}ta(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ta(r,o)})})}Yi.read=XC;function gp(t,e){t(e)}function ta(t,e){t(null,e)}});var yp=C(Xi=>{"use strict";l();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.read=void 0;function ZC(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Xi.read=ZC});var xp=C(Ot=>{"use strict";l();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createFileSystemAdapter=Ot.FILE_SYSTEM_ADAPTER=void 0;var Zi=require("fs");Ot.FILE_SYSTEM_ADAPTER={lstat:Zi.lstat,stat:Zi.stat,lstatSync:Zi.lstatSync,statSync:Zi.statSync};function JC(t){return t===void 0?Ot.FILE_SYSTEM_ADAPTER:{...Ot.FILE_SYSTEM_ADAPTER,...t}}Ot.createFileSystemAdapter=JC});var na=C(Ji=>{"use strict";l();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Settings=void 0;var QC=xp(),ra=class{followSymbolicLink;fs;markSymbolicLink;throwErrorOnBrokenSymbolicLink;constructor(e={}){this.followSymbolicLink=e.followSymbolicLink??!0,this.fs=QC.createFileSystemAdapter(e.fs),this.markSymbolicLink=e.markSymbolicLink??!1,this.throwErrorOnBrokenSymbolicLink=e.throwErrorOnBrokenSymbolicLink??!0}};Ji.Settings=ra});var Cp=C(Or=>{"use strict";l();Object.defineProperty(Or,"__esModule",{value:!0});Or.statSync=Or.stat=void 0;var bp=Ep(),eF=yp(),_p=na();function tF(t,e,r){if(typeof e=="function"){bp.read(t,ia(),e);return}bp.read(t,ia(e),r)}Or.stat=tF;function rF(t,e){let r=ia(e);return eF.read(t,r)}Or.statSync=rF;function ia(t={}){return t instanceof _p.Settings?t:new _p.Settings(t)}});var Qi=C(Rt=>{"use strict";l();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Settings=Rt.statSync=Rt.stat=void 0;var Fp=Cp();Object.defineProperty(Rt,"stat",{enumerable:!0,get:function(){return Fp.stat}});Object.defineProperty(Rt,"statSync",{enumerable:!0,get:function(){return Fp.statSync}});var nF=na();Object.defineProperty(Rt,"Settings",{enumerable:!0,get:function(){return nF.Settings}})});var wp=C(Bt=>{"use strict";l();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.createFileSystemAdapter=Bt.FILE_SYSTEM_ADAPTER=void 0;var Rr=require("fs");Bt.FILE_SYSTEM_ADAPTER={lstat:Rr.lstat,stat:Rr.stat,lstatSync:Rr.lstatSync,statSync:Rr.statSync,readdir:Rr.readdir,readdirSync:Rr.readdirSync};function iF(t){return t===void 0?Bt.FILE_SYSTEM_ADAPTER:{...Bt.FILE_SYSTEM_ADAPTER,...t}}Bt.createFileSystemAdapter=iF});var oa=C(es=>{"use strict";l();Object.defineProperty(es,"__esModule",{value:!0});es.Settings=void 0;var sF=require("path"),oF=Qi(),uF=wp(),sa=class{followSymbolicLinks;fs;pathSegmentSeparator;stats;throwErrorOnBrokenSymbolicLink;fsStatSettings;constructor(e={}){this.followSymbolicLinks=e.followSymbolicLinks??!1,this.fs=uF.createFileSystemAdapter(e.fs),this.pathSegmentSeparator=e.pathSegmentSeparator??sF.sep,this.stats=e.stats??!1,this.throwErrorOnBrokenSymbolicLink=e.throwErrorOnBrokenSymbolicLink??!0,this.fsStatSettings=new oF.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}};es.Settings=sa});var Ap=C((aB,vp)=>{"use strict";l();var Sp;vp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Sp||(Sp=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Op=C((cB,Tp)=>{"use strict";l();Tp.exports=lF;var aF=Ap();function lF(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(a){function c(){e&&e(a,r),e=null}s?aF(c):c()}function u(a,c,f){r[a]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(a){t[a](function(c,f){u(a,c,f)})}):t.forEach(function(a,c){a(function(f,p){u(c,f,p)})}):o(null),s=!1}});var Bp=C(Br=>{"use strict";l();Object.defineProperty(Br,"__esModule",{value:!0});Br.DirentFromStats=Br.createDirentFromStats=void 0;var Rp=require("fs"),ua=Symbol("stats");function cF(t,e){return new gn(t,e)}Br.createDirentFromStats=cF;var gn=class extends Rp.Dirent{[ua];constructor(e,r){super(e,null),this[ua]=r}};Br.DirentFromStats=gn;for(let t of Reflect.ownKeys(Rp.Dirent.prototype)){let e=t;e!=="constructor"&&(gn.prototype[e]=function(){return this[ua][e]()})}});var aa=C(ts=>{"use strict";l();Object.defineProperty(ts,"__esModule",{value:!0});ts.fs=void 0;ts.fs=Bp()});var la=C(rs=>{"use strict";l();Object.defineProperty(rs,"__esModule",{value:!0});rs.joinPathSegments=void 0;function fF(t,e,r){return t.endsWith(r)?t+e:t+r+e}rs.joinPathSegments=fF});var Np=C(ns=>{"use strict";l();Object.defineProperty(ns,"__esModule",{value:!0});ns.read=void 0;var hF=Qi(),dF=Op(),pF=aa(),DF=la();function mF(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Ip(r,n);return}let s=i.map(u=>({dirent:u,name:u.name,path:DF.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.stats&&!e.followSymbolicLinks){Pp(r,s);return}let o=gF(s,e);dF(o,u=>{if(u!==null){Ip(r,u);return}Pp(r,s)})})}ns.read=mF;function gF(t,e){let r=[];for(let n of t){let i=EF(n,e);i!==void 0&&r.push(i)}return r}function EF(t,e){let r=yF(t,e);if(r!==void 0)return n=>{r((i,s)=>{if(i!==null){n(e.throwErrorOnBrokenSymbolicLink?i:null);return}e.stats&&(t.stats=s),e.followSymbolicLinks&&(t.dirent=pF.fs.createDirentFromStats(t.name,s)),n(null,t)})}}function yF(t,e){if(e.stats)return r=>{hF.stat(t.path,e.fsStatSettings,r)};if(e.followSymbolicLinks&&t.dirent.isSymbolicLink())return r=>{e.fs.stat(t.path,r)}}function Ip(t,e){t(e)}function Pp(t,e){t(null,e)}});var kp=C(is=>{"use strict";l();Object.defineProperty(is,"__esModule",{value:!0});is.read=void 0;var xF=Qi(),bF=aa(),_F=la();function CF(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:_F.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(e.stats&&(i.stats=xF.statSync(i.path,e.fsStatSettings)),e.followSymbolicLinks&&i.dirent.isSymbolicLink())try{let s=i.stats??e.fs.statSync(i.path);i.dirent=bF.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}is.read=CF});var Mp=C(Ir=>{"use strict";l();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.scandirSync=Ir.scandir=void 0;var Lp=oa(),$p=Np(),FF=kp();function wF(t,e,r){if(typeof e=="function"){$p.read(t,ca(),e);return}$p.read(t,ca(e),r)}Ir.scandir=wF;function SF(t,e){let r=ca(e);return FF.read(t,r)}Ir.scandirSync=SF;function ca(t={}){return t instanceof Lp.Settings?t:new Lp.Settings(t)}});var fa=C(It=>{"use strict";l();Object.defineProperty(It,"__esModule",{value:!0});It.Settings=It.scandirSync=It.scandir=void 0;var Hp=Mp();Object.defineProperty(It,"scandir",{enumerable:!0,get:function(){return Hp.scandir}});Object.defineProperty(It,"scandirSync",{enumerable:!0,get:function(){return Hp.scandirSync}});var vF=oa();Object.defineProperty(It,"Settings",{enumerable:!0,get:function(){return vF.Settings}})});var da=C(ss=>{"use strict";l();Object.defineProperty(ss,"__esModule",{value:!0});ss.Settings=void 0;var AF=require("path"),TF=fa(),ha=class{basePath;concurrency;deepFilter;entryFilter;errorFilter;pathSegmentSeparator;fsScandirSettings;constructor(e={}){this.basePath=e.basePath??void 0,this.concurrency=e.concurrency??Number.POSITIVE_INFINITY,this.deepFilter=e.deepFilter??null,this.entryFilter=e.entryFilter??null,this.errorFilter=e.errorFilter??null,this.pathSegmentSeparator=e.pathSegmentSeparator??AF.sep,this.fsScandirSettings=new TF.Settings({followSymbolicLinks:e.followSymbolicLinks,fs:e.fs,pathSegmentSeparator:this.pathSegmentSeparator,stats:e.stats,throwErrorOnBrokenSymbolicLink:e.throwErrorOnBrokenSymbolicLink})}};ss.Settings=ha});var jp=C((AB,Up)=>{"use strict";l();function OF(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Up.exports=OF});var Gp=C((OB,pa)=>{"use strict";l();var RF=jp();function qp(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=RF(BF),i=null,s=null,o=0,u=null,a={push:O,drain:Ge,saturated:Ge,pause:f,paused:!1,concurrency:r,running:c,resume:y,idle:_,length:p,getQueue:m,unshift:k,empty:Ge,kill:q,killAndDrain:j,error:T};return a;function c(){return o}function f(){a.paused=!0}function p(){for(var $=i,R=0;$;)$=$.next,R++;return R}function m(){for(var $=i,R=[];$;)R.push($.value),$=$.next;return R}function y(){if(a.paused){a.paused=!1;for(var $=0;$<a.concurrency;$++)o++,M()}}function _(){return o===0&&a.length()===0}function O($,R){var L=n.get();L.context=t,L.release=M,L.value=$,L.callback=R||Ge,L.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=L,s=L):(i=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function k($,R){var L=n.get();L.context=t,L.release=M,L.value=$,L.callback=R||Ge,o===a.concurrency||a.paused?i?(L.next=i,i=L):(i=L,s=L,a.saturated()):(o++,e.call(t,L.value,L.worked))}function M($){$&&n.release($);var R=i;R?a.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,e.call(t,R.value,R.worked),s===null&&a.empty()):--o===0&&a.drain()}function q(){i=null,s=null,a.drain=Ge}function j(){i=null,s=null,a.drain(),a.drain=Ge}function T($){u=$}}function Ge(){}function BF(){this.value=null,this.callback=Ge,this.next=null,this.release=Ge,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Ge,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function IF(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,p){e.call(this,f).then(function(m){p(null,m)},p)}var i=qp(t,n,r),s=i.push,o=i.unshift;return i.push=u,i.unshift=a,i.drained=c,i;function u(f){var p=new Promise(function(m,y){s(f,function(_,O){if(_){y(_);return}m(O)})});return p.catch(Ge),p}function a(f){var p=new Promise(function(m,y){o(f,function(_,O){if(_){y(_);return}m(O)})});return p.catch(Ge),p}function c(){if(i.idle())return new Promise(function(m){m()});var f=i.drain,p=new Promise(function(m){i.drain=function(){f(),m()}});return p}}pa.exports=qp;pa.exports.promise=IF});var Da=C(tt=>{"use strict";l();Object.defineProperty(tt,"__esModule",{value:!0});tt.joinPathSegments=tt.replacePathSegmentSeparator=tt.isAppliedFilter=tt.isFatalError=void 0;function PF(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}tt.isFatalError=PF;function NF(t,e){return t===null||t(e)}tt.isAppliedFilter=NF;function kF(t,e){return t.split(/[/\\]/).join(e)}tt.replacePathSegmentSeparator=kF;function LF(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}tt.joinPathSegments=LF});var Wp=C(os=>{"use strict";l();Object.defineProperty(os,"__esModule",{value:!0});os.AsyncReader=void 0;var $F=require("events"),MF=Gp(),En=Da(),ma=class{#e=new $F.EventEmitter;onEntry(e){this.#e.on("entry",e)}onError(e){this.#e.once("error",e)}onEnd(e){this.#e.once("end",e)}_emitEntry(e){this.#e.emit("entry",e)}_emitEnd(){this.#e.emit("end")}_emitError(e){this.#e.emit("error",e)}},ga=class extends ma{#e=!1;#t=!1;#n;#r;#i;constructor(e,r){super();let n=MF(this.#o.bind(this),r.concurrency);n.drain=()=>{this.#e||this._emitEnd()},this.#n=e,this.#r=r,this.#i=n}read(e){this.#e=!1,this.#t=!1;let r=En.replacePathSegmentSeparator(e,this.#r.pathSegmentSeparator);this.#s(r,this.#r.basePath)}get isDestroyed(){return this.#t}destroy(){this.#t||(this.#t=!0,this.#i.killAndDrain())}#s(e,r){this.#i.push({directory:e,base:r},n=>{n!==null&&this.#u(n)})}#o(e,r){this.#n.scandir(e.directory,this.#r.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this.#a(s,e.base);r(null,void 0)})}#u(e){this.#t||!En.isFatalError(this.#r,e)||(this.#e=!0,this.#t=!0,this._emitError(e))}#a(e,r){if(this.#t||this.#e)return;let n=e.path;r!==void 0&&(e.path=En.joinPathSegments(r,e.name,this.#r.pathSegmentSeparator)),En.isAppliedFilter(this.#r.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&En.isAppliedFilter(this.#r.deepFilter,e)&&this.#s(n,r===void 0?void 0:e.path)}};os.AsyncReader=ga});var Vp=C(us=>{"use strict";l();Object.defineProperty(us,"__esModule",{value:!0});us.SyncReader=void 0;var yn=Da(),Ea=class{#e;#t;#n=new Set;#r=[];constructor(e,r){this.#e=e,this.#t=r}read(e){let r=yn.replacePathSegmentSeparator(e,this.#t.pathSegmentSeparator);return this.#i(r,this.#t.basePath),this.#s(),this.#r}#i(e,r){this.#n.add({directory:e,base:r})}#s(){for(let e of this.#n.values())this.#o(e.directory,e.base)}#o(e,r){try{let n=this.#e.scandirSync(e,this.#t.fsScandirSettings);for(let i of n)this.#a(i,r)}catch(n){this.#u(n)}}#u(e){if(yn.isFatalError(this.#t,e))throw e}#a(e,r){let n=e.path;r!==void 0&&(e.path=yn.joinPathSegments(r,e.name,this.#t.pathSegmentSeparator)),yn.isAppliedFilter(this.#t.entryFilter,e)&&this.#l(e),e.dirent.isDirectory()&&yn.isAppliedFilter(this.#t.deepFilter,e)&&this.#i(n,r===void 0?void 0:e.path)}#l(e){this.#r.push(e)}};us.SyncReader=Ea});var Kp=C(Pt=>{"use strict";l();var HF=Pt&&Pt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),zp=Pt&&Pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HF(e,t,r)};Object.defineProperty(Pt,"__esModule",{value:!0});zp(Wp(),Pt);zp(Vp(),Pt)});var Xp=C(as=>{"use strict";l();Object.defineProperty(as,"__esModule",{value:!0});as.FileSystemAdapter=void 0;var Yp=fa(),ya=class{scandir=Yp.scandir;scandirSync=Yp.scandirSync};as.FileSystemAdapter=ya});var Jp=C(Nt=>{"use strict";l();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.walkStream=Nt.walkSync=Nt.walk=void 0;var xa=mp(),Zp=da(),ba=Kp(),UF=Xp(),_a=new UF.FileSystemAdapter;function jF(t,e,r){let n=typeof e=="function",i=n?e:r,s=n?ls():ls(e),o=new ba.AsyncReader(_a,s);new xa.AsyncProvider(o).read(t,i)}Nt.walk=jF;function qF(t,e){let r=ls(e),n=new ba.SyncReader(_a,r);return new xa.SyncProvider(n).read(t)}Nt.walkSync=qF;function GF(t,e){let r=ls(e),n=new ba.AsyncReader(_a,r);return new xa.StreamProvider(n).read(t)}Nt.walkStream=GF;function ls(t={}){return t instanceof Zp.Settings?t:new Zp.Settings(t)}});var Qp=C(rt=>{"use strict";l();Object.defineProperty(rt,"__esModule",{value:!0});rt.Settings=rt.walkSync=rt.walkStream=rt.walk=void 0;var Ca=Jp();Object.defineProperty(rt,"walk",{enumerable:!0,get:function(){return Ca.walk}});Object.defineProperty(rt,"walkStream",{enumerable:!0,get:function(){return Ca.walkStream}});Object.defineProperty(rt,"walkSync",{enumerable:!0,get:function(){return Ca.walkSync}});var WF=da();Object.defineProperty(rt,"Settings",{enumerable:!0,get:function(){return WF.Settings}})});var lD=C((VB,aD)=>{"use strict";l();function eD(t){return Array.isArray(t)?t:[t]}var iD="",tD=" ",Fa="\\",VF=/^\s+$/,zF=/(?:[^\\]|^)\\$/,KF=/^\\!/,YF=/^\\#/,XF=/\r?\n/g,ZF=/^\.*\/|^\.+$/,wa="/",sD="node-ignore";typeof Symbol<"u"&&(sD=Symbol.for("node-ignore"));var rD=sD,JF=(t,e,r)=>Object.defineProperty(t,e,{value:r}),QF=/([0-z])-([0-z])/g,oD=()=>!1,ew=t=>t.replace(QF,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:iD),tw=t=>{let{length:e}=t;return t.slice(0,e-e%2)},rw=[[/\\?\s+$/,t=>t.indexOf("\\")===0?tD:iD],[/\\\s/g,()=>tD],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return e+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Fa],[/\\\\/g,()=>Fa],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>e===Fa?`\\[${r}${tw(n)}${i}`:i==="]"&&n.length%2===0?`[${ew(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],nD=Object.create(null),nw=(t,e)=>{let r=nD[t];return r||(r=rw.reduce((n,i)=>n.replace(i[0],i[1].bind(t)),t),nD[t]=r),e?new RegExp(r,"i"):new RegExp(r)},Aa=t=>typeof t=="string",iw=t=>t&&Aa(t)&&!VF.test(t)&&!zF.test(t)&&t.indexOf("#")!==0,sw=t=>t.split(XF),Sa=class{constructor(e,r,n,i){this.origin=e,this.pattern=r,this.negative=n,this.regex=i}},ow=(t,e)=>{let r=t,n=!1;t.indexOf("!")===0&&(n=!0,t=t.substr(1)),t=t.replace(KF,"!").replace(YF,"#");let i=nw(t,e);return new Sa(r,t,n,i)},uw=(t,e)=>{throw new e(t)},mt=(t,e,r)=>Aa(t)?t?mt.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),uD=t=>ZF.test(t);mt.isNotRelative=uD;mt.convert=t=>t;var va=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:n=!1}={}){JF(this,rD,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[rD]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(iw(e)){let r=ow(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,eD(Aa(e)?sw(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(e)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(e,r,n,i){let s=e&&mt.convert(e);return mt(s,e,this._allowRelativePaths?oD:uw),this._t(s,r,n,i)}_t(e,r,n,i){if(e in r)return r[e];if(i||(i=e.split(wa)),i.pop(),!i.length)return r[e]=this._testOne(e,n);let s=this._t(i.join(wa)+wa,r,n,i);return r[e]=s.ignored?s:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return eD(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},cs=t=>new va(t),aw=t=>mt(t&&mt.convert(t),t,oD);cs.isPathValid=aw;cs.default=cs;aD.exports=cs;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");mt.convert=t;let e=/^[a-z]:\//i;mt.isNotRelative=r=>e.test(r)||uD(r)}});var FD=C((ak,CD)=>{"use strict";l();CD.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var RD=C((Ok,OD)=>{"use strict";l();var jw=require("crypto");OD.exports=function(){return jw.randomBytes(16)}});var PD=C((Bk,ID)=>{"use strict";l();var BD=[];for(Sn=0;Sn<256;++Sn)BD[Sn]=(Sn+256).toString(16).substr(1);var Sn;function qw(t,e){var r=e||0,n=BD;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")}ID.exports=qw});var LD=C((Pk,kD)=>{"use strict";l();var Gw=RD(),Ww=PD(),ND,Ba,Ia=0,Pa=0;function Vw(t,e,r){var n=e&&r||0,i=e||[];t=t||{};var s=t.node||ND,o=t.clockseq!==void 0?t.clockseq:Ba;if(s==null||o==null){var u=Gw();s==null&&(s=ND=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),o==null&&(o=Ba=(u[6]<<8|u[7])&16383)}var a=t.msecs!==void 0?t.msecs:new Date().getTime(),c=t.nsecs!==void 0?t.nsecs:Pa+1,f=a-Ia+(c-Pa)/1e4;if(f<0&&t.clockseq===void 0&&(o=o+1&16383),(f<0||a>Ia)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ia=a,Pa=c,Ba=o,a+=122192928e5;var p=((a&268435455)*1e4+c)%4294967296;i[n++]=p>>>24&255,i[n++]=p>>>16&255,i[n++]=p>>>8&255,i[n++]=p&255;var m=a/4294967296*1e4&268435455;i[n++]=m>>>8&255,i[n++]=m&255,i[n++]=m>>>24&15|16,i[n++]=m>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(var y=0;y<6;++y)i[n+y]=s[y];return e||Ww(i)}kD.exports=Vw});var tr=C((kk,$D)=>{"use strict";l();$D.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}});var em=C(($k,QD)=>{"use strict";l();var jD=require("fs"),Et=require("path"),qD=require("os"),GD=typeof __webpack_require__=="function"?__non_webpack_require__:require,zw=process.config&&process.config.variables||{},Kw=!!process.env.PREBUILDS_ONLY,MD=process.versions.modules,Na=Zw()?"electron":Xw()?"node-webkit":"node",ka=process.env.npm_config_arch||qD.arch(),La=process.env.npm_config_platform||qD.platform(),WD=process.env.LIBC||(Jw(La)?"musl":"glibc"),$a=process.env.ARM_VERSION||(ka==="arm64"?"8":zw.arm_version)||"",VD=(process.versions.uv||"").split(".")[0];QD.exports=it;function it(t){return GD(it.resolve(t))}it.resolve=it.path=function(t){t=Et.resolve(t||".");try{var e=GD(Et.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch{}if(!Kw){var r=HD(Et.join(t,"build/Release"),UD);if(r)return r;var n=HD(Et.join(t,"build/Debug"),UD);if(n)return n}var i=u(t);if(i)return i;var s=u(Et.dirname(process.execPath));if(s)return s;var o=["platform="+La,"arch="+ka,"runtime="+Na,"abi="+MD,"uv="+VD,$a?"armv="+$a:"","libc="+WD,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+o+`
27
27
  loaded from: `+t+`
28
- `);function u(a){var c=Ha(Et.join(a,"prebuilds")).map(JD),f=c.filter(QD($a,La)).sort(em)[0];if(f){var p=Et.join(a,"prebuilds",f.name),m=Ha(p).map(tm),y=m.filter(rm(ka,GD)),_=y.sort(nm(ka))[0];if(_)return Et.join(p,_.file)}}};function Ha(t){try{return zD.readdirSync(t)}catch{return[]}}function WD(t,e){var r=Ha(t).filter(e);return r[0]&&Et.join(t,r[0])}function VD(t){return/\.node$/.test(t)}function JD(t){var e=t.split("-");if(e.length===2){var r=e[0],n=e[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:t,platform:r,architectures:n}}}function QD(t,e){return function(r){return r==null||r.platform!==t?!1:r.architectures.includes(e)}}function em(t,e){return t.architectures.length-e.architectures.length}function tm(t){var e=t.split("."),r=e.pop(),n={file:t,specificity:0};if(r==="node"){for(var i=0;i<e.length;i++){var s=e[i];if(s==="node"||s==="electron"||s==="node-webkit")n.runtime=s;else if(s==="napi")n.napi=!0;else if(s.slice(0,3)==="abi")n.abi=s.slice(3);else if(s.slice(0,2)==="uv")n.uv=s.slice(2);else if(s.slice(0,4)==="armv")n.armv=s.slice(4);else if(s==="glibc"||s==="musl")n.libc=s;else continue;n.specificity++}return n}}function rm(t,e){return function(r){return!(r==null||r.runtime!==t&&!a2(r)||r.abi!==e&&!r.napi||r.uv&&r.uv!==ZD||r.armv&&r.armv!==Ma||r.libc&&r.libc!==XD)}}function a2(t){return t.runtime==="node"&&t.napi}function nm(t){return function(e,r){return e.runtime!==r.runtime?e.runtime===t?-1:1:e.abi!==r.abi?e.abi?-1:1:e.specificity!==r.specificity?e.specificity>r.specificity?-1:1:0}}function l2(){return!!(process.versions&&process.versions.nw)}function c2(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function f2(t){return t==="linux"&&zD.existsSync("/etc/alpine-release")}it.parseTags=tm;it.matchTags=rm;it.compareTags=nm;it.parseTuple=JD;it.matchTuple=QD;it.compareTuples=em});var ja=C((dL,Ua)=>{"use strict";l();typeof process.addon=="function"?Ua.exports=process.addon.bind(process):Ua.exports=sm()});var um=C((DL,om)=>{"use strict";l();var h2=(t,e,r,n,i)=>{for(var s=0;s<i;s++)r[n+s]=t[s]^e[s&3]},d2=(t,e)=>{let r=t.length;for(var n=0;n<r;n++)t[n]^=e[n&3]};om.exports={mask:h2,unmask:d2}});var am=C((gL,qa)=>{"use strict";l();try{qa.exports=ja()(__dirname)}catch{qa.exports=um()}});var On=C((yL,Ga)=>{"use strict";l();var{EMPTY_BUFFER:p2}=rr();function lm(t,e){if(t.length===0)return p2;if(t.length===1)return t[0];let r=Buffer.allocUnsafe(e),n=0;for(let i=0;i<t.length;i++){let s=t[i];r.set(s,n),n+=s.length}return n<e?r.slice(0,n):r}function cm(t,e,r,n,i){for(let s=0;s<i;s++)r[n+s]=t[s]^e[s&3]}function fm(t,e){let r=t.length;for(let n=0;n<r;n++)t[n]^=e[n&3]}function hm(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function Ss(t){if(Ss.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=Buffer.from(t):ArrayBuffer.isView(t)?e=Buffer.from(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Ss.readOnly=!1),e}try{let t=am(),e=t.BufferUtil||t;Ga.exports={concat:lm,mask(r,n,i,s,o){o<48?cm(r,n,i,s,o):e.mask(r,n,i,s,o)},toArrayBuffer:hm,toBuffer:Ss,unmask(r,n){r.length<32?fm(r,n):e.unmask(r,n)}}}catch{Ga.exports={concat:lm,mask:cm,toArrayBuffer:hm,toBuffer:Ss,unmask:fm}}});var Dm=C((bL,pm)=>{"use strict";l();var dm=Symbol("kDone"),Wa=Symbol("kRun"),Va=class{constructor(e){this[dm]=()=>{this.pending--,this[Wa]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Wa]()}[Wa](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[dm])}}};pm.exports=Va});var In=C((CL,ym)=>{"use strict";l();var Rn=require("zlib"),mm=On(),D2=Dm(),{kStatusCode:gm,NOOP:m2}=rr(),g2=Buffer.from([0,0,255,255]),Ts=Symbol("permessage-deflate"),yt=Symbol("total-length"),Bn=Symbol("callback"),$t=Symbol("buffers"),As=Symbol("error"),vs,za=class{constructor(e,r,n){if(this._maxPayload=n|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!vs){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vs=new D2(i)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Bn];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let r=this._options,n=e.find(i=>!(r.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>i.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(n.server_no_context_takeover=!0),r.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(n.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?n.client_max_window_bits=r.clientMaxWindowBits:(n.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let r=e[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(e){return e.forEach(r=>{Object.keys(r).forEach(n=>{let i=r[n];if(i.length>1)throw new Error(`Parameter "${n}" must have only a single value`);if(i=i[0],n==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else if(n==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else throw new Error(`Unknown parameter "${n}"`);r[n]=i})}),e}decompress(e,r,n){vs.add(i=>{this._decompress(e,r,(s,o)=>{i(),n(s,o)})})}compress(e,r,n){vs.add(i=>{this._compress(e,r,(s,o)=>{i(),n(s,o)})})}_decompress(e,r,n){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?Rn.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=Rn.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[Ts]=this,this._inflate[yt]=0,this._inflate[$t]=[],this._inflate.on("error",y2),this._inflate.on("data",Em)}this._inflate[Bn]=n,this._inflate.write(e),r&&this._inflate.write(g2),this._inflate.flush(()=>{let s=this._inflate[As];if(s){this._inflate.close(),this._inflate=null,n(s);return}let o=mm.concat(this._inflate[$t],this._inflate[yt]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[yt]=0,this._inflate[$t]=[],r&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),n(null,o)})}_compress(e,r,n){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?Rn.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=Rn.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[yt]=0,this._deflate[$t]=[],this._deflate.on("error",m2),this._deflate.on("data",E2)}this._deflate[Bn]=n,this._deflate.write(e),this._deflate.flush(Rn.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=mm.concat(this._deflate[$t],this._deflate[yt]);r&&(s=s.slice(0,s.length-4)),this._deflate[Bn]=null,this._deflate[yt]=0,this._deflate[$t]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),n(null,s)})}};ym.exports=za;function E2(t){this[$t].push(t),this[yt]+=t.length}function Em(t){if(this[yt]+=t.length,this[Ts]._maxPayload<1||this[yt]<=this[Ts]._maxPayload){this[$t].push(t);return}this[As]=new RangeError("Max payload size exceeded"),this[As].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[As][gm]=1009,this.removeListener("data",Em),this.reset()}function y2(t){this[Ts]._inflate=null,t[gm]=1007,this[Bn](t)}});var bm=C((wL,xm)=>{"use strict";l();function x2(t){let e=t.length,r=0;for(;r<e;)if(!(t[r]&128))r++;else if((t[r]&224)===192){if(r+1===e||(t[r+1]&192)!==128||(t[r]&254)===192)return!1;r+=2}else if((t[r]&240)===224){if(r+2>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}xm.exports=x2});var _m=C((vL,Ka)=>{"use strict";l();try{Ka.exports=ja()(__dirname)}catch{Ka.exports=bm()}});var Xa=C((TL,Ya)=>{"use strict";l();function Cm(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function Fm(t){let e=t.length,r=0;for(;r<e;)if(!(t[r]&128))r++;else if((t[r]&224)===192){if(r+1===e||(t[r+1]&192)!==128||(t[r]&254)===192)return!1;r+=2}else if((t[r]&240)===224){if(r+2>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}try{let t=_m();typeof t=="object"&&(t=t.Validation.isValidUTF8),Ya.exports={isValidStatusCode:Cm,isValidUTF8(e){return e.length<150?Fm(e):t(e)}}}catch{Ya.exports={isValidStatusCode:Cm,isValidUTF8:Fm}}});var el=C((RL,Om)=>{"use strict";l();var{Writable:b2}=require("stream"),wm=In(),{BINARY_TYPES:_2,EMPTY_BUFFER:C2,kStatusCode:F2,kWebSocket:w2}=rr(),{concat:Za,toArrayBuffer:S2,unmask:v2}=On(),{isValidStatusCode:A2,isValidUTF8:Sm}=Xa(),Pn=0,vm=1,Am=2,Tm=3,Ja=4,T2=5,Qa=class extends b2{constructor(e,r,n,i){super(),this._binaryType=e||_2[0],this[w2]=void 0,this._extensions=r||{},this._isServer=!!n,this._maxPayload=i|0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=Pn,this._loop=!1}_write(e,r,n){if(this._opcode===8&&this._state==Pn)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=n.slice(e),n.slice(0,e)}let r=Buffer.allocUnsafe(e);do{let n=this._buffers[0],i=r.length-e;e>=n.length?r.set(this._buffers.shift(),i):(r.set(new Uint8Array(n.buffer,n.byteOffset,e),i),this._buffers[0]=n.slice(e)),e-=n.length}while(e>0);return r}startLoop(e){let r;this._loop=!0;do switch(this._state){case Pn:r=this.getInfo();break;case vm:r=this.getPayloadLength16();break;case Am:r=this.getPayloadLength64();break;case Tm:this.getMask();break;case Ja:r=this.getData(e);break;default:this._loop=!1;return}while(this._loop);e(r)}getInfo(){if(this._bufferedBytes<2){this._loop=!1;return}let e=this.consume(2);if(e[0]&48)return this._loop=!1,ge(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");let r=(e[0]&64)===64;if(r&&!this._extensions[wm.extensionName])return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=(e[0]&128)===128,this._opcode=e[0]&15,this._payloadLength=e[1]&127,this._opcode===0){if(r)return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,ge(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented)return this._loop=!1,ge(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin)return this._loop=!1,ge(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(r)return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,ge(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}else return this._loop=!1,ge(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(e[1]&128)===128,this._isServer){if(!this._masked)return this._loop=!1,ge(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,ge(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(this._payloadLength===126)this._state=vm;else if(this._payloadLength===127)this._state=Am;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=!1;return}return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=!1;return}let e=this.consume(8),r=e.readUInt32BE(0);return r>Math.pow(2,53-32)-1?(this._loop=!1,ge(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=r*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,ge(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=Tm:this._state=Ja}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Ja}getData(e){let r=C2;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&v2(r,this._mask)}if(this._opcode>7)return this.controlMessage(r);if(this._compressed){this._state=T2,this.decompress(r,e);return}return r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage()}decompress(e,r){this._extensions[wm.extensionName].decompress(e,this._fin,(i,s)=>{if(i)return r(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return r(ge(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(s)}let o=this.dataMessage();if(o)return r(o);this.startLoop(r)})}dataMessage(){if(this._fin){let e=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=Za(r,e):this._binaryType==="arraybuffer"?n=S2(Za(r,e)):n=r,this.emit("message",n)}else{let n=Za(r,e);if(!Sm(n))return this._loop=!1,ge(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",n.toString())}}this._state=Pn}controlMessage(e){if(this._opcode===8)if(this._loop=!1,e.length===0)this.emit("conclude",1005,""),this.end();else{if(e.length===1)return ge(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{let r=e.readUInt16BE(0);if(!A2(r))return ge(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");let n=e.slice(2);if(!Sm(n))return ge(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",r,n.toString()),this.end()}}else this._opcode===9?this.emit("ping",e):this.emit("pong",e);this._state=Pn}};Om.exports=Qa;function ge(t,e,r,n,i){let s=new t(r?`Invalid WebSocket frame: ${e}`:e);return Error.captureStackTrace(s,ge),s.code=i,s[F2]=n,s}});var rl=C((NL,Im)=>{"use strict";l();var IL=require("net"),PL=require("tls"),{randomFillSync:O2}=require("crypto"),Rm=In(),{EMPTY_BUFFER:R2}=rr(),{isValidStatusCode:B2}=Xa(),{mask:Bm,toBuffer:xt}=On(),nr=Buffer.alloc(4),tl=class t{constructor(e,r){this._extensions=r||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,r){let n=r.mask&&r.readOnly,i=r.mask?6:2,s=e.length;e.length>=65536?(i+=8,s=127):e.length>125&&(i+=2,s=126);let o=Buffer.allocUnsafe(n?e.length+i:i);return o[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(o[0]|=64),o[1]=s,s===126?o.writeUInt16BE(e.length,2):s===127&&(o.writeUInt32BE(0,2),o.writeUInt32BE(e.length,6)),r.mask?(O2(nr,0,4),o[1]|=128,o[i-4]=nr[0],o[i-3]=nr[1],o[i-2]=nr[2],o[i-1]=nr[3],n?(Bm(e,nr,o,i,e.length),[o]):(Bm(e,nr,e,0,e.length),[o,e])):[o,e]}close(e,r,n,i){let s;if(e===void 0)s=R2;else{if(typeof e!="number"||!B2(e))throw new TypeError("First argument must be a valid error code number");if(r===void 0||r==="")s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(e,0),s.write(r,2)}}this._deflating?this.enqueue([this.doClose,s,n,i]):this.doClose(s,n,i)}doClose(e,r,n){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:r,readOnly:!1}),n)}ping(e,r,n){let i=xt(e);if(i.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,i,r,xt.readOnly,n]):this.doPing(i,r,xt.readOnly,n)}doPing(e,r,n,i){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:r,readOnly:n}),i)}pong(e,r,n){let i=xt(e);if(i.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,i,r,xt.readOnly,n]):this.doPong(i,r,xt.readOnly,n)}doPong(e,r,n,i){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:r,readOnly:n}),i)}send(e,r,n){let i=xt(e),s=this._extensions[Rm.extensionName],o=r.binary?2:1,u=r.compress;if(this._firstFragment?(this._firstFragment=!1,u&&s&&(u=i.length>=s._threshold),this._compress=u):(u=!1,o=0),r.fin&&(this._firstFragment=!0),s){let a={fin:r.fin,rsv1:u,opcode:o,mask:r.mask,readOnly:xt.readOnly};this._deflating?this.enqueue([this.dispatch,i,this._compress,a,n]):this.dispatch(i,this._compress,a,n)}else this.sendFrame(t.frame(i,{fin:r.fin,rsv1:!1,opcode:o,mask:r.mask,readOnly:xt.readOnly}),n)}dispatch(e,r,n,i){if(!r){this.sendFrame(t.frame(e,n),i);return}let s=this._extensions[Rm.extensionName];this._bufferedBytes+=e.length,this._deflating=!0,s.compress(e,n.fin,(o,u)=>{if(this._socket.destroyed){let a=new Error("The socket was closed while data was being compressed");typeof i=="function"&&i(a);for(let c=0;c<this._queue.length;c++){let f=this._queue[c][4];typeof f=="function"&&f(a)}return}this._bufferedBytes-=e.length,this._deflating=!1,n.readOnly=!1,this.sendFrame(t.frame(u,n),i),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[1].length,Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,this._queue.push(e)}sendFrame(e,r){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],r),this._socket.uncork()):this._socket.write(e[0],r)}};Im.exports=tl});var Nm=C((LL,Pm)=>{"use strict";l();var kr=class{constructor(e,r){this.target=r,this.type=e}},nl=class extends kr{constructor(e,r){super("message",r),this.data=e}},il=class extends kr{constructor(e,r,n){super("close",n),this.wasClean=n._closeFrameReceived&&n._closeFrameSent,this.reason=r,this.code=e}},sl=class extends kr{constructor(e){super("open",e)}},ol=class extends kr{constructor(e,r){super("error",r),this.message=e.message,this.error=e}},I2={addEventListener(t,e,r){if(typeof e!="function")return;function n(a){e.call(this,new nl(a,this))}function i(a,c){e.call(this,new il(a,c,this))}function s(a){e.call(this,new ol(a,this))}function o(){e.call(this,new sl(this))}let u=r&&r.once?"once":"on";t==="message"?(n._listener=e,this[u](t,n)):t==="close"?(i._listener=e,this[u](t,i)):t==="error"?(s._listener=e,this[u](t,s)):t==="open"?(o._listener=e,this[u](t,o)):this[u](t,e)},removeEventListener(t,e){let r=this.listeners(t);for(let n=0;n<r.length;n++)(r[n]===e||r[n]._listener===e)&&this.removeListener(t,r[n])}};Pm.exports=I2});var ul=C((ML,km)=>{"use strict";l();var Nn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function st(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function P2(t){let e=Object.create(null);if(t===void 0||t==="")return e;let r=Object.create(null),n=!1,i=!1,s=!1,o,u,a=-1,c=-1,f=0;for(;f<t.length;f++){let m=t.charCodeAt(f);if(o===void 0)if(c===-1&&Nn[m]===1)a===-1&&(a=f);else if(m===32||m===9)c===-1&&a!==-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let y=t.slice(a,c);m===44?(st(e,y,r),r=Object.create(null)):o=y,a=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(u===void 0)if(c===-1&&Nn[m]===1)a===-1&&(a=f);else if(m===32||m===9)c===-1&&a!==-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f),st(r,t.slice(a,c),!0),m===44&&(st(e,o,r),r=Object.create(null),o=void 0),a=c=-1}else if(m===61&&a!==-1&&c===-1)u=t.slice(a,f),a=c=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(i){if(Nn[m]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);a===-1?a=f:n||(n=!0),i=!1}else if(s)if(Nn[m]===1)a===-1&&(a=f);else if(m===34&&a!==-1)s=!1,c=f;else if(m===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(m===34&&t.charCodeAt(f-1)===61)s=!0;else if(c===-1&&Nn[m]===1)a===-1&&(a=f);else if(a!==-1&&(m===32||m===9))c===-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let y=t.slice(a,c);n&&(y=y.replace(/\\/g,""),n=!1),st(r,u,y),m===44&&(st(e,o,r),r=Object.create(null),o=void 0),u=void 0,a=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`)}if(a===-1||s)throw new SyntaxError("Unexpected end of input");c===-1&&(c=f);let p=t.slice(a,c);return o===void 0?st(e,p,r):(u===void 0?st(r,p,!0):n?st(r,u,p.replace(/\\/g,"")):st(r,u,p),st(e,o,r)),e}function N2(t){return Object.keys(t).map(e=>{let r=t[e];return Array.isArray(r)||(r=[r]),r.map(n=>[e].concat(Object.keys(n).map(i=>{let s=n[i];return Array.isArray(s)||(s=[s]),s.map(o=>o===!0?i:`${i}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}km.exports={format:N2,parse:P2}});var dl=C((jL,Vm)=>{"use strict";l();var k2=require("events"),L2=require("https"),$2=require("http"),Mm=require("net"),M2=require("tls"),{randomBytes:H2,createHash:U2}=require("crypto"),{Readable:UL}=require("stream"),{URL:al}=require("url"),Mt=In(),j2=el(),q2=rl(),{BINARY_TYPES:Lm,EMPTY_BUFFER:ll,GUID:G2,kStatusCode:W2,kWebSocket:Se,NOOP:Hm}=rr(),{addEventListener:V2,removeEventListener:z2}=Nm(),{format:K2,parse:Y2}=ul(),{toBuffer:X2}=On(),bt=["CONNECTING","OPEN","CLOSING","CLOSED"],cl=[8,13],Z2=30*1e3,fe=class t extends k2{constructor(e,r,n){super(),this._binaryType=Lm[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(r)?r=r.join(", "):typeof r=="object"&&r!==null&&(n=r,r=void 0),Um(this,e,r,n)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){Lm.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){}set onclose(e){}get onerror(){}set onerror(e){}get onopen(){}set onopen(e){}get onmessage(){}set onmessage(e){}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,r,n){let i=new j2(this.binaryType,this._extensions,this._isServer,n);this._sender=new q2(e,this._extensions),this._receiver=i,this._socket=e,i[Se]=this,e[Se]=this,i.on("conclude",eS),i.on("drain",tS),i.on("error",rS),i.on("message",nS),i.on("ping",iS),i.on("pong",sS),e.setTimeout(0),e.setNoDelay(),r.length>0&&e.unshift(r),e.on("close",qm),e.on("data",Os),e.on("end",Gm),e.on("error",Wm),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Mt.extensionName]&&this._extensions[Mt.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,r){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){let n="WebSocket was closed before the connection was established";return ke(this,this._req,n)}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=t.CLOSING,this._sender.close(e,r,!this._isServer,n=>{n||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),Z2)}}ping(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(n=e,e=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){hl(this,e,n);return}r===void 0&&(r=!this._isServer),this._sender.ping(e||ll,r,n)}pong(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(n=e,e=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){hl(this,e,n);return}r===void 0&&(r=!this._isServer),this._sender.pong(e||ll,r,n)}send(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(n=r,r={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){hl(this,e,n);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[Mt.extensionName]||(i.compress=!1),this._sender.send(e||ll,i,n)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){let e="WebSocket was closed before the connection was established";return ke(this,this._req,e)}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(fe,"CONNECTING",{enumerable:!0,value:bt.indexOf("CONNECTING")});Object.defineProperty(fe.prototype,"CONNECTING",{enumerable:!0,value:bt.indexOf("CONNECTING")});Object.defineProperty(fe,"OPEN",{enumerable:!0,value:bt.indexOf("OPEN")});Object.defineProperty(fe.prototype,"OPEN",{enumerable:!0,value:bt.indexOf("OPEN")});Object.defineProperty(fe,"CLOSING",{enumerable:!0,value:bt.indexOf("CLOSING")});Object.defineProperty(fe.prototype,"CLOSING",{enumerable:!0,value:bt.indexOf("CLOSING")});Object.defineProperty(fe,"CLOSED",{enumerable:!0,value:bt.indexOf("CLOSED")});Object.defineProperty(fe.prototype,"CLOSED",{enumerable:!0,value:bt.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(t=>{Object.defineProperty(fe.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(fe.prototype,`on${t}`,{enumerable:!0,get(){let e=this.listeners(t);for(let r=0;r<e.length;r++)if(e[r]._listener)return e[r]._listener},set(e){let r=this.listeners(t);for(let n=0;n<r.length;n++)r[n]._listener&&this.removeListener(t,r[n]);this.addEventListener(t,e)}})});fe.prototype.addEventListener=V2;fe.prototype.removeEventListener=z2;Vm.exports=fe;function Um(t,e,r,n){let i={protocolVersion:cl[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!cl.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${cl.join(", ")})`);let s;e instanceof al?(s=e,t._url=e.href):(s=new al(e),t._url=e);let o=s.protocol==="ws+unix:";if(!s.host&&(!o||!s.pathname)){let y=new Error(`Invalid URL: ${t.url}`);if(t._redirects===0)throw y;fl(t,y);return}let u=s.protocol==="wss:"||s.protocol==="https:",a=u?443:80,c=H2(16).toString("base64"),f=u?L2.get:$2.get,p;if(i.createConnection=u?Q2:J2,i.defaultPort=i.defaultPort||a,i.port=s.port||a,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket",...i.headers},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(p=new Mt(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=K2({[Mt.extensionName]:p.offer()})),r&&(i.headers["Sec-WebSocket-Protocol"]=r),i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),o){let y=i.path.split(":");i.socketPath=y[0],i.path=y[1]}if(i.followRedirects){if(t._redirects===0){t._originalUnixSocket=o,t._originalSecure=u,t._originalHostOrSocketPath=o?i.socketPath:s.host;let y=n&&n.headers;if(n={...n,headers:{}},y)for(let[_,O]of Object.entries(y))n.headers[_.toLowerCase()]=O}else{let y=o?t._originalUnixSocket?i.socketPath===t._originalHostOrSocketPath:!1:t._originalUnixSocket?!1:s.host===t._originalHostOrSocketPath;(!y||t._originalSecure&&!u)&&(delete i.headers.authorization,delete i.headers.cookie,y||delete i.headers.host,i.auth=void 0)}i.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64"))}let m=t._req=f(i);i.timeout&&m.on("timeout",()=>{ke(t,m,"Opening handshake has timed out")}),m.on("error",y=>{m===null||m.aborted||(m=t._req=null,fl(t,y))}),m.on("response",y=>{let _=y.headers.location,O=y.statusCode;if(_&&i.followRedirects&&O>=300&&O<400){if(++t._redirects>i.maxRedirects){ke(t,m,"Maximum redirects exceeded");return}m.abort();let k;try{k=new al(_,e)}catch(H){fl(t,H);return}Um(t,k,r,n)}else t.emit("unexpected-response",m,y)||ke(t,m,`Unexpected server response: ${y.statusCode}`)}),m.on("upgrade",(y,_,O)=>{if(t.emit("upgrade",y),t.readyState!==fe.CONNECTING)return;if(m=t._req=null,y.headers.upgrade.toLowerCase()!=="websocket"){ke(t,_,"Invalid Upgrade header");return}let k=U2("sha1").update(c+G2).digest("base64");if(y.headers["sec-websocket-accept"]!==k){ke(t,_,"Invalid Sec-WebSocket-Accept header");return}let H=y.headers["sec-websocket-protocol"],q=(r||"").split(/, */),j;if(!r&&H?j="Server sent a subprotocol but none was requested":r&&!H?j="Server sent no subprotocol":H&&!q.includes(H)&&(j="Server sent an invalid subprotocol"),j){ke(t,_,j);return}H&&(t._protocol=H);let T=y.headers["sec-websocket-extensions"];if(T!==void 0){if(!p){ke(t,_,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let $;try{$=Y2(T)}catch{ke(t,_,"Invalid Sec-WebSocket-Extensions header");return}let R=Object.keys($);if(R.length){if(R.length!==1||R[0]!==Mt.extensionName){ke(t,_,"Server indicated an extension that was not requested");return}try{p.accept($[Mt.extensionName])}catch{ke(t,_,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[Mt.extensionName]=p}}t.setSocket(_,O,i.maxPayload)})}function fl(t,e){t._readyState=fe.CLOSING,t.emit("error",e),t.emitClose()}function J2(t){return t.path=t.socketPath,Mm.connect(t)}function Q2(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=Mm.isIP(t.host)?"":t.host),M2.connect(t)}function ke(t,e,r){t._readyState=fe.CLOSING;let n=new Error(r);Error.captureStackTrace(n,ke),e.setHeader?(e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),e.once("abort",t.emitClose.bind(t)),t.emit("error",n)):(e.destroy(n),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function hl(t,e,r){if(e){let n=X2(e).length;t._socket?t._sender._bufferedBytes+=n:t._bufferedAmount+=n}if(r){let n=new Error(`WebSocket is not open: readyState ${t.readyState} (${bt[t.readyState]})`);r(n)}}function eS(t,e){let r=this[Se];r._closeFrameReceived=!0,r._closeMessage=e,r._closeCode=t,r._socket[Se]!==void 0&&(r._socket.removeListener("data",Os),process.nextTick(jm,r._socket),t===1005?r.close():r.close(t,e))}function tS(){this[Se]._socket.resume()}function rS(t){let e=this[Se];e._socket[Se]!==void 0&&(e._socket.removeListener("data",Os),process.nextTick(jm,e._socket),e.close(t[W2])),e.emit("error",t)}function $m(){this[Se].emitClose()}function nS(t){this[Se].emit("message",t)}function iS(t){let e=this[Se];e.pong(t,!e._isServer,Hm),e.emit("ping",t)}function sS(t){this[Se].emit("pong",t)}function jm(t){t.resume()}function qm(){let t=this[Se];this.removeListener("close",qm),this.removeListener("data",Os),this.removeListener("end",Gm),t._readyState=fe.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[Se]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",$m),t._receiver.on("finish",$m))}function Os(t){this[Se]._receiver.write(t)||this.pause()}function Gm(){let t=this[Se];t._readyState=fe.CLOSING,t._receiver.end(),this.end()}function Wm(){let t=this[Se];this.removeListener("error",Wm),this.on("error",Hm),t&&(t._readyState=fe.CLOSING,this.destroy())}});var Xm=C((GL,Ym)=>{"use strict";l();var{Duplex:oS}=require("stream");function zm(t){t.emit("close")}function uS(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Km(t){this.removeListener("error",Km),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function aS(t,e){let r=!0,n=!0;function i(){r&&t._socket.resume()}t.readyState===t.CONNECTING?t.once("open",function(){t._receiver.removeAllListeners("drain"),t._receiver.on("drain",i)}):(t._receiver.removeAllListeners("drain"),t._receiver.on("drain",i));let s=new oS({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(u){s.push(u)||(r=!1,t._socket.pause())}),t.once("error",function(u){s.destroyed||(n=!1,s.destroy(u))}),t.once("close",function(){s.destroyed||s.push(null)}),s._destroy=function(o,u){if(t.readyState===t.CLOSED){u(o),process.nextTick(zm,s);return}let a=!1;t.once("error",function(f){a=!0,u(f)}),t.once("close",function(){a||u(o),process.nextTick(zm,s)}),n&&t.terminate()},s._final=function(o){if(t.readyState===t.CONNECTING){t.once("open",function(){s._final(o)});return}t._socket!==null&&(t._socket._writableState.finished?(o(),s._readableState.endEmitted&&s.destroy()):(t._socket.once("finish",function(){o()}),t.close()))},s._read=function(){(t.readyState===t.OPEN||t.readyState===t.CLOSING)&&!r&&(r=!0,t._receiver._writableState.needDrain||t._socket.resume())},s._write=function(o,u,a){if(t.readyState===t.CONNECTING){t.once("open",function(){s._write(o,u,a)});return}t.send(o,a)},s.on("end",uS),s.on("error",Km),s}Ym.exports=aS});var t0=C((YL,e0)=>{"use strict";l();var lS=require("events"),Rs=require("http"),VL=require("https"),zL=require("net"),KL=require("tls"),{createHash:cS}=require("crypto"),ir=In(),fS=dl(),{format:hS,parse:dS}=ul(),{GUID:pS,kWebSocket:DS}=rr(),mS=/^[+/0-9A-Za-z]{22}==$/,Zm=0,Jm=1,Qm=2,Dl=class extends lS{constructor(e,r){if(super(),e={maxPayload:100*1024*1024,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=Rs.createServer((n,i)=>{let s=Rs.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s)}),this._server.listen(e.port,e.host,e.backlog,r)):e.server&&(this._server=e.server),this._server){let n=this.emit.bind(this,"connection");this._removeListeners=gS(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,o)=>{this.handleUpgrade(i,s,o,n)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e,this._state=Zm}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(e&&this.once("close",e),this._state===Qm){process.nextTick(pl,this);return}if(this._state===Jm)return;if(this._state=Jm,this.clients)for(let n of this.clients)n.terminate();let r=this._server;if(r&&(this._removeListeners(),this._removeListeners=this._server=null,this.options.port!=null)){r.close(pl.bind(void 0,this));return}process.nextTick(pl,this)}shouldHandle(e){if(this.options.path){let r=e.url.indexOf("?");if((r!==-1?e.url.slice(0,r):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,r,n,i){r.on("error",ml);let s=e.headers["sec-websocket-key"]!==void 0?e.headers["sec-websocket-key"].trim():!1,o=+e.headers["sec-websocket-version"],u={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!s||!mS.test(s)||o!==8&&o!==13||!this.shouldHandle(e))return kn(r,400);if(this.options.perMessageDeflate){let a=new ir(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let c=dS(e.headers["sec-websocket-extensions"]);c[ir.extensionName]&&(a.accept(c[ir.extensionName]),u[ir.extensionName]=a)}catch{return kn(r,400)}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(c,f,p,m)=>{if(!c)return kn(r,f||401,p,m);this.completeUpgrade(s,u,e,r,n,i)});return}if(!this.options.verifyClient(a))return kn(r,401)}this.completeUpgrade(s,u,e,r,n,i)}completeUpgrade(e,r,n,i,s,o){if(!i.readable||!i.writable)return i.destroy();if(i[DS])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Zm)return kn(i,503);let a=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${cS("sha1").update(e+pS).digest("base64")}`],c=new fS(null),f=n.headers["sec-websocket-protocol"];if(f&&(f=f.split(",").map(ES),this.options.handleProtocols?f=this.options.handleProtocols(f,n):f=f[0],f&&(a.push(`Sec-WebSocket-Protocol: ${f}`),c._protocol=f)),r[ir.extensionName]){let p=r[ir.extensionName].params,m=hS({[ir.extensionName]:[p]});a.push(`Sec-WebSocket-Extensions: ${m}`),c._extensions=r}this.emit("headers",a,n),i.write(a.concat(`\r
28
+ `);function u(a){var c=Ma(Et.join(a,"prebuilds")).map(zD),f=c.filter(KD(La,ka)).sort(YD)[0];if(f){var p=Et.join(a,"prebuilds",f.name),m=Ma(p).map(XD),y=m.filter(ZD(Na,MD)),_=y.sort(JD(Na))[0];if(_)return Et.join(p,_.file)}}};function Ma(t){try{return jD.readdirSync(t)}catch{return[]}}function HD(t,e){var r=Ma(t).filter(e);return r[0]&&Et.join(t,r[0])}function UD(t){return/\.node$/.test(t)}function zD(t){var e=t.split("-");if(e.length===2){var r=e[0],n=e[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:t,platform:r,architectures:n}}}function KD(t,e){return function(r){return r==null||r.platform!==t?!1:r.architectures.includes(e)}}function YD(t,e){return t.architectures.length-e.architectures.length}function XD(t){var e=t.split("."),r=e.pop(),n={file:t,specificity:0};if(r==="node"){for(var i=0;i<e.length;i++){var s=e[i];if(s==="node"||s==="electron"||s==="node-webkit")n.runtime=s;else if(s==="napi")n.napi=!0;else if(s.slice(0,3)==="abi")n.abi=s.slice(3);else if(s.slice(0,2)==="uv")n.uv=s.slice(2);else if(s.slice(0,4)==="armv")n.armv=s.slice(4);else if(s==="glibc"||s==="musl")n.libc=s;else continue;n.specificity++}return n}}function ZD(t,e){return function(r){return!(r==null||r.runtime!==t&&!Yw(r)||r.abi!==e&&!r.napi||r.uv&&r.uv!==VD||r.armv&&r.armv!==$a||r.libc&&r.libc!==WD)}}function Yw(t){return t.runtime==="node"&&t.napi}function JD(t){return function(e,r){return e.runtime!==r.runtime?e.runtime===t?-1:1:e.abi!==r.abi?e.abi?-1:1:e.specificity!==r.specificity?e.specificity>r.specificity?-1:1:0}}function Xw(){return!!(process.versions&&process.versions.nw)}function Zw(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function Jw(t){return t==="linux"&&jD.existsSync("/etc/alpine-release")}it.parseTags=XD;it.matchTags=ZD;it.compareTags=JD;it.parseTuple=zD;it.matchTuple=KD;it.compareTuples=YD});var Ua=C((Hk,Ha)=>{"use strict";l();typeof process.addon=="function"?Ha.exports=process.addon.bind(process):Ha.exports=em()});var rm=C((jk,tm)=>{"use strict";l();var Qw=(t,e,r,n,i)=>{for(var s=0;s<i;s++)r[n+s]=t[s]^e[s&3]},eS=(t,e)=>{let r=t.length;for(var n=0;n<r;n++)t[n]^=e[n&3]};tm.exports={mask:Qw,unmask:eS}});var nm=C((Gk,ja)=>{"use strict";l();try{ja.exports=Ua()(__dirname)}catch{ja.exports=rm()}});var vn=C((Vk,qa)=>{"use strict";l();var{EMPTY_BUFFER:tS}=tr();function im(t,e){if(t.length===0)return tS;if(t.length===1)return t[0];let r=Buffer.allocUnsafe(e),n=0;for(let i=0;i<t.length;i++){let s=t[i];r.set(s,n),n+=s.length}return n<e?r.slice(0,n):r}function sm(t,e,r,n,i){for(let s=0;s<i;s++)r[n+s]=t[s]^e[s&3]}function om(t,e){let r=t.length;for(let n=0;n<r;n++)t[n]^=e[n&3]}function um(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function Cs(t){if(Cs.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=Buffer.from(t):ArrayBuffer.isView(t)?e=Buffer.from(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Cs.readOnly=!1),e}try{let t=nm(),e=t.BufferUtil||t;qa.exports={concat:im,mask(r,n,i,s,o){o<48?sm(r,n,i,s,o):e.mask(r,n,i,s,o)},toArrayBuffer:um,toBuffer:Cs,unmask(r,n){r.length<32?om(r,n):e.unmask(r,n)}}}catch{qa.exports={concat:im,mask:sm,toArrayBuffer:um,toBuffer:Cs,unmask:om}}});var cm=C((Kk,lm)=>{"use strict";l();var am=Symbol("kDone"),Ga=Symbol("kRun"),Wa=class{constructor(e){this[am]=()=>{this.pending--,this[Ga]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Ga]()}[Ga](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[am])}}};lm.exports=Wa});var On=C((Xk,pm)=>{"use strict";l();var An=require("zlib"),fm=vn(),rS=cm(),{kStatusCode:hm,NOOP:nS}=tr(),iS=Buffer.from([0,0,255,255]),Ss=Symbol("permessage-deflate"),yt=Symbol("total-length"),Tn=Symbol("callback"),Lt=Symbol("buffers"),ws=Symbol("error"),Fs,Va=class{constructor(e,r,n){if(this._maxPayload=n|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!Fs){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Fs=new rS(i)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Tn];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let r=this._options,n=e.find(i=>!(r.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>i.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(n.server_no_context_takeover=!0),r.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(n.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?n.client_max_window_bits=r.clientMaxWindowBits:(n.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let r=e[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(e){return e.forEach(r=>{Object.keys(r).forEach(n=>{let i=r[n];if(i.length>1)throw new Error(`Parameter "${n}" must have only a single value`);if(i=i[0],n==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else if(n==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else throw new Error(`Unknown parameter "${n}"`);r[n]=i})}),e}decompress(e,r,n){Fs.add(i=>{this._decompress(e,r,(s,o)=>{i(),n(s,o)})})}compress(e,r,n){Fs.add(i=>{this._compress(e,r,(s,o)=>{i(),n(s,o)})})}_decompress(e,r,n){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?An.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=An.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[Ss]=this,this._inflate[yt]=0,this._inflate[Lt]=[],this._inflate.on("error",oS),this._inflate.on("data",dm)}this._inflate[Tn]=n,this._inflate.write(e),r&&this._inflate.write(iS),this._inflate.flush(()=>{let s=this._inflate[ws];if(s){this._inflate.close(),this._inflate=null,n(s);return}let o=fm.concat(this._inflate[Lt],this._inflate[yt]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[yt]=0,this._inflate[Lt]=[],r&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),n(null,o)})}_compress(e,r,n){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,o=typeof this.params[s]!="number"?An.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=An.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[yt]=0,this._deflate[Lt]=[],this._deflate.on("error",nS),this._deflate.on("data",sS)}this._deflate[Tn]=n,this._deflate.write(e),this._deflate.flush(An.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=fm.concat(this._deflate[Lt],this._deflate[yt]);r&&(s=s.slice(0,s.length-4)),this._deflate[Tn]=null,this._deflate[yt]=0,this._deflate[Lt]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),n(null,s)})}};pm.exports=Va;function sS(t){this[Lt].push(t),this[yt]+=t.length}function dm(t){if(this[yt]+=t.length,this[Ss]._maxPayload<1||this[yt]<=this[Ss]._maxPayload){this[Lt].push(t);return}this[ws]=new RangeError("Max payload size exceeded"),this[ws].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[ws][hm]=1009,this.removeListener("data",dm),this.reset()}function oS(t){this[Ss]._inflate=null,t[hm]=1007,this[Tn](t)}});var mm=C((Jk,Dm)=>{"use strict";l();function uS(t){let e=t.length,r=0;for(;r<e;)if(!(t[r]&128))r++;else if((t[r]&224)===192){if(r+1===e||(t[r+1]&192)!==128||(t[r]&254)===192)return!1;r+=2}else if((t[r]&240)===224){if(r+2>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}Dm.exports=uS});var gm=C((eL,za)=>{"use strict";l();try{za.exports=Ua()(__dirname)}catch{za.exports=mm()}});var Ya=C((rL,Ka)=>{"use strict";l();function Em(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function ym(t){let e=t.length,r=0;for(;r<e;)if(!(t[r]&128))r++;else if((t[r]&224)===192){if(r+1===e||(t[r+1]&192)!==128||(t[r]&254)===192)return!1;r+=2}else if((t[r]&240)===224){if(r+2>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}try{let t=gm();typeof t=="object"&&(t=t.Validation.isValidUTF8),Ka.exports={isValidStatusCode:Em,isValidUTF8(e){return e.length<150?ym(e):t(e)}}}catch{Ka.exports={isValidStatusCode:Em,isValidUTF8:ym}}});var Qa=C((iL,wm)=>{"use strict";l();var{Writable:aS}=require("stream"),xm=On(),{BINARY_TYPES:lS,EMPTY_BUFFER:cS,kStatusCode:fS,kWebSocket:hS}=tr(),{concat:Xa,toArrayBuffer:dS,unmask:pS}=vn(),{isValidStatusCode:DS,isValidUTF8:bm}=Ya(),Rn=0,_m=1,Cm=2,Fm=3,Za=4,mS=5,Ja=class extends aS{constructor(e,r,n,i){super(),this._binaryType=e||lS[0],this[hS]=void 0,this._extensions=r||{},this._isServer=!!n,this._maxPayload=i|0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=Rn,this._loop=!1}_write(e,r,n){if(this._opcode===8&&this._state==Rn)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=n.slice(e),n.slice(0,e)}let r=Buffer.allocUnsafe(e);do{let n=this._buffers[0],i=r.length-e;e>=n.length?r.set(this._buffers.shift(),i):(r.set(new Uint8Array(n.buffer,n.byteOffset,e),i),this._buffers[0]=n.slice(e)),e-=n.length}while(e>0);return r}startLoop(e){let r;this._loop=!0;do switch(this._state){case Rn:r=this.getInfo();break;case _m:r=this.getPayloadLength16();break;case Cm:r=this.getPayloadLength64();break;case Fm:this.getMask();break;case Za:r=this.getData(e);break;default:this._loop=!1;return}while(this._loop);e(r)}getInfo(){if(this._bufferedBytes<2){this._loop=!1;return}let e=this.consume(2);if(e[0]&48)return this._loop=!1,ge(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");let r=(e[0]&64)===64;if(r&&!this._extensions[xm.extensionName])return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=(e[0]&128)===128,this._opcode=e[0]&15,this._payloadLength=e[1]&127,this._opcode===0){if(r)return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,ge(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented)return this._loop=!1,ge(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin)return this._loop=!1,ge(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(r)return this._loop=!1,ge(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,ge(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}else return this._loop=!1,ge(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(e[1]&128)===128,this._isServer){if(!this._masked)return this._loop=!1,ge(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,ge(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(this._payloadLength===126)this._state=_m;else if(this._payloadLength===127)this._state=Cm;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=!1;return}return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=!1;return}let e=this.consume(8),r=e.readUInt32BE(0);return r>Math.pow(2,53-32)-1?(this._loop=!1,ge(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=r*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,ge(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=Fm:this._state=Za}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Za}getData(e){let r=cS;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&pS(r,this._mask)}if(this._opcode>7)return this.controlMessage(r);if(this._compressed){this._state=mS,this.decompress(r,e);return}return r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage()}decompress(e,r){this._extensions[xm.extensionName].decompress(e,this._fin,(i,s)=>{if(i)return r(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return r(ge(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(s)}let o=this.dataMessage();if(o)return r(o);this.startLoop(r)})}dataMessage(){if(this._fin){let e=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=Xa(r,e):this._binaryType==="arraybuffer"?n=dS(Xa(r,e)):n=r,this.emit("message",n)}else{let n=Xa(r,e);if(!bm(n))return this._loop=!1,ge(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",n.toString())}}this._state=Rn}controlMessage(e){if(this._opcode===8)if(this._loop=!1,e.length===0)this.emit("conclude",1005,""),this.end();else{if(e.length===1)return ge(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{let r=e.readUInt16BE(0);if(!DS(r))return ge(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");let n=e.slice(2);if(!bm(n))return ge(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",r,n.toString()),this.end()}}else this._opcode===9?this.emit("ping",e):this.emit("pong",e);this._state=Rn}};wm.exports=Ja;function ge(t,e,r,n,i){let s=new t(r?`Invalid WebSocket frame: ${e}`:e);return Error.captureStackTrace(s,ge),s.code=i,s[fS]=n,s}});var tl=C((aL,Am)=>{"use strict";l();var oL=require("net"),uL=require("tls"),{randomFillSync:gS}=require("crypto"),Sm=On(),{EMPTY_BUFFER:ES}=tr(),{isValidStatusCode:yS}=Ya(),{mask:vm,toBuffer:xt}=vn(),rr=Buffer.alloc(4),el=class t{constructor(e,r){this._extensions=r||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,r){let n=r.mask&&r.readOnly,i=r.mask?6:2,s=e.length;e.length>=65536?(i+=8,s=127):e.length>125&&(i+=2,s=126);let o=Buffer.allocUnsafe(n?e.length+i:i);return o[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(o[0]|=64),o[1]=s,s===126?o.writeUInt16BE(e.length,2):s===127&&(o.writeUInt32BE(0,2),o.writeUInt32BE(e.length,6)),r.mask?(gS(rr,0,4),o[1]|=128,o[i-4]=rr[0],o[i-3]=rr[1],o[i-2]=rr[2],o[i-1]=rr[3],n?(vm(e,rr,o,i,e.length),[o]):(vm(e,rr,e,0,e.length),[o,e])):[o,e]}close(e,r,n,i){let s;if(e===void 0)s=ES;else{if(typeof e!="number"||!yS(e))throw new TypeError("First argument must be a valid error code number");if(r===void 0||r==="")s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(e,0),s.write(r,2)}}this._deflating?this.enqueue([this.doClose,s,n,i]):this.doClose(s,n,i)}doClose(e,r,n){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:r,readOnly:!1}),n)}ping(e,r,n){let i=xt(e);if(i.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,i,r,xt.readOnly,n]):this.doPing(i,r,xt.readOnly,n)}doPing(e,r,n,i){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:r,readOnly:n}),i)}pong(e,r,n){let i=xt(e);if(i.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,i,r,xt.readOnly,n]):this.doPong(i,r,xt.readOnly,n)}doPong(e,r,n,i){this.sendFrame(t.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:r,readOnly:n}),i)}send(e,r,n){let i=xt(e),s=this._extensions[Sm.extensionName],o=r.binary?2:1,u=r.compress;if(this._firstFragment?(this._firstFragment=!1,u&&s&&(u=i.length>=s._threshold),this._compress=u):(u=!1,o=0),r.fin&&(this._firstFragment=!0),s){let a={fin:r.fin,rsv1:u,opcode:o,mask:r.mask,readOnly:xt.readOnly};this._deflating?this.enqueue([this.dispatch,i,this._compress,a,n]):this.dispatch(i,this._compress,a,n)}else this.sendFrame(t.frame(i,{fin:r.fin,rsv1:!1,opcode:o,mask:r.mask,readOnly:xt.readOnly}),n)}dispatch(e,r,n,i){if(!r){this.sendFrame(t.frame(e,n),i);return}let s=this._extensions[Sm.extensionName];this._bufferedBytes+=e.length,this._deflating=!0,s.compress(e,n.fin,(o,u)=>{if(this._socket.destroyed){let a=new Error("The socket was closed while data was being compressed");typeof i=="function"&&i(a);for(let c=0;c<this._queue.length;c++){let f=this._queue[c][4];typeof f=="function"&&f(a)}return}this._bufferedBytes-=e.length,this._deflating=!1,n.readOnly=!1,this.sendFrame(t.frame(u,n),i),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[1].length,Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,this._queue.push(e)}sendFrame(e,r){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],r),this._socket.uncork()):this._socket.write(e[0],r)}};Am.exports=el});var Om=C((cL,Tm)=>{"use strict";l();var kr=class{constructor(e,r){this.target=r,this.type=e}},rl=class extends kr{constructor(e,r){super("message",r),this.data=e}},nl=class extends kr{constructor(e,r,n){super("close",n),this.wasClean=n._closeFrameReceived&&n._closeFrameSent,this.reason=r,this.code=e}},il=class extends kr{constructor(e){super("open",e)}},sl=class extends kr{constructor(e,r){super("error",r),this.message=e.message,this.error=e}},xS={addEventListener(t,e,r){if(typeof e!="function")return;function n(a){e.call(this,new rl(a,this))}function i(a,c){e.call(this,new nl(a,c,this))}function s(a){e.call(this,new sl(a,this))}function o(){e.call(this,new il(this))}let u=r&&r.once?"once":"on";t==="message"?(n._listener=e,this[u](t,n)):t==="close"?(i._listener=e,this[u](t,i)):t==="error"?(s._listener=e,this[u](t,s)):t==="open"?(o._listener=e,this[u](t,o)):this[u](t,e)},removeEventListener(t,e){let r=this.listeners(t);for(let n=0;n<r.length;n++)(r[n]===e||r[n]._listener===e)&&this.removeListener(t,r[n])}};Tm.exports=xS});var ol=C((hL,Rm)=>{"use strict";l();var Bn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function st(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function bS(t){let e=Object.create(null);if(t===void 0||t==="")return e;let r=Object.create(null),n=!1,i=!1,s=!1,o,u,a=-1,c=-1,f=0;for(;f<t.length;f++){let m=t.charCodeAt(f);if(o===void 0)if(c===-1&&Bn[m]===1)a===-1&&(a=f);else if(m===32||m===9)c===-1&&a!==-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let y=t.slice(a,c);m===44?(st(e,y,r),r=Object.create(null)):o=y,a=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(u===void 0)if(c===-1&&Bn[m]===1)a===-1&&(a=f);else if(m===32||m===9)c===-1&&a!==-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f),st(r,t.slice(a,c),!0),m===44&&(st(e,o,r),r=Object.create(null),o=void 0),a=c=-1}else if(m===61&&a!==-1&&c===-1)u=t.slice(a,f),a=c=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(i){if(Bn[m]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);a===-1?a=f:n||(n=!0),i=!1}else if(s)if(Bn[m]===1)a===-1&&(a=f);else if(m===34&&a!==-1)s=!1,c=f;else if(m===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(m===34&&t.charCodeAt(f-1)===61)s=!0;else if(c===-1&&Bn[m]===1)a===-1&&(a=f);else if(a!==-1&&(m===32||m===9))c===-1&&(c=f);else if(m===59||m===44){if(a===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let y=t.slice(a,c);n&&(y=y.replace(/\\/g,""),n=!1),st(r,u,y),m===44&&(st(e,o,r),r=Object.create(null),o=void 0),u=void 0,a=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`)}if(a===-1||s)throw new SyntaxError("Unexpected end of input");c===-1&&(c=f);let p=t.slice(a,c);return o===void 0?st(e,p,r):(u===void 0?st(r,p,!0):n?st(r,u,p.replace(/\\/g,"")):st(r,u,p),st(e,o,r)),e}function _S(t){return Object.keys(t).map(e=>{let r=t[e];return Array.isArray(r)||(r=[r]),r.map(n=>[e].concat(Object.keys(n).map(i=>{let s=n[i];return Array.isArray(s)||(s=[s]),s.map(o=>o===!0?i:`${i}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Rm.exports={format:_S,parse:bS}});var hl=C((DL,Um)=>{"use strict";l();var CS=require("events"),FS=require("https"),wS=require("http"),Pm=require("net"),SS=require("tls"),{randomBytes:vS,createHash:AS}=require("crypto"),{Readable:pL}=require("stream"),{URL:ul}=require("url"),$t=On(),TS=Qa(),OS=tl(),{BINARY_TYPES:Bm,EMPTY_BUFFER:al,GUID:RS,kStatusCode:BS,kWebSocket:Se,NOOP:Nm}=tr(),{addEventListener:IS,removeEventListener:PS}=Om(),{format:NS,parse:kS}=ol(),{toBuffer:LS}=vn(),bt=["CONNECTING","OPEN","CLOSING","CLOSED"],ll=[8,13],$S=30*1e3,fe=class t extends CS{constructor(e,r,n){super(),this._binaryType=Bm[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(r)?r=r.join(", "):typeof r=="object"&&r!==null&&(n=r,r=void 0),km(this,e,r,n)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){Bm.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){}set onclose(e){}get onerror(){}set onerror(e){}get onopen(){}set onopen(e){}get onmessage(){}set onmessage(e){}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,r,n){let i=new TS(this.binaryType,this._extensions,this._isServer,n);this._sender=new OS(e,this._extensions),this._receiver=i,this._socket=e,i[Se]=this,e[Se]=this,i.on("conclude",US),i.on("drain",jS),i.on("error",qS),i.on("message",GS),i.on("ping",WS),i.on("pong",VS),e.setTimeout(0),e.setNoDelay(),r.length>0&&e.unshift(r),e.on("close",$m),e.on("data",vs),e.on("end",Mm),e.on("error",Hm),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[$t.extensionName]&&this._extensions[$t.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,r){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){let n="WebSocket was closed before the connection was established";return ke(this,this._req,n)}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=t.CLOSING,this._sender.close(e,r,!this._isServer,n=>{n||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),$S)}}ping(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(n=e,e=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){fl(this,e,n);return}r===void 0&&(r=!this._isServer),this._sender.ping(e||al,r,n)}pong(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(n=e,e=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){fl(this,e,n);return}r===void 0&&(r=!this._isServer),this._sender.pong(e||al,r,n)}send(e,r,n){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(n=r,r={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){fl(this,e,n);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[$t.extensionName]||(i.compress=!1),this._sender.send(e||al,i,n)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){let e="WebSocket was closed before the connection was established";return ke(this,this._req,e)}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(fe,"CONNECTING",{enumerable:!0,value:bt.indexOf("CONNECTING")});Object.defineProperty(fe.prototype,"CONNECTING",{enumerable:!0,value:bt.indexOf("CONNECTING")});Object.defineProperty(fe,"OPEN",{enumerable:!0,value:bt.indexOf("OPEN")});Object.defineProperty(fe.prototype,"OPEN",{enumerable:!0,value:bt.indexOf("OPEN")});Object.defineProperty(fe,"CLOSING",{enumerable:!0,value:bt.indexOf("CLOSING")});Object.defineProperty(fe.prototype,"CLOSING",{enumerable:!0,value:bt.indexOf("CLOSING")});Object.defineProperty(fe,"CLOSED",{enumerable:!0,value:bt.indexOf("CLOSED")});Object.defineProperty(fe.prototype,"CLOSED",{enumerable:!0,value:bt.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(t=>{Object.defineProperty(fe.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(fe.prototype,`on${t}`,{enumerable:!0,get(){let e=this.listeners(t);for(let r=0;r<e.length;r++)if(e[r]._listener)return e[r]._listener},set(e){let r=this.listeners(t);for(let n=0;n<r.length;n++)r[n]._listener&&this.removeListener(t,r[n]);this.addEventListener(t,e)}})});fe.prototype.addEventListener=IS;fe.prototype.removeEventListener=PS;Um.exports=fe;function km(t,e,r,n){let i={protocolVersion:ll[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!ll.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${ll.join(", ")})`);let s;e instanceof ul?(s=e,t._url=e.href):(s=new ul(e),t._url=e);let o=s.protocol==="ws+unix:";if(!s.host&&(!o||!s.pathname)){let y=new Error(`Invalid URL: ${t.url}`);if(t._redirects===0)throw y;cl(t,y);return}let u=s.protocol==="wss:"||s.protocol==="https:",a=u?443:80,c=vS(16).toString("base64"),f=u?FS.get:wS.get,p;if(i.createConnection=u?HS:MS,i.defaultPort=i.defaultPort||a,i.port=s.port||a,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket",...i.headers},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(p=new $t(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=NS({[$t.extensionName]:p.offer()})),r&&(i.headers["Sec-WebSocket-Protocol"]=r),i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),o){let y=i.path.split(":");i.socketPath=y[0],i.path=y[1]}if(i.followRedirects){if(t._redirects===0){t._originalUnixSocket=o,t._originalSecure=u,t._originalHostOrSocketPath=o?i.socketPath:s.host;let y=n&&n.headers;if(n={...n,headers:{}},y)for(let[_,O]of Object.entries(y))n.headers[_.toLowerCase()]=O}else{let y=o?t._originalUnixSocket?i.socketPath===t._originalHostOrSocketPath:!1:t._originalUnixSocket?!1:s.host===t._originalHostOrSocketPath;(!y||t._originalSecure&&!u)&&(delete i.headers.authorization,delete i.headers.cookie,y||delete i.headers.host,i.auth=void 0)}i.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64"))}let m=t._req=f(i);i.timeout&&m.on("timeout",()=>{ke(t,m,"Opening handshake has timed out")}),m.on("error",y=>{m===null||m.aborted||(m=t._req=null,cl(t,y))}),m.on("response",y=>{let _=y.headers.location,O=y.statusCode;if(_&&i.followRedirects&&O>=300&&O<400){if(++t._redirects>i.maxRedirects){ke(t,m,"Maximum redirects exceeded");return}m.abort();let k;try{k=new ul(_,e)}catch(M){cl(t,M);return}km(t,k,r,n)}else t.emit("unexpected-response",m,y)||ke(t,m,`Unexpected server response: ${y.statusCode}`)}),m.on("upgrade",(y,_,O)=>{if(t.emit("upgrade",y),t.readyState!==fe.CONNECTING)return;if(m=t._req=null,y.headers.upgrade.toLowerCase()!=="websocket"){ke(t,_,"Invalid Upgrade header");return}let k=AS("sha1").update(c+RS).digest("base64");if(y.headers["sec-websocket-accept"]!==k){ke(t,_,"Invalid Sec-WebSocket-Accept header");return}let M=y.headers["sec-websocket-protocol"],q=(r||"").split(/, */),j;if(!r&&M?j="Server sent a subprotocol but none was requested":r&&!M?j="Server sent no subprotocol":M&&!q.includes(M)&&(j="Server sent an invalid subprotocol"),j){ke(t,_,j);return}M&&(t._protocol=M);let T=y.headers["sec-websocket-extensions"];if(T!==void 0){if(!p){ke(t,_,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let $;try{$=kS(T)}catch{ke(t,_,"Invalid Sec-WebSocket-Extensions header");return}let R=Object.keys($);if(R.length){if(R.length!==1||R[0]!==$t.extensionName){ke(t,_,"Server indicated an extension that was not requested");return}try{p.accept($[$t.extensionName])}catch{ke(t,_,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[$t.extensionName]=p}}t.setSocket(_,O,i.maxPayload)})}function cl(t,e){t._readyState=fe.CLOSING,t.emit("error",e),t.emitClose()}function MS(t){return t.path=t.socketPath,Pm.connect(t)}function HS(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=Pm.isIP(t.host)?"":t.host),SS.connect(t)}function ke(t,e,r){t._readyState=fe.CLOSING;let n=new Error(r);Error.captureStackTrace(n,ke),e.setHeader?(e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),e.once("abort",t.emitClose.bind(t)),t.emit("error",n)):(e.destroy(n),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function fl(t,e,r){if(e){let n=LS(e).length;t._socket?t._sender._bufferedBytes+=n:t._bufferedAmount+=n}if(r){let n=new Error(`WebSocket is not open: readyState ${t.readyState} (${bt[t.readyState]})`);r(n)}}function US(t,e){let r=this[Se];r._closeFrameReceived=!0,r._closeMessage=e,r._closeCode=t,r._socket[Se]!==void 0&&(r._socket.removeListener("data",vs),process.nextTick(Lm,r._socket),t===1005?r.close():r.close(t,e))}function jS(){this[Se]._socket.resume()}function qS(t){let e=this[Se];e._socket[Se]!==void 0&&(e._socket.removeListener("data",vs),process.nextTick(Lm,e._socket),e.close(t[BS])),e.emit("error",t)}function Im(){this[Se].emitClose()}function GS(t){this[Se].emit("message",t)}function WS(t){let e=this[Se];e.pong(t,!e._isServer,Nm),e.emit("ping",t)}function VS(t){this[Se].emit("pong",t)}function Lm(t){t.resume()}function $m(){let t=this[Se];this.removeListener("close",$m),this.removeListener("data",vs),this.removeListener("end",Mm),t._readyState=fe.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[Se]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",Im),t._receiver.on("finish",Im))}function vs(t){this[Se]._receiver.write(t)||this.pause()}function Mm(){let t=this[Se];t._readyState=fe.CLOSING,t._receiver.end(),this.end()}function Hm(){let t=this[Se];this.removeListener("error",Hm),this.on("error",Nm),t&&(t._readyState=fe.CLOSING,this.destroy())}});var Wm=C((gL,Gm)=>{"use strict";l();var{Duplex:zS}=require("stream");function jm(t){t.emit("close")}function KS(){!this.destroyed&&this._writableState.finished&&this.destroy()}function qm(t){this.removeListener("error",qm),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function YS(t,e){let r=!0,n=!0;function i(){r&&t._socket.resume()}t.readyState===t.CONNECTING?t.once("open",function(){t._receiver.removeAllListeners("drain"),t._receiver.on("drain",i)}):(t._receiver.removeAllListeners("drain"),t._receiver.on("drain",i));let s=new zS({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(u){s.push(u)||(r=!1,t._socket.pause())}),t.once("error",function(u){s.destroyed||(n=!1,s.destroy(u))}),t.once("close",function(){s.destroyed||s.push(null)}),s._destroy=function(o,u){if(t.readyState===t.CLOSED){u(o),process.nextTick(jm,s);return}let a=!1;t.once("error",function(f){a=!0,u(f)}),t.once("close",function(){a||u(o),process.nextTick(jm,s)}),n&&t.terminate()},s._final=function(o){if(t.readyState===t.CONNECTING){t.once("open",function(){s._final(o)});return}t._socket!==null&&(t._socket._writableState.finished?(o(),s._readableState.endEmitted&&s.destroy()):(t._socket.once("finish",function(){o()}),t.close()))},s._read=function(){(t.readyState===t.OPEN||t.readyState===t.CLOSING)&&!r&&(r=!0,t._receiver._writableState.needDrain||t._socket.resume())},s._write=function(o,u,a){if(t.readyState===t.CONNECTING){t.once("open",function(){s._write(o,u,a)});return}t.send(o,a)},s.on("end",KS),s.on("error",qm),s}Gm.exports=YS});var Xm=C((_L,Ym)=>{"use strict";l();var XS=require("events"),As=require("http"),yL=require("https"),xL=require("net"),bL=require("tls"),{createHash:ZS}=require("crypto"),nr=On(),JS=hl(),{format:QS,parse:e2}=ol(),{GUID:t2,kWebSocket:r2}=tr(),n2=/^[+/0-9A-Za-z]{22}==$/,Vm=0,zm=1,Km=2,pl=class extends XS{constructor(e,r){if(super(),e={maxPayload:100*1024*1024,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=As.createServer((n,i)=>{let s=As.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s)}),this._server.listen(e.port,e.host,e.backlog,r)):e.server&&(this._server=e.server),this._server){let n=this.emit.bind(this,"connection");this._removeListeners=i2(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,o)=>{this.handleUpgrade(i,s,o,n)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e,this._state=Vm}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(e&&this.once("close",e),this._state===Km){process.nextTick(dl,this);return}if(this._state===zm)return;if(this._state=zm,this.clients)for(let n of this.clients)n.terminate();let r=this._server;if(r&&(this._removeListeners(),this._removeListeners=this._server=null,this.options.port!=null)){r.close(dl.bind(void 0,this));return}process.nextTick(dl,this)}shouldHandle(e){if(this.options.path){let r=e.url.indexOf("?");if((r!==-1?e.url.slice(0,r):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,r,n,i){r.on("error",Dl);let s=e.headers["sec-websocket-key"]!==void 0?e.headers["sec-websocket-key"].trim():!1,o=+e.headers["sec-websocket-version"],u={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!s||!n2.test(s)||o!==8&&o!==13||!this.shouldHandle(e))return In(r,400);if(this.options.perMessageDeflate){let a=new nr(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let c=e2(e.headers["sec-websocket-extensions"]);c[nr.extensionName]&&(a.accept(c[nr.extensionName]),u[nr.extensionName]=a)}catch{return In(r,400)}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(c,f,p,m)=>{if(!c)return In(r,f||401,p,m);this.completeUpgrade(s,u,e,r,n,i)});return}if(!this.options.verifyClient(a))return In(r,401)}this.completeUpgrade(s,u,e,r,n,i)}completeUpgrade(e,r,n,i,s,o){if(!i.readable||!i.writable)return i.destroy();if(i[r2])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Vm)return In(i,503);let a=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${ZS("sha1").update(e+t2).digest("base64")}`],c=new JS(null),f=n.headers["sec-websocket-protocol"];if(f&&(f=f.split(",").map(s2),this.options.handleProtocols?f=this.options.handleProtocols(f,n):f=f[0],f&&(a.push(`Sec-WebSocket-Protocol: ${f}`),c._protocol=f)),r[nr.extensionName]){let p=r[nr.extensionName].params,m=QS({[nr.extensionName]:[p]});a.push(`Sec-WebSocket-Extensions: ${m}`),c._extensions=r}this.emit("headers",a,n),i.write(a.concat(`\r
29
29
  `).join(`\r
30
- `)),i.removeListener("error",ml),c.setSocket(i,s,this.options.maxPayload),this.clients&&(this.clients.add(c),c.on("close",()=>this.clients.delete(c))),o(c,n)}};e0.exports=Dl;function gS(t,e){for(let r of Object.keys(e))t.on(r,e[r]);return function(){for(let n of Object.keys(e))t.removeListener(n,e[n])}}function pl(t){t._state=Qm,t.emit("close")}function ml(){this.destroy()}function kn(t,e,r,n){t.writable&&(r=r||Rs.STATUS_CODES[e],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n},t.write(`HTTP/1.1 ${e} ${Rs.STATUS_CODES[e]}\r
30
+ `)),i.removeListener("error",Dl),c.setSocket(i,s,this.options.maxPayload),this.clients&&(this.clients.add(c),c.on("close",()=>this.clients.delete(c))),o(c,n)}};Ym.exports=pl;function i2(t,e){for(let r of Object.keys(e))t.on(r,e[r]);return function(){for(let n of Object.keys(e))t.removeListener(n,e[n])}}function dl(t){t._state=Km,t.emit("close")}function Dl(){this.destroy()}function In(t,e,r,n){t.writable&&(r=r||As.STATUS_CODES[e],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n},t.write(`HTTP/1.1 ${e} ${As.STATUS_CODES[e]}\r
31
31
  `+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r
32
32
  `)+`\r
33
33
  \r
34
- `+r)),t.removeListener("error",ml),t.destroy()}function ES(t){return t.trim()}});var n0=C((ZL,r0)=>{"use strict";l();var Ln=dl();Ln.createWebSocketStream=Xm();Ln.Server=t0();Ln.Receiver=el();Ln.Sender=rl();r0.exports=Ln});var s0=C((QL,i0)=>{"use strict";l();i0.exports=n0()});var f0=C((g7,c0)=>{"use strict";l();function ot(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function l0(t,e){for(var r="",n=0,i=-1,s=0,o,u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(o===47)break;o=47}if(o===47){if(!(i===u-1||s===1))if(i!==u-1&&s===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",n=0):(r=r.slice(0,a),n=r.length-1-r.lastIndexOf("/")),i=u,s=0;continue}}else if(r.length===2||r.length===1){r="",n=0,i=u,s=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+t.slice(i+1,u):r=t.slice(i+1,u),n=u-i-1;i=u,s=0}else o===46&&s!==-1?++s:s=-1}return r}function FS(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}var $r={resolve:function(){for(var e="",r=!1,n,i=arguments.length-1;i>=-1&&!r;i--){var s;i>=0?s=arguments[i]:(n===void 0&&(n=process.cwd()),s=n),ot(s),s.length!==0&&(e=s+"/"+e,r=s.charCodeAt(0)===47)}return e=l0(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ot(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=l0(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return ot(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];ot(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":$r.normalize(e)},relative:function(e,r){if(ot(e),ot(r),e===r||(e=$r.resolve(e),r=$r.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,s=i-n,o=1;o<r.length&&r.charCodeAt(o)===47;++o);for(var u=r.length,a=u-o,c=s<a?s:a,f=-1,p=0;p<=c;++p){if(p===c){if(a>c){if(r.charCodeAt(o+p)===47)return r.slice(o+p+1);if(p===0)return r.slice(o+p)}else s>c&&(e.charCodeAt(n+p)===47?f=p:p===0&&(f=0));break}var m=e.charCodeAt(n+p),y=r.charCodeAt(o+p);if(m!==y)break;m===47&&(f=p)}var _="";for(p=n+f+1;p<=i;++p)(p===i||e.charCodeAt(p)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(o+f):(o+=f,r.charCodeAt(o)===47&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(ot(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,i=-1,s=!0,o=e.length-1;o>=1;--o)if(r=e.charCodeAt(o),r===47){if(!s){i=o;break}}else s=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ot(e);var n=0,i=-1,s=!0,o;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var u=r.length-1,a=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!s){n=o+1;break}}else a===-1&&(s=!1,a=o+1),u>=0&&(c===r.charCodeAt(u)?--u===-1&&(i=o):(u=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":e.slice(n,i)}},extname:function(e){ot(e);for(var r=-1,n=0,i=-1,s=!0,o=0,u=e.length-1;u>=0;--u){var a=e.charCodeAt(u);if(a===47){if(!s){n=u+1;break}continue}i===-1&&(s=!1,i=u+1),a===46?r===-1?r=u:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||i===-1||o===0||o===1&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return FS("/",e)},parse:function(e){ot(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),i=n===47,s;i?(r.root="/",s=1):s=0;for(var o=-1,u=0,a=-1,c=!0,f=e.length-1,p=0;f>=s;--f){if(n=e.charCodeAt(f),n===47){if(!c){u=f+1;break}continue}a===-1&&(c=!1,a=f+1),n===46?o===-1?o=f:p!==1&&(p=1):o!==-1&&(p=-1)}return o===-1||a===-1||p===0||p===1&&o===a-1&&o===u+1?a!==-1&&(u===0&&i?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(u,a)):(u===0&&i?(r.name=e.slice(1,o),r.base=e.slice(1,a)):(r.name=e.slice(u,o),r.base=e.slice(u,a)),r.ext=e.slice(o,a)),u>0?r.dir=e.slice(0,u-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};$r.posix=$r;c0.exports=$r});var m0=C((Q7,xl)=>{"use strict";l();var Ht={};typeof xl>"u"?window.eastasianwidth=Ht:xl.exports=Ht;Ht.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};Ht.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function D0(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}Ht.length=function(t){for(var e=D0(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};Ht.slice=function(t,e,r){textLen=Ht.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",i=0,s=D0(t),o=0;o<s.length;o++){var u=s[o],a=Ht.length(u);if(i>=e-(a==2?1:0))if(i+a<=r)n+=u;else break;i+=a}return n}});var E0=C((t4,g0)=>{"use strict";l();g0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var b0=C((l4,SS)=>{SS.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var _l=C((c4,bl)=>{"use strict";l();var _0=b0();bl.exports=_0;bl.exports.default=_0});var A0=C((p4,v0)=>{"use strict";l();v0.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var O0=C((m4,T0)=>{"use strict";l();var IS=A0();T0.exports=t=>typeof t=="string"?t.replace(IS(),""):t});var B0=C((E4,wl)=>{"use strict";l();var R0=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);wl.exports=R0;wl.exports.default=R0});var P0=C((x4,I0)=>{"use strict";l();I0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var k0=C((_4,Sl)=>{"use strict";l();var PS=O0(),NS=B0(),kS=P0(),N0=t=>{if(typeof t!="string"||t.length===0||(t=PS(t),t.length===0))return 0;t=t.replace(kS()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=NS(n)?2:1)}return e};Sl.exports=N0;Sl.exports.default=N0});var $0=C((F4,L0)=>{"use strict";l();var LS=k0();function or(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
35
- `,i=e.pad||" ",s=r!=="right"?$S:MS,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(n));let u,a=0;return t=t.map(function(c){return c=String(c),u=LS(c),a=Math.max(u,a),{str:c,width:u}}).map(function(c){return new Array(s(a,c.width)+1).join(i)+c.str}),o?t.join(n):t}or.left=function(e){return or(e,{align:"left"})};or.center=function(e){return or(e,{align:"center"})};or.right=function(e){return or(e,{align:"right"})};L0.exports=or;function $S(t,e){return Math.floor((t-e)/2)}function MS(t,e){return t-e}});var tg=C((K4,eg)=>{"use strict";l();eg.exports=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t)});var ng=C((X4,rg)=>{"use strict";l();rg.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):tg()});var sg=C((Q4,ig)=>{"use strict";l();ig.exports=class{constructor(e){if(!(e>0)||e-1&e)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Il=C((r$,ug)=>{"use strict";l();var og=sg();ug.exports=class{constructor(e){this.hwm=e||16,this.head=new og(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new og(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Yl=C((i$,Tg)=>{"use strict";l();var{EventEmitter:sv}=require("events"),zs=new Error("Stream was destroyed"),Pl=new Error("Premature close"),hg=ng(),dg=Il(),de=(1<<27)-1,cr=1,jl=2,ur=4,Gn=8,pg=de^cr,ov=de^jl,Xn=16,Wn=32,qr=64,jt=128,Vn=256,ql=512,ar=1024,Nl=2048,Gl=4096,Wl=8192,Xe=16384,Mr=32768,Ks=65536,Dg=Vn|ql,uv=Xn|Ks,av=qr|Xn,lv=Gl|jt,cv=de^Xn,fv=de^qr,hv=de^(qr|Ks),dv=de^Ks,pv=de^Vn,Dv=de^(jt|Wl),mv=de^ar,ag=de^Dg,mg=de^Mr,gv=de^Wn,qt=1<<17,Ur=2<<17,Zn=4<<17,lr=8<<17,Jn=16<<17,fr=32<<17,kl=64<<17,Hr=128<<17,Vl=256<<17,jr=512<<17,gg=de^(qt|Vl),Eg=de^Zn,Ev=de^jr,yv=de^Jn,xv=de^lr,yg=de^Hr,bv=de^Ur,zn=Xn|qt,xg=de^zn,zl=Xe|fr,_t=ur|Gn|jl,Le=_t|cr,bg=_t|zl,_v=Eg&fv,Kl=Hr|Mr,Cv=Kl&xg,_g=Le|Cv,Fv=Le|ar|Xe,lg=Le|Xe|jt,wv=Le|ar|jt,Sv=Le|Gl|jt|Wl,vv=Le|Xn|ar|Xe|Ks,Av=_t|ar|Xe,Tv=Wn|Le|Mr|qr,Ov=Le|jr|fr,Rv=lr|Jn,Cg=lr|qt,Bv=lr|Jn|Le|qt,cg=Le|qt|lr,Iv=Zn|qt,Pv=qt|Vl,Nv=Le|jr|Cg|fr,kv=Jn|_t|jr|fr,Lv=Ur|Le|Hr|Zn,js=Symbol.asyncIterator||Symbol("asyncIterator"),qs=class{constructor(e,{highWaterMark:r=16384,map:n=null,mapWritable:i,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new dg,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||Ag,this.map=i||n,this.afterWrite=Hv.bind(this),this.afterUpdateNextTick=qv.bind(this)}get ended(){return(this.stream._duplexState&fr)!==0}push(e){return this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=lr,!0):(this.stream._duplexState|=Rv,!1)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=xv),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|jr)&Eg}autoBatch(e,r){let n=[],i=this.stream;for(n.push(e);(i._duplexState&cg)===Cg;)n.push(i._writableState.shift());if(i._duplexState&Le)return r(null);i._writev(n,r)}update(){let e=this.stream;e._duplexState|=Ur;do{for(;(e._duplexState&cg)===lr;){let r=this.shift();e._duplexState|=Pv,e._write(r,this.afterWrite)}e._duplexState&Iv||this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=bv}updateNonPrimary(){let e=this.stream;if((e._duplexState&Nv)===jr){e._duplexState=(e._duplexState|qt)&Ev,e._final(Mv.bind(this));return}if((e._duplexState&_t)===ur){e._duplexState&Kl||(e._duplexState|=zn,e._destroy(Fg.bind(this)));return}(e._duplexState&_g)===cr&&(e._duplexState=(e._duplexState|zn)&pg,e._open(wg.bind(this)))}continueUpdate(){return this.stream._duplexState&Hr?(this.stream._duplexState&=yg,!0):!1}updateCallback(){(this.stream._duplexState&Lv)===Zn?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&Hr||(this.stream._duplexState|=Hr,this.stream._duplexState&Ur||hg(this.afterUpdateNextTick))}},Ll=class{constructor(e,{highWaterMark:r=16384,map:n=null,mapReadable:i,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new dg,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.byteLength=o||s||Ag,this.map=i||n,this.pipeTo=null,this.afterRead=Uv.bind(this),this.afterUpdateNextTick=jv.bind(this)}get ended(){return(this.stream._duplexState&Xe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ql,this.pipeTo=e,this.pipeline=new Ml(this.stream,e,r),r&&this.stream.on("error",fg),Yn(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",fg),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let n=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",n),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",$v.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|ar)&hv,!1):(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|jt)&dv,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Dv),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let n=0;n<r.length-1;n++){let i=r[n];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&lg)===jt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=ag),e._duplexState&Nl&&e.emit("data",r),r}return null}drain(){let e=this.stream;for(;(e._duplexState&lg)===jt&&e._duplexState&Dg;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=ag),e._duplexState&Nl&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Wn;do{for(this.drain();this.buffered<this.highWaterMark&&!(e._duplexState&vv);)e._duplexState|=uv,e._read(this.afterRead),this.drain();(e._duplexState&Sv)===lv&&(e._duplexState|=Wl,e.emit("readable")),e._duplexState&av||this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=gv}updateNonPrimary(){let e=this.stream;if((e._duplexState&wv)===ar&&(e._duplexState=(e._duplexState|Xe)&mv,e.emit("end"),(e._duplexState&bg)===zl&&(e._duplexState|=ur),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&_t)===ur){e._duplexState&Kl||(e._duplexState|=zn,e._destroy(Fg.bind(this)));return}(e._duplexState&_g)===cr&&(e._duplexState=(e._duplexState|zn)&pg,e._open(wg.bind(this)))}continueUpdate(){return this.stream._duplexState&Mr?(this.stream._duplexState&=mg,!0):!1}updateCallback(){(this.stream._duplexState&Tv)===qr?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&Mr||(this.stream._duplexState|=Mr,this.stream._duplexState&Wn||hg(this.afterUpdateNextTick))}},$l=class{constructor(e){this.data=null,this.afterTransform=Wv.bind(e),this.afterFinal=null}},Ml=class{constructor(e,r,n){this.from=e,this.to=r,this.afterPipe=n,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){(!(this.from._duplexState&Xe)||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){e._duplexState&Xe||this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function $v(){this.stream._duplexState|=ql,this.updateCallback()}function Mv(t){let e=this.stream;t&&e.destroy(t),e._duplexState&_t||(e._duplexState|=fr,e.emit("finish")),(e._duplexState&bg)===zl&&(e._duplexState|=ur),e._duplexState&=gg,e._duplexState&Ur?this.updateNextTick():this.update()}function Fg(t){let e=this.stream;!t&&this.error!==zs&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Gn,e.emit("close");let r=e._readableState,n=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),n!==null){for(;n.drains!==null&&n.drains.length>0;)n.drains.shift().resolve(!1);n.pipeline!==null&&n.pipeline.done(e,t)}}function Hv(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=gg,this.drains!==null&&Gv(this.drains),(e._duplexState&Bv)===Jn&&(e._duplexState&=yv,(e._duplexState&kl)===kl&&e.emit("drain")),this.updateCallback()}function Uv(t){t&&this.stream.destroy(t),this.stream._duplexState&=cv,this.updateCallback()}function jv(){this.stream._duplexState&Wn||(this.stream._duplexState&=mg,this.update())}function qv(){this.stream._duplexState&Ur||(this.stream._duplexState&=yg,this.update())}function Gv(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function wg(t){let e=this.stream;t&&e.destroy(t),e._duplexState&ur||(e._duplexState&Fv||(e._duplexState|=qr),e._duplexState&Ov||(e._duplexState|=Zn),e.emit("open")),e._duplexState&=xg,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function Wv(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}var Kn=class extends sv{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",Zv.bind(this)))}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Gn)!==0}get destroying(){return(this._duplexState&_t)!==0}destroy(e){this._duplexState&_t||(e||(e=zs),this._duplexState=(this._duplexState|ur)&_v,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=jl,this._predestroy(),this._duplexState&=ov,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}on(e,r){return this._readableState!==null&&(e==="data"&&(this._duplexState|=Nl|Vn,this._readableState.updateNextTick()),e==="readable"&&(this._duplexState|=Gl,this._readableState.updateNextTick())),this._writableState!==null&&e==="drain"&&(this._duplexState|=kl,this._writableState.updateNextTick()),super.on(e,r)}},Gs=class t extends Kn{constructor(e){super(e),this._duplexState|=cr|fr,this._readableState=new Ll(this,e),e&&(e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=Vn,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=pv,this}static _fromAsyncIterator(e,r){let n,i=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){n=e.return()},destroy(o){if(!n)return o(null);n.then(o.bind(null,null)).catch(o)}});return i;function s(o){o.done?i.push(null):i.push(o.value)}}static from(e,r){if(Yv(e))return e;if(e[js])return this._fromAsyncIterator(e[js](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let n=0;return new t({...r,read(i){this.push(n===e.length?null:e[n++]),i(null)}})}static isBackpressured(e){return(e._duplexState&Av)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Vn)===0}[js](){let e=this,r=null,n=null,i=null;return this.on("error",c=>{r=c}),this.on("readable",s),this.on("close",o),{[js](){return this},next(){return new Promise(function(c,f){n=c,i=f;let p=e.read();p!==null?u(p):e._duplexState&Gn&&u(null)})},return(){return a(null)},throw(c){return a(c)}};function s(){n!==null&&u(e.read())}function o(){n!==null&&u(null)}function u(c){i!==null&&(r?i(r):c===null&&!(e._duplexState&Xe)?i(zs):n({value:c,done:c===null}),i=n=null)}function a(c){return e.destroy(c),new Promise((f,p)=>{if(e._duplexState&Gn)return f({value:void 0,done:!0});e.once("close",function(){c?p(c):f({value:void 0,done:!0})})})}}},Hl=class extends Kn{constructor(e){super(e),this._duplexState|=cr|Xe,this._writableState=new qs(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&kv)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=r.queue.length+(e._duplexState&Vl?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(i=>{r.drains.push({writes:n,resolve:i})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Ws=class extends Gs{constructor(e){super(e),this._duplexState=cr,this._writableState=new qs(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vs=class extends Ws{constructor(e){super(e),this._transformState=new $l(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(Vv.bind(this))}},Ul=class extends Vs{};function Vv(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function zv(...t){return new Promise((e,r)=>Sg(...t,n=>{if(n)return r(n);e()}))}function Sg(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,o=null;for(let c=1;c<r.length;c++)s=r[c],Yn(i)?i.pipe(s,a):(u(i,!0,c>1,a),i.pipe(s)),i=s;if(n){let c=!1,f=Yn(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",p=>{o===null&&(o=p)}),s.on("finish",()=>{c=!0,f||n(o)}),f&&s.on("close",()=>n(o||(c?null:Pl)))}return s;function u(c,f,p,m){c.on("error",m),c.on("close",y);function y(){if(f&&c._readableState&&!c._readableState.ended||p&&c._writableState&&!c._writableState.ended)return m(Pl)}}function a(c){if(!(!c||o)){o=c;for(let f of r)f.destroy(c)}}}function vg(t){return!!t._readableState||!!t._writableState}function Yn(t){return typeof t._duplexState=="number"&&vg(t)}function Kv(t){let e=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e===zs?null:e}function Yv(t){return Yn(t)&&t.readable}function Xv(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function Ag(t){return Xv(t)?t.byteLength:1024}function fg(){}function Zv(){this.destroy(new Error("Stream aborted."))}Tg.exports={pipeline:Sg,pipelinePromise:zv,isStream:vg,isStreamx:Yn,getStreamError:Kv,Stream:Kn,Writable:Hl,Readable:Gs,Duplex:Ws,Transform:Vs,PassThrough:Ul}});var Ys=C((o$,Og)=>{"use strict";l();function Jv(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Qv(t){return Buffer.isEncoding(t)}function eA(t,e,r){return Buffer.alloc(t,e,r)}function tA(t){return Buffer.allocUnsafe(t)}function rA(t){return Buffer.allocUnsafeSlow(t)}function nA(t,e){return Buffer.byteLength(t,e)}function iA(t,e){return Buffer.compare(t,e)}function sA(t,e){return Buffer.concat(t,e)}function oA(t,e,r,n,i){return pe(t).copy(e,r,n,i)}function uA(t,e){return pe(t).equals(e)}function aA(t,e,r,n,i){return pe(t).fill(e,r,n,i)}function lA(t,e,r){return Buffer.from(t,e,r)}function cA(t,e,r,n){return pe(t).includes(e,r,n)}function fA(t,e,r,n){return pe(t).indexOf(e,r,n)}function hA(t,e,r,n){return pe(t).lastIndexOf(e,r,n)}function dA(t){return pe(t).swap16()}function pA(t){return pe(t).swap32()}function DA(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function mA(t,e,r,n){return pe(t).toString(e,r,n)}function gA(t,e,r,n,i){return pe(t).write(e,r,n,i)}function EA(t,e,r){return pe(t).writeDoubleLE(e,r)}function yA(t,e,r){return pe(t).writeFloatLE(e,r)}function xA(t,e,r){return pe(t).writeUInt32LE(e,r)}function bA(t,e,r){return pe(t).writeInt32LE(e,r)}function _A(t,e){return pe(t).readDoubleLE(e)}function CA(t,e){return pe(t).readFloatLE(e)}function FA(t,e){return pe(t).readUInt32LE(e)}function wA(t,e){return pe(t).readInt32LE(e)}Og.exports={isBuffer:Jv,isEncoding:Qv,alloc:eA,allocUnsafe:tA,allocUnsafeSlow:rA,byteLength:nA,compare:iA,concat:sA,copy:oA,equals:uA,fill:aA,from:lA,includes:cA,indexOf:fA,lastIndexOf:hA,swap16:dA,swap32:pA,swap64:DA,toBuffer:pe,toString:mA,write:gA,writeDoubleLE:EA,writeFloatLE:yA,writeUInt32LE:xA,writeInt32LE:bA,readDoubleLE:_A,readFloatLE:CA,readUInt32LE:FA,readInt32LE:wA}});var Jl=C(Wr=>{"use strict";l();var ee=Ys(),SA="0000000000000000000",vA="7777777777777777777",Xs="0".charCodeAt(0),Rg=ee.from([117,115,116,97,114,0]),AA=ee.from([Xs,Xs]),TA=ee.from([117,115,116,97,114,32]),OA=ee.from([32,0]),RA=4095,Qn=257,Zl=263;Wr.decodeLongPath=function(e,r){return Gr(e,0,e.length,r)};Wr.encodePax=function(e){let r="";e.name&&(r+=Xl(" path="+e.name+`
34
+ `+r)),t.removeListener("error",Dl),t.destroy()}function s2(t){return t.trim()}});var Jm=C((FL,Zm)=>{"use strict";l();var Pn=hl();Pn.createWebSocketStream=Wm();Pn.Server=Xm();Pn.Receiver=Qa();Pn.Sender=tl();Zm.exports=Pn});var e0=C((SL,Qm)=>{"use strict";l();Qm.exports=Jm()});var n0=C((Ts,kn)=>{"use strict";l();(function(){"use strict";var t={function:!0,object:!0},e=t[typeof window]&&window||this,r=e,n=t[typeof Ts]&&Ts,i=t[typeof kn]&&kn&&!kn.nodeType&&kn,s=n&&i&&typeof global=="object"&&global;s&&(s.global===s||s.window===s||s.self===s)&&(e=s);var o=Math.pow(2,53)-1,u=/\bOpera/,a=this,c=Object.prototype,f=c.hasOwnProperty,p=c.toString;function m(F){return F=String(F),F.charAt(0).toUpperCase()+F.slice(1)}function y(F,A,N){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return A&&N&&/^Win/i.test(F)&&!/^Windows Phone /i.test(F)&&(I=I[/[\d.]+$/.exec(F)])&&(F="Windows "+I),F=String(F),A&&N&&(F=F.replace(RegExp(A,"i"),N)),F=O(F.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),F}function _(F,A){var N=-1,I=F?F.length:0;if(typeof I=="number"&&I>-1&&I<=o)for(;++N<I;)A(F[N],N,F);else k(F,A)}function O(F){return F=$(F),/^(?:webOS|i(?:OS|P))/.test(F)?F:m(F)}function k(F,A){for(var N in F)f.call(F,N)&&A(F[N],N,F)}function M(F){return F==null?m(F):p.call(F).slice(8,-1)}function q(F,A){var N=F!=null?typeof F[A]:"number";return!/^(?:boolean|number|string|undefined)$/.test(N)&&(N=="object"?!!F[A]:!0)}function j(F){return String(F).replace(/([ -])(?!$)/g,"$1?")}function T(F,A){var N=null;return _(F,function(I,V){N=A(N,I,V,F)}),N}function $(F){return String(F).replace(/^ +| +$/g,"")}function R(F){var A=e,N=F&&typeof F=="object"&&M(F)!="String";N&&(A=F,F=null);var I=A.navigator||{},V=I.userAgent||"";F||(F=V);var G=N||a==r,Z=N?!!I.likeChrome:/\bChrome\b/.test(F)&&!/internal|\n/i.test(p.toString()),te="Object",He=N?te:"ScriptBridgingProxyObject",at=N?te:"Environment",lt=N&&A.java?"JavaPackage":M(A.java),li=N?te:"RuntimeObject",ct=/\bJava/.test(lt)&&A.java,ze=ct&&M(A.environment)==at,Yt=ct?"a":"\u03B1",ft=ct?"b":"\u03B2",mr=A.document||{},Ue=A.operamini||A.opera,vt=u.test(vt=N&&Ue?Ue["[[Class]]"]:M(Ue))?vt:Ue=null,x,ht=F,X=[],Xt=null,je=F==V,U=je&&Ue&&typeof Ue.version=="function"&&Ue.version(),Qr,Q=ci([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=So(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Y=Qe([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),he=fi({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),P=W(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ci(g){return T(g,function(b,E){return b||RegExp("\\b"+(E.pattern||j(E))+"\\b","i").exec(F)&&(E.label||E)})}function fi(g){return T(g,function(b,E,w){return b||(E[Y]||E[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Y)]||RegExp("\\b"+j(w)+"(?:\\b|\\w*\\d)","i").exec(F))&&w})}function So(g){return T(g,function(b,E){return b||RegExp("\\b"+(E.pattern||j(E))+"\\b","i").exec(F)&&(E.label||E)})}function W(g){return T(g,function(b,E){var w=E.pattern||j(E);return!b&&(b=RegExp("\\b"+w+"(?:/[\\d.]+|[ \\w.]*)","i").exec(F))&&(b=y(b,w,E.label||E)),b})}function Qe(g){return T(g,function(b,E){var w=E.pattern||j(E);return!b&&(b=RegExp("\\b"+w+" *\\d+[.\\w_]*","i").exec(F)||RegExp("\\b"+w+" *\\w+-[\\w]*","i").exec(F)||RegExp("\\b"+w+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(F))&&((b=String(E.label&&!RegExp(w,"i").test(E.label)?E.label:b).split("/"))[1]&&!/[\d.]+/.test(b[0])&&(b[0]+=" "+b[1]),E=E.label||E,b=O(b[0].replace(RegExp(w,"i"),E).replace(RegExp("; *(?:"+E+"[_-])?","i")," ").replace(RegExp("("+E+")[-_.]?(\\w)","i"),"$1 $2"))),b})}function h(g){return T(g,function(b,E){return b||(RegExp(E+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(F)||0)[1]||null})}function d(){return this.description||""}if(Q&&(Q=[Q]),/\bAndroid\b/.test(P)&&!Y&&(x=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(F))&&(Y=$(x[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),he&&!Y?Y=Qe([he]):he&&Y&&(Y=Y.replace(RegExp("^("+j(he)+")[-_.\\s]","i"),he+" ").replace(RegExp("^("+j(he)+")[-_.]?(\\w)","i"),he+" $2")),(x=/\bGoogle TV\b/.exec(Y))&&(Y=x[0]),/\bSimulator\b/i.test(F)&&(Y=(Y?Y+" ":"")+"Simulator"),B=="Opera Mini"&&/\bOPiOS\b/.test(F)&&X.push("running in Turbo/Uncompressed mode"),B=="IE"&&/\blike iPhone OS\b/.test(F)?(x=R(F.replace(/like iPhone OS/,"")),he=x.manufacturer,Y=x.product):/^iP/.test(Y)?(B||(B="Safari"),P="iOS"+((x=/ OS ([\d_]+)/i.exec(F))?" "+x[1].replace(/_/g,"."):"")):B=="Konqueror"&&/^Linux\b/i.test(P)?P="Kubuntu":he&&he!="Google"&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(F)||/\bVita\b/.test(Y))||/\bAndroid\b/.test(P)&&/^Chrome/.test(B)&&/\bVersion\//i.test(F)?(B="Android Browser",P=/\bAndroid\b/.test(P)?P:"Android"):B=="Silk"?(/\bMobi/i.test(F)||(P="Android",X.unshift("desktop mode")),/Accelerated *= *true/i.test(F)&&X.unshift("accelerated")):B=="UC Browser"&&/\bUCWEB\b/.test(F)?X.push("speed mode"):B=="PaleMoon"&&(x=/\bFirefox\/([\d.]+)\b/.exec(F))?X.push("identifying as Firefox "+x[1]):B=="Firefox"&&(x=/\b(Mobile|Tablet|TV)\b/i.exec(F))?(P||(P="Firefox OS"),Y||(Y=x[1])):!B||(x=!/\bMinefield\b/i.test(F)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!Y&&/[\/,]|^[^(]+?\)/.test(F.slice(F.indexOf(x+"/")+8))&&(B=null),(x=Y||he||P)&&(Y||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(P))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(P)?P:x)+" Browser")):B=="Electron"&&(x=(/\bChrome\/([\d.]+)\b/.exec(F)||0)[1])&&X.push("Chromium "+x),U||(U=h(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",j(B),"(?:Firefox|Minefield|NetFront)"])),(x=Q=="iCab"&&parseFloat(U)>3&&"WebKit"||/\bOpera\b/.test(B)&&(/\bOPR\b/.test(F)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(F)&&!/^(?:Trident|EdgeHTML)$/.test(Q)&&"WebKit"||!Q&&/\bMSIE\b/i.test(F)&&(P=="Mac OS"?"Tasman":"Trident")||Q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(Q=[x]),B=="IE"&&(x=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(F)||0)[1])?(B+=" Mobile",P="Windows Phone "+(/\+$/.test(x)?x:x+".x"),X.unshift("desktop mode")):/\bWPDesktop\b/i.test(F)?(B="IE Mobile",P="Windows Phone 8.x",X.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(F)||0)[1])):B!="IE"&&Q=="Trident"&&(x=/\brv:([\d.]+)/.exec(F))&&(B&&X.push("identifying as "+B+(U?" "+U:"")),B="IE",U=x[1]),je){if(q(A,"global"))if(ct&&(x=ct.lang.System,ht=x.getProperty("os.arch"),P=P||x.getProperty("os.name")+" "+x.getProperty("os.version")),ze){try{U=A.require("ringo/engine").version.join("."),B="RingoJS"}catch{(x=A.system)&&x.global.system==A.system&&(B="Narwhal",P||(P=x[0].os||null))}B||(B="Rhino")}else typeof A.process=="object"&&!A.process.browser&&(x=A.process)&&(typeof x.versions=="object"&&(typeof x.versions.electron=="string"?(X.push("Node "+x.versions.node),B="Electron",U=x.versions.electron):typeof x.versions.nw=="string"&&(X.push("Chromium "+U,"Node "+x.versions.node),B="NW.js",U=x.versions.nw)),B||(B="Node.js",ht=x.arch,P=x.platform,U=/[\d.]+/.exec(x.version),U=U?U[0]:null));else M(x=A.runtime)==He?(B="Adobe AIR",P=x.flash.system.Capabilities.os):M(x=A.phantom)==li?(B="PhantomJS",U=(x=x.version||null)&&x.major+"."+x.minor+"."+x.patch):typeof mr.documentMode=="number"&&(x=/\bTrident\/(\d+)/i.exec(F))?(U=[U,mr.documentMode],(x=+x[1]+4)!=U[1]&&(X.push("IE "+U[1]+" mode"),Q&&(Q[1]=""),U[1]=x),U=B=="IE"?String(U[1].toFixed(1)):U[0]):typeof mr.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(B)&&(X.push("masking as "+B+" "+U),B="IE",U="11.0",Q=["Trident"],P="Windows");P=P&&O(P)}if(U&&(x=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(F+";"+(je&&I.appMinorVersion))||/\bMinefield\b/i.test(F)&&"a")&&(Xt=/b/i.test(x)?"beta":"alpha",U=U.replace(RegExp(x+"\\+?$"),"")+(Xt=="beta"?ft:Yt)+(/\d+\+?/.exec(x)||"")),B=="Fennec"||B=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(P))B="Firefox Mobile";else if(B=="Maxthon"&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Y))Y=="Xbox 360"&&(P=null),Y=="Xbox 360"&&/\bIEMobile\b/.test(F)&&X.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(B)||B&&!Y&&!/Browser|Mobi/.test(B))&&(P=="Windows CE"||/Mobi/i.test(F)))B+=" Mobile";else if(B=="IE"&&je)try{A.external===null&&X.unshift("platform preview")}catch{X.unshift("embedded")}else(/\bBlackBerry\b/.test(Y)||/\bBB10\b/.test(F))&&(x=(RegExp(Y.replace(/ +/g," *")+"/([.\\d]+)","i").exec(F)||0)[1]||U)?(x=[x,/BB10/.test(F)],P=(x[1]?(Y=null,he="BlackBerry"):"Device Software")+" "+x[0],U=null):this!=k&&Y!="Wii"&&(je&&Ue||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(F)||B=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(P)||B=="IE"&&(P&&!/^Win/.test(P)&&U>5.5||/\bWindows XP\b/.test(P)&&U>8||U==8&&!/\bTrident\b/.test(F)))&&!u.test(x=R.call(k,F.replace(u,"")+";"))&&x.name&&(x="ing as "+x.name+((x=x.version)?" "+x:""),u.test(B)?(/\bIE\b/.test(x)&&P=="Mac OS"&&(P=null),x="identify"+x):(x="mask"+x,vt?B=O(vt.replace(/([a-z])([A-Z])/g,"$1 $2")):B="Opera",/\bIE\b/.test(x)&&(P=null),je||(U=null)),Q=["Presto"],X.push(x));(x=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(F)||0)[1])&&(x=[parseFloat(x.replace(/\.(\d)$/,".0$1")),x],B=="Safari"&&x[1].slice(-1)=="+"?(B="WebKit Nightly",Xt="alpha",U=x[1].slice(0,-1)):(U==x[1]||U==(x[2]=(/\bSafari\/([\d.]+\+?)/i.exec(F)||0)[1]))&&(U=null),x[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(F)||0)[1],x[0]==537.36&&x[2]==537.36&&parseFloat(x[1])>=28&&Q=="WebKit"&&(Q=["Blink"]),!je||!Z&&!x[1]?(Q&&(Q[1]="like Safari"),x=(x=x[0],x<400?1:x<500?2:x<526?3:x<533?4:x<534?"4+":x<535?5:x<537?6:x<538?7:x<601?8:x<602?9:x<604?10:x<606?11:x<608?12:"12")):(Q&&(Q[1]="like Chrome"),x=x[1]||(x=x[0],x<530?1:x<532?2:x<532.05?3:x<533?4:x<534.03?5:x<534.07?6:x<534.1?7:x<534.13?8:x<534.16?9:x<534.24?10:x<534.3?11:x<535.01?12:x<535.02?"13+":x<535.07?15:x<535.11?16:x<535.19?17:x<536.05?18:x<536.1?19:x<537.01?20:x<537.11?"21+":x<537.13?23:x<537.18?24:x<537.24?25:x<537.36?26:Q!="Blink"?"27":"28")),Q&&(Q[1]+=" "+(x+=typeof x=="number"?".x":/[.+]/.test(x)?"":"+")),B=="Safari"&&(!U||parseInt(U)>45)?U=x:B=="Chrome"&&/\bHeadlessChrome/i.test(F)&&X.unshift("headless")),B=="Opera"&&(x=/\bzbov|zvav$/.exec(P))?(B+=" ",X.unshift("desktop mode"),x=="zvav"?(B+="Mini",U=null):B+="Mobile",P=P.replace(RegExp(" *"+x+"$"),"")):B=="Safari"&&/\bChrome\b/.exec(Q&&Q[1])?(X.unshift("desktop mode"),B="Chrome Mobile",U=null,/\bOS X\b/.test(P)?(he="Apple",P="iOS 4.3+"):P=null):/\bSRWare Iron\b/.test(B)&&!U&&(U=h("Chrome")),U&&U.indexOf(x=/[\d.]+$/.exec(P))==0&&F.indexOf("/"+x+"-")>-1&&(P=$(P.replace(x,""))),P&&P.indexOf(B)!=-1&&!RegExp(B+" OS").test(P)&&(P=P.replace(RegExp(" *"+j(B)+" *"),"")),Q&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||B!="Safari"&&/^iOS/.test(P)&&/\bSafari\b/.test(Q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&Q[1])&&(x=Q[Q.length-1])&&X.push(x),X.length&&(X=["("+X.join("; ")+")"]),he&&Y&&Y.indexOf(he)<0&&X.push("on "+he),Y&&X.push((/^on /.test(X[X.length-1])?"":"on ")+Y),P&&(x=/ ([\d.+]+)$/.exec(P),Qr=x&&P.charAt(P.length-x[0].length-1)=="/",P={architecture:32,family:x&&!Qr?P.replace(x[0],""):P,version:x?x[1]:null,toString:function(){var g=this.version;return this.family+(g&&!Qr?" "+g:"")+(this.architecture==64?" 64-bit":"")}}),(x=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ht))&&!/\bi686\b/i.test(ht)?(P&&(P.architecture=64,P.family=P.family.replace(RegExp(" *"+x),"")),B&&(/\bWOW64\b/i.test(F)||je&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(F))&&X.unshift("32-bit")):P&&/^OS X/.test(P.family)&&B=="Chrome"&&parseFloat(U)>=39&&(P.architecture=64),F||(F=null);var D={};return D.description=F,D.layout=Q&&Q[0],D.manufacturer=he,D.name=B,D.prerelease=Xt,D.product=Y,D.ua=F,D.version=B&&U,D.os=P||{architecture:null,family:null,version:null,toString:function(){return"null"}},D.parse=R,D.toString=d,D.version&&X.unshift(U),D.name&&X.unshift(B),P&&B&&!(P==String(P).split(" ")[0]&&(P==B.split(" ")[0]||Y))&&X.push(Y?"("+P+")":"on "+P),X.length&&(D.description=X.join(" ")),D}var L=R();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(e.platform=L,define(function(){return L})):n&&i?k(L,function(F,A){n[A]=F}):e.platform=L}).call(Ts)});var f0=C((g7,c0)=>{"use strict";l();function ot(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function l0(t,e){for(var r="",n=0,i=-1,s=0,o,u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(o===47)break;o=47}if(o===47){if(!(i===u-1||s===1))if(i!==u-1&&s===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",n=0):(r=r.slice(0,a),n=r.length-1-r.lastIndexOf("/")),i=u,s=0;continue}}else if(r.length===2||r.length===1){r="",n=0,i=u,s=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+t.slice(i+1,u):r=t.slice(i+1,u),n=u-i-1;i=u,s=0}else o===46&&s!==-1?++s:s=-1}return r}function w2(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}var $r={resolve:function(){for(var e="",r=!1,n,i=arguments.length-1;i>=-1&&!r;i--){var s;i>=0?s=arguments[i]:(n===void 0&&(n=process.cwd()),s=n),ot(s),s.length!==0&&(e=s+"/"+e,r=s.charCodeAt(0)===47)}return e=l0(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ot(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=l0(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return ot(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];ot(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":$r.normalize(e)},relative:function(e,r){if(ot(e),ot(r),e===r||(e=$r.resolve(e),r=$r.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,s=i-n,o=1;o<r.length&&r.charCodeAt(o)===47;++o);for(var u=r.length,a=u-o,c=s<a?s:a,f=-1,p=0;p<=c;++p){if(p===c){if(a>c){if(r.charCodeAt(o+p)===47)return r.slice(o+p+1);if(p===0)return r.slice(o+p)}else s>c&&(e.charCodeAt(n+p)===47?f=p:p===0&&(f=0));break}var m=e.charCodeAt(n+p),y=r.charCodeAt(o+p);if(m!==y)break;m===47&&(f=p)}var _="";for(p=n+f+1;p<=i;++p)(p===i||e.charCodeAt(p)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(o+f):(o+=f,r.charCodeAt(o)===47&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(ot(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,i=-1,s=!0,o=e.length-1;o>=1;--o)if(r=e.charCodeAt(o),r===47){if(!s){i=o;break}}else s=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ot(e);var n=0,i=-1,s=!0,o;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var u=r.length-1,a=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!s){n=o+1;break}}else a===-1&&(s=!1,a=o+1),u>=0&&(c===r.charCodeAt(u)?--u===-1&&(i=o):(u=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":e.slice(n,i)}},extname:function(e){ot(e);for(var r=-1,n=0,i=-1,s=!0,o=0,u=e.length-1;u>=0;--u){var a=e.charCodeAt(u);if(a===47){if(!s){n=u+1;break}continue}i===-1&&(s=!1,i=u+1),a===46?r===-1?r=u:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||i===-1||o===0||o===1&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return w2("/",e)},parse:function(e){ot(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),i=n===47,s;i?(r.root="/",s=1):s=0;for(var o=-1,u=0,a=-1,c=!0,f=e.length-1,p=0;f>=s;--f){if(n=e.charCodeAt(f),n===47){if(!c){u=f+1;break}continue}a===-1&&(c=!1,a=f+1),n===46?o===-1?o=f:p!==1&&(p=1):o!==-1&&(p=-1)}return o===-1||a===-1||p===0||p===1&&o===a-1&&o===u+1?a!==-1&&(u===0&&i?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(u,a)):(u===0&&i?(r.name=e.slice(1,o),r.base=e.slice(1,a)):(r.name=e.slice(u,o),r.base=e.slice(u,a)),r.ext=e.slice(o,a)),u>0?r.dir=e.slice(0,u-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};$r.posix=$r;c0.exports=$r});var m0=C((Q7,xl)=>{"use strict";l();var Ht={};typeof xl>"u"?window.eastasianwidth=Ht:xl.exports=Ht;Ht.eastAsianWidth=function(t){var e=t.charCodeAt(0),r=t.length==2?t.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=r&&r<=57343&&(e&=1023,r&=1023,n=e<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};Ht.characterLength=function(t){var e=this.eastAsianWidth(t);return e=="F"||e=="W"||e=="A"?2:1};function D0(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}Ht.length=function(t){for(var e=D0(t),r=0,n=0;n<e.length;n++)r=r+this.characterLength(e[n]);return r};Ht.slice=function(t,e,r){textLen=Ht.length(t),e=e||0,r=r||1,e<0&&(e=textLen+e),r<0&&(r=textLen+r);for(var n="",i=0,s=D0(t),o=0;o<s.length;o++){var u=s[o],a=Ht.length(u);if(i>=e-(a==2?1:0))if(i+a<=r)n+=u;else break;i+=a}return n}});var E0=C((t4,g0)=>{"use strict";l();g0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var b0=C((l4,v2)=>{v2.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var _l=C((c4,bl)=>{"use strict";l();var _0=b0();bl.exports=_0;bl.exports.default=_0});var A0=C((p4,v0)=>{"use strict";l();v0.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var O0=C((m4,T0)=>{"use strict";l();var P2=A0();T0.exports=t=>typeof t=="string"?t.replace(P2(),""):t});var B0=C((E4,wl)=>{"use strict";l();var R0=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);wl.exports=R0;wl.exports.default=R0});var P0=C((x4,I0)=>{"use strict";l();I0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var k0=C((_4,Sl)=>{"use strict";l();var N2=O0(),k2=B0(),L2=P0(),N0=t=>{if(typeof t!="string"||t.length===0||(t=N2(t),t.length===0))return 0;t=t.replace(L2()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=k2(n)?2:1)}return e};Sl.exports=N0;Sl.exports.default=N0});var $0=C((F4,L0)=>{"use strict";l();var $2=k0();function or(t,e){if(!t)return t;e=e||{};let r=e.align||"center";if(r==="left")return t;let n=e.split||`
35
+ `,i=e.pad||" ",s=r!=="right"?M2:H2,o=!1;Array.isArray(t)||(o=!0,t=String(t).split(n));let u,a=0;return t=t.map(function(c){return c=String(c),u=$2(c),a=Math.max(u,a),{str:c,width:u}}).map(function(c){return new Array(s(a,c.width)+1).join(i)+c.str}),o?t.join(n):t}or.left=function(e){return or(e,{align:"left"})};or.center=function(e){return or(e,{align:"center"})};or.right=function(e){return or(e,{align:"right"})};L0.exports=or;function M2(t,e){return Math.floor((t-e)/2)}function H2(t,e){return t-e}});var tg=C((K4,eg)=>{"use strict";l();eg.exports=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t)});var ng=C((X4,rg)=>{"use strict";l();rg.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):tg()});var sg=C((Q4,ig)=>{"use strict";l();ig.exports=class{constructor(e){if(!(e>0)||e-1&e)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Il=C((r$,ug)=>{"use strict";l();var og=sg();ug.exports=class{constructor(e){this.hwm=e||16,this.head=new og(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new og(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Yl=C((i$,Tg)=>{"use strict";l();var{EventEmitter:ov}=require("events"),zs=new Error("Stream was destroyed"),Pl=new Error("Premature close"),hg=ng(),dg=Il(),de=(1<<27)-1,cr=1,jl=2,ur=4,Gn=8,pg=de^cr,uv=de^jl,Xn=16,Wn=32,qr=64,jt=128,Vn=256,ql=512,ar=1024,Nl=2048,Gl=4096,Wl=8192,Xe=16384,Mr=32768,Ks=65536,Dg=Vn|ql,av=Xn|Ks,lv=qr|Xn,cv=Gl|jt,fv=de^Xn,hv=de^qr,dv=de^(qr|Ks),pv=de^Ks,Dv=de^Vn,mv=de^(jt|Wl),gv=de^ar,ag=de^Dg,mg=de^Mr,Ev=de^Wn,qt=1<<17,Ur=2<<17,Zn=4<<17,lr=8<<17,Jn=16<<17,fr=32<<17,kl=64<<17,Hr=128<<17,Vl=256<<17,jr=512<<17,gg=de^(qt|Vl),Eg=de^Zn,yv=de^jr,xv=de^Jn,bv=de^lr,yg=de^Hr,_v=de^Ur,zn=Xn|qt,xg=de^zn,zl=Xe|fr,_t=ur|Gn|jl,Le=_t|cr,bg=_t|zl,Cv=Eg&hv,Kl=Hr|Mr,Fv=Kl&xg,_g=Le|Fv,wv=Le|ar|Xe,lg=Le|Xe|jt,Sv=Le|ar|jt,vv=Le|Gl|jt|Wl,Av=Le|Xn|ar|Xe|Ks,Tv=_t|ar|Xe,Ov=Wn|Le|Mr|qr,Rv=Le|jr|fr,Bv=lr|Jn,Cg=lr|qt,Iv=lr|Jn|Le|qt,cg=Le|qt|lr,Pv=Zn|qt,Nv=qt|Vl,kv=Le|jr|Cg|fr,Lv=Jn|_t|jr|fr,$v=Ur|Le|Hr|Zn,js=Symbol.asyncIterator||Symbol("asyncIterator"),qs=class{constructor(e,{highWaterMark:r=16384,map:n=null,mapWritable:i,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new dg,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||Ag,this.map=i||n,this.afterWrite=Uv.bind(this),this.afterUpdateNextTick=Gv.bind(this)}get ended(){return(this.stream._duplexState&fr)!==0}push(e){return this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=lr,!0):(this.stream._duplexState|=Bv,!1)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=bv),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|jr)&Eg}autoBatch(e,r){let n=[],i=this.stream;for(n.push(e);(i._duplexState&cg)===Cg;)n.push(i._writableState.shift());if(i._duplexState&Le)return r(null);i._writev(n,r)}update(){let e=this.stream;e._duplexState|=Ur;do{for(;(e._duplexState&cg)===lr;){let r=this.shift();e._duplexState|=Nv,e._write(r,this.afterWrite)}e._duplexState&Pv||this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=_v}updateNonPrimary(){let e=this.stream;if((e._duplexState&kv)===jr){e._duplexState=(e._duplexState|qt)&yv,e._final(Hv.bind(this));return}if((e._duplexState&_t)===ur){e._duplexState&Kl||(e._duplexState|=zn,e._destroy(Fg.bind(this)));return}(e._duplexState&_g)===cr&&(e._duplexState=(e._duplexState|zn)&pg,e._open(wg.bind(this)))}continueUpdate(){return this.stream._duplexState&Hr?(this.stream._duplexState&=yg,!0):!1}updateCallback(){(this.stream._duplexState&$v)===Zn?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&Hr||(this.stream._duplexState|=Hr,this.stream._duplexState&Ur||hg(this.afterUpdateNextTick))}},Ll=class{constructor(e,{highWaterMark:r=16384,map:n=null,mapReadable:i,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new dg,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.byteLength=o||s||Ag,this.map=i||n,this.pipeTo=null,this.afterRead=jv.bind(this),this.afterUpdateNextTick=qv.bind(this)}get ended(){return(this.stream._duplexState&Xe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ql,this.pipeTo=e,this.pipeline=new Ml(this.stream,e,r),r&&this.stream.on("error",fg),Yn(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",fg),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let n=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",n),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",Mv.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|ar)&dv,!1):(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|jt)&pv,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=mv),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let n=0;n<r.length-1;n++){let i=r[n];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&lg)===jt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=ag),e._duplexState&Nl&&e.emit("data",r),r}return null}drain(){let e=this.stream;for(;(e._duplexState&lg)===jt&&e._duplexState&Dg;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=ag),e._duplexState&Nl&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Wn;do{for(this.drain();this.buffered<this.highWaterMark&&!(e._duplexState&Av);)e._duplexState|=av,e._read(this.afterRead),this.drain();(e._duplexState&vv)===cv&&(e._duplexState|=Wl,e.emit("readable")),e._duplexState&lv||this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Ev}updateNonPrimary(){let e=this.stream;if((e._duplexState&Sv)===ar&&(e._duplexState=(e._duplexState|Xe)&gv,e.emit("end"),(e._duplexState&bg)===zl&&(e._duplexState|=ur),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&_t)===ur){e._duplexState&Kl||(e._duplexState|=zn,e._destroy(Fg.bind(this)));return}(e._duplexState&_g)===cr&&(e._duplexState=(e._duplexState|zn)&pg,e._open(wg.bind(this)))}continueUpdate(){return this.stream._duplexState&Mr?(this.stream._duplexState&=mg,!0):!1}updateCallback(){(this.stream._duplexState&Ov)===qr?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&Mr||(this.stream._duplexState|=Mr,this.stream._duplexState&Wn||hg(this.afterUpdateNextTick))}},$l=class{constructor(e){this.data=null,this.afterTransform=Vv.bind(e),this.afterFinal=null}},Ml=class{constructor(e,r,n){this.from=e,this.to=r,this.afterPipe=n,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){(!(this.from._duplexState&Xe)||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){e._duplexState&Xe||this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function Mv(){this.stream._duplexState|=ql,this.updateCallback()}function Hv(t){let e=this.stream;t&&e.destroy(t),e._duplexState&_t||(e._duplexState|=fr,e.emit("finish")),(e._duplexState&bg)===zl&&(e._duplexState|=ur),e._duplexState&=gg,e._duplexState&Ur?this.updateNextTick():this.update()}function Fg(t){let e=this.stream;!t&&this.error!==zs&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Gn,e.emit("close");let r=e._readableState,n=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),n!==null){for(;n.drains!==null&&n.drains.length>0;)n.drains.shift().resolve(!1);n.pipeline!==null&&n.pipeline.done(e,t)}}function Uv(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=gg,this.drains!==null&&Wv(this.drains),(e._duplexState&Iv)===Jn&&(e._duplexState&=xv,(e._duplexState&kl)===kl&&e.emit("drain")),this.updateCallback()}function jv(t){t&&this.stream.destroy(t),this.stream._duplexState&=fv,this.updateCallback()}function qv(){this.stream._duplexState&Wn||(this.stream._duplexState&=mg,this.update())}function Gv(){this.stream._duplexState&Ur||(this.stream._duplexState&=yg,this.update())}function Wv(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function wg(t){let e=this.stream;t&&e.destroy(t),e._duplexState&ur||(e._duplexState&wv||(e._duplexState|=qr),e._duplexState&Rv||(e._duplexState|=Zn),e.emit("open")),e._duplexState&=xg,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function Vv(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}var Kn=class extends ov{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",Jv.bind(this)))}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Gn)!==0}get destroying(){return(this._duplexState&_t)!==0}destroy(e){this._duplexState&_t||(e||(e=zs),this._duplexState=(this._duplexState|ur)&Cv,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=jl,this._predestroy(),this._duplexState&=uv,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}on(e,r){return this._readableState!==null&&(e==="data"&&(this._duplexState|=Nl|Vn,this._readableState.updateNextTick()),e==="readable"&&(this._duplexState|=Gl,this._readableState.updateNextTick())),this._writableState!==null&&e==="drain"&&(this._duplexState|=kl,this._writableState.updateNextTick()),super.on(e,r)}},Gs=class t extends Kn{constructor(e){super(e),this._duplexState|=cr|fr,this._readableState=new Ll(this,e),e&&(e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=Vn,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=Dv,this}static _fromAsyncIterator(e,r){let n,i=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){n=e.return()},destroy(o){if(!n)return o(null);n.then(o.bind(null,null)).catch(o)}});return i;function s(o){o.done?i.push(null):i.push(o.value)}}static from(e,r){if(Xv(e))return e;if(e[js])return this._fromAsyncIterator(e[js](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let n=0;return new t({...r,read(i){this.push(n===e.length?null:e[n++]),i(null)}})}static isBackpressured(e){return(e._duplexState&Tv)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Vn)===0}[js](){let e=this,r=null,n=null,i=null;return this.on("error",c=>{r=c}),this.on("readable",s),this.on("close",o),{[js](){return this},next(){return new Promise(function(c,f){n=c,i=f;let p=e.read();p!==null?u(p):e._duplexState&Gn&&u(null)})},return(){return a(null)},throw(c){return a(c)}};function s(){n!==null&&u(e.read())}function o(){n!==null&&u(null)}function u(c){i!==null&&(r?i(r):c===null&&!(e._duplexState&Xe)?i(zs):n({value:c,done:c===null}),i=n=null)}function a(c){return e.destroy(c),new Promise((f,p)=>{if(e._duplexState&Gn)return f({value:void 0,done:!0});e.once("close",function(){c?p(c):f({value:void 0,done:!0})})})}}},Hl=class extends Kn{constructor(e){super(e),this._duplexState|=cr|Xe,this._writableState=new qs(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&Lv)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=r.queue.length+(e._duplexState&Vl?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(i=>{r.drains.push({writes:n,resolve:i})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Ws=class extends Gs{constructor(e){super(e),this._duplexState=cr,this._writableState=new qs(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vs=class extends Ws{constructor(e){super(e),this._transformState=new $l(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(zv.bind(this))}},Ul=class extends Vs{};function zv(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function Kv(...t){return new Promise((e,r)=>Sg(...t,n=>{if(n)return r(n);e()}))}function Sg(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],n=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,o=null;for(let c=1;c<r.length;c++)s=r[c],Yn(i)?i.pipe(s,a):(u(i,!0,c>1,a),i.pipe(s)),i=s;if(n){let c=!1,f=Yn(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",p=>{o===null&&(o=p)}),s.on("finish",()=>{c=!0,f||n(o)}),f&&s.on("close",()=>n(o||(c?null:Pl)))}return s;function u(c,f,p,m){c.on("error",m),c.on("close",y);function y(){if(f&&c._readableState&&!c._readableState.ended||p&&c._writableState&&!c._writableState.ended)return m(Pl)}}function a(c){if(!(!c||o)){o=c;for(let f of r)f.destroy(c)}}}function vg(t){return!!t._readableState||!!t._writableState}function Yn(t){return typeof t._duplexState=="number"&&vg(t)}function Yv(t){let e=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return e===zs?null:e}function Xv(t){return Yn(t)&&t.readable}function Zv(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function Ag(t){return Zv(t)?t.byteLength:1024}function fg(){}function Jv(){this.destroy(new Error("Stream aborted."))}Tg.exports={pipeline:Sg,pipelinePromise:Kv,isStream:vg,isStreamx:Yn,getStreamError:Yv,Stream:Kn,Writable:Hl,Readable:Gs,Duplex:Ws,Transform:Vs,PassThrough:Ul}});var Ys=C((o$,Og)=>{"use strict";l();function Qv(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function eA(t){return Buffer.isEncoding(t)}function tA(t,e,r){return Buffer.alloc(t,e,r)}function rA(t){return Buffer.allocUnsafe(t)}function nA(t){return Buffer.allocUnsafeSlow(t)}function iA(t,e){return Buffer.byteLength(t,e)}function sA(t,e){return Buffer.compare(t,e)}function oA(t,e){return Buffer.concat(t,e)}function uA(t,e,r,n,i){return pe(t).copy(e,r,n,i)}function aA(t,e){return pe(t).equals(e)}function lA(t,e,r,n,i){return pe(t).fill(e,r,n,i)}function cA(t,e,r){return Buffer.from(t,e,r)}function fA(t,e,r,n){return pe(t).includes(e,r,n)}function hA(t,e,r,n){return pe(t).indexOf(e,r,n)}function dA(t,e,r,n){return pe(t).lastIndexOf(e,r,n)}function pA(t){return pe(t).swap16()}function DA(t){return pe(t).swap32()}function mA(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function gA(t,e,r,n){return pe(t).toString(e,r,n)}function EA(t,e,r,n,i){return pe(t).write(e,r,n,i)}function yA(t,e,r){return pe(t).writeDoubleLE(e,r)}function xA(t,e,r){return pe(t).writeFloatLE(e,r)}function bA(t,e,r){return pe(t).writeUInt32LE(e,r)}function _A(t,e,r){return pe(t).writeInt32LE(e,r)}function CA(t,e){return pe(t).readDoubleLE(e)}function FA(t,e){return pe(t).readFloatLE(e)}function wA(t,e){return pe(t).readUInt32LE(e)}function SA(t,e){return pe(t).readInt32LE(e)}Og.exports={isBuffer:Qv,isEncoding:eA,alloc:tA,allocUnsafe:rA,allocUnsafeSlow:nA,byteLength:iA,compare:sA,concat:oA,copy:uA,equals:aA,fill:lA,from:cA,includes:fA,indexOf:hA,lastIndexOf:dA,swap16:pA,swap32:DA,swap64:mA,toBuffer:pe,toString:gA,write:EA,writeDoubleLE:yA,writeFloatLE:xA,writeUInt32LE:bA,writeInt32LE:_A,readDoubleLE:CA,readFloatLE:FA,readUInt32LE:wA,readInt32LE:SA}});var Jl=C(Wr=>{"use strict";l();var ee=Ys(),vA="0000000000000000000",AA="7777777777777777777",Xs="0".charCodeAt(0),Rg=ee.from([117,115,116,97,114,0]),TA=ee.from([Xs,Xs]),OA=ee.from([117,115,116,97,114,32]),RA=ee.from([32,0]),BA=4095,Qn=257,Zl=263;Wr.decodeLongPath=function(e,r){return Gr(e,0,e.length,r)};Wr.encodePax=function(e){let r="";e.name&&(r+=Xl(" path="+e.name+`
36
36
  `)),e.linkname&&(r+=Xl(" linkpath="+e.linkname+`
37
37
  `));let n=e.pax;if(n)for(let i in n)r+=Xl(" "+i+"="+n[i]+`
38
- `);return ee.from(r)};Wr.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(e.subarray(0,n).toString(),10);if(!i)return r;let s=ee.toString(e.subarray(n+1,i-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return r};Wr.encode=function(e){let r=ee.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ee.byteLength(n)!==n.length)return null;for(;ee.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return ee.byteLength(n)>100||ee.byteLength(i)>155||e.linkname&&ee.byteLength(e.linkname)>100?null:(ee.write(r,n),ee.write(r,Wt(e.mode&RA,6),100),ee.write(r,Wt(e.uid,6),108),ee.write(r,Wt(e.gid,6),116),$A(e.size,r,124),ee.write(r,Wt(e.mtime.getTime()/1e3|0,11),136),r[156]=Xs+kA(e.type),e.linkname&&ee.write(r,e.linkname,157),ee.copy(Rg,r,Qn),ee.copy(AA,r,Zl),e.uname&&ee.write(r,e.uname,265),e.gname&&ee.write(r,e.gname,297),ee.write(r,Wt(e.devmajor||0,6),329),ee.write(r,Wt(e.devminor||0,6),337),i&&ee.write(r,i,345),ee.write(r,Wt(Ig(r),6),148),r)};Wr.decode=function(e,r,n){let i=e[156]===0?0:e[156]-Xs,s=Gr(e,0,100,r),o=Gt(e,100,8),u=Gt(e,108,8),a=Gt(e,116,8),c=Gt(e,124,12),f=Gt(e,136,12),p=NA(i),m=e[157]===0?null:Gr(e,157,100,r),y=Gr(e,265,32),_=Gr(e,297,32),O=Gt(e,329,8),k=Gt(e,337,8),H=Ig(e);if(H===8*32)return null;if(H!==Gt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(BA(e))e[345]&&(s=Gr(e,345,155,r)+"/"+s);else if(!IA(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:o,uid:u,gid:a,size:c,mtime:new Date(1e3*f),type:p,linkname:m,uname:y,gname:_,devmajor:O,devminor:k,pax:null}};function BA(t){return ee.equals(Rg,t.subarray(Qn,Qn+6))}function IA(t){return ee.equals(TA,t.subarray(Qn,Qn+6))&&ee.equals(OA,t.subarray(Zl,Zl+2))}function PA(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function NA(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function kA(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function Bg(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function Ig(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Wt(t,e){return t=t.toString(8),t.length>e?vA.slice(0,e)+" ":SA.slice(0,e-t.length)+t+" "}function LA(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function $A(t,e,r){t.toString(8).length>11?LA(t,e,r):ee.write(e,Wt(t,11),r)}function MA(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}function Gt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return MA(t);{for(;e<t.length&&t[e]===32;)e++;let n=PA(Bg(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(t.subarray(e,n).toString(),8)}}function Gr(t,e,r,n){return ee.toString(t.subarray(e,Bg(t,0,e,e+r)),n)}function Xl(t){let e=ee.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $g=C((c$,Lg)=>{"use strict";l();var{Writable:HA,Readable:UA,getStreamError:Pg}=Yl(),jA=Il(),Ng=Ys(),Vr=Jl(),qA=Ng.alloc(0),ec=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new jA,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return qA;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return Ng.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},tc=class extends UA{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(Pg(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=kg(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},rc=class extends HA{constructor(e){super(e),e||(e={}),this._buffer=new ec,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=Ql,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Vr.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Vr.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Vr.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Vr.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Vr.decodePax(e):Object.assign({},this._paxGlobal,Vr.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=kg(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new tc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=Ql,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(Pg(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,n=null,i=null,s=null,o=this;return this.on("entry",c),this.on("error",m=>{e=m}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(a)},return(){return p(null)},throw(m){return p(m)}};function u(m){if(!s)return;let y=s;s=null,y(m)}function a(m,y){if(e)return y(e);if(i){m({value:i,done:!1}),i=null;return}r=m,n=y,u(null),o._finished&&r&&(r({value:void 0,done:!0}),r=n=null)}function c(m,y,_){s=_,y.on("error",Ql),r?(r({value:y,done:!1}),r=n=null):i=y}function f(){u(e),r&&(e?n(e):r({value:void 0,done:!0}),r=n=null)}function p(m){return o.destroy(m),u(m),new Promise((y,_)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){m?_(m):y({value:void 0,done:!0})})})}}};Lg.exports=function(e){return new rc(e)};function Ql(){}function kg(t){return t&=511,t&&512-t}});var Hg=C((h$,nc)=>{"use strict";l();var Mg={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{nc.exports=require("fs").constants||Mg}catch{nc.exports=Mg}});var Wg=C((p$,Gg)=>{"use strict";l();var{Readable:GA,Writable:WA,getStreamError:Ug}=Yl(),hr=Ys(),zr=Hg(),Zs=Jl(),VA=493,zA=420,jg=hr.alloc(1024),sc=class extends WA{constructor(e,r,n){super({mapWritable:YA,eagerOpen:!0}),this.written=0,this.header=r,this._callback=n,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?hr.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?hr.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),qg(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return Ug(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},oc=class extends GA{constructor(e){super(e),this._drain=ic,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,n){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(n=r,r=null),n||(n=ic),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=KA(e.mode)),e.mode||(e.mode=e.type==="directory"?VA:zA),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=hr.from(r));let i=new sc(this,e,n);return hr.isBuffer(r)?(e.size=r.byteLength,i.write(r),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(jg),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=Zs.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Zs.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(Zs.encode(n)),this.push(r),qg(this,r.byteLength),n.size=e.size,n.type=e.type,this.push(Zs.encode(n))}_doDrain(){let e=this._drain;this._drain=ic,e()}_predestroy(){let e=Ug(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};Gg.exports=function(e){return new oc(e)};function KA(t){switch(t&zr.S_IFMT){case zr.S_IFBLK:return"block-device";case zr.S_IFCHR:return"character-device";case zr.S_IFDIR:return"directory";case zr.S_IFIFO:return"fifo";case zr.S_IFLNK:return"symlink"}return"file"}function ic(){}function qg(t,e){e&=511,e&&t.push(jg.subarray(0,512-e))}function YA(t){return hr.isBuffer(t)?t:hr.from(t)}});var Vg=C(uc=>{"use strict";l();uc.extract=$g();uc.pack=Wg()});var Yg=C((E$,Kg)=>{"use strict";l();Kg.exports=zg;function zg(t,e){if(t&&e)return zg(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(u){s[u]=o[u]}),s}}});var lc=C((x$,ac)=>{"use strict";l();var Xg=Yg();ac.exports=Xg(Js);ac.exports.strict=Xg(Zg);Js.proto=Js(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Js(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Zg(this)},configurable:!0})});function Js(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Zg(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var eE=C((_$,Qg)=>{"use strict";l();var XA=lc(),ZA=function(){},JA=function(t){return t.setHeader&&typeof t.abort=="function"},QA=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Jg=function(t,e,r){if(typeof e=="function")return Jg(t,null,e);e||(e={}),r=XA(r||ZA);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,u=!1,a=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},p=function(k){r.call(t,k?new Error("exited with error code: "+k):null)},m=function(k){r.call(t,k)},y=function(){process.nextTick(_)},_=function(){if(!u){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},O=function(){t.req.on("finish",c)};return JA(t)?(t.on("complete",c),t.on("abort",y),t.req?O():t.on("request",O)):o&&!n&&(t.on("end",a),t.on("close",a)),QA(t)&&t.on("exit",p),t.on("end",f),t.on("finish",c),e.error!==!1&&t.on("error",m),t.on("close",y),function(){u=!0,t.removeListener("complete",c),t.removeListener("abort",y),t.removeListener("request",O),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",p),t.removeListener("end",f),t.removeListener("error",m),t.removeListener("close",y)}};Qg.exports=Jg});var nE=C((F$,rE)=>{"use strict";l();var e1=lc(),t1=eE(),cc=require("fs"),ei=function(){},r1=/^v?\.0/.test(process.version),Qs=function(t){return typeof t=="function"},n1=function(t){return!r1||!cc?!1:(t instanceof(cc.ReadStream||ei)||t instanceof(cc.WriteStream||ei))&&Qs(t.close)},i1=function(t){return t.setHeader&&Qs(t.abort)},s1=function(t,e,r,n){n=e1(n);var i=!1;t.on("close",function(){i=!0}),t1(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,n1(t))return t.close(ei);if(i1(t))return t.abort();if(Qs(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},tE=function(t){t()},o1=function(t,e){return t.pipe(e)},u1=function(){var t=Array.prototype.slice.call(arguments),e=Qs(t[t.length-1]||ei)&&t.pop()||ei;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,u=s>0;return s1(i,o,u,function(a){r||(r=a),a&&n.forEach(tE),!o&&(n.forEach(tE),e(r))})});return t.reduce(o1)};rE.exports=u1});var uE=C((S$,oE)=>{"use strict";l();var eo=require("path"),iE=require("fs"),sE=parseInt("0777",8);oE.exports=Kr.mkdirp=Kr.mkdirP=Kr;function Kr(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,s=e.fs||iE;i===void 0&&(i=sE&~process.umask()),n||(n=null);var o=r||function(){};t=eo.resolve(t),s.mkdir(t,i,function(u){if(!u)return n=n||t,o(null,n);switch(u.code){case"ENOENT":Kr(eo.dirname(t),e,function(a,c){a?o(a,c):Kr(t,e,o,c)});break;default:s.stat(t,function(a,c){a||!c.isDirectory()?o(u,n):o(null,n)});break}})}Kr.sync=function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||iE;i===void 0&&(i=sE&~process.umask()),n||(n=null),e=eo.resolve(e);try{s.mkdirSync(e,i),n=n||e}catch(u){switch(u.code){case"ENOENT":n=t(eo.dirname(e),r,n),t(e,r,n);break;default:var o;try{o=s.statSync(e)}catch{throw u}if(!o.isDirectory())throw u;break}}return n}});var DE=C(hc=>{"use strict";l();var aE=Vg(),lE=nE(),a1=uE(),cE=require("fs"),$e=require("path"),ti=process.platform==="win32";hc.pack=function(e,r){e||(e="."),r||(r={});let n=r.fs||cE,i=r.ignore||r.filter||ri,s=r.mapStream||dE,o=f1(n,r.dereference?n.stat:n.lstat,e,i,r.entries,r.sort),u=r.strict!==!1,a=typeof r.umask=="number"?~r.umask:~fE(),c=r.pack||aE.pack(),f=r.finish||ri,p=r.map||ri,m=typeof r.dmode=="number"?r.dmode:0,y=typeof r.fmode=="number"?r.fmode:0;r.strip&&(p=pE(p,r.strip)),r.readable&&(m|=parseInt(555,8),y|=parseInt(444,8)),r.writable&&(m|=parseInt(333,8),y|=parseInt(222,8)),k();function _(H,q){n.readlink($e.join(e,H),function(j,T){if(j)return c.destroy(j);q.linkname=fc(T),c.entry(q,k)})}function O(H,q,j){if(H)return c.destroy(H);if(!q)return r.finalize!==!1&&c.finalize(),f(c);if(j.isSocket())return k();let T={name:fc(q),mode:(j.mode|(j.isDirectory()?m:y))&a,mtime:j.mtime,size:j.size,type:"file",uid:j.uid,gid:j.gid};if(j.isDirectory())return T.size=0,T.type="directory",T=p(T)||T,c.entry(T,k);if(j.isSymbolicLink())return T.size=0,T.type="symlink",T=p(T)||T,_(q,T);if(T=p(T)||T,!j.isFile())return u?c.destroy(new Error("unsupported type for "+q)):k();let $=c.entry(T,k),R=s(n.createReadStream($e.join(e,q),{start:0,end:T.size>0?T.size-1:T.size}),T);R.on("error",function(L){$.destroy(L)}),lE(R,$)}function k(H){if(H)return c.destroy(H);o(O)}return c};function l1(t){return t.length?t[t.length-1]:null}function c1(){return process.getuid?process.getuid():-1}function fE(){return process.umask?process.umask():0}hc.extract=function(e,r){e||(e="."),r||(r={});let n=r.fs||cE,i=r.ignore||r.filter||ri,s=r.mapStream||dE,o=r.chown!==!1&&!ti&&c1()===0,u=r.extract||aE.extract(),a=[],c=new Date,f=typeof r.umask=="number"?~r.umask:~fE(),p=r.strict!==!1,m=r.map||ri,y=typeof r.dmode=="number"?r.dmode:0,_=typeof r.fmode=="number"?r.fmode:0;return r.strip&&(m=pE(m,r.strip)),r.readable&&(y|=parseInt(555,8),_|=parseInt(444,8)),r.writable&&(y|=parseInt(333,8),_|=parseInt(222,8)),u.on("entry",O),r.finish&&u.on("finish",r.finish),u;function O(T,$,R){T=m(T)||T,T.name=fc(T.name);let L=$e.join(e,$e.join("/",T.name));if(i(L,T))return $.resume(),R();if(T.type==="directory")return a.push([L,T.mtime]),j(L,{fs:n,own:o,uid:T.uid,gid:T.gid,mode:T.mode},A);let F=$e.dirname(L);hE(n,F,$e.join(e,"."),function(G,Z){if(G)return R(G);if(!Z)return R(new Error(F+" is not a valid path"));j(F,{fs:n,own:o,uid:T.uid,gid:T.gid,mode:493},function(te){if(te)return R(te);switch(T.type){case"file":return V();case"link":return I();case"symlink":return N()}if(p)return R(new Error("unsupported type for "+L+" ("+T.type+")"));$.resume(),R()})});function A(G){if(G)return R(G);H(L,T,function(Z){if(Z)return R(Z);if(ti)return R();q(L,T,R)})}function N(){if(ti)return R();n.unlink(L,function(){n.symlink(T.linkname,L,A)})}function I(){if(ti)return R();n.unlink(L,function(){let G=$e.join(e,$e.join("/",T.linkname));n.link(G,L,function(Z){if(Z&&Z.code==="EPERM"&&r.hardlinkAsFilesFallback)return $=n.createReadStream(G),V();A(Z)})})}function V(){let G=n.createWriteStream(L),Z=s($,T);G.on("error",function(te){Z.destroy(te)}),lE(Z,G,function(te){if(te)return R(te);G.on("close",A)})}}function k(T,$){let R;for(;(R=l1(a))&&T.slice(0,R[0].length)!==R[0];)a.pop();if(!R)return $();n.utimes(R[0],c,R[1],$)}function H(T,$,R){if(r.utimes===!1)return R();if($.type==="directory")return n.utimes(T,c,$.mtime,R);if($.type==="symlink")return k(T,R);n.utimes(T,c,$.mtime,function(L){if(L)return R(L);k(T,R)})}function q(T,$,R){let L=$.type==="symlink",F=L?n.lchmod:n.chmod,A=L?n.lchown:n.chown;if(!F)return R();let N=($.mode|($.type==="directory"?y:_))&f;A&&o?A.call(n,T,$.uid,$.gid,I):I(null);function I(V){if(V)return R(V);if(!F)return R();F.call(n,T,N,R)}}function j(T,$,R){n.stat(T,function(L){if(!L)return R(null);if(L.code!=="ENOENT")return R(L);a1(T,{fs:$.fs,mode:$.mode},function(F,A){if(F)return R(F);q(T,$,R)})})}};function hE(t,e,r,n){if(e===r)return n(null,!0);t.lstat(e,function(i,s){if(i&&i.code==="ENOENT")return hE(t,$e.join(e,".."),r,n);if(i)return n(i);n(null,s.isDirectory())})}function ri(){}function dE(t){return t}function fc(t){return ti?t.replace(/\\/g,"/").replace(/[:?<>|]/g,"_"):t}function f1(t,e,r,n,i,s){i||(i=["."]);let o=i.slice(0);return function(a){if(!o.length)return a(null);let c=o.shift(),f=$e.join(r,c);e.call(t,f,function(p,m){if(p)return a(i.indexOf(c)===-1&&p.code==="ENOENT"?null:p);if(!m.isDirectory())return a(null,c,m);t.readdir(f,function(y,_){if(y)return a(y);s&&_.sort();for(let O=0;O<_.length;O++)n($e.join(r,c,_[O]))||o.push($e.join(c,_[O]));a(null,c,m)})})}}function pE(t,e){return function(r){r.name=r.name.split("/").slice(e).join("/");let n=r.linkname;return n&&(r.type==="link"||$e.isAbsolute(n))&&(r.linkname=n.split("/").slice(e).join("/")),t(r)}}});var FE=C((P$,CE)=>{"use strict";l();function dr(t){this._maxSize=t,this.clear()}dr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};dr.prototype.get=function(t){return this._values[t]};dr.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var h1=/[^.^\]^[]+|(?=\[\]|\.\.)/g,_E=/^\d+$/,d1=/^\d/,p1=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,D1=/^\s*(['"]?)(.*?)(\1)\s*$/,Dc=512,yE=new dr(Dc),xE=new dr(Dc),bE=new dr(Dc);CE.exports={Cache:dr,split:pc,normalizePath:dc,setter:function(t){var e=dc(t);return xE.get(t)||xE.set(t,function(n,i){for(var s=0,o=e.length,u=n;s<o-1;){var a=e[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return n;u=u[e[s++]]}u[e[s]]=i})},getter:function(t,e){var r=dc(t);return bE.get(t)||bE.set(t,function(i){for(var s=0,o=r.length;s<o;)if(i!=null||!e)i=i[r[s++]];else return;return i})},join:function(t){return t.reduce(function(e,r){return e+(mc(r)||_E.test(r)?"["+r+"]":(e?".":"")+r)},"")},forEach:function(t,e,r){m1(Array.isArray(t)?t:pc(t),e,r)}};function dc(t){return yE.get(t)||yE.set(t,pc(t).map(function(e){return e.replace(D1,"$2")}))}function pc(t){return t.match(h1)||[""]}function m1(t,e,r){var n=t.length,i,s,o,u;for(s=0;s<n;s++)i=t[s],i&&(y1(i)&&(i='"'+i+'"'),u=mc(i),o=!u&&/^\d+$/.test(i),e.call(r,i,u,o,s,t))}function mc(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function g1(t){return t.match(d1)&&!t.match(_E)}function E1(t){return p1.test(t)}function y1(t){return!mc(t)&&(g1(t)||E1(t))}});var vE=C((k$,SE)=>{"use strict";l();var x1=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,to=t=>t.match(x1)||[],ro=t=>t[0].toUpperCase()+t.slice(1),gc=(t,e)=>to(t).join(e).toLowerCase(),wE=t=>to(t).reduce((e,r)=>`${e}${e?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),b1=t=>ro(wE(t)),_1=t=>gc(t,"_"),C1=t=>gc(t,"-"),F1=t=>ro(gc(t," ")),w1=t=>to(t).map(ro).join(" ");SE.exports={words:to,upperFirst:ro,camelCase:wE,pascalCase:b1,snakeCase:_1,kebabCase:C1,sentenceCase:F1,titleCase:w1}});var TE=C(($$,Ec)=>{"use strict";l();Ec.exports=function(t){return AE(S1(t),t)};Ec.exports.array=AE;function AE(t,e){var r=t.length,n=new Array(r),i={},s=r,o=v1(e),u=A1(t);for(e.forEach(function(c){if(!u.has(c[0])||!u.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||a(t[s],s,new Set);return n;function a(c,f,p){if(p.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!u.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[f]){i[f]=!0;var y=o.get(c)||new Set;if(y=Array.from(y),f=y.length){p.add(c);do{var _=y[--f];a(_,u.get(_),p)}while(f);p.delete(c)}n[--r]=c}}}function S1(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var i=t[r];e.add(i[0]),e.add(i[1])}return Array.from(e)}function v1(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var i=t[r];e.has(i[0])||e.set(i[0],new Set),e.has(i[1])||e.set(i[1],new Set),e.get(i[0]).add(i[1])}return e}function A1(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}});var jE=C((j$,UE)=>{"use strict";l();var pr=class t extends Error{constructor(e,r,n){super("[ParserError] "+e,r,n),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}},Eo=class{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},si=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Eo(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e),this.ii=-1,this.char=-1;let r;for(;r===!1||this.nextChar();)r=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let e;do e=this.state.parser,this.runOne();while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if(typeof e!="function")throw new pr("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,r){r&&this.next(r),this.stack.push(this.state),this.state=new Eo(e)}callNow(e,r){return this.call(e,r),this.runOne()}return(e){if(this.stack.length===0)throw this.error(new pr("Stack underflow"));e===void 0&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===1114112)throw this.error(new pr("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new pr("Must declare a parseStart method")}};si.END=1114112;si.Error=pr;UE.exports=si});var GE=C((G$,qE)=>{"use strict";l();qE.exports=t=>{let e=new Date(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var yo=C((V$,WE)=>{"use strict";l();WE.exports=(t,e)=>{for(e=String(e);e.length<t;)e="0"+e;return e}});var zE=C((K$,VE)=>{"use strict";l();var Jr=yo(),Cc=class extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){let e=`${this.getUTCFullYear()}-${Jr(2,this.getUTCMonth()+1)}-${Jr(2,this.getUTCDate())}`,r=`${Jr(2,this.getUTCHours())}:${Jr(2,this.getUTCMinutes())}:${Jr(2,this.getUTCSeconds())}.${Jr(3,this.getUTCMilliseconds())}`;return`${e}T${r}`}};VE.exports=t=>{let e=new Cc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var XE=C((X$,YE)=>{"use strict";l();var KE=yo(),nT=global.Date,Fc=class extends nT{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${KE(2,this.getUTCMonth()+1)}-${KE(2,this.getUTCDate())}`}};YE.exports=t=>{let e=new Fc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var JE=C((J$,ZE)=>{"use strict";l();var xo=yo(),wc=class extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${xo(2,this.getUTCHours())}:${xo(2,this.getUTCMinutes())}:${xo(2,this.getUTCSeconds())}.${xo(3,this.getUTCMilliseconds())}`}};ZE.exports=t=>{let e=new wc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var bo=C((exports,module)=>{"use strict";l();module.exports=makeParserClass(jE());module.exports.makeParserClass=makeParserClass;var TomlError=class t extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,t),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=t=>{let e=new TomlError(t.message);return e.code=t.code,e.wrapped=t,e};module.exports.TomlError=TomlError;var createDateTime=GE(),createDateTimeFloat=zE(),createDate=XE(),createTime=JE(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
39
- `,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}function isBit(t){return t===CHAR_1||t===CHAR_0}function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}function makeParserClass(t){class e extends t{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(n){let i=this.ctx,s=n.key.pop();for(let o of n.key){if(hasKey(i,o)&&(!isTable(i[o])||i[o][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[o]=i[o]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(n){return this.state.resultTable?this.state.resultTable.push(n):this.state.resultTable=[n],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(n){return this.returnNow({key:this.state.resultTable,value:n})}parseComment(){do if(this.char===t.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)&&(!isTable(this.ctx[n])||this.ctx[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[n]=this.ctx[n]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)||(this.ctx[n]=List()),isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[n])){let i=Table();this.ctx[n].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else{if(isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(n){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===t.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(n){return this.returnNow(n)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===t.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===t.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===t.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let n="\\u00";return this.char<16&&(n+="0"),n+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${n} instead`))}recordMultiEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(n){try{let i=parseInt(n,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===t.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(n){if(this.state.resultArr){let i=this.state.resultArr[_contentType],s=tomlType(n);if(i!==s)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${s}`))}else this.state.resultArr=InlineList(tomlType(n));return isFloat(n)||isInteger(n)?this.state.resultArr.push(n.valueOf()):this.state.resultArr.push(n),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===t.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(n){let i=this.state.resultTable,s=n.key.pop();for(let o of n.key){if(hasKey(i,o)&&(!isTable(i[o])||i[o][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[o]=i[o]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===t.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return e}});var _o=C((tM,QE)=>{"use strict";l();QE.exports=iT;function iT(t,e){if(t.pos==null||t.line==null)return t;let r=t.message;if(r+=` at row ${t.line+1}, col ${t.col+1}, pos ${t.pos}:
38
+ `);return ee.from(r)};Wr.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(e.subarray(0,n).toString(),10);if(!i)return r;let s=ee.toString(e.subarray(n+1,i-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return r};Wr.encode=function(e){let r=ee.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ee.byteLength(n)!==n.length)return null;for(;ee.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return ee.byteLength(n)>100||ee.byteLength(i)>155||e.linkname&&ee.byteLength(e.linkname)>100?null:(ee.write(r,n),ee.write(r,Wt(e.mode&BA,6),100),ee.write(r,Wt(e.uid,6),108),ee.write(r,Wt(e.gid,6),116),MA(e.size,r,124),ee.write(r,Wt(e.mtime.getTime()/1e3|0,11),136),r[156]=Xs+LA(e.type),e.linkname&&ee.write(r,e.linkname,157),ee.copy(Rg,r,Qn),ee.copy(TA,r,Zl),e.uname&&ee.write(r,e.uname,265),e.gname&&ee.write(r,e.gname,297),ee.write(r,Wt(e.devmajor||0,6),329),ee.write(r,Wt(e.devminor||0,6),337),i&&ee.write(r,i,345),ee.write(r,Wt(Ig(r),6),148),r)};Wr.decode=function(e,r,n){let i=e[156]===0?0:e[156]-Xs,s=Gr(e,0,100,r),o=Gt(e,100,8),u=Gt(e,108,8),a=Gt(e,116,8),c=Gt(e,124,12),f=Gt(e,136,12),p=kA(i),m=e[157]===0?null:Gr(e,157,100,r),y=Gr(e,265,32),_=Gr(e,297,32),O=Gt(e,329,8),k=Gt(e,337,8),M=Ig(e);if(M===8*32)return null;if(M!==Gt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(IA(e))e[345]&&(s=Gr(e,345,155,r)+"/"+s);else if(!PA(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:o,uid:u,gid:a,size:c,mtime:new Date(1e3*f),type:p,linkname:m,uname:y,gname:_,devmajor:O,devminor:k,pax:null}};function IA(t){return ee.equals(Rg,t.subarray(Qn,Qn+6))}function PA(t){return ee.equals(OA,t.subarray(Qn,Qn+6))&&ee.equals(RA,t.subarray(Zl,Zl+2))}function NA(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function kA(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function LA(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function Bg(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function Ig(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Wt(t,e){return t=t.toString(8),t.length>e?AA.slice(0,e)+" ":vA.slice(0,e-t.length)+t+" "}function $A(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function MA(t,e,r){t.toString(8).length>11?$A(t,e,r):ee.write(e,Wt(t,11),r)}function HA(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}function Gt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return HA(t);{for(;e<t.length&&t[e]===32;)e++;let n=NA(Bg(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(t.subarray(e,n).toString(),8)}}function Gr(t,e,r,n){return ee.toString(t.subarray(e,Bg(t,0,e,e+r)),n)}function Xl(t){let e=ee.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $g=C((c$,Lg)=>{"use strict";l();var{Writable:UA,Readable:jA,getStreamError:Pg}=Yl(),qA=Il(),Ng=Ys(),Vr=Jl(),GA=Ng.alloc(0),ec=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new qA,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return GA;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return Ng.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},tc=class extends jA{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(Pg(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=kg(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},rc=class extends UA{constructor(e){super(e),e||(e={}),this._buffer=new ec,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=Ql,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Vr.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Vr.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Vr.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Vr.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Vr.decodePax(e):Object.assign({},this._paxGlobal,Vr.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=kg(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new tc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=Ql,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(Pg(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,n=null,i=null,s=null,o=this;return this.on("entry",c),this.on("error",m=>{e=m}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(a)},return(){return p(null)},throw(m){return p(m)}};function u(m){if(!s)return;let y=s;s=null,y(m)}function a(m,y){if(e)return y(e);if(i){m({value:i,done:!1}),i=null;return}r=m,n=y,u(null),o._finished&&r&&(r({value:void 0,done:!0}),r=n=null)}function c(m,y,_){s=_,y.on("error",Ql),r?(r({value:y,done:!1}),r=n=null):i=y}function f(){u(e),r&&(e?n(e):r({value:void 0,done:!0}),r=n=null)}function p(m){return o.destroy(m),u(m),new Promise((y,_)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){m?_(m):y({value:void 0,done:!0})})})}}};Lg.exports=function(e){return new rc(e)};function Ql(){}function kg(t){return t&=511,t&&512-t}});var Hg=C((h$,nc)=>{"use strict";l();var Mg={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{nc.exports=require("fs").constants||Mg}catch{nc.exports=Mg}});var Wg=C((p$,Gg)=>{"use strict";l();var{Readable:WA,Writable:VA,getStreamError:Ug}=Yl(),hr=Ys(),zr=Hg(),Zs=Jl(),zA=493,KA=420,jg=hr.alloc(1024),sc=class extends VA{constructor(e,r,n){super({mapWritable:XA,eagerOpen:!0}),this.written=0,this.header=r,this._callback=n,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?hr.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?hr.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),qg(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return Ug(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},oc=class extends WA{constructor(e){super(e),this._drain=ic,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,n){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(n=r,r=null),n||(n=ic),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=YA(e.mode)),e.mode||(e.mode=e.type==="directory"?zA:KA),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=hr.from(r));let i=new sc(this,e,n);return hr.isBuffer(r)?(e.size=r.byteLength,i.write(r),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(jg),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=Zs.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Zs.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(Zs.encode(n)),this.push(r),qg(this,r.byteLength),n.size=e.size,n.type=e.type,this.push(Zs.encode(n))}_doDrain(){let e=this._drain;this._drain=ic,e()}_predestroy(){let e=Ug(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};Gg.exports=function(e){return new oc(e)};function YA(t){switch(t&zr.S_IFMT){case zr.S_IFBLK:return"block-device";case zr.S_IFCHR:return"character-device";case zr.S_IFDIR:return"directory";case zr.S_IFIFO:return"fifo";case zr.S_IFLNK:return"symlink"}return"file"}function ic(){}function qg(t,e){e&=511,e&&t.push(jg.subarray(0,512-e))}function XA(t){return hr.isBuffer(t)?t:hr.from(t)}});var Vg=C(uc=>{"use strict";l();uc.extract=$g();uc.pack=Wg()});var Yg=C((E$,Kg)=>{"use strict";l();Kg.exports=zg;function zg(t,e){if(t&&e)return zg(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(u){s[u]=o[u]}),s}}});var lc=C((x$,ac)=>{"use strict";l();var Xg=Yg();ac.exports=Xg(Js);ac.exports.strict=Xg(Zg);Js.proto=Js(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Js(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Zg(this)},configurable:!0})});function Js(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Zg(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var eE=C((_$,Qg)=>{"use strict";l();var ZA=lc(),JA=function(){},QA=function(t){return t.setHeader&&typeof t.abort=="function"},e1=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Jg=function(t,e,r){if(typeof e=="function")return Jg(t,null,e);e||(e={}),r=ZA(r||JA);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,u=!1,a=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},p=function(k){r.call(t,k?new Error("exited with error code: "+k):null)},m=function(k){r.call(t,k)},y=function(){process.nextTick(_)},_=function(){if(!u){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},O=function(){t.req.on("finish",c)};return QA(t)?(t.on("complete",c),t.on("abort",y),t.req?O():t.on("request",O)):o&&!n&&(t.on("end",a),t.on("close",a)),e1(t)&&t.on("exit",p),t.on("end",f),t.on("finish",c),e.error!==!1&&t.on("error",m),t.on("close",y),function(){u=!0,t.removeListener("complete",c),t.removeListener("abort",y),t.removeListener("request",O),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",p),t.removeListener("end",f),t.removeListener("error",m),t.removeListener("close",y)}};Qg.exports=Jg});var nE=C((F$,rE)=>{"use strict";l();var t1=lc(),r1=eE(),cc=require("fs"),ei=function(){},n1=/^v?\.0/.test(process.version),Qs=function(t){return typeof t=="function"},i1=function(t){return!n1||!cc?!1:(t instanceof(cc.ReadStream||ei)||t instanceof(cc.WriteStream||ei))&&Qs(t.close)},s1=function(t){return t.setHeader&&Qs(t.abort)},o1=function(t,e,r,n){n=t1(n);var i=!1;t.on("close",function(){i=!0}),r1(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,i1(t))return t.close(ei);if(s1(t))return t.abort();if(Qs(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},tE=function(t){t()},u1=function(t,e){return t.pipe(e)},a1=function(){var t=Array.prototype.slice.call(arguments),e=Qs(t[t.length-1]||ei)&&t.pop()||ei;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,u=s>0;return o1(i,o,u,function(a){r||(r=a),a&&n.forEach(tE),!o&&(n.forEach(tE),e(r))})});return t.reduce(u1)};rE.exports=a1});var uE=C((S$,oE)=>{"use strict";l();var eo=require("path"),iE=require("fs"),sE=parseInt("0777",8);oE.exports=Kr.mkdirp=Kr.mkdirP=Kr;function Kr(t,e,r,n){typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,s=e.fs||iE;i===void 0&&(i=sE&~process.umask()),n||(n=null);var o=r||function(){};t=eo.resolve(t),s.mkdir(t,i,function(u){if(!u)return n=n||t,o(null,n);switch(u.code){case"ENOENT":Kr(eo.dirname(t),e,function(a,c){a?o(a,c):Kr(t,e,o,c)});break;default:s.stat(t,function(a,c){a||!c.isDirectory()?o(u,n):o(null,n)});break}})}Kr.sync=function t(e,r,n){(!r||typeof r!="object")&&(r={mode:r});var i=r.mode,s=r.fs||iE;i===void 0&&(i=sE&~process.umask()),n||(n=null),e=eo.resolve(e);try{s.mkdirSync(e,i),n=n||e}catch(u){switch(u.code){case"ENOENT":n=t(eo.dirname(e),r,n),t(e,r,n);break;default:var o;try{o=s.statSync(e)}catch{throw u}if(!o.isDirectory())throw u;break}}return n}});var DE=C(hc=>{"use strict";l();var aE=Vg(),lE=nE(),l1=uE(),cE=require("fs"),$e=require("path"),ti=process.platform==="win32";hc.pack=function(e,r){e||(e="."),r||(r={});let n=r.fs||cE,i=r.ignore||r.filter||ri,s=r.mapStream||dE,o=h1(n,r.dereference?n.stat:n.lstat,e,i,r.entries,r.sort),u=r.strict!==!1,a=typeof r.umask=="number"?~r.umask:~fE(),c=r.pack||aE.pack(),f=r.finish||ri,p=r.map||ri,m=typeof r.dmode=="number"?r.dmode:0,y=typeof r.fmode=="number"?r.fmode:0;r.strip&&(p=pE(p,r.strip)),r.readable&&(m|=parseInt(555,8),y|=parseInt(444,8)),r.writable&&(m|=parseInt(333,8),y|=parseInt(222,8)),k();function _(M,q){n.readlink($e.join(e,M),function(j,T){if(j)return c.destroy(j);q.linkname=fc(T),c.entry(q,k)})}function O(M,q,j){if(M)return c.destroy(M);if(!q)return r.finalize!==!1&&c.finalize(),f(c);if(j.isSocket())return k();let T={name:fc(q),mode:(j.mode|(j.isDirectory()?m:y))&a,mtime:j.mtime,size:j.size,type:"file",uid:j.uid,gid:j.gid};if(j.isDirectory())return T.size=0,T.type="directory",T=p(T)||T,c.entry(T,k);if(j.isSymbolicLink())return T.size=0,T.type="symlink",T=p(T)||T,_(q,T);if(T=p(T)||T,!j.isFile())return u?c.destroy(new Error("unsupported type for "+q)):k();let $=c.entry(T,k),R=s(n.createReadStream($e.join(e,q),{start:0,end:T.size>0?T.size-1:T.size}),T);R.on("error",function(L){$.destroy(L)}),lE(R,$)}function k(M){if(M)return c.destroy(M);o(O)}return c};function c1(t){return t.length?t[t.length-1]:null}function f1(){return process.getuid?process.getuid():-1}function fE(){return process.umask?process.umask():0}hc.extract=function(e,r){e||(e="."),r||(r={});let n=r.fs||cE,i=r.ignore||r.filter||ri,s=r.mapStream||dE,o=r.chown!==!1&&!ti&&f1()===0,u=r.extract||aE.extract(),a=[],c=new Date,f=typeof r.umask=="number"?~r.umask:~fE(),p=r.strict!==!1,m=r.map||ri,y=typeof r.dmode=="number"?r.dmode:0,_=typeof r.fmode=="number"?r.fmode:0;return r.strip&&(m=pE(m,r.strip)),r.readable&&(y|=parseInt(555,8),_|=parseInt(444,8)),r.writable&&(y|=parseInt(333,8),_|=parseInt(222,8)),u.on("entry",O),r.finish&&u.on("finish",r.finish),u;function O(T,$,R){T=m(T)||T,T.name=fc(T.name);let L=$e.join(e,$e.join("/",T.name));if(i(L,T))return $.resume(),R();if(T.type==="directory")return a.push([L,T.mtime]),j(L,{fs:n,own:o,uid:T.uid,gid:T.gid,mode:T.mode},A);let F=$e.dirname(L);hE(n,F,$e.join(e,"."),function(G,Z){if(G)return R(G);if(!Z)return R(new Error(F+" is not a valid path"));j(F,{fs:n,own:o,uid:T.uid,gid:T.gid,mode:493},function(te){if(te)return R(te);switch(T.type){case"file":return V();case"link":return I();case"symlink":return N()}if(p)return R(new Error("unsupported type for "+L+" ("+T.type+")"));$.resume(),R()})});function A(G){if(G)return R(G);M(L,T,function(Z){if(Z)return R(Z);if(ti)return R();q(L,T,R)})}function N(){if(ti)return R();n.unlink(L,function(){n.symlink(T.linkname,L,A)})}function I(){if(ti)return R();n.unlink(L,function(){let G=$e.join(e,$e.join("/",T.linkname));n.link(G,L,function(Z){if(Z&&Z.code==="EPERM"&&r.hardlinkAsFilesFallback)return $=n.createReadStream(G),V();A(Z)})})}function V(){let G=n.createWriteStream(L),Z=s($,T);G.on("error",function(te){Z.destroy(te)}),lE(Z,G,function(te){if(te)return R(te);G.on("close",A)})}}function k(T,$){let R;for(;(R=c1(a))&&T.slice(0,R[0].length)!==R[0];)a.pop();if(!R)return $();n.utimes(R[0],c,R[1],$)}function M(T,$,R){if(r.utimes===!1)return R();if($.type==="directory")return n.utimes(T,c,$.mtime,R);if($.type==="symlink")return k(T,R);n.utimes(T,c,$.mtime,function(L){if(L)return R(L);k(T,R)})}function q(T,$,R){let L=$.type==="symlink",F=L?n.lchmod:n.chmod,A=L?n.lchown:n.chown;if(!F)return R();let N=($.mode|($.type==="directory"?y:_))&f;A&&o?A.call(n,T,$.uid,$.gid,I):I(null);function I(V){if(V)return R(V);if(!F)return R();F.call(n,T,N,R)}}function j(T,$,R){n.stat(T,function(L){if(!L)return R(null);if(L.code!=="ENOENT")return R(L);l1(T,{fs:$.fs,mode:$.mode},function(F,A){if(F)return R(F);q(T,$,R)})})}};function hE(t,e,r,n){if(e===r)return n(null,!0);t.lstat(e,function(i,s){if(i&&i.code==="ENOENT")return hE(t,$e.join(e,".."),r,n);if(i)return n(i);n(null,s.isDirectory())})}function ri(){}function dE(t){return t}function fc(t){return ti?t.replace(/\\/g,"/").replace(/[:?<>|]/g,"_"):t}function h1(t,e,r,n,i,s){i||(i=["."]);let o=i.slice(0);return function(a){if(!o.length)return a(null);let c=o.shift(),f=$e.join(r,c);e.call(t,f,function(p,m){if(p)return a(i.indexOf(c)===-1&&p.code==="ENOENT"?null:p);if(!m.isDirectory())return a(null,c,m);t.readdir(f,function(y,_){if(y)return a(y);s&&_.sort();for(let O=0;O<_.length;O++)n($e.join(r,c,_[O]))||o.push($e.join(c,_[O]));a(null,c,m)})})}}function pE(t,e){return function(r){r.name=r.name.split("/").slice(e).join("/");let n=r.linkname;return n&&(r.type==="link"||$e.isAbsolute(n))&&(r.linkname=n.split("/").slice(e).join("/")),t(r)}}});var FE=C((P$,CE)=>{"use strict";l();function dr(t){this._maxSize=t,this.clear()}dr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};dr.prototype.get=function(t){return this._values[t]};dr.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var d1=/[^.^\]^[]+|(?=\[\]|\.\.)/g,_E=/^\d+$/,p1=/^\d/,D1=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,m1=/^\s*(['"]?)(.*?)(\1)\s*$/,Dc=512,yE=new dr(Dc),xE=new dr(Dc),bE=new dr(Dc);CE.exports={Cache:dr,split:pc,normalizePath:dc,setter:function(t){var e=dc(t);return xE.get(t)||xE.set(t,function(n,i){for(var s=0,o=e.length,u=n;s<o-1;){var a=e[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return n;u=u[e[s++]]}u[e[s]]=i})},getter:function(t,e){var r=dc(t);return bE.get(t)||bE.set(t,function(i){for(var s=0,o=r.length;s<o;)if(i!=null||!e)i=i[r[s++]];else return;return i})},join:function(t){return t.reduce(function(e,r){return e+(mc(r)||_E.test(r)?"["+r+"]":(e?".":"")+r)},"")},forEach:function(t,e,r){g1(Array.isArray(t)?t:pc(t),e,r)}};function dc(t){return yE.get(t)||yE.set(t,pc(t).map(function(e){return e.replace(m1,"$2")}))}function pc(t){return t.match(d1)||[""]}function g1(t,e,r){var n=t.length,i,s,o,u;for(s=0;s<n;s++)i=t[s],i&&(x1(i)&&(i='"'+i+'"'),u=mc(i),o=!u&&/^\d+$/.test(i),e.call(r,i,u,o,s,t))}function mc(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function E1(t){return t.match(p1)&&!t.match(_E)}function y1(t){return D1.test(t)}function x1(t){return!mc(t)&&(E1(t)||y1(t))}});var vE=C((k$,SE)=>{"use strict";l();var b1=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,to=t=>t.match(b1)||[],ro=t=>t[0].toUpperCase()+t.slice(1),gc=(t,e)=>to(t).join(e).toLowerCase(),wE=t=>to(t).reduce((e,r)=>`${e}${e?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),_1=t=>ro(wE(t)),C1=t=>gc(t,"_"),F1=t=>gc(t,"-"),w1=t=>ro(gc(t," ")),S1=t=>to(t).map(ro).join(" ");SE.exports={words:to,upperFirst:ro,camelCase:wE,pascalCase:_1,snakeCase:C1,kebabCase:F1,sentenceCase:w1,titleCase:S1}});var TE=C(($$,Ec)=>{"use strict";l();Ec.exports=function(t){return AE(v1(t),t)};Ec.exports.array=AE;function AE(t,e){var r=t.length,n=new Array(r),i={},s=r,o=A1(e),u=T1(t);for(e.forEach(function(c){if(!u.has(c[0])||!u.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||a(t[s],s,new Set);return n;function a(c,f,p){if(p.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!u.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[f]){i[f]=!0;var y=o.get(c)||new Set;if(y=Array.from(y),f=y.length){p.add(c);do{var _=y[--f];a(_,u.get(_),p)}while(f);p.delete(c)}n[--r]=c}}}function v1(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var i=t[r];e.add(i[0]),e.add(i[1])}return Array.from(e)}function A1(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var i=t[r];e.has(i[0])||e.set(i[0],new Set),e.has(i[1])||e.set(i[1],new Set),e.get(i[0]).add(i[1])}return e}function T1(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}});var jE=C((j$,UE)=>{"use strict";l();var pr=class t extends Error{constructor(e,r,n){super("[ParserError] "+e,r,n),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}},Eo=class{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},si=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Eo(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e),this.ii=-1,this.char=-1;let r;for(;r===!1||this.nextChar();)r=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let e;do e=this.state.parser,this.runOne();while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if(typeof e!="function")throw new pr("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,r){r&&this.next(r),this.stack.push(this.state),this.state=new Eo(e)}callNow(e,r){return this.call(e,r),this.runOne()}return(e){if(this.stack.length===0)throw this.error(new pr("Stack underflow"));e===void 0&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===1114112)throw this.error(new pr("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new pr("Must declare a parseStart method")}};si.END=1114112;si.Error=pr;UE.exports=si});var GE=C((G$,qE)=>{"use strict";l();qE.exports=t=>{let e=new Date(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var yo=C((V$,WE)=>{"use strict";l();WE.exports=(t,e)=>{for(e=String(e);e.length<t;)e="0"+e;return e}});var zE=C((K$,VE)=>{"use strict";l();var Jr=yo(),Cc=class extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){let e=`${this.getUTCFullYear()}-${Jr(2,this.getUTCMonth()+1)}-${Jr(2,this.getUTCDate())}`,r=`${Jr(2,this.getUTCHours())}:${Jr(2,this.getUTCMinutes())}:${Jr(2,this.getUTCSeconds())}.${Jr(3,this.getUTCMilliseconds())}`;return`${e}T${r}`}};VE.exports=t=>{let e=new Cc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var XE=C((X$,YE)=>{"use strict";l();var KE=yo(),iT=global.Date,Fc=class extends iT{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${KE(2,this.getUTCMonth()+1)}-${KE(2,this.getUTCDate())}`}};YE.exports=t=>{let e=new Fc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var JE=C((J$,ZE)=>{"use strict";l();var xo=yo(),wc=class extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${xo(2,this.getUTCHours())}:${xo(2,this.getUTCMinutes())}:${xo(2,this.getUTCSeconds())}.${xo(3,this.getUTCMilliseconds())}`}};ZE.exports=t=>{let e=new wc(t);if(isNaN(e))throw new TypeError("Invalid Datetime");return e}});var bo=C((exports,module)=>{"use strict";l();module.exports=makeParserClass(jE());module.exports.makeParserClass=makeParserClass;var TomlError=class t extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,t),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=t=>{let e=new TomlError(t.message);return e.code=t.code,e.wrapped=t,e};module.exports.TomlError=TomlError;var createDateTime=GE(),createDateTimeFloat=zE(),createDate=XE(),createTime=JE(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
39
+ `,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}function isBit(t){return t===CHAR_1||t===CHAR_0}function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}function makeParserClass(t){class e extends t{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(n){let i=this.ctx,s=n.key.pop();for(let o of n.key){if(hasKey(i,o)&&(!isTable(i[o])||i[o][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[o]=i[o]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(n){return this.state.resultTable?this.state.resultTable.push(n):this.state.resultTable=[n],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(n){return this.returnNow({key:this.state.resultTable,value:n})}parseComment(){do if(this.char===t.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)&&(!isTable(this.ctx[n])||this.ctx[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[n]=this.ctx[n]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(n){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,n)||(this.ctx[n]=List()),isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[n])){let i=Table();this.ctx[n].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,n))this.ctx=this.ctx[n]=Table();else{if(isInlineList(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[n]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[n]))this.ctx=this.ctx[n][this.ctx[n].length-1];else if(isTable(this.ctx[n]))this.ctx=this.ctx[n];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(n){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===t.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(n){return this.returnNow(n)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===t.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===t.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===t.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let n="\\u00";return this.char<16&&(n+="0"),n+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${n} instead`))}recordMultiEscapeReplacement(n){return this.state.buf+=n,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(n){try{let i=parseInt(n,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let n=Integer(this.state.buf);if(n.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(n)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===t.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(n){if(this.state.resultArr){let i=this.state.resultArr[_contentType],s=tomlType(n);if(i!==s)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${s}`))}else this.state.resultArr=InlineList(tomlType(n));return isFloat(n)||isInteger(n)?this.state.resultArr.push(n.valueOf()):this.state.resultArr.push(n),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===t.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(n){let i=this.state.resultTable,s=n.key.pop();for(let o of n.key){if(hasKey(i,o)&&(!isTable(i[o])||i[o][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[o]=i[o]||Table()}if(hasKey(i,s))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(n.value)||isFloat(n.value)?i[s]=n.value.valueOf():i[s]=n.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===t.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return e}});var _o=C((tM,QE)=>{"use strict";l();QE.exports=sT;function sT(t,e){if(t.pos==null||t.line==null)return t;let r=t.message;if(r+=` at row ${t.line+1}, col ${t.col+1}, pos ${t.pos}:
40
40
  `,e&&e.split){let n=e.split(/\n/),i=String(Math.min(n.length,t.line+3)).length,s=" ";for(;s.length<i;)s+=" ";for(let o=Math.max(0,t.line-1);o<Math.min(n.length,t.line+2);++o){let u=String(o+1);if(u.length<i&&(u=" "+u),t.line===o){r+=u+"> "+n[o]+`
41
41
  `,r+=s+" ";for(let a=0;a<t.col;++a)r+=" ";r+=`^
42
42
  `}else r+=u+": "+n[o]+`
43
43
  `}}return t.message=r+`
44
- `,t}});var ty=C((nM,ey)=>{"use strict";l();ey.exports=uT;var sT=bo(),oT=_o();function uT(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new sT;try{return e.parse(t),e.finish()}catch(r){throw oT(r,t)}}});var iy=C((sM,ny)=>{"use strict";l();ny.exports=lT;var aT=bo(),ry=_o();function lT(t,e){e||(e={});let r=0,n=e.blocksize||40960,i=new aT;return new Promise((o,u)=>{setImmediate(s,r,n,o,u)});function s(o,u,a,c){if(o>=t.length)try{return a(i.finish())}catch(f){return c(ry(f,t))}try{i.parse(t.slice(o,o+u)),setImmediate(s,o+u,u,a,c)}catch(f){c(ry(f,t))}}}});var uy=C((uM,oy)=>{"use strict";l();oy.exports=fT;var cT=require("stream"),sy=bo();function fT(t){return t?hT(t):dT(t)}function hT(t){let e=new sy;return t.setEncoding("utf8"),new Promise((r,n)=>{let i,s=!1,o=!1;function u(){if(s=!0,!i)try{r(e.finish())}catch(f){n(f)}}function a(f){o=!0,n(f)}t.once("end",u),t.once("error",a),c();function c(){i=!0;let f;for(;(f=t.read())!==null;)try{e.parse(f)}catch(p){return a(p)}if(i=!1,s)return u();o||t.once("readable",c)}})}function dT(){let t=new sy;return new cT.Transform({objectMode:!0,transform(e,r,n){try{t.parse(e.toString(r))}catch(i){this.emit("error",i)}n()},flush(e){try{this.push(t.finish())}catch(r){this.emit("error",r)}e()}})}});var ay=C((lM,oi)=>{"use strict";l();oi.exports=ty();oi.exports.async=iy();oi.exports.stream=uy();oi.exports.prettyError=_o()});var my=C((fM,Ac)=>{"use strict";l();Ac.exports=pT;Ac.exports.value=vc;function pT(t){if(t===null)throw Dr("null");if(t===void 0)throw Dr("undefined");if(typeof t!="object")throw Dr(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ie(t);if(e!=="table")throw Dr(e);return Sc("","",t)}function Dr(t){return new Error("Can only stringify objects, not "+t)}function DT(){return new Error("Array values can't have mixed types")}function ly(t){return Object.keys(t).filter(e=>cy(t[e]))}function mT(t){return Object.keys(t).filter(e=>!cy(t[e]))}function Co(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let r of Object.keys(t))t[r]&&typeof t[r].toJSON=="function"&&!("toISOString"in t[r])?e[r]=t[r].toJSON():e[r]=t[r];return e}function Sc(t,e,r){r=Co(r);var n,i;n=ly(r),i=mT(r);var s=[],o=e||"";n.forEach(a=>{var c=Ie(r[a]);c!=="undefined"&&c!=="null"&&s.push(o+Fo(a)+" = "+dy(r[a],!0))}),s.length>0&&s.push("");var u=t&&n.length>0?e+" ":"";return i.forEach(a=>{s.push(vT(t,u,a,r[a]))}),s.join(`
45
- `)}function cy(t){switch(Ie(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ie(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}function Ie(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}function Fo(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:fy(e)}function fy(t){return'"'+hy(t).replace(/"/g,'\\"')+'"'}function gT(t){return"'"+t+"'"}function ET(t,e){for(;e.length<t;)e="0"+e;return e}function hy(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+ET(4,e.codePointAt(0).toString(16)))}function yT(t){let e=t.split(/\n/).map(r=>hy(r).replace(/"(?="")/g,'\\"')).join(`
44
+ `,t}});var ty=C((nM,ey)=>{"use strict";l();ey.exports=aT;var oT=bo(),uT=_o();function aT(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new oT;try{return e.parse(t),e.finish()}catch(r){throw uT(r,t)}}});var iy=C((sM,ny)=>{"use strict";l();ny.exports=cT;var lT=bo(),ry=_o();function cT(t,e){e||(e={});let r=0,n=e.blocksize||40960,i=new lT;return new Promise((o,u)=>{setImmediate(s,r,n,o,u)});function s(o,u,a,c){if(o>=t.length)try{return a(i.finish())}catch(f){return c(ry(f,t))}try{i.parse(t.slice(o,o+u)),setImmediate(s,o+u,u,a,c)}catch(f){c(ry(f,t))}}}});var uy=C((uM,oy)=>{"use strict";l();oy.exports=hT;var fT=require("stream"),sy=bo();function hT(t){return t?dT(t):pT(t)}function dT(t){let e=new sy;return t.setEncoding("utf8"),new Promise((r,n)=>{let i,s=!1,o=!1;function u(){if(s=!0,!i)try{r(e.finish())}catch(f){n(f)}}function a(f){o=!0,n(f)}t.once("end",u),t.once("error",a),c();function c(){i=!0;let f;for(;(f=t.read())!==null;)try{e.parse(f)}catch(p){return a(p)}if(i=!1,s)return u();o||t.once("readable",c)}})}function pT(){let t=new sy;return new fT.Transform({objectMode:!0,transform(e,r,n){try{t.parse(e.toString(r))}catch(i){this.emit("error",i)}n()},flush(e){try{this.push(t.finish())}catch(r){this.emit("error",r)}e()}})}});var ay=C((lM,oi)=>{"use strict";l();oi.exports=ty();oi.exports.async=iy();oi.exports.stream=uy();oi.exports.prettyError=_o()});var my=C((fM,Ac)=>{"use strict";l();Ac.exports=DT;Ac.exports.value=vc;function DT(t){if(t===null)throw Dr("null");if(t===void 0)throw Dr("undefined");if(typeof t!="object")throw Dr(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ie(t);if(e!=="table")throw Dr(e);return Sc("","",t)}function Dr(t){return new Error("Can only stringify objects, not "+t)}function mT(){return new Error("Array values can't have mixed types")}function ly(t){return Object.keys(t).filter(e=>cy(t[e]))}function gT(t){return Object.keys(t).filter(e=>!cy(t[e]))}function Co(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let r of Object.keys(t))t[r]&&typeof t[r].toJSON=="function"&&!("toISOString"in t[r])?e[r]=t[r].toJSON():e[r]=t[r];return e}function Sc(t,e,r){r=Co(r);var n,i;n=ly(r),i=gT(r);var s=[],o=e||"";n.forEach(a=>{var c=Ie(r[a]);c!=="undefined"&&c!=="null"&&s.push(o+Fo(a)+" = "+dy(r[a],!0))}),s.length>0&&s.push("");var u=t&&n.length>0?e+" ":"";return i.forEach(a=>{s.push(AT(t,u,a,r[a]))}),s.join(`
45
+ `)}function cy(t){switch(Ie(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ie(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}function Ie(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}function Fo(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:fy(e)}function fy(t){return'"'+hy(t).replace(/"/g,'\\"')+'"'}function ET(t){return"'"+t+"'"}function yT(t,e){for(;e.length<t;)e="0"+e;return e}function hy(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+yT(4,e.codePointAt(0).toString(16)))}function xT(t){let e=t.split(/\n/).map(r=>hy(r).replace(/"(?="")/g,'\\"')).join(`
46
46
  `);return e.slice(-1)==='"'&&(e+=`\\
47
47
  `),`"""
48
- `+e+'"""'}function dy(t,e){let r=Ie(t);return r==="string"&&(e&&/\n/.test(t)?r="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(r="string-literal")),vc(t,r)}function vc(t,e){switch(e||(e=Ie(t)),e){case"string-multiline":return yT(t);case"string":return fy(t);case"string-literal":return gT(t);case"integer":return py(t);case"float":return xT(t);case"boolean":return bT(t);case"datetime":return _T(t);case"array":return wT(t.filter(r=>Ie(r)!=="null"&&Ie(r)!=="undefined"&&Ie(r)!=="nan"));case"table":return ST(t);default:throw Dr(e)}}function py(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function xT(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),r=e[0],n=e[1]||0;return py(r)+"."+n}function bT(t){return String(t)}function _T(t){return t.toISOString()}function CT(t){return t==="float"||t==="integer"}function FT(t){var e=Ie(t[0]);return t.every(r=>Ie(r)===e)?e:t.every(r=>CT(Ie(r)))?"float":"mixed"}function Dy(t){let e=FT(t);if(e==="mixed")throw DT();return e}function wT(t){t=Co(t);let e=Dy(t);var r="[",n=t.map(i=>vc(i,e));return n.join(", ").length>60||/\n/.test(n)?r+=`
48
+ `+e+'"""'}function dy(t,e){let r=Ie(t);return r==="string"&&(e&&/\n/.test(t)?r="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(r="string-literal")),vc(t,r)}function vc(t,e){switch(e||(e=Ie(t)),e){case"string-multiline":return xT(t);case"string":return fy(t);case"string-literal":return ET(t);case"integer":return py(t);case"float":return bT(t);case"boolean":return _T(t);case"datetime":return CT(t);case"array":return ST(t.filter(r=>Ie(r)!=="null"&&Ie(r)!=="undefined"&&Ie(r)!=="nan"));case"table":return vT(t);default:throw Dr(e)}}function py(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function bT(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),r=e[0],n=e[1]||0;return py(r)+"."+n}function _T(t){return String(t)}function CT(t){return t.toISOString()}function FT(t){return t==="float"||t==="integer"}function wT(t){var e=Ie(t[0]);return t.every(r=>Ie(r)===e)?e:t.every(r=>FT(Ie(r)))?"float":"mixed"}function Dy(t){let e=wT(t);if(e==="mixed")throw mT();return e}function ST(t){t=Co(t);let e=Dy(t);var r="[",n=t.map(i=>vc(i,e));return n.join(", ").length>60||/\n/.test(n)?r+=`
49
49
  `+n.join(`,
50
50
  `)+`
51
- `:r+=" "+n.join(", ")+(n.length>0?" ":""),r+"]"}function ST(t){t=Co(t);var e=[];return Object.keys(t).forEach(r=>{e.push(Fo(r)+" = "+dy(t[r],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}function vT(t,e,r,n){var i=Ie(n);if(i==="array")return AT(t,e,r,n);if(i==="table")return TT(t,e,r,n);throw Dr(i)}function AT(t,e,r,n){n=Co(n),Dy(n);var i=Ie(n[0]);if(i!=="table")throw Dr(i);var s=t+Fo(r),o="";return n.forEach(u=>{o.length>0&&(o+=`
51
+ `:r+=" "+n.join(", ")+(n.length>0?" ":""),r+"]"}function vT(t){t=Co(t);var e=[];return Object.keys(t).forEach(r=>{e.push(Fo(r)+" = "+dy(t[r],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}function AT(t,e,r,n){var i=Ie(n);if(i==="array")return TT(t,e,r,n);if(i==="table")return OT(t,e,r,n);throw Dr(i)}function TT(t,e,r,n){n=Co(n),Dy(n);var i=Ie(n[0]);if(i!=="table")throw Dr(i);var s=t+Fo(r),o="";return n.forEach(u=>{o.length>0&&(o+=`
52
52
  `),o+=e+"[["+s+`]]
53
- `,o+=Sc(s+".",e,u)}),o}function TT(t,e,r,n){var i=t+Fo(r),s="";return ly(n).length>0&&(s+=e+"["+i+`]
54
- `),s+Sc(i+".",e,n)}});var gy=C(Tc=>{"use strict";l();Tc.parse=ay();Tc.stringify=my()});var $T={};Ic($T,{pkg:()=>ds});module.exports=qy($T);l();var ky=M(require("update-notifier"));var To={};Ic(To,{author:()=>Yy,bin:()=>nx,bugs:()=>Xy,default:()=>ox,dependencies:()=>ix,description:()=>Vy,devDependencies:()=>tx,engines:()=>sx,files:()=>rx,homepage:()=>zy,license:()=>Ky,name:()=>Wy,publishConfig:()=>Jy,repository:()=>Zy,scripts:()=>ex,sideEffects:()=>Qy,version:()=>Oo});var Wy="@e2b/cli",Oo="0.0.14",Vy="CLI for managing e2b sandbox templates",zy="https://e2b.dev",Ky="MIT",Yy={name:"FoundryLabs, Inc.",email:"hello@e2b.dev",url:"https://e2b.dev"},Xy="https://github.com/e2b-dev/e2b/issues",Zy={type:"git",url:"https://github.com/e2b-dev/e2b/tree/main/packages/cli"},Jy={access:"public"},Qy=!1,ex={prepublishOnly:"pnpm run build",build:"tsup --minify",dev:"tsup --watch",test:"pnpm build && cd testground/demo-basic && ../../dist/index.js template build","check-deps":"knip","update-deps":"ncu -u && pnpm i"},tx={"@types/common-tags":"^1.8.2","@types/node":"^18.18.6","@types/tar-fs":"^2.0.3","@types/update-notifier":"6.0.5",knip:"^2.33.4","npm-check-updates":"^16.14.6",tsup:"^7.2.0",typescript:"^5.2.2",vitest:"^0.34.6"},rx=["dist","LICENSE","README","package.json"],nx={e2b:"dist/index.js",E2B:"dist/index.js",E2b:"dist/index.js"},ix={"@balena/dockerignore":"^1.0.2","@e2b/sdk":"^0.7.5","@iarna/toml":"^2.2.5","@nodelib/fs.walk":"^2.0.0","async-listen":"^3.0.1",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","common-tags":"^1.8.2",ignore:"^5.2.4",open:"^9.1.0","tar-fs":"^3.0.4","update-notifier":"5.1.0",yup:"^1.3.2"},sx={node:">=18"},ox={name:Wy,version:Oo,description:Vy,homepage:zy,license:Ky,author:Yy,bugs:Xy,repository:Zy,publishConfig:Jy,sideEffects:Qy,scripts:ex,devDependencies:tx,files:rx,bin:nx,dependencies:ix,engines:sx};l();l();var Yc=M(Kc(),1),{program:e3,createCommand:t3,createArgument:r3,createOption:n3,CommanderError:i3,InvalidArgumentError:s3,InvalidOptionArgumentError:o3,Command:Fe,Argument:u3,Option:Xc,Help:a3}=Yc.default;l();var gD=M(Jc());var hs=M(require("fs")),ED=M(require("http"));l();var Hi=M(require("process"),1),Wd=require("buffer"),Hu=M(require("path"),1),Vd=require("url"),zd=M(require("child_process"),1),Ui=M(require("fs/promises"),1),Uu=require("fs"),dn=M(sf(),1);l();function Zt(t,e,r){let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}l();var $i=M(require("process"),1);l();var ff=M(require("os"),1),hf=require("fs"),df=M(uf(),1),pf=M(cf(),1),Hx=Number(ff.default.release().split(".")[0]),Ux=(0,pf.default)(Hx>=14?"~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist":"~/Library/Preferences/com.apple.LaunchServices.plist");async function zo(){if(process.platform!=="darwin")throw new Error("macOS only");let t="com.apple.Safari",e;try{e=await hf.promises.readFile(Ux)}catch(i){if(i.code==="ENOENT")return t;throw i}let r=df.default.parseBuffer(e),n=r&&r[0].LSHandlers;if(!n||n.length===0)return t;for(let i of n)if(i.LSHandlerURLScheme==="http"&&i.LSHandlerRoleAll){t=i.LSHandlerRoleAll;break}return t}l();l();var Kh=M(zh(),1);async function Yh(t){if(process.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Kh.default)("osascript",["-e",t]);return e}async function gu(t){return Yh(`tell application "Finder" to set app_path to application file id "${t}" as string
55
- tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}l();function Eu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.toLowerCase().replace(/(?:^|\s|-)\S/g,e=>e.toUpperCase())}l();var Nd=require("buffer"),kd=M(require("path"),1),ki=M(require("child_process"),1),cn=M(require("process"),1),Ld=M(iu(),1);l();function yu(t){let e=typeof t=="string"?`
53
+ `,o+=Sc(s+".",e,u)}),o}function OT(t,e,r,n){var i=t+Fo(r),s="";return ly(n).length>0&&(s+=e+"["+i+`]
54
+ `),s+Sc(i+".",e,n)}});var gy=C(Tc=>{"use strict";l();Tc.parse=ay();Tc.stringify=my()});var $T={};Ic($T,{pkg:()=>ds});module.exports=Gy($T);l();var Ly=H(require("update-notifier"));var To={};Ic(To,{author:()=>Xy,bin:()=>ix,bugs:()=>Zy,default:()=>ux,dependencies:()=>sx,description:()=>zy,devDependencies:()=>rx,engines:()=>ox,files:()=>nx,homepage:()=>Ky,license:()=>Yy,name:()=>Vy,publishConfig:()=>Qy,repository:()=>Jy,scripts:()=>tx,sideEffects:()=>ex,version:()=>Oo});var Vy="@e2b/cli",Oo="0.0.16",zy="CLI for managing e2b sandbox templates",Ky="https://e2b.dev",Yy="MIT",Xy={name:"FoundryLabs, Inc.",email:"hello@e2b.dev",url:"https://e2b.dev"},Zy="https://github.com/e2b-dev/e2b/issues",Jy={type:"git",url:"https://github.com/e2b-dev/e2b/tree/main/packages/cli"},Qy={access:"public"},ex=!1,tx={prepublishOnly:"pnpm run build",build:"tsup --minify",dev:"tsup --watch",test:"pnpm build && cd testground/demo-basic && ../../dist/index.js template build","check-deps":"knip","update-deps":"ncu -u && pnpm i"},rx={"@types/common-tags":"^1.8.2","@types/node":"^18.18.6","@types/tar-fs":"^2.0.3","@types/update-notifier":"6.0.5",knip:"^2.33.4","npm-check-updates":"^16.14.6",tsup:"^7.2.0",typescript:"^5.2.2",vitest:"^0.34.6"},nx=["dist","LICENSE","README","package.json"],ix={e2b:"dist/index.js"},sx={"@balena/dockerignore":"^1.0.2","@e2b/sdk":"^0.7.5","@iarna/toml":"^2.2.5","@nodelib/fs.walk":"^2.0.0","async-listen":"^3.0.1",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","common-tags":"^1.8.2",ignore:"^5.2.4",open:"^9.1.0","tar-fs":"^3.0.4","update-notifier":"5.1.0",yup:"^1.3.2"},ox={node:">=18"},ux={name:Vy,version:Oo,description:zy,homepage:Ky,license:Yy,author:Xy,bugs:Zy,repository:Jy,publishConfig:Qy,sideEffects:ex,scripts:tx,devDependencies:rx,files:nx,bin:ix,dependencies:sx,engines:ox};l();l();var Yc=H(Kc(),1),{program:e3,createCommand:t3,createArgument:r3,createOption:n3,CommanderError:i3,InvalidArgumentError:s3,InvalidOptionArgumentError:o3,Command:Fe,Argument:u3,Option:Xc,Help:a3}=Yc.default;l();var gD=H(Jc());var hs=H(require("fs")),ED=H(require("http"));l();var Hi=H(require("process"),1),Wd=require("buffer"),Hu=H(require("path"),1),Vd=require("url"),zd=H(require("child_process"),1),Ui=H(require("fs/promises"),1),Uu=require("fs"),dn=H(sf(),1);l();function Zt(t,e,r){let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}l();var $i=H(require("process"),1);l();var ff=H(require("os"),1),hf=require("fs"),df=H(uf(),1),pf=H(cf(),1),Ux=Number(ff.default.release().split(".")[0]),jx=(0,pf.default)(Ux>=14?"~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist":"~/Library/Preferences/com.apple.LaunchServices.plist");async function zo(){if(process.platform!=="darwin")throw new Error("macOS only");let t="com.apple.Safari",e;try{e=await hf.promises.readFile(jx)}catch(i){if(i.code==="ENOENT")return t;throw i}let r=df.default.parseBuffer(e),n=r&&r[0].LSHandlers;if(!n||n.length===0)return t;for(let i of n)if(i.LSHandlerURLScheme==="http"&&i.LSHandlerRoleAll){t=i.LSHandlerRoleAll;break}return t}l();l();var Kh=H(zh(),1);async function Yh(t){if(process.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Kh.default)("osascript",["-e",t]);return e}async function gu(t){return Yh(`tell application "Finder" to set app_path to application file id "${t}" as string
55
+ tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}l();function Eu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.toLowerCase().replace(/(?:^|\s|-)\S/g,e=>e.toUpperCase())}l();var Nd=require("buffer"),kd=H(require("path"),1),ki=H(require("child_process"),1),cn=H(require("process"),1),Ld=H(iu(),1);l();function yu(t){let e=typeof t=="string"?`
56
56
  `:`
57
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}l();var an=M(require("process"),1),wr=M(require("path"),1),Xh=M(require("url"),1);l();function Oi(t={}){let{env:e=process.env,platform:r=process.platform}=t;return r!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}function N_(t={}){let{cwd:e=an.default.cwd(),path:r=an.default.env[Oi()],execPath:n=an.default.execPath}=t,i,s=e instanceof URL?Xh.default.fileURLToPath(e):e,o=wr.default.resolve(s),u=[];for(;i!==o;)u.push(wr.default.join(o,"node_modules/.bin")),i=o,o=wr.default.resolve(o,"..");return u.push(wr.default.resolve(s,n,"..")),[...u,r].join(wr.default.delimiter)}function Zh({env:t=an.default.env,...e}={}){t={...t};let r=Oi({env:t});return e.path=t[r],t[r]=N_(e),t}l();l();var k_=(t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(t,r),s=Object.getOwnPropertyDescriptor(e,r);!L_(i,s)&&n||Object.defineProperty(t,r,s)},L_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},$_=(t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},M_=(t,e)=>`/* Wrapped ${t}*/
58
- ${e}`,H_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),U_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),j_=(t,e,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=M_.bind(null,n,e.toString());Object.defineProperty(i,"name",U_),Object.defineProperty(t,"toString",{...H_,value:i})};function xu(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:n}=t;for(let i of Reflect.ownKeys(e))k_(t,e,i,r);return $_(t,e),j_(t,e,n),t}var Ri=new WeakMap,Jh=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ri.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return xu(s,t),Ri.set(s,n),s};Jh.callCount=t=>{if(!Ri.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ri.get(t)};var Qh=Jh;l();var ud=M(require("process"),1);l();var sd=require("os");l();var ed=()=>{let t=rd-td+1;return Array.from({length:t},q_)},q_=(t,e)=>({name:`SIGRT${e+1}`,number:td+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),td=34,rd=64;l();var id=require("os");l();var nd=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var bu=()=>{let t=ed();return[...nd,...t].map(G_)},G_=({name:t,number:e,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[t]:o}}=id.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:n,forced:i,standard:s}};var W_=()=>{let t=bu();return Object.fromEntries(t.map(V_))},V_=({name:t,number:e,description:r,supported:n,action:i,forced:s,standard:o})=>[t,{name:t,number:e,description:r,supported:n,action:i,forced:s,standard:o}],od=W_(),z_=()=>{let t=bu(),e=64+1,r=Array.from({length:e},(n,i)=>K_(i,t));return Object.assign({},...r)},K_=(t,e)=>{let r=Y_(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:u,standard:a}}},Y_=(t,e)=>{let r=e.find(({name:n})=>sd.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},m8=z_();var X_=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",ln=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:f,parsed:{options:{timeout:p,cwd:m=ud.default.cwd()}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let y=i===void 0?void 0:od[i].description,_=n&&n.code,k=`Command ${X_({timedOut:a,timeout:p,errorCode:_,signal:i,signalDescription:y,exitCode:s,isCanceled:c})}: ${o}`,H=Object.prototype.toString.call(n)==="[object Error]",q=H?`${k}
57
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}l();var an=H(require("process"),1),wr=H(require("path"),1),Xh=H(require("url"),1);l();function Oi(t={}){let{env:e=process.env,platform:r=process.platform}=t;return r!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}function k_(t={}){let{cwd:e=an.default.cwd(),path:r=an.default.env[Oi()],execPath:n=an.default.execPath}=t,i,s=e instanceof URL?Xh.default.fileURLToPath(e):e,o=wr.default.resolve(s),u=[];for(;i!==o;)u.push(wr.default.join(o,"node_modules/.bin")),i=o,o=wr.default.resolve(o,"..");return u.push(wr.default.resolve(s,n,"..")),[...u,r].join(wr.default.delimiter)}function Zh({env:t=an.default.env,...e}={}){t={...t};let r=Oi({env:t});return e.path=t[r],t[r]=k_(e),t}l();l();var L_=(t,e,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(t,r),s=Object.getOwnPropertyDescriptor(e,r);!$_(i,s)&&n||Object.defineProperty(t,r,s)},$_=function(t,e){return t===void 0||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},M_=(t,e)=>{let r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)},H_=(t,e)=>`/* Wrapped ${t}*/
58
+ ${e}`,U_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),j_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),q_=(t,e,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=H_.bind(null,n,e.toString());Object.defineProperty(i,"name",j_),Object.defineProperty(t,"toString",{...U_,value:i})};function xu(t,e,{ignoreNonConfigurable:r=!1}={}){let{name:n}=t;for(let i of Reflect.ownKeys(e))L_(t,e,i,r);return M_(t,e),q_(t,e,n),t}var Ri=new WeakMap,Jh=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Ri.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return xu(s,t),Ri.set(s,n),s};Jh.callCount=t=>{if(!Ri.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ri.get(t)};var Qh=Jh;l();var ud=H(require("process"),1);l();var sd=require("os");l();var ed=()=>{let t=rd-td+1;return Array.from({length:t},G_)},G_=(t,e)=>({name:`SIGRT${e+1}`,number:td+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),td=34,rd=64;l();var id=require("os");l();var nd=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var bu=()=>{let t=ed();return[...nd,...t].map(W_)},W_=({name:t,number:e,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[t]:o}}=id.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:n,forced:i,standard:s}};var V_=()=>{let t=bu();return Object.fromEntries(t.map(z_))},z_=({name:t,number:e,description:r,supported:n,action:i,forced:s,standard:o})=>[t,{name:t,number:e,description:r,supported:n,action:i,forced:s,standard:o}],od=V_(),K_=()=>{let t=bu(),e=64+1,r=Array.from({length:e},(n,i)=>Y_(i,t));return Object.assign({},...r)},Y_=(t,e)=>{let r=X_(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:u,standard:a}}},X_=(t,e)=>{let r=e.find(({name:n})=>sd.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},m8=K_();var Z_=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",ln=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:c,killed:f,parsed:{options:{timeout:p,cwd:m=ud.default.cwd()}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let y=i===void 0?void 0:od[i].description,_=n&&n.code,k=`Command ${Z_({timedOut:a,timeout:p,errorCode:_,signal:i,signalDescription:y,exitCode:s,isCanceled:c})}: ${o}`,M=Object.prototype.toString.call(n)==="[object Error]",q=M?`${k}
59
59
  ${n.message}`:k,j=[q,e,t].filter(Boolean).join(`
60
- `);return H?(n.originalMessage=n.message,n.message=j):n=new Error(j),n.shortMessage=q,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=y,n.stdout=t,n.stderr=e,n.cwd=m,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=f&&!a,n};l();var Bi=["stdin","stdout","stderr"],Z_=t=>Bi.some(e=>t[e]!==void 0),ad=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Bi.map(n=>t[n]);if(Z_(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bi.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Bi.length);return Array.from({length:r},(n,i)=>e[i])};l();var ld=M(require("os"),1),cd=M(cu(),1),J_=1e3*5,fd=(t,e="SIGTERM",r={})=>{let n=t(e);return Q_(t,e,r,n),n},Q_=(t,e,r,n)=>{if(!eC(e,r,n))return;let i=rC(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},eC=(t,{forceKillAfterTimeout:e},r)=>tC(t)&&e!==!1&&r,tC=t=>t===ld.default.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",rC=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return J_;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},hd=(t,e)=>{t.kill()&&(e.isCanceled=!0)},nC=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},dd=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{nC(t,r,a)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},pd=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Dd=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=(0,cd.default)(()=>{t.kill()});return n.finally(()=>{i()})};l();var md=require("fs"),gd=require("child_process");l();function Ii(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function _u(t){return Ii(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object"}var iC=t=>t instanceof gd.ChildProcess&&typeof t.then=="function",Cu=(t,e,r)=>{if(typeof r=="string")return t[e].pipe((0,md.createWriteStream)(r)),t;if(_u(r))return t[e].pipe(r),t;if(!iC(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!_u(r.stdin))throw new TypeError("The target child process's stdin must be available.");return t[e].pipe(r.stdin),r},Ed=t=>{t.stdout!==null&&(t.pipeStdout=Cu.bind(void 0,t,"stdout")),t.stderr!==null&&(t.pipeStderr=Cu.bind(void 0,t,"stderr")),t.all!==void 0&&(t.pipeAll=Cu.bind(void 0,t,"all"))};l();var Pi=require("fs");var Su=M(hu(),1),yd=M(du(),1),xd=t=>{if(t!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},sC=({input:t,inputFile:e})=>typeof e!="string"?t:(xd(t),(0,Pi.readFileSync)(e)),bd=t=>{let e=sC(t);if(Ii(e))throw new TypeError("The `input` option cannot be a stream in sync mode");return e},oC=({input:t,inputFile:e})=>typeof e!="string"?t:(xd(t),(0,Pi.createReadStream)(e)),_d=(t,e)=>{let r=oC(e);r!==void 0&&(Ii(r)?r.pipe(t.stdin):t.stdin.end(r))},Cd=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=(0,yd.default)();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fu=async(t,e)=>{if(!(!t||e===void 0)){t.destroy();try{return await e}catch(r){return r.bufferedData}}},wu=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?(0,Su.default)(t,{encoding:e,maxBuffer:n}):Su.default.buffer(t,{maxBuffer:n})},Fd=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=wu(t,{encoding:n,buffer:i,maxBuffer:s}),a=wu(e,{encoding:n,buffer:i,maxBuffer:s}),c=wu(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Fu(t,u),Fu(e,a),Fu(r,c)])}};l();var uC=(async()=>{})().constructor.prototype,aC=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(uC,t)]),vu=(t,e)=>{for(let[r,n]of aC){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}},wd=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});l();var Ad=require("buffer"),Td=require("child_process"),Od=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],lC=/^[\w.-]+$/,cC=/"/g,fC=t=>typeof t!="string"||lC.test(t)?t:`"${t.replace(cC,'\\"')}"`,Au=(t,e)=>Od(t,e).join(" "),Tu=(t,e)=>Od(t,e).map(r=>fC(r)).join(" "),hC=/ +/g;var Sd=t=>{let e=typeof t;if(e==="string")return t;if(e==="number")return String(t);if(e==="object"&&t!==null&&!(t instanceof Td.ChildProcess)&&"stdout"in t){let r=typeof t.stdout;if(r==="string")return t.stdout;if(Ad.Buffer.isBuffer(t.stdout))return t.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${e}" in template expression`)},vd=(t,e,r)=>r||t.length===0||e.length===0?[...t,...e]:[...t.slice(0,-1),`${t[t.length-1]}${e[0]}`,...e.slice(1)],dC=({templates:t,expressions:e,tokens:r,index:n,template:i})=>{let s=i??t.raw[n],o=s.split(hC).filter(Boolean),u=vd(r,o,s.startsWith(" "));if(n===e.length)return u;let a=e[n],c=Array.isArray(a)?a.map(f=>Sd(f)):[Sd(a)];return vd(u,c,s.endsWith(" "))},Ou=(t,e)=>{let r=[];for(let[n,i]of t.entries())r=dC({templates:t,expressions:e,tokens:r,index:n,template:i});return r};l();var Rd=require("util"),Bd=M(require("process"),1),Id=(0,Rd.debuglog)("execa").enabled,Ni=(t,e)=>String(t).padStart(e,"0"),pC=()=>{let t=new Date;return`${Ni(t.getHours(),2)}:${Ni(t.getMinutes(),2)}:${Ni(t.getSeconds(),2)}.${Ni(t.getMilliseconds(),3)}`},Ru=(t,{verbose:e})=>{e&&Bd.default.stderr.write(`[${pC()}] ${t}
61
- `)};var DC=1e3*1e3*100,mC=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...cn.default.env,...t}:t;return r?Zh({env:s,cwd:n,execPath:i}):s},$d=(t,e,r={})=>{let n=Ld.default._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:DC,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||cn.default.cwd(),execPath:cn.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Id,...r},r.env=mC(r),r.stdio=ad(r),cn.default.platform==="win32"&&kd.default.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},fn=(t,e,r)=>typeof e!="string"&&!Nd.Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?yu(e):e;function hn(t,e,r){let n=$d(t,e,r),i=Au(t,e),s=Tu(t,e);Ru(s,n.options),pd(n.options);let o;try{o=ki.default.spawn(n.file,n.args,n.options)}catch(y){let _=new ki.default.ChildProcess,O=Promise.reject(ln({error:y,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return vu(_,O),_}let u=wd(o),a=dd(o,n.options,u),c=Dd(o,n.options,a),f={isCanceled:!1};o.kill=fd.bind(null,o.kill.bind(o)),o.cancel=hd.bind(null,o,f);let m=Qh(async()=>{let[{error:y,exitCode:_,signal:O,timedOut:k},H,q,j]=await Fd(o,n.options,c),T=fn(n.options,H),$=fn(n.options,q),R=fn(n.options,j);if(y||_!==0||O!==null){let L=ln({error:y,exitCode:_,signal:O,stdout:T,stderr:$,all:R,command:i,escapedCommand:s,parsed:n,timedOut:k,isCanceled:f.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:o.killed});if(!n.options.reject)return L;throw L}return{command:i,escapedCommand:s,exitCode:0,stdout:T,stderr:$,all:R,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return _d(o,n.options),o.all=Cd(o,n.options),Ed(o),vu(o,m),o}function gC(t,e,r){let n=$d(t,e,r),i=Au(t,e),s=Tu(t,e);Ru(s,n.options);let o=bd(n.options),u;try{u=ki.default.spawnSync(n.file,n.args,{...n.options,input:o})}catch(f){throw ln({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=fn(n.options,u.stdout,u.error),c=fn(n.options,u.stderr,u.error);if(u.error||u.status!==0||u.signal!==null){let f=ln({stdout:a,stderr:c,error:u.error,signal:u.signal,exitCode:u.status,command:i,escapedCommand:s,parsed:n,timedOut:u.error&&u.error.code==="ETIMEDOUT",isCanceled:!1,killed:u.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var EC=({input:t,inputFile:e,stdio:r})=>t===void 0&&e===void 0&&r===void 0?{stdin:"inherit"}:{},Pd=(t={})=>({preferLocal:!0,...EC(t),...t});function Md(t){function e(r,...n){if(!Array.isArray(r))return Md({...t,...r});let[i,...s]=Ou(r,n);return hn(i,s,Pd(t))}return e.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...s]=Ou(r,n);return gC(i,s,Pd(t))},e}var Q8=Md();l();var yC={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"}},Li=class extends Error{};async function Bu(t=hn){let e=await t("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(e.stdout);if(!r)throw new Li(`Cannot find Windows browser in stdout: ${JSON.stringify(e.stdout)}`);let{id:n}=r.groups,i=yC[n];if(!i)throw new Li(`Unknown browser ID: ${n}`);return i}async function Iu(){if($i.default.platform==="linux"){let{stdout:t}=await hn("xdg-mime",["query","default","x-scheme-handler/http"]);return{name:Eu(t.trim().replace(/.desktop$/,"").replace("-"," ")),id:t}}if($i.default.platform==="darwin"){let t=await zo();return{name:await gu(t),id:t}}if($i.default.platform==="win32")return Bu();throw new Error("Only macOS, Linux, and Windows are supported")}l();var Hd=M(require("fs"),1);l();var Nu=M(require("fs"),1),Pu;function xC(){try{return Nu.default.statSync("/.dockerenv"),!0}catch{return!1}}function bC(){try{return Nu.default.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function ku(){return Pu===void 0&&(Pu=xC()||bC()),Pu}var Lu,_C=()=>{try{return Hd.default.statSync("/run/.containerenv"),!0}catch{return!1}};function $u(){return Lu===void 0&&(Lu=_C()||ku()),Lu}var Mu=Hu.default.dirname((0,Vd.fileURLToPath)(importMetaUrl)),Ud=Hu.default.join(Mu,"xdg-open"),{platform:Sr,arch:jd}=Hi.default,CC=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await Ui.default.access(r,Uu.constants.F_OK),n=!0}catch{}if(!n)return t;let i=await Ui.default.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),qd=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},Mi=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return qd(t.app,u=>Mi({...t,app:u}));let{name:e,arguments:r=[]}=t.app??{};if(r=[...r],Array.isArray(e))return qd(e,u=>Mi({...t,app:{name:u,arguments:r}}));if(e==="browser"||e==="browserPrivate"){let u={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},a={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},c=await Iu();if(c.id in u){let f=u[c.id];return e==="browserPrivate"&&r.push(a[f]),Mi({...t,app:{name:vr[f],arguments:r}})}throw new Error(`${c.name} is not supported as a default browser`)}let n,i=[],s={};if(Sr==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Sr==="win32"||dn.default&&!$u()&&!e){let u=await CC();n=dn.default?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${Hi.default.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),dn.default||(s.windowsVerbatimArguments=!0);let a=["Start"];t.wait&&a.push("-Wait"),e?(a.push(`"\`"${e}\`""`),t.target&&r.push(t.target)):t.target&&a.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),a.push("-ArgumentList",r.join(","))),t.target=Wd.Buffer.from(a.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let u=!Mu||Mu==="/",a=!1;try{await Ui.default.access(Ud,Uu.constants.X_OK),a=!0}catch{}n=Hi.default.versions.electron??(Sr==="android"||u||!a)?"xdg-open":Ud}r.length>0&&i.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&i.push(t.target),Sr==="darwin"&&r.length>0&&i.push("--args",...r);let o=zd.default.spawn(n,i,s);return t.wait?new Promise((u,a)=>{o.once("error",a),o.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){a(new Error(`Exited with code ${c}`));return}u(o)})}):(o.unref(),o)},FC=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return Mi({...e,target:t})};function Gd(t){if(typeof t=="string"||Array.isArray(t))return t;let{[jd]:e}=t;if(!e)throw new Error(`${jd} is not supported`);return e}function ju({[Sr]:t},{wsl:e}){if(e&&dn.default)return Gd(e);if(!t)throw new Error(`${Sr} is not supported`);return Gd(t)}var vr={};Zt(vr,"chrome",()=>ju({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));Zt(vr,"firefox",()=>ju({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));Zt(vr,"edge",()=>ju({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Zt(vr,"browser",()=>"browser");Zt(vr,"browserPrivate",()=>"browserPrivate");var Kd=FC;var yD=M(require("path"));l();var Yd=M(require("os")),Xd=M(require("path")),ji=M(require("fs")),Tt=Xd.join(Yd.homedir(),".e2b","config.json"),qu=process.env.E2B_DOCS_BASE||"https://e2b.dev/docs";function pn(){return ji.existsSync(Tt)?JSON.parse(ji.readFileSync(Tt,"utf8")):null}l();l();l();var Zd=(t=0)=>e=>`\x1B[${e+t}m`,Jd=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Qd=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ue={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]}},CR=Object.keys(ue.modifier),SC=Object.keys(ue.color),vC=Object.keys(ue.bgColor),FR=[...SC,...vC];function AC(){let t=new Map;for(let[e,r]of Object.entries(ue)){for(let[n,i]of Object.entries(r))ue[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=ue[n],t.set(i[0],i[1]);Object.defineProperty(ue,e,{value:r,enumerable:!1})}return Object.defineProperty(ue,"codes",{value:t,enumerable:!1}),ue.color.close="\x1B[39m",ue.bgColor.close="\x1B[49m",ue.color.ansi=Zd(),ue.color.ansi256=Jd(),ue.color.ansi16m=Qd(),ue.bgColor.ansi=Zd(10),ue.bgColor.ansi256=Jd(10),ue.bgColor.ansi16m=Qd(10),Object.defineProperties(ue,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.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:e=>ue.rgbToAnsi256(...ue.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,i=u%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:(e,r,n)=>ue.ansi256ToAnsi(ue.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ue.ansi256ToAnsi(ue.hexToAnsi256(e)),enumerable:!1}}),ue}var TC=AC(),Ke=TC;l();var Gi=M(require("process"),1),tp=M(require("os"),1),Gu=M(require("tty"),1);function qe(t,e=globalThis.Deno?globalThis.Deno.args:Gi.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:le}=Gi.default,qi;qe("no-color")||qe("no-colors")||qe("color=false")||qe("color=never")?qi=0:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(qi=1);function OC(){if("FORCE_COLOR"in le)return le.FORCE_COLOR==="true"?1:le.FORCE_COLOR==="false"?0:le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(le.FORCE_COLOR,10),3)}function RC(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function BC(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=OC();n!==void 0&&(qi=n);let i=r?qi:n;if(i===0)return 0;if(r){if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2}if("TF_BUILD"in le&&"AGENT_NAME"in le)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(le.TERM==="dumb")return s;if(Gi.default.platform==="win32"){let o=tp.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in le)return"GITHUB_ACTIONS"in le||"GITEA_ACTIONS"in le?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in le)||le.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor"||le.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in le){let o=Number.parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:s}function ep(t,e={}){let r=BC(t,{streamIsTTY:t&&t.isTTY,...e});return RC(r)}var IC={stdout:ep({isTTY:Gu.default.isatty(1)}),stderr:ep({isTTY:Gu.default.isatty(2)})},rp=IC;l();function np(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function ip(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
60
+ `);return M?(n.originalMessage=n.message,n.message=j):n=new Error(j),n.shortMessage=q,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=y,n.stdout=t,n.stderr=e,n.cwd=m,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=f&&!a,n};l();var Bi=["stdin","stdout","stderr"],J_=t=>Bi.some(e=>t[e]!==void 0),ad=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Bi.map(n=>t[n]);if(J_(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bi.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Bi.length);return Array.from({length:r},(n,i)=>e[i])};l();var ld=H(require("os"),1),cd=H(cu(),1),Q_=1e3*5,fd=(t,e="SIGTERM",r={})=>{let n=t(e);return eC(t,e,r,n),n},eC=(t,e,r,n)=>{if(!tC(e,r,n))return;let i=nC(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},tC=(t,{forceKillAfterTimeout:e},r)=>rC(t)&&e!==!1&&r,rC=t=>t===ld.default.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",nC=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Q_;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},hd=(t,e)=>{t.kill()&&(e.isCanceled=!0)},iC=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},dd=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{iC(t,r,a)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},pd=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Dd=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=(0,cd.default)(()=>{t.kill()});return n.finally(()=>{i()})};l();var md=require("fs"),gd=require("child_process");l();function Ii(t){return t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function _u(t){return Ii(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object"}var sC=t=>t instanceof gd.ChildProcess&&typeof t.then=="function",Cu=(t,e,r)=>{if(typeof r=="string")return t[e].pipe((0,md.createWriteStream)(r)),t;if(_u(r))return t[e].pipe(r),t;if(!sC(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!_u(r.stdin))throw new TypeError("The target child process's stdin must be available.");return t[e].pipe(r.stdin),r},Ed=t=>{t.stdout!==null&&(t.pipeStdout=Cu.bind(void 0,t,"stdout")),t.stderr!==null&&(t.pipeStderr=Cu.bind(void 0,t,"stderr")),t.all!==void 0&&(t.pipeAll=Cu.bind(void 0,t,"all"))};l();var Pi=require("fs");var Su=H(hu(),1),yd=H(du(),1),xd=t=>{if(t!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},oC=({input:t,inputFile:e})=>typeof e!="string"?t:(xd(t),(0,Pi.readFileSync)(e)),bd=t=>{let e=oC(t);if(Ii(e))throw new TypeError("The `input` option cannot be a stream in sync mode");return e},uC=({input:t,inputFile:e})=>typeof e!="string"?t:(xd(t),(0,Pi.createReadStream)(e)),_d=(t,e)=>{let r=uC(e);r!==void 0&&(Ii(r)?r.pipe(t.stdin):t.stdin.end(r))},Cd=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=(0,yd.default)();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Fu=async(t,e)=>{if(!(!t||e===void 0)){t.destroy();try{return await e}catch(r){return r.bufferedData}}},wu=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?(0,Su.default)(t,{encoding:e,maxBuffer:n}):Su.default.buffer(t,{maxBuffer:n})},Fd=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=wu(t,{encoding:n,buffer:i,maxBuffer:s}),a=wu(e,{encoding:n,buffer:i,maxBuffer:s}),c=wu(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Fu(t,u),Fu(e,a),Fu(r,c)])}};l();var aC=(async()=>{})().constructor.prototype,lC=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(aC,t)]),vu=(t,e)=>{for(let[r,n]of lC){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}},wd=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});l();var Ad=require("buffer"),Td=require("child_process"),Od=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],cC=/^[\w.-]+$/,fC=/"/g,hC=t=>typeof t!="string"||cC.test(t)?t:`"${t.replace(fC,'\\"')}"`,Au=(t,e)=>Od(t,e).join(" "),Tu=(t,e)=>Od(t,e).map(r=>hC(r)).join(" "),dC=/ +/g;var Sd=t=>{let e=typeof t;if(e==="string")return t;if(e==="number")return String(t);if(e==="object"&&t!==null&&!(t instanceof Td.ChildProcess)&&"stdout"in t){let r=typeof t.stdout;if(r==="string")return t.stdout;if(Ad.Buffer.isBuffer(t.stdout))return t.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${e}" in template expression`)},vd=(t,e,r)=>r||t.length===0||e.length===0?[...t,...e]:[...t.slice(0,-1),`${t[t.length-1]}${e[0]}`,...e.slice(1)],pC=({templates:t,expressions:e,tokens:r,index:n,template:i})=>{let s=i??t.raw[n],o=s.split(dC).filter(Boolean),u=vd(r,o,s.startsWith(" "));if(n===e.length)return u;let a=e[n],c=Array.isArray(a)?a.map(f=>Sd(f)):[Sd(a)];return vd(u,c,s.endsWith(" "))},Ou=(t,e)=>{let r=[];for(let[n,i]of t.entries())r=pC({templates:t,expressions:e,tokens:r,index:n,template:i});return r};l();var Rd=require("util"),Bd=H(require("process"),1),Id=(0,Rd.debuglog)("execa").enabled,Ni=(t,e)=>String(t).padStart(e,"0"),DC=()=>{let t=new Date;return`${Ni(t.getHours(),2)}:${Ni(t.getMinutes(),2)}:${Ni(t.getSeconds(),2)}.${Ni(t.getMilliseconds(),3)}`},Ru=(t,{verbose:e})=>{e&&Bd.default.stderr.write(`[${DC()}] ${t}
61
+ `)};var mC=1e3*1e3*100,gC=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...cn.default.env,...t}:t;return r?Zh({env:s,cwd:n,execPath:i}):s},$d=(t,e,r={})=>{let n=Ld.default._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:mC,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||cn.default.cwd(),execPath:cn.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Id,...r},r.env=gC(r),r.stdio=ad(r),cn.default.platform==="win32"&&kd.default.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},fn=(t,e,r)=>typeof e!="string"&&!Nd.Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?yu(e):e;function hn(t,e,r){let n=$d(t,e,r),i=Au(t,e),s=Tu(t,e);Ru(s,n.options),pd(n.options);let o;try{o=ki.default.spawn(n.file,n.args,n.options)}catch(y){let _=new ki.default.ChildProcess,O=Promise.reject(ln({error:y,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return vu(_,O),_}let u=wd(o),a=dd(o,n.options,u),c=Dd(o,n.options,a),f={isCanceled:!1};o.kill=fd.bind(null,o.kill.bind(o)),o.cancel=hd.bind(null,o,f);let m=Qh(async()=>{let[{error:y,exitCode:_,signal:O,timedOut:k},M,q,j]=await Fd(o,n.options,c),T=fn(n.options,M),$=fn(n.options,q),R=fn(n.options,j);if(y||_!==0||O!==null){let L=ln({error:y,exitCode:_,signal:O,stdout:T,stderr:$,all:R,command:i,escapedCommand:s,parsed:n,timedOut:k,isCanceled:f.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:o.killed});if(!n.options.reject)return L;throw L}return{command:i,escapedCommand:s,exitCode:0,stdout:T,stderr:$,all:R,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return _d(o,n.options),o.all=Cd(o,n.options),Ed(o),vu(o,m),o}function EC(t,e,r){let n=$d(t,e,r),i=Au(t,e),s=Tu(t,e);Ru(s,n.options);let o=bd(n.options),u;try{u=ki.default.spawnSync(n.file,n.args,{...n.options,input:o})}catch(f){throw ln({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=fn(n.options,u.stdout,u.error),c=fn(n.options,u.stderr,u.error);if(u.error||u.status!==0||u.signal!==null){let f=ln({stdout:a,stderr:c,error:u.error,signal:u.signal,exitCode:u.status,command:i,escapedCommand:s,parsed:n,timedOut:u.error&&u.error.code==="ETIMEDOUT",isCanceled:!1,killed:u.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var yC=({input:t,inputFile:e,stdio:r})=>t===void 0&&e===void 0&&r===void 0?{stdin:"inherit"}:{},Pd=(t={})=>({preferLocal:!0,...yC(t),...t});function Md(t){function e(r,...n){if(!Array.isArray(r))return Md({...t,...r});let[i,...s]=Ou(r,n);return hn(i,s,Pd(t))}return e.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...s]=Ou(r,n);return EC(i,s,Pd(t))},e}var Q8=Md();l();var xC={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"}},Li=class extends Error{};async function Bu(t=hn){let e=await t("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(e.stdout);if(!r)throw new Li(`Cannot find Windows browser in stdout: ${JSON.stringify(e.stdout)}`);let{id:n}=r.groups,i=xC[n];if(!i)throw new Li(`Unknown browser ID: ${n}`);return i}async function Iu(){if($i.default.platform==="linux"){let{stdout:t}=await hn("xdg-mime",["query","default","x-scheme-handler/http"]);return{name:Eu(t.trim().replace(/.desktop$/,"").replace("-"," ")),id:t}}if($i.default.platform==="darwin"){let t=await zo();return{name:await gu(t),id:t}}if($i.default.platform==="win32")return Bu();throw new Error("Only macOS, Linux, and Windows are supported")}l();var Hd=H(require("fs"),1);l();var Nu=H(require("fs"),1),Pu;function bC(){try{return Nu.default.statSync("/.dockerenv"),!0}catch{return!1}}function _C(){try{return Nu.default.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function ku(){return Pu===void 0&&(Pu=bC()||_C()),Pu}var Lu,CC=()=>{try{return Hd.default.statSync("/run/.containerenv"),!0}catch{return!1}};function $u(){return Lu===void 0&&(Lu=CC()||ku()),Lu}var Mu=Hu.default.dirname((0,Vd.fileURLToPath)(importMetaUrl)),Ud=Hu.default.join(Mu,"xdg-open"),{platform:Sr,arch:jd}=Hi.default,FC=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await Ui.default.access(r,Uu.constants.F_OK),n=!0}catch{}if(!n)return t;let i=await Ui.default.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),qd=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},Mi=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return qd(t.app,u=>Mi({...t,app:u}));let{name:e,arguments:r=[]}=t.app??{};if(r=[...r],Array.isArray(e))return qd(e,u=>Mi({...t,app:{name:u,arguments:r}}));if(e==="browser"||e==="browserPrivate"){let u={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},a={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},c=await Iu();if(c.id in u){let f=u[c.id];return e==="browserPrivate"&&r.push(a[f]),Mi({...t,app:{name:vr[f],arguments:r}})}throw new Error(`${c.name} is not supported as a default browser`)}let n,i=[],s={};if(Sr==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Sr==="win32"||dn.default&&!$u()&&!e){let u=await FC();n=dn.default?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${Hi.default.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),dn.default||(s.windowsVerbatimArguments=!0);let a=["Start"];t.wait&&a.push("-Wait"),e?(a.push(`"\`"${e}\`""`),t.target&&r.push(t.target)):t.target&&a.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),a.push("-ArgumentList",r.join(","))),t.target=Wd.Buffer.from(a.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let u=!Mu||Mu==="/",a=!1;try{await Ui.default.access(Ud,Uu.constants.X_OK),a=!0}catch{}n=Hi.default.versions.electron??(Sr==="android"||u||!a)?"xdg-open":Ud}r.length>0&&i.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&i.push(t.target),Sr==="darwin"&&r.length>0&&i.push("--args",...r);let o=zd.default.spawn(n,i,s);return t.wait?new Promise((u,a)=>{o.once("error",a),o.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){a(new Error(`Exited with code ${c}`));return}u(o)})}):(o.unref(),o)},wC=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return Mi({...e,target:t})};function Gd(t){if(typeof t=="string"||Array.isArray(t))return t;let{[jd]:e}=t;if(!e)throw new Error(`${jd} is not supported`);return e}function ju({[Sr]:t},{wsl:e}){if(e&&dn.default)return Gd(e);if(!t)throw new Error(`${Sr} is not supported`);return Gd(t)}var vr={};Zt(vr,"chrome",()=>ju({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));Zt(vr,"firefox",()=>ju({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));Zt(vr,"edge",()=>ju({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Zt(vr,"browser",()=>"browser");Zt(vr,"browserPrivate",()=>"browserPrivate");var Kd=wC;var yD=H(require("path"));l();var Yd=H(require("os")),Xd=H(require("path")),ji=H(require("fs")),Tt=Xd.join(Yd.homedir(),".e2b","config.json"),qu=process.env.E2B_DOCS_BASE||"https://e2b.dev/docs";function pn(){return ji.existsSync(Tt)?JSON.parse(ji.readFileSync(Tt,"utf8")):null}l();l();l();var Zd=(t=0)=>e=>`\x1B[${e+t}m`,Jd=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Qd=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ue={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]}},CR=Object.keys(ue.modifier),vC=Object.keys(ue.color),AC=Object.keys(ue.bgColor),FR=[...vC,...AC];function TC(){let t=new Map;for(let[e,r]of Object.entries(ue)){for(let[n,i]of Object.entries(r))ue[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=ue[n],t.set(i[0],i[1]);Object.defineProperty(ue,e,{value:r,enumerable:!1})}return Object.defineProperty(ue,"codes",{value:t,enumerable:!1}),ue.color.close="\x1B[39m",ue.bgColor.close="\x1B[49m",ue.color.ansi=Zd(),ue.color.ansi256=Jd(),ue.color.ansi16m=Qd(),ue.bgColor.ansi=Zd(10),ue.bgColor.ansi256=Jd(10),ue.bgColor.ansi16m=Qd(10),Object.defineProperties(ue,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.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:e=>ue.rgbToAnsi256(...ue.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,i=u%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:(e,r,n)=>ue.ansi256ToAnsi(ue.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ue.ansi256ToAnsi(ue.hexToAnsi256(e)),enumerable:!1}}),ue}var OC=TC(),Ye=OC;l();var Gi=H(require("process"),1),tp=H(require("os"),1),Gu=H(require("tty"),1);function qe(t,e=globalThis.Deno?globalThis.Deno.args:Gi.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:le}=Gi.default,qi;qe("no-color")||qe("no-colors")||qe("color=false")||qe("color=never")?qi=0:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(qi=1);function RC(){if("FORCE_COLOR"in le)return le.FORCE_COLOR==="true"?1:le.FORCE_COLOR==="false"?0:le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(le.FORCE_COLOR,10),3)}function BC(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function IC(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=RC();n!==void 0&&(qi=n);let i=r?qi:n;if(i===0)return 0;if(r){if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2}if("TF_BUILD"in le&&"AGENT_NAME"in le)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(le.TERM==="dumb")return s;if(Gi.default.platform==="win32"){let o=tp.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in le)return"GITHUB_ACTIONS"in le||"GITEA_ACTIONS"in le?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in le)||le.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor"||le.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in le){let o=Number.parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:s}function ep(t,e={}){let r=IC(t,{streamIsTTY:t&&t.isTTY,...e});return BC(r)}var PC={stdout:ep({isTTY:Gu.default.isatty(1)}),stderr:ep({isTTY:Gu.default.isatty(2)})},rp=PC;l();function np(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function ip(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
62
62
  `:`
63
63
  `)+r,i=n+1,n=t.indexOf(`
64
- `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:sp,stderr:op}=rp,Wu=Symbol("GENERATOR"),Ar=Symbol("STYLER"),Dn=Symbol("IS_EMPTY"),up=["ansi","ansi","ansi256","ansi16m"],Tr=Object.create(null),PC=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=sp?sp.level:0;t.level=e.level===void 0?r:e.level};var NC=t=>{let e=(...r)=>r.join(" ");return PC(e,t),Object.setPrototypeOf(e,mn.prototype),e};function mn(t){return NC(t)}Object.setPrototypeOf(mn.prototype,Function.prototype);for(let[t,e]of Object.entries(Ke))Tr[t]={get(){let r=Wi(this,zu(e.open,e.close,this[Ar]),this[Dn]);return Object.defineProperty(this,t,{value:r}),r}};Tr.visible={get(){let t=Wi(this,this[Ar],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Vu=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Ke[r].ansi16m(...n):e==="ansi256"?Ke[r].ansi256(Ke.rgbToAnsi256(...n)):Ke[r].ansi(Ke.rgbToAnsi(...n)):t==="hex"?Vu("rgb",e,r,...Ke.hexToRgb(...n)):Ke[r][t](...n),kC=["rgb","hex","ansi256"];for(let t of kC){Tr[t]={get(){let{level:r}=this;return function(...n){let i=zu(Vu(t,up[r],"color",...n),Ke.color.close,this[Ar]);return Wi(this,i,this[Dn])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Tr[e]={get(){let{level:r}=this;return function(...n){let i=zu(Vu(t,up[r],"bgColor",...n),Ke.bgColor.close,this[Ar]);return Wi(this,i,this[Dn])}}}}var LC=Object.defineProperties(()=>{},{...Tr,level:{enumerable:!0,get(){return this[Wu].level},set(t){this[Wu].level=t}}}),zu=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Wi=(t,e,r)=>{let n=(...i)=>$C(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,LC),n[Wu]=t,n[Ar]=e,n[Dn]=r,n},$C=(t,e)=>{if(t.level<=0||!e)return t[Dn]?"":e;let r=t[Ar];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=np(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
65
- `);return s!==-1&&(e=ip(e,i,n,s)),n+e+i};Object.defineProperties(mn.prototype,Tr);var MC=mn(),PR=mn({level:op?op.level:0});var we=MC;l();var cD=M(hp()),fD=M(Qp()),Pr=M(require("fs")),hD=M(lD()),Ne=M(require("path")),dD=M(require("util")),aw=dD.promisify(fD.walk);async function pD(t,e){let r;if(e?.respectGitignore){let s=Ne.join(t,".gitignore");Pr.existsSync(s)&&(r=hD.default().add(Pr.readFileSync(s).toString()))}let n;if(e?.respectDockerignore){let s=Ne.join(t,".dockerignore");if(Pr.existsSync(s)){let u=Pr.readFileSync(s,"utf-8").split(`
66
- `).map(a=>a.trim());n=cD.default().add(u)}}let i=await aw(t,{entryFilter:s=>[!!s.stats?.isFile(),e?.extension?s.name.endsWith(e.extension):!0,e?.name?s.name===e.name:!0,!(r&&r.ignores(Ne.relative(t,s.path))),!(n&&n.ignores(Ne.relative(t,s.path)))].every(Boolean),stats:!0});return await Promise.all(i.map(async s=>({path:s.path,rootPath:Ne.join("/",Ne.relative(t,s.path)),name:s.name})))}function fs(t){let e=process.cwd();return t?Ne.isAbsolute(t)?t:Ne.resolve(e,t):e}function DD(t){return Ne.relative(process.cwd(),t)}function Ye(t,e){let r=ve(t.envID),n=e?lw(" <-> ")+_e(e):"";return`${r}${n}`}function mD(t,e){return we.redBright(`${t?`${t}
64
+ `,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:sp,stderr:op}=rp,Wu=Symbol("GENERATOR"),Ar=Symbol("STYLER"),Dn=Symbol("IS_EMPTY"),up=["ansi","ansi","ansi256","ansi16m"],Tr=Object.create(null),NC=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=sp?sp.level:0;t.level=e.level===void 0?r:e.level};var kC=t=>{let e=(...r)=>r.join(" ");return NC(e,t),Object.setPrototypeOf(e,mn.prototype),e};function mn(t){return kC(t)}Object.setPrototypeOf(mn.prototype,Function.prototype);for(let[t,e]of Object.entries(Ye))Tr[t]={get(){let r=Wi(this,zu(e.open,e.close,this[Ar]),this[Dn]);return Object.defineProperty(this,t,{value:r}),r}};Tr.visible={get(){let t=Wi(this,this[Ar],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Vu=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Ye[r].ansi16m(...n):e==="ansi256"?Ye[r].ansi256(Ye.rgbToAnsi256(...n)):Ye[r].ansi(Ye.rgbToAnsi(...n)):t==="hex"?Vu("rgb",e,r,...Ye.hexToRgb(...n)):Ye[r][t](...n),LC=["rgb","hex","ansi256"];for(let t of LC){Tr[t]={get(){let{level:r}=this;return function(...n){let i=zu(Vu(t,up[r],"color",...n),Ye.color.close,this[Ar]);return Wi(this,i,this[Dn])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Tr[e]={get(){let{level:r}=this;return function(...n){let i=zu(Vu(t,up[r],"bgColor",...n),Ye.bgColor.close,this[Ar]);return Wi(this,i,this[Dn])}}}}var $C=Object.defineProperties(()=>{},{...Tr,level:{enumerable:!0,get(){return this[Wu].level},set(t){this[Wu].level=t}}}),zu=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Wi=(t,e,r)=>{let n=(...i)=>MC(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,$C),n[Wu]=t,n[Ar]=e,n[Dn]=r,n},MC=(t,e)=>{if(t.level<=0||!e)return t[Dn]?"":e;let r=t[Ar];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=np(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
65
+ `);return s!==-1&&(e=ip(e,i,n,s)),n+e+i};Object.defineProperties(mn.prototype,Tr);var HC=mn(),PR=mn({level:op?op.level:0});var we=HC;l();var cD=H(hp()),fD=H(Qp()),Pr=H(require("fs")),hD=H(lD()),Ne=H(require("path")),dD=H(require("util")),lw=dD.promisify(fD.walk);async function pD(t,e){let r;if(e?.respectGitignore){let s=Ne.join(t,".gitignore");Pr.existsSync(s)&&(r=hD.default().add(Pr.readFileSync(s).toString()))}let n;if(e?.respectDockerignore){let s=Ne.join(t,".dockerignore");if(Pr.existsSync(s)){let u=Pr.readFileSync(s,"utf-8").split(`
66
+ `).map(a=>a.trim());n=cD.default().add(u)}}let i=await lw(t,{entryFilter:s=>[!!s.stats?.isFile(),e?.extension?s.name.endsWith(e.extension):!0,e?.name?s.name===e.name:!0,!(r&&r.ignores(Ne.relative(t,s.path))),!(n&&n.ignores(Ne.relative(t,s.path)))].every(Boolean),stats:!0});return await Promise.all(i.map(async s=>({path:s.path,rootPath:Ne.join("/",Ne.relative(t,s.path)),name:s.name})))}function fs(t){let e=process.cwd();return t?Ne.isAbsolute(t)?t:Ne.resolve(e,t):e}function DD(t){return Ne.relative(process.cwd(),t)}function We(t,e){let r=ve(t.envID),n=e?cw(" <-> ")+_e(e):"";return`${r}${n}`}function mD(t,e){return we.redBright(`${t?`${t}
67
67
  `:""}${e?e.stack:""}
68
- `)}function lw(t){return we.dim(t)}function ve(t){return we.bold(t)}function xn(t){return we.blue(t)}function _e(t){return t?xn("./"+DD(t)):""}function Ta(t){return we.blueBright(t)}var xD=new Fe("login").description("Log in to e2b").action(async()=>{let t;try{t=pn()}catch(e){console.error(mD("Failed to read user config",e))}if(t){console.log(`Already logged in as ${ve(t.email)}, if you want to login as a different user, logout first.`);return}else if(!t){if(console.log("Attempting to login..."),t=await cw(),!t){console.info("Login aborted");return}hs.mkdirSync(yD.dirname(Tt),{recursive:!0}),hs.writeFileSync(Tt,JSON.stringify(t,null,2))}console.log(`Logged in as ${ve(t.email)}`),process.exit(0)});async function cw(){let t=ED.createServer(),{port:e}=await gD.default(t,0,"127.0.0.1"),r=new URL(`${qu}/api/cli`);return r.searchParams.set("next",`http://localhost:${e}`),r.searchParams.set("cliVersion",ds.version),new Promise((n,i)=>(t.once("request",(s,o)=>{o.setHeader("connection","close");let u=new URL(`${qu}/api/cli`),a=new URL(s.url||"/","http://localhost").searchParams,c=Object.fromEntries(a.entries()),{error:f}=c;f?(i(new Error(f)),u.searchParams.set("state","error"),u.searchParams.set("error",f)):(n(c),u.searchParams.set("state","success"),u.searchParams.set("email",c.email)),o.statusCode=302,o.setHeader("location",u.href),o.end()}),Kd(r.toString())))}l();var ps=M(require("fs"));var bD=new Fe("logout").description("Log out of e2b").action(()=>{ps.existsSync(Tt)?(ps.unlinkSync(Tt),console.log("Logged out.")):console.log("Not logged in, nothing to do")});l();l();l();l();l();var fw=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),hw=dw(["",""],["",""]);function dw(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function pw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dw=function(){function t(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return pw(this,t),this.tag=function(s){for(var o=arguments.length,u=Array(o>1?o-1:0),a=1;a<o;a++)u[a-1]=arguments[a];return typeof s=="function"?e.interimTag.bind(e,s):typeof s=="string"?e.transformEndResult(s):(s=s.map(e.transformString.bind(e)),e.transformEndResult(s.reduce(e.processSubstitutions.bind(e,u))))},n.length>0&&Array.isArray(n[0])&&(n=n[0]),this.transformers=n.map(function(s){return typeof s=="function"?s():s}),this.tag}return fw(t,[{key:"interimTag",value:function(r,n){for(var i=arguments.length,s=Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return this.tag(hw,r.apply(void 0,[n].concat(s)))}},{key:"processSubstitutions",value:function(r,n,i){var s=this.transformSubstitution(r.shift(),n);return"".concat(n,s,i)}},{key:"transformString",value:function(r){var n=function(s,o){return o.onString?o.onString(s):s};return this.transformers.reduce(n,r)}},{key:"transformSubstitution",value:function(r,n){var i=function(o,u){return u.onSubstitution?u.onSubstitution(o,n):o};return this.transformers.reduce(i,r)}},{key:"transformEndResult",value:function(r){var n=function(s,o){return o.onEndResult?o.onEndResult(s):s};return this.transformers.reduce(n,r)}}]),t}(),ne=Dw;l();l();var mw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{onEndResult:function(n){if(e==="")return n.trim();if(e=e.toLowerCase(),e==="start"||e==="left")return n.replace(/^\s*/,"");if(e==="end"||e==="right")return n.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},ie=mw;l();l();function gw(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}var Ew=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";return{onEndResult:function(n){if(e==="initial"){var i=n.match(/^[^\S\n]*(?=\S)/gm),s=i&&Math.min.apply(Math,gw(i.map(function(u){return u.length})));if(s){var o=new RegExp("^.{"+s+"}","gm");return n.replace(o,"")}return n}if(e==="all")return n.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},ye=Ew;l();l();var yw=function(e,r){return{onEndResult:function(i){if(e==null||r==null)throw new Error("replaceResultTransformer requires at least 2 arguments.");return i.replace(e,r)}}},Be=yw;l();l();var xw=function(e,r){return{onSubstitution:function(i,s){if(e==null||r==null)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return i==null?i:i.toString().replace(e,r)}}},gt=xw;l();l();l();l();var _w={separator:"",conjunction:"",serial:!1},Cw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_w;return{onSubstitution:function(n,i){if(Array.isArray(n)){var s=n.length,o=e.separator,u=e.conjunction,a=e.serial,c=i.match(/(\n?[^\S\n]+)$/);if(c?n=n.join(o+c[1]):n=n.join(o+" "),u&&s>1){var f=n.lastIndexOf(o);n=n.slice(0,f)+(a?o:"")+" "+u+n.slice(f+1)}}return n}}},ce=Cw;l();l();var Fw=function(e){return{onSubstitution:function(n,i){if(e!=null&&typeof e=="string")typeof n=="string"&&n.includes(e)&&(n=n.split(e));else throw new Error("You need to specify a string character to split by.");return n}}},Nr=Fw;l();l();var _D=function(e){return e!=null&&!Number.isNaN(e)&&typeof e!="boolean"},ww=function(){return{onSubstitution:function(r){return Array.isArray(r)?r.filter(_D):_D(r)?r:""}}},Ds=ww;l();l();var nI=new ne(ce({separator:","}),ye,ie);l();l();var dI=new ne(ce({separator:",",conjunction:"and"}),ye,ie);l();l();var CI=new ne(ce({separator:",",conjunction:"or"}),ye,ie);l();l();var NI=new ne(Nr(`
68
+ `)}function cw(t){return we.dim(t)}function ve(t){return we.bold(t)}function xn(t){return we.blue(t)}function _e(t){return t?xn("./"+DD(t)):""}function Ta(t){return we.blueBright(t)}var xD=new Fe("login").description("Log in to CLI").action(async()=>{let t;try{t=pn()}catch(e){console.error(mD("Failed to read user config",e))}if(t){console.log(`Already logged in as ${ve(t.email)}, if you want to login as a different user, logout first by running 'e2b logout'.`);return}else if(!t){if(console.log("Attempting to login..."),t=await fw(),!t){console.info("Login aborted");return}hs.mkdirSync(yD.dirname(Tt),{recursive:!0}),hs.writeFileSync(Tt,JSON.stringify(t,null,2))}console.log(`Logged in as ${ve(t.email)}`),process.exit(0)});async function fw(){let t=ED.createServer(),{port:e}=await gD.default(t,0,"127.0.0.1"),r=new URL(`${qu}/api/cli`);return r.searchParams.set("next",`http://localhost:${e}`),r.searchParams.set("cliVersion",ds.version),new Promise((n,i)=>(t.once("request",(s,o)=>{o.setHeader("connection","close");let u=new URL(`${qu}/api/cli`),a=new URL(s.url||"/","http://localhost").searchParams,c=Object.fromEntries(a.entries()),{error:f}=c;f?(i(new Error(f)),u.searchParams.set("state","error"),u.searchParams.set("error",f)):(n(c),u.searchParams.set("state","success"),u.searchParams.set("email",c.email)),o.statusCode=302,o.setHeader("location",u.href),o.end()}),Kd(r.toString())))}l();var ps=H(require("fs"));var bD=new Fe("logout").description("Log out of CLI").action(()=>{ps.existsSync(Tt)?(ps.unlinkSync(Tt),console.log("Logged out.")):console.log("Not logged in, nothing to do")});l();l();l();l();l();var hw=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),dw=pw(["",""],["",""]);function pw(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Dw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var mw=function(){function t(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return Dw(this,t),this.tag=function(s){for(var o=arguments.length,u=Array(o>1?o-1:0),a=1;a<o;a++)u[a-1]=arguments[a];return typeof s=="function"?e.interimTag.bind(e,s):typeof s=="string"?e.transformEndResult(s):(s=s.map(e.transformString.bind(e)),e.transformEndResult(s.reduce(e.processSubstitutions.bind(e,u))))},n.length>0&&Array.isArray(n[0])&&(n=n[0]),this.transformers=n.map(function(s){return typeof s=="function"?s():s}),this.tag}return hw(t,[{key:"interimTag",value:function(r,n){for(var i=arguments.length,s=Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return this.tag(dw,r.apply(void 0,[n].concat(s)))}},{key:"processSubstitutions",value:function(r,n,i){var s=this.transformSubstitution(r.shift(),n);return"".concat(n,s,i)}},{key:"transformString",value:function(r){var n=function(s,o){return o.onString?o.onString(s):s};return this.transformers.reduce(n,r)}},{key:"transformSubstitution",value:function(r,n){var i=function(o,u){return u.onSubstitution?u.onSubstitution(o,n):o};return this.transformers.reduce(i,r)}},{key:"transformEndResult",value:function(r){var n=function(s,o){return o.onEndResult?o.onEndResult(s):s};return this.transformers.reduce(n,r)}}]),t}(),ne=mw;l();l();var gw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{onEndResult:function(n){if(e==="")return n.trim();if(e=e.toLowerCase(),e==="start"||e==="left")return n.replace(/^\s*/,"");if(e==="end"||e==="right")return n.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},ie=gw;l();l();function Ew(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}var yw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";return{onEndResult:function(n){if(e==="initial"){var i=n.match(/^[^\S\n]*(?=\S)/gm),s=i&&Math.min.apply(Math,Ew(i.map(function(u){return u.length})));if(s){var o=new RegExp("^.{"+s+"}","gm");return n.replace(o,"")}return n}if(e==="all")return n.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},ye=yw;l();l();var xw=function(e,r){return{onEndResult:function(i){if(e==null||r==null)throw new Error("replaceResultTransformer requires at least 2 arguments.");return i.replace(e,r)}}},Be=xw;l();l();var bw=function(e,r){return{onSubstitution:function(i,s){if(e==null||r==null)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return i==null?i:i.toString().replace(e,r)}}},gt=bw;l();l();l();l();var Cw={separator:"",conjunction:"",serial:!1},Fw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cw;return{onSubstitution:function(n,i){if(Array.isArray(n)){var s=n.length,o=e.separator,u=e.conjunction,a=e.serial,c=i.match(/(\n?[^\S\n]+)$/);if(c?n=n.join(o+c[1]):n=n.join(o+" "),u&&s>1){var f=n.lastIndexOf(o);n=n.slice(0,f)+(a?o:"")+" "+u+n.slice(f+1)}}return n}}},ce=Fw;l();l();var ww=function(e){return{onSubstitution:function(n,i){if(e!=null&&typeof e=="string")typeof n=="string"&&n.includes(e)&&(n=n.split(e));else throw new Error("You need to specify a string character to split by.");return n}}},Nr=ww;l();l();var _D=function(e){return e!=null&&!Number.isNaN(e)&&typeof e!="boolean"},Sw=function(){return{onSubstitution:function(r){return Array.isArray(r)?r.filter(_D):_D(r)?r:""}}},Ds=Sw;l();l();var nI=new ne(ce({separator:","}),ye,ie);l();l();var dI=new ne(ce({separator:",",conjunction:"and"}),ye,ie);l();l();var CI=new ne(ce({separator:",",conjunction:"or"}),ye,ie);l();l();var NI=new ne(Nr(`
69
69
  `),Ds,ce,ye,ie);l();l();l();l();var QI=new ne(Nr(`
70
- `),ce,ye,ie,gt(/&/g,"&amp;"),gt(/</g,"&lt;"),gt(/>/g,"&gt;"),gt(/"/g,"&quot;"),gt(/'/g,"&#x27;"),gt(/`/g,"&#x60;"));l();l();var aP=new ne(Be(/(?:\n(?:\s*))+/g," "),ie);l();l();var gP=new ne(Be(/(?:\n\s*)/g,""),ie);l();l();var vP=new ne(ce({separator:","}),Be(/(?:\s+)/g," "),ie);l();l();var LP=new ne(ce({separator:",",conjunction:"or"}),Be(/(?:\s+)/g," "),ie);l();l();var zP=new ne(ce({separator:",",conjunction:"and"}),Be(/(?:\s+)/g," "),ie);l();l();var nN=new ne(ce,ye,ie);l();l();var dN=new ne(ce,Be(/(?:\s+)/g," "),ie);l();l();var Lw=new ne(ye,ie),ms=Lw;l();l();var ON=new ne(ye("all"),ie);var ai=M(require("fs")),St=M(require("path"));l();l();l();l();l();var ak=Symbol(),er=class extends Error{constructor(e){super(e.statusText),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"statusText",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.setPrototypeOf(this,new.target.prototype),this.headers=e.headers,this.url=e.url,this.status=e.status,this.statusText=e.statusText,this.data=e.data}};var _n=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(f){try{c(n.next(f))}catch(p){o(p)}}function a(f){try{c(n.throw(f))}catch(p){o(p)}}function c(f){f.done?s(f.value):i(f.value).then(u,a)}c((n=n.apply(t,e||[])).next())})},CD=t=>t==="post"||t==="put"||t==="patch"||t==="delete";function Hw(t){let e=[],r=(n,i)=>`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`;return Object.keys(t).forEach(n=>{let i=t[n];i!=null&&(Array.isArray(i)?i.forEach(s=>e.push(r(n,s))):e.push(r(n,i)))}),e.length>0?`?${e.join("&")}`:""}function Uw(t,e){return t.replace(/\{([^}]+)\}/g,(r,n)=>{let i=encodeURIComponent(e[n]);return delete e[n],i})}function jw(t,e,r){let n={};return CD(t)?r.forEach(i=>{n[i]=e[i],delete e[i]}):n=Object.assign({},e),Hw(n)}function qw(t,e){let r=new Headers(e);return t!==void 0&&!r.has("Content-Type")&&r.append("Content-Type","application/json"),r.has("Accept")||r.append("Accept","application/json"),r}function Gw(t,e){let r=CD(t)?JSON.stringify(e):void 0;return t==="delete"&&r==="{}"?void 0:r}function Ww(t,e){let r=new Headers(t?.headers),n=new Headers(e?.headers);for(let i of n.keys()){let s=n.get(i);s!=null&&r.set(i,s)}return Object.assign(Object.assign(Object.assign({},t),e),{headers:r})}function Vw(t){var e;let r=Object.assign(Array.isArray(t.payload)?[]:{},t.payload),n=Uw(t.path,r),i=jw(t.method,r,t.queryParams),s=Gw(t.method,r),o=qw(s,(e=t.init)===null||e===void 0?void 0:e.headers),u=t.baseUrl+n+i,a=Object.assign(Object.assign({},t.init),{method:t.method.toUpperCase(),headers:o,body:s});return{url:u,init:a}}function zw(t){return _n(this,void 0,void 0,function*(){let e=t.headers.get("content-type");if(t.status===204)return;if(e&&e.indexOf("application/json")!==-1)return yield t.json();let r=yield t.text();try{return JSON.parse(r)}catch{return r}})}function Kw(t,e){return _n(this,void 0,void 0,function*(){let r=yield fetch(t,e),n=yield zw(r),i={headers:r.headers,url:r.url,ok:r.ok,status:r.status,statusText:r.statusText,data:n};if(i.ok)return i;throw new er(i)})}function Yw(t,e){let r=(n,i,s)=>_n(this,void 0,void 0,function*(){if(t==null||n===t.length)return e(i,s);let o=t[n];return yield o(i,s,(u,a)=>r(n+1,u,a))});return(n,i)=>r(0,n,i)}function Xw(t){return _n(this,void 0,void 0,function*(){let{url:e,init:r}=Vw(t);return yield t.fetch(e,r)})}function Zw(t){let e=(r,n)=>_n(this,void 0,void 0,function*(){try{return yield t(r,n)}catch(i){throw i instanceof er?new e.Error(i):i}});return e.Error=class extends er{constructor(r){super(r),Object.setPrototypeOf(this,new.target.prototype)}getActualType(){return{status:this.status,data:this.data}}},e}function Jw(){let t="",e={},r=[],n=Yw(r,Kw);return{configure:i=>{t=i.baseUrl||"",e=i.init||{},r.splice(0),r.push(...i.use||[])},use:i=>r.push(i),path:i=>({method:s=>({create:o=>Zw((u,a)=>Xw({baseUrl:t||"",path:i,method:s,queryParams:Object.keys(o||{}),payload:u,init:Ww(e,a),fetch:n}))})})}}var Oa={for:()=>Jw()};l();l();var Qw="api.e2b.dev",Cn=process.env.DEBUG?"http://localhost:3000":`https://${Qw}`,Ra="e2b.dev",gs=49982,FD="/ws",wD="/file";l();var ys=M(SD());var vD="0.8.0";var AD={browser:typeof window<"u"&&ys.default.name||"undefined",lang:"js",lang_version:ys.default.version||"unknown",package_version:vD,publisher:"e2b",sdk_runtime:typeof window>"u"?"node":"browser",system:ys.default.os?.family||"unknown"};var TD=Oa.for();TD.configure({baseUrl:Cn,init:{headers:AD}});function wn(t){let e=(r,n,i)=>t(n,{...i,headers:{Authorization:`Bearer ${r}`,...i?.headers}});return e.Error=t.Error,e}function xs(t){let e=(r,n,i)=>t(n,{...i,headers:{"X-API-KEY":r,...i?.headers}});return e.Error=t.Error,e}var kt=TD;l();var d0=M(RD());l();function bs(t){let e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}l();l();var _s=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},Cs=class extends Error{constructor(e){super(e),this.name="AuthenticationError"}};function BD(t){return t.status==="fulfilled"}function Sn(t){if(!t.every(e=>e.status==="fulfilled"))return t.reduce((e,r,n)=>r.status==="rejected"?e+`
70
+ `),ce,ye,ie,gt(/&/g,"&amp;"),gt(/</g,"&lt;"),gt(/>/g,"&gt;"),gt(/"/g,"&quot;"),gt(/'/g,"&#x27;"),gt(/`/g,"&#x60;"));l();l();var aP=new ne(Be(/(?:\n(?:\s*))+/g," "),ie);l();l();var gP=new ne(Be(/(?:\n\s*)/g,""),ie);l();l();var vP=new ne(ce({separator:","}),Be(/(?:\s+)/g," "),ie);l();l();var LP=new ne(ce({separator:",",conjunction:"or"}),Be(/(?:\s+)/g," "),ie);l();l();var zP=new ne(ce({separator:",",conjunction:"and"}),Be(/(?:\s+)/g," "),ie);l();l();var nN=new ne(ce,ye,ie);l();l();var dN=new ne(ce,Be(/(?:\s+)/g," "),ie);l();l();var $w=new ne(ye,ie),ms=$w;l();l();var ON=new ne(ye("all"),ie);var ai=H(require("fs")),St=H(require("path"));l();l();var d0=H(FD());l();var Uw="api.e2b.dev",_n=process.env.DEBUG?"http://localhost:3000":`https://${Uw}`,Oa="e2b.dev",gs=49982,wD="/ws",SD="/file";l();function Es(t){let e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}l();l();var ys=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},xs=class extends Error{constructor(e){super(e),this.name="AuthenticationError"}};function vD(t){return t.status==="fulfilled"}function Cn(t){if(!t.every(e=>e.status==="fulfilled"))return t.reduce((e,r,n)=>r.status==="rejected"?e+`
71
71
  [${n}]: ${JSON.stringify(r)}`:e,`errors:
72
- `)}function vn(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),reject:e,resolve:t}}function Lt(t,e=6e4){if(e===void 0||e<=0||e===Number.POSITIVE_INFINITY)return t;let r,n=new Promise((i,s)=>{r=setTimeout(()=>s(new _s(`Calling "${t.name}" timeouted after ${e}ms.`)),e)});return(...i)=>{let s=Promise.race([n,t(...i)]);return s.finally(()=>clearTimeout(r)),s}}l();var ID="codeSnippet";l();var nt="filesystem";l();var Ba=class{constructor(e,r){this.sessConn=e;this.path=r;this.listeners=new Set}async start(e){return await Lt(async()=>{this.rpcSubscriptionID||(this.handleFilesystemEvents=this.handleFilesystemEvents.bind(this),this.rpcSubscriptionID=await this.sessConn.subscribe(nt,this.handleFilesystemEvents,"watchDir",this.path))},e?.timeout)()}async stop(){this.listeners.clear(),this.rpcSubscriptionID&&await this.sessConn.unsubscribe(this.rpcSubscriptionID)}addEventListener(e){return this.listeners.add(e),()=>this.listeners.delete(e)}handleFilesystemEvents(e){this.listeners.forEach(r=>{r(e)})}},PD=Ba;l();var tr="process",An=class{constructor(e,r,n){this.line=e;this.timestamp=r;this.error=n}toString(){return this.line}},Fs=class{constructor(){this.delimiter=`
73
- `;this.messages=[];this._finished=!1;this._error=!1}get error(){return this._error}get exitCode(){if(!this._finished)throw new Error("Process has not finished yet");return this._exitCode}get stdout(){return this.messages.filter(e=>!e.error).map(e=>e.line).join(this.delimiter)}get stderr(){return this.messages.filter(e=>e.error).map(e=>e.line).join(this.delimiter)}addStdout(e){this.insertByTimestamp(e)}addStderr(e){this._error=!0,this.insertByTimestamp(e)}setExitCode(e){this._exitCode=e,this._finished=!0}insertByTimestamp(e){let r=this.messages.length-1;for(;r>=0&&this.messages[r].timestamp>e.timestamp;)r-=1;this.messages.splice(r+1,0,e)}},ws=class{constructor(e,r,n,i,s){this.processID=e;this.sandbox=r;this.triggerExit=n;this.output=s;this.finished=i}async kill(){try{await this.sandbox.call(tr,"kill",[this.processID])}finally{this.triggerExit(),await this.finished}}async wait(){return this.finished}async sendStdin(e,r){await this.sandbox.call(tr,"stdin",[this.processID,e],r)}};l();l();var yS=jD(),xS=s0(),Lr;(function(t){t.RPC_VERSION="2.0"})(Lr||(Lr={}));var o0=function(){function t(){this.idAwaiter={},this.onOpenHandlers=[],this.onAnyMessageHandlers=[],this.onNotification=[],this.onRequest=[],this.onSuccessResponse=[],this.onErrorResponse=[],this.onErrorHandlers=[],this.onCloseHandlers=[],this.config={responseTimeout:1e4},this.ws=void 0}return t.prototype.connect=function(e,r){return this.ws=new xS(e,r),this.listen()},t.prototype.onOpen=function(e){this.onOpenHandlers.push(e)},t.prototype.onAnyMessage=function(e){this.onAnyMessageHandlers.push(e)},t.prototype.onError=function(e){this.onErrorHandlers.push(e)},t.prototype.onClose=function(e){this.onCloseHandlers.push(e)},t.prototype.listenMessages=function(){var e=this,r;this.ws.onmessage&&(r=this.ws.onmessage.bind(this.ws)),this.ws.onmessage=function(n){r&&r(n);for(var i=0,s=e.onAnyMessageHandlers;i<s.length;i++){var o=s[i];o(n)}var u=JSON.parse(n.data.toString());if(e.isNotification(u))for(var a=0,c=e.onNotification;a<c.length;a++){var o=c[a];o(u)}else if(e.isRequest(u))for(var f=0,p=e.onRequest;f<p.length;f++){var o=p[f];o(u)}else if(e.isSuccessResponse(u)){for(var m=0,y=e.onSuccessResponse;m<y.length;m++){var o=y[m];o(u)}e.idAwaiter[u.id](u.result)}else if(e.isErrorResponse(u)){for(var _=0,O=e.onErrorResponse;_<O.length;_++){var o=O[_];o(u)}e.idAwaiter[u.id](u.error)}}},t.prototype.call=function(e,r){var n=this;return new Promise(function(i,s){var o=n.buildRequest(e,r),u;n.config.responseTimeout&&(u=setTimeout(function(){delete n.idAwaiter[o.id],s('Awaiting response to "'+e+'" with id: '+o.id+" timed out.")},n.config.responseTimeout)),n.idAwaiter[o.id]=function(c){if(clearInterval(u),delete n.idAwaiter[o.id],n.isRpcError(c)){s(c);return}i(c)};var a=JSON.stringify(o);n.ws.send(a)})},t.prototype.notify=function(e,r){this.ws.send(JSON.stringify(this.buildNotification(e,r)))},t.prototype.customId=function(e){this.idFn=e},t.prototype.noRpc=function(){this.buildRequest=this.buildRequestBase,this.buildNotification=this.buildNotificationBase,this.buildRpcSuccessResponse=this.buildRpcSuccessResponseBase,this.buildRpcErrorResponse=this.buildRpcErrorResponseBase},t.prototype.configure=function(e){Object.assign(this.config,e)},t.prototype.changeSocket=function(e){this.ws=e},t.prototype.listen=function(){var e=this;return new Promise(function(r,n){e.ws.onopen=function(i){for(var s=0,o=e.onOpenHandlers;s<o.length;s++){var u=o[s];u(i)}r(i)},e.listenMessages(),e.ws.onerror=function(i){for(var s=0,o=e.onErrorHandlers;s<o.length;s++){var u=o[s];u(i)}},e.ws.onclose=function(i){for(var s=0,o=e.onCloseHandlers;s<o.length;s++){var u=o[s];u(i)}n(i)}})},t.prototype.buildRequest=function(e,r){var n=this.buildRequestBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRequestBase=function(e,r){var n={};return n.id=this.idFn(),n.method=e,r&&(n.params=r),n},t.prototype.buildNotification=function(e,r){var n=this.buildNotificationBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildNotificationBase=function(e,r){var n={};return n.method=e,r&&(n.params=r),n},t.prototype.buildRpcSuccessResponse=function(e,r){var n=this.buildRpcSuccessResponseBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRpcSuccessResponseBase=function(e,r){var n={};return n.id=e,n.result=r,n},t.prototype.buildRpcErrorResponse=function(e,r){var n=this.buildRpcErrorResponseBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRpcErrorResponseBase=function(e,r){var n={};return n.id=e,n.error=r,n},t.prototype.idFn=function(){return yS()},t.prototype.isNotification=function(e){return!e.id},t.prototype.isRequest=function(e){return e.method},t.prototype.isSuccessResponse=function(e){return e.hasOwnProperty("result")},t.prototype.isErrorResponse=function(e){return e.hasOwnProperty("error")},t.prototype.isRpcError=function(e){var r;return typeof((r=e)===null||r===void 0?void 0:r.code)<"u"},t}();l();function bS(t){return new Promise(e=>setTimeout(e,t))}var gl=bS;var u0=xs(kt.path("/instances").method("post").create()),a0=xs(kt.path("/instances/{instanceID}/refreshes").method("post").create()),Bs=class{constructor(e){this.opts=e;this.isOpen=!1;this.rpc=new o0;this.subscribers=[];let r=e.apiKey||process.env.E2B_API_KEY;if(!r)throw new Cs("API key is required, please visit https://e2b.dev/docs to get your API key");this.apiKey=r,this.cwd=e.cwd,this.cwd&&this.cwd.startsWith("~")&&(this.cwd=this.cwd.replace("~","/home/user")),this.envVars=e.envVars||{},this.logger=e.logger??{info:console.info,warn:console.warn,error:console.error},this.logger.info?.(`Sandbox "${e.id}" initialized`)}getHostname(e){if(this.opts.__debug_hostname)return e&&this.opts.__debug_devEnv==="remote"?`${e}-${this.opts.__debug_hostname}`:e?`${this.opts.__debug_hostname}:${e}`:this.opts.__debug_hostname;if(!this.sandbox)return;let r=`${this.sandbox.instanceID}-${this.sandbox.clientID}.${Ra}`;return e?`${e}-${r}`:r}async close(){this.isOpen&&(this.logger.debug?.(`Closing sandbox "${this.sandbox?.instanceID}"`),this.isOpen=!1,this.logger.debug?.("Unsubscribing..."),(await Promise.allSettled(this.subscribers.map(r=>this.unsubscribe(r.subID)))).forEach(r=>{r.status==="rejected"&&this.logger.warn?.(`Failed to unsubscribe: "${r.reason}"`)}),this.rpc.ws?.terminate?.(),this.rpc.ws?.close?.(),this.logger.info?.("Disconnected from the sandbox"))}async open(e){return await Lt(async()=>{if(this.isOpen||this.sandbox)throw new Error("Sandbox connect was already called");if(this.isOpen=!0,this.logger.debug?.("Opening sandbox..."),!this.opts.__debug_hostname)try{let f=await u0(this.apiKey,{envID:this.opts.id});this.sandbox=f.data,this.logger.debug?.(`Acquired sandbox "${this.sandbox.instanceID}"`),this.refresh(this.sandbox.instanceID)}catch(f){if(f instanceof u0.Error){let p=f.getActualType();if(p.status===400)throw new Error(`Error creating sandbox - (${p.status}) bad request: ${p.data.message}`);if(p.status===401)throw new Error(`Error creating sandbox - (${p.status}) unauthenticated: ${p.data.message}`);if(p.status===500)throw new Error(`Error creating sandbox - (${p.status}) server error: ${p.data.message}`)}throw f}let n=this.getHostname(this.opts.__debug_port||gs);if(!n)throw new Error("Cannot get sandbox's hostname");let s=`${this.opts.__debug_devEnv==="local"?"ws":"wss"}://${n}${FD}`;this.rpc.onError(f=>{this.logger.debug?.(`Error in WebSocket of sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}. Trying to reconnect...`)});let o=!1,u,a,c=new Promise((f,p)=>{u=()=>{o||(o=!0,f())},a=()=>{o||(o=!0,p())}});this.rpc.onOpen(()=>{this.logger.debug?.(`Connected to sandbox "${this.sandbox?.instanceID}"`),u?.()}),this.rpc.onClose(async()=>{if(this.logger.debug?.(`Closing WebSocket connection to sandbox "${this.sandbox?.instanceID}"`),this.isOpen){await gl(600),this.logger.debug?.(`Reconnecting to sandbox "${this.sandbox?.instanceID}"`);try{this.subscribers=[],await this.rpc.connect(s),this.logger.debug?.(`Reconnected to sandbox "${this.sandbox?.instanceID}"`)}catch(f){this.logger.debug?.(`Failed reconnecting to sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}`)}}else a?.()}),this.rpc.onNotification.push(this.handleNotification.bind(this));try{this.logger.debug?.(`Connection to sandbox "${this.sandbox?.instanceID}"`),await this.rpc.connect(s)}catch(f){this.logger.debug?.(`Error connecting to sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}`)}return await c,this},e?.timeout)()}async call(e,r,n,i){return this.logger.debug?.(`Calling "${e}_${r}" with params:`,n),await Lt(async(o,u)=>await this.rpc.call(o,u),i?.timeout)(`${e}_${r}`,n)}async handleSubscriptions(...e){let r=await Promise.allSettled(e);if(r.every(n=>n.status==="fulfilled"))return r.map(n=>n.status==="fulfilled"?n.value:void 0);throw await Promise.all(r.filter(BD).map(n=>n.value?this.unsubscribe(n.value):void 0)),new Error(Sn(r))}async unsubscribe(e){let r=this.subscribers.find(n=>n.subID===e);r&&(await this.call(r.service,"unsubscribe",[r.subID]),this.subscribers=this.subscribers.filter(n=>n!==r),this.logger.debug?.(`Unsubscribed '${e}' from '${r.service}'`))}async subscribe(e,r,n,...i){let s=await this.call(e,"subscribe",[n,...i]);if(typeof s!="string")throw new Error(`Cannot subscribe to ${e}_${n}${i.length>0?" with params ["+i.join(", ")+"]":""}. Expected response should have been a subscription ID, instead we got ${JSON.stringify(s)}`);return this.subscribers.push({handler:r,service:e,subID:s}),this.logger.debug?.(`Subscribed to "${e}_${n}"${i.length>0?" with params ["+i.join(", ")+"] and":""} with id "${s}"`),s}handleNotification(e){this.logger.debug?.("Handling notification:",e),this.subscribers.filter(r=>r.subID===e.params?.subscription).forEach(r=>r.handler(e.params?.result))}async refresh(e){this.logger.debug?.(`Started refreshing sandbox "${e}"`);try{for(;;){if(!this.isOpen){this.logger.debug?.(`Cannot refresh sandbox ${this.sandbox?.instanceID} - it was closed`);return}await gl(5e3);try{this.logger.debug?.(`Refreshed sandbox "${e}"`),await a0(this.apiKey,{instanceID:e})}catch(r){if(r instanceof a0.Error){let n=r.getActualType();if(n.status===404){this.logger.warn?.(`Error refreshing sandbox - (${n.status}): ${n.data.message}`);return}this.logger.warn?.(`Refreshing sandbox "${e}" failed - (${n.status})`)}}}}finally{this.logger.debug?.(`Stopped refreshing sandbox "${e}"`),await this.close()}}};l();var sr="terminal",Is=class{constructor(){this._data=""}get data(){return this._data}addData(e){this._data+=e}},Ps=class{constructor(e,r,n,i,s){this.terminalID=e;this.sandbox=r;this.triggerExit=n;this.output=s;this.finished=i}get data(){return this.output.data}async kill(){try{await this.sandbox.call(sr,"destroy",[this.terminalID])}finally{this.triggerExit(),await this.finished}}async wait(){return this.finished}async sendData(e){await this.sandbox.call(sr,"data",[this.terminalID,e])}async resize({cols:e,rows:r}){await this.sandbox.call(sr,"resize",[this.terminalID,e,r])}};l();var $n=M(f0()),h0=(t,e,r)=>{let n;return t.startsWith("./")?(n=$n.default.posix.join(e||"/home/user",t),e||r.warn?.(`Path starts with './' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):t.startsWith("../")?(n=$n.default.posix.join(e||"/home/user",t),e||r.warn?.(`Path starts with '../' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):t.startsWith("~/")?(n=$n.default.posix.join(e||"/home/user",t.substring(2)),e||r.warn?.(`Path starts with '~/' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):!t.startsWith("/")&&e?$n.default.posix.join(e,t):t};var Mn=class t extends Bs{constructor(r){super(r);this.onScanPorts=r.onScanPorts,this.filesystem={list:async(i,s)=>await this.call(nt,"list",[n(i)],s),read:async(i,s)=>await this.call(nt,"read",[n(i)],s),remove:async(i,s)=>{await this.call(nt,"remove",[n(i)],s)},write:async(i,s,o)=>{await this.call(nt,"write",[n(i),s],o)},writeBytes:async(i,s)=>{let o=Buffer.from(s).toString("base64");await this.call(nt,"writeBase64",[n(i),o])},readBytes:async i=>{let s=await this.call(nt,"readBase64",[n(i)]);return Buffer.from(s,"base64")},makeDir:async(i,s)=>{await this.call(nt,"makeDir",[n(i)],s)},watchDir:i=>{this.logger.debug?.(`Watching directory "${i}"`);let s=(0,d0.default)(n(i));return new PD(this,s)}},this.terminal={start:async({onData:i,size:s,onExit:o,envVars:u,cmd:a,cwd:c="",terminalID:f=bs(12),timeout:p=void 0})=>await Lt(async({onData:y,size:_,onExit:O,envVars:k,cmd:H,cwd:q="",rootDir:j,terminalID:T=bs(12)})=>{this.logger.debug?.(`Starting terminal "${T}"`),!q&&j&&(this.logger.warn?.("The rootDir parameter is deprecated, use cwd instead."),q=j),!q&&this.cwd&&(q=this.cwd),k=k||{},k={...this.envVars,...k};let{promise:$,resolve:R}=vn(),L=new Is;function F(G){L.addData(G),y?.(G)}let[A,N]=await this.handleSubscriptions(this.subscribe(sr,F,"onData",T),this.subscribe(sr,R,"onExit",T)),{promise:I,resolve:V}=vn();$.then(async()=>{let G=await Promise.allSettled([this.unsubscribe(N),this.unsubscribe(A)]);this.logger.debug?.(`Terminal "${T}" exited`);let Z=Sn(G);Z&&this.logger.error?.(Z),O?.(),V(L)});try{await this.call(sr,"start",[T,_.cols,_.rows,...H!==void 0?[k,H,q]:[]])}catch(G){throw R(),await I,G}return new Ps(T,this,R,I,L)},p)({onData:i,size:s,onExit:o,envVars:u,cmd:a,cwd:c,terminalID:f})},this.process={start:async i=>{let s=async({cmd:u,onStdout:a,onStderr:c,onExit:f,envVars:p={},cwd:m="",rootDir:y,processID:_=bs(12)})=>{if(!m&&y&&(this.logger.warn?.("The rootDir parameter is deprecated, use cwd instead."),m=y),!m&&this.cwd&&(m=this.cwd),!u)throw new Error("cmd is required");p=p||{},p={...this.envVars,...p},this.logger.debug?.(`Starting process "${_}", cmd: "${u}"`);let{promise:O,resolve:k}=vn(),H=new Fs,q=N=>{H.setExitCode(N),k()},j=N=>{let I=new An(N.line,N.timestamp,!1);H.addStdout(I),a?a(I):this.opts.onStdout&&this.opts.onStdout(I)},T=N=>{let I=new An(N.line,N.timestamp,!0);H.addStderr(I),c?c(I):this.opts.onStderr&&this.opts.onStderr(I)},[$,R,L]=await this.handleSubscriptions(this.subscribe(tr,q,"onExit",_),this.subscribe(tr,j,"onStdout",_),this.subscribe(tr,T,"onStderr",_)),{promise:F,resolve:A}=vn();O.then(async()=>{let N=await Promise.allSettled([this.unsubscribe($),R?this.unsubscribe(R):void 0,L?this.unsubscribe(L):void 0]);this.logger.debug?.(`Process "${_}" exited`);let I=Sn(N);I&&this.logger.error?.(I),f?f():this.opts.onExit&&this.opts.onExit(),A(H)});try{await this.call(tr,"start",[_,u,p,m])}catch(N){throw k(),await F,N}return new ws(_,this,k,F,H)},o=i.timeout;return await Lt(s,o)(i)}};let n=i=>h0(i,this.cwd,this.logger)}get fileURL(){let r=this.opts.__debug_devEnv==="local"?"http":"https",n=this.getHostname(this.opts.__debug_port||gs);return`${r}://${n}${wD}`}static async create(r){return new t(r).open({timeout:r?.timeout}).then(async n=>(r.cwd&&(console.log(`Custom cwd for Sandbox set: "${r.cwd}"`),await n.filesystem.makeDir(r.cwd)),n))}async open(r){await super.open(r);let n=this.onScanPorts?i=>this.onScanPorts?.(i.map(s=>({ip:s.Ip,port:s.Port,state:s.State}))):void 0;return await this.handleSubscriptions(n?this.subscribe(ID,n,"scanOpenedPorts"):void 0),this}async uploadFile(r,n){let i=new FormData,s=r instanceof Blob?r:new Blob([r],{type:"application/octet-stream"});i.append("file",s,n);let o=await fetch(this.fileURL,{method:"POST",body:i});if(!o.ok){let u=await o.text();throw new Error(`Failed to upload file ${o.status} - ${o.statusText}: ${u}`)}return`/home/user/${n}`}async downloadFile(r,n){r=encodeURIComponent(r);let i=await fetch(`${this.fileURL}?path=${r}`);if(!i.ok){let s=await i.text();throw new Error(`Failed to download file '${r}': ${s}`)}switch(n){case"base64":return Buffer.from(await i.arrayBuffer()).toString("base64");case"blob":return await i.blob();case"buffer":return Buffer.from(await i.arrayBuffer());case"arraybuffer":return await i.arrayBuffer();case"text":return await i.text();default:return await i.arrayBuffer()}}};l();async function p0(t){return new Promise(e=>setTimeout(e,t))}l();l();var Un=M(require("process"),1);l();l();l();function yl({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var wS=yl();function Hn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(wS,"")}var y0=M(m0(),1),x0=M(E0(),1);function xe(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=Hn(t),t.length===0))return 0;t=t.replace((0,x0.default)()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let s=i.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(y0.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}l();function Ns(t){let e=0;for(let r of t.split(`
74
- `))e=Math.max(e,xe(r));return e}var X0=M(_l(),1);l();var vS=/[\p{Lu}]/u,AS=/[\p{Ll}]/u,C0=/^[\p{Lu}](?![\p{Lu}])/gu,S0=/([\p{Alpha}\p{N}_]|$)/u,Cl=/[_.\- ]+/,TS=new RegExp("^"+Cl.source),F0=new RegExp(Cl.source+S0.source,"gu"),w0=new RegExp("\\d+"+S0.source,"gu"),OS=(t,e,r,n)=>{let i=!1,s=!1,o=!1,u=!1;for(let a=0;a<t.length;a++){let c=t[a];u=a>2?t[a-3]==="-":!0,i&&vS.test(c)?(t=t.slice(0,a)+"-"+t.slice(a),i=!1,o=s,s=!0,a++):s&&o&&AS.test(c)&&(!u||n)?(t=t.slice(0,a-1)+"-"+t.slice(a-1),o=s,s=!1,i=!0):(i=e(c)===c&&r(c)!==c,o=s,s=r(c)===c&&e(c)!==c)}return t},RS=(t,e)=>(C0.lastIndex=0,t.replace(C0,r=>e(r))),BS=(t,e)=>(F0.lastIndex=0,w0.lastIndex=0,t.replace(F0,(r,n)=>e(n)).replace(w0,r=>e(r)));function Fl(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),n=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?Cl.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=OS(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(TS,""),t=e.preserveConsecutiveUppercase?RS(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),BS(t,n))}var Ol=M($0(),1);l();l();var M0=(t=0)=>e=>`\x1B[${e+t}m`,H0=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,U0=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ae={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]}},S4=Object.keys(ae.modifier),HS=Object.keys(ae.color),US=Object.keys(ae.bgColor),v4=[...HS,...US];function jS(){let t=new Map;for(let[e,r]of Object.entries(ae)){for(let[n,i]of Object.entries(r))ae[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=ae[n],t.set(i[0],i[1]);Object.defineProperty(ae,e,{value:r,enumerable:!1})}return Object.defineProperty(ae,"codes",{value:t,enumerable:!1}),ae.color.close="\x1B[39m",ae.bgColor.close="\x1B[49m",ae.color.ansi=M0(),ae.color.ansi256=H0(),ae.color.ansi16m=U0(),ae.bgColor.ansi=M0(10),ae.bgColor.ansi256=H0(10),ae.bgColor.ansi16m=U0(10),Object.defineProperties(ae,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.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:e=>ae.rgbToAnsi256(...ae.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,i=u%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:(e,r,n)=>ae.ansi256ToAnsi(ae.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ae.ansi256ToAnsi(ae.hexToAnsi256(e)),enumerable:!1}}),ae}var qS=jS(),j0=qS;var ks=new Set(["\x1B","\x9B"]),GS=39,Al="\x07",W0="[",WS="]",V0="m",Tl=`${WS}8;;`,q0=t=>`${ks.values().next().value}${W0}${t}${V0}`,G0=t=>`${ks.values().next().value}${Tl}${t}${Al}`,VS=t=>t.split(" ").map(e=>xe(e)),vl=(t,e,r)=>{let n=[...e],i=!1,s=!1,o=xe(Hn(t[t.length-1]));for(let[u,a]of n.entries()){let c=xe(a);if(o+c<=r?t[t.length-1]+=a:(t.push(a),o=0),ks.has(a)&&(i=!0,s=n.slice(u+1).join("").startsWith(Tl)),i){s?a===Al&&(i=!1,s=!1):a===V0&&(i=!1);continue}o+=c,o===r&&u<n.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},zS=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(xe(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},KS=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,s,o=VS(t),u=[""];for(let[c,f]of t.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u[u.length-1].trimStart());let p=xe(u[u.length-1]);if(c!==0&&(p>=e&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),p=0),(p>0||r.trim===!1)&&(u[u.length-1]+=" ",p++)),r.hard&&o[c]>e){let m=e-p,y=1+Math.floor((o[c]-m-1)/e);Math.floor((o[c]-1)/e)<y&&u.push(""),vl(u,f,e);continue}if(p+o[c]>e&&p>0&&o[c]>0){if(r.wordWrap===!1&&p<e){vl(u,f,e);continue}u.push("")}if(p+o[c]>e&&r.wordWrap===!1){vl(u,f,e);continue}u[u.length-1]+=f}r.trim!==!1&&(u=u.map(c=>zS(c)));let a=[...u.join(`
75
- `)];for(let[c,f]of a.entries()){if(n+=f,ks.has(f)){let{groups:m}=new RegExp(`(?:\\${W0}(?<code>\\d+)m|\\${Tl}(?<uri>.*)${Al})`).exec(a.slice(c).join(""))||{groups:{}};if(m.code!==void 0){let y=Number.parseFloat(m.code);i=y===GS?void 0:y}else m.uri!==void 0&&(s=m.uri.length===0?void 0:m.uri)}let p=j0.codes.get(Number(i));a[c+1]===`
72
+ `)}function Fn(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),reject:e,resolve:t}}function kt(t,e=6e4){if(e===void 0||e<=0||e===Number.POSITIVE_INFINITY)return t;let r,n=new Promise((i,s)=>{r=setTimeout(()=>s(new ys(`Calling "${t.name}" timeouted after ${e}ms.`)),e)});return(...i)=>{let s=Promise.race([n,t(...i)]);return s.finally(()=>clearTimeout(r)),s}}l();var AD="codeSnippet";l();var nt="filesystem";l();var Ra=class{constructor(e,r){this.sessConn=e;this.path=r;this.listeners=new Set}async start(e){return await kt(async()=>{this.rpcSubscriptionID||(this.handleFilesystemEvents=this.handleFilesystemEvents.bind(this),this.rpcSubscriptionID=await this.sessConn.subscribe(nt,this.handleFilesystemEvents,"watchDir",this.path))},e?.timeout)()}async stop(){this.listeners.clear(),this.rpcSubscriptionID&&await this.sessConn.unsubscribe(this.rpcSubscriptionID)}addEventListener(e){return this.listeners.add(e),()=>this.listeners.delete(e)}handleFilesystemEvents(e){this.listeners.forEach(r=>{r(e)})}},TD=Ra;l();var er="process",wn=class{constructor(e,r,n){this.line=e;this.timestamp=r;this.error=n}toString(){return this.line}},bs=class{constructor(){this.delimiter=`
73
+ `;this.messages=[];this._finished=!1;this._error=!1}get error(){return this._error}get exitCode(){if(!this._finished)throw new Error("Process has not finished yet");return this._exitCode}get stdout(){return this.messages.filter(e=>!e.error).map(e=>e.line).join(this.delimiter)}get stderr(){return this.messages.filter(e=>e.error).map(e=>e.line).join(this.delimiter)}addStdout(e){this.insertByTimestamp(e)}addStderr(e){this._error=!0,this.insertByTimestamp(e)}setExitCode(e){this._exitCode=e,this._finished=!0}insertByTimestamp(e){let r=this.messages.length-1;for(;r>=0&&this.messages[r].timestamp>e.timestamp;)r-=1;this.messages.splice(r+1,0,e)}},_s=class{constructor(e,r,n,i,s){this.processID=e;this.sandbox=r;this.triggerExit=n;this.output=s;this.finished=i}async kill(){try{await this.sandbox.call(er,"kill",[this.processID])}finally{this.triggerExit(),await this.finished}}async wait(){return this.finished}async sendStdin(e,r){await this.sandbox.call(er,"stdin",[this.processID,e],r)}};l();l();var o2=LD(),u2=e0(),Lr;(function(t){t.RPC_VERSION="2.0"})(Lr||(Lr={}));var t0=function(){function t(){this.idAwaiter={},this.onOpenHandlers=[],this.onAnyMessageHandlers=[],this.onNotification=[],this.onRequest=[],this.onSuccessResponse=[],this.onErrorResponse=[],this.onErrorHandlers=[],this.onCloseHandlers=[],this.config={responseTimeout:1e4},this.ws=void 0}return t.prototype.connect=function(e,r){return this.ws=new u2(e,r),this.listen()},t.prototype.onOpen=function(e){this.onOpenHandlers.push(e)},t.prototype.onAnyMessage=function(e){this.onAnyMessageHandlers.push(e)},t.prototype.onError=function(e){this.onErrorHandlers.push(e)},t.prototype.onClose=function(e){this.onCloseHandlers.push(e)},t.prototype.listenMessages=function(){var e=this,r;this.ws.onmessage&&(r=this.ws.onmessage.bind(this.ws)),this.ws.onmessage=function(n){r&&r(n);for(var i=0,s=e.onAnyMessageHandlers;i<s.length;i++){var o=s[i];o(n)}var u=JSON.parse(n.data.toString());if(e.isNotification(u))for(var a=0,c=e.onNotification;a<c.length;a++){var o=c[a];o(u)}else if(e.isRequest(u))for(var f=0,p=e.onRequest;f<p.length;f++){var o=p[f];o(u)}else if(e.isSuccessResponse(u)){for(var m=0,y=e.onSuccessResponse;m<y.length;m++){var o=y[m];o(u)}e.idAwaiter[u.id](u.result)}else if(e.isErrorResponse(u)){for(var _=0,O=e.onErrorResponse;_<O.length;_++){var o=O[_];o(u)}e.idAwaiter[u.id](u.error)}}},t.prototype.call=function(e,r){var n=this;return new Promise(function(i,s){var o=n.buildRequest(e,r),u;n.config.responseTimeout&&(u=setTimeout(function(){delete n.idAwaiter[o.id],s('Awaiting response to "'+e+'" with id: '+o.id+" timed out.")},n.config.responseTimeout)),n.idAwaiter[o.id]=function(c){if(clearInterval(u),delete n.idAwaiter[o.id],n.isRpcError(c)){s(c);return}i(c)};var a=JSON.stringify(o);n.ws.send(a)})},t.prototype.notify=function(e,r){this.ws.send(JSON.stringify(this.buildNotification(e,r)))},t.prototype.customId=function(e){this.idFn=e},t.prototype.noRpc=function(){this.buildRequest=this.buildRequestBase,this.buildNotification=this.buildNotificationBase,this.buildRpcSuccessResponse=this.buildRpcSuccessResponseBase,this.buildRpcErrorResponse=this.buildRpcErrorResponseBase},t.prototype.configure=function(e){Object.assign(this.config,e)},t.prototype.changeSocket=function(e){this.ws=e},t.prototype.listen=function(){var e=this;return new Promise(function(r,n){e.ws.onopen=function(i){for(var s=0,o=e.onOpenHandlers;s<o.length;s++){var u=o[s];u(i)}r(i)},e.listenMessages(),e.ws.onerror=function(i){for(var s=0,o=e.onErrorHandlers;s<o.length;s++){var u=o[s];u(i)}},e.ws.onclose=function(i){for(var s=0,o=e.onCloseHandlers;s<o.length;s++){var u=o[s];u(i)}n(i)}})},t.prototype.buildRequest=function(e,r){var n=this.buildRequestBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRequestBase=function(e,r){var n={};return n.id=this.idFn(),n.method=e,r&&(n.params=r),n},t.prototype.buildNotification=function(e,r){var n=this.buildNotificationBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildNotificationBase=function(e,r){var n={};return n.method=e,r&&(n.params=r),n},t.prototype.buildRpcSuccessResponse=function(e,r){var n=this.buildRpcSuccessResponseBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRpcSuccessResponseBase=function(e,r){var n={};return n.id=e,n.result=r,n},t.prototype.buildRpcErrorResponse=function(e,r){var n=this.buildRpcErrorResponseBase(e,r);return n.jsonrpc=Lr.RPC_VERSION,n},t.prototype.buildRpcErrorResponseBase=function(e,r){var n={};return n.id=e,n.error=r,n},t.prototype.idFn=function(){return o2()},t.prototype.isNotification=function(e){return!e.id},t.prototype.isRequest=function(e){return e.method},t.prototype.isSuccessResponse=function(e){return e.hasOwnProperty("result")},t.prototype.isErrorResponse=function(e){return e.hasOwnProperty("error")},t.prototype.isRpcError=function(e){var r;return typeof((r=e)===null||r===void 0?void 0:r.code)<"u"},t}();l();l();l();l();var OL=Symbol(),ir=class extends Error{constructor(e){super(e.statusText),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"statusText",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.setPrototypeOf(this,new.target.prototype),this.headers=e.headers,this.url=e.url,this.status=e.status,this.statusText=e.statusText,this.data=e.data}};var Nn=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(f){try{c(n.next(f))}catch(p){o(p)}}function a(f){try{c(n.throw(f))}catch(p){o(p)}}function c(f){f.done?s(f.value):i(f.value).then(u,a)}c((n=n.apply(t,e||[])).next())})},r0=t=>t==="post"||t==="put"||t==="patch"||t==="delete";function a2(t){let e=[],r=(n,i)=>`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`;return Object.keys(t).forEach(n=>{let i=t[n];i!=null&&(Array.isArray(i)?i.forEach(s=>e.push(r(n,s))):e.push(r(n,i)))}),e.length>0?`?${e.join("&")}`:""}function l2(t,e){return t.replace(/\{([^}]+)\}/g,(r,n)=>{let i=encodeURIComponent(e[n]);return delete e[n],i})}function c2(t,e,r){let n={};return r0(t)?r.forEach(i=>{n[i]=e[i],delete e[i]}):n=Object.assign({},e),a2(n)}function f2(t,e){let r=new Headers(e);return t!==void 0&&!r.has("Content-Type")&&r.append("Content-Type","application/json"),r.has("Accept")||r.append("Accept","application/json"),r}function h2(t,e){let r=r0(t)?JSON.stringify(e):void 0;return t==="delete"&&r==="{}"?void 0:r}function d2(t,e){let r=new Headers(t?.headers),n=new Headers(e?.headers);for(let i of n.keys()){let s=n.get(i);s!=null&&r.set(i,s)}return Object.assign(Object.assign(Object.assign({},t),e),{headers:r})}function p2(t){var e;let r=Object.assign(Array.isArray(t.payload)?[]:{},t.payload),n=l2(t.path,r),i=c2(t.method,r,t.queryParams),s=h2(t.method,r),o=f2(s,(e=t.init)===null||e===void 0?void 0:e.headers),u=t.baseUrl+n+i,a=Object.assign(Object.assign({},t.init),{method:t.method.toUpperCase(),headers:o,body:s});return{url:u,init:a}}function D2(t){return Nn(this,void 0,void 0,function*(){let e=t.headers.get("content-type");if(t.status===204)return;if(e&&e.indexOf("application/json")!==-1)return yield t.json();let r=yield t.text();try{return JSON.parse(r)}catch{return r}})}function m2(t,e){return Nn(this,void 0,void 0,function*(){let r=yield fetch(t,e),n=yield D2(r),i={headers:r.headers,url:r.url,ok:r.ok,status:r.status,statusText:r.statusText,data:n};if(i.ok)return i;throw new ir(i)})}function g2(t,e){let r=(n,i,s)=>Nn(this,void 0,void 0,function*(){if(t==null||n===t.length)return e(i,s);let o=t[n];return yield o(i,s,(u,a)=>r(n+1,u,a))});return(n,i)=>r(0,n,i)}function E2(t){return Nn(this,void 0,void 0,function*(){let{url:e,init:r}=p2(t);return yield t.fetch(e,r)})}function y2(t){let e=(r,n)=>Nn(this,void 0,void 0,function*(){try{return yield t(r,n)}catch(i){throw i instanceof ir?new e.Error(i):i}});return e.Error=class extends ir{constructor(r){super(r),Object.setPrototypeOf(this,new.target.prototype)}getActualType(){return{status:this.status,data:this.data}}},e}function x2(){let t="",e={},r=[],n=g2(r,m2);return{configure:i=>{t=i.baseUrl||"",e=i.init||{},r.splice(0),r.push(...i.use||[])},use:i=>r.push(i),path:i=>({method:s=>({create:o=>y2((u,a)=>E2({baseUrl:t||"",path:i,method:s,queryParams:Object.keys(o||{}),payload:u,init:d2(e,a),fetch:n}))})})}}var ml={for:()=>x2()};l();l();var Os=H(n0());var i0="0.8.0";var s0={browser:typeof window<"u"&&Os.default.name||"undefined",lang:"js",lang_version:Os.default.version||"unknown",package_version:i0,publisher:"e2b",sdk_runtime:typeof window>"u"?"node":"browser",system:Os.default.os?.family||"unknown"};var o0=ml.for();o0.configure({baseUrl:_n,init:{headers:s0}});function Ln(t){let e=(r,n,i)=>t(n,{...i,headers:{Authorization:`Bearer ${r}`,...i?.headers}});return e.Error=t.Error,e}function Rs(t){let e=(r,n,i)=>t(n,{...i,headers:{"X-API-KEY":r,...i?.headers}});return e.Error=t.Error,e}var Mt=o0;l();function _2(t){return new Promise(e=>setTimeout(e,t))}var gl=_2;var u0=Rs(Mt.path("/instances").method("post").create()),a0=Rs(Mt.path("/instances/{instanceID}/refreshes").method("post").create()),Bs=class{constructor(e){this.opts=e;this.isOpen=!1;this.rpc=new t0;this.subscribers=[];let r=e.apiKey||process.env.E2B_API_KEY;if(!r)throw new xs("API key is required, please visit https://e2b.dev/docs to get your API key");this.apiKey=r,this.cwd=e.cwd,this.cwd&&this.cwd.startsWith("~")&&(this.cwd=this.cwd.replace("~","/home/user")),this.envVars=e.envVars||{},this.logger=e.logger??{info:console.info,warn:console.warn,error:console.error},this.logger.info?.(`Sandbox "${e.id}" initialized`)}get templateID(){return this.opts.id||"base"}getHostname(e){if(this.opts.__debug_hostname)return e&&this.opts.__debug_devEnv==="remote"?`${e}-${this.opts.__debug_hostname}`:e?`${this.opts.__debug_hostname}:${e}`:this.opts.__debug_hostname;if(!this.sandbox)return;let r=`${this.sandbox.instanceID}-${this.sandbox.clientID}.${Oa}`;return e?`${e}-${r}`:r}async close(){this.isOpen&&(this.logger.debug?.(`Closing sandbox "${this.sandbox?.instanceID}"`),this.isOpen=!1,this.logger.debug?.("Unsubscribing..."),(await Promise.allSettled(this.subscribers.map(r=>this.unsubscribe(r.subID)))).forEach(r=>{r.status==="rejected"&&this.logger.warn?.(`Failed to unsubscribe: "${r.reason}"`)}),this.rpc.ws?.terminate?.(),this.rpc.ws?.close?.(),this.logger.info?.("Disconnected from the sandbox"))}async open(e){return await kt(async()=>{if(this.isOpen||this.sandbox)throw new Error("Sandbox connect was already called");if(this.isOpen=!0,this.logger.debug?.("Opening sandbox..."),!this.opts.__debug_hostname)try{let f=await u0(this.apiKey,{envID:this.templateID});this.sandbox=f.data,this.logger.debug?.(`Acquired sandbox "${this.sandbox.instanceID}"`),this.refresh(this.sandbox.instanceID)}catch(f){if(f instanceof u0.Error){let p=f.getActualType();if(p.status===400)throw new Error(`Error creating sandbox - (${p.status}) bad request: ${p.data.message}`);if(p.status===401)throw new Error(`Error creating sandbox - (${p.status}) unauthenticated: ${p.data.message}`);if(p.status===500)throw new Error(`Error creating sandbox - (${p.status}) server error: ${p.data.message}`)}throw f}let n=this.getHostname(this.opts.__debug_port||gs);if(!n)throw new Error("Cannot get sandbox's hostname");let s=`${this.opts.__debug_devEnv==="local"?"ws":"wss"}://${n}${wD}`;this.rpc.onError(f=>{this.logger.debug?.(`Error in WebSocket of sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}. Trying to reconnect...`)});let o=!1,u,a,c=new Promise((f,p)=>{u=()=>{o||(o=!0,f())},a=()=>{o||(o=!0,p())}});this.rpc.onOpen(()=>{this.logger.debug?.(`Connected to sandbox "${this.sandbox?.instanceID}"`),u?.()}),this.rpc.onClose(async()=>{if(this.logger.debug?.(`Closing WebSocket connection to sandbox "${this.sandbox?.instanceID}"`),this.isOpen){await gl(600),this.logger.debug?.(`Reconnecting to sandbox "${this.sandbox?.instanceID}"`);try{this.subscribers=[],await this.rpc.connect(s),this.logger.debug?.(`Reconnected to sandbox "${this.sandbox?.instanceID}"`)}catch(f){this.logger.debug?.(`Failed reconnecting to sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}`)}}else a?.()}),this.rpc.onNotification.push(this.handleNotification.bind(this));try{this.logger.debug?.(`Connection to sandbox "${this.sandbox?.instanceID}"`),await this.rpc.connect(s)}catch(f){this.logger.debug?.(`Error connecting to sandbox "${this.sandbox?.instanceID}": ${f.message??f.code??f.toString()}`)}return await c,this},e?.timeout)()}async call(e,r,n,i){return this.logger.debug?.(`Calling "${e}_${r}" with params:`,n),await kt(async(o,u)=>await this.rpc.call(o,u),i?.timeout)(`${e}_${r}`,n)}async handleSubscriptions(...e){let r=await Promise.allSettled(e);if(r.every(n=>n.status==="fulfilled"))return r.map(n=>n.status==="fulfilled"?n.value:void 0);throw await Promise.all(r.filter(vD).map(n=>n.value?this.unsubscribe(n.value):void 0)),new Error(Cn(r))}async unsubscribe(e){let r=this.subscribers.find(n=>n.subID===e);r&&(await this.call(r.service,"unsubscribe",[r.subID]),this.subscribers=this.subscribers.filter(n=>n!==r),this.logger.debug?.(`Unsubscribed '${e}' from '${r.service}'`))}async subscribe(e,r,n,...i){let s=await this.call(e,"subscribe",[n,...i]);if(typeof s!="string")throw new Error(`Cannot subscribe to ${e}_${n}${i.length>0?" with params ["+i.join(", ")+"]":""}. Expected response should have been a subscription ID, instead we got ${JSON.stringify(s)}`);return this.subscribers.push({handler:r,service:e,subID:s}),this.logger.debug?.(`Subscribed to "${e}_${n}"${i.length>0?" with params ["+i.join(", ")+"] and":""} with id "${s}"`),s}handleNotification(e){this.logger.debug?.("Handling notification:",e),this.subscribers.filter(r=>r.subID===e.params?.subscription).forEach(r=>r.handler(e.params?.result))}async refresh(e){this.logger.debug?.(`Started refreshing sandbox "${e}"`);try{for(;;){if(!this.isOpen){this.logger.debug?.(`Cannot refresh sandbox ${this.sandbox?.instanceID} - it was closed`);return}await gl(5e3);try{this.logger.debug?.(`Refreshed sandbox "${e}"`),await a0(this.apiKey,{instanceID:e})}catch(r){if(r instanceof a0.Error){let n=r.getActualType();if(n.status===404){this.logger.warn?.(`Error refreshing sandbox - (${n.status}): ${n.data.message}`);return}this.logger.warn?.(`Refreshing sandbox "${e}" failed - (${n.status})`)}}}}finally{this.logger.debug?.(`Stopped refreshing sandbox "${e}"`),await this.close()}}};l();var sr="terminal",Is=class{constructor(){this._data=""}get data(){return this._data}addData(e){this._data+=e}},Ps=class{constructor(e,r,n,i,s){this.terminalID=e;this.sandbox=r;this.triggerExit=n;this.output=s;this.finished=i}get data(){return this.output.data}async kill(){try{await this.sandbox.call(sr,"destroy",[this.terminalID])}finally{this.triggerExit(),await this.finished}}async wait(){return this.finished}async sendData(e){await this.sandbox.call(sr,"data",[this.terminalID,e])}async resize({cols:e,rows:r}){await this.sandbox.call(sr,"resize",[this.terminalID,e,r])}};l();var $n=H(f0()),h0=(t,e,r)=>{let n;return t.startsWith("./")?(n=$n.default.posix.join(e||"/home/user",t),e||r.warn?.(`Path starts with './' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):t.startsWith("../")?(n=$n.default.posix.join(e||"/home/user",t),e||r.warn?.(`Path starts with '../' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):t.startsWith("~/")?(n=$n.default.posix.join(e||"/home/user",t.substring(2)),e||r.warn?.(`Path starts with '~/' and cwd isn't set. The path '${t}' will evaluate to '${n}', which may not be what you want.`),n):!t.startsWith("/")&&e?$n.default.posix.join(e,t):t};var Mn=class t extends Bs{constructor(r){super(r);this.onScanPorts=r.onScanPorts,this.filesystem={list:async(i,s)=>await this.call(nt,"list",[n(i)],s),read:async(i,s)=>await this.call(nt,"read",[n(i)],s),remove:async(i,s)=>{await this.call(nt,"remove",[n(i)],s)},write:async(i,s,o)=>{await this.call(nt,"write",[n(i),s],o)},writeBytes:async(i,s)=>{let o=Buffer.from(s).toString("base64");await this.call(nt,"writeBase64",[n(i),o])},readBytes:async i=>{let s=await this.call(nt,"readBase64",[n(i)]);return Buffer.from(s,"base64")},makeDir:async(i,s)=>{await this.call(nt,"makeDir",[n(i)],s)},watchDir:i=>{this.logger.debug?.(`Watching directory "${i}"`);let s=(0,d0.default)(n(i));return new TD(this,s)}},this.terminal={start:async({onData:i,size:s,onExit:o,envVars:u,cmd:a,cwd:c="",terminalID:f=Es(12),timeout:p=void 0})=>await kt(async({onData:y,size:_,onExit:O,envVars:k,cmd:M,cwd:q="",rootDir:j,terminalID:T=Es(12)})=>{this.logger.debug?.(`Starting terminal "${T}"`),!q&&j&&(this.logger.warn?.("The rootDir parameter is deprecated, use cwd instead."),q=j),!q&&this.cwd&&(q=this.cwd),k=k||{},k={...this.envVars,...k};let{promise:$,resolve:R}=Fn(),L=new Is;function F(G){L.addData(G),y?.(G)}let[A,N]=await this.handleSubscriptions(this.subscribe(sr,F,"onData",T),this.subscribe(sr,R,"onExit",T)),{promise:I,resolve:V}=Fn();$.then(async()=>{let G=await Promise.allSettled([this.unsubscribe(N),this.unsubscribe(A)]);this.logger.debug?.(`Terminal "${T}" exited`);let Z=Cn(G);Z&&this.logger.error?.(Z),O?.(),V(L)});try{await this.call(sr,"start",[T,_.cols,_.rows,...M!==void 0?[k,M,q]:[]])}catch(G){throw R(),await I,G}return new Ps(T,this,R,I,L)},p)({onData:i,size:s,onExit:o,envVars:u,cmd:a,cwd:c,terminalID:f})},this.process={start:async i=>{let s=async({cmd:u,onStdout:a,onStderr:c,onExit:f,envVars:p={},cwd:m="",rootDir:y,processID:_=Es(12)})=>{if(!m&&y&&(this.logger.warn?.("The rootDir parameter is deprecated, use cwd instead."),m=y),!m&&this.cwd&&(m=this.cwd),!u)throw new Error("cmd is required");p=p||{},p={...this.envVars,...p},this.logger.debug?.(`Starting process "${_}", cmd: "${u}"`);let{promise:O,resolve:k}=Fn(),M=new bs,q=N=>{M.setExitCode(N),k()},j=N=>{let I=new wn(N.line,N.timestamp,!1);M.addStdout(I),a?a(I):this.opts.onStdout&&this.opts.onStdout(I)},T=N=>{let I=new wn(N.line,N.timestamp,!0);M.addStderr(I),c?c(I):this.opts.onStderr&&this.opts.onStderr(I)},[$,R,L]=await this.handleSubscriptions(this.subscribe(er,q,"onExit",_),this.subscribe(er,j,"onStdout",_),this.subscribe(er,T,"onStderr",_)),{promise:F,resolve:A}=Fn();O.then(async()=>{let N=await Promise.allSettled([this.unsubscribe($),R?this.unsubscribe(R):void 0,L?this.unsubscribe(L):void 0]);this.logger.debug?.(`Process "${_}" exited`);let I=Cn(N);I&&this.logger.error?.(I),f?f(M.exitCode||0):this.opts.onExit&&this.opts.onExit(),A(M)});try{await this.call(er,"start",[_,u,p,m])}catch(N){throw k(),await F,N}return new _s(_,this,k,F,M)},o=i.timeout;return await kt(s,o)(i)}};let n=i=>h0(i,this.cwd,this.logger)}get fileURL(){let r=this.opts.__debug_devEnv==="local"?"http":"https",n=this.getHostname(this.opts.__debug_port||gs);return`${r}://${n}${SD}`}static async create(r){return new t(r).open({timeout:r?.timeout}).then(async n=>(r.cwd&&(console.log(`Custom cwd for Sandbox set: "${r.cwd}"`),await n.filesystem.makeDir(r.cwd)),n))}async open(r){await super.open(r);let n=this.onScanPorts?i=>this.onScanPorts?.(i.map(s=>({ip:s.Ip,port:s.Port,state:s.State}))):void 0;return await this.handleSubscriptions(n?this.subscribe(AD,n,"scanOpenedPorts"):void 0),this}async uploadFile(r,n){let i=new FormData,s=r instanceof Blob?r:new Blob([r],{type:"application/octet-stream"});i.append("file",s,n);let o=await fetch(this.fileURL,{method:"POST",body:i});if(!o.ok){let u=await o.text();throw new Error(`Failed to upload file ${o.status} - ${o.statusText}: ${u}`)}return`/home/user/${n}`}async downloadFile(r,n){r=encodeURIComponent(r);let i=await fetch(`${this.fileURL}?path=${r}`);if(!i.ok){let s=await i.text();throw new Error(`Failed to download file '${r}': ${s}`)}switch(n){case"base64":return Buffer.from(await i.arrayBuffer()).toString("base64");case"blob":return await i.blob();case"buffer":return Buffer.from(await i.arrayBuffer());case"arraybuffer":return await i.arrayBuffer();case"text":return await i.text();default:return await i.arrayBuffer()}}};l();async function p0(t){return new Promise(e=>setTimeout(e,t))}l();l();var Un=H(require("process"),1);l();l();l();function yl({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var S2=yl();function Hn(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(S2,"")}var y0=H(m0(),1),x0=H(E0(),1);function xe(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=Hn(t),t.length===0))return 0;t=t.replace((0,x0.default)()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let s=i.codePointAt(0);if(s<=31||s>=127&&s<=159||s>=768&&s<=879)continue;switch(y0.default.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}l();function Ns(t){let e=0;for(let r of t.split(`
74
+ `))e=Math.max(e,xe(r));return e}var X0=H(_l(),1);l();var A2=/[\p{Lu}]/u,T2=/[\p{Ll}]/u,C0=/^[\p{Lu}](?![\p{Lu}])/gu,S0=/([\p{Alpha}\p{N}_]|$)/u,Cl=/[_.\- ]+/,O2=new RegExp("^"+Cl.source),F0=new RegExp(Cl.source+S0.source,"gu"),w0=new RegExp("\\d+"+S0.source,"gu"),R2=(t,e,r,n)=>{let i=!1,s=!1,o=!1,u=!1;for(let a=0;a<t.length;a++){let c=t[a];u=a>2?t[a-3]==="-":!0,i&&A2.test(c)?(t=t.slice(0,a)+"-"+t.slice(a),i=!1,o=s,s=!0,a++):s&&o&&T2.test(c)&&(!u||n)?(t=t.slice(0,a-1)+"-"+t.slice(a-1),o=s,s=!1,i=!0):(i=e(c)===c&&r(c)!==c,o=s,s=r(c)===c&&e(c)!==c)}return t},B2=(t,e)=>(C0.lastIndex=0,t.replace(C0,r=>e(r))),I2=(t,e)=>(F0.lastIndex=0,w0.lastIndex=0,t.replace(F0,(r,n)=>e(n)).replace(w0,r=>e(r)));function Fl(t,e){if(!(typeof t=="string"||Array.isArray(t)))throw new TypeError("Expected the input to be `string | string[]`");if(e={pascalCase:!1,preserveConsecutiveUppercase:!1,...e},Array.isArray(t)?t=t.map(s=>s.trim()).filter(s=>s.length).join("-"):t=t.trim(),t.length===0)return"";let r=e.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(e.locale),n=e.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(e.locale);return t.length===1?Cl.test(t)?"":e.pascalCase?n(t):r(t):(t!==r(t)&&(t=R2(t,r,n,e.preserveConsecutiveUppercase)),t=t.replace(O2,""),t=e.preserveConsecutiveUppercase?B2(t,r):r(t),e.pascalCase&&(t=n(t.charAt(0))+t.slice(1)),I2(t,n))}var Ol=H($0(),1);l();l();var M0=(t=0)=>e=>`\x1B[${e+t}m`,H0=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,U0=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,ae={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]}},S4=Object.keys(ae.modifier),U2=Object.keys(ae.color),j2=Object.keys(ae.bgColor),v4=[...U2,...j2];function q2(){let t=new Map;for(let[e,r]of Object.entries(ae)){for(let[n,i]of Object.entries(r))ae[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=ae[n],t.set(i[0],i[1]);Object.defineProperty(ae,e,{value:r,enumerable:!1})}return Object.defineProperty(ae,"codes",{value:t,enumerable:!1}),ae.color.close="\x1B[39m",ae.bgColor.close="\x1B[49m",ae.color.ansi=M0(),ae.color.ansi256=H0(),ae.color.ansi16m=U0(),ae.bgColor.ansi=M0(10),ae.bgColor.ansi256=H0(10),ae.bgColor.ansi16m=U0(10),Object.defineProperties(ae,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.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:e=>ae.rgbToAnsi256(...ae.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,n=Math.floor(u/6)/5,i=u%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:(e,r,n)=>ae.ansi256ToAnsi(ae.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>ae.ansi256ToAnsi(ae.hexToAnsi256(e)),enumerable:!1}}),ae}var G2=q2(),j0=G2;var ks=new Set(["\x1B","\x9B"]),W2=39,Al="\x07",W0="[",V2="]",V0="m",Tl=`${V2}8;;`,q0=t=>`${ks.values().next().value}${W0}${t}${V0}`,G0=t=>`${ks.values().next().value}${Tl}${t}${Al}`,z2=t=>t.split(" ").map(e=>xe(e)),vl=(t,e,r)=>{let n=[...e],i=!1,s=!1,o=xe(Hn(t[t.length-1]));for(let[u,a]of n.entries()){let c=xe(a);if(o+c<=r?t[t.length-1]+=a:(t.push(a),o=0),ks.has(a)&&(i=!0,s=n.slice(u+1).join("").startsWith(Tl)),i){s?a===Al&&(i=!1,s=!1):a===V0&&(i=!1);continue}o+=c,o===r&&u<n.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},K2=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(xe(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},Y2=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,s,o=z2(t),u=[""];for(let[c,f]of t.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u[u.length-1].trimStart());let p=xe(u[u.length-1]);if(c!==0&&(p>=e&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),p=0),(p>0||r.trim===!1)&&(u[u.length-1]+=" ",p++)),r.hard&&o[c]>e){let m=e-p,y=1+Math.floor((o[c]-m-1)/e);Math.floor((o[c]-1)/e)<y&&u.push(""),vl(u,f,e);continue}if(p+o[c]>e&&p>0&&o[c]>0){if(r.wordWrap===!1&&p<e){vl(u,f,e);continue}u.push("")}if(p+o[c]>e&&r.wordWrap===!1){vl(u,f,e);continue}u[u.length-1]+=f}r.trim!==!1&&(u=u.map(c=>K2(c)));let a=[...u.join(`
75
+ `)];for(let[c,f]of a.entries()){if(n+=f,ks.has(f)){let{groups:m}=new RegExp(`(?:\\${W0}(?<code>\\d+)m|\\${Tl}(?<uri>.*)${Al})`).exec(a.slice(c).join(""))||{groups:{}};if(m.code!==void 0){let y=Number.parseFloat(m.code);i=y===W2?void 0:y}else m.uri!==void 0&&(s=m.uri.length===0?void 0:m.uri)}let p=j0.codes.get(Number(i));a[c+1]===`
76
76
  `?(s&&(n+=G0("")),i&&p&&(n+=q0(p))):f===`
77
77
  `&&(i&&p&&(n+=q0(i)),s&&(n+=G0(s)))}return n};function Ls(t,e,r){return String(t).normalize().replace(/\r\n/g,`
78
78
  `).split(`
79
- `).map(n=>KS(n,e,r)).join(`
80
- `)}var iv=M(_l(),1),Ut=`
81
- `,Ae=" ",jn="none",Z0=()=>{let{env:t,stdout:e,stderr:r}=Un.default;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},z0=t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},qn=t=>t===jn?0:2,YS=t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===jn){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=X0.default[t],!r)throw new TypeError(`Invalid border style: ${t}`)}else{typeof t?.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t?.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(let n of e)if(t[n]===null||typeof t[n]!="string")throw new TypeError(`Invalid border style: ${n}`);r=t}return r},XS=(t,e,r)=>{let n="",i=xe(t);switch(r){case"left":{n=t+e.slice(i);break}case"right":{n=e.slice(i)+t;break}default:{e=e.slice(i),e.length%2===1?(e=e.slice(Math.floor(e.length/2)),n=e.slice(1)+t+e):(e=e.slice(e.length/2),n=e+t+e);break}}return n},ZS=(t,{padding:e,width:r,textAlignment:n,height:i})=>{t=(0,Ol.default)(t,{align:n});let s=t.split(Ut),o=Ns(t),u=r-e.left-e.right;if(o>u){let f=[];for(let p of s){let m=Ls(p,u,{hard:!0}),_=(0,Ol.default)(m,{align:n}).split(`
82
- `),O=Math.max(..._.map(k=>xe(k)));for(let k of _){let H;switch(n){case"center":{H=Ae.repeat((u-O)/2)+k;break}case"right":{H=Ae.repeat(u-O)+k;break}default:{H=k;break}}f.push(H)}}s=f}n==="center"&&o<u?s=s.map(f=>Ae.repeat((u-o)/2)+f):n==="right"&&o<u&&(s=s.map(f=>Ae.repeat(u-o)+f));let a=Ae.repeat(e.left),c=Ae.repeat(e.right);return s=s.map(f=>a+f+c),s=s.map(f=>{if(r-xe(f)>0)switch(n){case"center":return f+Ae.repeat(r-xe(f));case"right":return f+Ae.repeat(r-xe(f));default:return f+Ae.repeat(r-xe(f))}return f}),e.top>0&&(s=[...Array.from({length:e.top}).fill(Ae.repeat(r)),...s]),e.bottom>0&&(s=[...s,...Array.from({length:e.bottom}).fill(Ae.repeat(r))]),i&&s.length>i?s=s.slice(0,i):i&&s.length<i&&(s=[...s,...Array.from({length:i-s.length}).fill(Ae.repeat(r))]),s.join(Ut)},JS=(t,e,r)=>{let n=f=>{let p=r.borderColor?tv(r.borderColor)(f):f;return r.dimBorder?we.dim(p):p},i=f=>r.backgroundColor?rv(r.backgroundColor)(f):f,s=YS(r.borderStyle),o=Z0(),u=Ae.repeat(r.margin.left);if(r.float==="center"){let f=Math.max((o-e-qn(r.borderStyle))/2,0);u=Ae.repeat(f)}else if(r.float==="right"){let f=Math.max(o-e-r.margin.right-qn(r.borderStyle),0);u=Ae.repeat(f)}let a="";r.margin.top&&(a+=Ut.repeat(r.margin.top)),(r.borderStyle!==jn||r.title)&&(a+=n(u+s.topLeft+(r.title?XS(r.title,s.top.repeat(e),r.titleAlignment):s.top.repeat(e))+s.topRight)+Ut);let c=t.split(Ut);return a+=c.map(f=>u+n(s.left)+i(f)+n(s.right)).join(Ut),r.borderStyle!==jn&&(a+=Ut+n(u+s.bottomLeft+s.bottom.repeat(e)+s.bottomRight)),r.margin.bottom&&(a+=Ut.repeat(r.margin.bottom)),a},QS=t=>{if(t.fullscreen&&Un.default?.stdout){let e=[Un.default.stdout.columns,Un.default.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||(t.width=e[0]),t.height||(t.height=e[1])}return t.width&&(t.width=Math.max(1,t.width-qn(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-qn(t.borderStyle))),t},K0=(t,e)=>e===jn?t:` ${t} `,ev=(t,e)=>{e=QS(e);let r=e.width!==void 0,n=Z0(),i=qn(e.borderStyle),s=n-e.margin.left-e.margin.right-i,o=Ns(Ls(t,n-i,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&(e.title=K0(e.title,e.borderStyle))):e.title&&(e.title=e.title.slice(0,Math.max(0,s-2)),e.title&&(e.title=K0(e.title,e.borderStyle),xe(e.title)>o&&(e.width=xe(e.title)))),e.width=e.width?e.width:o,!r){if(e.margin.left&&e.margin.right&&e.width>s){let a=(n-e.width-i)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*a)),e.margin.right=Math.max(0,Math.floor(e.margin.right*a))}e.width=Math.min(e.width,n-i-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},Rl=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),Y0=t=>typeof t=="string"&&(we[t]??Rl(t)),tv=t=>Rl(t)?we.hex(t):we[t],rv=t=>Rl(t)?we.bgHex(t):we[Fl(["bg",t])];function Bl(t,e){if(e={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...e},e.align&&(e.textAlignment=e.align),e.borderColor&&!Y0(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!Y0(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=z0(e.padding),e.margin=z0(e.margin),e=ev(t,e),t=ZS(t,e),JS(t,e.width,e)}var $s=process.env.E2B_API_KEY,Ms=process.env.E2B_ACCESS_TOKEN,J0=Bl(`You must be logged in to use this command. Run ${ve("e2b login")}.`,{width:70,float:"center",padding:.5,margin:1,borderStyle:"round",borderColor:"redBright"});function Q0(){if($s||($s=pn()?.defaultTeamApiKey),!$s)console.error(J0),process.exit(1);else return $s}function Hs(){if(Ms||(Ms=pn()?.accessToken),!Ms)console.error(J0),process.exit(1);else return Ms}l();var Us=new Xc("-p, --path <path>",`Change root directory where command is executed to ${ve("<path>")} directory`);l();var mE=M(DE()),Vt=M(require("path"));async function gE(t,e,r){let n=r.map(({oldPath:s,newPath:o})=>({oldPath:Vt.join(Vt.sep,s),newPath:Vt.join(Vt.sep,o)}));return await new Promise((s,o)=>{let u=[],a=mE.pack(t,{entries:e.filter(c=>n.every(({oldPath:f})=>Vt.resolve(f)!==c.path)).map(({rootPath:c})=>c),map:c=>{let f=n.find(({oldPath:p})=>c.name===p);return f&&(c.name=f.newPath),c}});a.on("data",c=>{u.push(c)}),a.on("end",()=>{let c=new Blob(u);s(c)}),a.on("error",c=>{o(new Error(`Error creating tar blob: ${c.message}`))})})}l();var zt="e2b.Dockerfile",Yr="Dockerfile",EE=`# You can use most Debian-based base images
79
+ `).map(n=>Y2(n,e,r)).join(`
80
+ `)}var sv=H(_l(),1),Ut=`
81
+ `,Ae=" ",jn="none",Z0=()=>{let{env:t,stdout:e,stderr:r}=Un.default;return e?.columns?e.columns:r?.columns?r.columns:t.COLUMNS?Number.parseInt(t.COLUMNS,10):80},z0=t=>typeof t=="number"?{top:t,right:t*3,bottom:t,left:t*3}:{top:0,right:0,bottom:0,left:0,...t},qn=t=>t===jn?0:2,X2=t=>{let e=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(t===jn){t={};for(let n of e)t[n]=""}if(typeof t=="string"){if(r=X0.default[t],!r)throw new TypeError(`Invalid border style: ${t}`)}else{typeof t?.vertical=="string"&&(t.left=t.vertical,t.right=t.vertical),typeof t?.horizontal=="string"&&(t.top=t.horizontal,t.bottom=t.horizontal);for(let n of e)if(t[n]===null||typeof t[n]!="string")throw new TypeError(`Invalid border style: ${n}`);r=t}return r},Z2=(t,e,r)=>{let n="",i=xe(t);switch(r){case"left":{n=t+e.slice(i);break}case"right":{n=e.slice(i)+t;break}default:{e=e.slice(i),e.length%2===1?(e=e.slice(Math.floor(e.length/2)),n=e.slice(1)+t+e):(e=e.slice(e.length/2),n=e+t+e);break}}return n},J2=(t,{padding:e,width:r,textAlignment:n,height:i})=>{t=(0,Ol.default)(t,{align:n});let s=t.split(Ut),o=Ns(t),u=r-e.left-e.right;if(o>u){let f=[];for(let p of s){let m=Ls(p,u,{hard:!0}),_=(0,Ol.default)(m,{align:n}).split(`
82
+ `),O=Math.max(..._.map(k=>xe(k)));for(let k of _){let M;switch(n){case"center":{M=Ae.repeat((u-O)/2)+k;break}case"right":{M=Ae.repeat(u-O)+k;break}default:{M=k;break}}f.push(M)}}s=f}n==="center"&&o<u?s=s.map(f=>Ae.repeat((u-o)/2)+f):n==="right"&&o<u&&(s=s.map(f=>Ae.repeat(u-o)+f));let a=Ae.repeat(e.left),c=Ae.repeat(e.right);return s=s.map(f=>a+f+c),s=s.map(f=>{if(r-xe(f)>0)switch(n){case"center":return f+Ae.repeat(r-xe(f));case"right":return f+Ae.repeat(r-xe(f));default:return f+Ae.repeat(r-xe(f))}return f}),e.top>0&&(s=[...Array.from({length:e.top}).fill(Ae.repeat(r)),...s]),e.bottom>0&&(s=[...s,...Array.from({length:e.bottom}).fill(Ae.repeat(r))]),i&&s.length>i?s=s.slice(0,i):i&&s.length<i&&(s=[...s,...Array.from({length:i-s.length}).fill(Ae.repeat(r))]),s.join(Ut)},Q2=(t,e,r)=>{let n=f=>{let p=r.borderColor?rv(r.borderColor)(f):f;return r.dimBorder?we.dim(p):p},i=f=>r.backgroundColor?nv(r.backgroundColor)(f):f,s=X2(r.borderStyle),o=Z0(),u=Ae.repeat(r.margin.left);if(r.float==="center"){let f=Math.max((o-e-qn(r.borderStyle))/2,0);u=Ae.repeat(f)}else if(r.float==="right"){let f=Math.max(o-e-r.margin.right-qn(r.borderStyle),0);u=Ae.repeat(f)}let a="";r.margin.top&&(a+=Ut.repeat(r.margin.top)),(r.borderStyle!==jn||r.title)&&(a+=n(u+s.topLeft+(r.title?Z2(r.title,s.top.repeat(e),r.titleAlignment):s.top.repeat(e))+s.topRight)+Ut);let c=t.split(Ut);return a+=c.map(f=>u+n(s.left)+i(f)+n(s.right)).join(Ut),r.borderStyle!==jn&&(a+=Ut+n(u+s.bottomLeft+s.bottom.repeat(e)+s.bottomRight)),r.margin.bottom&&(a+=Ut.repeat(r.margin.bottom)),a},ev=t=>{if(t.fullscreen&&Un.default?.stdout){let e=[Un.default.stdout.columns,Un.default.stdout.rows];typeof t.fullscreen=="function"&&(e=t.fullscreen(...e)),t.width||(t.width=e[0]),t.height||(t.height=e[1])}return t.width&&(t.width=Math.max(1,t.width-qn(t.borderStyle))),t.height&&(t.height=Math.max(1,t.height-qn(t.borderStyle))),t},K0=(t,e)=>e===jn?t:` ${t} `,tv=(t,e)=>{e=ev(e);let r=e.width!==void 0,n=Z0(),i=qn(e.borderStyle),s=n-e.margin.left-e.margin.right-i,o=Ns(Ls(t,n-i,{hard:!0,trim:!1}))+e.padding.left+e.padding.right;if(e.title&&r?(e.title=e.title.slice(0,Math.max(0,e.width-2)),e.title&&(e.title=K0(e.title,e.borderStyle))):e.title&&(e.title=e.title.slice(0,Math.max(0,s-2)),e.title&&(e.title=K0(e.title,e.borderStyle),xe(e.title)>o&&(e.width=xe(e.title)))),e.width=e.width?e.width:o,!r){if(e.margin.left&&e.margin.right&&e.width>s){let a=(n-e.width-i)/(e.margin.left+e.margin.right);e.margin.left=Math.max(0,Math.floor(e.margin.left*a)),e.margin.right=Math.max(0,Math.floor(e.margin.right*a))}e.width=Math.min(e.width,n-i-e.margin.left-e.margin.right)}return e.width-(e.padding.left+e.padding.right)<=0&&(e.padding.left=0,e.padding.right=0),e.height&&e.height-(e.padding.top+e.padding.bottom)<=0&&(e.padding.top=0,e.padding.bottom=0),e},Rl=t=>t.match(/^#(?:[0-f]{3}){1,2}$/i),Y0=t=>typeof t=="string"&&(we[t]??Rl(t)),rv=t=>Rl(t)?we.hex(t):we[t],nv=t=>Rl(t)?we.bgHex(t):we[Fl(["bg",t])];function Bl(t,e){if(e={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...e},e.align&&(e.textAlignment=e.align),e.borderColor&&!Y0(e.borderColor))throw new Error(`${e.borderColor} is not a valid borderColor`);if(e.backgroundColor&&!Y0(e.backgroundColor))throw new Error(`${e.backgroundColor} is not a valid backgroundColor`);return e.padding=z0(e.padding),e.margin=z0(e.margin),e=tv(t,e),t=J2(t,e),Q2(t,e.width,e)}var $s=process.env.E2B_API_KEY,Ms=process.env.E2B_ACCESS_TOKEN,J0=Bl(`You must be logged in to use this command. Run ${ve("e2b login")}.`,{width:70,float:"center",padding:.5,margin:1,borderStyle:"round",borderColor:"redBright"});function Q0(){if($s||($s=pn()?.defaultTeamApiKey),!$s)console.error(J0),process.exit(1);else return $s}function Hs(){if(Ms||(Ms=pn()?.accessToken),!Ms)console.error(J0),process.exit(1);else return Ms}l();var Us=new Xc("-p, --path <path>",`Change root directory where command is executed to ${ve("<path>")} directory`);l();var mE=H(DE()),Vt=H(require("path"));async function gE(t,e,r){let n=r.map(({oldPath:s,newPath:o})=>({oldPath:Vt.join(Vt.sep,s),newPath:Vt.join(Vt.sep,o)}));return await new Promise((s,o)=>{let u=[],a=mE.pack(t,{entries:e.filter(c=>n.every(({oldPath:f})=>Vt.resolve(f)!==c.path)).map(({rootPath:c})=>c),map:c=>{let f=n.find(({oldPath:p})=>c.name===p);return f&&(c.name=f.newPath),c}});a.on("data",c=>{u.push(c)}),a.on("end",()=>{let c=new Blob(u);s(c)}),a.on("error",c=>{o(new Error(`Error creating tar blob: ${c.message}`))})})}l();var zt="e2b.Dockerfile",Yr="Dockerfile",EE=`# You can use most Debian-based base images
83
83
  FROM ubuntu:22.04
84
84
 
85
85
  # Install dependencies and customize sandbox
86
- `;l();l();var We=M(FE()),ni=M(vE()),IE=M(TE()),T1=Object.prototype.toString,O1=Error.prototype.toString,R1=RegExp.prototype.toString,B1=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",I1=/^Symbol\((.*)\)(.*)$/;function P1(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function OE(t,e=!1){if(t==null||t===!0||t===!1)return""+t;let r=typeof t;if(r==="number")return P1(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return B1.call(t).replace(I1,"Symbol($1)");let n=T1.call(t).slice(8,-1);return n==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):n==="Error"||t instanceof Error?"["+O1.call(t)+"]":n==="RegExp"?R1.call(t):null}function Ft(t,e){let r=OE(t,e);return r!==null?r:JSON.stringify(t,function(n,i){let s=OE(this[n],e);return s!==null?s:i},2)}function PE(t){return t==null?[]:[].concat(t)}var NE,N1=/\$\{\s*(\w+)\s*\}/g;NE=Symbol.toStringTag;var Me=class t extends Error{static formatError(e,r){let n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof e=="string"?e.replace(N1,(i,s)=>Ft(r[s])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,n,i,s){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[NE]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],PE(e).forEach(o=>{if(t.isError(o)){this.errors.push(...o.errors);let u=o.inner.length?o.inner:[o];this.inner.push(...u)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!s&&Error.captureStackTrace&&Error.captureStackTrace(this,t)}},ut={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let i=n!=null&&n!==r?` (cast from the value \`${Ft(n,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Ft(r,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${Ft(r,!0)}\``+i}},Ze={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Kt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},yc={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},xc={isValue:"${path} field must be ${value}"},bc={noUnknown:"${path} field has unspecified keys: ${unknown}"},io={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},kE={notType:t=>{let{path:e,value:r,spec:n}=t,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${e} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${Ft(r,!0)}\``;if(r.length>i)return`${e} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${Ft(r,!0)}\``}return Me.formatError(ut.notType,t)}},H$=Object.assign(Object.create(null),{mixed:ut,string:Ze,number:Kt,date:yc,object:bc,array:io,boolean:xc,tuple:kE}),mo=t=>t&&t.__isYupSchema__,oo=class t{static fromOptions(e,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:s}=r,o=typeof n=="function"?n:(...u)=>u.every(a=>a===n);return new t(e,(u,a)=>{var c;let f=o(...u)?i:s;return(c=f?.(a))!=null?c:a})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,r){let n=this.refs.map(s=>s.getValue(r?.value,r?.parent,r?.context)),i=this.fn(n,e,r);if(i===void 0||i===e)return e;if(!mo(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}},no={context:"$",value:"."};var wt=class{constructor(e,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===no.context,this.isValue=this.key[0]===no.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?no.context:this.isValue?no.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,We.getter)(this.path,!0),this.map=r.map}getValue(e,r,n){let i=this.isContext?n:this.isValue?e:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,r){return this.getValue(e,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};wt.prototype.__isYupRef=!0;var Je=t=>t==null;function Xr(t){function e({value:r,path:n="",options:i,originalValue:s,schema:o},u,a){let{name:c,test:f,params:p,message:m,skipAbsent:y}=t,{parent:_,context:O,abortEarly:k=o.spec.abortEarly,disableStackTrace:H=o.spec.disableStackTrace}=i;function q(I){return wt.isRef(I)?I.getValue(r,_,O):I}function j(I={}){var V;let G=Object.assign({value:r,originalValue:s,label:o.spec.label,path:I.path||n,spec:o.spec},p,I.params);for(let te of Object.keys(G))G[te]=q(G[te]);let Z=new Me(Me.formatError(I.message||m,G),r,G.path,I.type||c,(V=I.disableStackTrace)!=null?V:H);return Z.params=G,Z}let T=k?u:a,$={path:n,parent:_,type:c,from:i.from,createError:j,resolve:q,options:i,originalValue:s,schema:o},R=I=>{Me.isError(I)?T(I):I?a(null):T(j())},L=I=>{Me.isError(I)?T(I):u(I)};if(y&&Je(r))return R(!0);let A;try{var N;if(A=f.call($,r,$),typeof((N=A)==null?void 0:N.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${$.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(A).then(R,L)}}catch(I){L(I);return}R(A)}return e.OPTIONS=t,e}function k1(t,e,r,n=r){let i,s,o;return e?((0,We.forEach)(e,(u,a,c)=>{let f=a?u.slice(1,u.length-1):u;t=t.resolve({context:n,parent:i,value:r});let p=t.type==="tuple",m=c?parseInt(f,10):0;if(t.innerType||p){if(p&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${u}, in the path: ${e}. because there is no value at that index. `);i=r,r=r&&r[m],t=p?t.spec.types[m]:t.innerType}if(!c){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${t.type}")`);i=r,r=r&&r[f],t=t.fields[f]}s=f,o=a?"["+u+"]":"."+u}),{schema:t,parent:i,parentPath:s}):{parent:i,parentPath:e,schema:t}}var uo=class t extends Set{describe(){let e=[];for(let r of this.values())e.push(wt.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(let n of this.values())r.push(e(n));return r}clone(){return new t(this.values())}merge(e,r){let n=this.clone();return e.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}};function Zr(t,e=new Map){if(mo(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let n=0;n<t.length;n++)r[n]=Zr(t[n],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(let[n,i]of t.entries())r.set(n,Zr(i,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(let n of t)r.add(Zr(n,e))}else if(t instanceof Object){r={},e.set(t,r);for(let[n,i]of Object.entries(t))r[n]=Zr(i,e)}else throw Error(`Unable to clone ${t}`);return r}var Ce=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new uo,this._blacklist=new uo,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ut.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Zr(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=r,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,n=e.clone(),i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(s=>{e.tests.forEach(o=>{s.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,s)=>s.resolve(i,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,n,i,s;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(n=e.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=e.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(e,r={}){let n=this.resolve(Object.assign({value:e},r)),i=r.assert==="ignore-optionality",s=n._cast(e,r);if(r.assert!==!1&&!n.isType(s)){if(i&&Je(s))return s;let o=Ft(e),u=Ft(s);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
86
+ `;l();l();var Ve=H(FE()),ni=H(vE()),IE=H(TE()),O1=Object.prototype.toString,R1=Error.prototype.toString,B1=RegExp.prototype.toString,I1=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",P1=/^Symbol\((.*)\)(.*)$/;function N1(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function OE(t,e=!1){if(t==null||t===!0||t===!1)return""+t;let r=typeof t;if(r==="number")return N1(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return I1.call(t).replace(P1,"Symbol($1)");let n=O1.call(t).slice(8,-1);return n==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):n==="Error"||t instanceof Error?"["+R1.call(t)+"]":n==="RegExp"?B1.call(t):null}function Ft(t,e){let r=OE(t,e);return r!==null?r:JSON.stringify(t,function(n,i){let s=OE(this[n],e);return s!==null?s:i},2)}function PE(t){return t==null?[]:[].concat(t)}var NE,k1=/\$\{\s*(\w+)\s*\}/g;NE=Symbol.toStringTag;var Me=class t extends Error{static formatError(e,r){let n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof e=="string"?e.replace(k1,(i,s)=>Ft(r[s])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,n,i,s){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[NE]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],PE(e).forEach(o=>{if(t.isError(o)){this.errors.push(...o.errors);let u=o.inner.length?o.inner:[o];this.inner.push(...u)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!s&&Error.captureStackTrace&&Error.captureStackTrace(this,t)}},ut={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let i=n!=null&&n!==r?` (cast from the value \`${Ft(n,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Ft(r,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${Ft(r,!0)}\``+i}},Ze={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Kt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},yc={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},xc={isValue:"${path} field must be ${value}"},bc={noUnknown:"${path} field has unspecified keys: ${unknown}"},io={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},kE={notType:t=>{let{path:e,value:r,spec:n}=t,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${e} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${Ft(r,!0)}\``;if(r.length>i)return`${e} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${Ft(r,!0)}\``}return Me.formatError(ut.notType,t)}},H$=Object.assign(Object.create(null),{mixed:ut,string:Ze,number:Kt,date:yc,object:bc,array:io,boolean:xc,tuple:kE}),mo=t=>t&&t.__isYupSchema__,oo=class t{static fromOptions(e,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:s}=r,o=typeof n=="function"?n:(...u)=>u.every(a=>a===n);return new t(e,(u,a)=>{var c;let f=o(...u)?i:s;return(c=f?.(a))!=null?c:a})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,r){let n=this.refs.map(s=>s.getValue(r?.value,r?.parent,r?.context)),i=this.fn(n,e,r);if(i===void 0||i===e)return e;if(!mo(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}},no={context:"$",value:"."};var wt=class{constructor(e,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===no.context,this.isValue=this.key[0]===no.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?no.context:this.isValue?no.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,Ve.getter)(this.path,!0),this.map=r.map}getValue(e,r,n){let i=this.isContext?n:this.isValue?e:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,r){return this.getValue(e,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};wt.prototype.__isYupRef=!0;var Je=t=>t==null;function Xr(t){function e({value:r,path:n="",options:i,originalValue:s,schema:o},u,a){let{name:c,test:f,params:p,message:m,skipAbsent:y}=t,{parent:_,context:O,abortEarly:k=o.spec.abortEarly,disableStackTrace:M=o.spec.disableStackTrace}=i;function q(I){return wt.isRef(I)?I.getValue(r,_,O):I}function j(I={}){var V;let G=Object.assign({value:r,originalValue:s,label:o.spec.label,path:I.path||n,spec:o.spec},p,I.params);for(let te of Object.keys(G))G[te]=q(G[te]);let Z=new Me(Me.formatError(I.message||m,G),r,G.path,I.type||c,(V=I.disableStackTrace)!=null?V:M);return Z.params=G,Z}let T=k?u:a,$={path:n,parent:_,type:c,from:i.from,createError:j,resolve:q,options:i,originalValue:s,schema:o},R=I=>{Me.isError(I)?T(I):I?a(null):T(j())},L=I=>{Me.isError(I)?T(I):u(I)};if(y&&Je(r))return R(!0);let A;try{var N;if(A=f.call($,r,$),typeof((N=A)==null?void 0:N.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${$.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(A).then(R,L)}}catch(I){L(I);return}R(A)}return e.OPTIONS=t,e}function L1(t,e,r,n=r){let i,s,o;return e?((0,Ve.forEach)(e,(u,a,c)=>{let f=a?u.slice(1,u.length-1):u;t=t.resolve({context:n,parent:i,value:r});let p=t.type==="tuple",m=c?parseInt(f,10):0;if(t.innerType||p){if(p&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${u}, in the path: ${e}. because there is no value at that index. `);i=r,r=r&&r[m],t=p?t.spec.types[m]:t.innerType}if(!c){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${t.type}")`);i=r,r=r&&r[f],t=t.fields[f]}s=f,o=a?"["+u+"]":"."+u}),{schema:t,parent:i,parentPath:s}):{parent:i,parentPath:e,schema:t}}var uo=class t extends Set{describe(){let e=[];for(let r of this.values())e.push(wt.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(let n of this.values())r.push(e(n));return r}clone(){return new t(this.values())}merge(e,r){let n=this.clone();return e.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}};function Zr(t,e=new Map){if(mo(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let n=0;n<t.length;n++)r[n]=Zr(t[n],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(let[n,i]of t.entries())r.set(n,Zr(i,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(let n of t)r.add(Zr(n,e))}else if(t instanceof Object){r={},e.set(t,r);for(let[n,i]of Object.entries(t))r[n]=Zr(i,e)}else throw Error(`Unable to clone ${t}`);return r}var Ce=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new uo,this._blacklist=new uo,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ut.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Zr(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=r,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,n=e.clone(),i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(s=>{e.tests.forEach(o=>{s.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,s)=>s.resolve(i,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,n,i,s;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(n=e.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=e.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(e,r={}){let n=this.resolve(Object.assign({value:e},r)),i=r.assert==="ignore-optionality",s=n._cast(e,r);if(r.assert!==!1&&!n.isType(s)){if(i&&Je(s))return s;let o=Ft(e),u=Ft(s);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
87
87
 
88
88
  attempted value: ${o}
89
- `+(u!==o?`result of cast: ${u}`:""))}return s}_cast(e,r){let n=e===void 0?e:this.transforms.reduce((i,s)=>s.call(this,i,e,this),e);return n===void 0&&(n=this.getDefault(r)),n}_validate(e,r={},n,i){let{path:s,originalValue:o=e,strict:u=this.spec.strict}=r,a=e;u||(a=this._cast(a,Object.assign({assert:!1},r)));let c=[];for(let f of Object.values(this.internalTests))f&&c.push(f);this.runTests({path:s,value:a,originalValue:o,options:r,tests:c},n,f=>{if(f.length)return i(f,a);this.runTests({path:s,value:a,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(e,r,n){let i=!1,{tests:s,value:o,originalValue:u,path:a,options:c}=e,f=O=>{i||(i=!0,r(O,o))},p=O=>{i||(i=!0,n(O,o))},m=s.length,y=[];if(!m)return p([]);let _={value:o,originalValue:u,path:a,options:c,schema:this};for(let O=0;O<s.length;O++){let k=s[O];k(_,f,function(q){q&&(Array.isArray(q)?y.push(...q):y.push(q)),--m<=0&&p(y)})}}asNestedTest({key:e,index:r,parent:n,parentPath:i,originalParent:s,options:o}){let u=e??r;if(u==null)throw TypeError("Must include `key` or `index` for nested validations");let a=typeof u=="number",c=n[u],f=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:s[u],key:void 0,[a?"index":"key"]:u,path:a||u.includes(".")?`${i||""}[${c?u:`"${u}"`}]`:(i?`${i}.`:"")+e});return(p,m,y)=>this.resolve(f)._validate(c,f,m,y)}validate(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),s=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,u)=>i._validate(e,r,(a,c)=>{Me.isError(a)&&(a.value=c),u(a)},(a,c)=>{a.length?u(new Me(a,c,void 0,void 0,s)):o(c)}))}validateSync(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),s,o=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},r,{sync:!0}),(u,a)=>{throw Me.isError(u)&&(u.value=a),u},(u,a)=>{if(u.length)throw new Me(u,e,void 0,void 0,o);s=a}),s}isValid(e,r){return this.validate(e,r).then(()=>!0,n=>{if(Me.isError(n))return!1;throw n})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(n){if(Me.isError(n))return!1;throw n}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):Zr(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){let n=this.clone({nullable:e});return n.internalTests.nullable=Xr({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(e,r){let n=this.clone({optional:e});return n.internalTests.optionality=Xr({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(e=ut.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=ut.notNull){return this.nullability(!1,e)}required(e=ut.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=ut.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=Xr(r),s=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let n=this.clone(),i=PE(e).map(s=>new wt(s));return i.forEach(s=>{s.isSibling&&n.deps.push(s.key)}),n.conditions.push(typeof r=="function"?new oo(i,r):oo.fromOptions(i,r)),n}typeError(e){let r=this.clone();return r.internalTests.typeError=Xr({message:e,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=ut.oneOf){let n=this.clone();return e.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=Xr({message:r,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),n}notOneOf(e,r=ut.notOneOf){let n=this.clone();return e.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=Xr({message:r,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),n}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){let r=(e?this.resolve(e):this).clone(),{label:n,meta:i,optional:s,nullable:o}=r.spec;return{meta:i,label:n,optional:s,nullable:o,default:r.getDefault(e),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,c,f)=>f.findIndex(p=>p.name===a.name)===c)}}};Ce.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])Ce.prototype[`${t}At`]=function(e,r,n={}){let{parent:i,parentPath:s,schema:o}=k1(this,e,r,n.context);return o[t](i&&i[s],Object.assign({},n,{parent:i,path:e}))};for(let t of["equals","is"])Ce.prototype[t]=Ce.prototype.oneOf;for(let t of["not","nope"])Ce.prototype[t]=Ce.prototype.notOneOf;var L1=()=>!0;function $1(t){return new ao(t)}var ao=class extends Ce{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:L1},e))}};$1.prototype=ao.prototype;function M1(){return new lo}var lo=class extends Ce{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=xc.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Je(r)||r===!0}})}isFalse(e=xc.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Je(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};M1.prototype=lo.prototype;var H1=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,U1=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,j1=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,q1=t=>Je(t)||t===t.trim(),G1={}.toString();function go(){return new co}var co=class extends Ce{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(!n.spec.coerce||n.isType(e)||Array.isArray(e))return e;let i=e!=null&&e.toString?e.toString():e;return i===G1?e:i})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||ut.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=Ze.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r=Ze.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r=Ze.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}matches(e,r){let n=!1,i,s;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:s}=r:i=r),this.test({name:s||"matches",message:i||Ze.matches,params:{regex:e},skipAbsent:!0,test:o=>o===""&&n||o.search(e)!==-1})}email(e=Ze.email){return this.matches(H1,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ze.url){return this.matches(U1,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ze.uuid){return this.matches(j1,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Ze.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:q1})}lowercase(e=Ze.lowercase){return this.transform(r=>Je(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Je(r)||r===r.toLowerCase()})}uppercase(e=Ze.uppercase){return this.transform(r=>Je(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Je(r)||r===r.toUpperCase()})}};go.prototype=co.prototype;var W1=t=>t!=+t;function V1(){return new fo}var fo=class extends Ce{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!W1(e)}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(!n.spec.coerce)return e;let i=e;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(e,r=Kt.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(e)}})}max(e,r=Kt.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(e)}})}lessThan(e,r=Kt.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(n){return n<this.resolve(e)}})}moreThan(e,r=Kt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(n){return n>this.resolve(e)}})}positive(e=Kt.positive){return this.moreThan(0,e)}negative(e=Kt.negative){return this.lessThan(0,e)}integer(e=Kt.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>Je(e)?e:e|0)}round(e){var r;let n=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(n.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>Je(i)?i:Math[e](i))}};V1.prototype=fo.prototype;var z1=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ct(t,e=0){return Number(t)||e}function K1(t){let e=z1.exec(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;let r={year:Ct(e[1]),month:Ct(e[2],1)-1,day:Ct(e[3],1),hour:Ct(e[4]),minute:Ct(e[5]),second:Ct(e[6]),millisecond:e[7]?Ct(e[7].substring(0,3)):0,z:e[8]||void 0,plusMinus:e[9]||void 0,hourOffset:Ct(e[10]),minuteOffset:Ct(e[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}var LE=new Date(""),Y1=t=>Object.prototype.toString.call(t)==="[object Date]";function $E(){return new ii}var ii=class t extends Ce{constructor(){super({type:"date",check(e){return Y1(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r,n)=>!n.spec.coerce||n.isType(e)||e===null?e:(e=K1(e),isNaN(e)?t.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let n;if(wt.isRef(e))n=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(e,r=yc.min){let n=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(e,r=yc.max){let n=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}};ii.INVALID_DATE=LE;$E.prototype=ii.prototype;$E.INVALID_DATE=LE;function X1(t,e=[]){let r=[],n=new Set,i=new Set(e.map(([o,u])=>`${o}-${u}`));function s(o,u){let a=(0,We.split)(o)[0];n.add(a),i.has(`${u}-${a}`)||r.push([u,a])}for(let o of Object.keys(t)){let u=t[o];n.add(o),wt.isRef(u)&&u.isSibling?s(u.path,o):mo(u)&&"deps"in u&&u.deps.forEach(a=>s(a,o))}return IE.default.array(Array.from(n),r).reverse()}function RE(t,e){let r=1/0;return t.some((n,i)=>{var s;if((s=e.path)!=null&&s.includes(n))return r=i,!0}),r}function ME(t){return(e,r)=>RE(t,e)-RE(t,r)}var HE=(t,e,r)=>{if(typeof t!="string")return t;let n=t;try{n=JSON.parse(t)}catch{}return r.isType(n)?n:t};function so(t){if("fields"in t){let e={};for(let[r,n]of Object.entries(t.fields))e[r]=so(n);return t.setFields(e)}if(t.type==="array"){let e=t.optional();return e.innerType&&(e.innerType=so(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(so)}):"optional"in t?t.optional():t}var Z1=(t,e)=>{let r=[...(0,We.normalizePath)(e)];if(r.length===1)return r[0]in t;let n=r.pop(),i=(0,We.getter)((0,We.join)(r),!0)(t);return!!(i&&n in i)},BE=t=>Object.prototype.toString.call(t)==="[object Object]";function J1(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(n=>r.indexOf(n)===-1)}var Q1=ME([]);function _c(t){return new ho(t)}var ho=class extends Ce{constructor(e){super({type:"object",check(r){return BE(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Q1,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var n;let i=super._cast(e,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let s=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,u=[].concat(this._nodes,Object.keys(i).filter(p=>!this._nodes.includes(p))),a={},c=Object.assign({},r,{parent:a,__validating:r.__validating||!1}),f=!1;for(let p of u){let m=s[p],y=p in i;if(m){let _,O=i[p];c.path=(r.path?`${r.path}.`:"")+p,m=m.resolve({value:O,context:r.context,parent:a});let k=m instanceof Ce?m.spec:void 0,H=k?.strict;if(k!=null&&k.strip){f=f||p in i;continue}_=!r.__validating||!H?m.cast(i[p],c):i[p],_!==void 0&&(a[p]=_)}else y&&!o&&(a[p]=i[p]);(y!==p in a||a[p]!==i[p])&&(f=!0)}return f?a:i}_validate(e,r={},n,i){let{from:s=[],originalValue:o=e,recursive:u=this.spec.recursive}=r;r.from=[{schema:this,value:o},...s],r.__validating=!0,r.originalValue=o,super._validate(e,r,n,(a,c)=>{if(!u||!BE(c)){i(a,c);return}o=o||c;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||wt.isRef(m)||f.push(m.asNestedTest({options:r,key:p,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:f,value:c,originalValue:o,options:r},n,p=>{i(p.sort(this._sortErrors).concat(a),c)})})}clone(e){let r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),n=r.fields;for(let[i,s]of Object.entries(this.fields)){let o=n[i];n[i]=o===void 0?s:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;let s=this.fields[n],o=e;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=s&&"getDefault"in s?s.getDefault(o):void 0}),r}setFields(e,r){let n=this.clone();return n.fields=e,n._nodes=X1(e,r),n._sortErrors=ME(Object.keys(e)),r&&(n._excludedEdges=r),n}shape(e,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,e),i)})}partial(){let e={};for(let[r,n]of Object.entries(this.fields))e[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return so(this)}pick(e){let r={};for(let n of e)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>e.includes(n)&&e.includes(i)))}omit(e){let r=[];for(let n of Object.keys(this.fields))e.includes(n)||r.push(n);return this.pick(r)}from(e,r,n){let i=(0,We.getter)(e,!0);return this.transform(s=>{if(!s)return s;let o=s;return Z1(s,e)&&(o=Object.assign({},s),n||delete o[e],o[r]=i(s)),o})}json(){return this.transform(HE)}noUnknown(e=!0,r=bc.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;let s=J1(this.schema,i);return!e||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,r=bc.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;let n={};for(let i of Object.keys(r))n[e(i)]=r[i];return n})}camelCase(){return this.transformKeys(ni.camelCase)}snakeCase(){return this.transformKeys(ni.snakeCase)}constantCase(){return this.transformKeys(e=>(0,ni.snakeCase)(e).toUpperCase())}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(let[s,o]of Object.entries(r.fields)){var i;let u=e;(i=u)!=null&&i.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[s]})),n.fields[s]=o.describe(u)}return n}};_c.prototype=ho.prototype;function eT(t){return new po(t)}var po=class extends Ce{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){let n=super._cast(e,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1,s=n.map((o,u)=>{let a=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${u}]`}));return a!==o&&(i=!0),a});return i?s:n}_validate(e,r={},n,i){var s;let o=this.innerType,u=(s=r.recursive)!=null?s:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(e,r,n,(a,c)=>{var f;if(!u||!o||!this._typeCheck(c)){i(a,c);return}let p=new Array(c.length);for(let y=0;y<c.length;y++){var m;p[y]=o.asNestedTest({options:r,index:y,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:e})}this.runTests({value:c,tests:p,originalValue:(f=r.originalValue)!=null?f:e,options:r},n,y=>i(y.concat(a),c))})}clone(e){let r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(HE)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!mo(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ft(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=io.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r){return r=r||io.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r){return r=r||io.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(n,i,s)=>!e(n,i,s):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);if(r.innerType){var i;let s=e;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[0]})),n.innerType=r.innerType.describe(s)}return n}};eT.prototype=po.prototype;function tT(t){return new Do(t)}var Do=class extends Ce{constructor(e){super({type:"tuple",spec:{types:e},check(r){let n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(kE.notType)})}_cast(e,r){let{types:n}=this.spec,i=super._cast(e,r);if(!this._typeCheck(i))return i;let s=!1,o=n.map((u,a)=>{let c=u.cast(i[a],Object.assign({},r,{path:`${r.path||""}[${a}]`}));return c!==i[a]&&(s=!0),c});return s?o:i}_validate(e,r={},n,i){let s=this.spec.types;super._validate(e,r,n,(o,u)=>{var a;if(!this._typeCheck(u)){i(o,u);return}let c=[];for(let[p,m]of s.entries()){var f;c[p]=m.asNestedTest({options:r,index:p,parent:u,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:e})}this.runTests({value:u,tests:c,originalValue:(a=r.originalValue)!=null?a:e,options:r},n,p=>i(p.concat(o),u))})}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=r.spec.types.map((i,s)=>{var o;let u=e;return(o=u)!=null&&o.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[s]})),i.describe(u)}),n}};tT.prototype=Do.prototype;var wo=M(gy()),ui=M(require("fs/promises")),Ey=M(require("fs")),yy=M(require("path"));var Oc="e2b.toml",OT=`# This is a config for E2B sandbox template
89
+ `+(u!==o?`result of cast: ${u}`:""))}return s}_cast(e,r){let n=e===void 0?e:this.transforms.reduce((i,s)=>s.call(this,i,e,this),e);return n===void 0&&(n=this.getDefault(r)),n}_validate(e,r={},n,i){let{path:s,originalValue:o=e,strict:u=this.spec.strict}=r,a=e;u||(a=this._cast(a,Object.assign({assert:!1},r)));let c=[];for(let f of Object.values(this.internalTests))f&&c.push(f);this.runTests({path:s,value:a,originalValue:o,options:r,tests:c},n,f=>{if(f.length)return i(f,a);this.runTests({path:s,value:a,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(e,r,n){let i=!1,{tests:s,value:o,originalValue:u,path:a,options:c}=e,f=O=>{i||(i=!0,r(O,o))},p=O=>{i||(i=!0,n(O,o))},m=s.length,y=[];if(!m)return p([]);let _={value:o,originalValue:u,path:a,options:c,schema:this};for(let O=0;O<s.length;O++){let k=s[O];k(_,f,function(q){q&&(Array.isArray(q)?y.push(...q):y.push(q)),--m<=0&&p(y)})}}asNestedTest({key:e,index:r,parent:n,parentPath:i,originalParent:s,options:o}){let u=e??r;if(u==null)throw TypeError("Must include `key` or `index` for nested validations");let a=typeof u=="number",c=n[u],f=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:s[u],key:void 0,[a?"index":"key"]:u,path:a||u.includes(".")?`${i||""}[${c?u:`"${u}"`}]`:(i?`${i}.`:"")+e});return(p,m,y)=>this.resolve(f)._validate(c,f,m,y)}validate(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),s=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,u)=>i._validate(e,r,(a,c)=>{Me.isError(a)&&(a.value=c),u(a)},(a,c)=>{a.length?u(new Me(a,c,void 0,void 0,s)):o(c)}))}validateSync(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),s,o=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},r,{sync:!0}),(u,a)=>{throw Me.isError(u)&&(u.value=a),u},(u,a)=>{if(u.length)throw new Me(u,e,void 0,void 0,o);s=a}),s}isValid(e,r){return this.validate(e,r).then(()=>!0,n=>{if(Me.isError(n))return!1;throw n})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(n){if(Me.isError(n))return!1;throw n}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):Zr(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){let n=this.clone({nullable:e});return n.internalTests.nullable=Xr({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(e,r){let n=this.clone({optional:e});return n.internalTests.optionality=Xr({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(e=ut.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=ut.notNull){return this.nullability(!1,e)}required(e=ut.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=ut.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=Xr(r),s=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let n=this.clone(),i=PE(e).map(s=>new wt(s));return i.forEach(s=>{s.isSibling&&n.deps.push(s.key)}),n.conditions.push(typeof r=="function"?new oo(i,r):oo.fromOptions(i,r)),n}typeError(e){let r=this.clone();return r.internalTests.typeError=Xr({message:e,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=ut.oneOf){let n=this.clone();return e.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=Xr({message:r,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),n}notOneOf(e,r=ut.notOneOf){let n=this.clone();return e.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=Xr({message:r,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),n}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){let r=(e?this.resolve(e):this).clone(),{label:n,meta:i,optional:s,nullable:o}=r.spec;return{meta:i,label:n,optional:s,nullable:o,default:r.getDefault(e),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,c,f)=>f.findIndex(p=>p.name===a.name)===c)}}};Ce.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])Ce.prototype[`${t}At`]=function(e,r,n={}){let{parent:i,parentPath:s,schema:o}=L1(this,e,r,n.context);return o[t](i&&i[s],Object.assign({},n,{parent:i,path:e}))};for(let t of["equals","is"])Ce.prototype[t]=Ce.prototype.oneOf;for(let t of["not","nope"])Ce.prototype[t]=Ce.prototype.notOneOf;var $1=()=>!0;function M1(t){return new ao(t)}var ao=class extends Ce{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:$1},e))}};M1.prototype=ao.prototype;function H1(){return new lo}var lo=class extends Ce{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=xc.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Je(r)||r===!0}})}isFalse(e=xc.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Je(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};H1.prototype=lo.prototype;var U1=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,j1=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,q1=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,G1=t=>Je(t)||t===t.trim(),W1={}.toString();function go(){return new co}var co=class extends Ce{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(!n.spec.coerce||n.isType(e)||Array.isArray(e))return e;let i=e!=null&&e.toString?e.toString():e;return i===W1?e:i})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||ut.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=Ze.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r=Ze.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r=Ze.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}matches(e,r){let n=!1,i,s;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:s}=r:i=r),this.test({name:s||"matches",message:i||Ze.matches,params:{regex:e},skipAbsent:!0,test:o=>o===""&&n||o.search(e)!==-1})}email(e=Ze.email){return this.matches(U1,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ze.url){return this.matches(j1,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ze.uuid){return this.matches(q1,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Ze.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:G1})}lowercase(e=Ze.lowercase){return this.transform(r=>Je(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Je(r)||r===r.toLowerCase()})}uppercase(e=Ze.uppercase){return this.transform(r=>Je(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Je(r)||r===r.toUpperCase()})}};go.prototype=co.prototype;var V1=t=>t!=+t;function z1(){return new fo}var fo=class extends Ce{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!V1(e)}}),this.withMutation(()=>{this.transform((e,r,n)=>{if(!n.spec.coerce)return e;let i=e;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(e,r=Kt.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(e)}})}max(e,r=Kt.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(e)}})}lessThan(e,r=Kt.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(n){return n<this.resolve(e)}})}moreThan(e,r=Kt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(n){return n>this.resolve(e)}})}positive(e=Kt.positive){return this.moreThan(0,e)}negative(e=Kt.negative){return this.lessThan(0,e)}integer(e=Kt.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>Je(e)?e:e|0)}round(e){var r;let n=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(n.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>Je(i)?i:Math[e](i))}};z1.prototype=fo.prototype;var K1=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ct(t,e=0){return Number(t)||e}function Y1(t){let e=K1.exec(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;let r={year:Ct(e[1]),month:Ct(e[2],1)-1,day:Ct(e[3],1),hour:Ct(e[4]),minute:Ct(e[5]),second:Ct(e[6]),millisecond:e[7]?Ct(e[7].substring(0,3)):0,z:e[8]||void 0,plusMinus:e[9]||void 0,hourOffset:Ct(e[10]),minuteOffset:Ct(e[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}var LE=new Date(""),X1=t=>Object.prototype.toString.call(t)==="[object Date]";function $E(){return new ii}var ii=class t extends Ce{constructor(){super({type:"date",check(e){return X1(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r,n)=>!n.spec.coerce||n.isType(e)||e===null?e:(e=Y1(e),isNaN(e)?t.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let n;if(wt.isRef(e))n=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(e,r=yc.min){let n=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(e,r=yc.max){let n=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}};ii.INVALID_DATE=LE;$E.prototype=ii.prototype;$E.INVALID_DATE=LE;function Z1(t,e=[]){let r=[],n=new Set,i=new Set(e.map(([o,u])=>`${o}-${u}`));function s(o,u){let a=(0,Ve.split)(o)[0];n.add(a),i.has(`${u}-${a}`)||r.push([u,a])}for(let o of Object.keys(t)){let u=t[o];n.add(o),wt.isRef(u)&&u.isSibling?s(u.path,o):mo(u)&&"deps"in u&&u.deps.forEach(a=>s(a,o))}return IE.default.array(Array.from(n),r).reverse()}function RE(t,e){let r=1/0;return t.some((n,i)=>{var s;if((s=e.path)!=null&&s.includes(n))return r=i,!0}),r}function ME(t){return(e,r)=>RE(t,e)-RE(t,r)}var HE=(t,e,r)=>{if(typeof t!="string")return t;let n=t;try{n=JSON.parse(t)}catch{}return r.isType(n)?n:t};function so(t){if("fields"in t){let e={};for(let[r,n]of Object.entries(t.fields))e[r]=so(n);return t.setFields(e)}if(t.type==="array"){let e=t.optional();return e.innerType&&(e.innerType=so(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(so)}):"optional"in t?t.optional():t}var J1=(t,e)=>{let r=[...(0,Ve.normalizePath)(e)];if(r.length===1)return r[0]in t;let n=r.pop(),i=(0,Ve.getter)((0,Ve.join)(r),!0)(t);return!!(i&&n in i)},BE=t=>Object.prototype.toString.call(t)==="[object Object]";function Q1(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(n=>r.indexOf(n)===-1)}var eT=ME([]);function _c(t){return new ho(t)}var ho=class extends Ce{constructor(e){super({type:"object",check(r){return BE(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=eT,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var n;let i=super._cast(e,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let s=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,u=[].concat(this._nodes,Object.keys(i).filter(p=>!this._nodes.includes(p))),a={},c=Object.assign({},r,{parent:a,__validating:r.__validating||!1}),f=!1;for(let p of u){let m=s[p],y=p in i;if(m){let _,O=i[p];c.path=(r.path?`${r.path}.`:"")+p,m=m.resolve({value:O,context:r.context,parent:a});let k=m instanceof Ce?m.spec:void 0,M=k?.strict;if(k!=null&&k.strip){f=f||p in i;continue}_=!r.__validating||!M?m.cast(i[p],c):i[p],_!==void 0&&(a[p]=_)}else y&&!o&&(a[p]=i[p]);(y!==p in a||a[p]!==i[p])&&(f=!0)}return f?a:i}_validate(e,r={},n,i){let{from:s=[],originalValue:o=e,recursive:u=this.spec.recursive}=r;r.from=[{schema:this,value:o},...s],r.__validating=!0,r.originalValue=o,super._validate(e,r,n,(a,c)=>{if(!u||!BE(c)){i(a,c);return}o=o||c;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||wt.isRef(m)||f.push(m.asNestedTest({options:r,key:p,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:f,value:c,originalValue:o,options:r},n,p=>{i(p.sort(this._sortErrors).concat(a),c)})})}clone(e){let r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),n=r.fields;for(let[i,s]of Object.entries(this.fields)){let o=n[i];n[i]=o===void 0?s:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;let s=this.fields[n],o=e;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=s&&"getDefault"in s?s.getDefault(o):void 0}),r}setFields(e,r){let n=this.clone();return n.fields=e,n._nodes=Z1(e,r),n._sortErrors=ME(Object.keys(e)),r&&(n._excludedEdges=r),n}shape(e,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,e),i)})}partial(){let e={};for(let[r,n]of Object.entries(this.fields))e[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return so(this)}pick(e){let r={};for(let n of e)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>e.includes(n)&&e.includes(i)))}omit(e){let r=[];for(let n of Object.keys(this.fields))e.includes(n)||r.push(n);return this.pick(r)}from(e,r,n){let i=(0,Ve.getter)(e,!0);return this.transform(s=>{if(!s)return s;let o=s;return J1(s,e)&&(o=Object.assign({},s),n||delete o[e],o[r]=i(s)),o})}json(){return this.transform(HE)}noUnknown(e=!0,r=bc.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;let s=Q1(this.schema,i);return!e||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,r=bc.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;let n={};for(let i of Object.keys(r))n[e(i)]=r[i];return n})}camelCase(){return this.transformKeys(ni.camelCase)}snakeCase(){return this.transformKeys(ni.snakeCase)}constantCase(){return this.transformKeys(e=>(0,ni.snakeCase)(e).toUpperCase())}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(let[s,o]of Object.entries(r.fields)){var i;let u=e;(i=u)!=null&&i.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[s]})),n.fields[s]=o.describe(u)}return n}};_c.prototype=ho.prototype;function tT(t){return new po(t)}var po=class extends Ce{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){let n=super._cast(e,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1,s=n.map((o,u)=>{let a=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${u}]`}));return a!==o&&(i=!0),a});return i?s:n}_validate(e,r={},n,i){var s;let o=this.innerType,u=(s=r.recursive)!=null?s:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(e,r,n,(a,c)=>{var f;if(!u||!o||!this._typeCheck(c)){i(a,c);return}let p=new Array(c.length);for(let y=0;y<c.length;y++){var m;p[y]=o.asNestedTest({options:r,index:y,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:e})}this.runTests({value:c,tests:p,originalValue:(f=r.originalValue)!=null?f:e,options:r},n,y=>i(y.concat(a),c))})}clone(e){let r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(HE)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!mo(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ft(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=io.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r){return r=r||io.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r){return r=r||io.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(n,i,s)=>!e(n,i,s):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);if(r.innerType){var i;let s=e;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[0]})),n.innerType=r.innerType.describe(s)}return n}};tT.prototype=po.prototype;function rT(t){return new Do(t)}var Do=class extends Ce{constructor(e){super({type:"tuple",spec:{types:e},check(r){let n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(kE.notType)})}_cast(e,r){let{types:n}=this.spec,i=super._cast(e,r);if(!this._typeCheck(i))return i;let s=!1,o=n.map((u,a)=>{let c=u.cast(i[a],Object.assign({},r,{path:`${r.path||""}[${a}]`}));return c!==i[a]&&(s=!0),c});return s?o:i}_validate(e,r={},n,i){let s=this.spec.types;super._validate(e,r,n,(o,u)=>{var a;if(!this._typeCheck(u)){i(o,u);return}let c=[];for(let[p,m]of s.entries()){var f;c[p]=m.asNestedTest({options:r,index:p,parent:u,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:e})}this.runTests({value:u,tests:c,originalValue:(a=r.originalValue)!=null?a:e,options:r},n,p=>i(p.concat(o),u))})}describe(e){let r=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=r.spec.types.map((i,s)=>{var o;let u=e;return(o=u)!=null&&o.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[s]})),i.describe(u)}),n}};rT.prototype=Do.prototype;var wo=H(gy()),ui=H(require("fs/promises")),Ey=H(require("fs")),yy=H(require("path"));var Oc="e2b.toml",RT=`# This is a config for E2B sandbox template
90
90
 
91
- `,xy=_c({id:go().required(),dockerfile:go().required()});async function by(t){let e=await ui.readFile(t,"utf-8"),r=wo.parse(e);return await xy.validate(r)}async function _y(t,e,r){try{if(!r&&Ey.existsSync(t))throw new Error(`Config already exists on path ${_e(t)}`);let n=await xy.validate(e,{stripUnknown:!0}),i=wo.stringify(n);await ui.writeFile(t,OT+i)}catch(n){throw new Error(`E2B sandbox template config ${Ye({envID:e.id},t)} cannot be saved: ${n.message}`)}}function Cy(t){return yy.join(t,Oc)}var RT=1e3,BT=10*60*1e3,Fy=wn(kt.path("/envs/{envID}/builds/{buildID}").method("get").create()),wy=new Fe("build").description(`Build sandbox template defined by ${_e(zt)} or ${_e(Yr)} in root directory. By default the root directory is the current working directory. This command also creates ${xn(Oc)} config`).argument("[id]",`Specify ${ve("[id]")} of sandbox template to rebuild it. If you don's specify ${ve("[id]")} new sandbox will be created`).addOption(Us).option("-G, --no-gitignore",`Ignore ${_e(".gitignore")} file in root directory`).option("-d, --dockerfile <file>",`Specify path to Dockerfile. By default E2B tries to find ${xn(zt)} or ${xn(Yr)} in root directory`).option("-D, --no-dockerignore",`Ignore ${_e(".dockerignore")} file in root directory`).alias("bd").action(async(t,e)=>{try{let r=Hs();process.stdout.write(`
92
- `);let n=t,i=e.dockerfile,s=fs(e.path),o=Cy(s),u=ai.existsSync(o)?await by(o):void 0,a=St.relative(s,o);u&&(console.log(`Found sandbox template ${Ye({envID:u.id},a)}`),n=u.id,i=u.dockerfile);let c=await pD(s,{respectGitignore:e.gitignore,respectDockerignore:e.dockerignore});if(!c.length){console.log(ms`
91
+ `,xy=_c({id:go().required(),dockerfile:go().required()});async function by(t){let e=await ui.readFile(t,"utf-8"),r=wo.parse(e);return await xy.validate(r)}async function _y(t,e,r){try{if(!r&&Ey.existsSync(t))throw new Error(`Config already exists on path ${_e(t)}`);let n=await xy.validate(e,{stripUnknown:!0}),i=wo.stringify(n);await ui.writeFile(t,RT+i)}catch(n){throw new Error(`E2B sandbox template config ${We({envID:e.id},t)} cannot be saved: ${n.message}`)}}function Cy(t){return yy.join(t,Oc)}var BT=1e3,Fy=10*60*1e3,wy=Ln(Mt.path("/envs/{envID}/builds/{buildID}").method("get").create()),Sy=new Fe("build").description(`Build sandbox template defined by ${_e(zt)} or ${_e(Yr)} in root directory. By default the root directory is the current working directory. This command also creates ${xn(Oc)} config`).argument("[id]",`Specify ${ve("[id]")} of sandbox template to rebuild it. If you don's specify ${ve("[id]")} new sandbox will be created`).addOption(Us).option("-G, --no-gitignore",`Ignore ${_e(".gitignore")} file in root directory`).option("-d, --dockerfile <file>",`Specify path to Dockerfile. By default E2B tries to find ${xn(zt)} or ${xn(Yr)} in root directory`).option("-D, --no-dockerignore",`Ignore ${_e(".dockerignore")} file in root directory`).alias("bd").action(async(t,e)=>{try{let r=Hs();process.stdout.write(`
92
+ `);let n=t,i=e.dockerfile,s=fs(e.path),o=Cy(s),u=ai.existsSync(o)?await by(o):void 0,a=St.relative(s,o);u&&(console.log(`Found sandbox template ${We({envID:u.id},a)}`),n=u.id,i=u.dockerfile);let c=await pD(s,{respectGitignore:e.gitignore,respectDockerignore:e.dockerignore});if(!c.length){console.log(ms`
93
93
  No allowed files found in ${_e(s)}.
94
94
  Note that.gitignore and.dockerignore files are respected by default when building the sandbox template via from Dockerfile,
95
95
  use--no - gitignore and--no - dockerignore to override.
96
- `);return}console.log(`Preparing sandbox template building (${c.length} files in Docker build context).`);let{dockerfileContent:f,dockerfileRelativePath:p}=PT(s,i);console.log(`Found ${_e(p)} that will be used to build the sandbox template.`);let m=new FormData;m.append("dockerfile",f);let y=await gE(s,c,p!==Yr?[{oldPath:p,newPath:Yr}]:[]);m.append("buildContext",y,"env.tar.gz.e2b");let _=await NT(r,m,n);console.log(`Started building the sandbox template ${Ye(_)} `),await IT(r,_.envID,_.buildID),u||(await _y(o,{id:_.envID,dockerfile:p},!0),console.log(`Created config ${_e(a)}`))}catch(r){console.error(r),process.exit(1)}});async function IT(t,e,r){let n=new Date,i=0;function s(){return Date.now()-n.getTime()}let o;process.stdout.write(`
97
- `);do{await p0(RT);try{o=await Fy(t,{envID:e,logsOffset:i,buildID:r})}catch(u){if(u instanceof Fy.Error){let a=u.getActualType();if(a.status===401)throw new Error(`Error getting build info - (${a.status}) bad request: ${a.data.message}`);if(a.status===404)throw new Error(`Error getting build info - (${a.status}) not found: ${a.data.message}`);if(a.status===500)throw new Error(`Error getting build info - (${a.status}) server error: ${a.data.message}`)}throw u}switch(i+=o.data.logs.length,o.data.status){case"building":o.data.logs.forEach(u=>process.stdout.write(Ta(u)));break;case"ready":console.log(`
98
- \u2705 Building sandbox template ${Ye(o.data)} finished.
96
+ `);return}console.log(`Preparing sandbox template building (${c.length} files in Docker build context).`);let{dockerfileContent:f,dockerfileRelativePath:p}=PT(s,i);console.log(`Found ${_e(p)} that will be used to build the sandbox template.`);let m=new FormData;m.append("dockerfile",f);let y=await gE(s,c,p!==Yr?[{oldPath:p,newPath:Yr}]:[]);m.append("buildContext",y,"env.tar.gz.e2b");let _=await NT(r,m,n);console.log(`Started building the sandbox template ${We(_)} `),await IT(r,_.envID,_.buildID),u||(await _y(o,{id:_.envID,dockerfile:p},!0),console.log(`Created config ${_e(a)}`))}catch(r){console.error(r),process.exit(1)}});async function IT(t,e,r){let n=new Date,i=0;function s(){return Date.now()-n.getTime()}let o;process.stdout.write(`
97
+ `);do{await p0(BT);try{o=await wy(t,{envID:e,logsOffset:i,buildID:r})}catch(u){if(u instanceof wy.Error){let a=u.getActualType();if(a.status===401)throw new Error(`Error getting build info - (${a.status}) bad request: ${a.data.message}`);if(a.status===404)throw new Error(`Error getting build info - (${a.status}) not found: ${a.data.message}`);if(a.status===500)throw new Error(`Error getting build info - (${a.status}) server error: ${a.data.message}`)}throw u}switch(i+=o.data.logs.length,o.data.status){case"building":o.data.logs.forEach(u=>process.stdout.write(Ta(u)));break;case"ready":console.log(`
98
+ \u2705 Building sandbox template ${We(o.data)} finished.
99
99
  `);break;case"error":throw o.data.logs.forEach(u=>process.stdout.write(Ta(u))),new Error(`
100
- Building sandbox template ${Ye(o.data)} failed.
101
- `)}}while(o.data.status==="building"&&s()<BT)}function Rc(t){if(ai.existsSync(t))return ai.readFileSync(t,"utf-8")}function PT(t,e){if(e){let u=St.join(t,e),a=Rc(u),c=St.relative(t,u);if(a===void 0)throw new Error(`No ${_e(c)} found in the root directory.`);return{dockerfilePath:u,dockerfileContent:a,dockerfileRelativePath:c}}let r=St.join(t,zt),n=Rc(r),i=St.relative(t,r),s=i;if(n!==void 0)return{dockerfilePath:r,dockerfileContent:n,dockerfileRelativePath:s};r=St.join(t,Yr),n=Rc(r);let o=St.relative(t,r);if(s=o,n!==void 0)return{dockerfilePath:r,dockerfileContent:n,dockerfileRelativePath:s};throw new Error(`No ${_e(i)} or ${_e(o)} found in the root directory.You can specify a custom Dockerfile with ${ve("--dockerfile <file>")} option.`)}async function NT(t,e,r){let n=await fetch(Cn+(r?`/envs/${r}`:"/envs"),{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e}),i=await n.json();if(!n.ok){let s=i;throw s.code===401?new Error(`Authentication error: ${n.statusText}, ${s.message??"no message"}`):s.code===500?new Error(`Server error: ${n.statusText}, ${s.message??"no message"}`):new Error(`API request failed: ${n.statusText}, ${s.message??"no message"}`)}return i}l();var kT=wn(kt.path("/envs").method("get").create()),Sy=new Fe("list").description("List sandbox templates").alias("ls").action(async()=>{try{let t=Hs();process.stdout.write(`
100
+ \u274C Building sandbox template ${We(o.data)} failed.
101
+ `)}}while(o.data.status==="building"&&s()<Fy);if(o.data.status==="building"&&s()>=Fy)throw new Error(`
102
+ \u274C Building sandbox template ${We(o.data)} timed out.
103
+ `)}function Rc(t){if(ai.existsSync(t))return ai.readFileSync(t,"utf-8")}function PT(t,e){if(e){let u=St.join(t,e),a=Rc(u),c=St.relative(t,u);if(a===void 0)throw new Error(`No ${_e(c)} found in the root directory.`);return{dockerfilePath:u,dockerfileContent:a,dockerfileRelativePath:c}}let r=St.join(t,zt),n=Rc(r),i=St.relative(t,r),s=i;if(n!==void 0)return{dockerfilePath:r,dockerfileContent:n,dockerfileRelativePath:s};r=St.join(t,Yr),n=Rc(r);let o=St.relative(t,r);if(s=o,n!==void 0)return{dockerfilePath:r,dockerfileContent:n,dockerfileRelativePath:s};throw new Error(`No ${_e(i)} or ${_e(o)} found in the root directory.You can specify a custom Dockerfile with ${ve("--dockerfile <file>")} option.`)}async function NT(t,e,r){let n=await fetch(_n+(r?`/envs/${r}`:"/envs"),{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e}),i=await n.json();if(!n.ok){let s=i;throw s.code===401?new Error(`Authentication error: ${n.statusText}, ${s.message??"no message"}`):s.code===500?new Error(`Server error: ${n.statusText}, ${s.message??"no message"}`):new Error(`API request failed: ${n.statusText}, ${s.message??"no message"}`)}return i}l();var kT=Ln(Mt.path("/envs").method("get").create()),vy=new Fe("list").description("List sandbox templates").alias("ls").action(async()=>{try{let t=Hs();process.stdout.write(`
102
104
  `);let e=await kT(t,{});console.log(we.underline(we.green("Sandbox templates")));let r=e.data;r?.length?r.sort((n,i)=>n.envID.localeCompare(i.envID)).forEach(n=>{console.log(n.envID)}):console.log("No templates found."),process.stdout.write(`
103
- `)}catch(t){console.error(t),process.exit(1)}});l();l();l();function vy(){let t,e,r=new Promise((n,i)=>{t=n,e=i});return{resolve:t,reject:e,promise:r}}function Ay(){return{cols:process.stdout.columns,rows:process.stdout.rows}}async function Ty(t,e,r){let{promise:n,resolve:i}=vy();console.log(e);let s=await t.start({onData:a=>process.stdout.write(a),size:Ay(),onExit:i,envVars:{TERM:"xterm-256color"}});process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdout.setEncoding("utf8");let o=process.stdout.on("resize",()=>s.resize(Ay())),u=process.stdin.on("data",a=>s.sendData(a.toString("utf8")));return n.then(()=>{console.log(r),o.destroy(),u.destroy()}),{kill:s.kill.bind(s),exited:n}}var Oy=new Fe("shell").description("Connect terminal to sandbox").argument("<id>",`Connect to sandbox specified by ${ve("<id>")}`).alias("sh").action(async t=>{try{let e=Q0();await LT({apiKey:e,template:{envID:t}}),process.exit(0)}catch(e){console.error(e),process.exit(1)}});async function LT({apiKey:t,template:e}){let r=new Mn({apiKey:t,id:e.envID});if(await r.open({}),r.terminal){let{exited:n}=await Ty(r.terminal,`Terminal connected to sandbox ${Ye(e)}
104
- with sandbox URL ${ve(`https://${r.getHostname()}`)}`,`Disconnecting terminal from sandbox ${Ye(e)}`);await n,console.log(`Closing terminal connection to sandbox ${Ye(e)}`)}else throw new Error("Cannot start terminal - no sandbox")}l();var Ry=M(require("fs/promises")),By=M(require("fs")),Bc=M(require("path"));var Iy=new Fe("init").description("Create basic E2B `e2b.Dockerfile` in root directory. You can then run `e2b template build` to build sandbox template from this Dockerfile.").addOption(Us).alias("it").action(async t=>{try{process.stdout.write(`
105
- `);let e=fs(t.path),r=Bc.join(e,zt),n=By.existsSync(r),i=t.path?Bc.join(t.path,zt):zt;if(n){console.log(`Dockerfile ${_e(i)} already exists.
106
- `);return}await Ry.writeFile(r,EE),console.log(`Created ${_e(i)}
107
- `)}catch(e){console.error(e),process.exit(1)}});var Py=new Fe("template").description("Manage e2b sandbox templates").addCommand(wy).addCommand(Sy).addCommand(Oy).addCommand(Iy);var Ny=new Fe().description("Tool for interacting with E2B from command line").addCommand(Py,{isDefault:!0}).addCommand(xD).addCommand(bD);var ds=To;ky.default({pkg:ds}).notify();Ny.version(Oo,void 0,"Display e2b CLI version").parse();0&&(module.exports={pkg});
105
+ `)}catch(t){console.error(t),process.exit(1)}});l();l();l();function Ay(){let t,e,r=new Promise((n,i)=>{t=n,e=i});return{resolve:t,reject:e,promise:r}}function Ty(){return{cols:process.stdout.columns,rows:process.stdout.rows}}async function Oy(t,e,r){let{promise:n,resolve:i}=Ay();console.log(e);let s=await t.start({onData:a=>process.stdout.write(a),size:Ty(),onExit:i,envVars:{TERM:"xterm-256color"}});process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdout.setEncoding("utf8");let o=process.stdout.on("resize",()=>s.resize(Ty())),u=process.stdin.on("data",a=>s.sendData(a.toString("utf8")));return n.then(()=>{console.log(r),o.destroy(),u.destroy()}),{kill:s.kill.bind(s),exited:n}}var Ry=new Fe("shell").description("Connect terminal to sandbox").argument("<id>",`Connect to sandbox specified by ${ve("<id>")}`).alias("sh").action(async t=>{try{let e=Q0();await LT({apiKey:e,template:{envID:t}}),process.exit(0)}catch(e){console.error(e),process.exit(1)}});async function LT({apiKey:t,template:e}){let r=new Mn({apiKey:t,id:e.envID});if(await r.open({}),r.terminal){let{exited:n}=await Oy(r.terminal,`Terminal connected to sandbox ${We(e)}
106
+ with sandbox URL ${ve(`https://${r.getHostname()}`)}`,`Disconnecting terminal from sandbox ${We(e)}`);await n,console.log(`Closing terminal connection to sandbox ${We(e)}`)}else throw new Error("Cannot start terminal - no sandbox")}l();var By=H(require("fs/promises")),Iy=H(require("fs")),Bc=H(require("path"));var Py=new Fe("init").description("Create basic E2B `e2b.Dockerfile` in root directory. You can then run `e2b template build` to build sandbox template from this Dockerfile").addOption(Us).alias("it").action(async t=>{try{process.stdout.write(`
107
+ `);let e=fs(t.path),r=Bc.join(e,zt),n=Iy.existsSync(r),i=t.path?Bc.join(t.path,zt):zt;if(n){console.log(`Dockerfile ${_e(i)} already exists.
108
+ `);return}await By.writeFile(r,EE),console.log(`Created ${_e(i)}
109
+ `)}catch(e){console.error(e),process.exit(1)}});var Ny=new Fe("template").description("Manage E2B sandbox templates").addCommand(Sy).addCommand(vy).addCommand(Ry).addCommand(Py);var ky=new Fe().description("Tool for interacting with E2B from command line").addCommand(Ny,{isDefault:!0}).addCommand(xD).addCommand(bD);var ds=To;Ly.default({pkg:ds,updateCheckInterval:1e3*60*60*8}).notify();ky.version(Oo,void 0,"Display E2B CLI version").parse();0&&(module.exports={pkg});
108
110
  /*! Bundled license information:
109
111
 
110
112
  @balena/dockerignore/ignore.js:
@@ -138,14 +140,6 @@ queue-microtask/index.js:
138
140
  run-parallel/index.js:
139
141
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
140
142
 
141
- platform/platform.js:
142
- (*!
143
- * Platform.js v1.3.6
144
- * Copyright 2014-2020 Benjamin Tan
145
- * Copyright 2011-2013 John-David Dalton
146
- * Available under MIT license
147
- *)
148
-
149
143
  normalize-path/index.js:
150
144
  (*!
151
145
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -153,4 +147,12 @@ normalize-path/index.js:
153
147
  * Copyright (c) 2014-2018, Jon Schlinkert.
154
148
  * Released under the MIT License.
155
149
  *)
150
+
151
+ platform/platform.js:
152
+ (*!
153
+ * Platform.js v1.3.6
154
+ * Copyright 2014-2020 Benjamin Tan
155
+ * Copyright 2011-2013 John-David Dalton
156
+ * Available under MIT license
157
+ *)
156
158
  */