/*! For license information please see extension.js.LICENSE.txt */ (()=>{var e={3196:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3196,e.exports=t},61182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],n=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement",...r],i=["null","undefined","string","number","bigint","boolean","symbol"];function o(e){return t=>typeof t===e}const{toString:s}=Object.prototype,a=e=>{const t=s.call(e).slice(8,-1);return/HTML\w+Element/.test(t)&&u.domElement(e)?"HTMLElement":(r=t,n.includes(r)?t:void 0);var r},c=e=>t=>a(t)===e;function u(e){if(null===e)return"null";switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(u.observable(e))return"Observable";if(u.array(e))return"Array";if(u.buffer(e))return"Buffer";const t=a(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");const l=o("number");u.number=e=>l(e)&&!u.nan(e),u.bigint=o("bigint"),u.function_=o("function"),u.null_=e=>null===e,u.class_=e=>u.function_(e)&&e.toString().startsWith("class "),u.boolean=e=>!0===e||!1===e,u.symbol=o("symbol"),u.numericString=e=>u.string(e)&&!u.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)),u.array=(e,t)=>!!Array.isArray(e)&&(!u.function_(t)||e.every(t)),u.buffer=e=>{var t,r,n,i;return null!==(i=null===(n=null===(r=null===(t=e)||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.isBuffer)||void 0===n?void 0:n.call(r,e))&&void 0!==i&&i},u.nullOrUndefined=e=>u.null_(e)||u.undefined(e),u.object=e=>!u.null_(e)&&("object"==typeof e||u.function_(e)),u.iterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},u.asyncIterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.asyncIterator])},u.generator=e=>u.iterable(e)&&u.function_(e.next)&&u.function_(e.throw),u.asyncGenerator=e=>u.asyncIterable(e)&&u.function_(e.next)&&u.function_(e.throw),u.nativePromise=e=>c("Promise")(e),u.promise=e=>u.nativePromise(e)||(e=>{var t,r;return u.function_(null===(t=e)||void 0===t?void 0:t.then)&&u.function_(null===(r=e)||void 0===r?void 0:r.catch)})(e),u.generatorFunction=c("GeneratorFunction"),u.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===a(e),u.asyncFunction=e=>"AsyncFunction"===a(e),u.boundFunction=e=>u.function_(e)&&!e.hasOwnProperty("prototype"),u.regExp=c("RegExp"),u.date=c("Date"),u.error=c("Error"),u.map=e=>c("Map")(e),u.set=e=>c("Set")(e),u.weakMap=e=>c("WeakMap")(e),u.weakSet=e=>c("WeakSet")(e),u.int8Array=c("Int8Array"),u.uint8Array=c("Uint8Array"),u.uint8ClampedArray=c("Uint8ClampedArray"),u.int16Array=c("Int16Array"),u.uint16Array=c("Uint16Array"),u.int32Array=c("Int32Array"),u.uint32Array=c("Uint32Array"),u.float32Array=c("Float32Array"),u.float64Array=c("Float64Array"),u.bigInt64Array=c("BigInt64Array"),u.bigUint64Array=c("BigUint64Array"),u.arrayBuffer=c("ArrayBuffer"),u.sharedArrayBuffer=c("SharedArrayBuffer"),u.dataView=c("DataView"),u.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,u.urlInstance=e=>c("URL")(e),u.urlString=e=>{if(!u.string(e))return!1;try{return new URL(e),!0}catch(e){return!1}},u.truthy=e=>Boolean(e),u.falsy=e=>!e,u.nan=e=>Number.isNaN(e),u.primitive=e=>{return u.null_(e)||(t=typeof e,i.includes(t));var t},u.integer=e=>Number.isInteger(e),u.safeInteger=e=>Number.isSafeInteger(e),u.plainObject=e=>{if("[object Object]"!==s.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},u.typedArray=e=>{return t=a(e),r.includes(t);var t},u.arrayLike=e=>!u.nullOrUndefined(e)&&!u.function_(e)&&(e=>u.safeInteger(e)&&e>=0)(e.length),u.inRange=(e,t)=>{if(u.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(u.array(t)&&2===t.length)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const p=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=e=>u.object(e)&&1===e.nodeType&&u.string(e.nodeName)&&!u.plainObject(e)&&p.every((t=>t in e)),u.observable=e=>{var t,r,n,i;return!!e&&(e===(null===(r=(t=e)[Symbol.observable])||void 0===r?void 0:r.call(t))||e===(null===(i=(n=e)["@@observable"])||void 0===i?void 0:i.call(n)))},u.nodeStream=e=>u.object(e)&&u.function_(e.pipe)&&!u.observable(e),u.infinite=e=>e===1/0||e===-1/0;const d=e=>t=>u.integer(t)&&Math.abs(t%2)===e;u.evenInteger=d(0),u.oddInteger=d(1),u.emptyArray=e=>u.array(e)&&0===e.length,u.nonEmptyArray=e=>u.array(e)&&e.length>0,u.emptyString=e=>u.string(e)&&0===e.length,u.nonEmptyString=e=>u.string(e)&&e.length>0,u.emptyStringOrWhitespace=e=>u.emptyString(e)||(e=>u.string(e)&&!/\S/.test(e))(e),u.emptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&0===Object.keys(e).length,u.nonEmptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&Object.keys(e).length>0,u.emptySet=e=>u.set(e)&&0===e.size,u.nonEmptySet=e=>u.set(e)&&e.size>0,u.emptyMap=e=>u.map(e)&&0===e.size,u.nonEmptyMap=e=>u.map(e)&&e.size>0;const h=(e,t,r)=>{if(!u.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(0===r.length)throw new TypeError("Invalid number of values");return e.call(r,t)};u.any=(e,...t)=>(u.array(e)?e:[e]).some((e=>h(Array.prototype.some,e,t))),u.all=(e,...t)=>h(Array.prototype.every,e,t);const f=(e,t,r,n={})=>{if(!e){const{multipleValues:e}=n,i=e?`received values of types ${[...new Set(r.map((e=>`\`${u(e)}\``)))].join(", ")}`:`received value of type \`${u(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${i}.`)}};t.assert={undefined:e=>f(u.undefined(e),"undefined",e),string:e=>f(u.string(e),"string",e),number:e=>f(u.number(e),"number",e),bigint:e=>f(u.bigint(e),"bigint",e),function_:e=>f(u.function_(e),"Function",e),null_:e=>f(u.null_(e),"null",e),class_:e=>f(u.class_(e),"Class",e),boolean:e=>f(u.boolean(e),"boolean",e),symbol:e=>f(u.symbol(e),"symbol",e),numericString:e=>f(u.numericString(e),"string with a number",e),array:(e,t)=>{f(u.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>f(u.buffer(e),"Buffer",e),nullOrUndefined:e=>f(u.nullOrUndefined(e),"null or undefined",e),object:e=>f(u.object(e),"Object",e),iterable:e=>f(u.iterable(e),"Iterable",e),asyncIterable:e=>f(u.asyncIterable(e),"AsyncIterable",e),generator:e=>f(u.generator(e),"Generator",e),asyncGenerator:e=>f(u.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>f(u.nativePromise(e),"native Promise",e),promise:e=>f(u.promise(e),"Promise",e),generatorFunction:e=>f(u.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>f(u.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>f(u.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>f(u.boundFunction(e),"Function",e),regExp:e=>f(u.regExp(e),"RegExp",e),date:e=>f(u.date(e),"Date",e),error:e=>f(u.error(e),"Error",e),map:e=>f(u.map(e),"Map",e),set:e=>f(u.set(e),"Set",e),weakMap:e=>f(u.weakMap(e),"WeakMap",e),weakSet:e=>f(u.weakSet(e),"WeakSet",e),int8Array:e=>f(u.int8Array(e),"Int8Array",e),uint8Array:e=>f(u.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>f(u.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>f(u.int16Array(e),"Int16Array",e),uint16Array:e=>f(u.uint16Array(e),"Uint16Array",e),int32Array:e=>f(u.int32Array(e),"Int32Array",e),uint32Array:e=>f(u.uint32Array(e),"Uint32Array",e),float32Array:e=>f(u.float32Array(e),"Float32Array",e),float64Array:e=>f(u.float64Array(e),"Float64Array",e),bigInt64Array:e=>f(u.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>f(u.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>f(u.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>f(u.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>f(u.dataView(e),"DataView",e),urlInstance:e=>f(u.urlInstance(e),"URL",e),urlString:e=>f(u.urlString(e),"string with a URL",e),truthy:e=>f(u.truthy(e),"truthy",e),falsy:e=>f(u.falsy(e),"falsy",e),nan:e=>f(u.nan(e),"NaN",e),primitive:e=>f(u.primitive(e),"primitive",e),integer:e=>f(u.integer(e),"integer",e),safeInteger:e=>f(u.safeInteger(e),"integer",e),plainObject:e=>f(u.plainObject(e),"plain object",e),typedArray:e=>f(u.typedArray(e),"TypedArray",e),arrayLike:e=>f(u.arrayLike(e),"array-like",e),domElement:e=>f(u.domElement(e),"HTMLElement",e),observable:e=>f(u.observable(e),"Observable",e),nodeStream:e=>f(u.nodeStream(e),"Node.js Stream",e),infinite:e=>f(u.infinite(e),"infinite number",e),emptyArray:e=>f(u.emptyArray(e),"empty array",e),nonEmptyArray:e=>f(u.nonEmptyArray(e),"non-empty array",e),emptyString:e=>f(u.emptyString(e),"empty string",e),nonEmptyString:e=>f(u.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>f(u.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>f(u.emptyObject(e),"empty object",e),nonEmptyObject:e=>f(u.nonEmptyObject(e),"non-empty object",e),emptySet:e=>f(u.emptySet(e),"empty set",e),nonEmptySet:e=>f(u.nonEmptySet(e),"non-empty set",e),emptyMap:e=>f(u.emptyMap(e),"empty map",e),nonEmptyMap:e=>f(u.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>f(u.evenInteger(e),"even integer",e),oddInteger:e=>f(u.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>f(u.directInstanceOf(e,t),"T",e),inRange:(e,t)=>f(u.inRange(e,t),"in range",e),any:(e,...t)=>f(u.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>f(u.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=u,e.exports=u,e.exports.default=u,e.exports.assert=t.assert},96504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62925),i=Number(process.versions.node.split(".")[0]),o=e=>{const t={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};e.timings=t;const r=e=>{const r=e.emit.bind(e);e.emit=(n,...i)=>("error"===n&&(t.error=Date.now(),t.phases.total=t.error-t.start,e.emit=r),r(n,...i))};r(e),e.prependOnceListener("abort",(()=>{t.abort=Date.now(),(!t.response||i>=13)&&(t.phases.total=Date.now()-t.start)}));const o=e=>{t.socket=Date.now(),t.phases.wait=t.socket-t.start;const r=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",r),n.default(e,{connect:()=>{t.connect=Date.now(),void 0===t.lookup&&(e.removeListener("lookup",r),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?o(e.socket):e.prependOnceListener("socket",o);const s=()=>{var e;t.upload=Date.now(),t.phases.request=t.upload-(null!==(e=t.secureConnect)&&void 0!==e?e:t.connect)};return("boolean"==typeof e.writableFinished?!e.writableFinished:!e.finished||0!==e.outputSize||e.socket&&0!==e.socket.writableLength)?e.prependOnceListener("finish",s):s(),e.prependOnceListener("response",(e=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,e.timings=t,r(e),e.prependOnceListener("end",(()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}))})),t};t.default=o,e.exports=o,e.exports.default=o},8275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinChromeBrowserFinder=void 0;const n=r(52918),i=r(28731);class o extends i.DarwinFinderBase{constructor(){super(...arguments),this.wellKnownPaths=[{path:"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",quality:"stable"},{path:"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary",quality:"canary"},{path:"/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta",quality:"beta"},{path:"/Applications/Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev",quality:"dev"}]}async findAll(){const e=await this.findLaunchRegisteredApps("google chrome\\( canary\\)\\?.app",["/Applications/Google Chrome.app","/Applications/Google Chrome Canary.app"],["/Contents/MacOS/Google Chrome Canary","/Contents/MacOS/Google Chrome"]);return(0,n.sort)(e,this.createPriorities([{name:"Chrome.app",weight:0,quality:"stable"},{name:"Chrome Canary.app",weight:1,quality:"canary"}]))}getPreferredPath(){return this.env.CHROME_PATH}}t.DarwinChromeBrowserFinder=o},94713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinEdgeBrowserFinder=void 0;const n=r(52918),i=r(28731);class o extends i.DarwinFinderBase{constructor(){super(...arguments),this.wellKnownPaths=[{path:"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",quality:"stable"},{path:"/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary",quality:"canary"},{path:"/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta",quality:"beta"},{path:"/Applications/Microsoft Edge Dev.app/Contents/MacOS/Microsoft Edge Dev",quality:"dev"}]}async findAll(){const e=await this.findLaunchRegisteredApps("Microsoft Edge[A-Za-z ]*.app",["/Applications/Microsoft Edge.app"],["/Contents/MacOS/Microsoft Edge Canary","/Contents/MacOS/Microsoft Edge Beta","/Contents/MacOS/Microsoft Edge Dev","/Contents/MacOS/Microsoft Edge"]);return(0,n.sort)(e,this.createPriorities([{name:"Microsoft Edge.app",weight:0,quality:"stable"},{name:"Microsoft Edge Canary.app",weight:1,quality:"canary"},{name:"Microsoft Edge Beta.app",weight:2,quality:"beta"},{name:"Microsoft Edge Dev.app",weight:3,quality:"dev"}]))}getPreferredPath(){return this.env.EDGE_PATH}}t.DarwinEdgeBrowserFinder=o},28731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinFinderBase=void 0;const n=r(71017),i=r(52918),o=/( \(0x[a-f0-9]+\))/;t.DarwinFinderBase=class{constructor(e,t,r){this.env=e,this.fs=t,this.execa=r,this.lsRegisterCommand="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump",this.wellKnownPaths=[]}async findWhere(e){for(const t of this.wellKnownPaths)if(e(t)&&await(0,i.canAccess)(this.fs,t.path))return t;return(await this.findAll()).find(e)}async findLaunchRegisteredApps(e,t,r){const{stdout:i}=await this.execa.command(`${this.lsRegisterCommand} | awk '$0 ~ /${e}${o.source}?$/ { $1=""; print $0 }'`,{shell:!0,stdio:"pipe"}),s=[...t,...i.split("\n").map((e=>e.trim().replace(o,"")))].filter((e=>!!e)),a=this.getPreferredPath();a&&s.push(a);const c=new Set;for(const e of s)for(const t of r){const r=n.posix.join(e.trim(),t);try{await this.fs.access(r),c.add(r)}catch(e){}}return c}createPriorities(e){const t=this.env.HOME&&(0,i.escapeRegexSpecialChars)(this.env.HOME),r=this.getPreferredPath(),n=e.reduce(((e,r)=>[...e,{regex:new RegExp(`^/Applications/.*${r.name}`),weight:r.weight+100,quality:r.quality},{regex:new RegExp(`^${t}/Applications/.*${r.name}`),weight:r.weight,quality:r.quality},{regex:new RegExp(`^/Volumes/.*${r.name}`),weight:r.weight-100,quality:r.quality}]),[]);return r&&n.unshift({regex:new RegExp((0,i.escapeRegexSpecialChars)(r)),weight:151,quality:"custom"}),n}}},5324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EdgeBrowserFinder=t.ChromeBrowserFinder=t.isQuality=t.allQualities=void 0;const n=r(8275),i=r(94713),o=r(39315),s=r(68377),a=r(75413),c=r(61326);t.allQualities=new Set(Object.keys({canary:null,stable:null,beta:null,dev:null,custom:null})),t.isQuality=e=>t.allQualities.has(e),t.ChromeBrowserFinder="win32"===process.platform?a.WindowsChromeBrowserFinder:"darwin"===process.platform?n.DarwinChromeBrowserFinder:o.LinuxChromeBrowserFinder,t.EdgeBrowserFinder="win32"===process.platform?c.WindowsEdgeBrowserFinder:"darwin"===process.platform?i.DarwinEdgeBrowserFinder:s.LinuxEdgeBrowserFinder},39315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinuxChromeBrowserFinder=void 0;const n=r(71017),i=r(52918),o=r(32081),s=r(22037),a=/\r?\n/;t.LinuxChromeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t,this.pathEnvironmentVar="CHROME_PATH",this.priorities=[{regex:/chrome-wrapper$/,weight:54,quality:"custom"},{regex:/google-chrome-dev$/,weight:53,quality:"dev"},{regex:/google-chrome-canary$/,weight:52,quality:"canary"},{regex:/google-chrome-unstable$/,weight:51,quality:"canary"},{regex:/google-chrome-canary$/,weight:51,quality:"canary"},{regex:/google-chrome-stable$/,weight:50,quality:"stable"},{regex:/google-chrome$/,weight:49,quality:"stable"},{regex:/chromium-browser$/,weight:48,quality:"custom"},{regex:/chromium$/,weight:47,quality:"custom"}],this.executablesOnPath=["google-chrome-unstable","google-chrome-dev","google-chrome-beta","google-chrome-canary","google-chrome-stable","google-chrome","chromium-browser","chromium"]}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=new Set,t=this.env[this.pathEnvironmentVar];t&&await(0,i.canAccess)(this.fs,t)&&e.add(t),[n.posix.join((0,s.homedir)(),".local/share/applications/"),"/usr/share/applications/","/usr/bin"].forEach((t=>{for(const r in this.findChromeExecutables(t))e.add(r)})),await Promise.all(this.executablesOnPath.map((async t=>{try{const r=(0,o.execFileSync)("which",[t],{stdio:"pipe"}).toString().split(a)[0];await(0,i.canAccess)(this.fs,r)&&e.add(r)}catch(e){}})));const r=t?[{regex:new RegExp((0,i.escapeRegexSpecialChars)(t)),weight:101,quality:"custom"}].concat(this.priorities):this.priorities;return(0,i.sort)(e,r)}async findChromeExecutables(e){const t=/(^[^ ]+).*/,r=`^Exec=/.*/(${this.executablesOnPath.join("|")})-.*`,n=[];if(await(0,i.canAccess)(this.fs,e)){let s;try{s=(0,o.execSync)(`grep -ER "${r}" ${e} | awk -F '=' '{print $2}'`)}catch(t){s=(0,o.execSync)(`grep -Er "${r}" ${e} | awk -F '=' '{print $2}'`)}const c=s.toString().split(a).map((e=>e.replace(t,"$1")));await Promise.all(c.map((async e=>{await(0,i.canAccess)(this.fs,e)&&n.push(e)})))}return n}}},68377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinuxEdgeBrowserFinder=void 0;const n=r(39315);class i extends n.LinuxChromeBrowserFinder{constructor(){super(...arguments),this.pathEnvironmentVar="EDGE_PATH",this.executablesOnPath=["microsoft-edge-dev","microsoft-edge-beta","microsoft-edge-stable","microsoft-edge"],this.priorities=[{regex:/microsoft-edge\-wrapper$/,weight:52,quality:"custom"},{regex:/microsoft-edge\-dev$/,weight:51,quality:"dev"},{regex:/microsoft-edge\-beta$/,weight:51,quality:"beta"},{regex:/microsoft-edge\-stable$/,weight:50,quality:"stable"},{regex:/microsoft-edge$/,weight:49,quality:"stable"}]}}t.LinuxEdgeBrowserFinder=i},52918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findWindowsCandidates=t.sort=t.preferredEdgePath=t.preferredChromePath=t.escapeRegexSpecialChars=t.canAccess=void 0;const n=r(71017);async function i({access:e},t){if(!t)return!1;try{return await e(t),!0}catch(e){return!1}}t.canAccess=i,t.escapeRegexSpecialChars=function(e,t){const r="/\\.?*()^${}|[]+".split("").filter((e=>!t||t.indexOf(e)<0)).join("").replace(/[\\\]]/g,"\\$&"),n=new RegExp(`[${r}]`,"g");return e.replace(n,"\\$&")},t.preferredChromePath=async function(e,t){if(await i(e,t.CHROME_PATH))return t.CHROME_PATH},t.preferredEdgePath=async function(e,t){if(await i(e,t.EDGE_PATH))return t.EDGE_PATH},t.sort=function(e,t){return[...e].filter((e=>!!e)).map((e=>{const r=t.find((t=>t.regex.test(e)));return r?{path:e,weight:r.weight,quality:r.quality}:{path:e,weight:10,quality:"dev"}})).sort(((e,t)=>t.weight-e.weight)).map((e=>({path:e.path,quality:e.quality})))},t.findWindowsCandidates=async function(e,t,r){const o=[e.LOCALAPPDATA,e.PROGRAMFILES,e["PROGRAMFILES(X86)"]].filter((e=>!!e)),s=[];for(const e of o)for(const o of r){const r=n.win32.join(e,o.name);s.push(i(t,r).then((e=>e?{path:r,quality:o.type}:void 0)))}return(await Promise.all(s)).filter((e=>!!e))}},75413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsChromeBrowserFinder=void 0;const n=r(71017),i=r(52918);t.WindowsChromeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=n.win32.sep,t=[{name:`${e}Google${e}Chrome Dev${e}Application${e}chrome.exe`,type:"dev"},{name:`${e}Google${e}Chrome SxS${e}Application${e}chrome.exe`,type:"canary"},{name:`${e}Google${e}Chrome Beta${e}Application${e}chrome.exe`,type:"beta"},{name:`${e}Google${e}Chrome${e}Application${e}chrome.exe`,type:"stable"}],r=await(0,i.findWindowsCandidates)(this.env,this.fs,t),o=await(0,i.preferredChromePath)(this.fs,this.env);return o&&r.unshift({path:o,quality:"custom"}),r}}},61326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsEdgeBrowserFinder=void 0;const n=r(71017),i=r(52918);t.WindowsEdgeBrowserFinder=class{constructor(e,t){this.env=e,this.fs=t}async findWhere(e){return(await this.findAll()).find(e)}async findAll(){const e=[{name:`${n.sep}Microsoft${n.sep}Edge SxS${n.sep}Application${n.sep}msedge.exe`,type:"canary"},{name:`${n.sep}Microsoft${n.sep}Edge Dev${n.sep}Application${n.sep}msedge.exe`,type:"dev"},{name:`${n.sep}Microsoft${n.sep}Edge Beta${n.sep}Application${n.sep}msedge.exe`,type:"beta"},{name:`${n.sep}Microsoft${n.sep}Edge${n.sep}Application${n.sep}msedge.exe`,type:"stable"}],t=await(0,i.findWindowsCandidates)(this.env,this.fs,e),r=await(0,i.preferredEdgePath)(this.fs,this.env);return r&&t.unshift({path:r,quality:"custom"}),t}}},28844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAppContainerProcessTokens=void 0;const n=r(71017);let i;t.getAppContainerProcessTokens=e=>(()=>{if("win32"===process.platform)return i??=r(16477),i})()?.getAppContainerProcessTokens().map((t=>(0,n.join)(t,e)))},22681:function(e,t,r){!function(e,t){"use strict";var r="✖";function n(e){return e.name===r}function i(){}var o=function(e,r){if(void 0===r&&(r={}),this.toks=this.constructor.BaseParser.tokenizer(e,r),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:t.tokTypes.eof,start:0,end:0},this.tok.validateRegExpFlags=i,this.tok.validateRegExpPattern=i,this.options.locations){var n=this.toks.curPosition();this.tok.loc=new t.SourceLocation(this.toks,n,n)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};o.prototype.startNode=function(){return new t.Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},o.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},o.prototype.startNodeAt=function(e){return this.options.locations?new t.Node(this.toks,e[0],e[1]):new t.Node(this.toks,e)},o.prototype.finishNode=function(e,t){return e.type=t,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e},o.prototype.dummyNode=function(e){var r=this.startNode();return r.type=e,r.end=r.start,this.options.locations&&(r.loc.end=r.loc.start),this.options.ranges&&(r.range[1]=r.start),this.last={type:t.tokTypes.name,start:r.start,end:r.start,loc:r.loc},r},o.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=r,e},o.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=r,e},o.prototype.eat=function(e){return this.tok.type===e&&(this.next(),!0)},o.prototype.isContextual=function(e){return this.tok.type===t.tokTypes.name&&this.tok.value===e},o.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(t.tokTypes.name)},o.prototype.canInsertSemicolon=function(){return this.tok.type===t.tokTypes.eof||this.tok.type===t.tokTypes.braceR||t.lineBreak.test(this.input.slice(this.last.end,this.tok.start))},o.prototype.semicolon=function(){return this.eat(t.tokTypes.semi)},o.prototype.expect=function(e){if(this.eat(e))return!0;for(var t=1;t<=2;t++)if(this.lookAhead(t).type===e){for(var r=0;r=this.input.length||this.indentationAfter(this.nextLineStart)=this.curLineStart;--e){var t=this.input.charCodeAt(e);if(9!==t&&32!==t)return!1}return!0},o.prototype.extend=function(e,t){this[e]=t(this[e])},o.prototype.parse=function(){return this.next(),this.parseTopLevel()},o.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n8||32===e||160===e||t.isNewLine(e)}s.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},s.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===t.tokTypes.dot&&"."===this.input.substr(this.toks.end,1)&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=t.tokTypes.ellipsis),new t.Token(this.toks)}catch(c){if(!(c instanceof SyntaxError))throw c;var e=c.message,n=c.raisedAt,i=!0;if(/unterminated/i.test(e))if(n=this.lineEnd(c.pos+1),/string/.test(e))i={start:c.pos,end:n,type:t.tokTypes.string,value:this.input.slice(c.pos+1,n)};else if(/regular expr/i.test(e)){var o=this.input.slice(c.pos,n);try{o=new RegExp(o)}catch(e){}i={start:c.pos,end:n,type:t.tokTypes.regexp,value:o}}else i=!!/template/.test(e)&&{start:c.pos,end:n,type:t.tokTypes.template,value:this.input.slice(c.pos,n)};else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;n]/.test(n)||/[enwfd]/.test(n)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations)for(this.toks.curLine=1,this.toks.lineStart=t.lineBreakG.lastIndex=0;(r=t.lineBreakG.exec(this.input))&&r.indexthis.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var c=o.prototype;c.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,t.getLineInfo(this.input,0)]:0);for(e.body=[];this.tok.type!==t.tokTypes.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType=this.options.sourceType,this.finishNode(e,"Program")},c.parseStatement=function(){var e,r=this.tok.type,i=this.startNode();switch(this.toks.isLet()&&(r=t.tokTypes._var,e="let"),r){case t.tokTypes._break:case t.tokTypes._continue:this.next();var o=r===t.tokTypes._break;return this.semicolon()||this.canInsertSemicolon()?i.label=null:(i.label=this.tok.type===t.tokTypes.name?this.parseIdent():null,this.semicolon()),this.finishNode(i,o?"BreakStatement":"ContinueStatement");case t.tokTypes._debugger:return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement");case t.tokTypes._do:return this.next(),i.body=this.parseStatement(),i.test=this.eat(t.tokTypes._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(i,"DoWhileStatement");case t.tokTypes._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(t.tokTypes.parenL),this.tok.type===t.tokTypes.semi)return this.parseFor(i,null);var a=this.toks.isLet();if(a||this.tok.type===t.tokTypes._var||this.tok.type===t.tokTypes._const){var c=this.parseVar(this.startNode(),!0,a?"let":this.tok.value);return 1!==c.declarations.length||this.tok.type!==t.tokTypes._in&&!this.isContextual("of")?this.parseFor(i,c):(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(i.await=s),this.parseForIn(i,c))}var u=this.parseExpression(!0);return this.tok.type===t.tokTypes._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(i.await=s),this.parseForIn(i,this.toAssignable(u))):this.parseFor(i,u);case t.tokTypes._function:return this.next(),this.parseFunction(i,!0);case t.tokTypes._if:return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement(),i.alternate=this.eat(t.tokTypes._else)?this.parseStatement():null,this.finishNode(i,"IfStatement");case t.tokTypes._return:return this.next(),this.eat(t.tokTypes.semi)||this.canInsertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement");case t.tokTypes._switch:var l,p=this.curIndent,d=this.curLineStart;for(this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.pushCx(),this.expect(t.tokTypes.braceL);!this.closes(t.tokTypes.braceR,p,d,!0);)if(this.tok.type===t.tokTypes._case||this.tok.type===t.tokTypes._default){var h=this.tok.type===t.tokTypes._case;l&&this.finishNode(l,"SwitchCase"),i.cases.push(l=this.startNode()),l.consequent=[],this.next(),l.test=h?this.parseExpression():null,this.expect(t.tokTypes.colon)}else l||(i.cases.push(l=this.startNode()),l.consequent=[],l.test=null),l.consequent.push(this.parseStatement());return l&&this.finishNode(l,"SwitchCase"),this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(i,"SwitchStatement");case t.tokTypes._throw:return this.next(),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement");case t.tokTypes._try:if(this.next(),i.block=this.parseBlock(),i.handler=null,this.tok.type===t.tokTypes._catch){var f=this.startNode();this.next(),this.eat(t.tokTypes.parenL)?(f.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(t.tokTypes.parenR)):f.param=null,f.body=this.parseBlock(),i.handler=this.finishNode(f,"CatchClause")}return i.finalizer=this.eat(t.tokTypes._finally)?this.parseBlock():null,i.handler||i.finalizer?this.finishNode(i,"TryStatement"):i.block;case t.tokTypes._var:case t.tokTypes._const:return this.parseVar(i,!1,e||this.tok.value);case t.tokTypes._while:return this.next(),i.test=this.parseParenExpression(),i.body=this.parseStatement(),this.finishNode(i,"WhileStatement");case t.tokTypes._with:return this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement(),this.finishNode(i,"WithStatement");case t.tokTypes.braceL:return this.parseBlock();case t.tokTypes.semi:return this.next(),this.finishNode(i,"EmptyStatement");case t.tokTypes._class:return this.parseClass(!0);case t.tokTypes._import:if(this.options.ecmaVersion>10){var m=this.lookAhead(1).type;if(m===t.tokTypes.parenL||m===t.tokTypes.dot)return i.expression=this.parseExpression(),this.semicolon(),this.finishNode(i,"ExpressionStatement")}return this.parseImport();case t.tokTypes._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(i,!0,!0);var g=this.parseExpression();return n(g)?(this.next(),this.tok.type===t.tokTypes.eof?this.finishNode(i,"EmptyStatement"):this.parseStatement()):r===t.tokTypes.name&&"Identifier"===g.type&&this.eat(t.tokTypes.colon)?(i.body=this.parseStatement(),i.label=g,this.finishNode(i,"LabeledStatement")):(i.expression=g,this.semicolon(),this.finishNode(i,"ExpressionStatement"))}},c.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(t.tokTypes.braceL);var r=this.curIndent,n=this.curLineStart;for(e.body=[];!this.closes(t.tokTypes.braceR,r,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(e,"BlockStatement")},c.parseFor=function(e,r){return e.init=r,e.test=e.update=null,this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.semi&&(e.test=this.parseExpression()),this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(t.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")},c.parseForIn=function(e,r){var n=this.tok.type===t.tokTypes._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=r,e.right=this.parseExpression(),this.popCx(),this.expect(t.tokTypes.parenR),e.body=this.parseStatement(),this.finishNode(e,n)},c.parseVar=function(e,r,n){e.kind=n,this.next(),e.declarations=[];do{var i=this.startNode();i.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),i.init=this.eat(t.tokTypes.eq)?this.parseMaybeAssign(r):null,e.declarations.push(this.finishNode(i,"VariableDeclarator"))}while(this.eat(t.tokTypes.comma));if(!e.declarations.length){var o=this.startNode();o.id=this.dummyIdent(),e.declarations.push(this.finishNode(o,"VariableDeclarator"))}return r||this.semicolon(),this.finishNode(e,"VariableDeclaration")},c.parseClass=function(e){var r=this.startNode();this.next(),this.tok.type===t.tokTypes.name?r.id=this.parseIdent():r.id=!0===e?this.dummyIdent():null,r.superClass=this.eat(t.tokTypes._extends)?this.parseExpression():null,r.body=this.startNode(),r.body.body=[],this.pushCx();var n=this.curIndent+1,i=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=13&&this.eat(t.tokTypes.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.toks.type===t.tokTypes.star?d=!0:c="static"}if(a.static=d,!c&&r>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.toks.type!==t.tokTypes.star||this.canInsertSemicolon()?c="async":l=!0),!c){u=this.eat(t.tokTypes.star);var h=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=h:c=h)}if(c)a.computed=!1,a.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),a.key.name=c,this.finishNode(a.key,"Identifier");else if(this.parseClassElementName(a),n(a.key))return n(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma),null;if(r<13||this.toks.type===t.tokTypes.parenL||"method"!==p||u||l){var f=!a.computed&&!a.static&&!u&&!l&&"method"===p&&("Identifier"===a.key.type&&"constructor"===a.key.name||"Literal"===a.key.type&&"constructor"===a.key.value);a.kind=f?"constructor":p,a.value=this.parseMethod(u,l),this.finishNode(a,"MethodDefinition")}else{if(this.eat(t.tokTypes.eq))if(this.curLineStart!==s&&this.curIndent<=o&&this.tokenStartsLine())a.value=null;else{var m=this.inAsync,g=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,a.value=this.parseMaybeAssign(),this.inAsync=m,this.inGenerator=g}else a.value=null;this.semicolon(),this.finishNode(a,"PropertyDefinition")}return a},c.parseClassStaticBlock=function(e){var r=this.curIndent,n=this.curLineStart;for(e.body=[],this.pushCx();!this.closes(t.tokTypes.braceR,r,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(e,"StaticBlock")},c.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},c.parseClassElementName=function(e){this.toks.type===t.tokTypes.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},c.parseFunction=function(e,r,n){var i=this.inAsync,o=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(t.tokTypes.star)),this.options.ecmaVersion>=8&&(e.async=!!n),this.tok.type===t.tokTypes.name?e.id=this.parseIdent():!0===r&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=i,this.inGenerator=o,this.inFunction=s,this.finishNode(e,r?"FunctionDeclaration":"FunctionExpression")},c.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(t.tokTypes.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(t.tokTypes._default)){var r;if(this.tok.type===t.tokTypes._function||(r=this.toks.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,"nullableID",r)}else this.tok.type===t.tokTypes._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")},c.parseImport=function(){var e,r=this.startNode();return this.next(),this.tok.type===t.tokTypes.string?(r.specifiers=[],r.source=this.parseExprAtom()):(this.tok.type===t.tokTypes.name&&"from"!==this.tok.value&&((e=this.startNode()).local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(t.tokTypes.comma)),r.specifiers=this.parseImportSpecifiers(),r.source=this.eatContextual("from")&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.dummyString(),e&&r.specifiers.unshift(e)),this.semicolon(),this.finishNode(r,"ImportDeclaration")},c.parseImportSpecifiers=function(){var e=[];if(this.tok.type===t.tokTypes.star){var r=this.startNode();this.next(),r.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(r,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,o=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(t.tokTypes.braceR,i+(this.curLineStart<=s?1:0),o);){var a=this.startNode();if(this.eat(t.tokTypes.star))a.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(a,"ImportNamespaceSpecifier");else{if(this.isContextual("from"))break;if(a.imported=this.parseModuleExportName(),n(a.imported))break;a.local=this.eatContextual("as")?this.parseModuleExportName():a.imported,this.finishNode(a,"ImportSpecifier")}e.push(a),this.eat(t.tokTypes.comma)}this.eat(t.tokTypes.braceR),this.popCx()}return e},c.parseExportSpecifierList=function(){var e=[],r=this.curIndent,i=this.curLineStart,o=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>o&&(o=this.curLineStart);!this.closes(t.tokTypes.braceR,r+(this.curLineStart<=o?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),n(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),e.push(s),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),e},c.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent()};var u=o.prototype;u.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}},u.parseExpression=function(e){var r=this.storeCurrentPos(),n=this.parseMaybeAssign(e);if(this.tok.type===t.tokTypes.comma){var i=this.startNodeAt(r);for(i.expressions=[n];this.eat(t.tokTypes.comma);)i.expressions.push(this.parseMaybeAssign(e));return this.finishNode(i,"SequenceExpression")}return n},u.parseParenExpression=function(){this.pushCx(),this.expect(t.tokTypes.parenL);var e=this.parseExpression();return this.popCx(),this.expect(t.tokTypes.parenR),e},u.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var r=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==t.tokTypes.star&&!this.tok.type.startsExpr?(r.delegate=!1,r.argument=null):(r.delegate=this.eat(t.tokTypes.star),r.argument=this.parseMaybeAssign()),this.finishNode(r,"YieldExpression")}var n=this.storeCurrentPos(),i=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var o=this.startNodeAt(n);return o.operator=this.tok.value,o.left=this.tok.type===t.tokTypes.eq?this.toAssignable(i):this.checkLVal(i),this.next(),o.right=this.parseMaybeAssign(e),this.finishNode(o,"AssignmentExpression")}return i},u.parseMaybeConditional=function(e){var r=this.storeCurrentPos(),n=this.parseExprOps(e);if(this.eat(t.tokTypes.question)){var i=this.startNodeAt(r);return i.test=n,i.consequent=this.parseMaybeAssign(),i.alternate=this.expect(t.tokTypes.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(i,"ConditionalExpression")}return n},u.parseExprOps=function(e){var t=this.storeCurrentPos(),r=this.curIndent,n=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,r,n)},u.parseExprOp=function(e,r,n,i,o,s){if(this.curLineStart!==s&&this.curIndentn){var c=this.startNodeAt(r);if(c.left=e,c.operator=this.tok.value,this.next(),this.curLineStart!==s&&this.curIndent=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var i=this.startNode(),o=this.tok.type===t.tokTypes.incDec;o||(e=!0),i.operator=this.tok.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(!0),o&&(i.argument=this.checkLVal(i.argument)),r=this.finishNode(i,o?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===t.tokTypes.ellipsis){var s=this.startNode();this.next(),s.argument=this.parseMaybeUnary(e),r=this.finishNode(s,"SpreadElement")}else if(e||this.tok.type!==t.tokTypes.privateId)for(r=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(n);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(r),this.next(),r=this.finishNode(a,"UpdateExpression")}else r=this.parsePrivateIdent();if(!e&&this.eat(t.tokTypes.starstar)){var c=this.startNodeAt(n);return c.operator="**",c.left=r,c.right=this.parseMaybeUnary(!1),this.finishNode(c,"BinaryExpression")}return r},u.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)},u.parseSubscripts=function(e,r,n,i,o){for(var s=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==o&&this.curIndent<=i&&this.tokenStartsLine()){if(this.tok.type!==t.tokTypes.dot||this.curIndent!==i)break;--i}var c="Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon(),u=s&&this.eat(t.tokTypes.questionDot);if(u&&(a=!0),u&&this.tok.type!==t.tokTypes.parenL&&this.tok.type!==t.tokTypes.bracketL&&this.tok.type!==t.tokTypes.backQuote||this.eat(t.tokTypes.dot)){var l=this.startNodeAt(r);l.object=e,this.curLineStart!==o&&this.curIndent<=i&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,s&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===t.tokTypes.bracketL){this.pushCx(),this.next();var p=this.startNodeAt(r);p.object=e,p.property=this.parseExpression(),p.computed=!0,s&&(p.optional=u),this.popCx(),this.expect(t.tokTypes.bracketR),e=this.finishNode(p,"MemberExpression")}else if(n||this.tok.type!==t.tokTypes.parenL){if(this.tok.type!==t.tokTypes.backQuote)break;var d=this.startNodeAt(r);d.tag=e,d.quasi=this.parseTemplate(),e=this.finishNode(d,"TaggedTemplateExpression")}else{var h=this.parseExprList(t.tokTypes.parenR);if(c&&this.eat(t.tokTypes.arrow))return this.parseArrowExpression(this.startNodeAt(r),h,!0);var f=this.startNodeAt(r);f.callee=e,f.arguments=h,s&&(f.optional=u),e=this.finishNode(f,"CallExpression")}}if(a){var m=this.startNodeAt(r);m.expression=e,e=this.finishNode(m,"ChainExpression")}return e},u.parseExprAtom=function(){var e;switch(this.tok.type){case t.tokTypes._this:case t.tokTypes._super:var r=this.tok.type===t.tokTypes._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,r);case t.tokTypes.name:var i=this.storeCurrentPos(),o=this.parseIdent(),s=!1;if("async"===o.name&&!this.canInsertSemicolon()){if(this.eat(t.tokTypes._function))return this.toks.overrideContext(t.tokContexts.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===t.tokTypes.name&&(o=this.parseIdent(),s=!0)}return this.eat(t.tokTypes.arrow)?this.parseArrowExpression(this.startNodeAt(i),[o],s):o;case t.tokTypes.regexp:e=this.startNode();var a=this.tok.value;return e.regex={pattern:a.pattern,flags:a.flags},e.value=a.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case t.tokTypes.num:case t.tokTypes.string:return(e=this.startNode()).value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===t.tokTypes.num&&110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case t.tokTypes._null:case t.tokTypes._true:case t.tokTypes._false:return(e=this.startNode()).value=this.tok.type===t.tokTypes._null?null:this.tok.type===t.tokTypes._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case t.tokTypes.parenL:var c=this.storeCurrentPos();this.next();var u=this.parseExpression();if(this.expect(t.tokTypes.parenR),this.eat(t.tokTypes.arrow)){var l=u.expressions||[u];return l.length&&n(l[l.length-1])&&l.pop(),this.parseArrowExpression(this.startNodeAt(c),l)}if(this.options.preserveParens){var p=this.startNodeAt(c);p.expression=u,u=this.finishNode(p,"ParenthesizedExpression")}return u;case t.tokTypes.bracketL:return(e=this.startNode()).elements=this.parseExprList(t.tokTypes.bracketR,!0),this.finishNode(e,"ArrayExpression");case t.tokTypes.braceL:return this.toks.overrideContext(t.tokContexts.b_expr),this.parseObj();case t.tokTypes._class:return this.parseClass(!1);case t.tokTypes._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case t.tokTypes._new:return this.parseNew();case t.tokTypes.backQuote:return this.parseTemplate();case t.tokTypes._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},u.parseExprImport=function(){var e=this.startNode(),r=this.parseIdent(!0);switch(this.tok.type){case t.tokTypes.parenL:return this.parseDynamicImport(e);case t.tokTypes.dot:return e.meta=r,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}},u.parseDynamicImport=function(e){return e.source=this.parseExprList(t.tokTypes.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")},u.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")},u.parseNew=function(){var e=this.startNode(),r=this.curIndent,n=this.curLineStart,i=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(t.tokTypes.dot))return e.meta=i,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var o=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),o,!0,r,n),this.tok.type===t.tokTypes.parenL?e.arguments=this.parseExprList(t.tokTypes.parenR):e.arguments=[],this.finishNode(e,"NewExpression")},u.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===t.tokTypes.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,"\n"),cooked:this.tok.value},this.next(),e.tail=this.tok.type===t.tokTypes.backQuote,this.finishNode(e,"TemplateElement")},u.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var r=this.parseTemplateElement();for(e.quasis=[r];!r.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(t.tokTypes.braceR)?r=this.parseTemplateElement():((r=this.startNode()).value={cooked:"",raw:""},r.tail=!0,this.finishNode(r,"TemplateElement")),e.quasis.push(r);return this.expect(t.tokTypes.backQuote),this.finishNode(e,"TemplateLiteral")},u.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var r=this.curIndent+1,i=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=9&&this.eat(t.tokTypes.ellipsis))o.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(o,"SpreadElement")),this.eat(t.tokTypes.comma);else if(this.options.ecmaVersion>=6&&(c=this.storeCurrentPos(),o.method=!1,o.shorthand=!1,s=this.eat(t.tokTypes.star)),this.parsePropertyName(o),this.toks.isAsyncProp(o)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(t.tokTypes.star),this.parsePropertyName(o)):a=!1,n(o.key))n(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma);else{if(this.eat(t.tokTypes.colon))o.kind="init",o.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===t.tokTypes.parenL||this.tok.type===t.tokTypes.braceL))o.kind="init",o.method=!0,o.value=this.parseMethod(s,a);else if(this.options.ecmaVersion>=5&&"Identifier"===o.key.type&&!o.computed&&("get"===o.key.name||"set"===o.key.name)&&this.tok.type!==t.tokTypes.comma&&this.tok.type!==t.tokTypes.braceR&&this.tok.type!==t.tokTypes.eq)o.kind=o.key.name,this.parsePropertyName(o),o.value=this.parseMethod(!1);else{if(o.kind="init",this.options.ecmaVersion>=6)if(this.eat(t.tokTypes.eq)){var u=this.startNodeAt(c);u.operator="=",u.left=o.key,u.right=this.parseMaybeAssign(),o.value=this.finishNode(u,"AssignmentExpression")}else o.value=o.key;else o.value=this.dummyIdent();o.shorthand=!0}e.properties.push(this.finishNode(o,"Property")),this.eat(t.tokTypes.comma)}}return this.popCx(),this.eat(t.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")},u.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(t.tokTypes.bracketL))return e.computed=!0,e.key=this.parseExpression(),void this.expect(t.tokTypes.bracketR);e.computed=!1}var r=this.tok.type===t.tokTypes.num||this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent();e.key=r||this.dummyIdent()},u.parsePropertyAccessor=function(){return this.tok.type===t.tokTypes.name||this.tok.type.keyword?this.parseIdent():this.tok.type===t.tokTypes.privateId?this.parsePrivateIdent():void 0},u.parseIdent=function(){var e=this.tok.type===t.tokTypes.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();var r=this.startNode();return this.next(),r.name=e,this.finishNode(r,"Identifier")},u.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")},u.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},u.toAssignable=function(e,t){if(!e||"Identifier"===e.type||"MemberExpression"===e.type&&!t);else if("ParenthesizedExpression"===e.type)this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if("ObjectExpression"===e.type){e.type="ObjectPattern";for(var r=0,n=e.properties;r=6&&(r.generator=!!e),this.options.ecmaVersion>=8&&(r.async=!!t),this.inAsync=r.async,this.inGenerator=r.generator,this.inFunction=!0,r.params=this.parseFunctionParams(),r.body=this.parseBlock(),this.toks.adaptDirectivePrologue(r.body.body),this.inAsync=n,this.inGenerator=i,this.inFunction=o,this.finishNode(r,"FunctionExpression")},u.parseArrowExpression=function(e,r,n){var i=this.inAsync,o=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(r,!0),e.expression=this.tok.type!==t.tokTypes.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=i,this.inGenerator=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},u.parseExprList=function(e,r){this.pushCx();var i=this.curIndent,o=this.curLineStart,s=[];for(this.next();!this.closes(e,i+1,o);)if(this.eat(t.tokTypes.comma))s.push(r?null:this.dummyIdent());else{var a=this.parseMaybeAssign();if(n(a)){if(this.closes(e,i,o))break;this.next()}else s.push(a);this.eat(t.tokTypes.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),s},u.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},t.defaultOptions.tabSize=4,e.LooseParser=o,e.isDummy=n,e.parse=function(e,t){return o.parse(e,t)},Object.defineProperty(e,"__esModule",{value:!0})}(t,r(81132))},81132:function(e,t){!function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},i=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",a=new RegExp("["+o+"]"),c=new RegExp("["+o+s+"]");o=s=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var r=65536,n=0;ne)return!1;if((r+=t[n+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==t&&p(e,u)))}function h(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&(p(e,u)||p(e,l)))))}var f=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new f(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},y={startsExpr:!0},b={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,b[e]=new f(e,t)}var w={num:new f("num",y),regexp:new f("regexp",y),string:new f("string",y),name:new f("name",y),privateId:new f("privateId",y),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",g),semi:new f(";",g),colon:new f(":",g),dot:new f("."),question:new f("?",g),questionDot:new f("?."),arrow:new f("=>",g),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",g),backQuote:new f("`",y),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("/<=/>=",7),bitShift:m("<>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:m("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",y),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",y),_super:v("super",y),_class:v("class",y),_extends:v("extends",g),_export:v("export"),_import:v("import",y),_null:v("null",y),_true:v("true",y),_false:v("false",y),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(_.source,"g");function k(e){return 10===e||13===e||8232===e||8233===e}function P(e,t,r){void 0===r&&(r=e.length);for(var n=t;n=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),M(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return M(t.onComment)&&(t.onComment=function(e,t){return function(r,n,i,o,s,a){var c={type:r?"Block":"Line",value:n,start:i,end:o};e.locations&&(c.loc=new F(this,s,a)),e.ranges&&(c.range=[i,o]),t.push(c)}}(t,t.onComment)),t}var $=256;function U(e,t){return 2|(e?4:0)|(t?8:0)}var q=function(e,r,i){this.options=e=B(e),this.sourceFile=e.sourceFile,this.keywords=A(n[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var o="";!0!==e.allowReserved&&(o=t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(o+=" await")),this.reservedWords=A(o);var s=(o?o+" ":"")+t.strict;this.reservedWordsStrict=A(s),this.reservedWordsStrictBind=A(s+" "+t.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},V={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},V.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},V.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},V.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},V.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&$)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},V.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(64&t)>0||r||this.options.allowSuperOutsideMethod},V.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},V.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},V.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(258&t)>0||r},V.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&$)>0},q.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,";"===this.input[e]&&e++}},H.eat=function(e){return this.type===e&&(this.next(),!0)},H.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},H.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},H.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},H.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},H.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},H.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},H.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},H.expect=function(e){this.eat(e)||this.unexpected()},H.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},H.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},H.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(e)return!1;if(123===n)return!0;if(d(n,!0)){for(var o=r+1;h(n=this.input.charCodeAt(o),!0);)++o;if(92===n||n>55295&&n<56320)return!0;var s=this.input.slice(r,o);if(!i.test(s))return!0}return!1},z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e,t=C.exec(this.input),r=this.pos+t[0].length;return!(_.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(h(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},z.parseStatement=function(e,t,r){var n,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=w._var,n="let"),i){case w._break:case w._continue:return this.parseBreakContinueStatement(o,i.keyword);case w._debugger:return this.parseDebuggerStatement(o);case w._do:return this.parseDoStatement(o);case w._for:return this.parseForStatement(o);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(o,!0);case w._if:return this.parseIfStatement(o);case w._return:return this.parseReturnStatement(o);case w._switch:return this.parseSwitchStatement(o);case w._throw:return this.parseThrowStatement(o);case w._try:return this.parseTryStatement(o);case w._const:case w._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(o,n);case w._while:return this.parseWhileStatement(o);case w._with:return this.parseWithStatement(o);case w.braceL:return this.parseBlock(!0,o);case w.semi:return this.parseEmptyStatement(o);case w._export:case w._import:if(this.options.ecmaVersion>10&&i===w._import){C.lastIndex=this.pos;var s=C.exec(this.input),a=this.pos+s[0].length,c=this.input.charCodeAt(a);if(40===c||46===c)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===w._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,l=this.parseExpression();return i===w.name&&"Identifier"===l.type&&this.eat(w.colon)?this.parseLabeledStatement(o,u,l,e):this.parseExpressionStatement(o,l)}},z.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},z.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===w._var||this.type===w._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var o=this.isContextual("let"),s=!1,a=new G,c=this.parseExpression(!(t>-1)||"await",a);return this.type===w._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&s&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,a),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},z.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,X|(r?0:Y),!1,t)},z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},z.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},z.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(J),this.enterScope(0);for(var r=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var n=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},z.parseThrowStatement=function(e){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},z.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},z.parseLabeledStatement=function(e,t,r,n){for(var i=0,o=this.labels;i=0;a--){var c=this.labels[a];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},z.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},z.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},z.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},z.parseForIn=function(e,t){var r=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},z.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(w.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===w._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(w.comma))break}return e},z.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var X=1,Y=2;function Z(e,t){var r=t.key.name,n=e[r],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i?(e[r]="true",!1):!!n||(e[r]=i,!1)}function ee(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}z.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===w.star&&t&Y&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&X&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&Y||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(e.async,e.generator)),t&X||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},z.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},z.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(w.braceL);this.type!==w.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(o&&this.raise(s.start,"Duplicate constructor in the same class"),o=!0):s.key&&"PrivateIdentifier"===s.key.type&&Z(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},z.parseClassElement=function(e){if(this.eat(w.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,o=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===w.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==w.star||this.canInsertSemicolon()?n="async":o=!0),!n&&(t>=9||!o)&&this.eat(w.star)&&(i=!0),!n&&!o&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=c:n=c)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===w.parenL||"method"!==s||i||o){var u=!r.static&&ee(r,"constructor"),l=u&&e;u&&"method"!==s&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=u?"constructor":s,this.parseClassMethod(r,i,o,l)}else this.parseClassField(r);return r},z.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword},z.parseClassElementName=function(e){this.type===w.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},z.parseClassMethod=function(e,t,r,n){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ee(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},z.parseClassField=function(e){if(ee(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ee(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(w.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},z.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==w.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},z.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},z.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts(!1):null},z.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},z.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,i=0===n?null:this.privateNameStack[n-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|X,!1,r)}else if(this.type===w._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,s=e.specifiers;o=13&&this.type===w.string){var e=this.parseLiteral(this.value);return j.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},z.adaptDirectivePrologue=function(e){for(var t=0;t=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(ne.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===w.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[a],!0,t)}return a;case w.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(r=this.startNode()).value=this.type===w._null?null:this.type===w._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case w.parenL:var u=this.start,l=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),l;case w.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case w.braceL:return this.overrideContext(ne.b_expr),this.parseObj(!1,e);case w._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},oe.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},oe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},oe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},oe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},oe.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},oe.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,c=this.startLoc,u=[],l=!0,p=!1,d=new G,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(l?l=!1:this.expect(w.comma),o&&this.afterTrailingComma(w.parenR,!0)){p=!0;break}if(this.type===w.ellipsis){s=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(n,i,u,t);u.length&&!p||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,u.length>1?((r=this.startNodeAt(a,c)).expressions=u,this.finishNodeAt(r,"SequenceExpression",m,g)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,i);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}return r},oe.parseParenItem=function(e){return e},oe.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var ae=[];oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,o=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ae,this.finishNode(e,"NewExpression")},oe.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===w.backQuote,this.finishNode(r,"TemplateElement")},oe.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(w.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},oe.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!_.test(this.input.slice(this.lastTokEnd,this.start))},oe.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},oe.parseProperty=function(e,t){var r,n,i,o,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(this.type===w.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),s.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(r=this.eat(w.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(s,t)):n=!1,this.parsePropertyValue(s,e,r,n,i,o,t,a),this.finishNode(s,"Property")},oe.parsePropertyValue=function(e,t,r,n,i,o,s,a){if((r||n)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===w.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},oe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},oe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},oe.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(t,n.generator)|(r?128:0)),this.expect(w.parenL),n.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")},oe.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|U(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},oe.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==w.braceL,o=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!o&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},oe.isSimpleParamList=function(e){for(var t=0,r=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ue.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ue.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ue.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ue.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var pe=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new F(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},de=q.prototype;function he(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}de.startNode=function(){return new pe(this,this.start,this.startLoc)},de.startNodeAt=function(e,t){return new pe(this,e,t)},de.finishNode=function(e,t){return he.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},de.finishNodeAt=function(e,t,r,n){return he.call(this,e,t,r,n)},de.copyNode=function(e){var t=new pe(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var fe,me,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ye=ge+" Extended_Pictographic",be=ye+" EBase EComp EMod EPres ExtPict",ve={9:ge,10:ye,11:ye,12:be,13:be},we="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",_e="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Se=_e+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ke=Se+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Pe=ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xe={9:_e,10:Se,11:ke,12:Pe,13:Pe+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"},Ce={};for(var Ee=0,De=[9,10,11,12,13];Ee=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ce[e.options.ecmaVersion>=13?13:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Me(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ae(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function je(e){return e>=65&&e<=90||e>=97&&e<=122}function Re(e){return je(e)||95===e}function Fe(e){return Re(e)||Ie(e)}function Ie(e){return e>=48&&e<=57}function Le(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ne(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Be(e){return e>=48&&e<=55}Te.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Te.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Te.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},Te.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,o=r.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Te.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Te.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Te.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Te.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Oe.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n-1&&this.raise(e.start,"Duplicate regular expression flag")}},Oe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Oe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Oe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Oe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Oe.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Oe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Oe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Oe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ae(t)&&(e.lastIntValue=t,e.advance(),!0)},Oe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Ae(r);)e.advance();return e.pos!==t},Oe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Oe.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Oe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Oe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Me(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Me(e.lastIntValue);return!0}return!1},Oe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Oe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Oe.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Oe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Oe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Oe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Oe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Oe.regexp_eatZero=function(e){return 48===e.current()&&!Ie(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Oe.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Oe.regexp_eatControlLetter=function(e){var t=e.current();return!!je(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Oe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((r=e.lastIntValue)>=0&&r<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Oe.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Oe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Oe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Oe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Oe.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Oe.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Oe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Re(t=e.current());)e.lastStringValue+=Me(t),e.advance();return""!==e.lastStringValue},Oe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Fe(t=e.current());)e.lastStringValue+=Me(t),e.advance();return""!==e.lastStringValue},Oe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Oe.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Oe.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Oe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Be(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Oe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Oe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ie(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Oe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Oe.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Ie(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Oe.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Le(r=e.current());)e.lastIntValue=16*e.lastIntValue+Ne(r),e.advance();return e.pos!==t},Oe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Oe.regexp_eatOctalDigit=function(e){var t=e.current();return Be(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Oe.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n>10),56320+(1023&e)))}Ue.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new $e(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ue.getToken=function(){return this.next(),new $e(this)},"undefined"!=typeof Symbol&&(Ue[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),Ue.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ue.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ue.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Ue.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=P(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},Ue.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&x.test(String.fromCharCode(e))))break e;++this.pos}}},Ue.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Ue.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Ue.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Ue.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,r+1):this.finishOp(n,r)},Ue.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(124===e?w.logicalOR:w.logicalAND,2):61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},Ue.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Ue.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!_.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Ue.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(w.assign,r+1):this.finishOp(w.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(w.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ue.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},Ue.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(w.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(w.coalesce,2)}return this.finishOp(w.question,1)},Ue.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(w.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ve(e)+"'")},Ue.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ve(e)+"'")},Ue.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Ue.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(_.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Te(this));a.reset(r,i,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var c=null;try{c=new RegExp(i,s)}catch(e){}return this.finishToken(w.regexp,{pattern:i,flags:s,value:c})},Ue.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),o=this.pos,s=0,a=0,c=0,u=null==t?1/0:t;c=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,s=s*e+p}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:s},Ue.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=qe(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,r)},Ue.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=qe(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,s=(o=this.input.slice(t,this.pos),r?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(w.num,s)},Ue.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ue.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(k(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(w.string,t)};var He={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==He)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ue.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw He;this.raise(e,t)},Ue.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===r?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(k(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ue.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return k(t)?"":String.fromCharCode(t)}},Ue.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Ue.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos{"use strict";function r(e,t){for(var r=0;r":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},o=17;t.NEEDS_PARENTHESES=o;var s,a,c,u,l,p,d={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:o,ClassExpression:o,FunctionExpression:o,ObjectExpression:o,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function h(e,t){var r=e.generator;if(e.write("("),null!=t&&t.length>0){r[t[0].type](t[0],e);for(var n=t.length,i=1;i0){e.write(n);for(var s=1;s0){r.VariableDeclarator(n[0],e);for(var o=1;o0){t.write(n),i&&null!=e.comments&&y(t,e.comments,o,n);for(var a=s.length,c=0;c0){for(;i0&&t.write(", ");var o=r[i],s=o.type[6];if("D"===s)t.write(o.local.name,o),i++;else{if("N"!==s)break;t.write("* as "+o.local.name,o),i++}}if(i0)for(var i=0;;){var o=r[i],s=o.local.name;if(t.write(s,o),s!==o.exported.name&&t.write(" as "+o.exported.name),!(++i "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression:function(e,t){t.write("this",e)},Super:function(e,t){t.write("super",e)},RestElement:c=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:c,YieldExpression:function(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression:function(e,t){t.write("await ",e),m(t,e.argument,e)},TemplateLiteral:function(e,t){var r=e.quasis,n=e.expressions;t.write("`");for(var i=n.length,o=0;o0)for(var r=e.elements,n=r.length,i=0;;){var o=r[i];if(null!=o&&this[o.type](o,t),!(++i0){t.write(n),i&&null!=e.comments&&y(t,e.comments,o,n);for(var s=","+n,a=e.properties,c=a.length,u=0;;){var l=a[u];if(i&&null!=l.comments&&y(t,l.comments,o,n),t.write(o),this[l.type](l,t),!(++u0)for(var r=e.properties,n=r.length,i=0;this[r[i].type](r[i],t),++i1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!n.prefix||n.operator[0]!==r||"+"!==r&&"-"!==r)||t.write(" "),o?(t.write(r.length>1?" (":"("),this[i](n,t),t.write(")")):this[i](n,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression:function(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression:function(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern:function(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:u=function(e,t){var r="in"===e.operator;r&&t.write("("),m(t,e.left,e,!1),t.write(" "+e.operator+" "),m(t,e.right,e,!0),r&&t.write(")")},LogicalExpression:u,ConditionalExpression:function(e,t){var r=e.test,n=t.expressionsPrecedence[r.type];n===o||n<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[r.type](r,t),t.write(")")):this[r.type](r,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression:function(e,t){t.write("new ");var r=t.expressionsPrecedence[e.callee.type];r===o||r0&&(this.lineEndSize>0&&(1===u.length?e[c-1]===u:e.endsWith(u))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}},{key:"toString",value:function(){return this.output}}])&&r(t.prototype,n),e}()},11240:(e,t,r)=>{e.exports=r(81310)},75956:(e,t,r)=>{"use strict";var n=r(73114),i=r(6969),o=r(63866),s=r(82485),a=r(13685),c=r(95687),u=r(86874).http,l=r(86874).https,p=r(57310),d=r(59796),h=r(49739).version,f=r(37407),m=r(9119),g=r(72772),y=r(8773),b=/https:?/;function v(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,v(e,t,e.href)}}e.exports=function(e){return new Promise((function(t,r){var w;function _(){e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w)}var S=function(e){_(),t(e)},k=!1,P=function(e){_(),k=!0,r(e)},x=e.data,C=e.headers,E={};if(Object.keys(C).forEach((function(e){E[e.toLowerCase()]=e})),"user-agent"in E?C[E["user-agent"]]||delete C[E["user-agent"]]:C["User-Agent"]="axios/"+h,x&&!n.isStream(x)){if(Buffer.isBuffer(x));else if(n.isArrayBuffer(x))x=Buffer.from(new Uint8Array(x));else{if(!n.isString(x))return P(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));x=Buffer.from(x,"utf-8")}if(e.maxBodyLength>-1&&x.length>e.maxBodyLength)return P(f("Request body larger than maxBodyLength limit",e));E["content-length"]||(C["Content-Length"]=x.length)}var D=void 0;e.auth&&(D=(e.auth.username||"")+":"+(e.auth.password||""));var O=o(e.baseURL,e.url),T=p.parse(O),M=T.protocol||"http:";if(!D&&T.auth){var A=T.auth.split(":");D=(A[0]||"")+":"+(A[1]||"")}D&&E.authorization&&delete C[E.authorization];var j=b.test(M),R=j?e.httpsAgent:e.httpAgent;try{s(T.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var F=new Error(t.message);F.config=e,F.url=e.url,F.exists=!0,P(F)}var I={path:s(T.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:C,agent:R,agents:{http:e.httpAgent,https:e.httpsAgent},auth:D};e.socketPath?I.socketPath=e.socketPath:(I.hostname=T.hostname,I.port=T.port);var L,N=e.proxy;if(!N&&!1!==N){var B=M.slice(0,-1)+"_proxy",$=process.env[B]||process.env[B.toUpperCase()];if($){var U=p.parse($),q=process.env.no_proxy||process.env.NO_PROXY,V=!0;if(q&&(V=!q.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&T.hostname.substr(T.hostname.length-e.length)===e||T.hostname===e)}))),V&&(N={host:U.hostname,port:U.port,protocol:U.protocol},U.auth)){var H=U.auth.split(":");N.auth={username:H[0],password:H[1]}}}}N&&(I.headers.host=T.hostname+(T.port?":"+T.port:""),v(I,N,M+"//"+T.hostname+(T.port?":"+T.port:"")+I.path));var W=j&&(!N||b.test(N.protocol));e.transport?L=e.transport:0===e.maxRedirects?L=W?c:a:(e.maxRedirects&&(I.maxRedirects=e.maxRedirects),L=W?l:u),e.maxBodyLength>-1&&(I.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(I.insecureHTTPParser=e.insecureHTTPParser);var G=L.request(I,(function(t){if(!G.aborted){var r=t,o=t.req||G;if(204!==t.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if("stream"===e.responseType)s.data=r,i(S,P,s);else{var a=[],c=0;r.on("data",(function(t){a.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(k=!0,r.destroy(),P(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),r.on("aborted",(function(){k||(r.destroy(),P(f("error request aborted",e,"ERR_REQUEST_ABORTED",o)))})),r.on("error",(function(t){G.aborted||P(m(t,e,null,o))})),r.on("end",(function(){try{var t=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=n.stripBOM(t))),s.data=t}catch(t){P(m(t,e,t.code,s.request,s))}i(S,P,s)}))}}}));if(G.on("error",(function(t){G.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||P(m(t,e,null,G))})),G.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var z=parseInt(e.timeout,10);if(isNaN(z))return void P(f("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",G));G.setTimeout(z,(function(){G.abort();var t;t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||g;P(f(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",G))}))}(e.cancelToken||e.signal)&&(w=function(e){G.aborted||(G.abort(),P(!e||e&&e.type?new y("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),n.isStream(x)?x.on("error",(function(t){P(m(t,e,null,G))})).pipe(G):G.end(x)}))}},99888:(e,t,r)=>{"use strict";var n=r(73114),i=r(6969),o=r(29355),s=r(82485),a=r(63866),c=r(19235),u=r(16330),l=r(37407),p=r(72772),d=r(8773);e.exports=function(e){return new Promise((function(t,r){var h,f=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(f)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(v+":"+w)}var _=a(e.baseURL,e.url);function S(){if(b){var n="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};i((function(e){t(e),y()}),(function(e){r(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),s(_,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(r(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||p;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&n.forEach(m,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(r(!e||e&&e.type?new d("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),b.send(f)}))}},81310:(e,t,r)=>{"use strict";var n=r(73114),i=r(16395),o=r(92507),s=r(74338),a=function e(t){var r=new o(t),a=i(o.prototype.request,r);return n.extend(a,o.prototype,r),n.extend(a,r),a.create=function(r){return e(s(t,r))},a}(r(2325));a.Axios=o,a.Cancel=r(8773),a.CancelToken=r(12676),a.isCancel=r(65934),a.VERSION=r(49739).version,a.all=function(e){return Promise.all(e)},a.spread=r(99682),a.isAxiosError=r(86711),e.exports=a,e.exports.default=a},8773:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},12676:(e,t,r)=>{"use strict";var n=r(8773);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},92507:(e,t,r)=>{"use strict";var n=r(73114),i=r(82485),o=r(17263),s=r(96348),a=r(74338),c=r(86933),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var p=[s,void 0];for(Array.prototype.unshift.apply(p,n),p=p.concat(l),o=Promise.resolve(t);p.length;)o=o.then(p.shift(),p.shift());return o}for(var d=t;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(e){f(e);break}}try{o=s(d)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=l},17263:(e,t,r)=>{"use strict";var n=r(73114);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},63866:(e,t,r)=>{"use strict";var n=r(83103),i=r(26426);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},37407:(e,t,r)=>{"use strict";var n=r(9119);e.exports=function(e,t,r,i,o){var s=new Error(e);return n(s,t,r,i,o)}},96348:(e,t,r)=>{"use strict";var n=r(73114),i=r(33757),o=r(65934),s=r(2325),a=r(8773);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9119:e=>{"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},74338:(e,t,r)=>{"use strict";var n=r(73114);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function c(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,i=t(e);n.isUndefined(i)&&t!==c||(r[e]=i)})),r}},6969:(e,t,r)=>{"use strict";var n=r(37407);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},33757:(e,t,r)=>{"use strict";var n=r(73114),i=r(2325);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},2325:(e,t,r)=>{"use strict";var n=r(73114),i=r(16950),o=r(9119),s=r(72772),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,l={transitional:s,adapter:("undefined"!=typeof XMLHttpRequest?u=r(99888):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=r(75956)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||i&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(a)})),e.exports=l},72772:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},49739:e=>{e.exports={version:"0.26.1"}},16395:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n{"use strict";var n=r(73114);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},26426:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},29355:(e,t,r)=>{"use strict";var n=r(73114);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},83103:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},86711:(e,t,r)=>{"use strict";var n=r(73114);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},16330:(e,t,r)=>{"use strict";var n=r(73114);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16950:(e,t,r)=>{"use strict";var n=r(73114);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},19235:(e,t,r)=>{"use strict";var n=r(73114),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},99682:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},86933:(e,t,r)=>{"use strict";var n=r(49739).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],c=void 0===a||s(a,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},73114:(e,t,r)=>{"use strict";var n=r(16395),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function p(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,s,a,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],o=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?c:u;n.length&&(a=[o,s])}return a}e.exports=t,t.range=n},26017:(e,t,r)=>{var n;e=r.nmd(e);var i=function(e){"use strict";var t=1e7,r=9007199254740992,n=d(r),o="0123456789abcdefghijklmnopqrstuvwxyz",s="function"==typeof BigInt;function a(e,t,r,n){return void 0===e?a[0]:void 0===t||10==+t&&!r?J(e):H(e,t,r,n)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}function u(e){this.value=e,this.sign=e<0,this.isSmall=!0}function l(e){this.value=e}function p(e){return-r0?Math.floor(e):Math.ceil(e)}function y(e,r){var n,i,o=e.length,s=r.length,a=new Array(o),c=0,u=t;for(i=0;i=u?1:0,a[i]=n-c*u;for(;i0&&a.push(c),a}function b(e,t){return e.length>=t.length?y(e,t):y(t,e)}function v(e,r){var n,i,o=e.length,s=new Array(o),a=t;for(i=0;i0;)s[i++]=r%a,r=Math.floor(r/a);return s}function w(e,r){var n,i,o=e.length,s=r.length,a=new Array(o),c=0,u=t;for(n=0;n0;)s[i++]=c%a,c=Math.floor(c/a);return s}function P(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function x(e,t){var r=Math.max(e.length,t.length);if(r<=30)return S(e,t);r=Math.ceil(r/2);var n=e.slice(r),i=e.slice(0,r),o=t.slice(r),s=t.slice(0,r),a=x(i,s),c=x(n,o),u=x(b(i,n),b(s,o)),l=b(b(a,P(w(w(u,a),c),r)),P(c,2*r));return f(l),l}function C(e,r,n){return new c(e=0;--r)i=(o=1e7*i+e[r])-(n=g(o/t))*t,a[r]=0|n;return[a,0|i]}function O(e,r){var n,i=J(r);if(s)return[new l(e.value/i.value),new l(e.value%i.value)];var o,p=e.value,y=i.value;if(0===y)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new u(g(p/y)),new u(p%y)]:[a[0],e];if(i.isSmall){if(1===y)return[e,a[0]];if(-1==y)return[e.negate(),a[0]];var b=Math.abs(y);if(b=0;i--){for(n=d-1,b[i+p]!==g&&(n=Math.floor((b[i+p]*d+b[i+p-1])/g)),o=0,s=0,c=v.length,a=0;au&&(o=(o+1)*d),n=Math.ceil(o/s);do{if(T(a=k(r,n),p)<=0)break;n--}while(n);l.push(n),p=w(p,a)}return l.reverse(),[h(l),h(p)]}(p,y),o=n[0];var S=e.sign!==i.sign,P=n[1],x=e.sign;return"number"==typeof o?(S&&(o=-o),o=new u(o)):o=new c(o,S),"number"==typeof P?(x&&(P=-P),P=new u(P)):P=new c(P,x),[o,P]}function T(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function M(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function A(e,t){for(var r,n,o,s=e.prev(),a=s,c=0;a.isEven();)a=a.divide(2),c++;e:for(n=0;n=0?n=w(e,t):(n=w(t,e),r=!r),"number"==typeof(n=h(n))?(r&&(n=-n),new u(n)):new c(n,r)}(r,n,this.sign)},c.prototype.minus=c.prototype.subtract,u.prototype.subtract=function(e){var t=J(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new u(r-n):_(n,Math.abs(r),r>=0)},u.prototype.minus=u.prototype.subtract,l.prototype.subtract=function(e){return new l(this.value-J(e).value)},l.prototype.minus=l.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},u.prototype.negate=function(){var e=this.sign,t=new u(-this.value);return t.sign=!e,t},l.prototype.negate=function(){return new l(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},u.prototype.abs=function(){return new u(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},c.prototype.multiply=function(e){var r,n,i,o=J(e),s=this.value,u=o.value,l=this.sign!==o.sign;if(o.isSmall){if(0===u)return a[0];if(1===u)return this;if(-1===u)return this.negate();if((r=Math.abs(u))0?x(s,u):S(s,u),l)},c.prototype.times=c.prototype.multiply,u.prototype._multiplyBySmall=function(e){return p(e.value*this.value)?new u(e.value*this.value):C(Math.abs(e.value),d(Math.abs(this.value)),this.sign!==e.sign)},c.prototype._multiplyBySmall=function(e){return 0===e.value?a[0]:1===e.value?this:-1===e.value?this.negate():C(Math.abs(e.value),this.value,this.sign!==e.sign)},u.prototype.multiply=function(e){return J(e)._multiplyBySmall(this)},u.prototype.times=u.prototype.multiply,l.prototype.multiply=function(e){return new l(this.value*J(e).value)},l.prototype.times=l.prototype.multiply,c.prototype.square=function(){return new c(E(this.value),!1)},u.prototype.square=function(){var e=this.value*this.value;return p(e)?new u(e):new c(E(d(Math.abs(this.value))),!1)},l.prototype.square=function(e){return new l(this.value*this.value)},c.prototype.divmod=function(e){var t=O(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=u.prototype.divmod=c.prototype.divmod,c.prototype.divide=function(e){return O(this,e)[0]},l.prototype.over=l.prototype.divide=function(e){return new l(this.value/J(e).value)},u.prototype.over=u.prototype.divide=c.prototype.over=c.prototype.divide,c.prototype.mod=function(e){return O(this,e)[1]},l.prototype.mod=l.prototype.remainder=function(e){return new l(this.value%J(e).value)},u.prototype.remainder=u.prototype.mod=c.prototype.remainder=c.prototype.mod,c.prototype.pow=function(e){var t,r,n,i=J(e),o=this.value,s=i.value;if(0===s)return a[1];if(0===o)return a[0];if(1===o)return a[1];if(-1===o)return i.isEven()?a[1]:a[-1];if(i.sign)return a[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&p(t=Math.pow(o,s)))return new u(g(t));for(r=this,n=a[1];!0&s&&(n=n.times(r),--s),0!==s;)s/=2,r=r.square();return n},u.prototype.pow=c.prototype.pow,l.prototype.pow=function(e){var t=J(e),r=this.value,n=t.value,i=BigInt(0),o=BigInt(1),s=BigInt(2);if(n===i)return a[1];if(r===i)return a[0];if(r===o)return a[1];if(r===BigInt(-1))return t.isEven()?a[1]:a[-1];if(t.isNegative())return new l(i);for(var c=this,u=a[1];(n&o)===o&&(u=u.times(c),--n),n!==i;)n/=s,c=c.square();return u},c.prototype.modPow=function(e,t){if(e=J(e),(t=J(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=a[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(a[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return a[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},l.prototype.modPow=u.prototype.modPow=c.prototype.modPow,c.prototype.compareAbs=function(e){var t=J(e),r=this.value,n=t.value;return t.isSmall?1:T(r,n)},u.prototype.compareAbs=function(e){var t=J(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},l.prototype.compareAbs=function(e){var t=this.value,r=J(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=J(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:T(r,n)*(this.sign?-1:1)},c.prototype.compareTo=c.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=J(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},u.prototype.compareTo=u.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,r=J(e).value;return t===r?0:t>r?1:-1},l.prototype.compareTo=l.prototype.compare,c.prototype.equals=function(e){return 0===this.compare(e)},l.prototype.eq=l.prototype.equals=u.prototype.eq=u.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return 0!==this.compare(e)},l.prototype.neq=l.prototype.notEquals=u.prototype.neq=u.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},l.prototype.gt=l.prototype.greater=u.prototype.gt=u.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},l.prototype.lt=l.prototype.lesser=u.prototype.lt=u.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},l.prototype.geq=l.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},l.prototype.leq=l.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return 0==(1&this.value[0])},u.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return 1==(1&this.value[0])},u.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},u.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=u.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},u.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=u.prototype.isNegative,c.prototype.isUnit=function(){return!1},u.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},u.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=J(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},l.prototype.isDivisibleBy=u.prototype.isDivisibleBy=c.prototype.isDivisibleBy,c.prototype.isPrime=function(t){var r=M(this);if(r!==e)return r;var n=this.abs(),o=n.bitLength();if(o<=64)return A(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var s=Math.log(2)*o.toJSNumber(),a=Math.ceil(!0===t?2*Math.pow(s,2):s),c=[],u=0;u-r?new u(e-1):new c(n,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var j=[1];2*j[j.length-1]<=t;)j.push(2*j[j.length-1]);var R=j.length,F=j[R-1];function I(e){return Math.abs(e)<=t}function L(e,t,r){t=J(t);for(var n=e.isNegative(),o=t.isNegative(),s=n?e.not():e,a=o?t.not():t,c=0,u=0,l=null,p=null,d=[];!s.isZero()||!a.isZero();)c=(l=O(s,F))[1].toJSNumber(),n&&(c=F-1-c),u=(p=O(a,F))[1].toJSNumber(),o&&(u=F-1-u),s=l[0],a=p[0],d.push(r(c,u));for(var h=0!==r(n?1:0,o?1:0)?i(-1):i(0),f=d.length-1;f>=0;f-=1)h=h.multiply(F).add(i(d[f]));return h}c.prototype.shiftLeft=function(e){var t=J(e).toJSNumber();if(!I(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=R;)r=r.multiply(F),t-=R-1;return r.multiply(j[t])},l.prototype.shiftLeft=u.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,r=J(e).toJSNumber();if(!I(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=R;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=O(n,F))[1].isNegative()?t[0].prev():t[0],r-=R-1}return(t=O(n,j[r]))[1].isNegative()?t[0].prev():t[0]},l.prototype.shiftRight=u.prototype.shiftRight=c.prototype.shiftRight,c.prototype.not=function(){return this.negate().prev()},l.prototype.not=u.prototype.not=c.prototype.not,c.prototype.and=function(e){return L(this,e,(function(e,t){return e&t}))},l.prototype.and=u.prototype.and=c.prototype.and,c.prototype.or=function(e){return L(this,e,(function(e,t){return e|t}))},l.prototype.or=u.prototype.or=c.prototype.or,c.prototype.xor=function(e){return L(this,e,(function(e,t){return e^t}))},l.prototype.xor=u.prototype.xor=c.prototype.xor;var N=1<<30;function B(e){var r=e.value,n="number"==typeof r?r|N:"bigint"==typeof r?r|BigInt(N):r[0]+r[1]*t|1073758208;return n&-n}function $(e,t){if(t.compareTo(e)<=0){var r=$(e,t.square(t)),n=r.p,o=r.e,s=n.multiply(t);return s.compareTo(e)<=0?{p:s,e:2*o+1}:{p:n,e:2*o}}return{p:i(1),e:0}}function U(e,t){return e=J(e),t=J(t),e.greater(t)?e:t}function q(e,t){return e=J(e),t=J(t),e.lesser(t)?e:t}function V(e,t){if(e=J(e).abs(),t=J(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,i=a[1];e.isEven()&&t.isEven();)r=q(B(e),B(t)),e=e.divide(r),t=t.divide(r),i=i.multiply(r);for(;e.isEven();)e=e.divide(B(e));do{for(;t.isEven();)t=t.divide(B(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}c.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i($(e,i(2)).e).add(i(1))},l.prototype.bitLength=u.prototype.bitLength=c.prototype.bitLength;var H=function(e,t,r,n){r=r||o,e=String(e),n||(e=e.toLowerCase(),r=r.toLowerCase());var i,s=e.length,a=Math.abs(t),c={};for(i=0;i=a){if("1"===p&&1===a)continue;throw new Error(p+" is not a valid digit in base "+t+".")}t=J(t);var u=[],l="-"===e[0];for(i=l?1:0;i"!==e[i]&&i=0;n--)i=i.add(e[n].times(o)),o=o.times(t);return r?i.negate():i}function G(e,t){if((t=i(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var o,s=[],a=e;a.isNegative()||a.compareAbs(t)>=0;){o=a.divmod(t),a=o.quotient;var c=o.remainder;c.isNegative()&&(c=t.minus(c).abs(),a=a.next()),s.push(c.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:n}}function z(e,t,r){var n=G(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return function(e,t){return e<(t=t||o).length?t[e]:"<"+e+">"}(e,r)})).join("")}function K(e){if(p(+e)){var t=+e;if(t===g(t))return s?new l(BigInt(t)):new u(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var i=n[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==g(i)||!p(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var o=n[0],a=o.indexOf(".");if(a>=0&&(i-=o.length-a-1,o=o.slice(0,a)+o.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");e=o+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(s)return new l(BigInt(r?"-"+e:e));for(var d=[],h=e.length,m=h-7;h>0;)d.push(+e.slice(m,h)),(m-=7)<0&&(m=0),h-=7;return f(d),new c(d,r)}function J(e){return"number"==typeof e?function(e){if(s)return new l(BigInt(e));if(p(e)){if(e!==g(e))throw new Error(e+" is not an integer.");return new u(e)}return K(e.toString())}(e):"string"==typeof e?K(e):"bigint"==typeof e?new l(e):e}c.prototype.toArray=function(e){return G(this,e)},u.prototype.toArray=function(e){return G(this,e)},l.prototype.toArray=function(e){return G(this,e)},c.prototype.toString=function(t,r){if(t===e&&(t=10),10!==t)return z(this,t,r);for(var n,i=this.value,o=i.length,s=String(i[--o]);--o>=0;)n=String(i[o]),s+="0000000".slice(n.length)+n;return(this.sign?"-":"")+s},u.prototype.toString=function(t,r){return t===e&&(t=10),10!=t?z(this,t,r):String(this.value)},l.prototype.toString=u.prototype.toString,l.prototype.toJSON=c.prototype.toJSON=u.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,u.prototype.valueOf=function(){return this.value},u.prototype.toJSNumber=u.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var Q=0;Q<1e3;Q++)a[Q]=J(Q),Q>0&&(a[-Q]=J(-Q));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=U,a.min=q,a.gcd=V,a.lcm=function(e,t){return e=J(e).abs(),t=J(t).abs(),e.divide(V(e,t)).multiply(t)},a.isInstance=function(e){return e instanceof c||e instanceof u||e instanceof l},a.randBetween=function(e,r,n){e=J(e),r=J(r);var i=n||Math.random,o=q(e,r),s=U(e,r).subtract(o).add(1);if(s.isSmall)return o.add(Math.floor(i()*s));for(var c=G(s,t).value,u=[],l=!0,p=0;p{"use strict";var n=r(57147),i=r(26017);t.maxObjectSize=1e8,t.maxObjectCount=32768;var o=t.UID=function(e){this.UID=e},s=(t.parseFile=function(e,t){function r(e){var r,n=null;try{r=s(e)}catch(e){n=e}t(n,r)}if(Buffer.isBuffer(e))return r(e);n.readFile(e,(function(e,n){if(e)return t(e);r(n)}))},t.parseBuffer=function(e){if("bplist"!==e.slice(0,"bplist".length).toString("utf8"))throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.");var r=e.slice(e.length-32,e.length),n=r.readUInt8(6),s=r.readUInt8(7),u=c(r,8),l=c(r,16),p=c(r,24);if(u>t.maxObjectCount)throw new Error("maxObjectCount exceeded");for(var d=[],h=0;h>4,p=15&u;switch(l){case 0:return function(){switch(p){case 0:case 15:return null;case 8:return!1;case 9:return!0;default:throw new Error("Unhandled simple type 0x"+l.toString(16))}}();case 1:return function(){var r=Math.pow(2,p);if(r>4){var n=function(e){var t,r="";for(t=0;tt.maxObjectSize)throw new Error("To little heap space available!");for(var h=[],f=0;ft.maxObjectSize)throw new Error("To little heap space available!");for(var h={},f=0;f{var n=r(21897),i=r(57055);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}(e),!0).map(p)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function d(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var n=r.pre,o=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function h(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function g(e,t){return e>=t}function y(e,t){var r=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),p=c||u,b=o.body.indexOf(",")>=0;if(!p&&!b)return o.post.match(/,.*\}/)?y(e=o.pre+"{"+o.body+a+o.post):[e];if(p)s=o.body.split(/\.\./);else if(1===(s=d(o.body)).length&&1===(s=y(s[0],!1).map(h)).length)return(_=o.post.length?y(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var v,w=o.pre,_=o.post.length?y(o.post,!1):[""];if(p){var S=l(s[0]),k=l(s[1]),P=Math.max(s[0].length,s[1].length),x=3==s.length?Math.abs(l(s[2])):1,C=m;k0){var M=new Array(T+1).join("0");O=D<0?"-"+M+O.slice(1):M+O}}v.push(O)}}else v=n(s,(function(e){return y(e,!1)}));for(var A=0;A{"use strict";const n=r(41138);e.exports=e=>n(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)},31930:(e,t,r)=>{"use strict";const{V4MAPPED:n,ADDRCONFIG:i,ALL:o,promises:{Resolver:s},lookup:a}=r(9523),{promisify:c}=r(73837),u=r(22037),l=Symbol("cacheableLookupCreateConnection"),p=Symbol("cacheableLookupInstance"),d=Symbol("expires"),h="number"==typeof o,f=e=>{if(!e||"function"!=typeof e.createConnection)throw new Error("Expected an Agent instance as the first argument")},m=()=>{let e=!1,t=!1;for(const r of Object.values(u.networkInterfaces()))for(const n of r)if(!n.internal&&("IPv6"===n.family?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},g={ttl:!0},y={all:!0};class b{constructor({cache:e=new Map,maxTtl:t=1/0,fallbackDuration:r=3600,errorTtl:n=.15,resolver:i=new s,lookup:o=a}={}){if(this.maxTtl=t,this.errorTtl=n,this._cache=e,this._resolver=i,this._dnsLookup=c(o),this._resolver instanceof s?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=c(this._resolver.resolve4.bind(this._resolver)),this._resolve6=c(this._resolver.resolve6.bind(this._resolver))),this._iface=m(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,r<1)this._fallback=!1;else{this._fallback=!0;const e=setInterval((()=>{this._hostnamesToFallback.clear()}),1e3*r);e.unref&&e.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if("function"==typeof t?(r=t,t={}):"number"==typeof t&&(t={family:t}),!r)throw new Error("Callback must be a function.");this.lookupAsync(e,t).then((e=>{t.all?r(null,e):r(null,e.address,e.family,e.expires,e.ttl)}),r)}async lookupAsync(e,t={}){"number"==typeof t&&(t={family:t});let r=await this.query(e);if(6===t.family){const e=r.filter((e=>6===e.family));t.hints&n&&(h&&t.hints&o||0===e.length)?(e=>{for(const t of e)6!==t.family&&(t.address=`::ffff:${t.address}`,t.family=6)})(r):r=e}else 4===t.family&&(r=r.filter((e=>4===e.family)));if(t.hints&i){const{_iface:e}=this;r=r.filter((t=>6===t.family?e.has6:e.has4))}if(0===r.length){const t=new Error(`cacheableLookup ENOTFOUND ${e}`);throw t.code="ENOTFOUND",t.hostname=e,t}return t.all?r:r[0]}async query(e){let t=await this._cache.get(e);if(!t){const r=this._pending[e];if(r)t=await r;else{const r=this.queryAndCache(e);this._pending[e]=r;try{t=await r}finally{delete this._pending[e]}}}return t=t.map((e=>({...e}))),t}async _resolve(e){const[t,r]=await Promise.all([this._resolve4(e,g),this._resolve6(e,g)].map((e=>(async e=>{try{return await e}catch(e){if("ENODATA"===e.code||"ENOTFOUND"===e.code)return[];throw e}})(e))));let n=0,i=0,o=0;const s=Date.now();for(const e of t)e.family=4,e.expires=s+1e3*e.ttl,n=Math.max(n,e.ttl);for(const e of r)e.family=6,e.expires=s+1e3*e.ttl,i=Math.max(i,e.ttl);return o=t.length>0?r.length>0?Math.min(n,i):n:i,{entries:[...t,...r],cacheTtl:o}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch(e){return{entries:[],cacheTtl:0}}}async _set(e,t,r){if(this.maxTtl>0&&r>0){r=1e3*Math.min(r,this.maxTtl),t[d]=Date.now()+r;try{await this._cache.set(e,t,r)}catch(e){this.lookupAsync=async()=>{const t=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw t.cause=e,t}}n=this._cache,Symbol.iterator in n&&this._tick(r)}var n}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,y);let t=await this._resolve(e);0===t.entries.length&&this._fallback&&(t=await this._lookup(e),0!==t.entries.length&&this._hostnamesToFallback.add(e));const r=0===t.entries.length?this.errorTtl:t.cacheTtl;return await this._set(e,t.entries,r),t.entries}_tick(e){const t=this._nextRemovalTime;(!t||e{this._nextRemovalTime=!1;let e=1/0;const t=Date.now();for(const[r,n]of this._cache){const i=n[d];t>=i?this._cache.delete(r):i("lookup"in t||(t.lookup=this.lookup),e[l](t,r))}uninstall(e){if(f(e),e[l]){if(e[p]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[l],delete e[l],delete e[p]}}updateInterfaceInfo(){const{_iface:e}=this;this._iface=m(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){e?this._cache.delete(e):this._cache.clear()}}e.exports=b,e.exports.default=b},25443:(e,t,r)=>{"use strict";const{PassThrough:n}=r(12781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let o=!1;t?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new n({objectMode:o});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),o?a=c.length:a+=e.length})),s.getBufferedValue=()=>t?c:i?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}},45:(e,t,r)=>{"use strict";const{constants:n}=r(14300),i=r(88554),o=r(25443);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function a(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:r}=t;let a;return await new Promise(((c,u)=>{const l=e=>{e&&a.getBufferedLength()<=n.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),u(e)};a=i(e,o(t),(e=>{e?l(e):c()})),a.on("data",(()=>{a.getBufferedLength()>r&&l(new s)}))})),a.getBufferedValue()}e.exports=a,e.exports.default=a,e.exports.buffer=(e,t)=>a(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>a(e,{...t,array:!0}),e.exports.MaxBufferError=s},88554:(e,t,r)=>{var n=r(58034),i=r(18696),o=r(57147),s=function(){},a=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},u=function(e,t,r,u){u=n(u);var l=!1;e.on("close",(function(){l=!0})),i(e,{readable:t,writable:r},(function(e){if(e)return u(e);l=!0,u()}));var p=!1;return function(t){if(!l&&!p)return p=!0,function(e){return!!a&&!!o&&(e instanceof(o.ReadStream||s)||e instanceof(o.WriteStream||s))&&c(e.close)}(e)?e.close(s):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void u(t||new Error("stream was destroyed"))}},l=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||s)&&t.pop()||s;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n=t.map((function(i,o){var s=o0,(function(t){e||(e=t),t&&n.forEach(l),s||(n.forEach(l),r(e))}))}));return t.reduce(p)}},50002:(e,t,r)=>{"use strict";const n=r(82361),i=r(57310),o=r(48050),s=r(45),a=r(83283),c=r(22920),u=r(13177),l=r(5700),p=r(77694);class d{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new p({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let p;if("string"==typeof t)p=f(i.parse(t)),t={};else if(t instanceof i.URL)p=f(i.parse(t.toString())),t={};else{const[e,...r]=(t.path||"").split("?"),n=r.length>0?`?${r.join("?")}`:"";p=f({...t,pathname:e,search:n})}(t={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...t,...h(p)}).headers=u(t.headers);const m=new n,g=o(i.format(p),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),y=`${t.method}:${g}`;let b=!1,v=!1;const w=t=>{v=!0;let n,i=!1;const o=new Promise((e=>{n=()=>{i||(i=!0,e())}})),u=e=>{if(b&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(b.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new c(b.statusCode,t,b.body,b.url)).cachePolicy=r.policy,e.fromCache=!0}}let n;e.fromCache||(e.cachePolicy=new a(t,e,t),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(n=l(e),(async()=>{try{const r=s.buffer(e);if(await Promise.race([o,new Promise((t=>e.once("end",t)))]),i)return;const n=await r,a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?b.statusCode:e.statusCode,body:n};let c=t.strictTtl?e.cachePolicy.timeToLive():void 0;t.maxTtl&&(c=c?Math.min(c,t.maxTtl):t.maxTtl),await this.cache.set(y,a,c)}catch(e){m.emit("error",new d.CacheError(e))}})()):t.cache&&b&&(async()=>{try{await this.cache.delete(y)}catch(e){m.emit("error",new d.CacheError(e))}})(),m.emit("response",n||e),"function"==typeof r&&r(n||e)};try{const r=e(t,u);r.once("error",n),r.once("abort",n),m.emit("request",r)}catch(e){m.emit("error",new d.RequestError(e))}};return(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):void 0;if(void 0===t)return w(e);const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders(),i=new c(t.statusCode,e,t.body,t.url);i.cachePolicy=n,i.fromCache=!0,m.emit("response",i),"function"==typeof r&&r(i)}else b=t,e.headers=n.revalidationHeaders(e),w(e)},n=e=>m.emit("error",new d.CacheError(e));this.cache.once("error",n),m.on("response",(()=>this.cache.removeListener("error",n)));try{await e(t)}catch(e){t.automaticFailover&&!v&&w(t),m.emit("error",new d.CacheError(e))}})(),m}}}function h(e){const t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function f(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}d.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},d.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},e.exports=d},5700:(e,t,r)=>{"use strict";const n=r(12781).PassThrough,i=r(53373);e.exports=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new n;return i(e,t),e.pipe(t)}},28904:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},97774:(e,t,r)=>{var n=r(28904),i=r(43360),o=Object.hasOwnProperty,s={};for(var a in n)o.call(n,a)&&(s[n[a]]=a);var c=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}c.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=c.get.hsl(e),r="hsl";break;case"hwb":t=c.get.hwb(e),r="hwb";break;default:t=c.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,r,i,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],r=0;r<3;r++){var a=2*r;s[r]=parseInt(t.slice(a,a+2),16)}i&&(s[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],r=0;r<3;r++)s[r]=parseInt(t[r]+t[r],16);i&&(s[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=parseInt(t[r+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((s=n[t[1]])[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(r=0;r<3;r++)s[r]=u(s[r],0,255);return s[3]=u(s[3],0,1),s},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.to.hex=function(){var e=i(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},c.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},c.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},c.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},c.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return s[e.slice(0,3)]}},32438:(e,t,r)=>{const n=r(97774),i=r(32830),o=[].slice,s=["keyword","gray","hex"],a={};for(const e of Object.keys(i))a[o.call(i[e].labels).sort().join("")]=e;const c={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in s&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let r,l;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,l=i[this.model].channels,this.color=t.value.slice(0,l),this.valpha="number"==typeof t.value[l]?t.value[l]:1}else if(e.length>0){this.model=t||"rgb",l=i[this.model].channels;const r=o.call(e,0,l);this.color=h(r,l),this.valpha="number"==typeof e[l]?e[l]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[n];const o=i[this.model].labels,s=[];for(r=0;r0?new u(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:l("rgb",0,p(255)),green:l("rgb",1,p(255)),blue:l("rgb",2,p(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:l("hsl",1,p(100)),lightness:l("hsl",2,p(100)),saturationv:l("hsv",1,p(100)),value:l("hsv",2,p(100)),chroma:l("hcg",1,p(100)),gray:l("hcg",2,p(100)),white:l("hwb",1,p(100)),wblack:l("hwb",2,p(100)),cyan:l("cmyk",0,p(100)),magenta:l("cmyk",1,p(100)),yellow:l("cmyk",2,p(100)),black:l("cmyk",3,p(100)),x:l("xyz",0,p(100)),y:l("xyz",1,p(100)),z:l("xyz",2,p(100)),l:l("lab",0,p(100)),a:l("lab",1),b:l("lab",2),keyword(e){return arguments.length>0?new u(e):i[this.model].keyword(this.color)},hex(e){return arguments.length>0?new u(e):n.to.hex(this.rgb().round().color)},hexa(e){if(arguments.length>0)return new u(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=void 0===t?.5:t,o=2*i-1,s=r.alpha()-n.alpha(),a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-a;return u.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(i)){if(s.includes(e))continue;const t=i[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length>0)return new u(arguments,e);const r="number"==typeof arguments[t]?t:this.valpha;return new u(d(i[this.model][e].raw(this.color)).concat(r),e)},u[e]=function(r){return"number"==typeof r&&(r=h(o.call(arguments),t)),new u(r,e)}}function l(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(c[n]||(c[n]=[]))[t]=r;return e=e[0],function(n){let i;return arguments.length>0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e){return Array.isArray(e)?e:[e]}function h(e,t){for(let r=0;r{const n=r(2597),i={};for(const e of Object.keys(n))i[n[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i;let a,c;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const u=(i+o)/2;return c=o===i?0:u<=.5?s/(o+i):s/(2-o-i),[a,100*c,100*u]},o.rgb.hsv=function(e){let t,r,n,i,o;const s=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(s,a,c),l=u-Math.min(s,a,c),p=function(e){return(u-e)/6/l+.5};return 0===l?(i=0,o=0):(o=l/u,t=p(s),r=p(a),n=p(c),s===u?i=n-r:a===u?i=1/3+t-n:c===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},o.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*s,100*n]},o.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let r,o=1/0;for(const t of Object.keys(n)){const i=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);i.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];return r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*n-16,500*(r-n),200*(n-i)]},o.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,s;if(0===r)return s=255*n,[s,s,s];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,c=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,c[e]=255*s;return c},o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,[t,100*(0===n?2*i/(o+i):2*r/(n+r)),(n+r)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},o.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,s;s=(2-r)*n;const a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const s=Math.floor(6*t),a=1-n;o=6*t-s,0!=(1&s)&&(o=1-o);const c=r+o*(a-r);let u,l,p;switch(s){default:case 6:case 0:u=a,l=c,p=r;break;case 1:u=c,l=a,p=r;break;case 2:u=r,l=a,p=c;break;case 3:u=r,l=c,p=a;break;case 4:u=c,l=r,p=a;break;case 5:u=a,l=r,p=c}return[255*u,255*l,255*p]},o.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},o.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},o.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},o.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const i=r**3,o=t**3,s=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},o.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;return i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(r*r+n*n),i]},o.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},o.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o;let a,c;return a=s<1?o/(1-s):0,c=s<=0?0:i===t?(r-n)/s%6:i===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[255*(r*i[0]+c),255*(r*i[1]+c),255*(r*i[2]+c)]},o.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},o.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},o.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},32830:(e,t,r)=>{const n=r(77741),i=r(66791),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=i(e);Object.keys(t).forEach((r=>{const n=t[r];o[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=o},66791:(e,t,r)=>{const n=r(77741);function i(e,t){return function(r){return t(e(r))}}function o(e,t){const r=[t[e].parent,e];let o=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),o=i(n[t[s].parent][s],o),s=t[s].parent;return o.conversion=r,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},21897:e=>{e.exports=function(e,r){for(var n=[],i=0;i{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer},45466:(e,t,r)=>{"use strict";var n=r(32081),i=r(46696),o=r(95749);function s(e,t,r){var s,a;return s=i(e,t,r),a=n.spawn(s.command,s.args,s.options),o.hookChildProcess(a,s),a}e.exports=s,e.exports.spawn=s,e.exports._parse=i,e.exports._enoent=o},95749:e=>{"use strict";var t="win32"===process.platform;function r(e,t){var r;return(r=new Error(t+" "+e+" ENOENT")).code=r.errno="ENOENT",r.syscall=t+" "+e,r}function n(e,n,i){return t&&1===e&&!n.file?r(n.original,i):null}e.exports.hookChildProcess=function(e,r){var i;t&&(i=e.emit,e.emit=function(t,o){var s;return"exit"===t&&(s=n(o,r,"spawn"))?i.call(e,"error",s):i.apply(e,arguments)})},e.exports.verifyENOENT=n,e.exports.notFoundError=r},46696:(e,t,r)=>{"use strict";var n=r(57147),i=r(27119),o=r(47702),s="win32"===process.platform,a=new i({max:50,maxAge:3e4});function c(e,t){return e=""+e,t?'"'+(e=(e=e.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':e.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}e.exports=function(e,t,r){var i,u,l,p;return t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=r||{},p=e,s&&(i=(l=(l=o(e))||o(e,!0))&&function(e){var t,r,i,o;if(a.has(e))return a.get(e);t=new Buffer(150);try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return(i=t.toString().trim().match(/#!(.+)/i))&&(o=i[1].replace(/\/usr\/bin\/env\s+/i,"")),a.set(e,o),o}(l),i&&(t.unshift(l),e=i),u="echo"!==e,t=["/s","/c",'"'+(e=function(e){return/^[a-z0-9_-]+$/i.test(e)?e:c(e,!0)}(e))+((t=t.map((function(e){return c(e,u)}))).length?" "+t.join(" "):"")+'"'],e=process.env.comspec||"cmd.exe",r.windowsVerbatimArguments=!0),{command:e,args:t,options:r,file:l,original:p}}},47702:(e,t,r)=>{"use strict";var n=r(71017),i=r(18750),o=new(r(27119))({max:50,maxAge:3e4}),s=new RegExp("win32"===process.platform?/[\/\\]/:/\//);e.exports=function(e,t){var r;if(s.test(e)&&(e=n.resolve(e)),t=!!t,r=o.get(e+"!"+t),o.has(e))return o.get(e);try{r=t?i.sync(e,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):i.sync(e)}catch(e){}return o.set(e+"!"+t,r),r}},57052:e=>{"use strict";e.exports=function(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');const t=(e=e.replace(/\r?\n/g,"")).indexOf(",");if(-1===t||t<=4)throw new TypeError("malformed data: URI");const r=e.substring(5,t).split(";");let n="",i=!1;const o=r[0]||"text/plain";let s=o;for(let e=1;e{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(347)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},347:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(32708):e.exports=r(73018)},73018:(e,t,r)=>{const n=r(76224),i=r(73837);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(27581);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(347)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},15095:(e,t,r)=>{"use strict";const{Transform:n,PassThrough:i}=r(12781),o=r(59796),s=r(81643);e.exports=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;const r="br"===t;if(r&&"function"!=typeof o.createBrotliDecompress)return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let a=!0;const c=new n({transform(e,t,r){a=!1,r(null,e)},flush(e){e()}}),u=new i({autoDestroy:!1,destroy(t,r){e.destroy(),r(t)}}),l=r?o.createBrotliDecompress():o.createUnzip();return l.once("error",(t=>{!a||e.readable?u.destroy(t):u.end()})),s(e,u),e.pipe(c).pipe(l).pipe(u),u}},81643:e=>{"use strict";const t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{if(r._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");const n=new Set(Object.keys(e).concat(t)),i={};for(const t of n)t in r||(i[t]={get(){const r=e[t];return"function"==typeof r?r.bind(e):r},set(r){e[t]=r},enumerable:!0,configurable:!1});return Object.defineProperties(r,i),e.once("aborted",(()=>{r.destroy(),r.emit("aborted")})),e.once("close",(()=>{e.complete&&r.readable?r.once("end",(()=>{r.emit("close")})):r.emit("close")})),r}},93359:(e,t,r)=>{"use strict";const n=r(22037),i=r(25178),o=r(54879),s=r(43239),a=o(Number(n.release().split(".")[0])>=14?"~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist":"~/Library/Preferences/com.apple.LaunchServices.plist");e.exports=()=>{if("darwin"!==process.platform)return Promise.reject(new Error("Only OS X is supported"));let e="com.apple.Safari";return s(i.parseFile)(a).then((t=>{const r=t&&t[0].LSHandlers;if(!r||0===r.length)return e;for(const t of r)if("http"===t.LSHandlerURLScheme&&t.LSHandlerRoleAll){e=t.LSHandlerRoleAll;break}return e}))}},97619:(e,t,r)=>{"use strict";const n=r(93359),i=r(32486);e.exports=()=>"linux"===process.platform?r(96883)():"darwin"===process.platform?n().then((e=>i(e).then((t=>({name:t,id:e}))))):Promise.reject(new Error("Only macOS and Linux are supported"))},62925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(e,t)=>{let r;r="function"==typeof t?{connect:t}:t;const n="function"==typeof r.connect,i="function"==typeof r.secureConnect,o="function"==typeof r.close,s=()=>{n&&r.connect(),function(e){return e.encrypted}(e)&&i&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),o&&e.once("close",r.close)};e.writable&&!e.connecting?s():e.connecting?e.once("connect",s):e.destroyed&&o&&r.close(e._hadError)};t.default=r,e.exports=r,e.exports.default=r},90993:(e,t,r)=>{const n=r(57147),i=r(71017),o=r(22037),s=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function a(e){console.log(`[dotenv][DEBUG] ${e}`)}const c={config:function(e){let t=i.resolve(process.cwd(),".env"),r="utf8";const s=Boolean(e&&e.debug),u=Boolean(e&&e.override);var l;e&&(null!=e.path&&(t="~"===(l=e.path)[0]?i.join(o.homedir(),l.slice(1)):l),null!=e.encoding&&(r=e.encoding));try{const e=c.parse(n.readFileSync(t,{encoding:r}));return Object.keys(e).forEach((function(t){Object.prototype.hasOwnProperty.call(process.env,t)?(!0===u&&(process.env[t]=e[t]),s&&a(!0===u?`"${t}" is already defined in \`process.env\` and WAS overwritten`:`"${t}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[t]=e[t]})),{parsed:e}}catch(e){return s&&a(`Failed to load ${t} ${e.message}`),{error:e}}},parse:function(e){const t={};let r,n=e.toString();for(n=n.replace(/\r\n?/gm,"\n");null!=(r=s.exec(n));){const e=r[1];let n=r[2]||"";n=n.trim();const i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===i&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),t[e]=n}return t}};e.exports.config=c.config,e.exports.parse=c.parse,e.exports=c},18696:(e,t,r)=>{var n=r(58034),i=function(){},o=function(e,t,r){if("function"==typeof t)return o(e,null,t);t||(t={}),r=n(r||i);var s=e._writableState,a=e._readableState,c=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,l=!1,p=function(){e.writable||d()},d=function(){u=!1,c||r.call(e)},h=function(){c=!1,u||r.call(e)},f=function(t){r.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){r.call(e,t)},g=function(){process.nextTick(y)},y=function(){if(!l)return(!c||a&&a.ended&&!a.destroyed)&&(!u||s&&s.ended&&!s.destroyed)?void 0:r.call(e,new Error("premature close"))},b=function(){e.req.on("finish",d)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",d),e.on("abort",g),e.req?b():e.on("request",b)):u&&!s&&(e.on("end",p),e.on("close",p)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",f),e.on("end",h),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",g),function(){l=!0,e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("exit",f),e.removeListener("end",h),e.removeListener("error",m),e.removeListener("close",g)}};e.exports=o},38347:(e,t)=>{!function e(t){"use strict";var r,n,i,o,s,a;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function d(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function h(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function f(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(t,r){var n,i,o,s;for(i=t.length,o=0;i;)t[s=o+(n=i>>>1)].range[0]>e.range[0]?i=n:(o=s+1,i-=n+1);return o}(t),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:o={},Skip:s={},Remove:a={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,i;function o(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(b=a[p=y[m]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!f(n,b[g])){if(h(c,y[m]))i=new l(b[g],[p,g],"Property",null);else{if(!d(b[g]))continue;i=new l(b[g],[p,g],null,null)}r.push(i)}}else if(d(b)){if(f(n,b))continue;r.push(new l(b,p,null,null))}}}else if(i=n.pop(),u=this.__execute(t.leave,i),this.__state===o||u===o)return},p.prototype.replace=function(e,t){var r,n,i,c,p,f,m,g,y,b,v,w,_;function S(e){var t,n,i,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=r.length;t--;)if((i=r[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(b=i[_=y[m]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(h(c,y[m]))f=new l(b[g],[_,g],"Property",new u(b,g));else{if(!d(b[g]))continue;f=new l(b[g],[_,g],null,new u(b,g))}r.push(f)}}else d(b)&&r.push(new l(b,_,null,new u(i,_)))}}else if(f=n.pop(),void 0!==(p=this.__execute(t.leave,f))&&p!==o&&p!==s&&p!==a&&f.ref.replace(p),this.__state!==a&&p!==a||S(f),this.__state===o||p===o)return w.root;return w.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var i,o,s,a,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(s=0,o=t.length;se.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),a=0,m(e,{leave:function(e){for(var t;ae.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)},79850:(e,t,r)=>{"use strict";const n=r(71017),i=r(32081),o=r(76939),s=r(34521),a=r(35191),c=r(22106),u=r(28662),l=r(80405),{spawnedKill:p,spawnedCancel:d,setupTimeout:h,validateTimeout:f,setExitHandler:m}=r(44027),{handleInput:g,getSpawnedResult:y,makeAllStream:b,validateInputSync:v}=r(80433),{mergePromise:w,getSpawnedPromise:_}=r(90514),{joinCommand:S,parseCommand:k,getEscapedCommand:P}=r(4586),x=(e,t,r={})=>{const i=o._parse(e,t,r);return e=i.command,t=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const o=t?{...process.env,...e}:e;return r?a.env({env:o,cwd:n,execPath:i}):o})(r),r.stdio=l(r),"win32"===process.platform&&"cmd"===n.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:i}},C=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?s(t):t:void 0===r?void 0:"",E=(e,t,r)=>{const n=x(e,t,r),o=S(e,t),s=P(e,t);let a;f(n.options);try{a=i.spawn(n.file,n.args,n.options)}catch(e){const t=new i.ChildProcess,r=Promise.reject(u({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return w(t,r)}const l=_(a),v=h(a,n.options,l),k=m(a,n.options,v),E={isCanceled:!1};a.kill=p.bind(null,a.kill.bind(a)),a.cancel=d.bind(null,a,E);const D=c((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:i},c,l,p]=await y(a,n.options,k),d=C(n.options,c),h=C(n.options,l),f=C(n.options,p);if(e||0!==t||null!==r){const c=u({error:e,exitCode:t,signal:r,stdout:d,stderr:h,all:f,command:o,escapedCommand:s,parsed:n,timedOut:i,isCanceled:E.isCanceled,killed:a.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:s,exitCode:0,stdout:d,stderr:h,all:f,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return g(a,n.options.input),a.all=b(a,n.options),w(a,D)};e.exports=E,e.exports.sync=(e,t,r)=>{const n=x(e,t,r),o=S(e,t),s=P(e,t);let a;v(n.options);try{a=i.spawnSync(n.file,n.args,n.options)}catch(e){throw u({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const c=C(n.options,a.stdout,a.error),l=C(n.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=u({stdout:c,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:o,escapedCommand:s,parsed:n,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:c,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},e.exports.command=(e,t)=>{const[r,...n]=k(e);return E(r,n,t)},e.exports.commandSync=(e,t)=>{const[r,...n]=k(e);return E.sync(r,n,t)},e.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=l.node(r),i=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return E(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}},4586:e=>{"use strict";const t=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],r=/^[\w.-]+$/,n=/"/g,i=/ +/g;e.exports={joinCommand:(e,r)=>t(e,r).join(" "),getEscapedCommand:(e,i)=>t(e,i).map((e=>(e=>"string"!=typeof e||r.test(e)?e:`"${e.replace(n,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const r of e.trim().split(i)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}},28662:(e,t,r)=>{"use strict";const{signalsByName:n}=r(3808);e.exports=({stdout:e,stderr:t,all:r,error:i,signal:o,exitCode:s,command:a,escapedCommand:c,timedOut:u,isCanceled:l,killed:p,parsed:{options:{timeout:d}}})=>{s=null===s?void 0:s;const h=void 0===(o=null===o?void 0:o)?void 0:n[o].description,f=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed")({timedOut:u,timeout:d,errorCode:i&&i.code,signal:o,signalDescription:h,exitCode:s,isCanceled:l}),m=`Command ${f}: ${a}`,g="[object Error]"===Object.prototype.toString.call(i),y=g?`${m}\n${i.message}`:m,b=[y,t,e].filter(Boolean).join("\n");return g?(i.originalMessage=i.message,i.message=b):i=new Error(b),i.shortMessage=y,i.command=a,i.escapedCommand=c,i.exitCode=s,i.signal=o,i.signalDescription=h,i.stdout=e,i.stderr=t,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(u),i.isCanceled=l,i.killed=p&&!u,i}},44027:(e,t,r)=>{"use strict";const n=r(22037),i=r(83973),o=(e,{forceKillAfterTimeout:t},r)=>s(e)&&!1!==t&&r,s=e=>e===n.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),a=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};e.exports={spawnedKill:(e,t="SIGTERM",r={})=>{const n=e(t);return((e,t,r,n)=>{if(!o(t,r,n))return;const i=a(r),s=setTimeout((()=>{e("SIGKILL")}),i);s.unref&&s.unref()})(e,t,r,n),n},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(0===t||void 0===t)return n;let i;const o=new Promise(((n,o)=>{i=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),s=n.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;const o=i((()=>{e.kill()}));return n.finally((()=>{o()}))}}},90514:e=>{"use strict";const t=(async()=>{})().constructor.prototype,r=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(t,e)]));e.exports={mergePromise:(e,t)=>{for(const[n,i]of r){const r="function"==typeof t?(...e)=>Reflect.apply(i.value,t(),e):i.value.bind(t);Reflect.defineProperty(e,n,{...i,value:r})}return e},getSpawnedPromise:e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}},80405:e=>{"use strict";const t=["stdin","stdout","stderr"],r=e=>{if(!e)return;const{stdio:r}=e;if(void 0===r)return t.map((t=>e[t]));if((e=>t.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof r)return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);const n=Math.max(r.length,t.length);return Array.from({length:n},((e,t)=>r[t]))};e.exports=r,e.exports.node=e=>{const t=r(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}},80433:(e,t,r)=>{"use strict";const n=r(2240),i=r(83743),o=r(81779),s=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},a=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?i(e,{encoding:t,maxBuffer:n}):i.buffer(e,{maxBuffer:n})};e.exports={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(n(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const r=o();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},getSpawnedResult:async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},c)=>{const u=a(e,{encoding:n,buffer:i,maxBuffer:o}),l=a(t,{encoding:n,buffer:i,maxBuffer:o}),p=a(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([c,u,l,p])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},s(e,u),s(t,l),s(r,p)])}},validateInputSync:({input:e})=>{if(n(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}},76939:(e,t,r)=>{"use strict";const n=r(32081),i=r(59672),o=r(89357);function s(e,t,r){const s=i(e,t,r),a=n.spawn(s.command,s.args,s.options);return o.hookChildProcess(a,s),a}e.exports=s,e.exports.spawn=s,e.exports.sync=function(e,t,r){const s=i(e,t,r),a=n.spawnSync(s.command,s.args,s.options);return a.error=a.error||o.verifyENOENTSync(a.status,s),a},e.exports._parse=i,e.exports._enoent=o},89357:e=>{"use strict";const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,o){if("exit"===t){const t=n(o,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},59672:(e,t,r)=>{"use strict";const n=r(71017),i=r(27515),o=r(84454),s=r(78313),a="win32"===process.platform,c=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const l={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?l:function(e){if(!a)return e;const t=function(e){e.file=i(e);const t=e.file&&s(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!c.test(t);if(e.options.forceShell||r){const r=u.test(t);e.command=n.normalize(e.command),e.command=o.command(e.command),e.args=e.args.map((e=>o.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}(l)}},84454:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},78313:(e,t,r)=>{"use strict";const n=r(57147),i=r(41857);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},27515:(e,t,r)=>{"use strict";const n=r(71017),i=r(16754),o=r(21915);function s(e,t){const r=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let u;try{u=i.sync(e.command,{path:r[o({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{c&&process.chdir(s)}return u&&(u=n.resolve(a?e.options.cwd:"",u)),u}e.exports=function(e){return s(e)||s(e,!0)}},21915:e=>{"use strict";const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},41857:(e,t,r)=>{"use strict";const n=r(5394);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}},5394:e=>{"use strict";e.exports=/^#!(.*)/},16754:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(71017),o=n?";":":",s=r(64219),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const r=t.colon||o,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],s=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?s.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},u=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:u}=c(e,t),l=[],p=r=>new Promise(((o,s)=>{if(r===n.length)return t.all&&l.length?o(l):s(a(e));const c=n[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=i.join(u,e),h=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;o(d(h,r,0))})),d=(e,r,n)=>new Promise(((i,a)=>{if(n===o.length)return i(p(r+1));const c=o[n];s(e+c,{pathExt:u},((o,s)=>{if(!o&&s){if(!t.all)return i(e+c);l.push(e+c)}return i(d(e,r,n+1))}))}));return r?p(0).then((e=>r(null,e)),r):p(0)};e.exports=u,u.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=c(e,t),u=[];for(let a=0;a{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,l,p=arguments[0],d=1,h=arguments.length,f=!1;for("boolean"==typeof p&&(f=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d{var n;e.exports=function(){if(!n){try{n=r(5514)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},86874:(e,t,r)=>{var n=r(57310),i=n.URL,o=r(13685),s=r(95687),a=r(12781).Writable,c=r(39491),u=r(40829),l=["abort","aborted","connect","error","socket","timeout"],p=Object.create(null);l.forEach((function(e){p[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var d=_("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),h=_("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),f=_("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),m=_("ERR_STREAM_WRITE_AFTER_END","write after end");function g(e,t){a.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function y(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(o){var s=o+":",a=r[s]=e[o],l=t[o]=Object.create(a);Object.defineProperties(l,{request:{value:function(e,o,a){if("string"==typeof e){var l=e;try{e=v(new i(l))}catch(t){e=n.parse(l)}}else i&&e instanceof i?e=v(e):(a=o,o=e,e={protocol:s});return"function"==typeof o&&(a=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=r,c.equal(o.protocol,s,"protocol mismatch"),u("options",o),new g(o,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=l.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function b(){}function v(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function w(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function _(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function S(e){for(var t=0;t=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(S(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new h);else{var i,o=this._options.beforeRedirect;o&&(i=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],w(/^content-/i,this._options.headers));var a,c=w(/^host$/i,this._options.headers),l=n.parse(this._currentUrl),p=c||l.host,f=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(l,{host:p}));try{a=n.resolve(f,r)}catch(e){return void this.emit("error",new d(e))}u("redirecting to",a),this._isRedirect=!0;var m=n.parse(a);if(Object.assign(this._options,m),(m.protocol!==l.protocol&&"https:"!==m.protocol||m.host!==p&&!function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(m.host,p))&&w(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof o){var g={headers:e.headers,statusCode:t},y={url:f,method:s,headers:i};try{o(this._options,g,y)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}},e.exports=y({http:o,https:s}),e.exports.wrap=y},53247:(e,t,r)=>{e.exports=l,l.realpath=l,l.sync=p,l.realpathSync=p,l.monkeypatch=function(){n.realpath=l,n.realpathSync=p},l.unmonkeypatch=function(){n.realpath=i,n.realpathSync=o};var n=r(57147),i=n.realpath,o=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),c=r(55962);function u(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,r){if(a)return i(e,t,r);"function"==typeof t&&(r=t,t=null),i(e,t,(function(n,i){u(n)?c.realpath(e,t,r):r(n,i)}))}function p(e,t){if(a)return o(e,t);try{return o(e,t)}catch(r){if(u(r))return c.realpathSync(e,t);throw r}}},55962:(e,t,r)=>{var n=r(71017),i="win32"===process.platform,o=r(57147),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(n.normalize,i)var a=/(.*?)(?:[\/\\]+|$)/g;else a=/(.*?)(?:[\/]+|$)/g;if(i)var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else c=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,u,l,p=e,d={},h={};function f(){var t=c.exec(e);r=t[0].length,s=t[0],u=t[0],l="",i&&!h[u]&&(o.lstatSync(u),h[u]=!0)}for(f();r=e.length)return t&&(t[h]=e),r(null,e);a.lastIndex=u;var n=a.exec(e);return d=l,l+=n[0],p=d+n[1],u=a.lastIndex,m[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):o.lstat(p,b)}function b(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(f.hasOwnProperty(s))return v(null,f[s],p)}o.stat(p,(function(e){if(e)return r(e);o.readlink(p,(function(e,t){i||(f[s]=t),v(e,t)}))}))}function v(e,i,o){if(e)return r(e);var s=n.resolve(d,i);t&&(t[o]=s),w(s)}function w(t){e=n.resolve(t,e.slice(u)),g()}g()}},44185:(e,t,r)=>{"use strict";const{PassThrough:n}=r(12781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let o=!1;t?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new n({objectMode:o});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),o?a=c.length:a+=e.length})),s.getBufferedValue=()=>t?c:i?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}},83743:(e,t,r)=>{"use strict";const{constants:n}=r(14300),i=r(12781),{promisify:o}=r(73837),s=r(44185),a=o(i.pipeline);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function u(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,i=s(t);return await new Promise(((t,o)=>{const s=e=>{e&&i.getBufferedLength()<=n.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),o(e)};(async()=>{try{await a(e,i),t()}catch(e){s(e)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&s(new c)}))})),i.getBufferedValue()}e.exports=u,e.exports.buffer=(e,t)=>u(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>u(e,{...t,array:!0}),e.exports.MaxBufferError=c},92112:(e,t,r)=>{"use strict";var n=r(41422),i=r(57900),o=r(70772),s=r(18713),a=r(17437),c=r(89786);function u(e){return e.glob}e.exports=function(e,t){t||(t={});var r=a({},t),l=r.ignore;r.cwd="string"==typeof r.cwd?r.cwd:process.cwd(),r.dot="boolean"==typeof r.dot&&r.dot,r.silent="boolean"!=typeof r.silent||r.silent,r.cwdbase="boolean"==typeof r.cwdbase&&r.cwdbase,r.uniqueBy="string"==typeof r.uniqueBy||"function"==typeof r.uniqueBy?r.uniqueBy:"path",r.cwdbase&&(r.base=r.cwd),"string"==typeof l&&(l=[l]),Array.isArray(l)||(l=[]),Array.isArray(e)||(e=[e]);var p=[],d=[];if(e.forEach((function(e,t){if("string"!=typeof e)throw new Error("Invalid glob at index "+t);var r=s(e);(r.negated?d:p).push({index:t,glob:r.pattern})})),0===p.length)throw new Error("Missing positive glob");var h=p.map((function(e){var t,n=d.filter((t=e.index,function(e){return e.index>t})).map(u).concat(l);return new c(e.glob,n,r)})),f=new n(h),m=i(r.uniqueBy);return o.obj(f,m)}},15240:(e,t,r)=>{var n=r(2454),i=r(18696),o=r(71947),s=r(86736),a=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},u=function(e,t){return function(r){r?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},l=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);n.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};o(p,n.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=i(e,{writable:!0,readable:!1},u(this,this._forwardEnd)),n=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(n),this._writable=e,this._writable.on("drain",n),this._unwrite=function(){t._writable.removeListener("drain",n),r()},this.uncork()}else this.end()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t,r=this,o=i(e,{writable:!1,readable:!0},u(this)),s=function(){r._forward()},a=function(){r.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:(t=e,new n.Readable({objectMode:!0,highWaterMark:16}).wrap(t)),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){r._readable2.removeListener("readable",s),r._readable2.removeListener("end",a),o()},this._forward()}},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=s(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=l),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick((function(){r._destroy(e),t(null)}))},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(e,t,r){if(!this.destroyed)return this._corked?c(this,this._write.bind(this,e,t,r)):e===a?this._finish(r):this._writable?void(!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()):r()},p.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,(function(){var r,n;n=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},(r=t._forwardEnd&&t._writable)?r._writableState&&r._writableState.finished?n():r._writableState?r.end(n):(r.end(),n()):n()}))},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(a),n.Writable.prototype.end.call(this,r))},e.exports=p},97217:(e,t,r)=>{"use strict";var n=r(22767),i=r(71017).posix.dirname,o="win32"===r(22037).platform(),s="/",a=/\\/g,c=/\\([!*?|[\](){}])/g;function u(e){return!!/\([^()]+$/.test(e)||"{"===e[0]||"["===e[0]||!!/[^\\][{[]/.test(e)||n(e)}e.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&o&&e.indexOf(s)<0&&(e=e.replace(a,s)),function(e){var t;switch(e.slice(-1)){case"}":t="{";break;case"]":t="[";break;default:return!1}var r=e.indexOf(t);return!(r<0)&&e.slice(r+1,-1).includes(s)}(e)&&(e+=s),e+="a";do{e=i(e)}while(u(e));return e.replace(c,"$1")}},91007:(e,t,r)=>{var n=r(58034),i=r(18696),o=r(57147),s=function(){},a=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},u=function(e,t,r,u){u=n(u);var l=!1;e.on("close",(function(){l=!0})),i(e,{readable:t,writable:r},(function(e){if(e)return u(e);l=!0,u()}));var p=!1;return function(t){if(!l&&!p)return p=!0,function(e){return!!a&&!!o&&(e instanceof(o.ReadStream||s)||e instanceof(o.WriteStream||s))&&c(e.close)}(e)?e.close(s):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void u(t||new Error("stream was destroyed"))}},l=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||s)&&t.pop()||s;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n=t.map((function(i,o){var s=o0,(function(t){e||(e=t),t&&n.forEach(l),s||(n.forEach(l),r(e))}))}));return t.reduce(p)}},70772:(e,t,r)=>{var n=r(91007),i=r(71947),o=r(15240),s=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},a=function(e){var t=function(){var r=s(arguments);if(!(this instanceof t))return new t(r);o.call(this,null,null,e),r.length&&this.setPipeline(r)};return i(t,o),t.prototype.setPipeline=function(){var e=s(arguments),t=this,r=!1,i=e[0],o=e[e.length-1];o=o.readable?o:null,i=i.writable?i:null;var a=function(){e[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",(function(){r||t.cork()})),n(e,(function(e){if(t.removeListener("close",a),e)return t.destroy("premature close"===e.message?null:e);r=!0,!1===t._autoDestroy&&(t._autoDestroy=!0),t.uncork()})),this.destroyed)return a();this.setWritable(i),this.setReadable(o)},t};e.exports=a({autoDestroy:!1,destroy:!1}),e.exports.obj=a({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16}),e.exports.ctor=a},89786:(e,t,r)=>{"use strict";var n=r(73837).inherits,i=r(76825),o=r(17437),s=r(2454).Readable,a=r(97217),c=r(39675),u=r(90733);function l(e,t,r){if(!(this instanceof l))return new l(e,t,r);var n=o({},r);s.call(this,{objectMode:!0,highWaterMark:n.highWaterMark||16}),delete n.highWaterMark;var p=this,d=t.map((function(e){return c(e,n)}));n.ignore=d;var h=n.cwd,f=n.allowEmpty||!1,m=n.base||function(e,t){return a(c(e,t))}(e,n);e=c(e,n),delete n.root;var g=new i.Glob(e,n);this._globber=g;var y=!1;g.on("match",(function(e){y=!0;var t={cwd:h,base:m,path:u(e)};p.push(t)||g.pause()})),g.once("end",(function(){if(!0!==f&&!y&&function(e){var t=e.minimatch.set;return 1===t.length&&t[0].every((function(e){return"string"==typeof e}))}(g)){var t=new Error("File not found with singular glob: "+e+" (if this was purposeful, use `allowEmpty` option)");return p.destroy(t)}p.push(null)})),g.once("error",(function(e){p.destroy(e)}))}n(l,s),l.prototype._read=function(){this._globber.resume()},l.prototype.destroy=function(e){var t=this;this._globber.abort(),process.nextTick((function(){e&&t.emit("error",e),t.emit("close")}))},e.exports=l},37465:(e,t,r)=>{function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.setopts=function(e,t,r){if(r||(r={}),r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||i,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,r),e.changedCwd=!1;var s=process.cwd();n(r,"cwd")?(e.cwd=o.resolve(r.cwd),e.changedCwd=e.cwd!==s):e.cwd=s,e.root=r.root||o.resolve(e.cwd,"/"),e.root=o.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=a(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new c(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n{e.exports=b;var n=r(53247),i=r(45076),o=(i.Minimatch,r(71947)),s=r(82361).EventEmitter,a=r(71017),c=r(39491),u=r(89991),l=r(64142),p=r(37465),d=p.setopts,h=p.ownProp,f=r(48156),m=(r(73837),p.childrenIgnored),g=p.isIgnored,y=r(58034);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new w(e,t,r)}b.sync=l;var v=b.GlobSync=l.GlobSync;function w(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new v(e,t)}if(!(this instanceof w))return new w(e,t,r);d(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=y(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return s();for(var o=0;o1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&h(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var o=this.statCache[r];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,o)}var a=this,c=f("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return a.fs.stat(r,(function(n,o){n?a._stat2(e,r,null,i,t):a._stat2(e,r,n,o,t)}));a._stat2(e,r,n,i,t)}));c&&a.fs.lstat(r,c)},w.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)}},64142:(e,t,r)=>{e.exports=h,h.GlobSync=f;var n=r(53247),i=r(45076),o=(i.Minimatch,r(76825).Glob,r(73837),r(71017)),s=r(39491),a=r(89991),c=r(37465),u=c.setopts,l=c.ownProp,p=c.childrenIgnored,d=c.isIgnored;function h(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new f(e,t).found}function f(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof f))return new f(e,t);if(u(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=o}else i=o}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},f.prototype._mark=function(e){return c.mark(this,e)},f.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},82480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(23554);t.default=function(e,...t){const r=(async()=>{if(e instanceof n.RequestError)try{for(const r of t)if(r)for(const t of r)e=await t(e)}catch(t){e=t}throw e})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}},33164:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});const o=r(82361),s=r(61182),a=r(44552),c=r(23554),u=r(36711),l=r(63777),p=r(68673),d=r(33220),h=r(69429),f=["request","response","redirect","uploadProgress","downloadProgress"];t.default=function e(t){let r,n;const i=new o.EventEmitter,m=new a(((o,a,g)=>{const y=b=>{const v=new l.default(void 0,t);v.retryCount=b,v._noPipe=!0,g((()=>v.destroy())),g.shouldReject=!1,g((()=>a(new c.CancelError(v)))),r=v,v.once("response",(async t=>{var r;if(t.retryCount=b,t.request.aborted)return;let i;try{i=await d.default(v),t.rawBody=i}catch(e){return}if(v._isAboutToError)return;const s=(null!==(r=t.headers["content-encoding"])&&void 0!==r?r:"").toLowerCase(),a=["gzip","deflate","br"].includes(s),{options:p}=v;if(a&&!p.decompress)t.body=i;else try{t.body=u.default(t,p.responseType,p.parseJson,p.encoding)}catch(e){if(t.body=i.toString(),h.isResponseOk(t))return void v._beforeError(e)}try{for(const[r,n]of p.hooks.afterResponse.entries())t=await n(t,(async t=>{const n=l.default.normalizeArguments(void 0,{...t,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},p);n.hooks.afterResponse=n.hooks.afterResponse.slice(0,r);for(const e of n.hooks.beforeRetry)await e(n);const i=e(n);return g((()=>{i.catch((()=>{})),i.cancel()})),i}))}catch(e){return void v._beforeError(new c.RequestError(e.message,e,v))}n=t,h.isResponseOk(t)?o(v.options.resolveBodyOnly?t.body:t):v._beforeError(new c.HTTPError(t))}));const w=e=>{if(m.isCanceled)return;const{options:t}=v;if(e instanceof c.HTTPError&&!t.throwHttpErrors){const{response:t}=e;o(v.options.resolveBodyOnly?t.body:t)}else a(e)};v.once("error",w);const _=v.options.body;v.once("retry",((e,t)=>{var r,n;_===(null===(r=t.request)||void 0===r?void 0:r.options.body)&&s.default.nodeStream(null===(n=t.request)||void 0===n?void 0:n.options.body)?w(t):y(e)})),p.default(v,i,f)};y(0)}));m.on=(e,t)=>(i.on(e,t),m);const g=e=>{const t=(async()=>{await m;const{options:t}=n.request;return u.default(n,e,t.parseJson,t.encoding)})();return Object.defineProperties(t,Object.getOwnPropertyDescriptors(m)),t};return m.json=()=>{const{headers:e}=r.options;return r.writableFinished||void 0!==e.accept||(e.accept="application/json"),g("json")},m.buffer=()=>g("buffer"),m.text=()=>g("text"),m},i(r(23554),t)},52361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(61182);t.default=(e,t)=>{if(n.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");n.assert.any([n.default.string,n.default.undefined],e.encoding),n.assert.any([n.default.boolean,n.default.undefined],e.resolveBodyOnly),n.assert.any([n.default.boolean,n.default.undefined],e.methodRewriting),n.assert.any([n.default.boolean,n.default.undefined],e.isStream),n.assert.any([n.default.string,n.default.undefined],e.responseType),void 0===e.responseType&&(e.responseType="text");const{retry:r}=e;if(e.retry=t?{...t.retry}:{calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},n.default.object(r)?(e.retry={...e.retry,...r},e.retry.methods=[...new Set(e.retry.methods.map((e=>e.toUpperCase())))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):n.default.number(r)&&(e.retry.limit=r),n.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(n.default.number))),n.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});const{pagination:r}=e;if(!n.default.function_(r.transform))throw new Error("`options.pagination.transform` must be implemented");if(!n.default.function_(r.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!n.default.function_(r.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!n.default.function_(r.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return"json"===e.responseType&&void 0===e.headers.accept&&(e.headers.accept="application/json"),e}},36711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(23554);t.default=(e,t,r,i)=>{const{rawBody:o}=e;try{if("text"===t)return o.toString(i);if("json"===t)return 0===o.length?"":r(o.toString());if("buffer"===t)return o;throw new n.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new n.ParseError(t,e)}}},23554:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=t.ParseError=void 0;const o=r(63777);class s extends o.RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${r.url.toString()}"`,e,t.request),this.name="ParseError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_BODY_PARSE_FAILURE":this.code}}t.ParseError=s;class a extends o.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}}t.CancelError=a,i(r(63777),t)},43493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryAfterStatusCodes=void 0,t.retryAfterStatusCodes=new Set([413,429,503]),t.default=({attemptCount:e,retryOptions:t,error:r,retryAfter:n})=>{if(e>t.limit)return 0;const i=t.methods.includes(r.options.method),o=t.errorCodes.includes(r.code),s=r.response&&t.statusCodes.includes(r.response.statusCode);if(!i||!o&&!s)return 0;if(r.response){if(n)return void 0===t.maxRetryAfter||n>t.maxRetryAfter?0:n;if(413===r.response.statusCode)return 0}return 2**(e-1)*1e3+100*Math.random()}},63777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedProtocolError=t.ReadError=t.TimeoutError=t.UploadError=t.CacheError=t.HTTPError=t.MaxRedirectsError=t.RequestError=t.setNonEnumerableProperties=t.knownHookEvents=t.withoutBody=t.kIsNormalizedAlready=void 0;const n=r(73837),i=r(12781),o=r(57147),s=r(57310),a=r(13685),c=r(13685),u=r(95687),l=r(96504),p=r(31930),d=r(50002),h=r(15095),f=r(81982),m=r(13177),g=r(61182),y=r(42715),b=r(89284),v=r(68673),w=r(93639),_=r(61442),S=r(8047),k=r(72169),P=r(33220),x=r(74532),C=r(69429),E=r(43902),D=r(52361),O=r(43493);let T;const M=Symbol("request"),A=Symbol("response"),j=Symbol("responseSize"),R=Symbol("downloadedSize"),F=Symbol("bodySize"),I=Symbol("uploadedSize"),L=Symbol("serverResponsesPiped"),N=Symbol("unproxyEvents"),B=Symbol("isFromCache"),$=Symbol("cancelTimeouts"),U=Symbol("startedReading"),q=Symbol("stopReading"),V=Symbol("triggerRead"),H=Symbol("body"),W=Symbol("jobs"),G=Symbol("originalResponse"),z=Symbol("retryTimeout");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");const K=g.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]),t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];const J=new k.default,Q=new Set([300,301,302,303,304,307,308]),X=["context","body","json","form"];t.setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e)if(t)for(const e of X)e in t&&(r[e]={writable:!0,configurable:!0,enumerable:!1,value:t[e]});Object.defineProperties(t,r)};class Y extends Error{constructor(e,t,r){var n,i;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=null!==(n=t.code)&&void 0!==n?n:"ERR_GOT_REQUEST_ERROR",r instanceof ae?(Object.defineProperty(this,"request",{enumerable:!1,value:r}),Object.defineProperty(this,"response",{enumerable:!1,value:r[A]}),Object.defineProperty(this,"options",{enumerable:!1,value:r.options})):Object.defineProperty(this,"options",{enumerable:!1,value:r}),this.timings=null===(i=this.request)||void 0===i?void 0:i.timings,g.default.string(t.stack)&&g.default.string(this.stack)){const e=this.stack.indexOf(this.message)+this.message.length,r=this.stack.slice(e).split("\n").reverse(),n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();for(;0!==n.length&&n[0]===r[0];)r.shift();this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${n.reverse().join("\n")}`}}}t.RequestError=Y;class Z extends Y{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}}t.MaxRedirectsError=Z;class ee extends Y{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}}t.HTTPError=ee;class te extends Y{constructor(e,t){super(e.message,e,t),this.name="CacheError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_CACHE_ACCESS":this.code}}t.CacheError=te;class re extends Y{constructor(e,t){super(e.message,e,t),this.name="UploadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_UPLOAD":this.code}}t.UploadError=re;class ne extends Y{constructor(e,t,r){super(e.message,e,r),this.name="TimeoutError",this.event=e.event,this.timings=t}}t.TimeoutError=ne;class ie extends Y{constructor(e,t){super(e.message,e,t),this.name="ReadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_READING_RESPONSE_STREAM":this.code}}t.ReadError=ie;class oe extends Y{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}}t.UnsupportedProtocolError=oe;const se=["socket","connect","continue","information","upgrade","timeout"];class ae extends i.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[R]=0,this[I]=0,this.requestInitialized=!1,this[L]=new Set,this.redirects=[],this[q]=!1,this[V]=!1,this[W]=[],this.retryCount=0,this._progressCallbacks=[];const i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",(e=>{e.prependListener("data",i),e.on("data",s),e.prependListener("end",i),e.on("end",s)})),this.on("unpipe",(e=>{e.off("data",i),e.off("data",s),e.off("end",i),e.off("end",s)})),this.on("pipe",(e=>{e instanceof c.IncomingMessage&&(this.options.headers={...e.headers,...this.options.headers})}));const{json:a,body:u,form:l}=r;if((a||u||l)&&this._lockWrite(),t.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(e){return g.default.nodeStream(r.body)&&r.body.destroy(),void this.destroy(e)}(async()=>{var e;try{this.options.body instanceof o.ReadStream&&await(async e=>new Promise(((t,r)=>{const n=e=>{r(e)};e.pending||t(),e.once("error",n),e.once("ready",(()=>{e.off("error",n),t()}))})))(this.options.body);const{url:t}=this.options;if(!t)throw new TypeError("Missing `url` property");if(this.requestUrl=t.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed)return void(null===(e=this[M])||void 0===e||e.destroy());for(const e of this[W])e();this[W].length=0,this.requestInitialized=!0}catch(e){if(e instanceof Y)return void this._beforeError(e);this.destroyed||this.destroy(e)}})()}static normalizeArguments(e,r,i){var o,a,c,u,l;const h=r;if(g.default.object(e)&&!g.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&void 0!==r.url)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},void 0!==e&&(r.url=e),g.default.urlInstance(r.url)&&(r.url=new s.URL(r.url.toString()))}if(!1===r.cache&&(r.cache=void 0),!1===r.dnsCache&&(r.dnsCache=void 0),g.assert.any([g.default.string,g.default.undefined],r.method),g.assert.any([g.default.object,g.default.undefined],r.headers),g.assert.any([g.default.string,g.default.urlInstance,g.default.undefined],r.prefixUrl),g.assert.any([g.default.object,g.default.undefined],r.cookieJar),g.assert.any([g.default.object,g.default.string,g.default.undefined],r.searchParams),g.assert.any([g.default.object,g.default.string,g.default.undefined],r.cache),g.assert.any([g.default.object,g.default.number,g.default.undefined],r.timeout),g.assert.any([g.default.object,g.default.undefined],r.context),g.assert.any([g.default.object,g.default.undefined],r.hooks),g.assert.any([g.default.boolean,g.default.undefined],r.decompress),g.assert.any([g.default.boolean,g.default.undefined],r.ignoreInvalidCookies),g.assert.any([g.default.boolean,g.default.undefined],r.followRedirect),g.assert.any([g.default.number,g.default.undefined],r.maxRedirects),g.assert.any([g.default.boolean,g.default.undefined],r.throwHttpErrors),g.assert.any([g.default.boolean,g.default.undefined],r.http2),g.assert.any([g.default.boolean,g.default.undefined],r.allowGetBody),g.assert.any([g.default.string,g.default.undefined],r.localAddress),g.assert.any([x.isDnsLookupIpVersion,g.default.undefined],r.dnsLookupIpVersion),g.assert.any([g.default.object,g.default.undefined],r.https),g.assert.any([g.default.boolean,g.default.undefined],r.rejectUnauthorized),r.https&&(g.assert.any([g.default.boolean,g.default.undefined],r.https.rejectUnauthorized),g.assert.any([g.default.function_,g.default.undefined],r.https.checkServerIdentity),g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.certificateAuthority),g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.key),g.assert.any([g.default.string,g.default.object,g.default.array,g.default.undefined],r.https.certificate),g.assert.any([g.default.string,g.default.undefined],r.https.passphrase),g.assert.any([g.default.string,g.default.buffer,g.default.array,g.default.undefined],r.https.pfx)),g.assert.any([g.default.object,g.default.undefined],r.cacheOptions),g.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(null==i?void 0:i.headers)?r.headers={...r.headers}:r.headers=m({...null==i?void 0:i.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(null==i?void 0:i.searchParams)){let e;if(g.default.string(r.searchParams)||r.searchParams instanceof s.URLSearchParams)e=new s.URLSearchParams(r.searchParams);else{!function(e){for(const t in e){const r=e[t];if(!(g.default.string(r)||g.default.number(r)||g.default.boolean(r)||g.default.null_(r)||g.default.undefined(r)))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}(r.searchParams),e=new s.URLSearchParams;for(const t in r.searchParams){const n=r.searchParams[t];null===n?e.append(t,""):void 0!==n&&e.append(t,n)}}null===(o=null==i?void 0:i.searchParams)||void 0===o||o.forEach(((t,r)=>{e.has(r)||e.append(r,t)})),r.searchParams=e}if(r.username=null!==(a=r.username)&&void 0!==a?a:"",r.password=null!==(c=r.password)&&void 0!==c?c:"",g.default.undefined(r.prefixUrl)?r.prefixUrl=null!==(u=null==i?void 0:i.prefixUrl)&&void 0!==u?u:"":(r.prefixUrl=r.prefixUrl.toString(),""===r.prefixUrl||r.prefixUrl.endsWith("/")||(r.prefixUrl+="/")),g.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=S.default(r.prefixUrl+r.url,r)}else(g.default.undefined(r.url)&&""!==r.prefixUrl||r.protocol)&&(r.url=S.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set:t=>{const n=r.url;if(!n.href.startsWith(t))throw new Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${n.href}`);r.url=new s.URL(t+n.href.slice(e.length)),e=t},get:()=>e});let{protocol:t}=r.url;if("unix:"===t&&(t="http:",r.url=new s.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),"http:"!==t&&"https:"!==t)throw new oe(r);""===r.username?r.username=r.url.username:r.url.username=r.username,""===r.password?r.password=r.url.password:r.url.password=r.password}const{cookieJar:f}=r;if(f){let{setCookie:e,getCookieString:t}=f;g.assert.function_(e),g.assert.function_(t),4===e.length&&0===t.length&&(e=n.promisify(e.bind(r.cookieJar)),t=n.promisify(t.bind(r.cookieJar)),r.cookieJar={setCookie:e,getCookieString:t})}const{cache:y}=r;if(y&&(J.has(y)||J.set(y,new d(((e,t)=>{const r=e[M](e,t);return g.default.promise(r)&&(r.once=(e,t)=>{if("error"===e)r.catch(t);else{if("abort"!==e)throw new Error(`Unknown HTTP2 promise event: ${e}`);(async()=>{try{(await r).once("abort",t)}catch(e){}})()}return r}),r}),y))),r.cacheOptions={...r.cacheOptions},!0===r.dnsCache)T||(T=new p.default),r.dnsCache=T;else if(!g.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${g.default(r.dnsCache)}`);g.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});const b=r.hooks===(null==i?void 0:i.hooks);r.hooks={...r.hooks};for(const e of t.knownHookEvents)if(e in r.hooks){if(!g.default.array(r.hooks[e]))throw new TypeError(`Parameter \`${e}\` must be an Array, got ${g.default(r.hooks[e])}`);r.hooks[e]=[...r.hooks[e]]}else r.hooks[e]=[];if(i&&!b)for(const e of t.knownHookEvents)i.hooks[e].length>0&&(r.hooks[e]=[...i.hooks[e],...r.hooks[e]]);if("family"in r&&E.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),(null==i?void 0:i.https)&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&E.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&E.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&E.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&E.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&E.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&E.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&E.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent)for(const e in r.agent)if("http"!==e&&"https"!==e&&"http2"!==e)throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``);return r.maxRedirects=null!==(l=r.maxRedirects)&&void 0!==l?l:0,t.setNonEnumerableProperties([i,h],r),D.default(r,i)}_lockWrite(){const e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){const{options:e}=this,{headers:r}=e,n=!g.default.undefined(e.form),o=!g.default.undefined(e.json),a=!g.default.undefined(e.body),c=n||o||a,u=t.withoutBody.has(e.method)&&!("GET"===e.method&&e.allowGetBody);if(this._cannotHaveBody=u,c){if(u)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([a,n,o].filter((e=>e)).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(a&&!(e.body instanceof i.Readable)&&!g.default.string(e.body)&&!g.default.buffer(e.body)&&!b.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!g.default.object(e.form))throw new TypeError("The `form` option must be an Object");{const t=!g.default.string(r["content-type"]);a?(b.default(e.body)&&t&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[H]=e.body):n?(t&&(r["content-type"]="application/x-www-form-urlencoded"),this[H]=new s.URLSearchParams(e.form).toString()):(t&&(r["content-type"]="application/json"),this[H]=e.stringifyJson(e.json));const i=await y.default(this[H],e.headers);g.default.undefined(r["content-length"])&&g.default.undefined(r["transfer-encoding"])&&(u||g.default.undefined(i)||(r["content-length"]=String(i)))}}else u?this._lockWrite():this._unlockWrite();this[F]=Number(r["content-length"])||void 0}async _onResponseBase(e){const{options:t}=this,{url:r}=t;this[G]=e,t.decompress&&(e=h(e));const n=e.statusCode,i=e;i.statusMessage=i.statusMessage?i.statusMessage:a.STATUS_CODES[n],i.url=t.url.toString(),i.requestUrl=this.requestUrl,i.redirectUrls=this.redirects,i.request=this,i.isFromCache=e.fromCache||!1,i.ip=this.ip,i.retryCount=this.retryCount,this[B]=i.isFromCache,this[j]=Number(e.headers["content-length"])||void 0,this[A]=e,e.once("end",(()=>{this[j]=this[R],this.emit("downloadProgress",this.downloadProgress)})),e.once("error",(t=>{e.destroy(),this._beforeError(new ie(t,this))})),e.once("aborted",(()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))})),this.emit("downloadProgress",this.downloadProgress);const o=e.headers["set-cookie"];if(g.default.object(t.cookieJar)&&o){let c=o.map((async e=>t.cookieJar.setCookie(e,r.toString())));t.ignoreInvalidCookies&&(c=c.map((async e=>e.catch((()=>{})))));try{await Promise.all(c)}catch(u){return void this._beforeError(u)}}if(t.followRedirect&&e.headers.location&&Q.has(n)){if(e.resume(),this[M]&&(this[$](),delete this[M],this[N]()),!(303===n&&"GET"!==t.method&&"HEAD"!==t.method)&&t.methodRewriting||(t.method="GET","body"in t&&delete t.body,"json"in t&&delete t.json,"form"in t&&delete t.form,this[H]=void 0,delete t.headers["content-length"]),this.redirects.length>=t.maxRedirects)return void this._beforeError(new Z(this));try{const l=Buffer.from(e.headers.location,"binary").toString(),p=new s.URL(l,r),d=p.toString();function f(e){return"unix:"===e.protocol||"unix"===e.hostname}if(decodeURI(d),!f(r)&&f(p))return void this._beforeError(new Y("Cannot redirect to UNIX socket",{},this));p.hostname!==r.hostname||p.port!==r.port?("host"in t.headers&&delete t.headers.host,"cookie"in t.headers&&delete t.headers.cookie,"authorization"in t.headers&&delete t.headers.authorization,(t.username||t.password)&&(t.username="",t.password="")):(p.username=t.username,p.password=t.password),this.redirects.push(d),t.url=p;for(const m of t.hooks.beforeRedirect)await m(t,i);this.emit("redirect",i,t),await this._makeRequest()}catch(y){return void this._beforeError(y)}}else if(t.isStream&&t.throwHttpErrors&&!C.isResponseOk(i))this._beforeError(new ee(i));else{e.on("readable",(()=>{this[V]&&this._read()})),this.on("resume",(()=>{e.resume()})),this.on("pause",(()=>{e.pause()})),e.once("end",(()=>{this.push(null)})),this.emit("response",e);for(const b of this[L])if(!b.headersSent){for(const v in e.headers){const w=!t.decompress||"content-encoding"!==v,_=e.headers[v];w&&b.setHeader(v,_)}b.statusCode=n}}}async _onResponse(e){try{await this._onResponseBase(e)}catch(e){this._beforeError(e)}}_onRequest(e){const{options:t}=this,{timeout:r,url:n}=t;l.default(e),this[$]=w.default(e,r,n);const i=t.cache?"cacheableResponse":"response";e.once(i,(e=>{this._onResponse(e)})),e.once("error",(t=>{var r;e.destroy(),null===(r=e.res)||void 0===r||r.removeAllListeners("end"),t=t instanceof w.TimeoutError?new ne(t,this.timings,this):new Y(t.message,t,this),this._beforeError(t)})),this[N]=v.default(e,this,se),this[M]=e,this.emit("uploadProgress",this.uploadProgress);const o=this[H],s=0===this.redirects.length?this:e;g.default.nodeStream(o)?(o.pipe(s),o.once("error",(e=>{this._beforeError(new re(e,this))}))):(this._unlockWrite(),g.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(s.end(),this._lockWrite()):(this._writeRequest(o,void 0,(()=>{})),s.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise(((r,n)=>{let i;Object.assign(t,_.default(e)),delete t.url;const o=J.get(t.cache)(t,(async e=>{e._readableState.autoDestroy=!1,i&&(await i).emit("cacheableResponse",e),r(e)}));t.url=e,o.once("error",n),o.once("request",(async e=>{i=e,r(i)}))}))}async _makeRequest(){var e,t,r,n,i;const{options:o}=this,{headers:s}=o;for(const e in s)if(g.default.undefined(s[e]))delete s[e];else if(g.default.null_(s[e]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`);if(o.decompress&&g.default.undefined(s["accept-encoding"])&&(s["accept-encoding"]=K?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){const e=await o.cookieJar.getCookieString(o.url.toString());g.default.nonEmptyString(e)&&(o.headers.cookie=e)}for(const e of o.hooks.beforeRequest){const t=await e(o);if(!g.default.undefined(t)){o.request=()=>t;break}}o.body&&this[H]!==o.body&&(this[H]=o.body);const{agent:c,request:l,timeout:p,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),"unix"===h.hostname){const e=/(?.+?):(?.+)/.exec(`${h.pathname}${h.search}`);if(null==e?void 0:e.groups){const{socketPath:t,path:r}=e.groups;Object.assign(o,{socketPath:t,path:r,host:""})}}const m="https:"===h.protocol;let y;y=o.http2?f.auto:m?u.request:a.request;const b=null!==(e=o.request)&&void 0!==e?e:y,v=o.cache?this._createCacheableRequest:b;c&&!o.http2&&(o.agent=c[m?"https":"http"]),o[M]=b,delete o.request,delete o.timeout;const w=o;if(w.shared=null===(t=o.cacheOptions)||void 0===t?void 0:t.shared,w.cacheHeuristic=null===(r=o.cacheOptions)||void 0===r?void 0:r.cacheHeuristic,w.immutableMinTimeToLive=null===(n=o.cacheOptions)||void 0===n?void 0:n.immutableMinTimeToLive,w.ignoreCargoCult=null===(i=o.cacheOptions)||void 0===i?void 0:i.ignoreCargoCult,void 0!==o.dnsLookupIpVersion)try{w.family=x.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch(e){throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(w.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(w.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(w.ca=o.https.certificateAuthority),o.https.certificate&&(w.cert=o.https.certificate),o.https.key&&(w.key=o.https.key),o.https.passphrase&&(w.passphrase=o.https.passphrase),o.https.pfx&&(w.pfx=o.https.pfx));try{let e=await v(h,w);g.default.undefined(e)&&(e=y(h,w)),o.request=l,o.timeout=p,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete w.rejectUnauthorized,o.https.checkServerIdentity&&delete w.checkServerIdentity,o.https.certificateAuthority&&delete w.ca,o.https.certificate&&delete w.cert,o.https.key&&delete w.key,o.https.passphrase&&delete w.passphrase,o.https.pfx&&delete w.pfx),_=e,g.default.object(_)&&!("statusCode"in _)?this._onRequest(e):this.writable?(this.once("finish",(()=>{this._onResponse(e)})),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(e)}catch(e){if(e instanceof d.CacheError)throw new te(e,this);throw new Y(e.message,e,this)}var _}async _error(e){try{for(const t of this.options.hooks.beforeError)e=await t(e)}catch(t){e=new Y(t.message,t,this)}this.destroy(e)}_beforeError(e){if(this[q])return;const{options:t}=this,r=this.retryCount+1;this[q]=!0,e instanceof Y||(e=new Y(e.message,e,this));const n=e,{response:i}=n;(async()=>{if(i&&!i.body){i.setEncoding(this._readableState.encoding);try{i.rawBody=await P.default(i),i.body=i.rawBody.toString()}catch(e){}}if(0!==this.listenerCount("retry")){let o;try{let e;i&&"retry-after"in i.headers&&(e=Number(i.headers["retry-after"]),Number.isNaN(e)?(e=Date.parse(i.headers["retry-after"])-Date.now(),e<=0&&(e=1)):e*=1e3),o=await t.retry.calculateDelay({attemptCount:r,retryOptions:t.retry,error:n,retryAfter:e,computedValue:O.default({attemptCount:r,retryOptions:t.retry,error:n,retryAfter:e,computedValue:0})})}catch(e){return void this._error(new Y(e.message,e,this))}if(o){const t=async()=>{try{for(const e of this.options.hooks.beforeRetry)await e(this.options,n,r)}catch(t){return void this._error(new Y(t.message,e,this))}this.destroyed||(this.destroy(),this.emit("retry",r,e))};return void(this[z]=setTimeout(t,o))}}this._error(n)})()}_read(){this[V]=!0;const e=this[A];if(e&&!this[q]){let t;for(e.readableLength&&(this[V]=!1);null!==(t=e.read());){this[R]+=t.length,this[U]=!0;const e=this.downloadProgress;e.percent<1&&this.emit("downloadProgress",e),this.push(t)}}}_write(e,t,r){const n=()=>{this._writeRequest(e,t,r)};this.requestInitialized?n():this[W].push(n)}_writeRequest(e,t,r){this[M].destroyed||(this._progressCallbacks.push((()=>{this[I]+=Buffer.byteLength(e,t);const r=this.uploadProgress;r.percent<1&&this.emit("uploadProgress",r)})),this[M].write(e,t,(e=>{!e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),r(e)})))}_final(e){const t=()=>{for(;0!==this._progressCallbacks.length;)this._progressCallbacks.shift()();M in this?this[M].destroyed?e():this[M].end((t=>{t||(this[F]=this[I],this.emit("uploadProgress",this.uploadProgress),this[M].emit("upload-complete")),e(t)})):e()};this.requestInitialized?t():this[W].push(t)}_destroy(e,t){var r;this[q]=!0,clearTimeout(this[z]),M in this&&(this[$](),(null===(r=this[A])||void 0===r?void 0:r.complete)||this[M].destroy()),null===e||g.default.undefined(e)||e instanceof Y||(e=new Y(e.message,e,this)),t(e)}get _isAboutToError(){return this[q]}get ip(){var e;return null===(e=this.socket)||void 0===e?void 0:e.remoteAddress}get aborted(){var e,t,r;return(null!==(t=null===(e=this[M])||void 0===e?void 0:e.destroyed)&&void 0!==t?t:this.destroyed)&&!(null===(r=this[G])||void 0===r?void 0:r.complete)}get socket(){var e,t;return null!==(t=null===(e=this[M])||void 0===e?void 0:e.socket)&&void 0!==t?t:void 0}get downloadProgress(){let e;return e=this[j]?this[R]/this[j]:this[j]===this[R]?1:0,{percent:e,transferred:this[R],total:this[j]}}get uploadProgress(){let e;return e=this[F]?this[I]/this[F]:this[F]===this[I]?1:0,{percent:e,transferred:this[I],total:this[F]}}get timings(){var e;return null===(e=this[M])||void 0===e?void 0:e.timings}get isFromCache(){return this[B]}pipe(e,t){if(this[U])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof c.ServerResponse&&this[L].add(e),super.pipe(e,t)}unpipe(e){return e instanceof c.ServerResponse&&this[L].delete(e),super.unpipe(e),this}}t.default=ae},74532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsLookupIpVersionToFamily=t.isDnsLookupIpVersion=void 0;const r={auto:0,ipv4:4,ipv6:6};t.isDnsLookupIpVersion=e=>e in r,t.dnsLookupIpVersionToFamily=e=>{if(t.isDnsLookupIpVersion(e))return r[e];throw new Error("Invalid DNS lookup IP version")}},42715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(57147),i=r(73837),o=r(61182),s=r(89284),a=i.promisify(n.stat);t.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(o.default.string(e))return Buffer.byteLength(e);if(o.default.buffer(e))return e.length;if(s.default(e))return i.promisify(e.getLength.bind(e))();if(e instanceof n.ReadStream){const{size:t}=await a(e.path);if(0===t)return;return t}}},33220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async e=>{const t=[];let r=0;for await(const n of e)t.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))}},89284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(61182);t.default=e=>n.default.nodeStream(e)&&n.default.function_(e.getBoundary)},69429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseOk=void 0,t.isResponseOk=e=>{const{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||304===t}},8047:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(57310),i=["protocol","host","hostname","port","pathname","search"];t.default=(e,t)=>{var r,o;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${null!==(o=null!==(r=t.hostname)&&void 0!==r?r:t.host)&&void 0!==o?o:""}`}const s=new n.URL(e);if(t.path){const e=t.path.indexOf("?");-1===e?t.pathname=t.path:(t.pathname=t.path.slice(0,e),t.search=t.path.slice(e+1)),delete t.path}for(const e of i)t[e]&&(s[e]=t[e].toString());return s}},68673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const n={};for(const i of r)n[i]=(...e)=>{t.emit(i,...e)},e.on(i,n[i]);return()=>{for(const t of r)e.off(t,n[t])}}},93639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;const n=r(41808),i=r(51312),o=Symbol("reentry"),s=()=>{};class a extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`),this.event=t,this.name="TimeoutError",this.code="ETIMEDOUT"}}t.TimeoutError=a,t.default=(e,t,r)=>{if(o in e)return s;e[o]=!0;const c=[],{once:u,unhandleAll:l}=i.default(),p=(e,t,r)=>{var n;const i=setTimeout(t,e,e,r);null===(n=i.unref)||void 0===n||n.call(i);const o=()=>{clearTimeout(i)};return c.push(o),o},{host:d,hostname:h}=r,f=(t,r)=>{e.destroy(new a(t,r))},m=()=>{for(const e of c)e();l()};if(e.once("error",(t=>{if(m(),0===e.listenerCount("error"))throw t})),e.once("close",m),u(e,"response",(e=>{u(e,"end",m)})),void 0!==t.request&&p(t.request,f,"request"),void 0!==t.socket){const r=()=>{f(t.socket,"socket")};e.setTimeout(t.socket,r),c.push((()=>{e.removeListener("timeout",r)}))}return u(e,"socket",(i=>{var o;const{socketPath:s}=e;if(i.connecting){const e=Boolean(null!=s?s:0!==n.isIP(null!==(o=null!=h?h:d)&&void 0!==o?o:""));if(void 0!==t.lookup&&!e&&void 0===i.address().address){const e=p(t.lookup,f,"lookup");u(i,"lookup",e)}if(void 0!==t.connect){const r=()=>p(t.connect,f,"connect");e?u(i,"connect",r()):u(i,"lookup",(e=>{null===e&&u(i,"connect",r())}))}void 0!==t.secureConnect&&"https:"===r.protocol&&u(i,"connect",(()=>{const e=p(t.secureConnect,f,"secureConnect");u(i,"secureConnect",e)}))}if(void 0!==t.send){const r=()=>p(t.send,f,"send");i.connecting?u(i,"connect",(()=>{u(e,"upload-complete",r())})):u(e,"upload-complete",r())}})),void 0!==t.response&&u(e,"upload-complete",(()=>{const r=p(t.response,f,"response");u(e,"response",r)})),m}},51312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{const e=[];return{once(t,r,n){t.once(r,n),e.push({origin:t,event:r,fn:n})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:n}=t;e.removeListener(r,n)}e.length=0}}}},61442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(61182);t.default=e=>{const t={protocol:e.protocol,hostname:n.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return n.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}},72169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,t){"object"==typeof e?this.weakMap.set(e,t):this.map.set(e,t)}get(e){return"object"==typeof e?this.weakMap.get(e):this.map.get(e)}has(e){return"object"==typeof e?this.weakMap.has(e):this.map.has(e)}}},29118:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHandler=void 0;const o=r(61182),s=r(33164),a=r(82480),c=r(63777),u=r(55799),l={RequestError:s.RequestError,CacheError:s.CacheError,ReadError:s.ReadError,HTTPError:s.HTTPError,MaxRedirectsError:s.MaxRedirectsError,TimeoutError:s.TimeoutError,ParseError:s.ParseError,CancelError:s.CancelError,UnsupportedProtocolError:s.UnsupportedProtocolError,UploadError:s.UploadError},p=async e=>new Promise((t=>{setTimeout(t,e)})),{normalizeArguments:d}=c.default,h=(...e)=>{let t;for(const r of e)t=d(void 0,r,t);return t},f=e=>e.isStream?new c.default(void 0,e):s.default(e),m=e=>"defaults"in e&&"options"in e.defaults,g=["get","post","put","patch","head","delete"];t.defaultHandler=(e,t)=>t(e);const y=(e,t)=>{if(e)for(const r of e)r(t)},b=e=>{e._rawHandlers=e.handlers,e.handlers=e.handlers.map((e=>(t,r)=>{let n;const i=e(t,(e=>(n=r(e),n)));if(i!==n&&!t.isStream&&n){const e=i,{then:t,catch:r,finally:o}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(n)),Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)),e.then=t,e.catch=r,e.finally=o}return i}));const r=(t,r={},n)=>{var i,u;let l=0;const p=t=>e.handlers[l++](t,l===e.handlers.length?f:p);if(o.default.plainObject(t)){const e={...t,...r};c.setNonEnumerableProperties([t,r],e),r=e,t=void 0}try{let o;try{y(e.options.hooks.init,r),y(null===(i=r.hooks)||void 0===i?void 0:i.init,r)}catch(e){o=e}const a=d(t,r,null!=n?n:e.options);if(a[c.kIsNormalizedAlready]=!0,o)throw new s.RequestError(o.message,o,a);return p(a)}catch(t){if(r.isStream)throw t;return a.default(t,e.options.hooks.beforeError,null===(u=r.hooks)||void 0===u?void 0:u.beforeError)}};r.extend=(...r)=>{const n=[e.options];let i,o=[...e._rawHandlers];for(const e of r)m(e)?(n.push(e.defaults.options),o.push(...e.defaults._rawHandlers),i=e.defaults.mutableDefaults):(n.push(e),"handlers"in e&&o.push(...e.handlers),i=e.mutableDefaults);return o=o.filter((e=>e!==t.defaultHandler)),0===o.length&&o.push(t.defaultHandler),b({options:h(...n),handlers:o,mutableDefaults:Boolean(i)})};const n=async function*(t,n){let i=d(t,n,e.options);i.resolveBodyOnly=!1;const s=i.pagination;if(!o.default.object(s))throw new TypeError("`options.pagination` must be implemented");const a=[];let{countLimit:c}=s,u=0;for(;u{const r=[];for await(const i of n(e,t))r.push(i);return r},r.paginate.each=n,r.stream=(e,t)=>r(e,{...t,isStream:!0});for(const e of g)r[e]=(t,n)=>r(t,{...n,method:e}),r.stream[e]=(t,n)=>r(t,{...n,method:e,isStream:!0});return Object.assign(r,l),Object.defineProperty(r,"defaults",{value:e.mutableDefaults?e:u.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:!0}),r.mergeOptions=h,r};t.default=b,i(r(41412),t)},97409:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});const o=r(57310),s=r(29118),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>"json"===e.request.options.responseType?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim(),r=r.slice(1,-1);break}}return!!r&&{url:new o.URL(r)}},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[s.defaultHandler],mutableDefaults:!1},c=s.default(a);t.default=c,e.exports=c,e.exports.default=c,e.exports.__esModule=!0,i(r(29118),t),i(r(33164),t)},41412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(61182);t.default=function e(t){for(const r of Object.values(t))(n.default.plainObject(r)||n.default.array(r))&&e(r);return Object.freeze(t)}},43902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new Set;t.default=e=>{r.has(e)||(r.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}},36275:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n{"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]),r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),n=new Set([500,502,503,504]),i={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},o={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(e){const t=parseInt(e,10);return isFinite(t)?t:0}function a(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,n]=e.split(/\s*=\s*/,2);t[r]=void 0===n||n.replace(/^"|"$/g,"")}return t}function c(e){let t=[];for(const r in e){const n=e[r];t.push(!0===n?r:r+"="+n)}if(t.length)return t.join(", ")}e.exports=class{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:s}={}){if(s)this._fromObject(s);else{if(!t||!t.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=!1!==r,this._cacheHeuristic=void 0!==n?n:.1,this._immutableMinTtl=void 0!==i?i:864e5,this._status="status"in t?t.status:200,this._resHeaders=t.headers,this._rescc=a(t.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=t.headers.vary?e.headers:null,this._reqcc=a(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":c(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),null==t.headers["cache-control"]&&/no-cache/.test(t.headers.pragma)&&(this._rescc["no-cache"]=!0)}}now(){return Date.now()}storable(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||!r.has(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=a(e.headers["cache-control"]);return!t["no-cache"]&&!/no-cache/.test(e.headers.pragma)&&(!(t["max-age"]&&this.age()>t["max-age"])&&(!(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"])&&(!(this.stale()&&(!t["max-stale"]||this._rescc["must-revalidate"]||!(!0===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge())))&&this._requestMatches(e,!1))))}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t)if(e.headers[r]!==this._reqHeaders[r])return!1;return!0}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e)i[r]||(t[r]=e[r]);if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r)delete t[e]}if(t.warning){const e=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));e.length?t.warning=e.join(",").trim():delete t.warning}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>86400&&!this._hasExplicitExpiration()&&this.maxAge()>86400&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(t)}`,e.date=new Date(this.now()).toUTCString(),e}date(){const e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){return this._ageValue()+(this.now()-this._responseTime)/1e3}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"])return 0;if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)return 0;if("*"===this._resHeaders.vary)return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);const e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||rr)return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}return e}timeToLive(){const e=this.maxAge()-this.age(),t=e+s(this._rescc["stale-if-error"]),r=e+s(this._rescc["stale-while-revalidate"]);return 1e3*Math.max(0,e,t,r)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||1!==e.v)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=void 0!==e.imm?e.imm:864e5,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&"GET"!=this._method){if(delete t["if-modified-since"],t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));e.length?t["if-none-match"]=e.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t}revalidatedPolicy(e,t){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&function(e){return!e||n.has(e.status)}(t))return{modified:!1,matches:!1,policy:this};if(!t||!t.headers)throw Error("Response headers missing");let r=!1;if(void 0!==t.status&&304!=t.status?r=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===t.headers["last-modified"]:this._resHeaders.etag||this._resHeaders["last-modified"]||t.headers.etag||t.headers["last-modified"]||(r=!0),!r)return{policy:new this.constructor(e,t),modified:304!=t.status,matches:!1};const i={};for(const e in this._resHeaders)i[e]=e in t.headers&&!o[e]?t.headers[e]:this._resHeaders[e];const s=Object.assign({},t,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}},36006:(e,t,r)=>{"use strict";const n=r(82361),i=r(24404),o=r(85158),s=r(70032),a=Symbol("currentStreamsCount"),c=Symbol("request"),u=Symbol("cachedOriginSet"),l=Symbol("gracefullyClosing"),p=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],d=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,h=(e,t)=>{for(const r of e)r[u].lengtht[u].includes(e)))&&r[a]+t[a]<=t.remoteSettings.maxConcurrentStreams&&m(r)},f=({agent:e,isFree:t})=>{const r={};for(const n in e.sessions){const i=e.sessions[n].filter((e=>{const r=e[g.kCurrentStreamsCount]{e[l]=!0,0===e[a]&&e.close()};class g extends n{constructor({timeout:e=6e4,maxSessions:t=1/0,maxFreeSessions:r=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=t,this.maxFreeSessions=r,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new s({maxSize:n})}static normalizeOrigin(e,t){return"string"==typeof e&&(e=new URL(e)),t&&e.hostname!==t&&(e.hostname=t),e.origin}normalizeOptions(e){let t="";if(e)for(const r of p)e[r]&&(t+=`:${e[r]}`);return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e]))return;const r=this.queue[e][t];this._sessionsCount{Array.isArray(r)?(r=[...r],n()):r=[{resolve:n,reject:i}];const s=this.normalizeOptions(t),p=g.normalizeOrigin(e,t&&t.servername);if(void 0===p){for(const{reject:e}of r)e(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(s in this.sessions){const e=this.sessions[s];let t,n=-1,i=-1;for(const r of e){const e=r.remoteSettings.maxConcurrentStreams;if(e=e||r[l]||r.destroyed)continue;t||(n=e),o>i&&(t=r,i=o)}}if(t){if(1!==r.length){for(const{reject:e}of r)e(new Error(`Expected the length of listeners to be 1, got ${r.length}.\nPlease report this to https://github.com/szmarczak/http2-wrapper/`));return}return void r[0].resolve(t)}}if(s in this.queue){if(p in this.queue[s])return this.queue[s][p].listeners.push(...r),void this._tryToCreateNewSession(s,p)}else this.queue[s]={};const f=()=>{s in this.queue&&this.queue[s][p]===y&&(delete this.queue[s][p],0===Object.keys(this.queue[s]).length&&delete this.queue[s])},y=()=>{const n=`${p}:${s}`;let i=!1;try{const g=o.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(n),...t});g[a]=0,g[l]=!1;const b=()=>g[a]{this.tlsSessionCache.set(n,e)})),g.once("error",(e=>{for(const{reject:t}of r)t(e);this.tlsSessionCache.delete(n)})),g.setTimeout(this.timeout,(()=>{g.destroy()})),g.once("close",(()=>{if(i){v&&this._freeSessionsCount--,this._sessionsCount--;const e=this.sessions[s];e.splice(e.indexOf(g),1),0===e.length&&delete this.sessions[s]}else{const e=new Error("Session closed without receiving a SETTINGS frame");e.code="HTTP2WRAPPER_NOSETTINGS";for(const{reject:t}of r)t(e);f()}this._tryToCreateNewSession(s,p)}));const w=()=>{if(s in this.queue&&b())for(const e of g[u])if(e in this.queue[s]){const{listeners:t}=this.queue[s][e];for(;0!==t.length&&b();)t.shift().resolve(g);const r=this.queue[s];if(0===r[e].listeners.length&&(delete r[e],0===Object.keys(r).length)){delete this.queue[s];break}if(!b())break}};g.on("origin",(()=>{g[u]=g.originSet,b()&&(w(),h(this.sessions[s],g))})),g.once("remoteSettings",(()=>{if(g.ref(),g.unref(),this._sessionsCount++,y.destroyed){const e=new Error("Agent has been destroyed");for(const t of r)t.reject(e);g.destroy()}else{g[u]=g.originSet;{const e=this.sessions;if(s in e){const t=e[s];t.splice(((e,t,r)=>{let n=0,i=e.length;for(;n>>1;r(e[o],t)?n=o+1:i=o}return n})(t,g,d),0,g)}else e[s]=[g]}this._freeSessionsCount+=1,i=!0,this.emit("session",g),w(),f(),0===g[a]&&this._freeSessionsCount>this.maxFreeSessions&&g.close(),0!==r.length&&(this.getSession(p,t,r),r.length=0),g.on("remoteSettings",(()=>{w(),h(this.sessions[s],g)}))}})),g[c]=g.request,g.request=(e,t)=>{if(g[l])throw new Error("The session is gracefully closing. No new streams are allowed.");const r=g[c](e,t);return g.ref(),++g[a],g[a]===g.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,r.once("close",(()=>{if(v=b(),--g[a],!g.destroyed&&!g.closed&&(((e,t)=>{for(const r of e)t[u].lengthr[u].includes(e)))&&t[a]+r[a]<=r.remoteSettings.maxConcurrentStreams&&m(t)})(this.sessions[s],g),b()&&!g.closed)){v||(this._freeSessionsCount++,v=!0);const e=0===g[a];e&&g.unref(),e&&(this._freeSessionsCount>this.maxFreeSessions||g[l])?g.close():(h(this.sessions[s],g),w())}})),r}}catch(e){for(const t of r)t.reject(e);f()}};y.listeners=r,y.completed=!1,y.destroyed=!1,this.queue[s][p]=y,this._tryToCreateNewSession(s,p)}))}request(e,t,r,n){return new Promise(((i,o)=>{this.getSession(e,t,[{reject:o,resolve:e=>{try{i(e.request(r,n))}catch(e){o(e)}}}])}))}createConnection(e,t){return g.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443,n=e.hostname||e.host;return void 0===t.servername&&(t.servername=n),i.connect(r,n,t)}closeFreeSessions(){for(const e of Object.values(this.sessions))for(const t of e)0===t[a]&&t.close()}destroy(e){for(const t of Object.values(this.sessions))for(const r of t)r.destroy(e);for(const e of Object.values(this.queue))for(const t of Object.values(e))t.destroyed=!0;this.queue={}}get freeSessions(){return f({agent:this,isFree:!0})}get busySessions(){return f({agent:this,isFree:!1})}}g.kCurrentStreamsCount=a,g.kGracefullyClosing=l,e.exports={Agent:g,globalAgent:new g}},70409:(e,t,r)=>{"use strict";const n=r(13685),i=r(95687),o=r(80934),s=r(70032),a=r(17008),c=r(67838),u=r(37631),l=new s({maxSize:100}),p=new Map,d=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};const n=()=>{e.emit("free",t,r)};t.on("free",n);const i=()=>{e.removeSocket(t,r)};t.on("close",i);const o=()=>{e.removeSocket(t,r),t.off("close",i),t.off("free",n),t.off("agentRemove",o)};t.on("agentRemove",o),e.emit("free",t,r)};e.exports=async(e,t,r)=>{if(("string"==typeof e||e instanceof URL)&&(e=u(new URL(e))),"function"==typeof t&&(r=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||0===t.ALPNProtocols.length)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";const s="https:"===t.protocol;t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||c(t),t.port=t.port||(s?443:80),t._defaultAgent=s?i.globalAgent:n.globalAgent;const h=t.agent;if(h){if(h.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=h[s?"https":"http"]}if(s){const e=await(async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!l.has(t)){if(p.has(t))return(await p.get(t)).alpnProtocol;const{path:r,agent:n}=e;e.path=e.socketPath;const s=o(e);p.set(t,s);try{const{socket:o,alpnProtocol:a}=await s;if(l.set(t,a),e.path=r,"h2"===a)o.destroy();else{const{globalAgent:t}=i,r=i.Agent.prototype.createConnection;n?n.createConnection===r?d(n,o,e):o.destroy():t.createConnection===r?d(t,o,e):o.destroy()}return p.delete(t),a}catch(e){throw p.delete(t),e}}return l.get(t)})(t);if("h2"===e)return h&&(t.agent=h.http2),new a(t,r)}return n.request(t,r)},e.exports.protocolCache=l},17008:(e,t,r)=>{"use strict";const n=r(85158),{Writable:i}=r(12781),{Agent:o,globalAgent:s}=r(36006),a=r(1535),c=r(37631),u=r(64107),l=r(50936),{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_PROTOCOL:d,ERR_HTTP_HEADERS_SENT:h,ERR_INVALID_HTTP_TOKEN:f,ERR_HTTP_INVALID_HEADER_VALUE:m,ERR_INVALID_CHAR:g}=r(51647),{HTTP2_HEADER_STATUS:y,HTTP2_HEADER_METHOD:b,HTTP2_HEADER_PATH:v,HTTP2_METHOD_CONNECT:w}=n.constants,_=Symbol("headers"),S=Symbol("origin"),k=Symbol("session"),P=Symbol("options"),x=Symbol("flushedHeaders"),C=Symbol("jobs"),E=/^[\^`\-\w!#$%&*+.|~]+$/,D=/[^\t\u0020-\u007E\u0080-\u00FF]/;e.exports=class extends i{constructor(e,t,r){super({autoDestroy:!1});const n="string"==typeof e||e instanceof URL;if(n&&(e=c(e instanceof URL?e:new URL(e))),"function"==typeof t||void 0===t?(r=t,t=n?e:{...e}):t={...e,...t},t.h2session)this[k]=t.h2session;else if(!1===t.agent)this.agent=new o({maxFreeSessions:0});else if(void 0===t.agent||null===t.agent)"function"==typeof t.createConnection?(this.agent=new o({maxFreeSessions:0}),this.agent.createConnection=t.createConnection):this.agent=s;else{if("function"!=typeof t.agent.request)throw new p("options.agent",["Agent-like Object","undefined","false"],t.agent);this.agent=t.agent}if(t.protocol&&"https:"!==t.protocol)throw new d(t.protocol,"https:");const i=t.port||t.defaultPort||this.agent&&this.agent.defaultPort||443,a=t.hostname||t.host||"localhost";delete t.hostname,delete t.host,delete t.port;const{timeout:u}=t;if(t.timeout=void 0,this[_]=Object.create(null),this[C]=[],this.socket=null,this.connection=null,this.method=t.method||"GET",this.path=t.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,t.headers)for(const[e,r]of Object.entries(t.headers))this.setHeader(e,r);t.auth&&!("authorization"in this[_])&&(this[_].authorization="Basic "+Buffer.from(t.auth).toString("base64")),t.session=t.tlsSession,t.path=t.socketPath,this[P]=t,443===i?(this[S]=`https://${a}`,":authority"in this[_]||(this[_][":authority"]=a)):(this[S]=`https://${a}:${i}`,":authority"in this[_]||(this[_][":authority"]=`${a}:${i}`)),u&&this.setTimeout(u),r&&this.once("response",r),this[x]=!1}get method(){return this[_][b]}set method(e){e&&(this[_][b]=e.toUpperCase())}get path(){return this[_][v]}set path(e){e&&(this[_][v]=e)}get _mustNotHaveABody(){return"GET"===this.method||"HEAD"===this.method||"DELETE"===this.method}_write(e,t,r){if(this._mustNotHaveABody)return void r(new Error("The GET, HEAD and DELETE methods must NOT have a body"));this.flushHeaders();const n=()=>this._request.write(e,t,r);this._request?n():this[C].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();const t=()=>{this._mustNotHaveABody?e():this._request.end(e)};this._request?t():this[C].push(t)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick((()=>this.emit("abort"))),this.aborted=!0,this.destroy())}_destroy(e,t){this.res&&this.res._dump(),this._request&&this._request.destroy(),t(e)}async flushHeaders(){if(this[x]||this.destroyed)return;this[x]=!0;const e=this.method===w,t=t=>{if(this._request=t,this.destroyed)return void t.destroy();e||u(t,this,["timeout","continue","close","error"]);const r=e=>(...t)=>{this.writable||this.destroyed?this.once("finish",(()=>{e(...t)})):e(...t)};t.once("response",r(((r,n,i)=>{const o=new a(this.socket,t.readableHighWaterMark);this.res=o,o.req=this,o.statusCode=r[y],o.headers=r,o.rawHeaders=i,o.once("end",(()=>{this.aborted?(o.aborted=!0,o.emit("aborted")):(o.complete=!0,o.socket=null,o.connection=null)})),e?(o.upgrade=!0,this.emit("connect",o,t,Buffer.alloc(0))?this.emit("close"):t.destroy()):(t.on("data",(e=>{o._dumped||o.push(e)||t.pause()})),t.once("end",(()=>{o.push(null)})),this.emit("response",o)||o._dump())}))),t.once("headers",r((e=>this.emit("information",{statusCode:e[y]})))),t.once("trailers",r(((e,t,r)=>{const{res:n}=this;n.trailers=e,n.rawTrailers=r})));const{socket:n}=t.session;this.socket=n,this.connection=n;for(const e of this[C])e();this.emit("socket",this.socket)};if(this[k])try{t(this[k].request(this[_]))}catch(e){this.emit("error",e)}else{this.reusedSocket=!0;try{t(await this.agent.request(this[S],this[P],this[_]))}catch(e){this.emit("error",e)}}}getHeader(e){if("string"!=typeof e)throw new p("name","string",e);return this[_][e.toLowerCase()]}get headersSent(){return this[x]}removeHeader(e){if("string"!=typeof e)throw new p("name","string",e);if(this.headersSent)throw new h("remove");delete this[_][e.toLowerCase()]}setHeader(e,t){if(this.headersSent)throw new h("set");if("string"!=typeof e||!E.test(e)&&!l(e))throw new f("Header name",e);if(void 0===t)throw new m(t,e);if(D.test(t))throw new g("header content",e);this[_][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const r=()=>this._request.setTimeout(e,t);return this._request?r():this[C].push(r),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}}},1535:(e,t,r)=>{"use strict";const{Readable:n}=r(12781);e.exports=class extends n{constructor(e,t){super({highWaterMark:t,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){return this.req.setTimeout(e,t),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}}},81982:(e,t,r)=>{"use strict";const n=r(85158),i=r(36006),o=r(17008),s=r(1535),a=r(70409);e.exports={...n,ClientRequest:o,IncomingMessage:s,...i,request:(e,t,r)=>new o(e,t,r),get:(e,t,r)=>{const n=new o(e,t,r);return n.end(),n},auto:a}},67838:(e,t,r)=>{"use strict";const n=r(41808);e.exports=e=>{let t=e.host;const r=e.headers&&e.headers.host;return r&&(t=r.startsWith("[")?-1===r.indexOf("]")?r:r.slice(1,-1):r.split(":",1)[0]),n.isIP(t)?"":t}},51647:e=>{"use strict";const t=(t,r,n)=>{e.exports[r]=class extends t{constructor(...e){super("string"==typeof n?n:n(e)),this.name=`${super.name} [${r}]`,this.code=r}}};t(TypeError,"ERR_INVALID_ARG_TYPE",(e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`})),t(TypeError,"ERR_INVALID_PROTOCOL",(e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`)),t(Error,"ERR_HTTP_HEADERS_SENT",(e=>`Cannot ${e[0]} headers after they are sent to the client`)),t(TypeError,"ERR_INVALID_HTTP_TOKEN",(e=>`${e[0]} must be a valid HTTP token [${e[1]}]`)),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(e=>`Invalid value "${e[0]} for header "${e[1]}"`)),t(TypeError,"ERR_INVALID_CHAR",(e=>`Invalid character in ${e[0]} [${e[1]}]`))},50936:e=>{"use strict";e.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}},64107:e=>{"use strict";e.exports=(e,t,r)=>{for(const n of r)e.on(n,((...e)=>t.emit(n,...e)))}},37631:e=>{"use strict";e.exports=e=>{const t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return"string"==typeof e.port&&0!==e.port.length&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}},73909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0,t.SIGNALS=[{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"}]},3808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var n=r(22037),i=r(8175),o=r(91776);const s=(0,i.getSignals)().reduce((function(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}}}),{});t.signalsByName=s;const a=function(e,t){const r=t.find((({name:t})=>n.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},c=function(){const e=(0,i.getSignals)(),t=o.SIGRTMAX+1,r=Array.from({length:t},((t,r)=>function(e,t){const r=a(e,t);if(void 0===r)return{};const{name:n,description:i,supported:o,action:s,forced:c,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:c,standard:u}}}(r,e)));return Object.assign({},...r)}();t.signalsByNumber=c},91776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0,t.getRealtimeSignals=function(){const e=i-n+1;return Array.from({length:e},r)};const r=function(e,t){return{name:`SIGRT${t+1}`,number:n+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;t.SIGRTMAX=i},8175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var n=r(22037),i=r(73909),o=r(91776);t.getSignals=function(){const e=(0,o.getRealtimeSignals)();return[...i.SIGNALS,...e].map(s)};const s=function({name:e,number:t,description:r,action:i,forced:o=!1,standard:s}){const{signals:{[e]:a}}=n.constants,c=void 0!==a;return{name:e,number:c?a:t,description:r,supported:c,action:i,forced:o,standard:s}}},48156:(e,t,r)=>{var n=r(37534),i=Object.create(null),o=r(58034);function s(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick((function(){t.apply(null,o)}))):delete i[e]}}))}(e))}))},71947:(e,t,r)=>{try{var n=r(73837);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(27442)}},27442:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},55053:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContainerModule:()=>Ue,BindingScopeEnum:()=>y,BindingTypeEnum:()=>b,Container:()=>Be,ContainerModule:()=>$e,LazyServiceIdentifer:()=>B,METADATA_KEY:()=>at,MetadataReader:()=>O,TargetTypeEnum:()=>v,createTaggedDecorator:()=>He,decorate:()=>ze,getServiceIdentifierAsString:()=>M,id:()=>_,inject:()=>Ye,injectable:()=>Ke,interfaces:()=>it,multiBindToService:()=>ie,multiInject:()=>tt,named:()=>Qe,namedConstraint:()=>Pe,optional:()=>Ze,postConstruct:()=>ot,preDestroy:()=>st,tagged:()=>Je,taggedConstraint:()=>ke,targetName:()=>rt,traverseAncerstors:()=>Se,typeConstraint:()=>xe,unmanaged:()=>et});var n={};r.r(n),r.d(n,{DESIGN_PARAM_TYPES:()=>h,INJECT_TAG:()=>c,MULTI_INJECT_TAG:()=>u,NAMED_TAG:()=>i,NAME_TAG:()=>o,NON_CUSTOM_TAG_KEYS:()=>g,OPTIONAL_TAG:()=>a,PARAM_TYPES:()=>d,POST_CONSTRUCT:()=>f,PRE_DESTROY:()=>m,TAGGED:()=>l,TAGGED_PROP:()=>p,UNMANAGED_TAG:()=>s});var i="named",o="name",s="unmanaged",a="optional",c="inject",u="multi_inject",l="inversify:tagged",p="inversify:tagged_props",d="inversify:paramtypes",h="design:paramtypes",f="post_construct",m="pre_destroy",g=[c,u,o,s,i,a],y={Request:"Request",Singleton:"Singleton",Transient:"Transient"},b={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},v={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},w=0;function _(){return w++}var S=function(){function e(e,t){this.id=_(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=b.Invalid,this.constraint=function(e){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return e.prototype.clone=function(){var t=new e(this.serviceIdentifier,this.scope);return t.activated=t.scope===y.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.onDeactivation=this.onDeactivation,t.cache=this.cache,t},e}(),k="Metadata key was used more than once in a parameter:",P="NULL argument",x="Key Not Found",C="Missing required @injectable annotation in:",E="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",D=function(e,t){return"onDeactivation() error in class "+e+": "+t},O=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(d,e),userGeneratedMetadata:Reflect.getMetadata(l,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(p,e)||[]},e}();function T(e){return e instanceof RangeError||"Maximum call stack size exceeded"===e.message}function M(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function A(e,t,r){var n="",i=r(e,t);return 0!==i.length&&(n="\nRegistered bindings:",i.forEach((function(e){var t="Object";null!==e.implementationType&&(t=F(e.implementationType)),n=n+"\n "+t,e.constraint.metaData&&(n=n+" - "+e.constraint.metaData)}))),n}function j(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||j(e.parentRequest,t))}function R(e){e.childRequests.forEach((function(e){if(j(e,e.serviceIdentifier)){var t=function(e){return function e(t,r){void 0===r&&(r=[]);var n=M(t.serviceIdentifier);return r.push(n),null!==t.parentRequest?e(t.parentRequest,r):r}(e).reverse().join(" --\x3e ")}(e);throw new Error("Circular dependency found: "+t)}R(e)}))}function F(e){if(e.name)return e.name;var t=e.toString(),r=t.match(/^function\s*([^\s(]+)/);return r?r[1]:"Anonymous function: "+t}var I=function(){function e(e){this.id=_(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}(),L=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===i?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},e}(),N=function(e,t){this.parentContext=e,this.rootRequest=t},B=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}(),$=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t,r=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},r)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}(),U=function(){function e(e,t,r,n){this.id=_(),this.type=e,this.serviceIdentifier=r;var o="symbol"==typeof t?t.toString().slice(7,-1):t;this.name=new $(o||""),this.identifier=t,this.metadata=new Array;var s=null;"string"==typeof n?s=new L(i,n):n instanceof L&&(s=n),null!==s&&this.metadata.push(s)}return e.prototype.hasTag=function(e){for(var t=0,r=this.metadata;t0,u=a.length>r.length,l=function(e,t,r,n,i){for(var o=[],s=0;s0?a:z(e,r)}return 0}function K(e){var t={};return e.forEach((function(e){t[e.key.toString()]=e.value})),{inject:t[c],multiInject:t[u],targetName:t[o],unmanaged:t[s]}}var J=function(){function e(e,t,r,n,i){this.id=_(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=r,this.target=i,this.childRequests=[],this.bindings=Array.isArray(n)?n:[n],this.requestScope=null===r?new Map:null}return e.prototype.addChildRequest=function(t,r,n){var i=new e(t,this.parentContext,this,r,n);return this.childRequests.push(i),i},e}();function Q(e){return e._bindingDictionary}function X(e,t,r,n,i){var o,s=Z(r.container,i.serviceIdentifier);return 0===s.length&&r.container.options.autoBindInjectable&&"function"==typeof i.serviceIdentifier&&e.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(r.container.bind(i.serviceIdentifier).toSelf(),s=Z(r.container,i.serviceIdentifier)),o=t?s:s.filter((function(e){var t=new J(e.serviceIdentifier,r,n,e,i);return e.constraint(t)})),function(e,t,r,n){switch(t.length){case 0:if(r.isOptional())return t;var i=M(e),o="No matching bindings found for serviceIdentifier:";throw o+=function(e,t){if(t.isTagged()||t.isNamed()){var r="",n=t.getNamedTag(),i=t.getCustomTags();return null!==n&&(r+=n.toString()+"\n"),null!==i&&i.forEach((function(e){r+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+r}return" "+e}(i,r),o+=A(n,i,Z),new Error(o);case 1:return t;default:if(r.isArray())return t;throw o="Ambiguous match found for serviceIdentifier: "+(i=M(e)),o+=A(n,i,Z),new Error(o)}}(i.serviceIdentifier,o,i,r.container),o}function Y(e,t,r,n,i,o){var s,a;if(null===i){s=X(e,t,n,null,o),a=new J(r,n,null,s,o);var c=new N(n,a);n.addPlan(c)}else s=X(e,t,n,i,o),a=i.addChildRequest(o.serviceIdentifier,s,o);s.forEach((function(t){var r=null;if(o.isArray())r=a.addChildRequest(t.serviceIdentifier,t,o);else{if(t.cache)return;r=a}if(t.type===b.Instance&&null!==t.implementationType){var i=function(e,t){return V(e,F(t),t,!1)}(e,t.implementationType);if(!n.container.options.skipBaseClassChecks){var s=z(e,t.implementationType);if(i.length= than the number of constructor arguments of its base class."}(F(t.implementationType));throw new Error(c)}}i.forEach((function(t){Y(e,!1,t.serviceIdentifier,n,r,t)}))}}))}function Z(e,t){var r=[],n=Q(e);return n.hasKey(t)?r=n.get(t):null!==e.parent&&(r=Z(e.parent,t)),r}function ee(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function te(e){return!!ee(e)||Array.isArray(e)&&e.some(ee)}var re,ne=function(e,t){return r=void 0,n=void 0,o=function(){var r,n;return function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var i=function(e,t){return e.reduce((function(e,r){var n=t(r);return r.target.type===v.ConstructorArgument?e.constructorInjections.push(n):(e.propertyRequests.push(r),e.propertyInjections.push(n)),e.isAsync||(e.isAsync=te(n)),e}),{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}(t,r),o=oe(oe({},i),{constr:e});n=i.isAsync?function(e){return se(this,void 0,void 0,(function(){var t,r;return ae(this,(function(n){switch(n.label){case 0:return[4,ue(e.constructorInjections)];case 1:return t=n.sent(),[4,ue(e.propertyInjections)];case 2:return r=n.sent(),[2,ce(oe(oe({},e),{constructorInjections:t,propertyInjections:r}))]}}))}))}(o):ce(o)}else n=new e;return n}(t,r,n);return ee(i)?i.then((function(e){return le(t,e)})):le(t,i)}(r,r.implementationType,i,pe(e));break;default:n=de(r,t.parentContext)}return n},fe=function(e,t,r){var n=function(e,t){return t.scope===y.Singleton&&t.activated?t.cache:t.scope===y.Request&&e.has(t.id)?e.get(t.id):null}(e,t);return null!==n||function(e,t,r){t.scope===y.Singleton&&function(e,t){e.cache=t,e.activated=!0,ee(t)&&ne(e,t)}(t,r),t.scope===y.Request&&function(e,t,r){e.has(t.id)||e.set(t.id,r)}(e,t,r)}(e,t,n=r()),n},me=function(e,t,r){return fe(e,r,(function(){var n=he(e,t,r);return ee(n)?n.then((function(e){return ge(t,r,e)})):ge(t,r,n)}))};function ge(e,t,r){var n,i=ye(e.parentContext,t,r),o=_e(e.parentContext.container),s=o.next();do{n=s.value;var a=e.parentContext,c=e.serviceIdentifier,u=we(n,c);i=ee(i)?ve(u,a,i):be(u,a,i),s=o.next()}while(!0!==s.done&&!Q(n).hasKey(e.serviceIdentifier));return i}var ye=function(e,t,r){return"function"==typeof t.onActivation?t.onActivation(e,r):r},be=function(e,t,r){for(var n=e.next();!n.done;){if(ee(r=n.value(t,r)))return ve(e,t,r);n=e.next()}return r},ve=function(e,t,r){return n=void 0,i=void 0,s=function(){var n,i;return function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?this._map.set(e,t):this._map.delete(e)},e}(),Re=function(){function e(){this._map=new Map}return e.prototype.remove=function(e){if(this._map.has(e)){var t=this._map.get(e);return this._map.delete(e),t}return this._getEmptyHandlersStore()},e.prototype.addDeactivation=function(e,t,r){this._getModuleActivationHandlers(e).onDeactivations.add(t,r)},e.prototype.addActivation=function(e,t,r){this._getModuleActivationHandlers(e).onActivations.add(t,r)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,r){t._map.set(r,{onActivations:e.onActivations.clone(),onDeactivations:e.onDeactivations.clone()})})),t},e.prototype._getModuleActivationHandlers=function(e){var t=this._map.get(e);return void 0===t&&(t=this._getEmptyHandlersStore(),this._map.set(e,t)),t},e.prototype._getEmptyHandlersStore=function(){return{onActivations:new je,onDeactivations:new je}},e}(),Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";var n=r(93450),i=r(45201);function o(e){if("string"!=typeof e)throw new TypeError("isAbsolute expects a string.");return i()?o.win32(e):o.posix(e)}e.exports=o,o.posix=function(e){return"/"===e.charAt(0)},o.win32=function(e){return!(!/[a-z]/i.test(e.charAt(0))||":"!==e.charAt(1)||"\\"!==e.charAt(2))||"\\\\"===e.slice(0,2)||!n(e)}},45003:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},8584:e=>{e.exports=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},22767:(e,t,r)=>{var n=r(8584),i={"{":"}","(":")","[":"]"},o=function(e){if("!"===e[0])return!0;for(var t=0,r=-2,n=-2,o=-2,s=-2,a=-2;tt)){if(-1===a||a>n)return!0;if(-1===(a=e.indexOf("\\",t))||a>n)return!0}if(-1!==o&&"{"===e[t]&&"}"!==e[t+1]&&(o=e.indexOf("}",t))>t&&(-1===(a=e.indexOf("\\",t))||a>o))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(a=e.indexOf("\\",t))||a>s))return!0;if(-1!==r&&"("===e[t]&&"|"!==e[t+1]&&(rr&&(-1===(a=e.indexOf("\\",r))||a>s)))return!0;if("\\"===e[t]){var c=e[t+1];t+=2;var u=i[c];if(u){var l=e.indexOf(u,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},s=function(e){if("!"===e[0])return!0;for(var t=0;t{"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected a string");var t={negated:!1,pattern:e,original:e};return"!"===e.charAt(0)&&"("!==e.charAt(1)&&(t.negated=!0,t.pattern=e.slice(1)),t}},93450:(e,t,r)=>{"use strict";var n=r(80142);e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected filepath to be a string");return!n(e)&&!/^([a-z]:)?[\\\/]/i.test(e)}},2240:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState,e.exports=t},80142:(e,t,r)=>{"use strict";var n=r(60171)();e.exports=function(e){if("string"!=typeof e)throw new TypeError("expected a string");return n.test(e)}},45201:(e,t)=>{var r,n,i,o;o=function(){"use strict";return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}},t&&"object"==typeof t?e.exports=o():(n=[],void 0===(i="function"==typeof(r=o)?r.apply(t,n):r)||(e.exports=i))},148:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},64219:(e,t,r)=>{var n;function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}r(57147),n="win32"===process.platform||global.TESTING_WINDOWS?r(92514):r(67305),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},67305:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return o(n.statSync(e),t)};var n=r(57147);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&o(n,t))}))}function o(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&i===s||r&a&&n===o||r&(a|c)&&0===o}(e,t)}},92514:(e,t,r)=>{e.exports=o,o.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(57147);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(72959))},31991:(e,t)=>{"use strict";function r(e){const t=[];for(let r=0,n=e.length;r>6,128|63&n);else if(n<55296||n>=57344)t.push(224|n>>12,128|n>>6&63,128|63&n);else{let i=65536+((1023&n)<<10|1023&e.charCodeAt(++r));t.push(240|i>>18&7,128|i>>12&63,128|i>>6&63,128|63&i)}}return new Uint8Array(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8_1=function(e){const t=[],r=new Array(4),n=[0,192,224,240],i=[127,63,63,63],o=[0,128,128,128];for(const s of e){const e=r,a=s.codePointAt(0),c=0-(-(4294967168&a)>>31)-(-(4294965248&a)>>31)-(-(4294901760&a)>>31),u=i[c],l=o[c];e[3]=l|a&u,e[2]=l|a>>>6&u,e[1]=l|a>>>12&u,e[0]=l|a>>>18&u;const p=3-c;e[p]|=n[c],Array.prototype.push.apply(t,e.slice(p))}return new Uint8Array(t)},t.toUtf8_2=function(e){const t=[];for(const r of e){const e=r.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6&31,128|63&e):e<65536?t.push(224|e>>12&15,128|e>>6&63,128|63&e):t.push(240|e>>18&7,128|e>>12&63,128|e>>6&63,128|63&e)}return new Uint8Array(t)},t.toUtf8_3=r,t.toUtf8=r,t.default=t.toUtf8},72959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(31991),i=2654435761,o=2246822519,s=3266489917,a=668265263,c=374761393;t.xxHash32=function(e,t=0){const r=e="string"==typeof e?n.default(e):e;let u=t+c&4294967295,l=0;if(r.length>=16){const r=[t+i+o&4294967295,t+o&4294967295,t+0&4294967295,t-i&4294967295],n=e,s=n.length-16;let a=0;for(l=0;(4294967280&l)<=s;l+=4){const e=l,t=n[e+0]+(n[e+1]<<8),s=n[e+2]+(n[e+3]<<8),c=t*o+(s*o<<16);let u=r[a]+c&4294967295;u=u<<13|u>>>19;const p=65535&u,d=u>>>16;r[a]=p*i+(d*i<<16)&4294967295,a=a+1&3}u=(r[0]<<1|r[0]>>>31)+(r[1]<<7|r[1]>>>25)+(r[2]<<12|r[2]>>>20)+(r[3]<<18|r[3]>>>14)&4294967295}u=u+e.length&4294967295;let p=e.length-4;for(;l<=p;l+=4){const e=l,t=r[e+0]+(r[e+1]<<8),n=r[e+2]+(r[e+3]<<8);u=u+(t*s+(n*s<<16))&4294967295,u=u<<17|u>>>15,u=(65535&u)*a+((u>>>16)*a<<16)&4294967295}for(;l>>21,u=(65535&u)*i+((u>>>16)*i<<16)&4294967295;return u^=u>>>15,u=((65535&u)*o&4294967295)+((u>>>16)*o<<16),u^=u>>>13,u=((65535&u)*s&4294967295)+((u>>>16)*s<<16),u^=u>>>16,u<0?u+4294967296:u}},85733:(e,t)=>{t.stringify=function e(t){if(void 0===t)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&"object"==typeof t){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var o in t){var s="function"==typeof t[o]||!n&&void 0===t[o];Object.hasOwnProperty.call(t,o)&&!s&&(i||(r+=","),i=!1,n?null==t[o]?r+="null":r+=e(t[o]):void 0!==t[o]&&(r+=e(o)+":"+e(t[o])))}return r+(n?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},t.parse=function(e){return JSON.parse(e,(function(e,t){return"string"==typeof t?/^:base64:/.test(t)?Buffer.from(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t}))}},458:e=>{e.exports=function(e,n){n||(n={}),"function"==typeof n&&(n={cmp:n});var i=n.space||"";"number"==typeof i&&(i=Array(i+1).join(" "));var o,s="boolean"==typeof n.cycles&&n.cycles,a=n.replacer||function(e,t){return t},c=n.cmp&&(o=n.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return o(n,i)}}),u=[];return function e(n,o,l,p){var d=i?"\n"+new Array(p+1).join(i):"",h=i?": ":":";if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=a.call(n,o,l))){if("object"!=typeof l||null===l)return JSON.stringify(l);if(t(l)){for(var f=[],m=0;m{"use strict";const n=r(82361),i=r(85733);e.exports=class extends n{constructor(e,t){if(super(),this.opts=Object.assign({namespace:"keyv",serialize:i.stringify,deserialize:i.parse},"string"==typeof e?{uri:e}:e,t),!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=(e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const n=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(r(3196)(t[n]))(e)}return new Map})(e)}"function"==typeof this.opts.store.on&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e,t){const r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then((()=>n.get(r))).then((e=>"string"==typeof e?this.opts.deserialize(e):e)).then((r=>{if(void 0!==r){if(!("number"==typeof r.expires&&Date.now()>r.expires))return t&&t.raw?r:r.value;this.delete(e)}}))}set(e,t,r){const n=this._getKeyPrefix(e);void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const{store:i}=this.opts;return Promise.resolve().then((()=>{const e="number"==typeof r?Date.now()+r:null;return t={value:t,expires:e},this.opts.serialize(t)})).then((e=>i.set(n,e,r))).then((()=>!0))}delete(e){const t=this._getKeyPrefix(e),{store:r}=this.opts;return Promise.resolve().then((()=>r.delete(t)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}}},31158:(e,t,r)=>{"use strict";function n(e){this.j={},this.jr=[],this.jd=null,this.t=e}r.r(t),r.d(t,{Options:()=>ue,find:()=>Oe,init:()=>Ee,options:()=>pe,registerCustomProtocol:()=>Ce,registerPlugin:()=>xe,reset:()=>Pe,test:()=>Te,tokenize:()=>De}),n.prototype={accepts:function(){return!!this.t},tt:function(e,t){if(t&&t.j)return this.j[e]=t,t;var r=t,n=this.j[e];if(n)return r&&(n.t=r),n;n=i();var o=c(this,e);return o?(Object.assign(n.j,o.j),n.jr.append(o.jr),n.jr=o.jd,n.t=r||o.t):n.t=r,this.j[e]=n,n}};var i=function(){return new n},o=function(e){return new n(e)},s=function(e,t,r){e.j[t]||(e.j[t]=r)},a=function(e,t,r){e.jr.push([t,r])},c=function(e,t){var r=e.j[t];if(r)return r;for(var n=0;n=a)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:[],t=i(),r=o(m),n=o(d),c=i(),u=o(b),Z=[[ie,n],[te,n],[re,n],[ne,n]],se=function(){var e=o(d);return e.j={"-":c},e.jr=[].concat(Z),e},ae=function(e){var t=se();return t.t=e,t};l(t,[["'",o(O)],["{",o(w)],["[",o(_)],["<",o(S)],["(",o(k)],["}",o(P)],["]",o(x)],[">",o(C)],[")",o(E)],["&",o(D)],["*",o(T)],["@",o(M)],["`",o(j)],["^",o(R)],[":",o(F)],[",",o(I)],["$",o(L)],[".",o(N)],["=",o(B)],["!",o($)],["-",o(U)],["%",o(q)],["|",o(V)],["+",o(H)],["#",o(W)],["?",o(G)],['"',o(z)],["/",o(J)],[";",o(K)],["~",o(Q)],["_",o(X)],["\\",o(A)]]),s(t,"\n",o(v)),a(t,oe,u),s(u,"\n",i()),a(u,oe,u);for(var ce=0;ce2&&void 0!==arguments[2]?arguments[2]:{},n=Object.create(e.prototype);for(var i in r)n[i]=r[i];n.constructor=t,t.prototype=n}(de,r,t),r}de.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};var fe=he("email",{isLink:!0}),me=he("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),ge=he("text"),ye=he("nl"),be=he("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce.defaultProtocol,t=this.tk,r=!1,n=!1,i=[],o=0;t[o].t===g;)r=!0,i.push(t[o].v),o++;for(;t[o].t===J;)n=!0,i.push(t[o].v),o++;for(;o=0&&h++,i++,p++;if(h<0)for(var f=i-p;f0&&(o.push(_e(ge,t,s)),s=[]),i-=h,p-=h;var m=d.t,g=r.slice(i-p,i);o.push(_e(m,t,g))}}return s.length>0&&o.push(_e(ge,t,s)),o}(ke.parser.start,e,function(e,t){for(var r=function(e){for(var t=[],r=e.length,n=0;n56319||n+1===r||(o=e.charCodeAt(n+1))<56320||o>57343?e[n]:e.slice(n,n+2);t.push(s),n+=s.length}return t}(t.replace(/[A-Z]/g,(function(e){return e.toLowerCase()}))),n=r.length,i=[],o=0,s=0;s=0&&(d+=r[s].length,h++),l+=r[s].length,o+=r[s].length,s++;o-=d,s-=h,l-=d,i.push({t:p.t,v:t.substr(o-l,l),s:o-l,e:o})}return i}(ke.scanner.start,e))}function Oe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=De(e),n=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:null,r=De(e);return 1===r.length&&r[0].isLink&&(!t||r[0].t===t)}},13177:e=>{"use strict";e.exports=e=>{const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}},27119:(e,t,r)=>{"use strict";e.exports=y;var n,i=r(15637),o=r(73837),s=r(41741),a=(n="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(e){return Symbol(e)}:function(e){return"_"+e})("max"),c=n("length"),u=n("lengthCalculator"),l=n("allowStale"),p=n("maxAge"),d=n("dispose"),h=n("noDisposeOnSet"),f=n("lruList"),m=n("cache");function g(){return 1}function y(e){if(!(this instanceof y))return new y(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var r=e.length||g;"function"!=typeof r&&(r=g),this[u]=r,this[l]=e.stale||!1,this[p]=e.maxAge||0,this[d]=e.dispose,this[h]=e.noDisposeOnSet||!1,this.reset()}function b(e,t,r,n){var i=r.value;w(e,i)&&(S(e,r),e[l]||(i=void 0)),i&&t.call(n,i.value,i.key,e)}function v(e,t,r){var n=e[m].get(t);if(n){var i=n.value;w(e,i)?(S(e,n),e[l]||(i=void 0)):r&&e[f].unshiftNode(n),i&&(i=i.value)}return i}function w(e,t){if(!t||!t.maxAge&&!e[p])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[p]&&r>e[p]}function _(e){if(e[c]>e[a])for(var t=e[f].tail;e[c]>e[a]&&null!==t;){var r=t.prev;S(e,t),t=r}}function S(e,t){if(t){var r=t.value;e[d]&&e[d](r.key,r.value),e[c]-=r.length,e[m].delete(r.key),e[f].removeNode(t)}}function k(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}Object.defineProperty(y.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,_(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,_(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=g),e!==this[u]&&(this[u]=e,this[c]=0,this[f].forEach((function(e){e.length=this[u](e.value,e.key),this[c]+=e.length}),this)),_(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[f].length},enumerable:!0}),y.prototype.rforEach=function(e,t){t=t||this;for(var r=this[f].tail;null!==r;){var n=r.prev;b(this,e,r,t),r=n}},y.prototype.forEach=function(e,t){t=t||this;for(var r=this[f].head;null!==r;){var n=r.next;b(this,e,r,t),r=n}},y.prototype.keys=function(){return this[f].toArray().map((function(e){return e.key}),this)},y.prototype.values=function(){return this[f].toArray().map((function(e){return e.value}),this)},y.prototype.reset=function(){this[d]&&this[f]&&this[f].length&&this[f].forEach((function(e){this[d](e.key,e.value)}),this),this[m]=new i,this[f]=new s,this[c]=0},y.prototype.dump=function(){return this[f].map((function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},y.prototype.dumpLru=function(){return this[f]},y.prototype.inspect=function(e,t){var r="LRUCache {",n=!1;this[l]&&(r+="\n allowStale: true",n=!0);var i=this[a];i&&i!==1/0&&(n&&(r+=","),r+="\n max: "+o.inspect(i,t),n=!0);var s=this[p];s&&(n&&(r+=","),r+="\n maxAge: "+o.inspect(s,t),n=!0);var d=this[u];d&&d!==g&&(n&&(r+=","),r+="\n length: "+o.inspect(this[c],t),n=!0);var h=!1;return this[f].forEach((function(e){h?r+=",\n ":(n&&(r+=",\n"),h=!0,r+="\n ");var i=o.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),d!==g&&(a.length=e.length),w(this,e)&&(a.stale=!0),a=o.inspect(a,t).split("\n").join("\n "),r+=i+" => "+a})),(h||n)&&(r+="\n"),r+="}"},y.prototype.set=function(e,t,r){var n=(r=r||this[p])?Date.now():0,i=this[u](t,e);if(this[m].has(e)){if(i>this[a])return S(this,this[m].get(e)),!1;var o=this[m].get(e).value;return this[d]&&(this[h]||this[d](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[c]+=i-o.length,o.length=i,this.get(e),_(this),!0}var s=new k(e,t,i,n,r);return s.length>this[a]?(this[d]&&this[d](e,t),!1):(this[c]+=s.length,this[f].unshift(s),this[m].set(e,this[f].head),_(this),!0)},y.prototype.has=function(e){return!!this[m].has(e)&&!w(this,this[m].get(e).value)},y.prototype.get=function(e){return v(this,e,!0)},y.prototype.peek=function(e){return v(this,e,!1)},y.prototype.pop=function(){var e=this[f].tail;return e?(S(this,e),e.value):null},y.prototype.del=function(e){S(this,this[m].get(e))},y.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var o=i-t;o>0&&this.set(n.k,n.v,o)}}},y.prototype.prune=function(){var e=this;this[m].forEach((function(t,r){v(e,r,!1)}))}},81779:(e,t,r)=>{"use strict";const{PassThrough:n}=r(12781);e.exports=function(){var e=[],t=new n({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=i,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(n){return Array.isArray(n)?(n.forEach(r),this):(e.push(n),n.once("end",o.bind(null,n)),n.once("error",t.emit.bind(t,"error")),n.pipe(t,{end:!1}),this)}function i(){return 0==e.length}function o(r){!(e=e.filter((function(e){return e!==r}))).length&&t.readable&&t.end()}}},48586:(e,t,r)=>{"use strict";const n=r(73837),i=r(83610),o=r(57514),s=r(95266),a=e=>""===e||"./"===e,c=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,a=0,c=e=>{s.add(e.output),r&&r.onResult&&r.onResult(e)};for(let s=0;s!n.has(e)));if(r&&0===u.length){if(!0===r.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}return u};c.match=c,c.matcher=(e,t)=>o(e,t),c.any=c.isMatch=(e,t,r)=>o(t,r)(e),c.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],o=new Set(c(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),i.push(e.output)}}));for(let e of i)o.has(e)||n.add(e);return[...n]},c.contains=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>c.contains(e,t,r)));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...r,contains:!0})},c.matchKeys=(e,t,r)=>{if(!s.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=c(Object.keys(e),t,r),i={};for(let t of n)i[t]=e[t];return i},c.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(n.some((e=>t(e))))return!0}return!1},c.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!n.every((e=>t(e))))return!1}return!0},c.all=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(t).every((t=>o(t,r)(e)))},c.capture=(e,t,r)=>{let n=s.isWindows(r),i=o.makeRe(String(e),{...r,capture:!0}).exec(n?s.toPosixSlashes(t):t);if(i)return i.slice(1).map((e=>void 0===e?"":e))},c.makeRe=(...e)=>o.makeRe(...e),c.scan=(...e)=>o.scan(...e),c.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let e of i(String(n),t))r.push(o.parse(e,t));return r},c.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:i(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},e.exports=c},83610:(e,t,r)=>{"use strict";const n=r(15226),i=r(77104),o=r(5341),s=r(78707),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let e=a.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>s(e,t),a.stringify=(e,t={})=>n("string"==typeof e?a.parse(e,t):e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),i(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=o(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},77104:(e,t,r)=>{"use strict";const n=r(18459),i=r(13991);e.exports=(e,t={})=>{let r=(e,o={})=>{let s=i.isInvalidBrace(o),a=!0===e.invalid&&!0===t.escapeInvalid,c=!0===s||!0===a,u=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return u+e.value;if(!0===e.isClose)return u+e.value;if("open"===e.type)return c?u+e.value:"(";if("close"===e.type)return c?u+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes),o=n(...r,{...t,wrap:!1,toRegex:!0});if(0!==o.length)return r.length>1&&o.length>1?`(${o})`:o}if(e.nodes)for(let t of e.nodes)l+=r(t,e);return l};return r(e)}},47874:e=>{"use strict";e.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5341:(e,t,r)=>{"use strict";const n=r(18459),i=r(15226),o=r(13991),s=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?o.flatten(t).map((e=>`{${e}}`)):t;for(let i of e)if(Array.isArray(i))for(let e of i)n.push(s(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),n.push(Array.isArray(e)?s(i,e,r):i+e);return o.flatten(n)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,c={})=>{e.queue=[];let u=c,l=c.queue;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,l=u.queue;if(e.invalid||e.dollar)return void l.push(s(l.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(s(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){let a=o.reduce(e.nodes);if(o.exceedsLimit(...a,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=n(...a,t);return 0===c.length&&(c=i(e,t)),l.push(s(l.pop(),c)),void(e.nodes=[])}let p=o.encloseBrace(e),d=e.queue,h=e;for(;"brace"!==h.type&&"root"!==h.type&&h.parent;)h=h.parent,d=h.queue;for(let t=0;t{"use strict";const n=r(15226),{MAX_LENGTH:i,CHAR_BACKSLASH:o,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=r(47874);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let r=t||{},v="number"==typeof r.maxLength?Math.min(i,r.maxLength):i;if(e.length>v)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${v})`);let w,_={type:"root",input:e,nodes:[]},S=[_],k=_,P=_,x=0,C=e.length,E=0,D=0;const O=()=>e[E++],T=e=>{if("text"===e.type&&"dot"===P.type&&(P.type="text"),!P||"text"!==P.type||"text"!==e.type)return k.nodes.push(e),e.parent=k,e.prev=P,P=e,e;P.value+=e.value};for(T({type:"bos"});E0){if(k.ranges>0){k.ranges=0;let e=k.nodes.shift();k.nodes=[e,{type:"text",value:n(k)}]}T({type:"comma",value:w}),k.commas++}else if(w===c&&D>0&&0===k.commas){let e=k.nodes;if(0===D||0===e.length){T({type:"text",value:w});continue}if("dot"===P.type){if(k.range=[],P.value+=w,P.type="range",3!==k.nodes.length&&5!==k.nodes.length){k.invalid=!0,k.ranges=0,P.type="text";continue}k.ranges++,k.args=[];continue}if("range"===P.type){e.pop();let t=e[e.length-1];t.value+=P.value+w,P=t,k.ranges--;continue}T({type:"dot",value:w})}else T({type:"text",value:w});else{if("brace"!==k.type){T({type:"text",value:w});continue}let e="close";k=S.pop(),k.close=!0,T({type:e,value:w}),D--,k=S[S.length-1]}else{D++;let e=P.value&&"$"===P.value.slice(-1)||!0===k.dollar;k=T({type:"brace",open:!0,close:!1,dollar:e,depth:D,commas:0,ranges:0,nodes:[]}),S.push(k),T({type:"open",value:w})}else{let e,r=w;for(!0!==t.keepQuotes&&(w="");E{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=S[S.length-1],t=e.nodes.indexOf(k);e.nodes.splice(t,1,...k.nodes)}}while(S.length>0);return T({type:"eos"}),_}},15226:(e,t,r)=>{"use strict";const n=r(13991);e.exports=(e,t={})=>{let r=(e,i={})=>{let o=t.escapeInvalid&&n.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(o||s)&&n.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=r(t);return a};return r(e)}},13991:(e,t)=>{"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,r,n=1,i)=>!1!==i&&!(!t.isInteger(e)||!t.isInteger(r))&&(Number(r)-Number(e))/Number(n)>=i,t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||"open"===n.type||"close"===n.type)&&!0!==n.escaped&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges>>0!=0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],r=e=>{for(let n=0;n{"use strict";const n=r(73837),i=r(95109),o=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},u=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},l=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length{if(r)return i(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},d=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)},h=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e)),f=(e,t,r)=>{if(!0===r.strictRanges)throw h([e,t]);return[]},m=(e,t,r,n={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return f(e,t,n);if("function"==typeof r)return m(e,t,1,{transform:r});if(o(r))return m(e,t,0,r);let i={...n};return!0===i.capture&&(i.wrap=!0),r=r||i.step||1,a(r)?a(e)&&a(t)?((e,t,r=1,n={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(!0===n.strictRanges)throw h([e,t]);return[]}0===i&&(i=0),0===o&&(o=0);let s=i>o,a=String(e),f=String(t),m=String(r);r=Math.max(Math.abs(r),1);let g=c(a)||c(f)||c(m),y=g?Math.max(a.length,f.length,m.length):0,b=!1===g&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,n),v=n.transform||(e=>t=>!0===e?Number(t):String(t))(b);if(n.toRegex&&1===r)return p(l(e,y),l(t,y),!0,n);let w={negatives:[],positives:[]},_=[],S=0;for(;s?i>=o:i<=o;)!0===n.toRegex&&r>1?w[(k=i)<0?"negatives":"positives"].push(Math.abs(k)):_.push(u(v(i,S),y,b)),i=s?i-r:i+r,S++;var k;return!0===n.toRegex?r>1?((e,t)=>{e.negatives.sort(((e,t)=>et?1:0)),e.positives.sort(((e,t)=>et?1:0));let r,n=t.capture?"":"?:",i="",o="";return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(o=`-(${n}${e.negatives.join("|")})`),r=i&&o?`${i}|${o}`:i||o,t.wrap?`(${n}${r})`:r})(w,n):d(_,null,{wrap:!1,...n}):_})(e,t,r,i):((e,t,r=1,n={})=>{if(!a(e)&&e.length>1||!a(t)&&t.length>1)return f(e,t,n);let i=n.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),c=o>s,u=Math.min(o,s),l=Math.max(o,s);if(n.toRegex&&1===r)return p(u,l,!1,n);let h=[],m=0;for(;c?o>=s:o<=s;)h.push(i(o,m)),o=c?o-r:o+r,m++;return!0===n.toRegex?d(h,null,{wrap:!1,options:n}):h})(e,t,Math.max(Math.abs(r),1),i):null==r||o(r)?m(e,t,1,r):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(r,i)};e.exports=m},20535:e=>{"use strict";e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},95109:(e,t,r)=>{"use strict";const n=r(20535),i=(e,t,r)=>{if(!1===n(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===n(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let c=e+":"+t+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(i.cache.hasOwnProperty(c))return i.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(1===Math.abs(u-l)){let r=e+"|"+t;return o.capture?`(${r})`:!1===o.wrap?r:`(?:${r})`}let p=h(e)||h(t),d={min:e,max:t,a:u,b:l},f=[],m=[];return p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0&&(m=s(l<0?Math.abs(l):1,Math.abs(u),d,o),u=d.a=0),l>=0&&(f=s(u,l,d,o)),d.negatives=m,d.positives=f,d.result=function(e,t,r){let n=a(e,t,"-",!1)||[],i=a(t,e,"",!1)||[],o=a(e,t,"-?",!0)||[];return n.concat(o).concat(i).join("|")}(m,f),!0===o.capture?d.result=`(${d.result})`:!1!==o.wrap&&f.length+m.length>1&&(d.result=`(?:${d.result})`),i.cache[c]=d,d.result};function o(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=function(e,t){let r=[];for(let n=0;n1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+d(i.count),u=t+1)}return a}function a(e,t,r,n,i){let o=[];for(let i of e){let{string:e}=i;n||u(t,"string",e)||o.push(r+e),n&&u(t,"string",e)&&o.push(r+e)}return o}function c(e,t){return e>t?1:t>e?-1:0}function u(e,t,r){return e.some((e=>e[t]===r))}function l(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function h(e){return/^-?(0+)\d/.test(e)}function f(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=!1!==r.relaxZeros;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i},51991:e=>{"use strict";const t=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};e.exports=t,e.exports.default=t},53373:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n)t in r||(r[t]="function"==typeof e[t]?e[t].bind(e):e[t])}},45076:(e,t,r)=>{e.exports=d,d.Minimatch=h;var n={sep:"/"};try{n=r(71017)}catch(e){}var i=d.GLOBSTAR=h.GLOBSTAR={},o=r(19158),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",u="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),l=/\/+/;function p(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function d(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new h(t,r).match(e))}function h(e,t){if(!(this instanceof h))return new h(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function f(e,t){if(t||(t=this instanceof h?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}d.filter=function(e,t){return t=t||{},function(r,n,i){return d(r,e,t)}},d.defaults=function(e){if(!e||!Object.keys(e).length)return d;var t=d,r=function(r,n,i){return t.minimatch(r,n,p(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,p(e,n))},r},h.defaults=function(e){return e&&Object.keys(e).length?d.defaults(e).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(l)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return i;if(""===e)return"";var n,o="",l=!!r.nocase,p=!1,d=[],h=[],f=!1,g=-1,y=-1,b="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function w(){if(n){switch(n){case"*":o+=c,l=!0;break;case"?":o+=a,l=!0;break;default:o+="\\"+n}v.debug("clearStateChar %j %j",n,o),n=!1}}for(var _,S=0,k=e.length;S-1;T--){var M=h[T],A=o.slice(0,M.reStart),j=o.slice(M.reStart,M.reEnd-8),R=o.slice(M.reEnd-8,M.reEnd),F=o.slice(M.reEnd);R+=F;var I=A.split("(").length-1,L=F;for(S=0;S=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,d,t,h),d!==a))}if("string"==typeof l?(u=n.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},48632:e=>{var t=1e3,r=60*t,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=i?o(a,c,i,"day"):c>=n?o(a,c,n,"hour"):c>=r?o(a,c,r,"minute"):c>=t?o(a,c,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},16477:(e,t,r)=>{e=r.nmd(e);try{process.dlopen(e,__dirname+r(71017).sep+r.p+"25b0f220a897d7433728f6f34169bdbf.node")}catch(e){throw new Error("node-loader:\n"+e)}},48050:e=>{"use strict";const t=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));e.exports=(e,r)=>{if(r={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...r},e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const r=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:o}=r.groups;const s=n.split(";");o=t?"":o;let a=!1;"base64"===s[s.length-1]&&(s.pop(),a=!0);const c=(s.shift()||"").toLowerCase(),u=[...s.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return a&&u.push("base64"),(0!==u.length||c&&"text/plain"!==c)&&u.unshift(c),`data:${u.join(";")},${a?i.trim():i}${o?`#${o}`:""}`})(e,r);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");const n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,r.defaultProtocol));const i=new URL(e);if(r.forceHttp&&r.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(r.forceHttp&&"https:"===i.protocol&&(i.protocol="http:"),r.forceHttps&&"http:"===i.protocol&&(i.protocol="https:"),r.stripAuthentication&&(i.username="",i.password=""),r.stripHash?i.hash="":r.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?0){let e=i.pathname.split("/");const n=e[e.length-1];t(n,r.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),i.pathname=e.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),r.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(r.removeQueryParameters))for(const e of[...i.searchParams.keys()])t(e,r.removeQueryParameters)&&i.searchParams.delete(e);!0===r.removeQueryParameters&&(i.search=""),r.sortQueryParameters&&i.searchParams.sort(),r.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));const o=e;return e=i.toString(),r.removeSingleSlash||"/"!==i.pathname||o.endsWith("/")||""!==i.hash||(e=e.replace(/\/$/,"")),(r.removeTrailingSlash||"/"===i.pathname)&&""===i.hash&&r.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!r.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),r.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},35191:(e,t,r)=>{"use strict";const n=r(71017),i=r(18706),o=e=>{let t;e={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...e};let r=n.resolve(e.cwd);const o=[];for(;t!==r;)o.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");const s=n.resolve(e.cwd,e.execPath,"..");return o.push(s),o.concat(e.path).join(n.delimiter)};e.exports=o,e.exports.default=o,e.exports.env=t=>{const r={...(t={env:process.env,...t}).env},n=i({env:r});return t.path=r[n],r[n]=e.exports(t),r}},18706:e=>{"use strict";const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},4264:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var s,a,c=i(e),u=1;u{var n=r(37534);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},22106:(e,t,r)=>{"use strict";const n=r(51991),i=new WeakMap,o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,o=0;const s=e.displayName||e.name||"",a=function(...n){if(i.set(a,++o),1===o)r=e.apply(this,n),e=null;else if(!0===t.throw)throw new Error(`Function \`${s}\` can only be called once`);return r};return n(a,e),i.set(a,o),a};e.exports=o,e.exports.default=o,e.exports.callCount=e=>{if(!i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i.get(e)}},41422:(e,t,r)=>{var n=r(87177);function i(e,t){if(!function(e){return"function"==typeof e.pipe&&!!e.readable&&"function"==typeof e._read&&!!e._readableState}(t))throw new Error("All input streams must be readable");var r=this;t._buffer=[],t.on("readable",(function(){for(var n=t.read();n;)this===e[0]?r.push(n):this._buffer.push(n),n=t.read()})),t.on("end",(function(){for(var t=e[0];t&&t._readableState.ended;t=e[0]){for(;t._buffer.length;)r.push(t._buffer.shift());e.shift()}e.length||r.push(null)})),t.on("error",this.emit.bind(this,"error")),e.push(t)}function o(e,t){if(!(this instanceof o))return new o(e,t);if(e=e||[],(t=t||{}).objectMode=!0,n.call(this,t),Array.isArray(e)||(e=[e]),!e.length)return this.push(null);var r=i.bind(this,[]);e.forEach((function(e){Array.isArray(e)?e.forEach(r):r(e)}))}r(73837).inherits(o,n),o.prototype._read=function(){},e.exports=o},69730:(e,t,r)=>{"use strict";var n=r(65952),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=Object.create(r(41276));o.inherits=r(71947);var s=r(78390),a=r(18650);o.inherits(p,s);for(var c=i(a.prototype),u=0;u{"use strict";e.exports=o;var n=r(41999),i=Object.create(r(41276));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(71947),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},78390:(e,t,r)=>{"use strict";var n=r(65952);e.exports=b;var i,o=r(148);b.ReadableState=y,r(82361).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=r(36017),c=r(72748).Buffer,u=global.Uint8Array||function(){},l=Object.create(r(41276));l.inherits=r(71947);var p=r(73837),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,f=r(46505),m=r(55708);l.inherits(b,a);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(69730));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(79514).s),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(69730),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function v(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,s)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):x(e,s)):w(e,s,t,!1))):n||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(P,e):P(e))}function P(e){d("emit readable"),e.emit("readable"),O(e)}function x(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0==(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?y:c;function c(){d("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",(function t(n,o){d("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,d("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var l=!1,p=!1;function h(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==j(i.pipes,e))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function f(t){d("onerror",t),y(),e.removeListener("error",f),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){d("onfinish"),e.removeListener("close",m),y()}function y(){d("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?o(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{"use strict";e.exports=s;var n=r(69730),i=Object.create(r(41276));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n=r(65952);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;g.WritableState=m;var a=Object.create(r(41276));a.inherits=r(71947);var c,u={deprecate:r(34247)},l=r(36017),p=r(72748).Buffer,d=global.Uint8Array||function(){},h=r(55708);function f(){}function m(e,t){o=o||r(69730),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,r,i,t,o);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?s(b,e,r,a,o):b(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function g(e){if(o=o||r(69730),!(c.call(g,this)||this instanceof o))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function y(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,y(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,p=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=w(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}a.inherits(g,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===g&&e&&e._writableState instanceof m}})):c=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,p.isBuffer(i)||i instanceof d);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=f),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},46505:(e,t,r)=>{"use strict";var n=r(72748).Buffer,i=r(73837);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,r=s,o.data.copy(t,r),s+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},55708:(e,t,r)=>{"use strict";var n=r(65952);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},36017:(e,t,r)=>{e.exports=r(12781)},87177:(e,t,r)=>{var n=r(12781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r(78390)).Stream=n||t,t.Readable=t,t.Writable=r(18650),t.Duplex=r(69730),t.Transform=r(41999),t.PassThrough=r(58272))},79514:(e,t,r)=>{"use strict";var n=r(72748).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},84294:(e,t,r)=>{"use strict";var n=r(22037);e.exports="function"==typeof n.homedir?n.homedir:function(){var e=process.env,t=e.HOME,r=e.LOGNAME||e.USER||e.LNAME||e.USERNAME;return"win32"===process.platform?e.USERPROFILE||e.HOMEDRIVE+e.HOMEPATH||t||null:"darwin"===process.platform?t||(r?"/Users/"+r:null):"linux"===process.platform?t||(0===process.getuid()?"/root":r?"/home/"+r:null):t||null}},44552:e=>{"use strict";class t extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class r{static fn(e){return(...t)=>new r(((r,n,i)=>{t.push(i),e(...t).then(r,n)}))}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise(((t,r)=>{this._reject=r;const n=e=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(e)};return Object.defineProperties(n,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}}),e((e=>{this._isCanceled&&n.shouldReject||(this._isPending=!1,t(e))}),(e=>{this._isPending=!1,r(e)}),n)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(this._isPending&&!this._isCanceled){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){return void this._reject(e)}this._rejectOnCancel&&this._reject(new t(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(r.prototype,Promise.prototype),e.exports=r,e.exports.CancelError=t},89991:e=>{"use strict";function t(e){return"/"===e.charAt(0)}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?r:t,e.exports.posix=t,e.exports.win32=r},57514:(e,t,r)=>{"use strict";e.exports=r(53442)},87654:(e,t,r)=>{"use strict";const n=r(71017),i="\\.{1,2}(?:\\/|$)",o={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:`(?!(?:^|\\/)${i})`,NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:`(?!${i})`,QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},s={...o,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?s:o}},61159:(e,t,r)=>{"use strict";const n=r(87654),i=r(95266),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n,l=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return r},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=u[e]||e;const r={...t},h="number"==typeof r.maxLength?Math.min(o,r.maxLength):o;let f=e.length;if(f>h)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${h}`);const m={type:"bos",value:"",output:r.prepend||""},g=[m],y=r.capture?"":"?:",b=i.isWindows(t),v=n.globChars(b),w=n.extglobChars(v),{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:k,ONE_CHAR:P,DOTS_SLASH:x,NO_DOT:C,NO_DOT_SLASH:E,NO_DOTS_SLASH:D,QMARK:O,QMARK_NO_DOT:T,STAR:M,START_ANCHOR:A}=v,j=e=>`(${y}(?:(?!${A}${e.dot?x:_}).)*?)`,R=r.dot?"":C,F=r.dot?O:T;let I=!0===r.bash?j(r):M;r.capture&&(I=`(${I})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const L={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=i.removePrefix(e,L),f=e.length;const N=[],B=[],$=[];let U,q=m;const V=()=>L.index===f-1,H=L.peek=(t=1)=>e[L.index+t],W=L.advance=()=>e[++L.index]||"",G=()=>e.slice(L.index+1),z=(e="",t=0)=>{L.consumed+=e,L.index+=t},K=e=>{L.output+=null!=e.output?e.output:e.value,z(e.value)},J=()=>{let e=1;for(;"!"===H()&&("("!==H(2)||"?"===H(3));)W(),L.start++,e++;return e%2!=0&&(L.negated=!0,L.start++,!0)},Q=e=>{L[e]++,$.push(e)},X=e=>{L[e]--,$.pop()},Y=e=>{if("globstar"===q.type){const t=L.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||N.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(L.output=L.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=I,L.output+=q.output)}if(N.length&&"paren"!==e.type&&(N[N.length-1].inner+=e.value),(e.value||e.output)&&K(e),q&&"text"===q.type&&"text"===e.type)return q.value+=e.value,void(q.output=(q.output||"")+e.value);e.prev=q,g.push(e),q=e},Z=(e,t)=>{const n={...w[t],conditions:1,inner:""};n.prev=q,n.parens=L.parens,n.output=L.output;const i=(r.capture?"(":"")+n.open;Q("parens"),Y({type:e,value:t,output:L.output?"":P}),Y({type:"paren",extglob:!0,value:W(),output:i}),N.push(n)},ee=e=>{let n,i=e.close+(r.capture?")":"");if("negate"===e.type){let o=I;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(o=j(r)),(o!==I||V()||/^\)+$/.test(G()))&&(i=e.close=`)$))${o}`),e.inner.includes("*")&&(n=G())&&/^\.[^\\/.]+$/.test(n)){const r=d(n,{...t,fastpaths:!1}).output;i=e.close=`)${r})${o})`}"bos"===e.prev.type&&(L.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:U,output:i}),X("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,o=e.replace(c,((e,t,r,i,o,s)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(o?O.repeat(o.length):""):0===s?F+(o?O.repeat(o.length):""):O.repeat(r.length):"."===i?_.repeat(r.length):"*"===i?t?t+i+(o?I:""):I:t?e:`\\${e}`));return!0===n&&(o=!0===r.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===r.contains?(L.output=e,L):(L.output=i.wrapOutput(o,L,t),L)}for(;!V();){if(U=W(),"\0"===U)continue;if("\\"===U){const e=H();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){U+="\\",Y({type:"text",value:U});continue}const t=/^\\+/.exec(G());let n=0;if(t&&t[0].length>2&&(n=t[0].length,L.index+=n,n%2!=0&&(U+="\\")),!0===r.unescape?U=W():U+=W(),0===L.brackets){Y({type:"text",value:U});continue}}if(L.brackets>0&&("]"!==U||"["===q.value||"[^"===q.value)){if(!1!==r.posix&&":"===U){const e=q.value.slice(1);if(e.includes("[")&&(q.posix=!0,e.includes(":"))){const e=q.value.lastIndexOf("["),t=q.value.slice(0,e),r=q.value.slice(e+2),n=s[r];if(n){q.value=t+n,L.backtrack=!0,W(),m.output||1!==g.indexOf(q)||(m.output=P);continue}}}("["===U&&":"!==H()||"-"===U&&"]"===H())&&(U=`\\${U}`),"]"!==U||"["!==q.value&&"[^"!==q.value||(U=`\\${U}`),!0===r.posix&&"!"===U&&"["===q.value&&(U="^"),q.value+=U,K({value:U});continue}if(1===L.quotes&&'"'!==U){U=i.escapeRegex(U),q.value+=U,K({value:U});continue}if('"'===U){L.quotes=1===L.quotes?0:1,!0===r.keepQuotes&&Y({type:"text",value:U});continue}if("("===U){Q("parens"),Y({type:"paren",value:U});continue}if(")"===U){if(0===L.parens&&!0===r.strictBrackets)throw new SyntaxError(p("opening","("));const e=N[N.length-1];if(e&&L.parens===e.parens+1){ee(N.pop());continue}Y({type:"paren",value:U,output:L.parens?")":"\\)"}),X("parens");continue}if("["===U){if(!0!==r.nobracket&&G().includes("]"))Q("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));U=`\\${U}`}Y({type:"bracket",value:U});continue}if("]"===U){if(!0===r.nobracket||q&&"bracket"===q.type&&1===q.value.length){Y({type:"text",value:U,output:`\\${U}`});continue}if(0===L.brackets){if(!0===r.strictBrackets)throw new SyntaxError(p("opening","["));Y({type:"text",value:U,output:`\\${U}`});continue}X("brackets");const e=q.value.slice(1);if(!0===q.posix||"^"!==e[0]||e.includes("/")||(U=`/${U}`),q.value+=U,K({value:U}),!1===r.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(q.value);if(L.output=L.output.slice(0,-q.value.length),!0===r.literalBrackets){L.output+=t,q.value=t;continue}q.value=`(${y}${t}|${q.value})`,L.output+=q.value;continue}if("{"===U&&!0!==r.nobrace){Q("braces");const e={type:"brace",value:U,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};B.push(e),Y(e);continue}if("}"===U){const e=B[B.length-1];if(!0===r.nobrace||!e){Y({type:"text",value:U,output:U});continue}let t=")";if(!0===e.dots){const e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=l(n,r),L.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=L.output.slice(0,e.outputIndex),n=L.tokens.slice(e.tokensIndex);e.value=e.output="\\{",U=t="\\}",L.output=r;for(const e of n)L.output+=e.output||e.value}Y({type:"brace",value:U,output:t}),X("braces"),B.pop();continue}if("|"===U){N.length>0&&N[N.length-1].conditions++,Y({type:"text",value:U});continue}if(","===U){let e=U;const t=B[B.length-1];t&&"braces"===$[$.length-1]&&(t.comma=!0,e="|"),Y({type:"comma",value:U,output:e});continue}if("/"===U){if("dot"===q.type&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",g.pop(),q=m;continue}Y({type:"slash",value:U,output:k});continue}if("."===U){if(L.braces>0&&"dot"===q.type){"."===q.value&&(q.output=_);const e=B[B.length-1];q.type="dots",q.output+=U,q.value+=U,e.dots=!0;continue}if(L.braces+L.parens===0&&"bos"!==q.type&&"slash"!==q.type){Y({type:"text",value:U,output:_});continue}Y({type:"dot",value:U,output:_});continue}if("?"===U){if((!q||"("!==q.value)&&!0!==r.noextglob&&"("===H()&&"?"!==H(2)){Z("qmark",U);continue}if(q&&"paren"===q.type){const e=H();let t=U;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===q.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(G()))&&(t=`\\${U}`),Y({type:"text",value:U,output:t});continue}if(!0!==r.dot&&("slash"===q.type||"bos"===q.type)){Y({type:"qmark",value:U,output:T});continue}Y({type:"qmark",value:U,output:O});continue}if("!"===U){if(!0!==r.noextglob&&"("===H()&&("?"!==H(2)||!/[!=<:]/.test(H(3)))){Z("negate",U);continue}if(!0!==r.nonegate&&0===L.index){J();continue}}if("+"===U){if(!0!==r.noextglob&&"("===H()&&"?"!==H(2)){Z("plus",U);continue}if(q&&"("===q.value||!1===r.regex){Y({type:"plus",value:U,output:S});continue}if(q&&("bracket"===q.type||"paren"===q.type||"brace"===q.type)||L.parens>0){Y({type:"plus",value:U});continue}Y({type:"plus",value:S});continue}if("@"===U){if(!0!==r.noextglob&&"("===H()&&"?"!==H(2)){Y({type:"at",extglob:!0,value:U,output:""});continue}Y({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U=`\\${U}`);const e=a.exec(G());e&&(U+=e[0],L.index+=e[0].length),Y({type:"text",value:U});continue}if(q&&("globstar"===q.type||!0===q.star)){q.type="star",q.star=!0,q.value+=U,q.output=I,L.backtrack=!0,L.globstar=!0,z(U);continue}let t=G();if(!0!==r.noextglob&&/^\([^?]/.test(t)){Z("star",U);continue}if("star"===q.type){if(!0===r.noglobstar){z(U);continue}const n=q.prev,i=n.prev,o="slash"===n.type||"bos"===n.type,s=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!o||t[0]&&"/"!==t[0])){Y({type:"star",value:U,output:""});continue}const a=L.braces>0&&("comma"===n.type||"brace"===n.type),c=N.length&&("pipe"===n.type||"paren"===n.type);if(!o&&"paren"!==n.type&&!a&&!c){Y({type:"star",value:U,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[L.index+4];if(r&&"/"!==r)break;t=t.slice(3),z("/**",3)}if("bos"===n.type&&V()){q.type="globstar",q.value+=U,q.output=j(r),L.output=q.output,L.globstar=!0,z(U);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!s&&V()){L.output=L.output.slice(0,-(n.output+q.output).length),n.output=`(?:${n.output}`,q.type="globstar",q.output=j(r)+(r.strictSlashes?")":"|$)"),q.value+=U,L.globstar=!0,L.output+=n.output+q.output,z(U);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";L.output=L.output.slice(0,-(n.output+q.output).length),n.output=`(?:${n.output}`,q.type="globstar",q.output=`${j(r)}${k}|${k}${e})`,q.value+=U,L.output+=n.output+q.output,L.globstar=!0,z(U+W()),Y({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){q.type="globstar",q.value+=U,q.output=`(?:^|${k}|${j(r)}${k})`,L.output=q.output,L.globstar=!0,z(U+W()),Y({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-q.output.length),q.type="globstar",q.output=j(r),q.value+=U,L.output+=q.output,L.globstar=!0,z(U);continue}const n={type:"star",value:U,output:I};!0!==r.bash?!q||"bracket"!==q.type&&"paren"!==q.type||!0!==r.regex?(L.index!==L.start&&"slash"!==q.type&&"dot"!==q.type||("dot"===q.type?(L.output+=E,q.output+=E):!0===r.dot?(L.output+=D,q.output+=D):(L.output+=R,q.output+=R),"*"!==H()&&(L.output+=P,q.output+=P)),Y(n)):(n.output=U,Y(n)):(n.output=".*?","bos"!==q.type&&"slash"!==q.type||(n.output=R+n.output),Y(n))}for(;L.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));L.output=i.escapeLast(L.output,"["),X("brackets")}for(;L.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing",")"));L.output=i.escapeLast(L.output,"("),X("parens")}for(;L.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","}"));L.output=i.escapeLast(L.output,"{"),X("braces")}if(!0===r.strictSlashes||"star"!==q.type&&"bracket"!==q.type||Y({type:"maybe_slash",value:"",output:`${k}?`}),!0===L.backtrack){L.output="";for(const e of L.tokens)L.output+=null!=e.output?e.output:e.value,e.suffix&&(L.output+=e.suffix)}return L};d.fastpaths=(e,t)=>{const r={...t},s="number"==typeof r.maxLength?Math.min(o,r.maxLength):o,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=u[e]||e;const c=i.isWindows(t),{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:b}=n.globChars(c),v=r.dot?m:f,w=r.dot?g:f,_=r.capture?"":"?:";let S=!0===r.bash?".*?":y;r.capture&&(S=`(${S})`);const k=e=>!0===e.noglobstar?S:`(${_}(?:(?!${b}${e.dot?h:l}).)*?)`,P=e=>{switch(e){case"*":return`${v}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${v}${S}${l}${d}${S}`;case"*/*":return`${v}${S}${p}${d}${w}${S}`;case"**":return v+k(r);case"**/*":return`(?:${v}${k(r)}${p})?${w}${d}${S}`;case"**/*.*":return`(?:${v}${k(r)}${p})?${w}${S}${l}${d}${S}`;case"**/.*":return`(?:${v}${k(r)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=P(t[1]);if(!r)return;return r+l+t[2]}}},x=i.removePrefix(e,{negated:!1,prefix:""});let C=P(x);return C&&!0!==r.strictSlashes&&(C+=`${p}?`),C},e.exports=d},53442:(e,t,r)=>{"use strict";const n=r(71017),i=r(97965),o=r(61159),s=r(95266),a=r(87654),c=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map((e=>c(e,t,r))),i=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return i}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=s.isWindows(t),u=n?c.compileRe(e,t):c.makeRe(e,t,!1,!0),l=u.state;delete u.state;let p=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=c(o.ignore,e,r)}const d=(r,n=!1)=>{const{isMatch:i,match:s,output:d}=c.test(r,u,t,{glob:e,posix:a}),h={glob:e,state:l,regex:u,posix:a,input:r,output:d,match:s,isMatch:i};return"function"==typeof o.onResult&&o.onResult(h),!1===i?(h.isMatch=!1,!!n&&h):p(r)?("function"==typeof o.onIgnore&&o.onIgnore(h),h.isMatch=!1,!!n&&h):("function"==typeof o.onMatch&&o.onMatch(h),!n||h)};return r&&(d.state=l),d};c.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=r||{},a=o.format||(i?s.toPosixSlashes:null);let u=e===n,l=u&&a?a(e):e;return!1===u&&(l=a?a(e):e,u=l===n),!1!==u&&!0!==o.capture||(u=!0===o.matchBase||!0===o.basename?c.matchBase(e,t,r,i):t.exec(l)),{isMatch:Boolean(u),match:u,output:l}},c.matchBase=(e,t,r,i=s.isWindows(r))=>(t instanceof RegExp?t:c.makeRe(t,r)).test(n.basename(e)),c.isMatch=(e,t,r)=>c(t,r)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):o(e,{...t,fastpaths:!1}),c.scan=(e,t)=>i(e,t),c.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const i=t||{},o=i.contains?"":"^",s=i.contains?"":"$";let a=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const u=c.toRegex(a,t);return!0===n&&(u.state=e),u},c.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=o.fastpaths(e,t)),i.output||(i=o(e,t)),c.compileRe(i,t,r,n)},c.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},c.constants=a,e.exports=c},97965:(e,t,r)=>{"use strict";const n=r(95266),{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:f,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=r(87654),v=e=>e===l||e===s,w=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const r=t||{},_=e.length-1,S=!0===r.parts||!0===r.scanToEnd,k=[],P=[],x=[];let C,E,D=e,O=-1,T=0,M=0,A=!1,j=!1,R=!1,F=!1,I=!1,L=!1,N=!1,B=!1,$=!1,U=!1,q=0,V={value:"",depth:0,isGlob:!1};const H=()=>O>=_,W=()=>(C=E,D.charCodeAt(++O));for(;O<_;){let e;if(E=W(),E!==s){if(!0===L||E===p){for(q++;!0!==H()&&(E=W());)if(E!==s)if(E!==p){if(!0!==L&&E===c&&(E=W())===c){if(A=V.isBrace=!0,R=V.isGlob=!0,U=!0,!0===S)continue;break}if(!0!==L&&E===a){if(A=V.isBrace=!0,R=V.isGlob=!0,U=!0,!0===S)continue;break}if(E===g&&(q--,0===q)){L=!1,A=V.isBrace=!0,U=!0;break}}else q++;else N=V.backslashes=!0,W();if(!0===S)continue;break}if(E!==l){if(!0!==r.noext&&!0==(E===f||E===o||E===i||E===m||E===u)&&D.charCodeAt(O+1)===d){if(R=V.isGlob=!0,F=V.isExtglob=!0,U=!0,E===u&&O===T&&($=!0),!0===S){for(;!0!==H()&&(E=W());)if(E!==s){if(E===y){R=V.isGlob=!0,U=!0;break}}else N=V.backslashes=!0,E=W();continue}break}if(E===i){if(C===i&&(I=V.isGlobstar=!0),R=V.isGlob=!0,U=!0,!0===S)continue;break}if(E===m){if(R=V.isGlob=!0,U=!0,!0===S)continue;break}if(E===h){for(;!0!==H()&&(e=W());)if(e!==s){if(e===b){j=V.isBracket=!0,R=V.isGlob=!0,U=!0;break}}else N=V.backslashes=!0,W();if(!0===S)continue;break}if(!0===r.nonegate||E!==u||O!==T){if(!0!==r.noparen&&E===d){if(R=V.isGlob=!0,!0===S){for(;!0!==H()&&(E=W());)if(E!==d){if(E===y){U=!0;break}}else N=V.backslashes=!0,E=W();continue}break}if(!0===R){if(U=!0,!0===S)continue;break}}else B=V.negated=!0,T++}else{if(k.push(O),P.push(V),V={value:"",depth:0,isGlob:!1},!0===U)continue;if(C===c&&O===T+1){T+=2;continue}M=O+1}}else N=V.backslashes=!0,E=W(),E===p&&(L=!0)}!0===r.noext&&(F=!1,R=!1);let G=D,z="",K="";T>0&&(z=D.slice(0,T),D=D.slice(T),M-=T),G&&!0===R&&M>0?(G=D.slice(0,M),K=D.slice(M)):!0===R?(G="",K=D):G=D,G&&""!==G&&"/"!==G&&G!==D&&v(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),!0===r.unescape&&(K&&(K=n.removeBackslashes(K)),G&&!0===N&&(G=n.removeBackslashes(G)));const J={prefix:z,input:e,start:T,base:G,glob:K,isBrace:A,isBracket:j,isGlob:R,isExtglob:F,isGlobstar:I,negated:B,negatedExtglob:$};if(!0===r.tokens&&(J.maxDepth=0,v(E)||P.push(V),J.tokens=P),!0===r.parts||!0===r.tokens){let t;for(let n=0;n{"use strict";const n=r(71017),i="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(87654);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(s,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===n.sep,t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}},43239:e=>{"use strict";var t=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),o=0;o{"use strict";e.exports="function"==typeof Promise?Promise:r(6163)},6163:e=>{"use strict";var t,r="pending",n="settled",i="fulfilled",o="rejected",s=function(){},a="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,c="undefined"==typeof setImmediate?setTimeout:setImmediate,u=[];function l(){for(var e=0;e{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(s-1),o=0;o{"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?e.exports=r(45411):e.exports=Map},45411:e=>{var t=Object.prototype.hasOwnProperty;function r(e){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof r||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function n(e,t){return e===t||e!=e&&t!=t}function i(e,t,r){this.key=e,this.value=t,this._index=r}function o(e,r){for(var i=0,o="_"+r,s=o;t.call(e,s);s=o+i++)if(n(e[s].key,r))return e[s]}e.exports=r,r.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(r){"size"!==r&&e.call(t,this._data[r].value,this._data[r].key)}),this)},r.prototype.has=function(e){return!!o(this._data,e)},r.prototype.get=function(e){var t=o(this._data,e);return t&&t.value},r.prototype.set=function(e,r){!function(e,r,o){for(var s=0,a="_"+r,c=a;t.call(e,c);c=a+s++)if(n(e[c].key,r))return void(e[c].value=o);e.size++,e[c]=new i(r,o,c)}(this._data,e,r)},r.prototype.delete=function(e){var t=o(this._data,e);t&&(delete this._data[t._index],this._data.size--)},r.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},70032:e=>{"use strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(const[e,t]of this.oldCache.entries())this.onEviction(e,t);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}}e.exports=t},27038:e=>{"use strict";const t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){const r=e.length;return e=e.map((e=>String(e))),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){let i;var o;let s;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s=`The ${e} ${i} ${n(t,"type")}`;else{s=`The "${e}" ${"number"!=typeof c&&(c=0),c+".".length>(a=e).length||-1===a.indexOf(".",c)?"argument":"property"} ${i} ${n(t,"type")}`}var a,c;return s+=". Received type "+typeof r,s}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},46196:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(3924),o=r(61731);r(71947)(u,i);for(var s=n(o.prototype),a=0;a{"use strict";e.exports=i;var n=r(67918);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(71947)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},3924:(e,t,r)=>{"use strict";var n;e.exports=P,P.ReadableState=k,r(82361).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},s=r(88614),a=r(14300).Buffer,c=global.Uint8Array||function(){},u=r(73837);i=u&&u.debuglog?u.debuglog("stream"):function(){};var l,p,d,h=r(57491),f=r(96181),m=r(38028).getHighWaterMark,g=r(27038).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,v=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(71947)(P,s);var _=f.errorOrDestroy,S=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(46196),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(45255).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function P(e){if(n=n||r(46196),!(this instanceof P))return new P(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,o){i("readableAddChunk",t);var s,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}}(e,u);else if(o||(s=function(e,t){var r,n;return n=t,a.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),s)_(e,s);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)u.endEmitted?_(e,new w):C(e,u,t,!0);else if(u.ended)_(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?C(e,u,t,!1):M(e,u)):C(e,u,t,!1)}else n||(u.reading=!1,M(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(T,e))}function T(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){i("readable nexttick read 0"),e.read(0)}function F(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function $(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):O(this),null;if(0===(e=D(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){_(this,new v("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?f:a;function a(){i("onend"),e.end()}n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",(function t(o,s){i("onunpipe"),o===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",f),r.removeListener("data",l),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",c);var u=!1;function l(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==$(n.pipes,e))&&!u&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){i("onerror",t),f(),e.removeListener("error",p),0===o(e,"error")&&_(e,t)}function d(){e.removeListener("finish",h),f()}function h(){i("onfinish"),e.removeListener("close",d),f()}function f(){i("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",h),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?O(this):n.reading||process.nextTick(R,this))),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(j,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(j,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(F,e,t))}(this,e)),e.paused=!1,this},P.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s{"use strict";e.exports=l;var n=r(27038).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(46196);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=P,P.WritableState=k;var o,s={deprecate:r(34247)},a=r(88614),c=r(14300).Buffer,u=global.Uint8Array||function(){},l=r(96181),p=r(38028).getHighWaterMark,d=r(27038).q,h=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function S(){}function k(e,t,o){i=i||r(46196),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(T,e,t),e._writableState.errorEmitted=!0,_(e,n)):(i(n),e._writableState.errorEmitted=!0,_(e,n),T(e,t))}(e,r,n,t,i);else{var o=D(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),n?process.nextTick(C,e,r,o,i):C(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function P(e){var t=this instanceof(i=i||r(46196));if(!t&&!o.call(P,this))return new P(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function x(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function C(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,x(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,p=r.callback;if(x(e,t,!1,t.objectMode?1:u.length,u,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=D(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(71947)(P,a),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===P&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},P.prototype.pipe=function(){_(this,new g)},P.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,c.isBuffer(n)||n instanceof u);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(e,t){var r=new v;_(e,r),process.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(_(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(e,t,r){r(new f("_write()"))},P.prototype._writev=null,P.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(e,t){t(e)}},6189:(e,t,r)=>{"use strict";var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(48994),s=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function f(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function m(e){process.nextTick(f,e)}var g=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(h(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[p](r,n)}),n)}}(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[p])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),g);e.exports=function(e){var t,r=Object.create(y,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",m.bind(null,r)),r}},57491:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,s.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},48994:(e,t,r)=>{"use strict";var n=r(27038).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";function n(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,c,"next",e)}function c(e){n(s,i,o,a,c,"throw",e)}a(void 0)}))}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(27038).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){var n;if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new a("iterable",["Iterable"],t);n=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t{"use strict";var n,i=r(27038).q,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(48994)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function p(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){n||(n=e),e&&s.forEach(u),o||(s.forEach(u),i(n))}))}));return t.reduce(l)}},38028:(e,t,r)=>{"use strict";var n=r(27038).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},88614:(e,t,r)=>{e.exports=r(12781)},2454:(e,t,r)=>{var n=r(12781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(3924)).Stream=n||t,t.Readable=t,t.Writable=r(61731),t.Duplex=r(46196),t.Transform=r(67918),t.PassThrough=r(93138),t.finished=r(48994),t.pipeline=r(14404))},59544:()=>{var e;!function(e){!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),n=i(e);function i(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===r.Reflect?r.Reflect=e:n=i(r.Reflect,n),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,c={create:o?function(){return F(Object.create(null))}:s?function(){return F({__proto__:null})}:function(){return F({})},has:a?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:a?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i=0;--r){var n=(0,e[r])(t);if(!k(n)&&!P(n)){if(!T(n))throw new TypeError;t=n}}return t}(e,t)}if(!D(e))throw new TypeError;if(!x(t))throw new TypeError;if(!x(n)&&!k(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(e,t,r,n){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,r,n);if(!k(o)&&!P(o)){if(!x(o))throw new TypeError;n=o}}return n}(e,t,r=E(r),n)})),e("metadata",(function(e,t){return function(r,n){if(!x(r))throw new TypeError;if(!k(n)&&!function(e){switch(S(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;v(e,t,r,n)}})),e("defineMetadata",(function(e,t,r,n){if(!x(r))throw new TypeError;return k(n)||(n=E(n)),v(e,t,r,n)})),e("hasMetadata",(function(e,t,r){if(!x(t))throw new TypeError;return k(r)||(r=E(r)),m(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!x(t))throw new TypeError;return k(r)||(r=E(r)),g(e,t,r)})),e("getMetadata",(function(e,t,r){if(!x(t))throw new TypeError;return k(r)||(r=E(r)),y(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!x(t))throw new TypeError;return k(r)||(r=E(r)),b(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return k(t)||(t=E(t)),w(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return k(t)||(t=E(t)),_(e,t)})),e("deleteMetadata",(function(e,t,r){if(!x(t))throw new TypeError;k(r)||(r=E(r));var n=f(t,r,!1);if(k(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=h.get(t);return i.delete(r),i.size>0||h.delete(t),!0}))}(n)}()}(e||(e={}))},90733:e=>{var t="win32"===process.platform;function r(e,r){var n=e[r];return r>0&&("/"===n||t&&"\\"===n)}e.exports=function(e){var t=e.length-1;if(t<2)return e;for(;r(e,t);)t--;return e.substr(0,t+1)}},80934:(e,t,r)=>{"use strict";const n=r(24404);e.exports=(e={})=>new Promise(((t,r)=>{let i=!1;const o=async()=>{a.off("timeout",s),a.off("error",r),e.resolveSocket?(t({alpnProtocol:a.alpnProtocol,socket:a,timeout:i}),i&&(await Promise.resolve(),a.emit("timeout"))):(a.destroy(),t({alpnProtocol:a.alpnProtocol,timeout:i}))},s=async()=>{i=!0,o()},a=n.connect(e,o);a.on("error",r),a.once("timeout",s)}))},22920:(e,t,r)=>{"use strict";const n=r(12781).Readable,i=r(13177);e.exports=class extends n{constructor(e,t,r,n){if("number"!=typeof e)throw new TypeError("Argument `statusCode` should be a number");if("object"!=typeof t)throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if("string"!=typeof n)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=i(t),this.body=r,this.url=n}_read(){this.push(this.body),this.push(null)}}},41138:(e,t,r)=>{"use strict";var n=r(32081).execFile,i=r(51842),o=r(43239);e.exports=function(e){return"darwin"!==process.platform?i.reject(new Error("Only OS X systems are supported")):o(n,i)("osascript",["-e",e]).then((function(e){return e.trim()}))}},72748:(e,t,r)=>{var n=r(14300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},83973:(e,t,r)=>{var n,i=r(39491),o=r(79738),s=/^win/i.test(process.platform),a=r(82361);function c(){p&&(p=!1,o.forEach((function(e){try{process.removeListener(e,l[e])}catch(e){}})),process.emit=m,process.reallyExit=h,n.count-=1)}function u(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))}"function"!=typeof a&&(a=a.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new a).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){i.equal(typeof e,"function","a callback must be provided for exit handler"),!1===p&&d();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),n.on(r,e),function(){n.removeListener(r,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&c()}},e.exports.unload=c;var l={};o.forEach((function(e){l[e]=function(){process.listeners(e).length===n.count&&(c(),u("exit",null,e),u("afterexit",null,e),s&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),e.exports.signals=function(){return o},e.exports.load=d;var p=!1;function d(){p||(p=!0,n.count+=1,o=o.filter((function(e){try{return process.on(e,l[e]),!0}catch(e){return!1}})),process.emit=g,process.reallyExit=f)}var h=process.reallyExit;function f(e){process.exitCode=e||0,u("exit",process.exitCode,null),u("afterexit",process.exitCode,null),h.call(process,process.exitCode)}var m=process.emit;function g(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=m.apply(this,arguments);return u("exit",process.exitCode,null),u("afterexit",process.exitCode,null),r}return m.apply(this,arguments)}},79738:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},43360:(e,t,r)=>{"use strict";var n=r(45003),i=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],r=0,s=e.length;r{class r{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const n=new r;for(let r=0,i=e.length;r=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e{const n=r(47264);t.encode=function(e){let t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,i>>>=5,i>0&&(t|=32),r+=n.encode(t)}while(i>0);return r}},47264:(e,t)=>{const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{function r(e,n,i,o,s,a){const c=Math.floor((n-e)/2)+e,u=s(i,o[c],!0);return 0===u?c:u>0?n-c>1?r(c,n,i,o,s,a):a==t.LEAST_UPPER_BOUND?n1?r(e,c,i,o,s,a):a==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,o){if(0===n.length)return-1;let s=r(-1,n.length,e,n,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(n[s],n[s-1],!0);)--s;return s}},96638:(e,t,r)=>{const n=r(97734);t.H=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const r=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,s=t.generatedColumn;return i>r||i==r&&s>=o||n.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},87043:(e,t,r)=>{"use strict";const n=r(57147),i=r(71017);e.exports=function(){return new Promise(((e,t)=>{const r=i.join(__dirname,"mappings.wasm");n.readFile(r,null,((r,n)=>{r?t(r):e(n.buffer)}))}))},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},11899:(e,t,r)=>{const n=r(97734),i=r(22434),o=r(43777).I,s=(r(78293),r(87043)),a=r(32531),c=Symbol("smcInternal");class u{constructor(e,t){return e==c?Promise.resolve(this):function(e,t){let r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));const i=null!=r.sections?new p(r,t):new l(r,t);return Promise.resolve(i)}(e,t)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return function(e,t){return l.fromSourceMap(e,t)}(e,t)}static async with(e,t,r){const n=await new u(e,t);try{return await r(n)}finally{n.destroy()}}eachMapping(e,t,r){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,t.SourceMapConsumer=u;class l extends u{constructor(e,t){return super(c).then((r=>{let i=e;"string"==typeof e&&(i=n.parseSourceMapInput(e));const s=n.getArg(i,"version"),c=n.getArg(i,"sources").map(String),u=n.getArg(i,"names",[]),l=n.getArg(i,"sourceRoot",null),p=n.getArg(i,"sourcesContent",null),d=n.getArg(i,"mappings"),h=n.getArg(i,"file",null);if(s!=r._version)throw new Error("Unsupported version: "+s);return r._sourceLookupCache=new Map,r._names=o.fromArray(u.map(String),!0),r._sources=o.fromArray(c,!0),r._absoluteSources=o.fromArray(r._sources.toArray().map((function(e){return n.computeSourceURL(l,e,t)})),!0),r.sourceRoot=l,r.sourcesContent=p,r._mappings=d,r._sourceMapURL=t,r.file=h,r._computedColumnSpans=!1,r._mappingsPtr=0,r._wasm=null,a().then((e=>(r._wasm=e,r)))}))}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const r=n.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(r)){const t=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,t),t}const i=n.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(i)){const t=this._absoluteSources.indexOf(i);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new l(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,r=this._wasm.exports.allocate_mappings(t),n=new Uint8Array(this._wasm.exports.memory.buffer,r,t);for(let r=0;r{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(n,t)}),(()=>{switch(i){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=n.getArg(e,"source");const r=n.getArg(e,"line"),i=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(i<0)throw new Error("Column numbers must be >= 0");const o=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),o.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,r-1,"column"in e,i)})),o}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,i=n.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>r=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,i)})),r&&r.generatedLine===t.generatedLine){let e=n.getArg(r,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=n.getArg(r,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:n.getArg(r,"originalLine",null),column:n.getArg(r,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=n.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let i,o=n.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>i=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,o)})),i&&i.source===r.source){let e=i.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:n.getArg(i,"generatedLine",null),column:n.getArg(i,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}l.prototype.consumer=u;class p extends u{constructor(e,t){return super(c).then((r=>{let i=e;"string"==typeof e&&(i=n.parseSourceMapInput(e));const o=n.getArg(i,"version"),s=n.getArg(i,"sections");if(o!=r._version)throw new Error("Unsupported version: "+o);let a={line:-1,column:0};return Promise.all(s.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const r=n.getArg(e,"offset"),i=n.getArg(r,"line"),o=n.getArg(r,"column");if(i({generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t=0?this._sections[t]:null,i=t>=0&&t+1=0?this._sections[t]:null,i=t>=0&&t+1{const t=r.generatedOffset.generatedLine-1,n=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=n,"number"==typeof e.lastColumn&&(e.lastColumn+=n)),e.lastColumn===1/0&&i&&e.line===i.generatedOffset.generatedLine&&(e.lastColumn=i.generatedOffset.generatedColumn-2),e.line+=t,e})):[]}eachMapping(e,t,r){this._sections.forEach(((n,i)=>{const o=i+1{const n=r(78293),i=r(97734),o=r(43777).I,s=r(96638).H;class a{constructor(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){const n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){let o=n;null!==t&&(o=i.relative(t,n)),r._sources.has(o)||r._sources.add(o);const s=e.sourceContentFor(n);null!=s&&r.setSourceContent(n,s)})),r}addMapping(e){const t=i.getArg(e,"generated"),r=i.getArg(e,"original",null);let n=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:o})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}const s=this._sourceRoot;null!=s&&(n=i.relative(s,n));const a=this._mappings.toArray().length>0?new o:this._sources,c=new o;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){const n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=r&&(t.source=i.join(r,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const o=t.source;null==o||a.has(o)||a.add(o);const u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=a,this._names=c,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,o,s=0,a=1,c=0,u=0,l=0,p=0,d="";const h=this._mappings.toArray();for(let f=0,m=h.length;f0){if(!i.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-p),p=o,e+=n.encode(t.originalLine-1-u),u=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-l),l=r)),d+=e}return d}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));const r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}a.prototype._version=3,t.SourceMapGenerator=a},10563:(e,t,r)=>{const n=r(6962).SourceMapGenerator,i=r(97734),o=/(\r?\n)/,s="$$$isSourceNode$$$";class a{constructor(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[s]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(e,t,r){const n=new a,s=e.split(o);let c=0;const u=function(){return e()+(e()||"");function e(){return c=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let r=0,n=this.children.length;r0){for(t=[],r=0;r{"use strict";e.exports="function"==typeof URL?URL:r(57310).URL},97734:(e,t,r)=>{const n=r(28254);t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};const i=!("__proto__"in Object.create(null));function o(e){return e}function s(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function a(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=i?o:function(e){return s(e)?"$"+e:e},t.fromSetString=i?o:function(e){return s(e)?e.slice(1):e},t.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=a(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:a(e.name,t.name)))))},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};const c="http:",u="http://host";function l(e){return t=>{const r=f(t),i=d(t),o=new n(t,i);e(o);const s=o.toString();return"absolute"===r?s:"scheme-relative"===r?s.slice(c.length):"path-absolute"===r?s.slice(u.length):m(i,s)}}function p(e,t){return new n(e,t).toString()}function d(e){const t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){const e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e);let n="http://host/";for(let e=0;e0&&!i[i.length-1]&&i.pop();r.length>0&&i.length>0&&r[0]===i[0];)r.shift(),i.shift();return i.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const g=l((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),y=l((e=>{e.href=new n(".",e.toString()).toString()})),b=l((e=>{}));function v(e,t){const r=f(t),n=f(e);if(e=g(e),"absolute"===r)return p(t,void 0);if("absolute"===n)return p(t,e);if("scheme-relative"===r)return b(t);if("scheme-relative"===n)return p(t,p(e,u)).slice(c.length);if("path-absolute"===r)return b(t);if("path-absolute"===n)return p(t,p(e,u)).slice(u.length);const i=d(t+e);return m(i,p(t,p(e,i)))}t.normalize=b,t.join=v,t.relative=function(e,t){const r=function(e,t){if(f(e)!==f(t))return null;const r=d(e+t),i=new n(e,r),o=new n(t,r);try{new n("",o.toString())}catch(e){return null}return o.protocol!==i.protocol||o.user!==i.user||o.password!==i.password||o.hostname!==i.hostname||o.port!==i.port?null:m(i,o)}(e,t);return"string"==typeof r?r:b(t)},t.computeSourceURL=function(e,t,r){e&&"path-absolute"===f(t)&&(t=t.replace(/^\//,""));let n=b(t||"");return e&&(n=v(e,n)),r&&(n=v(y(r),n)),n}},32531:(e,t,r)=>{const n=r(87043);function i(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let o=null;e.exports=function(){if(o)return o;const e=[];return o=n().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,r,n,o,s,a,c,u,l,p){const d=new i;d.generatedLine=t+1,d.generatedColumn=r,n&&(d.lastGeneratedColumn=o-1),s&&(d.source=a,d.originalLine=c+1,d.originalColumn=u,l&&(d.name=p)),e[e.length-1](d)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}}))).then(null,(e=>{throw o=null,e})),o}},69074:(e,t,r)=>{t.SourceMapGenerator=r(6962).SourceMapGenerator,t.SourceMapConsumer=r(11899).SourceMapConsumer,t.SourceNode=r(10563).SourceNode},67794:(e,t,r)=>{"use strict";const{Transform:n}=r(12781),{StringDecoder:i}=r(71576),o=Symbol("last"),s=Symbol("decoder");function a(e,t,r){let n;if(this.overflow){if(n=this[s].write(e).split(this.matcher),1===n.length)return r();n.shift(),this.overflow=!1}else this[o]+=this[s].write(e),n=this[o].split(this.matcher);this[o]=n.pop();for(let e=0;ethis.maxLength,!this.overflow||this.skipOverflow?r():r(new Error("maximum buffer reached"))}function c(e){if(this[o]+=this[s].end(),this[o])try{u(this,this.mapper(this[o]))}catch(t){return e(t)}e()}function u(e,t){void 0!==t&&e.push(t)}function l(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||l,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=l)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=a,r.flush=c,r.readableObjectMode=!0;const u=new n(r);return u[o]="",u[s]=new i("utf8"),u.matcher=e,u.mapper=t,u.maxLength=r.maxLength,u.skipOverflow=r.skipOverflow||!1,u.overflow=!1,u._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},u}},86736:e=>{e.exports=function(e){var t,r=e._readableState;return r?r.objectMode?e.read():e.read((t=r).buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},45255:(e,t,r)=>{"use strict";var n=r(4901).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4901:(e,t,r)=>{var n=r(14300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},89255:e=>{"use strict";e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},34521:e=>{"use strict";e.exports=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},27581:(e,t,r)=>{"use strict";const n=r(22037),i=r(36275),o=process.env;let s;function a(e){const t=function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},74248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79009);t.ExperimentationService=n.ExperimentationService},79009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(80592),i=r(24762),o=r(3043);class s extends o.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],null!=e.refetchInterval?e.refetchInterval:0,e.featuresTelemetryPropertyName,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new n.TasApiFeatureProvider(new i.AxiosHttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}}t.ExperimentationService=s,s.REFRESH_RATE_IN_MINUTES=30},3043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(59859),i=r(93283);class o extends n.ExperimentationServiceBase{constructor(e,t,r,n,o,s,a,c){if(super(e,n,o,s,a,c),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=r,this.featuresTelemetryPropertyName=n,this.assignmentContextTelemetryPropertyName=o,this.telemetryEventName=s,this.storageKey=a,this.storage=c,r<1e3&&0!==r)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");r>0&&(this.pollingService=new i.PollingService(r),this.pollingService.OnPollTick((async()=>{await super.getFeaturesAsync()})))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(e=!1){if(this.pollingService){this.pollingService.StopPolling();let t=await super.getFeaturesAsync(e);return this.pollingService.StartPolling(),t}return await super.getFeaturesAsync(e)}}t.ExperimentationServiceAutoPolling=o},59859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20350);t.ExperimentationServiceBase=class{constructor(e,t,r,i,o,s){this.telemetry=e,this.featuresTelemetryPropertyName=t,this.assignmentContextTelemetryPropertyName=r,this.telemetryEventName=i,this.storageKey=o,this.storage=s,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(s=new n.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise(((e,t)=>{this.resolveInitialFetchPromise=e}))}get features(){return this._features}set features(e){this._features=e,this.telemetry&&(this.telemetry.setSharedProperty(this.featuresTelemetryPropertyName,this.features.features.join(";")),this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext))}async getFeaturesAsync(e=!1){if(null!=this.fetchPromise){try{await this.fetchPromise}catch(e){}return this.features}if(!this.featureProviders||0===this.featureProviders.length)return Promise.resolve({features:[],assignmentContext:"",configs:[]});this.fetchPromise=Promise.all(this.featureProviders.map((async e=>await e.getFeatures())));try{const t=await this.fetchPromise;this.updateFeatures(t,e)}catch(e){}return this.fetchPromise=void 0,this.resolveInitialFetchPromise&&(this.resolveInitialFetchPromise(),this.resolveInitialFetchPromise=void 0),this.features}updateFeatures(e,t=!1){let r={features:[],assignmentContext:"",configs:[]};for(let t of e){for(let e of t.features)r.features.includes(e)||r.features.push(e);for(let e of t.configs){const t=r.configs.find((t=>t.Id===e.Id));t?t.Parameters=Object.assign(Object.assign({},t.Parameters),e.Parameters):r.configs.push(e)}r.assignmentContext+=t.assignmentContext}!t&&this.featuresConsumed||(this.features=r),this.storage&&this.storage.setValue(this.storageKey,r)}async loadCachedFeatureData(){let e;this.storage&&(e=await this.storage.getValue(this.storageKey),void 0!==e&&void 0===e.configs&&(e.configs=[])),0===this.features.features.length&&(this.features=e||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(e){return this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isCachedFlightEnabled(e){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isFlightEnabledAsync(e){const t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){var r;return this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`),null===(r=this.features.configs.find((t=>t.Id===e)))||void 0===r?void 0:r.Parameters[t]}async getTreatmentVariableAsync(e,t,r){if(r){const r=this.featuresConsumed,n=this.getTreatmentVariable(e,t);if(void 0!==n)return n;this.featuresConsumed=r}return await this.getFeaturesAsync(!0),this.getTreatmentVariable(e,t)}PostEventToTelemetry(e){this.cachedTelemetryEvents.includes(e)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",e]])),this.cachedTelemetryEvents.push(e))}invokeInit(){this.init()}addFeatureProvider(...e){if(null!=e&&null!=this.featureProviders)for(let t of e)this.featureProviders.push(t)}}},90433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFeatureProvider=class{constructor(e){this.telemetry=e,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let e=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,e}}},62958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(90433);class i extends n.BaseFeatureProvider{constructor(e,t){super(e),this.telemetry=e,this.filterProviders=t,this.cachedTelemetryEvents=[]}getFilters(){let e=new Map;for(let t of this.filterProviders){let r=t.getFilters();for(let t of r.keys()){let n=r.get(t);e.set(t,n)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;const t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}}t.FilteredFeatureProvider=i},80592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62958);class i extends n.FilteredFeatureProvider{constructor(e,t,r){super(t,r),this.httpClient=e,this.telemetry=t,this.filterProviders=r}async fetch(){let e=this.getFilters(),t={};for(let r of e.keys()){const n=e.get(r);t[r]=n}let r=await this.httpClient.get({headers:t});e.keys.length>0&&this.PostEventToTelemetry(t);let n=r.data,i=n.Configs,o=[];for(let e of i)if(e.Parameters)for(let t of Object.keys(e.Parameters)){const r=t+(e.Parameters[t]?"":"cf");o.includes(r)||o.push(r)}return{features:o,assignmentContext:n.AssignmentContext,configs:i}}}t.TasApiFeatureProvider=i},24762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(11240);t.AxiosHttpClient=class{constructor(e){this.endpoint=e}get(e){return n.default.get(this.endpoint,Object.assign(Object.assign({},e),{proxy:!1}))}}},20350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryKeyValueStorage=class{constructor(){this.storage=new Map}async getValue(e,t){return this.storage.has(e)?await Promise.resolve(this.storage.get(e)):await Promise.resolve(t||void 0)}setValue(e,t){this.storage.set(e,t)}}},93283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PollingService=class{constructor(e){this.fetchInterval=e}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(e){this.onTick=e}StartPolling(e=!1){this.intervalHandle&&this.StopPolling(),null!=this.onTick&&(e&&this.onTick().then((()=>{})).catch((()=>{})),this.intervalHandle=setInterval((async()=>{await this.onTick()}),this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}}},22340:(e,t,r)=>{"use strict";e.exports=s,e.exports.ctor=o,e.exports.objCtor=function(e,t){return"function"==typeof e&&(t=e,e={}),o(e=i({objectMode:!0,highWaterMark:16},e),t)},e.exports.obj=function(e,t){return"function"==typeof e&&(t=e,e={}),s(e=i({objectMode:!0,highWaterMark:16},e),t)};var n=r(68808),i=r(88100);function o(e,t){"function"==typeof e&&(t=e,e={});var r=n.ctor(e,(function(e,r,n){this.options.wantStrings&&(e=e.toString());try{return t.call(this,e,this._index++)&&this.push(e),n()}catch(e){return n(e)}}));return r.prototype._index=0,r}function s(e,t){return o(e,t)()}},16990:(e,t,r)=>{"use strict";var n=r(65952),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(41276);o.inherits=r(71947);var s=r(99467),a=r(67271);o.inherits(p,s);for(var c=i(a.prototype),u=0;u{"use strict";e.exports=o;var n=r(59069),i=r(41276);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(71947),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},99467:(e,t,r)=>{"use strict";var n=r(65952);e.exports=b;var i,o=r(148);b.ReadableState=y,r(82361).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=r(51106),c=r(72748).Buffer,u=global.Uint8Array||function(){},l=r(41276);l.inherits=r(71947);var p=r(73837),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,f=r(86130),m=r(26347);l.inherits(b,a);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(16990));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(74038).s),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(16990),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function v(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,s)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):x(e,s)):w(e,s,t,!1))):n||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(P,e):P(e))}function P(e){d("emit readable"),e.emit("readable"),O(e)}function x(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0==(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?y:c;function c(){d("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",(function t(n,o){d("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,d("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",h),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var l=!1,p=!1;function h(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==j(i.pipes,e))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function f(t){d("onerror",t),y(),e.removeListener("error",f),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){d("onfinish"),e.removeListener("close",m),y()}function y(){d("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?o(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{"use strict";e.exports=s;var n=r(16990),i=r(41276);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n=r(65952);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;g.WritableState=m;var a=r(41276);a.inherits=r(71947);var c,u={deprecate:r(34247)},l=r(51106),p=r(72748).Buffer,d=global.Uint8Array||function(){},h=r(26347);function f(){}function m(e,t){o=o||r(16990),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,r,i,t,o);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?s(b,e,r,a,o):b(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function g(e){if(o=o||r(16990),!(c.call(g,this)||this instanceof o))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function y(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,y(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,p=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=w(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}a.inherits(g,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===g&&e&&e._writableState instanceof m}})):c=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,p.isBuffer(i)||i instanceof d);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=f),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},86130:(e,t,r)=>{"use strict";var n=r(72748).Buffer,i=r(73837);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,r=s,o.data.copy(t,r),s+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},26347:(e,t,r)=>{"use strict";var n=r(65952);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},51106:(e,t,r)=>{e.exports=r(12781)},63203:(e,t,r)=>{var n=r(12781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r(99467)).Stream=n||t,t.Readable=t,t.Writable=r(67271),t.Duplex=r(16990),t.Transform=r(59069),t.PassThrough=r(39752))},74038:(e,t,r)=>{"use strict";var n=r(72748).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},68808:(e,t,r)=>{var n=r(63203).Transform,i=r(73837).inherits,o=r(88100);function s(e){n.call(this,e),this._destroyed=!1}function a(e,t,r){r(null,e)}function c(e){return function(t,r,n){return"function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=a),"function"!=typeof n&&(n=null),e(t,r,n)}}i(s,n),s.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick((function(){e&&t.emit("error",e),t.emit("close")}))}},e.exports=c((function(e,t,r){var n=new s(e);return n._transform=t,r&&(n._flush=r),n})),e.exports.ctor=c((function(e,t,r){function n(t){if(!(this instanceof n))return new n(t);this.options=o(e,t),s.call(this,this.options)}return i(n,s),n.prototype._transform=t,r&&(n.prototype._flush=r),n})),e.exports.obj=c((function(e,t,r){var n=new s(o({objectMode:!0,highWaterMark:16},e));return n._transform=t,r&&(n._flush=r),n}))},92802:e=>{"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.toLowerCase().replace(/(?:^|\s|-)\S/g,(function(e){return e.toUpperCase()}))}},39675:(e,t,r)=>{"use strict";var n=r(71017),i=r(18713),o=r(81546);function s(e){return e.replace(/\\/g,"/")}function a(e,t){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),"/"===t.charAt(0)&&(t=t.slice(1)),t?e+"/"+t:e}e.exports=function(e,t){var r=t||{},c=n.resolve(r.cwd?r.cwd:process.cwd());c=s(c);var u=r.root;u&&(u=s(u),"win32"!==process.platform&&o(u)||(u=s(n.resolve(u)))),"./"===e.slice(0,2)&&(e=e.slice(2)),1===e.length&&"."===e&&(e="");var l=e.slice(-1),p=i(e);return e=p.pattern,u&&"/"===e.charAt(0)?e=a(u,e):o(e)&&"\\"!==e.slice(0,1)||(e=a(c,e)),"/"===l&&"/"!==e.slice(-1)&&(e+="/"),p.negated?"!"+e:e}},60171:e=>{"use strict";e.exports=function(){return/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/}},57900:(e,t,r)=>{"use strict";var n,i=r(22340).obj,o=r(458);n="function"==typeof global.Set?global.Set:function(){this.keys=[],this.has=function(e){return-1!==this.keys.indexOf(e)},this.add=function(e){this.keys.push(e)}},e.exports=function(e,t){t=t||new n;var r=o;return"string"==typeof e?r=function(e){return function(t){return t[e]}}(e):"function"==typeof e&&(r=e),i((function(e){var n=r(e);return!t.has(n)&&(t.add(n),!0)}))}},54879:(e,t,r)=>{"use strict";var n=r(84294)();e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return n?e.replace(/^~($|\/|\\)/,n+"$1"):e}},34247:(e,t,r)=>{e.exports=r(73837).deprecate},67776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var n,i,o,s=r(91070);function a(e){return void 0!==e}function c(e,r){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===r.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var n=t[0],i=r[n],o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}))}(o=t.MessageFormat||(t.MessageFormat={})).file="file",o.bundle="bundle",o.both="both",(i=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",i.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(n||(n={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var r=[],n=2;n{"use strict";var r;function n(){if(void 0===r)throw new Error("No runtime abstraction layer installed");return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");r=e}}(n||(n={})),t.default=n},33463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var n=r(71017),i=r(57147),o=r(91070),s=r(67776),a=r(67776);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,u,l=Object.prototype.toString;function p(e){return"[object Number]"===l.call(e)}function d(e){return"[object String]"===l.call(e)}function h(e){return JSON.parse(i.readFileSync(e,"utf8"))}function f(e){return function(t,r){for(var n=[],i=2;i=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):s.format(e[t],n):d(r)?(console.warn("Message "+r+" didn't get externalized correctly."),s.format(r,n)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function m(e,t){return c[e]=t,t}function g(e){try{return function(e){var t=h(n.join(e,"nls.metadata.json")),r=Object.create(null);for(var i in t){var o=t[i];r[i]=o.messages}return r}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function y(e,t){var r;if(!0===u.languagePackSupport&&void 0!==u.cacheRoot&&void 0!==u.languagePackId&&void 0!==u.translationsConfigFile&&void 0!==u.translationsConfig)try{r=function(e,t){var r,o,s,a=n.join(u.cacheRoot,e.id+"-"+e.hash+".json"),c=!1,l=!1;try{return r=JSON.parse(i.readFileSync(a,{encoding:"utf8",flag:"r"})),o=a,s=new Date,i.utimes(o,s,s,(function(){})),r}catch(e){if("ENOENT"===e.code)l=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),i.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle "+a+" failed.")})),c=!0}}if(r=function(e,t){var r=u.translationsConfig[e.id];if(r){var i=h(r).contents,o=h(n.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in o){var c=o[a],l=i[e.outDir+"/"+a];if(l){for(var p=[],f=0;f0?t.substring(0,o):void 0}if(void 0===t&&(r=n.join(e,"nls.bundle.json"),i.existsSync(r)))return r}(t);if(o)try{return h(o)}catch(e){console.log("Loading in the box message bundle failed.",e)}r=g(t)}return r}function b(e){if(!e)return s.localize;var t=n.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.bundle){var r=function(e){for(var t,r=n.dirname(e);t=n.join(r,"nls.metadata.header.json"),!i.existsSync(t);){var o=n.dirname(r);if(o===r){t=void 0;break}r=o}return t}(e);if(r){var o=n.dirname(r),a=c[o];if(void 0===a)try{var l=JSON.parse(i.readFileSync(r,"utf8"));try{var p=y(l,o);a=m(o,p?{header:l,nlsBundle:p}:null)}catch(e){console.error("Failed to load nls bundle",e),a=m(o,null)}}catch(e){console.error("Failed to read header file",e),a=m(o,null)}if(a){var d=e.substr(o.length+1).replace(/\\/g,"/"),g=a.nlsBundle[d];return void 0===g?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):f(g)}}}if(u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.file)try{var b=h(function(e){var t;if(u.cacheLanguageResolution&&t);else{if(s.isPseudo||!u.language)t=".nls.json";else for(var r=u.language;r;){var n=".nls."+r+".json";if(i.existsSync(e+n)){t=n;break}var o=r.lastIndexOf("-");o>0?r=r.substring(0,o):(t=".nls.json",r=null)}u.cacheLanguageResolution}return e+t}(e));return Array.isArray(b)?f(b):s.isDefined(b.messages)&&s.isDefined(b.keys)?f(b.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}function v(e){return e&&(d(e.locale)&&(u.locale=e.locale.toLowerCase(),u.language=u.locale,c=Object.create(null)),void 0!==e.messageFormat&&(u.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===u.languagePackSupport&&(u.languagePackSupport=!1)),s.setPseudo("pseudo"===u.locale),b}!function(){if(u={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},d(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var r=e.availableLanguages["*"];d(r)&&(t=r)}if(d(e.locale)&&(u.locale=e.locale.toLowerCase()),void 0===t?u.language=u.locale:"en"!==t&&(u.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(u.languagePackSupport=e._languagePackSupport),d(e._cacheRoot)&&(u.cacheRoot=e._cacheRoot),d(e._languagePackId)&&(u.languagePackId=e._languagePackId),d(e._translationsConfigFile)){u.translationsConfigFile=e._translationsConfigFile;try{u.translationsConfig=h(u.translationsConfigFile)}catch(t){if(e._corruptedFile){var o=n.dirname(e._corruptedFile);i.exists(o,(function(t){t&&i.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}s.setPseudo("pseudo"===u.locale),c=Object.create(null)}(),t.loadMessageBundle=b,t.config=v,o.default.install(Object.freeze({loadMessageBundle:b,config:v}))},62579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(32050);t.getExperimentationService=n.getExperimentationService,t.getExperimentationServiceAsync=n.getExperimentationServiceAsync;var i=r(14978);t.TargetPopulation=i.TargetPopulation},84091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MementoKeyValueStorage=class{constructor(e){this.mementoGlobalStorage=e}async getValue(e,t){return await this.mementoGlobalStorage.get(e)||t}setValue(e,t){this.mementoGlobalStorage.update(e,t)}}},22545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.initializePromise=Promise.resolve(),this.initialFetch=Promise.resolve()}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}}},14978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(89496);class i{constructor(e,t,r){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=r}static trimVersionSuffix(e){return e.split(/\-[a-zA-Z0-9]+$/)[0]}getFilterValue(e){switch(e){case o.ApplicationVersion:return i.trimVersionSuffix(n.version);case o.Build:return n.env.appName;case o.ClientId:return n.env.machineId;case o.ExtensionName:return this.extensionName;case o.ExtensionVersion:return i.trimVersionSuffix(this.extensionVersion);case o.Language:return n.env.language;case o.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(o);for(let r of t)e.set(r,this.getFilterValue(r));return e}}var o,s;t.VSCodeFilterProvider=i,function(e){e.Market="X-MSEdge-Market",e.CorpNet="X-FD-Corpnet",e.ApplicationVersion="X-VSCode-AppVersion",e.Build="X-VSCode-Build",e.ClientId="X-MSEdge-ClientId",e.ExtensionName="X-VSCode-ExtensionName",e.ExtensionVersion="X-VSCode-ExtensionVersion",e.Language="X-VSCode-Language",e.TargetPopulation="X-VSCode-TargetPopulation"}(o=t.Filters||(t.Filters={})),(s=t.TargetPopulation||(t.TargetPopulation={})).Team="team",s.Internal="internal",s.Insiders="insider",s.Public="public"},32050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(14978),i=r(74248),o=r(89496),s=r(84091),a=r(22545);function c(e,t,r,c,u,...l){if(!u)throw new Error("Memento storage was not provided.");const p=o.workspace.getConfiguration("telemetry");if(!(void 0===o.env.isTelemetryEnabled?p.get("enableTelemetry",!0):o.env.isTelemetryEnabled))return new a.default;const d=[new n.VSCodeFilterProvider(e,t,r),...l],h=new s.MementoKeyValueStorage(u);return new i.ExperimentationService({filterProviders:d,telemetry:c,storageKey:"VSCode.ABExp.FeatureData",keyValueStorage:h,featuresTelemetryPropertyName:"VSCode.ABExp.Features",assignmentContextTelemetryPropertyName:"abexp.assignmentcontext",telemetryEventName:"query-expfeature",endpoint:"https://default.exp-tas.com/vscode/ab",refetchInterval:18e5})}t.getExperimentationService=c,t.getExperimentationServiceAsync=async function(e,t,r,n,i,...o){const s=c(e,t,r,n,i,...o);return await s.initializePromise,s}},18750:(e,t,r)=>{e.exports=u,u.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,o=r.ext,u=r.extExe,l=[],p=0,d=n.length;p{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r{"use strict";const n=r(12982);n.createWebSocketStream=r(15519),n.Server=r(90058),n.Receiver=r(13091),n.Sender=r(62091),n.WebSocket=n,n.WebSocketServer=n.Server,e.exports=n},4847:(e,t,r)=>{"use strict";const{EMPTY_BUFFER:n}=r(79864);function i(e,t){if(0===e.length)return n;if(1===e.length)return e[0];const r=Buffer.allocUnsafe(t);let i=0;for(let t=0;t{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},35831:(e,t,r)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=r(79864),o=Symbol("kCode"),s=Symbol("kData"),a=Symbol("kError"),c=Symbol("kMessage"),u=Symbol("kReason"),l=Symbol("kTarget"),p=Symbol("kType"),d=Symbol("kWasClean");class h{constructor(e){this[l]=null,this[p]=e}get target(){return this[l]}get type(){return this[p]}}Object.defineProperty(h.prototype,"target",{enumerable:!0}),Object.defineProperty(h.prototype,"type",{enumerable:!0});class f extends h{constructor(e,t={}){super(e),this[o]=void 0===t.code?0:t.code,this[u]=void 0===t.reason?"":t.reason,this[d]=void 0!==t.wasClean&&t.wasClean}get code(){return this[o]}get reason(){return this[u]}get wasClean(){return this[d]}}Object.defineProperty(f.prototype,"code",{enumerable:!0}),Object.defineProperty(f.prototype,"reason",{enumerable:!0}),Object.defineProperty(f.prototype,"wasClean",{enumerable:!0});class m extends h{constructor(e,t={}){super(e),this[a]=void 0===t.error?null:t.error,this[c]=void 0===t.message?"":t.message}get error(){return this[a]}get message(){return this[c]}}Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});class g extends h{constructor(e,t={}){super(e),this[s]=void 0===t.data?null:t.data}get data(){return this[s]}}Object.defineProperty(g.prototype,"data",{enumerable:!0});const y={addEventListener(e,t,r={}){let o;if("message"===e)o=function(e,r){const n=new g("message",{data:r?e:e.toString()});n[l]=this,t.call(this,n)};else if("close"===e)o=function(e,r){const n=new f("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[l]=this,t.call(this,n)};else if("error"===e)o=function(e){const r=new m("error",{error:e,message:e.message});r[l]=this,t.call(this,r)};else{if("open"!==e)return;o=function(){const e=new h("open");e[l]=this,t.call(this,e)}}o[n]=!!r[n],o[i]=t,r.once?this.once(e,o):this.on(e,o)},removeEventListener(e,t){for(const r of this.listeners(e))if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}};e.exports={CloseEvent:f,ErrorEvent:m,Event:h,EventTarget:y,MessageEvent:g}},63071:(e,t,r)=>{"use strict";const{tokenChars:n}=r(91607);function i(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}e.exports={format:function(e){return Object.keys(e).map((t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map((e=>[t].concat(Object.keys(e).map((t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let r,o,s=Object.create(null),a=!1,c=!1,u=!1,l=-1,p=-1,d=-1,h=0;for(;h{"use strict";const t=Symbol("kDone"),r=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},7567:(e,t,r)=>{"use strict";const n=r(59796),i=r(4847),o=r(8528),{kStatusCode:s}=r(79864),a=Buffer.from([0,0,255,255]),c=Symbol("permessage-deflate"),u=Symbol("total-length"),l=Symbol("callback"),p=Symbol("buffers"),d=Symbol("error");let h;function f(e){this[p].push(e),this[u]+=e.length}function m(e){this[u]+=e.length,this[c]._maxPayload<1||this[u]<=this[c]._maxPayload?this[p].push(e):(this[d]=new RangeError("Max payload size exceeded"),this[d].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[d][s]=1009,this.removeListener("data",m),this.reset())}function g(e){this[c]._inflate=null,e[s]=1007,this[l](e)}e.exports=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!h){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;h=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const 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:null==this._options.clientMaxWindowBits&&(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){const e=this._deflate[l];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,r=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(r.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?r.client_max_window_bits=t.clientMaxWindowBits:!0!==r.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete r.client_max_window_bits,r}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let r=e[t];if(r.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(r=r[0],"client_max_window_bits"===t){if(!0!==r){const e=+r;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}else if("server_max_window_bits"===t){const e=+r;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==r)throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}e[t]=r}))})),e}decompress(e,t,r){h.add((n=>{this._decompress(e,t,((e,t)=>{n(),r(e,t)}))}))}compress(e,t,r){h.add((n=>{this._compress(e,t,((e,t)=>{n(),r(e,t)}))}))}_decompress(e,t,r){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[u]=0,this._inflate[p]=[],this._inflate.on("error",g),this._inflate.on("data",m)}this._inflate[l]=r,this._inflate.write(e),t&&this._inflate.write(a),this._inflate.flush((()=>{const e=this._inflate[d];if(e)return this._inflate.close(),this._inflate=null,void r(e);const n=i.concat(this._inflate[p],this._inflate[u]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[u]=0,this._inflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),r(null,n)}))}_compress(e,t,r){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[u]=0,this._deflate[p]=[],this._deflate.on("data",f)}this._deflate[l]=r,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=i.concat(this._deflate[p],this._deflate[u]);t&&(e=e.slice(0,e.length-4)),this._deflate[l]=null,this._deflate[u]=0,this._deflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),r(null,e)}))}}},13091:(e,t,r)=>{"use strict";const{Writable:n}=r(12781),i=r(7567),{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:a,kWebSocket:c}=r(79864),{concat:u,toArrayBuffer:l,unmask:p}=r(4847),{isValidStatusCode:d,isValidUTF8:h}=r(91607);function f(e,t,r,n,i){const o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,f),o.code=i,o[a]=n,o}e.exports=class extends n{constructor(e={}){super(),this._binaryType=e.binaryType||o[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 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=0,this._loop=!1}_write(e,t,r){if(8===this._opcode&&0==this._state)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=r.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),n),this._buffers[0]=r.slice(e)),e-=r.length}while(e>0);return t}startLoop(e){let t;this._loop=!0;do{switch(this._state){case 0:t=this.getInfo();break;case 1:t=this.getPayloadLength16();break;case 2:t=this.getPayloadLength64();break;case 3:this.getMask();break;case 4:t=this.getData(e);break;default:return void(this._loop=!1)}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(0!=(48&e[0]))return this._loop=!1,f(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");const t=64==(64&e[0]);if(t&&!this._extensions[i.extensionName])return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=128==(128&e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(t)return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,f(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,f(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=t}else{if(!(this._opcode>7&&this._opcode<11))return this._loop=!1,f(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin)return this._loop=!1,f(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(t)return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,f(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=128==(128&e[1]),this._isServer){if(!this._masked)return this._loop=!1,f(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,f(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(126===this._payloadLength)this._state=1;else{if(127!==this._payloadLength)return this.haveLength();this._state=2}}getPayloadLength16(){if(!(this._bufferedBytes<2))return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength();this._loop=!1}getPayloadLength64(){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),t=e.readUInt32BE(0);return t>Math.pow(2,21)-1?(this._loop=!1,f(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=t*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,f(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes7?this.controlMessage(t):this._compressed?(this._state=5,void this.decompress(t,e)):(t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage())}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,((e,r)=>{if(e)return t(e);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(f(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(r)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)}))}dataMessage(){if(this._fin){const e=this._messageLength,t=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?u(t,e):"arraybuffer"===this._binaryType?l(u(t,e)):t,this.emit("message",r,!0)}else{const r=u(t,e);if(!this._skipUTF8Validation&&!h(r))return this._loop=!1,f(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",r,!1)}}this._state=0}controlMessage(e){if(8===this._opcode)if(this._loop=!1,0===e.length)this.emit("conclude",1005,s),this.end();else{if(1===e.length)return f(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{const t=e.readUInt16BE(0);if(!d(t))return f(RangeError,`invalid status code ${t}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");const r=e.slice(2);if(!this._skipUTF8Validation&&!h(r))return f(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",t,r),this.end()}}else 9===this._opcode?this.emit("ping",e):this.emit("pong",e);this._state=0}}},62091:(e,t,r)=>{"use strict";r(41808),r(24404);const{randomFillSync:n}=r(6113),i=r(7567),{EMPTY_BUFFER:o}=r(79864),{isValidStatusCode:s}=r(91607),{mask:a,toBuffer:c}=r(4847),u=Symbol("kByteLength"),l=Buffer.alloc(4);class p{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let r,i,o=!1,s=2,c=!1;t.mask&&(r=t.maskBuffer||l,t.generateMask?t.generateMask(r):n(r,0,4),c=0==(r[0]|r[1]|r[2]|r[3]),s=6),"string"==typeof e?i=t.mask&&!c||void 0===t[u]?(e=Buffer.from(e)).length:t[u]:(i=e.length,o=t.mask&&t.readOnly&&!c);let p=i;i>=65536?(s+=8,p=127):i>125&&(s+=2,p=126);const d=Buffer.allocUnsafe(o?i+s:s);return d[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(d[0]|=64),d[1]=p,126===p?d.writeUInt16BE(i,2):127===p&&(d[2]=d[3]=0,d.writeUIntBE(i,4,6)),t.mask?(d[1]|=128,d[s-4]=r[0],d[s-3]=r[1],d[s-2]=r[2],d[s-1]=r[3],c?[d,e]:o?(a(e,r,d,s,i),[d]):(a(e,r,e,0,i),[d,e])):[d,e]}close(e,t,r,n){let i;if(void 0===e)i=o;else{if("number"!=typeof e||!s(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const r=Buffer.byteLength(t);if(r>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+r),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const a={[u]:i.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,i,!1,a,n]):this.sendFrame(p.frame(i,a),n)}ping(e,t,r){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=c(e)).length,i=c.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[u]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(p.frame(e,o),r)}pong(e,t,r){let n,i;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=c(e)).length,i=c.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[u]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(p.frame(e,o),r)}send(e,t,r){const n=this._extensions[i.extensionName];let o,s,a=t.binary?2:1,l=t.compress;if("string"==typeof e?(o=Buffer.byteLength(e),s=!1):(o=(e=c(e)).length,s=c.readOnly),this._firstFragment?(this._firstFragment=!1,l&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(l=o>=n._threshold),this._compress=l):(l=!1,a=0),t.fin&&(this._firstFragment=!0),n){const n={[u]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:s,rsv1:l};this._deflating?this.enqueue([this.dispatch,e,this._compress,n,r]):this.dispatch(e,this._compress,n,r)}else this.sendFrame(p.frame(e,{[u]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:s,rsv1:!1}),r)}dispatch(e,t,r,n){if(!t)return void this.sendFrame(p.frame(e,r),n);const o=this._extensions[i.extensionName];this._bufferedBytes+=r[u],this._deflating=!0,o.compress(e,r.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof n&&n(e);for(let t=0;t{"use strict";const{Duplex:n}=r(12781);function i(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function s(e){this.removeListener("error",s),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let r=!0;const a=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,r){const n=!r&&a._readableState.objectMode?t.toString():t;a.push(n)||e.pause()})),e.once("error",(function(e){a.destroyed||(r=!1,a.destroy(e))})),e.once("close",(function(){a.destroyed||a.push(null)})),a._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(i,a);let o=!1;e.once("error",(function(e){o=!0,n(e)})),e.once("close",(function(){o||n(t),process.nextTick(i,a)})),r&&e.terminate()},a._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),a._readableState.endEmitted&&a.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){a._final(t)}))},a._read=function(){e.isPaused&&e.resume()},a._write=function(t,r,n){e.readyState!==e.CONNECTING?e.send(t,n):e.once("open",(function(){a._write(t,r,n)}))},a.on("end",o),a.on("error",s),a}},92217:(e,t,r)=>{"use strict";const{tokenChars:n}=r(91607);e.exports={parse:function(e){const t=new Set;let r=-1,i=-1,o=0;for(;o{"use strict";const n=[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 i(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999}function o(e){const t=e.length;let r=0;for(;r=t||128!=(192&e[r+1])||128!=(192&e[r+2])||224===e[r]&&128==(224&e[r+1])||237===e[r]&&160==(224&e[r+1]))return!1;r+=3}else{if(240!=(248&e[r]))return!1;if(r+3>=t||128!=(192&e[r+1])||128!=(192&e[r+2])||128!=(192&e[r+3])||240===e[r]&&128==(240&e[r+1])||244===e[r]&&e[r+1]>143||e[r]>244)return!1;r+=4}return!0}try{const t=r(Object(function(){var e=new Error("Cannot find module 'utf-8-validate'");throw e.code="MODULE_NOT_FOUND",e}()));e.exports={isValidStatusCode:i,isValidUTF8:e=>e.length<150?o(e):t(e),tokenChars:n}}catch(t){e.exports={isValidStatusCode:i,isValidUTF8:o,tokenChars:n}}},90058:(e,t,r)=>{"use strict";const n=r(82361),i=r(13685),{createHash:o}=(r(95687),r(41808),r(24404),r(6113)),s=r(63071),a=r(7567),c=r(92217),u=r(12982),{GUID:l,kWebSocket:p}=r(79864),d=/^[+/0-9A-Za-z]{22}==$/;function h(e){e._state=2,e.emit("close")}function f(){this.destroy()}function m(e,t,r,n){e.writable&&(r=r||i.STATUS_CODES[t],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n},e.write(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+r)),e.removeListener("error",f),e.destroy()}e.exports=class extends n{constructor(e,t){if(super(),null==(e={maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:u,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(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(null!=e.port?(this._server=i.createServer(((e,t)=>{const r=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),t.end(r)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const r of Object.keys(t))e.on(r,t[r]);return function(){for(const r of Object.keys(t))e.removeListener(r,t[r])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,n)=>{this.handleUpgrade(t,r,n,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}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(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(h,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{h(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,n){t.on("error",f);const i=void 0!==e.headers["sec-websocket-key"]&&e.headers["sec-websocket-key"],o=+e.headers["sec-websocket-version"];if("GET"!==e.method||"websocket"!==e.headers.upgrade.toLowerCase()||!i||!d.test(i)||8!==o&&13!==o||!this.shouldHandle(e))return m(t,400);const u=e.headers["sec-websocket-protocol"];let l=new Set;if(void 0!==u)try{l=c.parse(u)}catch(e){return m(t,400)}const p=e.headers["sec-websocket-extensions"],h={};if(this.options.perMessageDeflate&&void 0!==p){const e=new a(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const t=s.parse(p);t[a.extensionName]&&(e.accept(t[a.extensionName]),h[a.extensionName]=e)}catch(e){return m(t,400)}}if(this.options.verifyClient){const s={origin:e.headers[8===o?"sec-websocket-origin":"origin"],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(s,((o,s,a,c)=>{if(!o)return m(t,s||401,a,c);this.completeUpgrade(h,i,l,e,t,r,n)}));if(!this.options.verifyClient(s))return m(t,401)}this.completeUpgrade(h,i,l,e,t,r,n)}completeUpgrade(e,t,r,n,i,c,u){if(!i.readable||!i.writable)return i.destroy();if(i[p])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return m(i,503);const d=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+l).digest("base64")}`],g=new this.options.WebSocket(null);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;e&&(d.push(`Sec-WebSocket-Protocol: ${e}`),g._protocol=e)}if(e[a.extensionName]){const t=e[a.extensionName].params,r=s.format({[a.extensionName]:[t]});d.push(`Sec-WebSocket-Extensions: ${r}`),g._extensions=e}this.emit("headers",d,n),i.write(d.concat("\r\n").join("\r\n")),i.removeListener("error",f),g.setSocket(i,c,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(g),g.on("close",(()=>{this.clients.delete(g),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)}))),u(g,n)}}},12982:(e,t,r)=>{"use strict";const n=r(82361),i=r(95687),o=r(13685),s=r(41808),a=r(24404),{randomBytes:c,createHash:u}=r(6113),{Readable:l}=r(12781),{URL:p}=r(57310),d=r(7567),h=r(13091),f=r(62091),{BINARY_TYPES:m,EMPTY_BUFFER:g,GUID:y,kForOnEventAttribute:b,kListener:v,kStatusCode:w,kWebSocket:_,NOOP:S}=r(79864),{EventTarget:{addEventListener:k,removeEventListener:P}}=r(35831),{format:x,parse:C}=r(63071),{toBuffer:E}=r(4847),D=["CONNECTING","OPEN","CLOSING","CLOSED"],O=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,T=[8,13];class M extends n{constructor(e,t,r){super(),this._binaryType=m[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=g,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=M.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(r=t,t=[]):t=[t]),A(this,e,t,r)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){m.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 isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){const n=new h({binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new f(e,this._extensions,r.generateMask),this._receiver=n,this._socket=e,n[_]=this,e[_]=this,n.on("conclude",N),n.on("drain",B),n.on("error",$),n.on("message",q),n.on("ping",V),n.on("pong",H),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",G),e.on("data",z),e.on("end",K),e.on("error",J),this._readyState=M.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=M.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[d.extensionName]&&this._extensions[d.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=M.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==M.CLOSED){if(this.readyState===M.CONNECTING){const e="WebSocket was closed before the connection was established";return I(this,this._req,e)}this.readyState!==M.CLOSING?(this._readyState=M.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||g,t,r)):L(this,e,r)}pong(e,t,r){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===M.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||g,t,r)):L(this,e,r)}resume(){this.readyState!==M.CONNECTING&&this.readyState!==M.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===M.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(r=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==M.OPEN)return void L(this,e,r);const n={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[d.extensionName]||(n.compress=!1),this._sender.send(e||g,n,r)}terminate(){if(this.readyState!==M.CLOSED){if(this.readyState===M.CONNECTING){const e="WebSocket was closed before the connection was established";return I(this,this._req,e)}this._socket&&(this._readyState=M.CLOSING,this._socket.destroy())}}}function A(e,t,r,n){const s={protocolVersion:T[1],maxPayload:104857600,skipUTF8Validation:!1,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(!T.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${T.join(", ")})`);let a;if(t instanceof p)a=t,e._url=t.href;else{try{a=new p(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}e._url=t}const l="wss:"===a.protocol,h="ws+unix:"===a.protocol;let f;if("ws:"===a.protocol||l||h?h&&!a.pathname?f="The URL's pathname is empty":a.hash&&(f="The URL contains a fragment identifier"):f='The URL\'s protocol must be one of "ws:", "wss:", or "ws+unix:"',f){const t=new SyntaxError(f);if(0===e._redirects)throw t;return void j(e,t)}const m=l?443:80,g=c(16).toString("base64"),b=l?i.get:o.get,v=new Set;let w;if(s.createConnection=l?F:R,s.defaultPort=s.defaultPort||m,s.port=a.port||m,s.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,s.headers={"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":g,Connection:"Upgrade",Upgrade:"websocket",...s.headers},s.path=a.pathname+a.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(w=new d(!0!==s.perMessageDeflate?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=x({[d.extensionName]:w.offer()})),r.length){for(const e of r){if("string"!=typeof e||!O.test(e)||v.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");v.add(e)}s.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(a.username||a.password)&&(s.auth=`${a.username}:${a.password}`),h){const e=s.path.split(":");s.socketPath=e[0],s.path=e[1]}if(s.followRedirects){if(0===e._redirects){e._originalHost=a.host;const t=n&&n.headers;if(n={...n,headers:{}},t)for(const[e,r]of Object.entries(t))n.headers[e.toLowerCase()]=r}else a.host!==e._originalHost&&(delete s.headers.authorization,delete s.headers.cookie,delete s.headers.host,s.auth=void 0);s.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64"))}let _=e._req=b(s);s.timeout&&_.on("timeout",(()=>{I(e,_,"Opening handshake has timed out")})),_.on("error",(t=>{null===_||_.aborted||(_=e._req=null,j(e,t))})),_.on("response",(i=>{const o=i.headers.location,a=i.statusCode;if(o&&s.followRedirects&&a>=300&&a<400){if(++e._redirects>s.maxRedirects)return void I(e,_,"Maximum redirects exceeded");let i;_.abort();try{i=new p(o,t)}catch(t){const r=new SyntaxError(`Invalid URL: ${o}`);return void j(e,r)}A(e,i,r,n)}else e.emit("unexpected-response",_,i)||I(e,_,`Unexpected server response: ${i.statusCode}`)})),_.on("upgrade",((t,r,n)=>{if(e.emit("upgrade",t),e.readyState!==M.CONNECTING)return;_=e._req=null;const i=u("sha1").update(g+y).digest("base64");if(t.headers["sec-websocket-accept"]!==i)return void I(e,r,"Invalid Sec-WebSocket-Accept header");const o=t.headers["sec-websocket-protocol"];let a;if(void 0!==o?v.size?v.has(o)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":v.size&&(a="Server sent no subprotocol"),a)return void I(e,r,a);o&&(e._protocol=o);const c=t.headers["sec-websocket-extensions"];if(void 0!==c){if(!w)return void I(e,r,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let t;try{t=C(c)}catch(t){return void I(e,r,"Invalid Sec-WebSocket-Extensions header")}const n=Object.keys(t);if(1!==n.length||n[0]!==d.extensionName)return void I(e,r,"Server indicated an extension that was not requested");try{w.accept(t[d.extensionName])}catch(t){return void I(e,r,"Invalid Sec-WebSocket-Extensions header")}e._extensions[d.extensionName]=w}e.setSocket(r,n,{generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}))}function j(e,t){e._readyState=M.CLOSING,e.emit("error",t),e.emitClose()}function R(e){return e.path=e.socketPath,s.connect(e)}function F(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=s.isIP(e.host)?"":e.host),a.connect(e)}function I(e,t,r){e._readyState=M.CLOSING;const n=new Error(r);Error.captureStackTrace(n,I),t.setHeader?(t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),t.once("abort",e.emitClose.bind(e)),e.emit("error",n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function L(e,t,r){if(t){const r=E(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}r&&r(new Error(`WebSocket is not open: readyState ${e.readyState} (${D[e.readyState]})`))}function N(e,t){const r=this[_];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,void 0!==r._socket[_]&&(r._socket.removeListener("data",z),process.nextTick(W,r._socket),1005===e?r.close():r.close(e,t))}function B(){const e=this[_];e.isPaused||e._socket.resume()}function $(e){const t=this[_];void 0!==t._socket[_]&&(t._socket.removeListener("data",z),process.nextTick(W,t._socket),t.close(e[w])),t.emit("error",e)}function U(){this[_].emitClose()}function q(e,t){this[_].emit("message",e,t)}function V(e){const t=this[_];t.pong(e,!t._isServer,S),t.emit("ping",e)}function H(e){this[_].emit("pong",e)}function W(e){e.resume()}function G(){const e=this[_];let t;this.removeListener("close",G),this.removeListener("data",z),this.removeListener("end",K),e._readyState=M.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[_]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",U),e._receiver.on("finish",U))}function z(e){this[_]._receiver.write(e)||this.pause()}function K(){const e=this[_];e._readyState=M.CLOSING,e._receiver.end(),this.end()}function J(){const e=this[_];this.removeListener("error",J),this.on("error",S),e&&(e._readyState=M.CLOSING,this.destroy())}Object.defineProperty(M,"CONNECTING",{enumerable:!0,value:D.indexOf("CONNECTING")}),Object.defineProperty(M.prototype,"CONNECTING",{enumerable:!0,value:D.indexOf("CONNECTING")}),Object.defineProperty(M,"OPEN",{enumerable:!0,value:D.indexOf("OPEN")}),Object.defineProperty(M.prototype,"OPEN",{enumerable:!0,value:D.indexOf("OPEN")}),Object.defineProperty(M,"CLOSING",{enumerable:!0,value:D.indexOf("CLOSING")}),Object.defineProperty(M.prototype,"CLOSING",{enumerable:!0,value:D.indexOf("CLOSING")}),Object.defineProperty(M,"CLOSED",{enumerable:!0,value:D.indexOf("CLOSED")}),Object.defineProperty(M.prototype,"CLOSED",{enumerable:!0,value:D.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(M.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(M.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[b])return t[v];return null},set(t){for(const t of this.listeners(e))if(t[b]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[b]:!0})}})})),M.prototype.addEventListener=k,M.prototype.removeEventListener=P,e.exports=M},96883:(e,t,r)=>{"use strict";const n=r(19856),i=r(92802);e.exports=function(){return"linux"!==process.platform?Promise.reject(new Error("Only Linux systems are supported")):n("xdg-mime",["query","default","x-scheme-handler/http"]).then((e=>{const t=e.stdout.trim();return{name:i(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}))}},19856:(e,t,r)=>{"use strict";var n=r(32081),i=r(45466),o=r(89255),s=r(4264),a=r(82563),c=r(94209)();e.exports=function(e,t,r){return new Promise((function(u,l){var p=i._parse(e,t,r);r=s({maxBuffer:10485760,stripEof:!0,preferLocal:!0},p.options);var d=function(e){return r.stripEof&&(e=o(e)),e};r.preferLocal&&(r.env=s({},r.env||process.env),r.env[c]=a({cwd:r.cwd,path:r.env[c]}));var h=n.execFile(p.command,p.args,r,(function(e,t,r){if(e)return e.stdout=t,e.stderr=r,void l(e);u({stdout:d(t),stderr:d(r)})}));i._enoent.hookChildProcess(h,p)}))},e.exports.shell=function(t,r){var n,i;return r=s({},r),"win32"===process.platform?(n=process.env.comspec||"cmd.exe",i=["/s","/c",'"'+t+'"'],r.windowsVerbatimArguments=!0):(n="/bin/sh",i=["-c",t]),r.shell&&(n=r.shell),e.exports(n,i,r)},e.exports.spawn=i},82563:(e,t,r)=>{"use strict";var n=r(71017),i=r(94209);e.exports=function(e){var t;e=e||{};for(var r=n.resolve(e.cwd||"."),o=[];t!==r;)o.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");return o.push(n.dirname(process.execPath)),o.concat(e.path||process.env[i()]).join(n.delimiter)}},94209:e=>{"use strict";e.exports=function(e){var t=(e=e||{}).env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).filter((function(e){return"PATH"===e.toUpperCase()}))[0]||"Path"}},88100:e=>{e.exports=function(){for(var e={},r=0;r{function t(e){var r=this;if(r instanceof t||(r=new t),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},t.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},t.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},t.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},t.prototype.slice=function(e,r){(r=r||this.length)<0&&(r+=this.length),(e=e||0)<0&&(e+=this.length);var n=new t;if(rthis.length&&(r=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(r=this.length);for(var i=this.length,o=this.tail;null!==o&&i>r;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},t.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this}},17180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAsyncStackPolicy=void 0;const n=r(5376),i=r(44936),o={connect:async()=>n.noOpDisposable},s=e=>({connect:async t=>(await t.Debugger.setAsyncCallStackDepth({maxDepth:e}),n.noOpDisposable)}),a=s(32);t.getAsyncStackPolicy=e=>!1===e?o:!0===e?a:"onAttach"in e?s(e.onAttach):"onceBreakpointResolved"in e?(e=>{const t=new i.EventEmitter;let r=!1;const o=()=>{r||(r=!0,t.fire())};return{async connect(i){if(r)return await i.Debugger.setAsyncCallStackDepth({maxDepth:e}),n.noOpDisposable;const s=new n.DisposableList;return s.push(t.event((()=>{s.dispose(),i.Debugger.setAsyncCallStackDepth({maxDepth:e})})),i.Debugger.on("breakpointResolved",o),i.Debugger.on("paused",(e=>{"instrumentation"!==e.reason&&o()}))),s}}})(e.onceBreakpointResolved):a},52287:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointsPredictor=t.BreakpointPredictorDelegate=t.IBreakpointsPredictor=void 0;const c=r(55053),u=s(r(71017)),l=r(44936),p=r(95882),d=r(15501),h=r(23517),f=r(43430),m=r(27819),g=r(14090),y=r(33763),b=s(r(97208)),v=r(73454),w=r(74529);t.IBreakpointsPredictor=Symbol("IBreakpointsPredictor");class _{constructor(e,t,r=t(),n){this.sourceMapFactory=e,this.factory=t,this.implementation=r,this.parent=n,r instanceof _&&(this.implementation=r.implementation),this.childImplementation=this.implementation}get onLongParse(){return this.implementation.onLongParse}invalidateNextChild(){this.sourceMapFactory instanceof f.CachingSourceMapFactory&&this.sourceMapFactory.invalidateCache(),this.childImplementation=this.factory()}getChild(){return new _(this.sourceMapFactory,this.factory,this.childImplementation,this)}getPredictionForSource(e){return this.implementation.getPredictionForSource(e)}prepareToPredict(){return this.implementation.prepareToPredict()}predictBreakpoints(e){return this.implementation.predictBreakpoints(e)}predictedResolvedLocations(e){return this.implementation.predictedResolvedLocations(e)}dispose(){var e;null===(e=this.parent)||void 0===e||e.invalidateNextChild()}}t.BreakpointPredictorDelegate=_;let S=class{constructor(e,t,r,n,i,o){this.outFiles=t,this.repo=r,this.logger=n,this.sourceMapFactory=i,this.sourcePathResolver=o,this.predictedLocations=new Map,this.longParseEmitter=new l.EventEmitter,this.onLongParse=this.longParseEmitter.event,e.__workspaceCachePath&&(this.cache=new h.CorrelatedCache(u.join(e.__workspaceCachePath,"bp-predict.json")))}async createInitialMapping(){return(0,w.logPerf)(this.logger,"BreakpointsPredictor.createInitialMapping",(()=>this.createInitialMappingInner()))}async createInitialMappingInner(){if(this.outFiles.empty)return new Map;const e=b.caseNormalizedMap(),t=t=>{let r=e.get(t.resolvedPath);r||(r=new Set,e.set(t.resolvedPath,r)),r.add(t)},r=setTimeout((()=>{this.longParseEmitter.fire(),this.logger.warn("runtime.sourcemap","Long breakpoint predictor runtime",{type:this.repo.constructor.name,longPredictionWarning:1e4,patterns:this.outFiles.patterns})}),1e4);try{await this.repo.streamChildrenWithSourcemaps(this.outFiles,(async e=>{var r,n;const i=await(null===(r=this.cache)||void 0===r?void 0:r.lookup(e.compiledPath,e.cacheKey));if(i)return void i.forEach((r=>t({...r,...e})));let o;try{o=await this.sourceMapFactory.load(e)}catch(e){return}const s=[];for(const r of o.sources){const n=this.sourcePathResolver?await this.sourcePathResolver.urlToAbsolutePath({url:r,map:o}):b.fileUrlToAbsolutePath(r);if(!n)continue;const i={...e,resolvedPath:n,sourceUrl:r};s.push(i),t(i)}null===(n=this.cache)||void 0===n||n.store(e.compiledPath,e.cacheKey,s.map((e=>({resolvedPath:e.resolvedPath,sourceUrl:e.sourceUrl}))))}))}catch(e){this.logger.warn("runtime.exception","Error reading sourcemaps from disk",{error:e})}return clearTimeout(r),e}async prepareToPredict(){this.sourcePathToCompiled||(this.sourcePathToCompiled=this.createInitialMapping()),await this.sourcePathToCompiled}async predictBreakpoints(e){var t,r;if(!e.source.path||!(null===(t=e.breakpoints)||void 0===t?void 0:t.length))return;this.sourcePathToCompiled||(this.sourcePathToCompiled=this.createInitialMapping());const n=(await this.sourcePathToCompiled).get(e.source.path);if(!n)return;const i=await Promise.all([...n].map((e=>this.sourceMapFactory.load(e).then((t=>({map:t,metadata:e}))).catch((()=>{})))));for(const t of null!==(r=e.breakpoints)&&void 0!==r?r:[]){const r=`${e.source.path}:${t.line}:${t.column||1}`;if(this.predictedLocations.has(r))return;const n=[];this.predictedLocations.set(r,n);for(const e of i){if(!e)continue;const{map:r,metadata:i}=e,o=this.sourceMapFactory.guardSourceMapFn(r,(()=>(0,y.getOptimalCompiledPosition)(i.sourceUrl,{lineNumber:t.line,columnNumber:t.column||1},r)),(()=>null));o&&null!==o.line&&n.push({absolutePath:i.compiledPath,lineNumber:o.line||1,columnNumber:o.column?o.column+1:1})}}}async getPredictionForSource(e){return this.sourcePathToCompiled||(this.sourcePathToCompiled=this.createInitialMapping()),(await this.sourcePathToCompiled).get(e)}predictedResolvedLocations(e){var t;const r=`${e.absolutePath}:${e.lineNumber}:${e.columnNumber||1}`;return null!==(t=this.predictedLocations.get(r))&&void 0!==t?t:[]}};S=o([(0,c.injectable)(),a(0,(0,c.inject)(v.AnyLaunchConfiguration)),a(1,(0,c.inject)(p.OutFiles)),a(2,(0,c.inject)(m.ISearchStrategy)),a(3,(0,c.inject)(d.ILogger)),a(4,(0,c.inject)(f.ISourceMapFactory)),a(5,(0,c.inject)(g.ISourcePathResolver))],S),t.BreakpointsPredictor=S},31939:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointManager=void 0;const c=r(55053),u=r(15501),l=r(7678),p=r(78986),d=s(r(97208)),h=r(73454),f=r(58116),m=r(1032),g=r(2403),y=r(74529),b=r(52287),v=r(31625),w=r(26502),_=r(75188),S=r(1371),k=r(82122),P=r(68164),x=r(44873),C=e=>1===e.originalPosition.columnNumber&&1===e.originalPosition.lineNumber,E=Symbol("DontCompare");let D=class{constructor(e,t,r,n,i,o,s){this.logger=r,this.launchConfig=n,this.conditionFactory=i,this.suggester=o,this._breakpointsPredictor=s,this._resolvedBreakpoints=new Map,this._totalBreakpointsCount=0,this._launchBlocker=new Set,this._predictorDisabledForTest=!1,this._breakpointsStatisticsCalculator=new g.BreakpointsStatisticsCalculator,this.entryBreakpointMode=0,this._enabledFilter=()=>!0,this._byPath=d.caseNormalizedMap(),this._byRef=new Map,this.moduleEntryBreakpoints=d.caseNormalizedMap(),this._dap=e,this._sourceContainer=t,null==s||s.onLongParse((()=>e.longPrediction({}))),t.onSourceMappedSteppingChange((()=>{if(this._thread)for(const e of this.allUserBreakpoints)e.refreshUiLocations(this._thread)})),this._scriptSourceMapHandler=async(e,t)=>{if(!r.assert(this._thread,"Expected thread to be set for the breakpoint source map handler"))return[];const n=[];for(const r of t){const t=r.absolutePath,i=t?this._byPath.get(t):void 0;for(const t of i||[])n.push(t.updateForSourceMap(this._thread,e));const o=this._byRef.get(r.sourceReference);for(const t of o||[])n.push(t.updateForSourceMap(this._thread,e))}return(await Promise.all(n)).reduce(((e,t)=>[...e,...t]),[])}}get allUserBreakpoints(){return(0,l.flatten)([...this._byPath.values(),...this._byRef.values()])}get appliedByPath(){return this._byPath}get appliedByRef(){return this._byRef}hasAtLocation(e){const t=this._byPath.get(e.source.absolutePath)||[],r=this._byRef.get(e.source.sourceReference)||[];return t.concat(r).some((t=>t.originalPosition.columnNumber===e.columnNumber&&t.originalPosition.lineNumber===e.lineNumber))}moveBreakpoints(e,t,r){const n=e=>(0,l.bisectArray)(e,(e=>{const n=this._sourceContainer.getOptiminalOriginalPosition(t,e.originalPosition);return null===n.column||null===n.line||e.updateSourceLocation({path:r.absolutePath,sourceReference:r.sourceReference},{lineNumber:n.line,columnNumber:n.column+1,source:r}),!1})),i=e.absolutePath,o=r.absolutePath,s=i?this._byPath.get(i):void 0;if(s&&o){const[e,t]=n(s);this._byPath.set(i,e),this._byPath.set(o,t)}const a=this._byRef.get(e.sourceReference);if(a){const[t,i]=n(a);this._byRef.set(e.sourceReference,t),this._byRef.set(r.sourceReference,i)}}async updateEntryBreakpointMode(e,t){if(t===this.entryBreakpointMode)return;const r=[...this.moduleEntryBreakpoints.values()];this.moduleEntryBreakpoints.clear(),this.entryBreakpointMode=t,await Promise.all(r.map((t=>this.ensureModuleEntryBreakpoint(e,t.source))))}async applyEnabledFilter(e,t=E){if(t!==E&&this._enabledFilter!==t)return;this._enabledFilter=e||(()=>!0);const r=this._thread;r&&await Promise.all(this.allUserBreakpoints.map((e=>this._enabledFilter(e)?e.enable(r):e.disable())))}async getBreakpointLocations(e,t,r,n){const i=r.base1,o=this._sourceContainer.currentSiblingUiLocations({source:t,lineNumber:i.lineNumber,columnNumber:i.columnNumber}),s=n.base1,a=this._sourceContainer.currentSiblingUiLocations({source:t,lineNumber:s.lineNumber,columnNumber:s.columnNumber});if(o.length!==a.length)return this.logger.warn("internal","Expected to have the same number of start and end locations"),[];const c=[],u=[];for(let t=0;t{if(e)for(const t of e.locations){const{lineNumber:e,columnNumber:r=0}=t,n=this._sourceContainer.currentSiblingUiLocations({source:i,...(0,x.rawToUiOffset)((0,x.base0To1)({lineNumber:e,columnNumber:r}),i.runtimeScriptOffset)});u.push({breakLocation:t,uiLocations:n})}})))}return await Promise.all(c),u}setThread(e){var t;this._thread=e,this._thread.cdp().Debugger.on("breakpointResolved",(t=>{const r=this._resolvedBreakpoints.get(t.breakpointId);r&&r.updateUiLocations(e,t.breakpointId,[t.location])})),this._thread.setSourceMapDisabler((e=>{const t=[];for(const r of e){const e=this._resolvedBreakpoints.get(r);if(e){const r=this._sourceContainer.source(e.source);(0,x.isSourceWithMap)(r)&&t.push(r)}}return t}));for(const r of this._byPath.values())r.forEach((t=>this._setBreakpoint(t,e))),this.ensureModuleEntryBreakpoint(e,null===(t=r[0])||void 0===t?void 0:t.source);for(const t of this._byRef.values())t.forEach((t=>this._setBreakpoint(t,e)));"runtimeSourcemapPausePatterns"in this.launchConfig&&this.launchConfig.runtimeSourcemapPausePatterns.length&&this.setRuntimeSourcemapPausePatterns(e,this.launchConfig.runtimeSourcemapPausePatterns),(this._byPath.size>0||this._byRef.size>0)&&this._installSourceMapHandler(this._thread)}async launchBlocker(){(0,y.logPerf)(this.logger,"BreakpointManager.launchBlocker",(async()=>{this._predictorDisabledForTest||await Promise.all([...this._launchBlocker])}))}setRuntimeSourcemapPausePatterns(e,t){return Promise.all(t.map((t=>this._setBreakpoint(new S.PatternEntryBreakpoint(this,t),e))))}addLaunchBlocker(...e){for(const t of e)this._launchBlocker.add(t),t.finally((()=>this._launchBlocker.delete(t)))}setPredictorDisabledForTest(e){this._predictorDisabledForTest=e}_installSourceMapHandler(e){return"yes"===this.launchConfig.perScriptSourcemaps?Promise.all([this.updateEntryBreakpointMode(e,1),e.setScriptSourceMapHandler(!1,this._scriptSourceMapHandler)]).then((()=>!0)):this._breakpointsPredictor&&!this.launchConfig.pauseForSourceMap?e.setScriptSourceMapHandler(!1,this._scriptSourceMapHandler):e.setScriptSourceMapHandler(!0,this._scriptSourceMapHandler)}async _uninstallSourceMapHandler(e){e.setScriptSourceMapHandler(!1),this._sourceMapHandlerInstalled=void 0}_setBreakpoint(e,t){this._enabledFilter(e)&&this.addLaunchBlocker(Promise.race([(0,p.delay)(500),e.enable(t)]))}async setBreakpoints(e,t){var r,n,i;!this._sourceMapHandlerInstalled&&this._thread&&(null===(r=e.breakpoints)||void 0===r?void 0:r.length)&&(this._sourceMapHandlerInstalled={entryBpSet:this._installSourceMapHandler(this._thread)});const o=await(null===(n=this._sourceMapHandlerInstalled)||void 0===n?void 0:n.entryBpSet);e.source.path=d.platformPathToPreferredCase(e.source.path);const s=this._sourceContainer.source(e.source);if(e.source.sourceReference&&e.source.path&&!s&&(e.source.sourceReference=void 0),!o&&this._breakpointsPredictor&&!s){const t=this._breakpointsPredictor.predictBreakpoints(e);this.addLaunchBlocker(t),await t}const a=this._thread;if(!1===(null==a?void 0:a.debuggerReady.hasSettled())){const e=a.debuggerReady.promise;this.addLaunchBlocker(e),await e}const c=()=>e.source.path?this._byPath.get(e.source.path):e.source.sourceReference?this._byRef.get(e.source.sourceReference):void 0,u=(r=>{var n;const i={unbound:r.slice(),new:[],list:[]};if(!e.breakpoints)return i;for(let r=0;re.equivalentTo(s))),c=i.unbound[a];(null===(n=null==c?void 0:c.equivalentTo)||void 0===n?void 0:n.call(c,s))?(i.list.push(c),i.unbound.splice(a,1)):(i.new.push(s),i.list.push(s))}return i})(null!==(i=c())&&void 0!==i?i:[]);if(e.source.path)this._byPath.set(e.source.path,u.list);else{if(!e.source.sourceReference)return{breakpoints:[]};this._byRef.set(e.source.sourceReference,u.list)}if(this._totalBreakpointsCount-=u.unbound.length,await Promise.all(u.unbound.map((e=>e.disable()))),this._totalBreakpointsCount+=u.new.length,this._thread&&0===this._totalBreakpointsCount&&this._sourceMapHandlerInstalled&&this._uninstallSourceMapHandler(this._thread),a&&u.new.length){this.ensureModuleEntryBreakpoint(a,e.source);const t=c(),r=Promise.all(u.new.filter(this._enabledFilter).filter((e=>null==t?void 0:t.includes(e))).map((e=>e.enable(a))));this.addLaunchBlocker(Promise.race([(0,p.delay)(500),r])),await r}const l=await Promise.all(u.list.map((e=>e.toDap())));return this._breakpointsStatisticsCalculator.registerBreakpoints(l),(0,p.delay)(0).then((()=>u.new.forEach((e=>e.markSetCompleted())))),{breakpoints:l}}async notifyBreakpointChange(e,t){const r=await e.toDap();r.verified&&(this._breakpointsStatisticsCalculator.registerResolvedBreakpoint(e.dapId),this.suggester.notifyVerifiedBreakpoint()),t&&this._dap.breakpoint({reason:"changed",breakpoint:r})}isEntrypointBreak(e,t){const r=[...this.moduleEntryBreakpoints.values()].filter((e=>e.enabled&&e.cdpScriptIds.has(t)));if(r.length){for(const e of r)e instanceof S.PatternEntryBreakpoint||e.disable();return!0}return e.some((e=>{const t=this._resolvedBreakpoints.get(e);return t&&(t instanceof w.EntryBreakpoint||C(t))}))}async shouldPauseAt(e,t,r,n=!1){if(!t.length)return"instrumentation"!==e.reason;let i=0,o=n?1:0;return await Promise.all(t.map((async t=>{if((null==r?void 0:r.cdpId)===t)return void i++;const n=this._resolvedBreakpoints.get(t);if(n instanceof w.EntryBreakpoint)return 0!==this.entryBreakpointMode||n instanceof S.PatternEntryBreakpoint||n.disable(),void o++;n instanceof k.UserDefinedBreakpoint&&(await n.testHitCondition(e)?i++:o++)}))),i>0||0===o}registerBreakpointsHit(e){for(const t of e){const e=this._resolvedBreakpoints.get(t);e instanceof k.UserDefinedBreakpoint&&this._breakpointsStatisticsCalculator.registerBreakpointHit(e.dapId)}}statisticsForTelemetry(){return this._breakpointsStatisticsCalculator.statistics()}ensureModuleEntryBreakpoint(e,t){var r;if(!t.path)return;if((null!==(r=this._byPath.get(t.path))&&void 0!==r?r:[]).some(C))return;const n=w.EntryBreakpoint.getModeKeyForSource(this.entryBreakpointMode,t.path);if(!t.path||this.moduleEntryBreakpoints.has(n))return;const i=new w.EntryBreakpoint(this,t,this.entryBreakpointMode);this.moduleEntryBreakpoints.set(t.path,i),this._setBreakpoint(i,e)}executionContextWasCleared(){for(const e of this.allUserBreakpoints)e.executionContextWasCleared()}async reapply(){const e=[...this.allUserBreakpoints];if(await Promise.all(e.map((e=>e.disable()))),this._thread){const t=this._thread;await Promise.all(e.map((e=>e.enable(t))))}}};D=o([(0,c.injectable)(),a(0,(0,c.inject)(f.IDapApi)),a(1,(0,c.inject)(x.SourceContainer)),a(2,(0,c.inject)(u.ILogger)),a(3,(0,c.inject)(h.AnyLaunchConfiguration)),a(4,(0,c.inject)(v.IBreakpointConditionFactory)),a(5,(0,c.inject)(P.DiagnosticToolSuggester)),a(6,(0,c.inject)(b.IBreakpointsPredictor))],D),t.BreakpointManager=D},16564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breakpoint=void 0;const n=r(97208),i=r(44873),o=(e,t)=>e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,s=e=>!("location"in e),a=e=>"location"in e,c=(e,t)=>e.url&&t===e.url||e.urlRegex&&new RegExp(e.urlRegex).test(t);t.Breakpoint=class{constructor(e,t,r){this._manager=e,this._source=t,this._originalPosition=r,this.isEnabled=!1,this.setInCdpScriptIds=new Set,this.cdpScriptIds=this.setInCdpScriptIds,this.cdpBreakpoints=[],this._cdpIds=new Set}get enabled(){return this.isEnabled}get cdpIds(){return this._cdpIds}get source(){return this._source}get originalPosition(){return this._originalPosition}async updateSourceLocation(e,t){this._source=e,this._originalPosition=t,this.updateCdpRefs((e=>e.map((e=>1===e.state?{...e,uiLocations:this._manager._sourceContainer.currentSiblingUiLocations(t)}:e))))}async refreshUiLocations(e){await Promise.all(this.cdpBreakpoints.filter((e=>1===e.state)).map((t=>this.updateUiLocations(e,t.cdpId,t.locations))))}async enable(e){if(this.isEnabled)return;this.isEnabled=!0;const t=[this._setPredicted(e)],r=this._manager._sourceContainer.source(this.source);if(r&&r instanceof i.SourceFromMap||t.push(this._setByPath(e,(0,i.uiToRawOffset)(this.originalPosition,null==r?void 0:r.runtimeScriptOffset))),await Promise.all(t),r&&this.isEnabled){const t=this._manager._sourceContainer.currentSiblingUiLocations({lineNumber:this.originalPosition.lineNumber,columnNumber:this.originalPosition.columnNumber,source:r});await Promise.all(t.map((t=>this._setByUiLocation(e,(0,i.uiToRawOffset)(t,r.runtimeScriptOffset)))))}}async updateUiLocations(e,t,r){this.updateExistingCdpRef(t,(e=>({...e,locations:r})));const n=(await Promise.all(r.map((t=>e.rawLocationToUiLocation(e.rawLocation(t)))))).find((e=>!!e));if(!n)return;const i=this._manager._sourceContainer.source(this.source);i&&this.updateExistingCdpRef(t,(e=>{const t=this._manager._sourceContainer.currentSiblingUiLocations(n),o=t.filter((e=>e.source===i));return{...e,locations:r,uiLocations:o.length?o:t}}))}compare(e){const t=this.originalPosition,r=e.originalPosition;return t.lineNumber!==r.lineNumber?t.lineNumber-r.lineNumber:t.columnNumber-r.columnNumber}async disable(){if(!this.isEnabled)return;this.isEnabled=!1;const e=this.cdpBreakpoints.map((e=>this.removeCdpBreakpoint(e)));await Promise.all(e)}async updateForSourceMap(e,t){const r=this._manager._sourceContainer.source(this.source);if(!r)return[];const n=this._manager._sourceContainer.currentSiblingUiLocations({lineNumber:this.originalPosition.lineNumber,columnNumber:this.originalPosition.columnNumber,source:r},await t.source);if(!n.length)return[];const o=[];for(const s of n)o.push(this._setByScriptId(e,t,(0,i.uiToRawOffset)(s,r.runtimeScriptOffset)));for(const e of this.cdpBreakpoints){if(!s(e.args))continue;if(!this.breakpointIsForSource(e.args,r))continue;const t=e.args;n.some((e=>e.columnNumber-1===t.columnNumber&&e.lineNumber-1===t.lineNumber))||(this._manager.logger.verbose("runtime.sourcemap","Adjusted breakpoint due to overlaid sourcemap",{url:r.url}),o.push(this.removeCdpBreakpoint(e)))}return await Promise.all(o),n}executionContextWasCleared(){this.updateCdpRefs((e=>e.filter((e=>s(e.args)))))}breakpointIsForSource(e,t){if(c(e,t.url))return!0;const r=this._manager._sourceContainer.sourcePathResolver.rebaseLocalToRemote(t.absolutePath);return!!c(e,r)}getBreakCondition(){}updateExistingCdpRef(e,t){this.updateCdpRefs((r=>r.map((r=>1!==r.state||r.cdpId!==e?r:t(r)))))}updateCdpRefs(e){this.cdpBreakpoints=e(this.cdpBreakpoints);const t=new Set;this.setInCdpScriptIds.clear();for(const e of this.cdpBreakpoints)if(1===e.state){t.add(e.cdpId);for(const t of e.locations)this.setInCdpScriptIds.add(t.scriptId)}this._cdpIds=t}async _setPredicted(e){if(!this.source.path||!this._manager._breakpointsPredictor)return;const t=this._manager._breakpointsPredictor.predictedResolvedLocations({absolutePath:this.source.path,lineNumber:this.originalPosition.lineNumber,columnNumber:this.originalPosition.columnNumber}),r=[];for(const n of t){const t=this._manager._sourceContainer.sourcePathResolver.absolutePathToUrlRegexp(n.absolutePath);void 0!==t&&("string"==typeof t?r.push(this._setByUrlRegexp(e,t,n)):r.push(t.then((t=>t?this._setByUrlRegexp(e,t,n):void 0))))}await Promise.all(r)}async _setByUiLocation(e,t){const r=[],n=e.scriptsFromSource(t.source);for(const i of n)r.push(this._setByScriptId(e,i,t));await Promise.all(r)}async _setByPath(e,t){const r=this._manager._sourceContainer.source({path:this.source.path});if(!(r instanceof i.SourceFromMap&&[...r.compiledToSourceUrl.keys()].some((e=>e.absolutePath===this.source.path))))if(this.source.path){const r=await this._manager._sourceContainer.sourcePathResolver.absolutePathToUrlRegexp(this.source.path);if(!r)return;await this._setByUrlRegexp(e,r,t)}else{const r=this._manager._sourceContainer.source(this.source),i=null==r?void 0:r.url;if(!i)return;await this._setByUrl(e,i,t),this.source.path!==i&&void 0!==this.source.path&&await this._setByUrl(e,(0,n.absolutePathToFileUrl)(this.source.path),t)}}hasSetOnLocation(e,t){return this.cdpBreakpoints.find((r=>{var n;return e.scriptId&&a(r.args)&&r.args.location.scriptId===e.scriptId&&o(r.args.location,t)||e.url&&s(r.args)&&new RegExp(null!==(n=r.args.urlRegex)&&void 0!==n?n:"").test(e.url)&&o(r.args,t)}))}hasSetOnLocationByRegexp(e,t){return this.cdpBreakpoints.find((r=>{if(s(r.args))return r.args.urlRegex===e&&o(r.args,t);const n=this._manager._sourceContainer.getScriptById(r.args.location.scriptId);return n?o(r.args.location,t)&&new RegExp(e).test(n.url):void 0}))}async _setByUrl(e,t,r){return this._setByUrlRegexp(e,(0,n.urlToRegex)(t),r)}async _setByUrlRegexp(e,t,r){r=(0,i.base1To0)(r);const n=this.hasSetOnLocationByRegexp(t,r);if(!n)return this._setAny(e,{urlRegex:t,condition:this.getBreakCondition(),...r});0===n.state&&await n.done}async _setByScriptId(e,t,r){r=(0,i.base1To0)(r);const n=this.hasSetOnLocation(t,r);if(!n)return this._setAny(e,{condition:this.getBreakCondition(),location:{scriptId:t.scriptId,...r}});0===n.state&&await n.done}async _setAny(e,t){if(!this.isEnabled)return;const r={state:0,args:t,deadletter:!1};r.done=(async()=>{const n=a(t)?await e.cdp().Debugger.setBreakpoint(t):await e.cdp().Debugger.setBreakpointByUrl(t);if(!n)return;if(r.deadletter)return void await e.cdp().Debugger.removeBreakpoint({breakpointId:n.breakpointId});const i="actualLocation"in n?[n.actualLocation]:n.locations;this._manager._resolvedBreakpoints.set(n.breakpointId,this);const o={state:1,cdpId:n.breakpointId,args:t,locations:i,uiLocations:[]};return this.updateCdpRefs((e=>e.map((e=>e===r?o:e)))),await this.updateUiLocations(e,n.breakpointId,i),o})(),this.updateCdpRefs((e=>[...e,r])),await r.done}async removeCdpBreakpoint(e){var t;this.updateCdpRefs((t=>t.filter((t=>t!==e)))),0===e.state?(e.deadletter=!0,await e.done):(await(null===(t=this._manager._thread)||void 0===t?void 0:t.cdp().Debugger.removeBreakpoint({breakpointId:e.cdpId})),this._manager._resolvedBreakpoints.delete(e.cdpId))}}},41222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapBreakCondition=t.ExpressionCondition=void 0;const n=r(33763),i=r(44413),o=r(1032);class s{constructor(e){"function"==typeof e?this.invoke=e:this.breakCondition=e}static parse(e,r,a,c){a&&(r=(0,t.wrapBreakCondition)(r));const u=r&&(0,n.getSyntaxErrorIn)(r);if(u)throw new o.ProtocolError((0,i.invalidBreakPointCondition)(e,u.message));const{canEvaluateDirectly:l,invoke:p}=c.prepare(r);return new s(l?r:p)}async shouldStayPaused(e){if(!this.invoke)return Promise.resolve(!0);const t=await this.invoke({callFrameId:e.callFrames[0].callFrameId,returnByValue:!0});return!0===(null==t?void 0:t.result.value)}}t.ExpressionCondition=s,t.wrapBreakCondition=e=>`(()=>{try{return ${e};}catch(e){console.error(e);return true}})()`},70738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitCondition=void 0;const n=r(44413),i=r(1032),o=/^(>|>=|={1,3}|<|<=|%)?\s*([0-9]+)$/;class s{constructor(e){this.predicate=e,this.hits=0,this.breakCondition=void 0}shouldStayPaused(){return Promise.resolve(this.predicate(++this.hits))}static parse(e){const t=o.exec(e);if(!t)throw new i.ProtocolError((0,n.invalidHitCondition)(e));const[,r,a]=t,c="%"===r?`return (numHits % ${a}) === 0;`:"="===r[0]?`return numHits === ${a};`:`return numHits ${r} ${a};`;return new s(new Function("numHits",c))}}t.HitCondition=s},31625:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointConditionFactory=t.IBreakpointConditionFactory=t.AlwaysBreak=void 0;const o=r(55053),s=r(73454),a=r(45997),c=r(41222),u=r(70738),l=r(37853),p=r(87157);t.AlwaysBreak=new p.SimpleCondition({line:0},void 0),t.IBreakpointConditionFactory=Symbol("IBreakpointConditionFactory");let d=class{constructor(e,t,r){this.logPointCompiler=e,this.evaluator=t,this.breakOnError=r.__breakOnConditionalError}getConditionFor(e){return e.condition?c.ExpressionCondition.parse(e,e.condition,this.breakOnError,this.evaluator):e.logMessage?this.logPointCompiler.compile(e,e.logMessage):e.hitCondition?u.HitCondition.parse(e.hitCondition):t.AlwaysBreak}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(l.LogPointCompiler)),i(1,(0,o.inject)(a.IEvaluator)),i(2,(0,o.inject)(s.AnyLaunchConfiguration))],d),t.BreakpointConditionFactory=d},37853:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogPointCompiler=void 0;const o=r(26487),s=r(6113),a=r(55053),c=r(72223),u=r(33763),l=r(44413),p=r(1032),d=r(45997),h=r(24930),f=r(87157);let m=class{constructor(e){this.evaluator=e}compile(e,t){const r=this.logMessageToExpression(t),n=(0,u.getSyntaxErrorIn)(r);if(n)throw new p.ProtocolError((0,l.invalidBreakPointCondition)(e,n.message));const{canEvaluateDirectly:i,invoke:o}=this.evaluator.prepare(r);return i?new f.SimpleCondition(e,this.logMessageToExpression(t)):new h.RuntimeLogPoint(o)}serializeLogStatements(e){return(0,c.returnErrorsFromStatements)([],e,!1)}logMessageToExpression(e){const t=e=>e.replace(/%/g,"%%"),r=[],n=[];let i=0;for(;;){const s=e.indexOf("{",i);if(-1===s){r.push(t(e.slice(i)));break}r.push(t(e.slice(i,s)));const[a]=(0,c.parseSource)(e.slice(s));if(i=s+a.end,i-1!==s+1&&"}"===e[i-1]){if("BlockStatement"!==a.type)break;n.push((0,o.generate)(this.serializeLogStatements(a.body))),r.push("%O")}else r.push(t(e.slice(s,i)))}const a=`console.log(${[JSON.stringify(r.join("")),...n].join(", ")}), false`;return a+`\n//# sourceURL=logpoint-${(0,s.createHash)("sha1").update(a).digest("hex").slice(0,7)}.cdp`}};m=n([(0,a.injectable)(),i(0,(0,a.inject)(d.IEvaluator))],m),t.LogPointCompiler=m},24930:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeLogPoint=void 0,t.RuntimeLogPoint=class{constructor(e){this.invoke=e,this.breakCondition=void 0}async shouldStayPaused(e){return await this.invoke({callFrameId:e.callFrames[0].callFrameId}),!1}}},87157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCondition=void 0;const n=r(33763),i=r(44413),o=r(1032);t.SimpleCondition=class{constructor(e,t){this.breakCondition=t;const r=t&&(0,n.getSyntaxErrorIn)(t);if(r)throw new o.ProtocolError((0,i.invalidBreakPointCondition)(e,r.message))}shouldStayPaused(){return Promise.resolve(!0)}}},26502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryBreakpoint=void 0;const n=r(71017),i=r(16564);class o extends i.Breakpoint{constructor(e,t,r){super(e,t,{lineNumber:1,columnNumber:1}),this.mode=r}static getModeKeyForSource(e,t){return 1===e?(0,n.basename)(t,(0,n.extname)(t)||void 0):t}_setPredicted(){return Promise.resolve()}_setByPath(e,t){if(!this.source.path)return Promise.resolve();const r=o.getModeKeyForSource(this.mode,this.source.path);return 1===this.mode?super._setByUrl(e,r,t):super._setByPath(e,t)}}t.EntryBreakpoint=o},75188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NeverResolvedBreakpoint=void 0;const n=r(82122),i=r(70738);class o extends n.UserDefinedBreakpoint{constructor(e,t,r,n){super(e,t,r,n,new i.HitCondition((()=>!1)))}getResolvedUiLocation(){}}t.NeverResolvedBreakpoint=o},1371:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PatternEntryBreakpoint=void 0;const n=r(48586),i=r(79783),o=r(26502);class s extends o.EntryBreakpoint{constructor(e,t){super(e,{path:t},1),this.pattern=t}async enable(e){if(this.isEnabled)return;this.isEnabled=!0;const t=(0,n.makeRe)((0,i.forceForwardSlashes)(this.pattern),{contains:!0,lookbehinds:!1});await this._setAny(e,{urlRegex:t.source.replace(/([a-z]):/i,((e,t)=>`[${t.toLowerCase()}${t.toUpperCase()}]:`)),lineNumber:0,columnNumber:0})}}t.PatternEntryBreakpoint=s},82122:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UserDefinedBreakpoint=void 0;const s=o(r(33463)),a=r(78986),c=r(16564),u=s.loadMessageBundle(r(71017).join(__dirname,"adapter/breakpoints/userDefinedBreakpoint.js"));class l extends c.Breakpoint{constructor(e,t,r,n,i){super(e,r,{lineNumber:n.line,columnNumber:n.column||1}),this.dapId=t,this.dapParams=n,this.condition=i,this.completedSet=(0,a.getDeferred)()}equivalentTo(e){return e.dapParams.column===this.dapParams.column&&e.dapParams.line===this.dapParams.line&&e.dapParams.hitCondition===this.dapParams.hitCondition&&e.dapParams.condition===this.dapParams.condition&&e.dapParams.logMessage===this.dapParams.logMessage}untilSetCompleted(){return this.completedSet.promise}markSetCompleted(){this.completedSet.resolve()}testHitCondition(e){return this.condition.shouldStayPaused(e)}async toDap(){const e=this.enabled&&this.getResolvedUiLocation();return e?{id:this.dapId,verified:!0,source:await e.source.toDap(),line:e.lineNumber,column:e.columnNumber}:{id:this.dapId,verified:!1,message:u(0,null)}}diagnosticDump(){return{source:this.source,params:this.dapParams,cdp:this.cdpBreakpoints}}getBreakCondition(){return this.condition.breakCondition}updateCdpRefs(e){const t=this.getResolvedUiLocation();super.updateCdpRefs(e),this.getResolvedUiLocation()!==t&&this.notifyResolved()}getResolvedUiLocation(){for(const e of this.cdpBreakpoints)if(1===e.state&&e.uiLocations.length)return e.uiLocations[0]}async notifyResolved(){await this._manager.notifyBreakpointChange(this,this.completedSet.hasSettled())}}t.UserDefinedBreakpoint=l},75951:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CdpProxyProvider=t.ICdpProxyProvider=void 0;const o=r(6113),s=r(55053),a=r(63216),c=r(33361),u=r(5376),l=r(15501),p=r(91183);class d{constructor(){this.replays=new Map}addReplay(e,t,r){let n=this.replays.get(e);return n||(n=new c.LinkedList,this.replays.set(e,n)),n.push({event:`${e}.${t}`,params:r})}capture(e,t,r,n){const i=e[t];if(0===n)i.on(r,(e=>this.addReplay(t,r,e)));else if(2===n){let e;i.on(r,(n=>{null==e||e(),e=this.addReplay(t,r,n)}))}else{const e=new c.LinkedList;i.on(r,(i=>{var o;e.size===n.cap&&(null===(o=e.shift())||void 0===o||o()),e.push(this.addReplay(t,r,i))}))}}filter(e,t){const r=this.replays.get(e);r&&r.applyFilter(t)}clearEvent(e,t){const r=`${e}.${t}`;this.filter(e,(e=>e.event!==r))}clearDomain(e){this.replays.delete(e)}read(e){var t;return null!==(t=this.replays.get(e))&&void 0!==t?t:[]}}t.ICdpProxyProvider=Symbol("ICdpProxyProvider");let h=class{constructor(e,t,r){this.cdp=e,this.portTracker=t,this.logger=r,this.disposables=new u.DisposableList,this.replay=new d,this.jsDebugApi={subscribe:(e,{events:t})=>{for(const r of t)r.endsWith("*")?e.pushDisposable(this.cdp.session.onPrefix(r.slice(0,-"*".length),(t=>e.send({method:t.method,params:t.params})))):e.pushDisposable(this.cdp.session.on(r,(t=>e.send({method:r,params:t}))));return{}}},this.replay.capture(e,"CSS","styleSheetAdded",0),this.replay.capture(e,"Debugger","paused",2),this.replay.capture(e,"Runtime","executionContextCreated",{cap:50,type:1}),this.replay.capture(e,"Runtime","consoleAPICalled",{cap:50,type:1}),e.Debugger.on("resumed",(()=>{this.replay.clearEvent("Debugger","paused")})),e.CSS.on("fontsUpdated",(e=>{e.font&&this.replay.addReplay("CSS","fontsUpdated",e)})),e.CSS.on("styleSheetRemoved",(e=>this.replay.filter("CSS",(t=>t.params.styleSheetId!==e.styleSheetId))))}async proxy(){this.server||(this.server=this.createServer());const{server:e,path:t}=await this.server,r=e.address();return{host:r.address,port:r.port,path:t}}async createServer(){const e=`/${(0,o.randomBytes)(20).toString("hex")}`,t=await(0,p.acquireTrackedWebSocketServer)(this.portTracker,{perMessageDeflate:!0,path:e});return this.logger.info("proxyActivity","activated cdp proxy"),t.on("connection",(e=>{const t=new m(e,this.logger);this.logger.info("proxyActivity","accepted proxy connection",{id:t.id}),e.on("close",(()=>{this.logger.verbose("proxyActivity","closed proxy connection",{id:t.id}),this.disposables.disposeObject(t)})),e.on("message",(async e=>{let r;try{r=JSON.parse(e.toString())}catch(e){return t.send({id:0,error:{code:-32700,message:e.message}})}this.logger.verbose("proxyActivity","received proxy message",r);const{method:n,params:i,id:o=0}=r,[s,c]=n.split(".");try{const e="JsDebug"===s?await this.invokeJsDebugDomainMethod(t,c,i):await this.invokeCdpMethod(t,s,c,i);t.send({id:o,result:e})}catch(e){const r=e instanceof a.ProtocolError&&e.cause?e.cause:{code:0,message:e.message};t.send({id:o,error:r})}}))})),{server:t,path:e}}dispose(){var e;this.disposables.dispose(),null===(e=this.server)||void 0===e||e.then((e=>e.server.close())),this.server=void 0}invokeCdpMethod(e,t,r,n){const i=this.cdp.session.sendOrDie(`${t}.${r}`,n);switch(r){case"enable":for(const r of this.replay.read(t))e.send({method:r.event,params:r.params});break;case"disable":this.replay.clearDomain(t)}return i}invokeJsDebugDomainMethod(e,t,r){if(!this.jsDebugApi.hasOwnProperty(t))throw new a.ProtocolError(t).setCause(-32601,`JsDebug.${t} not found`);return this.jsDebugApi[t](e,r)}};h=n([(0,s.injectable)(),i(0,(0,s.inject)(a.ICdpApi)),i(1,(0,s.inject)(p.IPortLeaseTracker)),i(2,(0,s.inject)(l.ILogger))],h),t.CdpProxyProvider=h;let f=0;class m{constructor(e,t){this.webSocket=e,this.logger=t,this.disposables=new u.DisposableList,this.id=f++}pushDisposable(e){this.disposables.push(e)}dispose(){this.disposables.dispose(),this.webSocket.close()}send(e){this.logger.verbose("proxyActivity","send proxy message",e),this.webSocket.send(JSON.stringify(e))}}},51695:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Completions=t.ICompletions=void 0;const o=r(22681),s=r(38347),a=r(55053),c=r(63216),u=r(72223),l=r(36268),p=r(45997),d=r(38103);function h(e){let t=!1;return(0,s.traverse)(e,{enter(e){if("CallExpression"===e.type||"NewExpression"===e.type||"UnaryExpression"===e.type&&"delete"===e.operator||"ClassBody"===e.type)return t=!0,s.VisitorOption.Break}}),t}t.ICompletions=Symbol("ICompletions");let f=class{constructor(e,t){this.evaluator=e,this.cdp=t}async completions(e){const t=(0,u.parseProgram)(e.expression),r=new l.PositionToOffset(e.expression).convert(e.position);let n=()=>Promise.resolve([]);return(0,s.traverse)(t,{enter:i=>{const o=i;o.startthis.identifierCompleter(e,t,i,r):"MemberExpression"===i.type&&(n=i.computed?()=>this.elementAccessCompleter(e,i,r):()=>this.propertyAccessCompleter(e,i,r)))}}),n().then((e=>e.sort(((e,t)=>e.sortText>t.sortText?1:-1))))}async elementAccessCompleter(e,t,r){if("Literal"!==t.property.type||"string"!=typeof t.property.value)return[];const n=e.expression.slice((0,u.getStart)(t.property)+1,r);return(await this.defaultCompletions(e,n)).filter((e=>"~~["!==e.sortText)).map((e=>{var r;return{...e,text:JSON.stringify(null!==(r=e.text)&&void 0!==r?r:e.label)+"]",start:(0,u.getStart)(t.property),length:(0,u.getEnd)(t.property)-(0,u.getStart)(t.property)}}))}async identifierCompleter(e,t,r,n){const i=[];(0,s.traverse)(t,{enter(e){var t;const r=(e=>{var t,r,n;switch(e.type){case"ClassDeclaration":case"ClassExpression":return{type:"class",id:e.id};case"MethodDefinition":return{type:"Identifier"===(null===(t=e.key)||void 0===t?void 0:t.type)&&"constructor"===e.key.name?"constructor":"method",id:e.key};case"VariableDeclarator":return{type:"FunctionExpression"===(null===(r=e.init)||void 0===r?void 0:r.type)||"ArrowFunctionExpression"===(null===(n=e.init)||void 0===n?void 0:n.type)?"function":"variable",id:e.id}}})(e);"Identifier"===(null===(t=null==r?void 0:r.id)||void 0===t?void 0:t.type)&&i.push({label:r.id.name,type:r.type,sortText:r.id.name})}});const o=e.expression.slice((0,u.getStart)(r),n),a=[...i,...await this.defaultCompletions(e,o)];return this.evaluator.hasReturnValue&&void 0!==e.executionContextId&&p.returnValueStr.startsWith(o)&&a.push({sortText:`~${p.returnValueStr}`,label:p.returnValueStr,type:"variable"}),a}async propertyAccessCompleter(e,t,r){const{result:n,isArray:i}=await this.completePropertyAccess({executionContextId:e.executionContextId,stackFrame:e.stackFrame,expression:(0,u.getText)(e.expression,t.object),prefix:(0,o.isDummy)(t.property)?"":e.expression.slice((0,u.getStart)(t.property),r),throwOnSideEffect:h(t)}),s=(0,u.getStart)(t.property)-1,a=/^[$a-z_][0-9a-z_$]*$/i;for(const e of n)a.test(e.label)||(e.text=`[${JSON.stringify(e.label)}]`,e.start=s,e.length=1);if(i){const e="index";n.unshift({label:`[${e}]`,text:`[${e}]`,type:"property",sortText:"~~[",start:s,selectionStart:1,selectionLength:e.length,length:1})}return n}async completePropertyAccess({executionContextId:e,stackFrame:t,expression:r,prefix:n,isInGlobalScope:i=!1,throwOnSideEffect:o=!1}){const s={expression:`(${r})`,objectGroup:"console",silent:!0,throwOnSideEffect:o},a=t&&t.callFrameId(),c=await this.evaluator.evaluate(a?{...s,callFrameId:a}:{...s,contextId:e},{stackFrame:t});if(!c||c.exceptionDetails)return{result:[],isArray:!1};if(!c.result.objectId){const t={...s,returnByValue:!0,throwOnSideEffect:!1,expression:(0,d.enumeratePropertiesTemplate)(`(${r})`,JSON.stringify(n),JSON.stringify(i))},o=await this.evaluator.evaluate(a?{...t,callFrameId:a}:{...t,contextId:e});return!o||o.exceptionDetails?{result:[],isArray:!1}:o.result.value}try{return(await(0,d.enumerateProperties)({cdp:this.cdp,args:[void 0,n,i],objectId:c.result.objectId,returnByValue:!0})).value}catch(e){return{result:[],isArray:!1}}finally{this.cdp.Runtime.releaseObject({objectId:c.result.objectId})}}async defaultCompletions(e,t=""){for(const r of["self","global","this"]){const{result:n}=await this.completePropertyAccess({executionContextId:e.executionContextId,stackFrame:e.stackFrame,expression:r,prefix:t,isInGlobalScope:!0});if(e.stackFrame){const r=t.toLowerCase(),i=new Set(n.map((e=>e.label)));for(const t of await e.stackFrame.completions())!i.has(t.label)&&t.label.toLowerCase().includes(r)&&(i.add(t.label),n.push(t))}return n.push(...this.syntheticCompletions(e,t)),n}return this.syntheticCompletions(e,t)}syntheticCompletions(e,t){return this.evaluator.hasReturnValue&&p.returnValueStr.startsWith(t)?[{sortText:`~${p.returnValueStr}`,label:p.returnValueStr,type:"variable"}]:[]}};f=n([(0,a.injectable)(),i(0,(0,a.inject)(p.IEvaluator)),i(1,(0,a.inject)(c.ICdpApi))],f),t.Completions=f},74497:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Console=void 0;const o=r(55053),s=r(7678),a=r(58116),c=r(21964),u=r(70132),l=r(79380),p=new Set(["group","assert","count"]);let d=class{constructor(e){this.dap=e,this.isDirty=!1,this.queue=new u.ReservationQueue((e=>{for(const t of e)this.dap.output(t)})),this.onDrained=this.queue.onDrained}get length(){return this.queue.length}dispose(){this.queue.dispose()}dispatch(e,t){const r=this.parse(t);r&&this.enqueue(e,r)}enqueue(e,t){if(t instanceof c.ClearMessage){if(!this.isDirty)return;this.isDirty=!1}else this.isDirty=!0;this.queue.enqueue(t.toDap(e))}parse(e){var t;if("log"===e.type){const r=null===(t=e.stackTrace)||void 0===t?void 0:t.callFrames[0];if(r&&"internal/console/constructor.js"===r.url&&p.has(r.functionName))return}switch(e.type){case"clear":return new c.ClearMessage;case"endGroup":return new c.EndGroupMessage;case"assert":return new l.AssertMessage(e);case"table":return new l.TableMessage(e);case"startGroup":case"startGroupCollapsed":return new l.StartGroupMessage(e);case"debug":case"log":case"info":case"dir":case"dirxml":case"count":case"profile":case"profileEnd":case"timeEnd":return new l.LogMessage(e);case"trace":return new l.TraceMessage(e);case"error":return new l.ErrorMessage(e);case"warning":return new l.WarningMessage(e);default:try{(0,s.assertNever)(e.type,"unknown console message type")}catch(e){}}}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(a.IDapApi))],d),t.Console=d},21964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EndGroupMessage=t.ClearMessage=void 0,t.ClearMessage=class{toDap(){return{category:"console",output:""}}},t.EndGroupMessage=class{toDap(){return{category:"stdout",output:"",group:"end"}}}},81118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionMessage=void 0;const n=r(7678),i=r(16865),o=r(28951),s=r(35219),a=r(79380);class c extends a.TextualMessage{constructor(){super(...arguments),this.stackTrace=(0,n.once)((e=>this.event.stackTrace?s.StackTrace.fromRuntime(e,this.event.stackTrace):this.event.scriptId?s.StackTrace.fromRuntime(e,{callFrames:[{functionName:"(program)",lineNumber:this.event.lineNumber,columnNumber:this.event.columnNumber,scriptId:this.event.scriptId,url:this.event.url||""}]}):void 0))}async toDap(e){var t,r;const n=this.event.exception?(0,o.previewException)(this.event.exception):{title:""};let s=n.title;s.startsWith("Uncaught")||(s=`Uncaught ${null!==(r=null===(t=this.event.exception)||void 0===t?void 0:t.className)&&void 0!==r?r:"Error"} `+s);const a=this.stackTrace(e),c=this.event.exception&&!n.stackTrace?[this.event.exception]:[];return i.StackTraceParser.isStackLike(s)?s=await e.replacePathsInStackTrace(s):a&&(s+="\n"+await a.formatAsNative()),{category:"stderr",output:s,variablesReference:a||c.length?e.replVariables.createVariableForOutput(s,c,a).id:void 0,...await this.getUiLocation(e)}}}t.ExceptionMessage=c},54216:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.IConsole=void 0,i(r(85193),t),i(r(81118),t),t.IConsole=Symbol("IConsole")},85193:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryObjectsMessage=void 0;const s=o(r(33463)),a=r(28951),c=r(60290),u=s.loadMessageBundle(r(71017).join(__dirname,"adapter/console/queryObjectsMessage.js"));t.QueryObjectsMessage=class{constructor(e,t){this.protoObj=e,this.cdp=t}async toDap(e){if(!this.protoObj.objectId)return{category:"stderr",output:u(0,null)};const t=await this.cdp.Runtime.queryObjects({prototypeObjectId:this.protoObj.objectId,objectGroup:"console"});if(await this.cdp.Runtime.releaseObject({objectId:this.protoObj.objectId}),!t)return{category:"stderr",output:u(1,null)};let r;try{r=await(0,c.previewThis)({cdp:this.cdp,args:[],objectId:t.objects.objectId,objectGroup:"console",generatePreview:!0})}catch(e){return{category:"stderr",output:u(2,null,e.message)}}const n="objects: "+(0,a.previewRemoteObject)(r,"repl")+"";return{category:"stdout",output:"",variablesReference:e.replVariables.createVariableForOutput(n,[r]).id}}}},70132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReservationQueue=void 0;const n=r(44936);t.ReservationQueue=class{constructor(e){this.sink=e,this.q=[],this.disposed=!1,this.onDrainedEmitter=new n.EventEmitter,this.onDrained=this.onDrainedEmitter.event}get length(){return this.q.length}enqueue(e){this.disposed||(this.q.push(new a(e)),1===this.q.length&&this.process())}dispose(){this.disposed=!0,this.q=[]}async process(){const e=this.q.findIndex((e=>e.value===o));0===e?await this.q[0].wait:-1===e?(this.sink(i(this.q)),this.q=[]):(this.sink(i(this.q.slice(0,e))),this.q=this.q.slice(e)),this.q.length?this.process():this.onDrainedEmitter.fire()}};const i=e=>e.map((e=>e.value)).filter((e=>e!==s)),o=Symbol("unsettled"),s=Symbol("unsettled");class a{constructor(e){this.value=o,e instanceof Promise?this.wait=e.then((e=>{this.value=e}),(()=>{this.value=s})):(this.value=e,this.wait=Promise.resolve())}}},79380:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TableMessage=t.StartGroupMessage=t.ErrorMessage=t.WarningMessage=t.TraceMessage=t.LogMessage=t.AssertMessage=t.TextualMessage=void 0;const s=o(r(33463)),a=r(7678),c=r(16865),u=r(25901),l=r(28951),p=r(35219),d=s.loadMessageBundle(r(71017).join(__dirname,"adapter/console/textualMessage.js"));class h{constructor(e){this.event=e,this.stackTrace=(0,a.once)((e=>this.event.stackTrace?p.StackTrace.fromRuntime(e,this.event.stackTrace):void 0)),this.getUiLocation=(0,a.once)((async e=>{const t=this.stackTrace(e);if(!t)return;let r;for(const e of t.frames){if(!(e instanceof p.StackFrame))continue;const t=await e.uiLocation();if(t&&(r||(r=t),!t.source.blackboxed()))return{source:await t.source.toDap(),line:t.lineNumber,column:t.columnNumber}}return r?{source:await r.source.toDap(),line:r.lineNumber,column:r.columnNumber}:void 0}))}formatDefaultString(e,t,r=!1){const n=t.length>1&&"string"===t[0].type?(0,u.formatMessage)(t[0].value,t.slice(1),l.messageFormatters):(0,u.formatMessage)("",t,l.messageFormatters),i=n.result+"\n";return n.usedAllSubs&&!t.some(l.previewAsObject)?{output:i}:this.formatComplexStringOutput(e,i,t,r)}async formatComplexStringOutput(e,t,r,n){return(r.some((e=>"error"===e.subtype))||c.StackTraceParser.isStackLike(t))&&(await this.getUiLocation(e),t=await e.replacePathsInStackTrace(t),n=!0),{output:"",variablesReference:e.replVariables.createVariableForOutput(t,r,n?this.stackTrace(e):void 0).id}}}t.TextualMessage=h,t.AssertMessage=class extends h{async toDap(e){var t;return"console.assert"===(null===(t=this.event.args[0])||void 0===t?void 0:t.value)&&(this.event.args[0].value=d(0,null)),{category:"stderr",...await this.formatDefaultString(e,this.event.args,!0),...await this.getUiLocation(e)}}};class f extends h{constructor(e,t,r){super(e),this.includeStack=t,this.category=r}async toDap(e){return{category:this.category,...await this.formatDefaultString(e,this.event.args,this.includeStack),...await this.getUiLocation(e)}}}t.LogMessage=class extends f{constructor(e){super(e,!1,"stdout")}},t.TraceMessage=class extends f{constructor(e){super(e,!0,"stdout")}},t.WarningMessage=class extends f{constructor(e){super(e,!0,"stderr")}},t.ErrorMessage=class extends f{constructor(e){super(e,!0,"stderr")}},t.StartGroupMessage=class extends h{async toDap(e){return{category:"stdout",group:"startGroupCollapsed"===this.event.type?"startCollapsed":"start",...await this.formatDefaultString(e,this.event.args),...await this.getUiLocation(e)}}},t.TableMessage=class extends f{constructor(e){super(e,!1,"stdout")}async toDap(e){var t;return(null===(t=this.event.args[0])||void 0===t?void 0:t.preview)?{category:"stdout",output:"",variablesReference:e.replVariables.createVariableForOutput("",this.event.args,void 0,this.event.type).id,...await this.getUiLocation(e)}:super.toDap(e)}}},4348:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.customBreakpoints=void 0;const s=o(r(33463)),a=new Map;function c(){if(a.size)return a;const e=s.loadMessageBundle(r(71017).join(__dirname,"adapter/customBreakpoints.js"));function t(e,t){for(const r of t)r.group=e,a.set(r.id,r)}function n(t,r){const n=r||t;return{id:"instrumentation:"+t,title:n,group:"",details:r=>{if("webglErrorFired"===t){let t=r.webglErrorName;return t=t.replace(/^.*(0x[0-9a-f]+).*$/i,"$1"),{short:e(0,null,t),long:e(1,null,t)}}return"scriptBlockedByCSP"===t&&r.directiveText?{short:e(2,null,r.directiveText),long:e(3,null,r.directiveText)}:{short:n,long:e(4,null,n)}},apply:async(e,r)=>r?!!await e.DOMDebugger.setInstrumentationBreakpoint({eventName:t}):!!await e.DOMDebugger.removeInstrumentationBreakpoint({eventName:t})}}function i(t,r,n){const i=void 0===r?"*":"string"==typeof r?[r]:r;return{id:"listener:"+t,title:n||t,group:"",details:r=>{const n=(r.targetName||"*").toLowerCase();return{short:n+"."+t,long:e(5,null,t,n)}},apply:async(e,r)=>{let n=!0;for(const o of i)n=r?n&&!!await e.DOMDebugger.setEventListenerBreakpoint({eventName:t,targetName:o}):n&&!!await e.DOMDebugger.removeEventListenerBreakpoint({eventName:t,targetName:o});return n}}}t("Animation",[n("requestAnimationFrame",e(6,null)),n("cancelAnimationFrame",e(7,null)),n("requestAnimationFrame.callback",e(8,null))]),t("Canvas",[n("canvasContextCreated",e(9,null)),n("webglErrorFired",e(10,null)),n("webglWarningFired",e(11,null))]),t("Script",[n("scriptFirstStatement",e(12,null)),n("scriptBlockedByCSP",e(13,null))]),t("Geolocation",[n("Geolocation.getCurrentPosition","getCurrentPosition"),n("Geolocation.watchPosition","watchPosition")]),t("Notification",[n("Notification.requestPermission","requestPermission")]),t("Parse",[n("Element.setInnerHTML",e(14,null)),n("Document.write","document.write")]),t("Timer",[n("setTimeout"),n("clearTimeout"),n("setInterval"),n("clearInterval"),n("setTimeout.callback",e(15,null)),n("setInterval.callback",e(16,null))]),t("Window",[n("DOMWindow.close","window.close")]),t("WebAudio",[n("audioContextCreated",e(17,null)),n("audioContextClosed",e(18,null)),n("audioContextResumed",e(19,null)),n("audioContextSuspended",e(20,null))]);const o=["audio","video"];t("Media",[i("play",o),i("pause",o),i("playing",o),i("canplay",o),i("canplaythrough",o),i("seeking",o),i("seeked",o),i("timeupdate",o),i("ended",o),i("ratechange",o),i("durationchange",o),i("volumechange",o),i("loadstart",o),i("progress",o),i("suspend",o),i("abort",o),i("error",o),i("emptied",o),i("stalled",o),i("loadedmetadata",o),i("loadeddata",o),i("waiting",o)]),t("Picture-in-Picture",[i("enterpictureinpicture","video"),i("leavepictureinpicture","video"),i("resize","PictureInPictureWindow")]),t("Clipboard",[i("copy"),i("cut"),i("paste"),i("beforecopy"),i("beforecut"),i("beforepaste")]),t("Control",[i("resize"),i("scroll"),i("zoom"),i("focus"),i("blur"),i("select"),i("change"),i("submit"),i("reset")]),t("Device",[i("deviceorientation"),i("devicemotion")]),t("DOM Mutation",[i("DOMActivate"),i("DOMFocusIn"),i("DOMFocusOut"),i("DOMAttrModified"),i("DOMCharacterDataModified"),i("DOMNodeInserted"),i("DOMNodeInsertedIntoDocument"),i("DOMNodeRemoved"),i("DOMNodeRemovedFromDocument"),i("DOMSubtreeModified"),i("DOMContentLoaded")]),t("Drag / drop",[i("drag"),i("dragstart"),i("dragend"),i("dragenter"),i("dragover"),i("dragleave"),i("drop")]),t("Keyboard",[i("keydown"),i("keyup"),i("keypress"),i("input")]),t("Load",[i("load"),i("beforeunload"),i("unload"),i("abort"),i("error"),i("hashchange"),i("popstate")]),t("Mouse",[i("auxclick"),i("click"),i("dblclick"),i("mousedown"),i("mouseup"),i("mouseover"),i("mousemove"),i("mouseout"),i("mouseenter"),i("mouseleave"),i("mousewheel"),i("wheel"),i("contextmenu")]),t("Pointer",[i("pointerover"),i("pointerout"),i("pointerenter"),i("pointerleave"),i("pointerdown"),i("pointerup"),i("pointermove"),i("pointercancel"),i("gotpointercapture"),i("lostpointercapture")]),t("Touch",[i("touchstart"),i("touchmove"),i("touchend"),i("touchcancel")]),t("Worker",[i("message"),i("messageerror")]);const c=["xmlhttprequest","xmlhttprequestupload"];return t("XHR",[i("readystatechange",c),i("load",c),i("loadstart",c),i("loadend",c),i("abort",c),i("error",c),i("progress",c),i("timeout",c)]),a}t.customBreakpoints=c,t.default=c},4846:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugAdapter=void 0;const s=o(r(33463)),a=r(5376),c=r(15501),u=r(7678),l=r(67790),p=r(78986),d=r(34285),h=o(r(33763)),f=o(r(97208)),m=o(r(44413)),g=r(1032),y=r(99010),b=r(43224),v=r(31939),w=r(75951),_=r(51695),S=r(54216),k=r(64966),P=r(68164),x=r(45997),C=r(92249),E=r(80935),D=r(23200),O=r(58269),T=r(46989),M=r(67523),A=r(44873),j=r(39226),R=s.loadMessageBundle(r(71017).join(__dirname,"adapter/debugAdapter.js"));class F{constructor(e,t,r,n){this.asyncStackPolicy=t,this.launchConfig=r,this._services=n,this._disposables=new a.DisposableList,this._customBreakpoints=new Set,this._threadDeferred=(0,p.getDeferred)(),this.breakpointIdCounter=(0,u.posInt32Counter)(),this._cdpProxyProvider=this._services.get(w.ICdpProxyProvider),this._configurationDoneDeferred=(0,p.getDeferred)(),this.sourceContainer=n.get(A.SourceContainer),this.breakpointManager=n.get(v.BreakpointManager);const i=n.get(E.IPerformanceProvider),o=n.get(b.ITelemetryReporter);o.onFlush((()=>{o.report("breakpointStats",this.breakpointManager.statisticsForTelemetry()),o.report("statistics",this.sourceContainer.statistics())})),this.dap=e,this.dap.on("initialize",(e=>this._onInitialize(e))),this.dap.on("setBreakpoints",(e=>this._onSetBreakpoints(e))),this.dap.on("setExceptionBreakpoints",(e=>this.setExceptionBreakpoints(e))),this.dap.on("configurationDone",(()=>this.configurationDone())),this.dap.on("loadedSources",(()=>this._onLoadedSources())),this.dap.on("disableSourcemap",(e=>this._onDisableSourcemap(e))),this.dap.on("source",(e=>this._onSource(e))),this.dap.on("threads",(()=>this._onThreads())),this.dap.on("stackTrace",(e=>this._withThread((t=>t.stackTrace(e))))),this.dap.on("variables",(e=>this._onVariables(e))),this.dap.on("readMemory",(e=>this._onReadMemory(e))),this.dap.on("writeMemory",(e=>this._onWriteMemory(e))),this.dap.on("setVariable",(e=>this._onSetVariable(e))),this.dap.on("setExpression",(e=>this._onSetExpression(e))),this.dap.on("continue",(()=>this._withThread((e=>e.resume())))),this.dap.on("pause",(()=>this._withThread((e=>e.pause())))),this.dap.on("next",(()=>this._withThread((e=>e.stepOver())))),this.dap.on("stepIn",(e=>this._withThread((t=>t.stepInto(e.targetId))))),this.dap.on("stepOut",(()=>this._withThread((e=>e.stepOut())))),this.dap.on("restartFrame",(e=>this._withThread((t=>t.restartFrame(e))))),this.dap.on("scopes",(e=>this._withThread((t=>t.scopes(e))))),this.dap.on("evaluate",(e=>this.onEvaluate(e))),this.dap.on("completions",(e=>this._withThread((t=>t.completions(e))))),this.dap.on("exceptionInfo",(()=>this._withThread((e=>e.exceptionInfo())))),this.dap.on("enableCustomBreakpoints",(e=>this.enableCustomBreakpoints(e))),this.dap.on("toggleSkipFileStatus",(e=>this._toggleSkipFileStatus(e))),this.dap.on("disableCustomBreakpoints",(e=>this._disableCustomBreakpoints(e))),this.dap.on("prettyPrintSource",(e=>this._prettyPrintSource(e))),this.dap.on("revealPage",(()=>this._withThread((e=>e.revealPage())))),this.dap.on("getPerformance",(()=>this._withThread((e=>i.retrieve(e.cdp()))))),this.dap.on("breakpointLocations",(e=>this._breakpointLocations(e))),this.dap.on("createDiagnostics",(e=>this._dumpDiagnostics(e))),this.dap.on("requestCDPProxy",(()=>this._requestCDPProxy())),this.dap.on("setExcludedCallers",(e=>this._onSetExcludedCallers(e))),this.dap.on("saveDiagnosticLogs",(({toFile:e})=>this._saveDiagnosticLogs(e))),this.dap.on("setSourceMapStepping",(e=>this._setSourceMapStepping(e))),this.dap.on("stepInTargets",(e=>this._stepInTargets(e))),this.dap.on("setDebuggerProperty",(e=>this._setDebuggerProperty(e)))}_setDebuggerProperty(e){var t;return null===(t=this._thread)||void 0===t||t.cdp().DotnetDebugger.setDebuggerProperty(e),Promise.resolve({})}_breakpointLocations(e){return this._withThread((async t=>{const r=this.sourceContainer.source(e.source);return r?{breakpoints:(await this.breakpointManager.getBreakpointLocations(t,r,new l.Base1Position(e.line,e.column||1),new l.Base1Position(e.endLine||e.line+1,e.endColumn||e.column||1))).map((e=>e.uiLocations.find((e=>e.source===r)))).filter(u.truthy).map((e=>({line:e.lineNumber,column:e.columnNumber})))}:{breakpoints:[]}}))}_stepInTargets(e){return this._withThread((async t=>({targets:await t.getStepInTargets(e.frameId)})))}_setSourceMapStepping({enabled:e}){return this.sourceContainer.doSourceMappedStepping=e,Promise.resolve({})}async _saveDiagnosticLogs(e){const t=this._services.get(c.ILogger).getRecentLogs();return await this._services.get(y.FS).writeFile(e,t.map((e=>JSON.stringify(e))).join("\n")),{}}async launchBlocker(){await this._configurationDoneDeferred.promise,await this._services.get(C.IExceptionPauseService).launchBlocker,await this.breakpointManager.launchBlocker()}async _onSetExcludedCallers({callers:e}){return(await this._threadDeferred.promise).setExcludedCallers(e),{}}async _onInitialize(e){console.assert(e.linesStartAt1),console.assert(e.columnsStartAt1);const t=F.capabilities();return setTimeout((()=>this.dap.initialized({})),0),setTimeout((()=>{var e;return null===(e=this._thread)||void 0===e?void 0:e.dapInitialized()}),0),t}static capabilities(){return{supportsConfigurationDoneRequest:!0,supportsFunctionBreakpoints:!1,supportsConditionalBreakpoints:!0,supportsHitConditionalBreakpoints:!0,supportsEvaluateForHovers:!0,supportsReadMemoryRequest:!0,supportsWriteMemoryRequest:!0,exceptionBreakpointFilters:[{filter:"all",label:R(0,null),default:!1,supportsCondition:!0,description:R(1,null),conditionDescription:'error.name == "MyError"'},{filter:"uncaught",label:R(2,null),default:!1,supportsCondition:!0,description:R(3,null),conditionDescription:'error.name == "MyError"'}],supportsStepBack:!1,supportsSetVariable:!0,supportsRestartFrame:!0,supportsGotoTargetsRequest:!1,supportsStepInTargetsRequest:!0,supportsCompletionsRequest:!0,supportsModulesRequest:!1,additionalModuleColumns:[],supportedChecksumAlgorithms:[],supportsRestartRequest:!0,supportsExceptionOptions:!1,supportsValueFormattingOptions:!0,supportsExceptionInfoRequest:!0,supportTerminateDebuggee:!1,supportsDelayedStackTraceLoading:!0,supportsLoadedSourcesRequest:!0,supportsLogPoints:!0,supportsTerminateThreadsRequest:!1,supportsSetExpression:!0,supportsTerminateRequest:!1,completionTriggerCharacters:[".","[",'"',"'"],supportsBreakpointLocationsRequest:!0,supportsClipboardContext:!0,supportsExceptionFilterOptions:!0,supportsDebuggerProperties:!0}}async _onSetBreakpoints(e){var t,r;return this.breakpointManager.setBreakpoints(e,null!==(r=null===(t=e.breakpoints)||void 0===t?void 0:t.map((()=>this.breakpointIdCounter())))&&void 0!==r?r:[])}async setExceptionBreakpoints(e){return await this._services.get(C.IExceptionPauseService).setBreakpoints(e),{}}async configurationDone(){return this._configurationDoneDeferred.resolve(),{}}async _onLoadedSources(){return{sources:await this.sourceContainer.loadedSources()}}async _onDisableSourcemap(e){var t;const r=this.sourceContainer.source(e.source);if(!r)return m.createSilentError(R(4,null));if(!(r instanceof A.SourceFromMap))return m.createSilentError(R(5,null));for(const e of r.compiledToSourceUrl.keys())this.sourceContainer.disableSourceMapForSource(e,!0);return await(null===(t=this._thread)||void 0===t?void 0:t.refreshStackTrace()),{}}async _onSource(e){e.source||(e.source={sourceReference:e.sourceReference}),e.source.path=f.platformPathToPreferredCase(e.source.path);const t=this.sourceContainer.source(e.source);if(!t)return m.createSilentError(R(6,null));const r=await t.content();return void 0===r?(t instanceof A.SourceFromMap&&this.dap.suggestDisableSourcemap({source:e.source}),m.createSilentError(R(7,null))):{content:r,mimeType:t.mimeType()}}async _onThreads(){const e=[];return this._thread&&e.push({id:this._thread.id,name:this._thread.name()}),{threads:e}}findVariableStore(e){if(!this._thread)return;const t=this._thread.pausedVariables();return t&&e(t)?t:e(this._thread.replVariables)?this._thread.replVariables:void 0}async _onVariables(e){var t;const r=this.findVariableStore((t=>t.hasVariable(e.variablesReference)));return{variables:null!==(t=await(null==r?void 0:r.getVariables(e)))&&void 0!==t?t:[]}}async _onReadMemory(e){var t,r;const n=e.memoryReference,i=await(null===(t=this.findVariableStore((e=>e.hasMemory(n))))||void 0===t?void 0:t.readMemory(n,null!==(r=e.offset)&&void 0!==r?r:0,e.count));return i?{address:"0",data:i.toString("base64"),unreadableBytes:e.count-i.length}:{address:"0",unreadableBytes:e.count}}async _onWriteMemory(e){var t,r;const n=e.memoryReference;return{bytesWritten:await(null===(t=this.findVariableStore((e=>e.hasMemory(n))))||void 0===t?void 0:t.writeMemory(n,null!==(r=e.offset)&&void 0!==r?r:0,Buffer.from(e.data,"base64")))}}async _onSetExpression(e){if(!this._thread)throw new g.ProtocolError(m.threadNotAvailable());const{result:t,...r}=await this._thread.evaluate({expression:`${e.expression} = ${h.wrapObjectLiteral(e.value)}`,context:"repl",frameId:e.frameId});return{value:t,...r}}async _onSetVariable(e){const t=this.findVariableStore((t=>t.hasVariable(e.variablesReference)));return t?(e.value=h.wrapObjectLiteral(e.value.trim()),t.setVariable(e)):m.createSilentError(R(8,null))}_withThread(e){if(!this._thread)throw new g.ProtocolError(m.threadNotAvailable());return e(this._thread)}async _refreshStackTrace(){this._thread&&this._thread.pausedDetails()&&await this._thread.refreshStackTrace()}createThread(e,t){this._thread=new j.Thread(this.sourceContainer,e,this.dap,t,this._services.get(d.IRenameProvider),this._services.get(c.ILogger),this._services.get(x.IEvaluator),this._services.get(_.ICompletions),this.launchConfig,this.breakpointManager,this._services.get(S.IConsole),this._services.get(C.IExceptionPauseService),this._services.get(M.SmartStepper));const r=this._services.get(D.IProfileController);r.connect(this.dap,this._thread),"profileStartup"in this.launchConfig&&this.launchConfig.profileStartup&&r.start(this.dap,this._thread,{type:O.BasicCpuProfiler.type});for(const e of this._customBreakpoints)this._thread.updateCustomBreakpoint(e,!0);return this.asyncStackPolicy.connect(e).then((e=>this._disposables.push(e))).catch((e=>this._services.get(c.ILogger).error("internal","Error enabling async stacks",e))),this.breakpointManager.setThread(this._thread),this._services.get(P.DiagnosticToolSuggester).attach(e),this._threadDeferred.resolve(this._thread),this._thread}async enableCustomBreakpoints(e){const t=[];for(const r of e.ids)this._customBreakpoints.add(r),this._thread&&t.push(this._thread.updateCustomBreakpoint(r,!0));return await Promise.all(t),{}}async _disableCustomBreakpoints(e){const t=[];for(const r of e.ids)this._customBreakpoints.delete(r),this._thread&&t.push(this._thread.updateCustomBreakpoint(r,!1));return await Promise.all(t),{}}async _toggleSkipFileStatus(e){return await this._services.get(T.IScriptSkipper).toggleSkippingFile(e),await this._refreshStackTrace(),{}}async _prettyPrintSource(e){if(!e.source)return{canPrettyPrint:!1};e.source.path=f.platformPathToPreferredCase(e.source.path);const t=this.sourceContainer.source(e.source);if(!t)return m.createSilentError(R(9,null));const r=await t.prettyPrint();if(!r)return m.createSilentError(R(10,null));const{map:n,source:i}=r;return this.breakpointManager.moveBreakpoints(t,n,i),this.sourceContainer.clearDisabledSourceMaps(t),await this._refreshStackTrace(),{}}onEvaluate(e){return".scripts"===e.expression?this._dumpDiagnostics({fromSuggestion:!1}).then(this.dap.openDiagnosticTool).then((()=>({result:"Opening diagnostic tool...",variablesReference:0}))):this._withThread((t=>t.evaluate(e)))}async _dumpDiagnostics(e){const t={file:await this._services.get(k.Diagnostics).generateHtml()};return e.fromSuggestion&&this._services.get(b.ITelemetryReporter).report("diagnosticPrompt",{event:"opened"}),t}async _requestCDPProxy(){return await this._cdpProxyProvider.proxy()}dispose(){this._disposables.dispose(),(0,y.disposeContainer)(this._services)}}t.DebugAdapter=F},64966:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;const o=r(55053),s=r(22037),a=r(71017),c=r(7678),u=r(17014),l=r(99010),p=r(50036),d=r(31939),h=r(44873);let f=class{constructor(e,t,r,n){this.fs=e,this.sources=t,this.breakpoints=r,this.target=n}async generateObject(){const[e]=await Promise.all([this.dumpSources()]);return{breakpoints:this.dumpBreakpoints(),sources:e,config:this.target.launchConfig}}async generateHtml(e=(0,a.join)((0,s.tmpdir)(),"js-debug-diagnostics.html")){return await this.fs.writeFile(e,`\n \n \n \n \n Document\n \n \n