UNPKG

code-server

Version:

Run VS Code on a remote server.

2 lines 1.58 MB
/*! 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}}},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<t;r++)this.next();return!0}},o.prototype.pushCx=function(){this.context.push(this.curIndent)},o.prototype.popCx=function(){this.curIndent=this.context.pop()},o.prototype.lineEnd=function(e){for(;e<this.input.length&&!t.isNewLine(this.input.charCodeAt(e));)++e;return e},o.prototype.indentationAfter=function(e){for(var t=0;;++e){var r=this.input.charCodeAt(e);if(32===r)++t;else{if(9!==r)return t;t+=this.options.tabSize}}},o.prototype.closes=function(e,r,n,i){return this.tok.type===e||this.tok.type===t.tokTypes.eof||n!==this.curLineStart&&this.curIndent<r&&this.tokenStartsLine()&&(!i||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<r)},o.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=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;n<e.length;n++)r=e[n](r);return r},o.parse=function(e,t){return new this(e,t).parse()},o.BaseParser=t.Parser;var s=o.prototype;function a(e){return e<14&&e>8||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<this.input.length&&!a(this.input.charCodeAt(n));)++n;else if(/character escape|expected hexadecimal/i.test(e))for(;n<this.input.length;){var s=this.input.charCodeAt(n++);if(34===s||39===s||t.isNewLine(s))break}else if(/unexpected character/i.test(e))n++,i=!1;else{if(!/regular expression/i.test(e))throw c;i=!0}if(this.resetTo(n),!0===i&&(i={start:n,end:n,type:t.tokTypes.name,value:r}),i)return this.options.locations&&(i.loc=new t.SourceLocation(this.toks,t.getLineInfo(this.input,i.start),t.getLineInfo(this.input,i.end))),i}},s.resetTo=function(e){this.toks.pos=e;var r,n=this.input.charAt(e-1);if(this.toks.exprAllowed=!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.index<e;)++this.toks.curLine,this.toks.lineStart=r.index+r[0].length},s.lookAhead=function(e){for(;e>this.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<n&&(n=this.curIndent,i=this.curLineStart);!this.closes(t.tokTypes.braceR,n,i);){var o=this.parseClassElement();o&&r.body.body.push(o)}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.semicolon(),this.finishNode(r.body,"ClassBody"),this.finishNode(r,e?"ClassDeclaration":"ClassExpression")},c.parseClassElement=function(){if(this.eat(t.tokTypes.semi))return null;var e=this.options,r=e.ecmaVersion,i=e.locations,o=this.curIndent,s=this.curLineStart,a=this.startNode(),c="",u=!1,l=!1,p="method",d=!1;if(this.eatContextual("static")){if(r>=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.curIndent<o&&this.tokenStartsLine())return e;var a=this.tok.type.binop;if(null!=a&&(!i||this.tok.type!==t.tokTypes._in)&&a>n){var c=this.startNodeAt(r);if(c.left=e,c.operator=this.tok.value,this.next(),this.curLineStart!==s&&this.curIndent<o&&this.tokenStartsLine())c.right=this.dummyIdent();else{var u=this.storeCurrentPos();c.right=this.parseExprOp(this.parseMaybeUnary(!1),u,a,i,o,s)}return this.finishNode(c,/&&|\|\||\?\?/.test(c.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(c,r,n,i,o,s)}return e},u.parseMaybeUnary=function(e){var r,n=this.storeCurrentPos();if(this.options.ecmaVersion>=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<r&&(r=this.curIndent,i=this.curLineStart);!this.closes(t.tokTypes.braceR,r,i);){var o=this.startNode(),s=void 0,a=void 0,c=void 0;if(this.options.ecmaVersion>=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<n.length;r+=1){var i=n[r];this.toAssignable(i,t)}}else if("ArrayExpression"===e.type)e.type="ArrayPattern",this.toAssignableList(e.elements,t);else if("Property"===e.type)this.toAssignable(e.value,t);else if("SpreadElement"===e.type)e.type="RestElement",this.toAssignable(e.argument,t);else{if("AssignmentExpression"!==e.type)return this.dummyIdent();e.type="AssignmentPattern",delete e.operator}}return e},u.toAssignableList=function(e,t){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];this.toAssignable(i,t)}return e},u.parseFunctionParams=function(e){return e=this.parseExprList(t.tokTypes.parenR),this.toAssignableList(e,!0)},u.parseMethod=function(e,t){var r=this.startNode(),n=this.inAsync,i=this.inGenerator,o=this.inFunction;return this.initFunction(r),this.options.ecmaVersion>=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;n<t.length;n+=2){if((r+=t[n])>e)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<r;n++){var i=e.charCodeAt(n);if(k(i))return n<r-1&&13===i&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var x=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,O=E.hasOwnProperty,D=E.toString,T=Object.hasOwn||function(e,t){return O.call(e,t)},j=Array.isArray||function(e){return"[object Array]"===D.call(e)};function A(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var F=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function I(e,t){for(var r=1,n=0;;){var i=P(e,n,t);if(i<0)return new R(r,t-n);++r,n=i}}var L={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},N=!1;function B(e){var t={};for(var r in L)t[r]=e&&T(e,r)?e[r]:L[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!N&&"object"==typeof console&&console.warn&&(N=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),j(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return j(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<e.length;n++)r=e[n](r);return r},q.parse=function(e,t){return new this(t,e).parse()},q.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},q.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(q.prototype,V);var H=q.prototype,W=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function G(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}H.strictDirective=function(e){for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var t=W.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){C.lastIndex=e+t[0].length;var r=C.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||_.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.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.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},H.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var z=q.prototype;z.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==w.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var o=i[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},J={kind:"switch"};z.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var t=C.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n||n>55295&&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<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},z.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},z.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=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,Y|(r?0:X),!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<o.length;i+=1)o[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===w._switch?"switch":null,a=this.labels.length-1;a>=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 Y=1,X=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&X&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&Y&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&X||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&Y||(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&Y?"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<r.length;++o){var s=r[o];T(t,s.name)||(i?i.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},z.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=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|Y,!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<s.length;o+=1){var a=s[o];this.checkUnreserved(a.local),this.checkLocalExport(a.local),"Literal"===a.local.type&&this.raise(a.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},z.checkExport=function(e,t,r){e&&(T(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},z.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var o=i[n];this.checkPatternExport(e,o)}else if("ArrayPattern"===r)for(var s=0,a=t.elements;s<a.length;s+=1){var c=a[s];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},z.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},z.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},z.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(r)r=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var n=this.startNode();n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(e,n.exported["Identifier"===n.exported.type?"name":"value"],n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},z.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=Q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},z.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},z.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var e=this.parseLiteral(this.value);return M.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<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},z.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=q.prototype;te.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=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<i.length;n+=1){var o=i[n];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},te.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(w.comma),t&&this.type===w.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var s=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(s),n.push(s)}return n},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},te.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(T(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var c=a[s];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},te.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var re=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},ne={b_stat:new re("{",!1),b_expr:new re("{",!0),b_tmpl:new re("${",!1),p_stat:new re("(",!1),p_expr:new re("(",!0),q_tmpl:new re("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new re("function",!1),f_expr:new re("function",!0),f_expr_gen:new re("function",!0,!1,null,!0),f_gen:new re("function",!1,!1,null,!0)},ie=q.prototype;ie.initialContext=function(){return[ne.b_stat]},ie.curContext=function(){return this.context[this.context.length-1]},ie.braceIsBlock=function(e){var t=this.curContext();return t===ne.f_expr||t===ne.f_stat||(e!==w.colon||t!==ne.b_stat&&t!==ne.b_expr?e===w._return||e===w.name&&this.exprAllowed?_.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===ne.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},ie.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ie.updateContext=function(e){var t,r=this.type;r.keyword&&e===w.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},ie.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ne.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ne.b_stat:ne.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(ne.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?ne.p_stat:ne.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w._else||e===w.semi&&this.curContext()!==ne.p_stat||e===w._return&&_.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===ne.b_stat?this.context.push(ne.f_stat):this.context.push(ne.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===ne.q_tmpl?this.context.pop():this.context.push(ne.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===ne.f_expr?this.context[t]=ne.f_expr_gen:this.context[t]=ne.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe=q.prototype;function se(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&se(e.expression)}oe.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===o&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[n="$"+n];s?("init"===o?this.strict&&s.init||s.get||s.set:s.init||s[o])&&this.raiseRecoverable(i.start,"Redefinition of property"):s=t[n]={init:!1,get:!1,set:!1},s[o]=!0}}},oe.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===w.comma){var o=this.startNodeAt(r,n);for(o.expressions=[i];this.eat(w.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},oe.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,o=-1,s=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new G,n=!0);var a=this.start,c=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,a,c)),this.type.isAssign){var l=this.startNodeAt(a,c);return l.operator=this.value,this.type===w.eq&&(u=this.toAssignable(u,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===w.eq?this.checkLValPattern(u):this.checkLValSimple(u),l.left=u,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),u},oe.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(w.question)){var o=this.startNodeAt(r,n);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(w.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},oe.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},oe.parseExprOp=function(e,t,r,n,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==w._in)&&o>n){var s=this.type===w.logicalOR||this.type===w.logicalAND,a=this.type===w.coalesce;a&&(o=w.logicalAND.binop);var c=this.value;this.next();var u=this.start,l=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),u,l,o,i),d=this.buildBinary(t,r,e,p,c,s||a);return(s&&this.type===w.coalesce||a&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,n,i)}return e},oe.buildBinary=function(e,t,r,n,i,o){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=r,s.operator=i,s.right=n,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},oe.parseMaybeUnary=function(e,t,r,n){var i,o=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),c=this.type===w.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,c,n),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&se(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==w.privateId){if(i=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(o,s);u.operator=this.value,u.prefix=!1,u.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(u,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==w._in&&this.unexpected();return r||!this.eat(w.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,s,i,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},oe.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var o=this.parseSubscripts(i,r,n,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},oe.parseSubscripts=function(e,t,r,n,i){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,r,n,o,s,i);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var c=this.startNodeAt(t,r);c.expression=a,a=this.finishNode(c,"ChainExpression")}return a}e=a}},oe.parseSubscript=function(e,t,r,n,i,o,s){var a=this.options.ecmaVersion>=11,c=a&&this.eat(w.questionDot);n&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(w.bracketL);if(u||c&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var l=this.startNodeAt(t,r);l.object=e,u?(l.property=this.parseExpression(),this.expect(w.bracketR)):this.type===w.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!u,a&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(w.parenL)){var p=new G,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,p);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,s);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=m,a&&(g.optional=c),e=this.finishNode(g,"CallExpression")}else if(this.type===w.backQuote){(c||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,r);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},oe.parseExprAtom=function(e,t){this.type===w.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(r,"Super");case w._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case w.name:var i=this.start,o=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=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<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},oe.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var o=i[n];this.checkLValInnerPattern(o,1,t?null:r)}},oe.parseExprList=function(e,t,r,n){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var s=void 0;r&&this.type===w.comma?s=null:this.type===w.ellipsis?(s=this.parseSpread(n),n&&this.type===w.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),i.push(s)}return i},oe.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},oe.parseIdent=function(e,t){var r=this.startNode();return this.type===w.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},oe.parsePrivateIdent=function(){var e=this.startNode();return this.type===w.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},oe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},oe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ce=q.prototype;ce.raise=function(e,t){var r=I(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},ce.raiseRecoverable=ce.raise,ce.curPosition=function(){if(this.options.locations)return new R(this.curLine,this.pos-this.lineStart)};var ue=q.prototype,le=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ue.enterScope=function(e){this.scopeStack.push(new le(e))},ue.exitScope=function(){this.scopeStack.pop()},ue.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ue.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-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,Oe=[9,10,11,12,13];Ee<Oe.length;Ee+=1)me=void 0,(me=Ce[fe=Oe[Ee]]={binary:A(ve[fe]+" "+we),nonBinary:{General_Category:A(we),Script:A(xe[fe])}}).nonBinary.Script_Extensions=me.nonBinary.Script,me.nonBinary.gc=me.nonBinary.General_Category,me.nonBinary.sc=me.nonBinary.Script,me.nonBinary.scx=me.nonBinary.Script_Extensions;var De=q.prototype,Te=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=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 je(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 Me(e){return e>=65&&e<=90||e>=97&&e<=122}function Re(e){return Me(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)},De.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},De.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},De.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<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},De.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},De.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},De.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},De.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=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},De.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},De.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},De.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<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},De.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},De.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},De.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},De.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=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},De.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)},De.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},De.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ae(t)&&(e.lastIntValue=t,e.advance(),!0)},De.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Ae(r);)e.advance();return e.pos!==t},De.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))},De.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")}},De.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},De.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=je(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=je(e.lastIntValue);return!0}return!1},De.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)},De.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)},De.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)},De.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},De.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},De.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)},De.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},De.regexp_eatZero=function(e){return 48===e.current()&&!Ie(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},De.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)},De.regexp_eatControlLetter=function(e){var t=e.current();return!!Me(t)&&(e.lastIntValue=t%32,e.advance(),!0)},De.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},De.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))},De.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},De.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},De.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},De.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")},De.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},De.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Re(t=e.current());)e.lastStringValue+=je(t),e.advance();return""!==e.lastStringValue},De.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Fe(t=e.current());)e.lastStringValue+=je(t),e.advance();return""!==e.lastStringValue},De.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},De.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},De.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")}}},De.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)},De.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)},De.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ie(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},De.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},De.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},De.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},De.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},De.regexp_eatOctalDigit=function(e){var t=e.current();return Be(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},De.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!Le(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Ne(i),e.advance()}return!0};var $e=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new F(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ue=q.prototype;function qe(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Ve(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>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.pos<this.input.length&&!k(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},Ue.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&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<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===l)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((p=l>=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<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ue.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ve(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=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<this.input.length;){var i=this.fullCharCodeAtPos();if(h(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?d:h)(s,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Ve(s),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},Ue.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)};var We="8.7.0";q.acorn={Parser:q,version:We,defaultOptions:L,Position:R,SourceLocation:F,getLineInfo:I,Node:pe,TokenType:f,tokTypes:w,keywordTypes:b,TokContext:re,tokContexts:ne,isIdentifierChar:h,isIdentifierStart:d,Token:$e,isNewLine:k,lineBreak:_,lineBreakG:S,nonASCIIwhitespace:x},e.Node=pe,e.Parser=q,e.Position=R,e.SourceLocation=F,e.TokContext=re,e.Token=$e,e.TokenType=f,e.defaultOptions=L,e.getLineInfo=I,e.isIdentifierChar=h,e.isIdentifierStart=d,e.isNewLine=k,e.keywordTypes=b,e.lineBreak=_,e.lineBreakG=S,e.nonASCIIwhitespace=x,e.parse=function(e,t){return q.parse(e,t)},e.parseExpressionAt=function(e,t,r){return q.parseExpressionAt(e,t,r)},e.tokContexts=ne,e.tokTypes=w,e.tokenizer=function(e,t){return q.tokenizer(e,t)},e.version=We,Object.defineProperty(e,"__esModule",{value:!0})}(t)},26487:(e,t)=>{"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.generate=function(e,t){var r=new S(t);return r.generator[e.type](e,r),r.output},t.baseGenerator=t.GENERATOR=t.EXPRESSIONS_PRECEDENCE=t.NEEDS_PARENTHESES=void 0;var n=JSON.stringify;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var i={"||":3,"&&":4,"|":5,"??":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":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;i<n;i++){var o=t[i];e.write(", "),r[o.type](o,e)}}e.write(")")}function f(e,t,r,n){var s=e.expressionsPrecedence[t.type];if(s===o)return!0;var a=e.expressionsPrecedence[r.type];return s!==a?!n&&15===s&&14===a&&"**"===r.operator||s<a:(13===s||14===s)&&("**"===t.operator&&"**"===r.operator?!n:n?i[t.operator]<=i[r.operator]:i[t.operator]<i[r.operator])}function m(e,t,r,n){var i=e.generator;f(e,t,r,n)?(e.write("("),i[t.type](t,e),e.write(")")):i[t.type](t,e)}function g(e,t,r,n){var i=t.split("\n"),o=i.length-1;if(e.write(i[0].trim()),o>0){e.write(n);for(var s=1;s<o;s++)e.write(r+i[s].trim()+n);e.write(r+i[o].trim())}}function y(e,t,r,n){for(var i=t.length,o=0;o<i;o++){var s=t[o];e.write(r),"L"===s.type[0]?e.write("// "+s.value.trim()+"\n",s):(e.write("/*"),g(e,s.value,r,n),e.write("*/"+n))}}function b(e,t){var r=e.generator,n=t.declarations;e.write(t.kind+" ");var i=n.length;if(i>0){r.VariableDeclarator(n[0],e);for(var o=1;o<i;o++)e.write(", "),r.VariableDeclarator(n[o],e)}}t.EXPRESSIONS_PRECEDENCE=d;var v={Program:function(e,t){var r=t.indent.repeat(t.indentLevel),n=t.lineEnd,i=t.writeComments;i&&null!=e.comments&&y(t,e.comments,r,n);for(var o=e.body,s=o.length,a=0;a<s;a++){var c=o[a];i&&null!=c.comments&&y(t,c.comments,r,n),t.write(r),this[c.type](c,t),t.write(n)}i&&null!=e.trailingComments&&y(t,e.trailingComments,r,n)},BlockStatement:p=function(e,t){var r=t.indent.repeat(t.indentLevel++),n=t.lineEnd,i=t.writeComments,o=r+t.indent;t.write("{");var s=e.body;if(null!=s&&s.length>0){t.write(n),i&&null!=e.comments&&y(t,e.comments,o,n);for(var a=s.length,c=0;c<a;c++){var u=s[c];i&&null!=u.comments&&y(t,u.comments,o,n),t.write(o),this[u.type](u,t),t.write(n)}t.write(r)}else i&&null!=e.comments&&(t.write(n),y(t,e.comments,o,n),t.write(r));i&&null!=e.trailingComments&&y(t,e.trailingComments,o,n),t.write("}"),t.indentLevel--},ClassBody:p,StaticBlock:function(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement:function(e,t){t.write(";")},ExpressionStatement:function(e,t){var r=t.expressionsPrecedence[e.expression.type];r===o||3===r&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement:function(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement:function(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement:function(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement:function(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement:function(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement:function(e,t){var r=t.indent.repeat(t.indentLevel++),n=t.lineEnd,i=t.writeComments;t.indentLevel++;var o=r+t.indent,s=o+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+n);for(var a=e.cases,c=a.length,u=0;u<c;u++){var l=a[u];i&&null!=l.comments&&y(t,l.comments,o,n),l.test?(t.write(o+"case "),this[l.test.type](l.test,t),t.write(":"+n)):t.write(o+"default:"+n);for(var p=l.consequent,d=p.length,h=0;h<d;h++){var f=p[h];i&&null!=f.comments&&y(t,f.comments,s,n),t.write(s),this[f.type](f,t),t.write(n)}}t.indentLevel-=2,t.write(r+"}")},ReturnStatement:function(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement:function(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement:function(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){var r=e.handler;null==r.param?t.write(" catch "):(t.write(" catch ("),this[r.param.type](r.param,t),t.write(") ")),this[r.body.type](r.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement:function(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement:function(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement:function(e,t){if(t.write("for ("),null!=e.init){var r=e.init;"V"===r.type[0]?b(t,r):this[r.type](r,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:s=function(e,t){t.write("for ".concat(e.await?"await ":"","("));var r=e.left;"V"===r.type[0]?b(t,r):this[r.type](r,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:s,DebuggerStatement:function(e,t){t.write("debugger;",e)},FunctionDeclaration:a=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),h(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:a,VariableDeclaration:function(e,t){b(t,e),t.write(";")},VariableDeclarator:function(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration:function(e,t){if(t.write("class "+(e.id?"".concat(e.id.name," "):""),e),e.superClass){t.write("extends ");var r=e.superClass,n=r.type,i=t.expressionsPrecedence[n];"C"===n[0]&&"l"===n[1]&&"E"===n[5]||!(i===o||i<t.expressionsPrecedence.ClassExpression)?this[r.type](r,t):(t.write("("),this[e.superClass.type](r,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration:function(e,t){t.write("import ");var r=e.specifiers,n=r.length,i=0;if(n>0){for(;i<n;){i>0&&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(i<n){for(t.write("{");;){var a=r[i],c=a.imported.name;if(t.write(c,a),c!==a.local.name&&t.write(" as "+a.local.name),!(++i<n))break;t.write(", ")}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression:function(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration:function(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration:function(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");var r=e.specifiers,n=r.length;if(n>0)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<n))break;t.write(", ")}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration:function(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition:function(e,t){e.static&&t.write("static ");var r=e.kind[0];"g"!==r&&"s"!==r||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),h(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression:function(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression:function(e,t){t.write(e.async?"async ":"",e);var r=e.params;null!=r&&(1===r.length&&"I"===r[0].type[0]?t.write(r[0].name,r[0]):h(t,e.params)),t.write(" => "),"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;o<i;o++){var s=n[o],a=r[o];t.write(a.value.raw,a),t.write("${"),this[s.type](s,t),t.write("}")}var c=r[r.length-1];t.write(c.value.raw,c),t.write("`")},TemplateElement:function(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression:function(e,t){m(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:l=function(e,t){if(t.write("["),e.elements.length>0)for(var r=e.elements,n=r.length,i=0;;){var o=r[i];if(null!=o&&this[o.type](o,t),!(++i<n)){null==o&&t.write(", ");break}t.write(", ")}t.write("]")},ArrayPattern:l,ObjectExpression:function(e,t){var r=t.indent.repeat(t.indentLevel++),n=t.lineEnd,i=t.writeComments,o=r+t.indent;if(t.write("{"),e.properties.length>0){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),!(++u<c))break;t.write(s)}t.write(n),i&&null!=e.trailingComments&&y(t,e.trailingComments,o,n),t.write(r+"}")}else i?null!=e.comments?(t.write(n),y(t,e.comments,o,n),null!=e.trailingComments&&y(t,e.trailingComments,o,n),t.write(r+"}")):null!=e.trailingComments?(t.write(n),y(t,e.trailingComments,o,n),t.write(r+"}")):t.write("}"):t.write("}");t.indentLevel--},Property:function(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition:function(e,t){e.static&&t.write("static "),this[e.key.type](e.key,t),t.write(" = "),this[e.value.type](e.value,t)},ObjectPattern:function(e,t){if(t.write("{"),e.properties.length>0)for(var r=e.properties,n=r.length,i=0;this[r[i].type](r[i],t),++i<n;)t.write(", ");t.write("}")},SequenceExpression:function(e,t){h(t,e.expressions)},UnaryExpression:function(e,t){if(e.prefix){var r=e.operator,n=e.argument,i=e.argument.type;t.write(r);var o=f(t,n,e);o||!(r.length>1)&&("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||r<t.expressionsPrecedence.CallExpression||function(e){for(var t=e;null!=t;){var r=t.type;if("C"===r[0]&&"a"===r[1])return!0;if("M"!==r[0]||"e"!==r[1]||"m"!==r[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),h(t,e.arguments)},CallExpression:function(e,t){var r=t.expressionsPrecedence[e.callee.type];r===o||r<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),h(t,e.arguments)},ChainExpression:function(e,t){this[e.expression.type](e.expression,t)},MemberExpression:function(e,t){var r=t.expressionsPrecedence[e.object.type];r===o||r<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty:function(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier:function(e,t){t.write(e.name,e)},PrivateIdentifier:function(e,t){t.write("#".concat(e.name),e)},Literal:function(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(n(e.value),e)},RegExpLiteral:function(e,t){var r=e.regex;t.write("/".concat(r.pattern,"/").concat(r.flags),e)}};t.GENERATOR=v;var w={},_=v;t.baseGenerator=_;var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=null==t?w:t;this.output="",null!=r.output?(this.output=r.output,this.write=this.writeToStream):this.output="",this.generator=null!=r.generator?r.generator:v,this.expressionsPrecedence=null!=r.expressionsPrecedence?r.expressionsPrecedence:d,this.indent=null!=r.indent?r.indent:"  ",this.lineEnd=null!=r.lineEnd?r.lineEnd:"\n",this.indentLevel=null!=r.startingIndentLevel?r.startingIndentLevel:0,this.writeComments=!!r.comments&&r.comments,null!=r.sourceMap&&(this.write=null==r.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=r.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:r.sourceMap.file||r.sourceMap._file})}var t,n;return t=e,(n=[{key:"write",value:function(e){this.output+=e}},{key:"writeToStream",value:function(e){this.output.write(e)}},{key:"writeAndMap",value:function(e,t){this.output+=e,this.map(e,t)}},{key:"writeToStreamAndMap",value:function(e,t){this.output.write(e),this.map(e,t)}},{key:"map",value:function(e,t){if(null!=t){var r=t.type;if("L"===r[0]&&"n"===r[2])return this.column=0,void this.line++;if(null!=t.loc){var n=this.mapping;n.original=t.loc.start,n.name=t.name,this.sourceMap.addMapping(n)}if("T"===r[0]&&"E"===r[8]||"L"===r[0]&&"i"===r[1]&&"string"==typeof t.value){for(var i=e.length,o=this.column,s=this.line,a=0;a<i;a++)"\n"===e[a]?(o=0,s++):o++;return this.column=o,void(this.line=s)}}var c=e.length,u=this.lineEnd;c>0&&(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(60551),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=function(e){_(),r(e)},P=e.data,x=e.headers,C={};if(Object.keys(x).forEach((function(e){C[e.toLowerCase()]=e})),"user-agent"in C?x[C["user-agent"]]||delete x[C["user-agent"]]:x["User-Agent"]="axios/"+h,P&&!n.isStream(P)){if(Buffer.isBuffer(P));else if(n.isArrayBuffer(P))P=Buffer.from(new Uint8Array(P));else{if(!n.isString(P))return k(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));P=Buffer.from(P,"utf-8")}C["content-length"]||(x["Content-Length"]=P.length)}var E=void 0;e.auth&&(E=(e.auth.username||"")+":"+(e.auth.password||""));var O=o(e.baseURL,e.url),D=p.parse(O),T=D.protocol||"http:";if(!E&&D.auth){var j=D.auth.split(":");E=(j[0]||"")+":"+(j[1]||"")}E&&C.authorization&&delete x[C.authorization];var A=b.test(T),M=A?e.httpsAgent:e.httpAgent,R={path:s(D.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:x,agent:M,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};e.socketPath?R.socketPath=e.socketPath:(R.hostname=D.hostname,R.port=D.port);var F,I=e.proxy;if(!I&&!1!==I){var L=T.slice(0,-1)+"_proxy",N=process.env[L]||process.env[L.toUpperCase()];if(N){var B=p.parse(N),$=process.env.no_proxy||process.env.NO_PROXY,U=!0;if($&&(U=!$.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&D.hostname.substr(D.hostname.length-e.length)===e||D.hostname===e)}))),U&&(I={host:B.hostname,port:B.port,protocol:B.protocol},B.auth)){var q=B.auth.split(":");I.auth={username:q[0],password:q[1]}}}}I&&(R.headers.host=D.hostname+(D.port?":"+D.port:""),v(R,I,T+"//"+D.hostname+(D.port?":"+D.port:"")+R.path));var V=A&&(!I||b.test(I.protocol));e.transport?F=e.transport:0===e.maxRedirects?F=V?c:a:(e.maxRedirects&&(R.maxRedirects=e.maxRedirects),F=V?l:u),e.maxBodyLength>-1&&(R.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(R.insecureHTTPParser=e.insecureHTTPParser);var H=F.request(R,(function(t){if(!H.aborted){var r=t,o=t.req||H;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,k,s);else{var a=[],c=0;r.on("data",(function(t){a.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),k(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),r.on("error",(function(t){H.aborted||k(m(t,e,null,o))})),r.on("end",(function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=n.stripBOM(t))),s.data=t,i(S,k,s)}))}}}));if(H.on("error",(function(t){H.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||k(m(t,e,null,H))})),e.timeout){var W=parseInt(e.timeout,10);if(isNaN(W))return void k(f("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",H));H.setTimeout(W,(function(){H.abort();var t=e.transitional||g.transitional;k(f("timeout of "+W+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",H))}))}(e.cancelToken||e.signal)&&(w=function(e){H.aborted||(H.abort(),k(!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(P)?P.on("error",(function(t){k(m(t,e,null,H))})).pipe(H):H.end(P)}))}},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(60551),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="timeout of "+e.timeout+"ms exceeded",n=e.transitional||p.transitional;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(60551));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<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},65934:e=>{"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){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!n){var l=[s,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(o),i=Promise.resolve(e);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=e;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},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(60551),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(60551);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},60551:(e,t,r)=>{"use strict";var n=r(73114),i=r(16950),o=r(9119),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?c=r(99888):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(c=r(75956)),c),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)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(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||u.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){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(s)})),e.exports=u},49739:e=>{e.exports={version:"0.22.0"}},16395:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},82485:(e,t,r)=>{"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=>{"use strict";e.exports=function(e){return"object"==typeof 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"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,i){e[i]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},57055:e=>{"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())<o&&(o=i,s=u),u=r.indexOf(t,l+1)),l=c<u&&c>=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-r<e&&e<r}function d(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function h(e){f(e);var r=e.length;if(r<4&&T(e,n)<0)switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function m(e){for(var t=new Array(e),r=-1;++r<e;)t[r]=0;return t}function g(e){return e>0?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<s;i++)c=(n=e[i]+r[i]+c)>=u?1:0,a[i]=n-c*u;for(;i<o;)c=(n=e[i]+c)===u?1:0,a[i++]=n-c*u;return c>0&&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;i<o;i++)n=e[i]-a+r,r=Math.floor(n/a),s[i]=n-r*a,r+=1;for(;r>0;)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;n<s;n++)(i=e[n]-c-r[n])<0?(i+=u,c=1):c=0,a[n]=i;for(n=s;n<o;n++){if(!((i=e[n]-c)<0)){a[n++]=i;break}i+=u,a[n]=i}for(;n<o;n++)a[n]=e[n];return f(a),a}function _(e,r,n){var i,o,s=e.length,a=new Array(s),l=-r,p=t;for(i=0;i<s;i++)o=e[i]+l,l=Math.floor(o/p),o%=p,a[i]=o<0?o+p:o;return"number"==typeof(a=h(a))?(n&&(a=-a),new u(a)):new c(a,n)}function S(e,r){var n,i,o,s,a=e.length,c=r.length,u=m(a+c),l=t;for(o=0;o<a;++o){s=e[o];for(var p=0;p<c;++p)n=s*r[p]+u[o+p],i=Math.floor(n/l),u[o+p]=n-i*l,u[o+p+1]+=i}return f(u),u}function k(e,r){var n,i,o=e.length,s=new Array(o),a=t,c=0;for(i=0;i<o;i++)n=e[i]*r+c,c=Math.floor(n/a),s[i]=n-c*a;for(;c>0;)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<t?k(r,e):S(r,d(e)),n)}function E(e){var r,n,i,o,s=e.length,a=m(s+s),c=t;for(i=0;i<s;i++){n=0-(o=e[i])*o;for(var u=i;u<s;u++)r=o*e[u]*2+a[i+u]+n,n=Math.floor(r/c),a[i+u]=r-n*c;a[i+s]=n}return f(a),a}function O(e,t){var r,n,i,o,s=e.length,a=m(s);for(i=0,r=s-1;r>=0;--r)i=(o=1e7*i+e[r])-(n=g(o/t))*t,a[r]=0|n;return[a,0|i]}function D(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<t){o=h((n=O(p,b))[0]);var v=n[1];return e.sign&&(v=-v),"number"==typeof o?(e.sign!==i.sign&&(o=-o),[new u(o),new u(v)]):[new c(o,e.sign!==i.sign),new u(v)]}y=d(b)}var _=T(p,y);if(-1===_)return[a[0],e];if(0===_)return[a[e.sign===i.sign?1:-1],a[0]];n=p.length+y.length<=200?function(e,r){var n,i,o,s,a,c,u,l=e.length,p=r.length,d=t,f=m(r.length),g=r[p-1],y=Math.ceil(d/(2*g)),b=k(e,y),v=k(r,y);for(b.length<=l&&b.push(0),v.push(0),g=v[p-1],i=l-p;i>=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;a<c;a++)o+=n*v[a],u=Math.floor(o/d),s+=b[i+a]-(o-u*d),o=u,s<0?(b[i+a]=s+d,s=-1):(b[i+a]=s,s=0);for(;0!==s;){for(n-=1,o=0,a=0;a<c;a++)(o+=b[i+a]-d+v[a])<0?(b[i+a]=o+d,o=0):(b[i+a]=o,o=1);s+=o}f[i]=n}return b=O(b,y)[0],[h(f),h(b)]}(p,y):function(e,r){for(var n,i,o,s,a,c=e.length,u=r.length,l=[],p=[],d=t;c;)if(p.unshift(e[--c]),f(p),T(p,r)<0)l.push(0);else{o=p[(i=p.length)-1]*d+p[i-2],s=r[u-1]*d+r[u-2],i>u&&(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 j(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<t.length;n++)if(!e.lesser(t[n])&&!(o=i(t[n]).modPow(a,e)).isUnit()&&!o.equals(s)){for(r=c-1;0!=r;r--){if((o=o.square().mod(e)).isUnit())return!1;if(o.equals(s))continue e}return!1}return!0}c.prototype=Object.create(a.prototype),u.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),c.prototype.add=function(e){var t=J(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,n=t.value;return t.isSmall?new c(v(r,Math.abs(n)),this.sign):new c(b(r,n),this.sign)},c.prototype.plus=c.prototype.add,u.prototype.add=function(e){var t=J(e),r=this.value;if(r<0!==t.sign)return this.subtract(t.negate());var n=t.value;if(t.isSmall){if(p(r+n))return new u(r+n);n=d(Math.abs(n))}return new c(v(n,Math.abs(r)),r<0)},u.prototype.plus=u.prototype.add,l.prototype.add=function(e){return new l(this.value+J(e).value)},l.prototype.plus=l.prototype.add,c.prototype.subtract=function(e){var t=J(e);if(this.sign!==t.sign)return this.add(t.negate());var r=this.value,n=t.value;return t.isSmall?_(r,Math.abs(n),this.sign):function(e,t,r){var n;return T(e,t)>=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))<t)return new c(k(s,r),l);u=d(r)}return new c(-.012*(n=s.length)-.012*(i=u.length)+15e-6*n*i>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=D(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=u.prototype.divmod=c.prototype.divmod,c.prototype.divide=function(e){return D(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 D(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=j(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<a;u++)c.push(i(u+2));return A(n,c)},l.prototype.isPrime=u.prototype.isPrime=c.prototype.isPrime,c.prototype.isProbablePrime=function(t,r){var n=j(this);if(n!==e)return n;for(var o=this.abs(),s=t===e?5:t,a=[],c=0;c<s;c++)a.push(i.randBetween(2,o.minus(2),r));return A(o,a)},l.prototype.isProbablePrime=u.prototype.isProbablePrime=c.prototype.isProbablePrime,c.prototype.modInv=function(e){for(var t,r,n,o=i.zero,s=i.one,a=J(e),c=this.abs();!c.isZero();)t=a.divide(c),r=o,n=a,o=s,a=c,s=r.subtract(t.multiply(s)),c=n.subtract(t.multiply(c));if(!a.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(e)),this.isNegative()?o.negate():o},l.prototype.modInv=u.prototype.modInv=c.prototype.modInv,c.prototype.next=function(){var e=this.value;return this.sign?_(e,1,this.sign):new c(v(e,1),this.sign)},u.prototype.next=function(){var e=this.value;return e+1<r?new u(e+1):new c(n,!1)},l.prototype.next=function(){return new l(this.value+BigInt(1))},c.prototype.prev=function(){var e=this.value;return this.sign?new c(v(e,1),!0):_(e,1,this.sign)},u.prototype.prev=function(){var e=this.value;return e-1>-r?new u(e-1):new c(n,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var M=[1];2*M[M.length-1]<=t;)M.push(2*M[M.length-1]);var R=M.length,F=M[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=D(s,F))[1].toJSNumber(),n&&(c=F-1-c),u=(p=D(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(M[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=D(n,F))[1].isNegative()?t[0].prev():t[0],r-=R-1}return(t=D(n,M[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<r.length;i++)c[r[i]]=i;for(i=0;i<s;i++)if("-"!==(p=e[i])&&p in c&&c[p]>=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.length;i++){var p;if((p=e[i])in c)u.push(J(c[p]));else{if("<"!==p)throw new Error(p+" is not a valid character");var d=i;do{i++}while(">"!==e[i]&&i<e.length);u.push(J(e.slice(d+1,i)))}}return W(u,t,l)};function W(e,t,r){var n,i=a[0],o=a[1];for(n=e.length-1;n>=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<c.length;p++){var d=l?c[p]:t,h=g(i()*d);u.push(h),h<d&&(l=!1)}return o.add(a.fromArray(u,t,!1))},a.fromArray=function(e,t,r){return W(e.map(J),J(t||10),r)},a}();e.hasOwnProperty("exports")&&(e.exports=i),void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)},25178:(e,t,r)=>{"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<u;h++){var f=e.slice(p+h*n,p+(h+1)*n);d[h]=a(f,0)}return[function r(n){var c=d[n],u=e[c],l=(240&u)>>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;t<e.length&&0==e[t];t++);for(;t<e.length;t++){var n="00"+e[t].toString(16);r+=n.substr(n.length-2)}return r}(e.slice(c+1,c+1+r));return i(n,16)}if(r<t.maxObjectSize)return a(e.slice(c+1,c+1+r));throw new Error("To little heap space available! Wanted to read "+r+" bytes, but only "+t.maxObjectSize+" are available.")}();case 8:return function(){var r=p+1;if(r<t.maxObjectSize)return new o(a(e.slice(c+1,c+1+r)));throw new Error("To little heap space available! Wanted to read "+r+" bytes, but only "+t.maxObjectSize+" are available.")}();case 2:return function(){var r=Math.pow(2,p);if(!(r<t.maxObjectSize))throw new Error("To little heap space available! Wanted to read "+r+" bytes, but only "+t.maxObjectSize+" are available.");var n=e.slice(c+1,c+1+r);return 4===r?n.readFloatBE(0):8===r?n.readDoubleBE(0):void 0}();case 3:return function(){3!=p&&console.error("Unknown date type :"+p+". Parsing anyway...");var t=e.slice(c+1,c+9);return new Date(9783072e5+1e3*t.readDoubleBE(0))}();case 4:return function(){var r=1,n=p;if(15==p){var i=e[c+1],o=(240&i)/16;1!=o&&console.error("0x4: UNEXPECTED LENGTH-INT TYPE! "+o);var s=15&i,u=Math.pow(2,s);r=2+u,n=a(e.slice(c+2,c+2+u))}if(n<t.maxObjectSize)return e.slice(c+r,c+r+n);throw new Error("To little heap space available! Wanted to read "+n+" bytes, but only "+t.maxObjectSize+" are available.")}();case 5:return h();case 6:return h(!0);case 10:return function(){var n=p,i=1;if(15==p){var o=e[c+1],u=(240&o)/16;1!=u&&console.error("0xa: UNEXPECTED LENGTH-INT TYPE! "+u);var l=15&o,d=Math.pow(2,l);i=2+d,n=a(e.slice(c+2,c+2+d))}if(n*s>t.maxObjectSize)throw new Error("To little heap space available!");for(var h=[],f=0;f<n;f++){var m=a(e.slice(c+i+f*s,c+i+(f+1)*s));h[f]=r(m)}return h}();case 13:return function(){var n=p,i=1;if(15==p){var o=e[c+1],u=(240&o)/16;1!=u&&console.error("0xD: UNEXPECTED LENGTH-INT TYPE! "+u);var l=15&o,d=Math.pow(2,l);i=2+d,n=a(e.slice(c+2,c+2+d))}if(2*n*s>t.maxObjectSize)throw new Error("To little heap space available!");for(var h={},f=0;f<n;f++){var m=a(e.slice(c+i+f*s,c+i+(f+1)*s)),g=a(e.slice(c+i+n*s+f*s,c+i+n*s+(f+1)*s)),y=r(m),b=r(g);h[y]=b}return h}();default:throw new Error("Unhandled type 0x"+l.toString(16))}function h(r){r=r||0;var n="utf8",i=p,o=1;if(15==p){var s=e[c+1],u=(240&s)/16;1!=u&&console.err("UNEXPECTED LENGTH-INT TYPE! "+u);var l=15&s,d=Math.pow(2,l);o=2+d,i=a(e.slice(c+2,c+2+d))}if((i*=r+1)<t.maxObjectSize){var h=new Buffer(e.slice(c+o,c+o+i));return r&&(h=function(e){for(var t=e.length,r=0;r<t;r+=2){var n=e[r];e[r]=e[r+1],e[r+1]=n}return e}(h),n="ucs2"),h.toString(n)}throw new Error("To little heap space available! Wanted to read "+i+" bytes, but only "+t.maxObjectSize+" are available.")}}(l)]});function a(e,t){for(var r=0,n=t=t||0;n<e.length;n++)r<<=8,r|=255&e[n];return r}function c(e,t){return e.slice(t,t+8).readUInt32BE(4,8)}},19158:(e,t,r)=>{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;k<S&&(x*=-1,C=g);var E=s.some(f);v=[];for(var O=S;C(O,k);O+=x){var D;if(u)"\\"===(D=String.fromCharCode(O))&&(D="");else if(D=String(O),E){var T=P-D.length;if(T>0){var j=new Array(T+1).join("0");D=O<0?"-"+j+D.slice(1):j+D}}v.push(D)}}else v=n(s,(function(e){return y(e,!1)}));for(var A=0;A<v.length;A++)for(var M=0;M<_.length;M++){var R=w+v[A]+_[M];(!t||p||R)&&r.push(R)}return r}},32486:(e,t,r)=>{"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<t)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout((()=>{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<e&&(e=i)}e!==1/0&&this._tick(e-t)}),e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(f(e),l in e)throw new Error("CacheableLookup has been already installed");e[l]=e.createConnection,e[p]=this,e.createConnection=(t,r)=>("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=o<t.length-1;return u(i,s,o>0,(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;r<o.length;r++)s.push(e[o[r]]);this.color=h(s)}if(c[this.model])for(l=i[this.model].channels,r=0;r<l;r++){const e=c[this.model][r];e&&(this.color[r]=e(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}u.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const r=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](r)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(r)},array(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object(){const e={},t=i[this.model].channels,r=i[this.model].labels;for(let n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new u(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha(e){return arguments.length>0?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<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}e.exports=u},77741:(e,t,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<o&&(o=i,r=t)}var s,a;return r},o.keyword.rgb=function(e){return n[e]},o.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.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;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),o[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(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<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),i=Object.keys(n[e]);for(let n=i.length,o=0;o<n;o++){const n=i[o],s=t[n];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,r.unshift(n))}}return t}(e),r={},i=Object.keys(t);for(let e=i.length,n=0;n<e;n++){const e=i[n];null!==t[e].parent&&(r[e]=o(e,t))}return r}},2597: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]}},21897:e=>{e.exports=function(e,r){for(var n=[],i=0;i<e.length;i++){var o=r(e[i],i);t(o)?n.push.apply(n,o):n.push(o)}return n};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},41276:(e,t)=>{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<r.length;e++)"base64"===r[e]?i=!0:(s+=`;${r[e]}`,0===r[e].indexOf("charset=")&&(n=r[e].substring(8)));r[0]||n.length||(s+=";charset=US-ASCII",n="US-ASCII");const a=i?"base64":"ascii",c=unescape(e.substring(t+1)),u=Buffer.from(c,a);return u.type=o,u.typeFull=s,u.charset=n,u}},32708:(e,t,r)=>{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=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(o),o}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.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(48632),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},5514:(e,t,r)=>{"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<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=`  ${i};1m${n} `;r[0]=o+r[0].split("\n").join("\n"+o),r.push(i+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"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);function s(e){console.log(`[dotenv][DEBUG] ${e}`)}const a=/^\s*([\w.-]+)\s*=\s*("[^"]*"|'[^']*'|[^#]*)?(\s*|\s*#.*)?$/,c=/\\n/g,u=/\r\n|\n|\r/;function l(e,t){const r=Boolean(t&&t.debug),n={};return e.toString().split(u).forEach((function(e,t){const i=e.match(a);if(null!=i){const e=i[1];let t=i[2]||"";const r=t.length-1,o='"'===t[0]&&'"'===t[r];"'"===t[0]&&"'"===t[r]||o?(t=t.substring(1,r),o&&(t=t.replace(c,"\n"))):t=t.trim(),n[e]=t}else if(r){const r=e.trim();r.length&&"#"!==r[0]&&s(`Failed to match key and value when parsing line ${t+1}: ${e}`)}})),n}e.exports.config=function(e){let t=i.resolve(process.cwd(),".env"),r="utf8";const a=Boolean(e&&e.debug),c=Boolean(e&&e.override);var u;e&&(null!=e.path&&(t="~"===(u=e.path)[0]?i.join(o.homedir(),u.slice(1)):u),null!=e.encoding&&(r=e.encoding));try{const e=l(n.readFileSync(t,{encoding:r}),{debug:a});return Object.keys(e).forEach((function(t){Object.prototype.hasOwnProperty.call(process.env,t)?(!0===c&&(process.env[t]=e[t]),a&&s(!0===c?`"${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 a&&s(`Failed to load ${t} ${e.message}`),{error:e}}},e.exports.parse=l},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<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)o(i,this.__leavelist[e].path);return o(i,this.__current.path),i},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(s)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(a)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var r,n,i,a,c,u,p,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((i=r.pop())!==v){if(i.node){if(u=this.__execute(t.enter,i),this.__state===o||u===o)return;if(r.push(v),n.push(i),this.__state===s||u===s)continue;if(c=(a=i.node).type||i.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(a)}for(m=y.length;(m-=1)>=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<n)break;--i.ref.key}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,f=new l(e,null,null,new u(w={root:e},"root")),r.push(f),n.push(f);r.length;)if((f=r.pop())!==v){if(void 0!==(p=this.__execute(t.enter,f))&&p!==o&&p!==s&&p!==a&&(f.ref.replace(p),f.node=p),this.__state!==a&&p!==a||(S(f),f.node=null),this.__state===o||p===o)return w.root;if((i=f.node)&&(r.push(v),n.push(f),this.__state!==s&&p!==s)){if(c=i.type||f.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(i)}for(m=y.length;(m-=1)>=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;s<o;s+=1)(i=c(t[s])).extendedRange=[0,e.range[0]],u.push(i);e.leadingComments=u}return e}for(s=0,o=t.length;s<o;s+=1)u.push(g(c(t[s]),r));return a=0,m(e,{enter:function(e){for(var t;a<u.length&&!((t=u[a]).extendedRange[1]>e.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;a<u.length&&(t=u[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.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}}),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 O=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,O)};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<r.length;a++){const c=r[a],l=/^".*"$/.test(c)?c.slice(1,-1):c,p=i.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(s.sync(r,{pathExt:o})){if(!t.all)return r;u.push(r)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw a(e)}},17437:e=>{"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<h;++d)if(null!=(t=arguments[d]))for(r in t)n=c(p,r),p!==(i=c(t,r))&&(f&&i&&(s(i)||(u=o(i)))?(u?(u=!1,l=n&&o(n)?n:[]):l=n&&s(n)?n:{},a(p,{name:r,newValue:e(f,l,i)})):void 0!==i&&a(p,{name:r,newValue:i}));return p}},40829:(e,t,r)=>{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<l.length;t++)e.removeListener(l[t],p[l[t]]);e.on("error",b),e.abort()}g.prototype=Object.create(a.prototype),g.prototype.abort=function(){S(this._currentRequest),this.emit("abort")},g.prototype.write=function(e,t,r){if(this._ending)throw new m;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new f),this.abort()):r&&r()},g.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},g.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},g.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},g.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){g.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(g.prototype,e,{get:function(){return this._currentRequest[e]}})})),g.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},g.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options),i._redirectable=this;for(var o=0;o<l.length;o++)i.on(l[o],p[l[o]]);if(this._isRedirect){var s=0,a=this,c=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(s<c.length){var r=c[s++];i.finished||i.write(r.data,r.encoding,e)}else a._ended&&i.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},g.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(S(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new h);((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 i,o=w(/^host$/i,this._options.headers),s=n.parse(this._currentUrl),a=o||s.host,c=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(s,{host:a}));try{i=n.resolve(c,r)}catch(e){return void this.emit("error",new d(e))}u("redirecting to",i),this._isRedirect=!0;var l=n.parse(i);if(Object.assign(this._options,l),l.host===a||function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(l.host,a)||w(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var p={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,p)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},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;){a.lastIndex=r;var m=a.exec(e);if(l=s,s+=m[0],u=l+m[1],r=a.lastIndex,!(h[u]||t&&t[u]===u)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,u))g=t[u];else{var y=o.lstatSync(u);if(!y.isSymbolicLink()){h[u]=!0,t&&(t[u]=u);continue}var b=null;if(!i){var v=y.dev.toString(32)+":"+y.ino.toString(32);d.hasOwnProperty(v)&&(b=d[v])}null===b&&(o.statSync(u),b=o.readlinkSync(u)),g=n.resolve(l,b),t&&(t[u]=g),i||(d[v]=b)}e=n.resolve(g,e.slice(r)),f()}}return t&&(t[p]=e),e},t.realpath=function(e,t,r){if("function"!=typeof r&&(r=function(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(t),t=null),e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(r.bind(null,null,t[e]));var u,l,p,d,h=e,f={},m={};function g(){var t=c.exec(e);u=t[0].length,l=t[0],p=t[0],d="",i&&!m[p]?o.lstat(p,(function(e){if(e)return r(e);m[p]=!0,y()})):process.nextTick(y)}function y(){if(u>=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(73101),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")}},2239:(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<i;n++){var o=e.matches[n];if(o&&0!==Object.keys(o).length){var s=Object.keys(o);t?r.push.apply(r,s):s.forEach((function(e){r[e]=!0}))}else if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(u)),e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[p(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!d(e,t)}))),e.found=r},t.mark=function(e,t){var r=p(e,t),n=e.cache[r],i=t;if(n){var o="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(o&&!s?i+="/":!o&&s&&(i=i.slice(0,-1)),i!==t){var a=p(e,i);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return i},t.isIgnored=d,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var i=r(57147),o=r(71017),s=r(45076),a=r(89991),c=s.Minimatch;function u(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new c(r,{dot:!0})}return{matcher:new c(e,{dot:!0}),gmatcher:t}}function p(e,t){var r=t;return r="/"===t.charAt(0)?o.join(e.root,t):a(t)||""===t?t:e.changedCwd?o.resolve(e.cwd,t):o.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function d(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}},51164:(e,t,r)=>{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(39701),p=r(2239),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;o<n;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--i._processing,i._processing<=0&&i._finish()}}b.glob=b,b.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new w(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},b.Glob=w,o(w,s),w.prototype._finish=function(){if(c(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},w.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r),o=this,s=i.length;if(0===s)return t();var a=this.matches[e]=Object.create(null);i.forEach((function(r,i){r=o._makeAbs(r),n.realpath(r,o.realpathCache,(function(n,i){n?"stat"===n.syscall?a[r]=!0:o.emit("error",n):a[i]=!0,0==--s&&(o.matches[e]=a,t())}))}))},w.prototype._mark=function(e){return p.mark(this,e)},w.prototype._makeAbs=function(e){return p.makeAbs(this,e)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},w.prototype._process=function(e,t,r,n){if(c(this instanceof w),c("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var o,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:o=null;break;default:o=e.slice(0,s).join("/")}var a,l=e.slice(s);null===o?a=".":u(o)||u(e.join("/"))?(o&&u(o)||(o="/"+o),a=o):a=o;var p=this._makeAbs(a);if(m(this,a))return n();l[0]===i.GLOBSTAR?this._processGlobStar(o,a,p,l,t,r,n):this._processReaddir(o,a,p,l,t,r,n)}},w.prototype._processReaddir=function(e,t,r,n,i,o,s){var a=this;this._readdir(r,o,(function(c,u){return a._processReaddir2(e,t,r,n,i,o,u,s)}))},w.prototype._processReaddir2=function(e,t,r,n,i,o,s,c){if(!s)return c();for(var u=n[0],l=!!this.minimatch.negate,p=u._glob,d=this.dot||"."===p.charAt(0),h=[],f=0;f<s.length;f++)("."!==(g=s[f]).charAt(0)||d)&&(l&&!e?!g.match(u):g.match(u))&&h.push(g);var m=h.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),f=0;f<m;f++){var g=h[f];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=a.join(this.root,g)),this._emitMatch(i,g)}return c()}for(n.shift(),f=0;f<m;f++)g=h[f],e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),i,o,c);c()},w.prototype._emitMatch=function(e,t){if(!this.aborted&&!g(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=u(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},w.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=f("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var o=i&&i.isSymbolicLink();r.symlinks[e]=o,o||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},w.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=f("readdir\0"+e+"\0"+t,r))){if(t&&!h(this.symlinks,e))return this._readdirInGlobStar(e,r);if(h(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},w.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},w.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},w.prototype._processGlobStar=function(e,t,r,n,i,o,s){var a=this;this._readdir(r,o,(function(c,u){a._processGlobStar2(e,t,r,n,i,o,u,s)}))},w.prototype._processGlobStar2=function(e,t,r,n,i,o,s,a){if(!s)return a();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,a);var p=this.symlinks[r],d=s.length;if(p&&o)return a();for(var h=0;h<d;h++)if("."!==s[h].charAt(0)||this.dot){var f=u.concat(s[h],c);this._process(f,i,!0,a);var m=u.concat(s[h],n);this._process(m,i,!0,a)}a()},w.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,o){n._processSimple2(e,t,i,o,r)}))},w.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&u(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),o&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},w.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.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)}},39701:(e,t,r)=>{e.exports=h,h.GlobSync=f;var n=r(53247),i=r(45076),o=(i.Minimatch,r(51164).Glob,r(73837),r(71017)),s=r(39491),a=r(89991),c=r(2239),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;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}f.prototype._finish=function(){if(s(this instanceof f),this.realpath){var e=this;this.matches.forEach((function(t,r){var i=e.matches[r]=Object.create(null);for(var o in t)try{o=e._makeAbs(o),i[n.realpathSync(o,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;i[e._makeAbs(o)]=!0}}))}c.finish(this)},f.prototype._process=function(e,t,r){s(this instanceof f);for(var n,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,o).join("/")}var c,u=e.slice(o);null===n?c=".":a(n)||a(e.join("/"))?(n&&a(n)||(n="/"+n),c=n):c=n;var l=this._makeAbs(c);p(this,c)||(u[0]===i.GLOBSTAR?this._processGlobStar(n,c,l,u,t,r):this._processReaddir(n,c,l,u,t,r))},f.prototype._processReaddir=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,p=this.dot||"."===l.charAt(0),d=[],h=0;h<a.length;h++)("."!==(g=a[h]).charAt(0)||p)&&(u&&!e?!g.match(c):g.match(c))&&d.push(g);var f=d.length;if(0!==f)if(1!==n.length||this.mark||this.stat)for(n.shift(),h=0;h<f;h++){var m;g=d[h],m=e?[e,g]:[g],this._process(m.concat(n),i,s)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(h=0;h<f;h++){var g=d[h];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=o.join(this.root,g)),this._emitMatch(i,g)}}}},f.prototype._emitMatch=function(e,t){if(!d(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},f.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},f.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},f.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},f.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},f.prototype._processGlobStar=function(e,t,r,n,i,o){var s=this._readdir(r,o);if(s){var a=n.slice(1),c=e?[e]:[],u=c.concat(a);this._process(u,i,!1);var l=s.length;if(!this.symlinks[r]||!o)for(var p=0;p<l;p++)if("."!==s[p].charAt(0)||this.dot){var d=c.concat(s[p],a);this._process(d,i,!0);var h=c.concat(s[p],n);this._process(h,i,!0)}}},f.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&a(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),n&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},f.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.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)}},73101:(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;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==n&&"["===e[t]&&"]"!==e[t+1]&&(n<t&&(n=e.indexOf("]",t)),n>t)){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]&&(r<t&&(r=e.indexOf("|",t)),-1!==r&&")"!==e[r+1]&&(s=e.indexOf(")",r))>r&&(-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<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var r=e[t+1];t+=2;var n=i[r];if(n){var o=e.indexOf(n,t);-1!==o&&(t=o+1)}if("!"===e[t])return!0}else t++}return!1};e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(n(e))return!0;var r=o;return t&&!1===t.strict&&(r=s),r(e)}},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=o<t.length-1;return u(i,s,o>0,(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(51164),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},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))}h.isResponseOk(t)?(n=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"}}t.ParseError=s;class a extends o.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError"}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),O=r(52361),D=r(43493);let T;const j=Symbol("request"),A=Symbol("response"),M=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]),Y=["context","body","json","form"];t.setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e)if(t)for(const e of Y)e in t&&(r[e]={writable:!0,configurable:!0,enumerable:!1,value:t[e]});Object.defineProperties(t,r)};class X extends Error{constructor(e,t,r){var n;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=t.code,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===(n=this.request)||void 0===n?void 0:n.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=X;class Z extends X{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError"}}t.MaxRedirectsError=Z;class ee extends X{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError"}}t.HTTPError=ee;class te extends X{constructor(e,t){super(e.message,e,t),this.name="CacheError"}}t.CacheError=te;class re extends X{constructor(e,t){super(e.message,e,t),this.name="UploadError"}}t.UploadError=re;class ne extends X{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 X{constructor(e,t){super(e.message,e,t),this.name="ReadError"}}t.ReadError=ie;class oe extends X{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError"}}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[j])||void 0===e||e.destroy());for(const e of this[W])e();this[W].length=0,this.requestInitialized=!0}catch(e){if(e instanceof X)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[j](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),O.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[M]=Number(e.headers["content-length"])||void 0,this[A]=e,e.once("end",(()=>{this[M]=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 e=o.map((async e=>t.cookieJar.setCookie(e,r.toString())));t.ignoreInvalidCookies&&(e=e.map((async e=>e.catch((()=>{})))));try{await Promise.all(e)}catch(e){return void this._beforeError(e)}}if(t.followRedirect&&e.headers.location&&Q.has(n)){if(e.resume(),this[j]&&(this[$](),delete this[j],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 n=Buffer.from(e.headers.location,"binary").toString(),o=new s.URL(n,r),a=o.toString();decodeURI(a),o.hostname!==r.hostname||o.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="")):(o.username=t.username,o.password=t.password),this.redirects.push(a),t.url=o;for(const e of t.hooks.beforeRedirect)await e(t,i);this.emit("redirect",i,t),await this._makeRequest()}catch(e){return void this._beforeError(e)}}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 r of this[L])if(!r.headersSent){for(const n in e.headers){const i=!t.decompress||"content-encoding"!==n,o=e.headers[n];i&&r.setHeader(n,o)}r.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 X(t.message,t,this),this._beforeError(t)})),this[N]=v.default(e,this,se),this[j]=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=/(?<socketPath>.+?):(?<path>.+)/.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[j]=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 X(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 X(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 X||(e=new X(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:D.default({attemptCount:r,retryOptions:t.retry,error:n,retryAfter:e,computedValue:0})})}catch(e){return void this._error(new X(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 X(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[j].destroyed||(this._progressCallbacks.push((()=>{this[I]+=Buffer.byteLength(e,t);const r=this.uploadProgress;r.percent<1&&this.emit("uploadProgress",r)})),this[j].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()();j in this?this[j].destroyed?e():this[j].end((t=>{t||(this[F]=this[I],this.emit("uploadProgress",this.uploadProgress),this[j].emit("upload-complete")),e(t)})):e()};this.requestInitialized?t():this[W].push(t)}_destroy(e,t){var r;this[q]=!0,clearTimeout(this[z]),j in this&&(this[$](),(null===(r=this[A])||void 0===r?void 0:r.complete)||this[j].destroy()),null===e||g.default.undefined(e)||e instanceof X||(e=new X(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[j])||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[j])||void 0===e?void 0:e.socket)&&void 0!==t?t:void 0}get downloadProgress(){let e;return e=this[M]?this[R]/this[M]:this[M]===this[R]?1:0,{percent:e,transferred:this[R],total:this[M]}}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[j])||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=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<s.requestLimit;){0!==u&&await p(s.backoff);const e=await r(void 0,void 0,i),t=await s.transform(e),n=[];for(const e of t)if(s.filter(e,a,n)){if(!s.shouldContinue(e,a,n))return;if(yield e,s.stackAllItems&&a.push(e),n.push(e),--c<=0)return}const o=s.paginate(e,a,n);if(!1===o)return;o===e.request.options?i=e.request.options:void 0!==o&&(i=d(void 0,o,i)),u++}};(r.paginate=n).all=async(e,t)=>{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<i)}},83283:e=>{"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)||r<t?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r)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].length<t[u].length&&r[u].every((e=>t[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.remoteSettings.maxConcurrentStreams;return t?r:!r}));0!==i.length&&(r[n]=i)}return r},m=e=>{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<this.maxSessions&&!r.completed&&(r.completed=!0,r())}getSession(e,t,r){return new Promise(((n,i)=>{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<n)break;if(r[u].includes(p)){const o=r[a];if(o>=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]<g.remoteSettings.maxConcurrentStreams;let v=!0;g.socket.once("session",(e=>{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<i;){const o=n+i>>>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].length<r[u].length&&t[u].every((e=>r[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!#$%&*+.|~]+$/,O=/[^\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(O.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;n<t;n++)r[n]=e[n];return r}e.exports=n((function(e,t){return i[e]?(i[e].push(t),null):(i[e]=[t],function(e){return o((function t(){var r=i[e],n=r.length,o=s(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,o)}finally{r.length>n?(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:()=>D,TargetTypeEnum:()=>v,createTaggedDecorator:()=>He,decorate:()=>ze,getServiceIdentifierAsString:()=>j,id:()=>_,inject:()=>Xe,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.",O=function(e,t){return"onDeactivation() error in class "+e+": "+t},D=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 j(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 M(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||M(e.parentRequest,t))}function R(e){e.childRequests.forEach((function(e){if(M(e,e.serviceIdentifier)){var t=function(e){return function e(t,r){void 0===r&&(r=[]);var n=j(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;t<r.length;t++)if(r[t].key===e)return!0;return!1},e.prototype.isArray=function(){return this.hasTag(u)},e.prototype.matchesArray=function(e){return this.matchesTag(u)(e)},e.prototype.isNamed=function(){return this.hasTag(i)},e.prototype.isTagged=function(){return this.metadata.some((function(e){return g.every((function(t){return e.key!==t}))}))},e.prototype.isOptional=function(){return this.matchesTag(a)(!0)},e.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter((function(e){return e.key===i}))[0]:null},e.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter((function(e){return g.every((function(t){return e.key!==t}))})):null},e.prototype.matchesNamedTag=function(e){return this.matchesTag(i)(e)},e.prototype.matchesTag=function(e){var t=this;return function(r){for(var n=0,i=t.metadata;n<i.length;n++){var o=i[n];if(o.key===e&&o.value===r)return!0}return!1}},e}(),q=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function V(e,t,r,n){var i=e.getConstructorMetadata(r),o=i.compilerGeneratedMetadata;if(void 0===o)throw new Error(C+" "+t+".");var s=i.userGeneratedMetadata,a=Object.keys(s),c=0===r.length&&a.length>0,u=a.length>r.length,l=function(e,t,r,n,i){for(var o=[],s=0;s<i;s++){var a=H(s,e,t,r,n);null!==a&&o.push(a)}return o}(n,t,o,s,c||u?a.length:r.length),p=G(e,r,t);return q(q([],l,!0),p,!0)}function H(e,t,r,n,i){var o=i[e.toString()]||[],s=K(o),a=!0!==s.unmanaged,c=n[e];if((c=s.inject||s.multiInject||c)instanceof B&&(c=c.unwrap()),a){if(!t&&(c===Object||c===Function||void 0===c))throw new Error("Missing required @inject or @multiInject annotation in: argument "+e+" in class "+r+".");var u=new U(v.ConstructorArgument,s.targetName,c);return u.metadata=o,u}return null}function W(e,t,r,n){var i=e||t;if(void 0===i){var o=C+" for property "+String(r)+" in class "+n+".";throw new Error(o)}return i}function G(e,t,r){for(var n=e.getPropertiesMetadata(t),i=[],o=Object.getOwnPropertySymbols(n),s=0,a=Object.keys(n).concat(o);s<a.length;s++){var c=a[s],u=n[c],l=K(u),p=l.targetName||c,d=W(l.inject,l.multiInject,c,r),h=new U(v.ClassProperty,p,d);h.metadata=u,i.push(h)}var f=Object.getPrototypeOf(t.prototype).constructor;if(f!==Object){var m=G(e,f,r);i=q(q([],i,!0),m,!0)}return i}function z(e,t){var r=Object.getPrototypeOf(t.prototype).constructor;if(r!==Object){var n=V(e,F(r),r,!0),i=n.map((function(e){return e.metadata.filter((function(e){return e.key===s}))})),o=[].concat.apply([],i).length,a=n.length-o;return a>0?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 Y(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=j(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=j(e)),o+=A(n,i,Z),new Error(o)}}(i.serviceIdentifier,o,i,r.container),o}function X(e,t,r,n,i,o){var s,a;if(null===i){s=Y(e,t,n,null,o),a=new J(r,n,null,s,o);var c=new N(n,a);n.addPlan(c)}else s=Y(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<s){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"The number of constructor arguments in the derived class "+e[0]+" must be >= than the number of constructor arguments of its base class."}(F(t.implementationType));throw new Error(c)}}i.forEach((function(t){X(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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t];case 1:return r=i.sent(),e.cache=r,[3,3];case 2:throw n=i.sent(),e.cache=null,e.activated=!1,n;case 3:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(s,a)}c((o=o.apply(r,n||[])).next())}));var r,n,i,o};!function(e){e.DynamicValue="toDynamicValue",e.Factory="toFactory",e.Provider="toProvider"}(re||(re={}));var ie=function(e){return function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.forEach((function(r){return e.bind(r).toService(t)}))}}},oe=function(){return oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oe.apply(this,arguments)},se=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},ae=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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function ce(e){var t,r=new((t=e.constr).bind.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([void 0],e.constructorInjections,!1)));return e.propertyRequests.forEach((function(t,n){var i=t.target.identifier,o=e.propertyInjections[n];r[i]=o})),r}function ue(e){return se(this,void 0,void 0,(function(){var t,r,n,i;return ae(this,(function(o){for(t=[],r=0,n=e;r<n.length;r++)i=n[r],Array.isArray(i)?t.push(Promise.all(i)):t.push(i);return[2,Promise.all(t)]}))}))}function le(e,t){var r=function(e,t){var r,n;if(Reflect.hasMetadata(f,e)){var i=Reflect.getMetadata(f,e);try{return null===(n=(r=t)[i.value])||void 0===n?void 0:n.call(r)}catch(t){throw new Error("@postConstruct error in class "+e.name+": "+t.message)}}}(e,t);return ee(r)?r.then((function(){return t})):t}var pe=function(e){return function(t){t.parentContext.setCurrentRequest(t);var r=t.bindings,n=t.childRequests,i=t.target&&t.target.isArray(),o=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(i&&o)return n.map((function(t){return pe(e)(t)}));if(!t.target.isOptional()||0!==r.length){var s=r[0];return me(e,t,s)}}},de=function(e,t){var r=function(e){switch(e.type){case b.Factory:return{factory:e.factory,factoryType:re.Factory};case b.Provider:return{factory:e.provider,factoryType:re.Provider};case b.DynamicValue:return{factory:e.dynamicValue,factoryType:re.DynamicValue};default:throw new Error("Unexpected factory type "+e.type)}}(e);return function(n,i){try{return r.factory.bind(e)(t)}catch(e){throw T(e)&&(e=new Error((o=r.factoryType,s=t.currentRequest.serviceIdentifier.toString(),"It looks like there is a circular dependency in one of the '"+o+"' bindings. Please investigate bindings withservice identifier '"+s+"'."))),e}var o,s}()},he=function(e,t,r){var n,i=t.childRequests;switch(function(e){var t=null;switch(e.type){case b.ConstantValue:case b.Function:t=e.cache;break;case b.Constructor:case b.Instance:t=e.implementationType;break;case b.DynamicValue:t=e.dynamicValue;break;case b.Provider:t=e.provider;break;case b.Factory:t=e.factory}if(null===t){var r=j(e.serviceIdentifier);throw new Error("Invalid binding type: "+r)}}(r),r.type){case b.ConstantValue:case b.Function:n=r.cache;break;case b.Constructor:n=r.implementationType;break;case b.Instance:n=function(e,t,r,n){!function(e,t){e.scope!==y.Singleton&&function(e,t){var r="Class cannot be instantiated in "+(e.scope===y.Request?"request":"transient")+" scope.";if("function"==typeof e.onDeactivation)throw new Error(O(t.name,r));if(Reflect.hasMetadata(m,t))throw new Error("@preDestroy error in class "+t.name+": "+r)}(e,t)}(e,t);var i=function(e,t,r){var n;if(t.length>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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){switch(o.label){case 0:return[4,r];case 1:n=o.sent(),i=e.next(),o.label=2;case 2:return i.done?[3,4]:[4,i.value(t,n)];case 3:return n=o.sent(),i=e.next(),[3,2];case 4:return[2,n]}}))},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,a)}c((s=s.apply(n,i||[])).next())}));var n,i,o,s},we=function(e,t){var r=e._activations;return r.hasKey(t)?r.get(t).values():[].values()},_e=function(e){for(var t=[e],r=e.parent;null!==r;)t.push(r),r=r.parent;return{next:function(){var e=t.pop();return void 0!==e?{done:!1,value:e}:{done:!0,value:void 0}}}},Se=function(e,t){var r=e.parentRequest;return null!==r&&(!!t(r)||Se(r,t))},ke=function(e){return function(t){var r=function(r){return null!==r&&null!==r.target&&r.target.matchesTag(e)(t)};return r.metaData=new L(e,t),r}},Pe=ke(i),xe=function(e){return function(t){var r=null;if(null!==t){if(r=t.bindings[0],"string"==typeof e)return r.serviceIdentifier===e;var n=t.bindings[0].implementationType;return e===n}return!1}},Ce=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new Ee(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=Pe(e),new Ee(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e&&null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new Ee(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=ke(e)(t),new Ee(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return null!==t&&xe(e)(t.parentRequest)},new Ee(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return null!==t&&Pe(e)(t.parentRequest)},new Ee(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(r){return null!==r&&ke(e)(t)(r.parentRequest)},new Ee(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return null!==t&&Se(t,xe(e))},new Ee(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return null!==t&&!Se(t,xe(e))},new Ee(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return null!==t&&Se(t,Pe(e))},new Ee(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return null!==t&&!Se(t,Pe(e))},new Ee(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(r){return null!==r&&Se(r,ke(e)(t))},new Ee(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(r){return null!==r&&!Se(r,ke(e)(t))},new Ee(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return null!==t&&Se(t,e)},new Ee(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return null!==t&&!Se(t,e)},new Ee(this._binding)},e}(),Ee=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new Ce(this._binding)},e.prototype.onDeactivation=function(e){return this._binding.onDeactivation=e,new Ce(this._binding)},e}(),Oe=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new Ce(this._binding),this._bindingOnSyntax=new Ee(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},e}(),De=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=y.Request,new Oe(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=y.Transient,new Oe(this._binding)},e}(),Te=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new Ce(this._binding),this._bindingOnSyntax=new Ee(this._binding),this._bindingInSyntax=new De(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},e}(),je=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=b.Instance,this._binding.implementationType=e,new Te(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error("The toSelf function can only be applied when a constructor is used as service identifier");var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=b.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=b.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new Te(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=b.Constructor,this._binding.implementationType=e,this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=b.Factory,this._binding.factory=e,this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error("Value provided to function binding must be a function!");var t=this.toConstantValue(e);return this._binding.type=b.Function,this._binding.scope=y.Singleton,t},e.prototype.toAutoFactory=function(e){return this._binding.type=b.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.toAutoNamedFactory=function(e){return this._binding.type=b.Factory,this._binding.factory=function(t){return function(r){return t.container.getNamed(e,r)}},new Oe(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=b.Provider,this._binding.provider=e,this._binding.scope=y.Singleton,new Oe(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}(),Ae=function(){function e(){}return e.of=function(t,r,n,i,o){var s=new e;return s.bindings=t,s.middleware=r,s.deactivations=i,s.activations=n,s.moduleActivationStore=o,s},e}(),Me=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(P);if(null==t)throw new Error(P);var r=this._map.get(e);void 0!==r?r.push(t):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(P);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(x)},e.prototype.remove=function(e){if(null==e)throw new Error(P);if(!this._map.delete(e))throw new Error(x)},e.prototype.removeIntersection=function(e){var t=this;this.traverse((function(r,n){var i=e.hasKey(r)?e.get(r):void 0;if(void 0!==i){var o=n.filter((function(e){return!i.some((function(t){return e===t}))}));t._setValue(r,o)}}))},e.prototype.removeByCondition=function(e){var t=this,r=[];return this._map.forEach((function(n,i){for(var o=[],s=0,a=n;s<a.length;s++){var c=a[s];e(c)?r.push(c):o.push(c)}t._setValue(i,o)})),r},e.prototype.hasKey=function(e){if(null==e)throw new Error(P);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,r){e.forEach((function(e){return t.add(r,"object"==typeof(n=e)&&null!==n&&"clone"in n&&"function"==typeof n.clone?e.clone():e);var n}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,r){e(r,t)}))},e.prototype._setValue=function(e,t){t.length>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 Me,onDeactivations:new Me}},e}(),Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fe.apply(this,arguments)},Ie=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},Le=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]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Ne=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Be=function(){function e(e){var t=e||{};if("object"!=typeof t)throw new Error("Invalid Container constructor argument. Container options must be an object.");if(void 0===t.defaultScope)t.defaultScope=y.Transient;else if(t.defaultScope!==y.Singleton&&t.defaultScope!==y.Transient&&t.defaultScope!==y.Request)throw new Error("Invalid Container option. Default scope must be a string ('singleton' or 'transient').");if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error("Invalid Container option. Auto bind injectable must be a boolean");if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error("Invalid Container option. Skip base check must be a boolean");this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=_(),this._bindingDictionary=new Me,this._snapshots=[],this._middleware=null,this._activations=new Me,this._deactivations=new Me,this.parent=null,this._metadataReader=new D,this._moduleActivationStore=new Re}return e.merge=function(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=new e,s=Ne([t,r],n,!0).map((function(e){return Q(e)})),a=Q(o);function c(e,t){e.traverse((function(e,r){r.forEach((function(e){t.add(e.serviceIdentifier,e.clone())}))}))}return s.forEach((function(e){c(e,a)})),o},e.prototype.load=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this._getContainerModuleHelpersFactory(),n=0,i=e;n<i.length;n++){var o=i[n],s=r(o.id);o.registry(s.bindFunction,s.unbindFunction,s.isboundFunction,s.rebindFunction,s.unbindAsyncFunction,s.onActivationFunction,s.onDeactivationFunction)}},e.prototype.loadAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ie(this,void 0,void 0,(function(){var t,r,n,i,o;return Le(this,(function(s){switch(s.label){case 0:t=this._getContainerModuleHelpersFactory(),r=0,n=e,s.label=1;case 1:return r<n.length?(i=n[r],o=t(i.id),[4,i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)]):[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},e.prototype.unload=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.forEach((function(t){var r=e._removeModuleBindings(t.id);e._deactivateSingletons(r),e._removeModuleHandlers(t.id)}))},e.prototype.unloadAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ie(this,void 0,void 0,(function(){var t,r,n,i;return Le(this,(function(o){switch(o.label){case 0:t=0,r=e,o.label=1;case 1:return t<r.length?(n=r[t],i=this._removeModuleBindings(n.id),[4,this._deactivateSingletonsAsync(i)]):[3,4];case 2:o.sent(),this._removeModuleHandlers(n.id),o.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.bind=function(e){var t=this.options.defaultScope||y.Transient,r=new S(e,t);return this._bindingDictionary.add(e,r),new je(r)},e.prototype.rebind=function(e){return this.unbind(e),this.bind(e)},e.prototype.rebindAsync=function(e){return Ie(this,void 0,void 0,(function(){return Le(this,(function(t){switch(t.label){case 0:return[4,this.unbindAsync(e)];case 1:return t.sent(),[2,this.bind(e)]}}))}))},e.prototype.unbind=function(e){if(this._bindingDictionary.hasKey(e)){var t=this._bindingDictionary.get(e);this._deactivateSingletons(t)}this._removeServiceFromDictionary(e)},e.prototype.unbindAsync=function(e){return Ie(this,void 0,void 0,(function(){var t;return Le(this,(function(r){switch(r.label){case 0:return this._bindingDictionary.hasKey(e)?(t=this._bindingDictionary.get(e),[4,this._deactivateSingletonsAsync(t)]):[3,2];case 1:r.sent(),r.label=2;case 2:return this._removeServiceFromDictionary(e),[2]}}))}))},e.prototype.unbindAll=function(){var e=this;this._bindingDictionary.traverse((function(t,r){e._deactivateSingletons(r)})),this._bindingDictionary=new Me},e.prototype.unbindAllAsync=function(){return Ie(this,void 0,void 0,(function(){var e,t=this;return Le(this,(function(r){switch(r.label){case 0:return e=[],this._bindingDictionary.traverse((function(r,n){e.push(t._deactivateSingletonsAsync(n))})),[4,Promise.all(e)];case 1:return r.sent(),this._bindingDictionary=new Me,[2]}}))}))},e.prototype.onActivation=function(e,t){this._activations.add(e,t)},e.prototype.onDeactivation=function(e,t){this._deactivations.add(e,t)},e.prototype.isBound=function(e){var t=this._bindingDictionary.hasKey(e);return!t&&this.parent&&(t=this.parent.isBound(e)),t},e.prototype.isCurrentBound=function(e){return this._bindingDictionary.hasKey(e)},e.prototype.isBoundNamed=function(e,t){return this.isBoundTagged(e,i,t)},e.prototype.isBoundTagged=function(e,t,r){var n=!1;if(this._bindingDictionary.hasKey(e)){var i=this._bindingDictionary.get(e),o=function(e,t,r,n){var i=new U(v.Variable,"",t,new L(r,n)),o=new I(e);return new J(t,o,null,[],i)}(this,e,t,r);n=i.some((function(e){return e.constraint(o)}))}return!n&&this.parent&&(n=this.parent.isBoundTagged(e,t,r)),n},e.prototype.snapshot=function(){this._snapshots.push(Ae.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},e.prototype.restore=function(){var e=this._snapshots.pop();if(void 0===e)throw new Error("No snapshot available to restore.");this._bindingDictionary=e.bindings,this._activations=e.activations,this._deactivations=e.deactivations,this._middleware=e.middleware,this._moduleActivationStore=e.moduleActivationStore},e.prototype.createChild=function(t){var r=new e(t||this.options);return r.parent=this,r},e.prototype.applyMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce((function(e,t){return t(e)}),r)},e.prototype.applyCustomMetadataReader=function(e){this._metadataReader=e},e.prototype.get=function(e){var t=this._getNotAllArgs(e,!1);return this._getButThrowIfAsync(t)},e.prototype.getAsync=function(e){return Ie(this,void 0,void 0,(function(){var t;return Le(this,(function(r){return t=this._getNotAllArgs(e,!1),[2,this._get(t)]}))}))},e.prototype.getTagged=function(e,t,r){var n=this._getNotAllArgs(e,!1,t,r);return this._getButThrowIfAsync(n)},e.prototype.getTaggedAsync=function(e,t,r){return Ie(this,void 0,void 0,(function(){var n;return Le(this,(function(i){return n=this._getNotAllArgs(e,!1,t,r),[2,this._get(n)]}))}))},e.prototype.getNamed=function(e,t){return this.getTagged(e,i,t)},e.prototype.getNamedAsync=function(e,t){return this.getTaggedAsync(e,i,t)},e.prototype.getAll=function(e){var t=this._getAllArgs(e);return this._getButThrowIfAsync(t)},e.prototype.getAllAsync=function(e){var t=this._getAllArgs(e);return this._getAll(t)},e.prototype.getAllTagged=function(e,t,r){var n=this._getNotAllArgs(e,!0,t,r);return this._getButThrowIfAsync(n)},e.prototype.getAllTaggedAsync=function(e,t,r){var n=this._getNotAllArgs(e,!0,t,r);return this._getAll(n)},e.prototype.getAllNamed=function(e,t){return this.getAllTagged(e,i,t)},e.prototype.getAllNamedAsync=function(e,t){return this.getAllTaggedAsync(e,i,t)},e.prototype.resolve=function(e){var t=this.isBound(e);t||this.bind(e).toSelf();var r=this.get(e);return t||this.unbind(e),r},e.prototype._preDestroy=function(e,t){if(Reflect.hasMetadata(m,e))return t[Reflect.getMetadata(m,e).value]()},e.prototype._removeModuleHandlers=function(e){var t=this._moduleActivationStore.remove(e);this._activations.removeIntersection(t.onActivations),this._deactivations.removeIntersection(t.onDeactivations)},e.prototype._removeModuleBindings=function(e){return this._bindingDictionary.removeByCondition((function(t){return t.moduleId===e}))},e.prototype._deactivate=function(e,t){var r=this,n=Object.getPrototypeOf(t).constructor;try{if(this._deactivations.hasKey(e.serviceIdentifier)){var i=this._deactivateContainer(t,this._deactivations.get(e.serviceIdentifier).values());if(ee(i))return this._handleDeactivationError(i.then((function(){return r._propagateContainerDeactivationThenBindingAndPreDestroyAsync(e,t,n)})),n)}var o=this._propagateContainerDeactivationThenBindingAndPreDestroy(e,t,n);if(ee(o))return this._handleDeactivationError(o,n)}catch(e){throw new Error(O(n.name,e.message))}},e.prototype._handleDeactivationError=function(e,t){return Ie(this,void 0,void 0,(function(){var r;return Le(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e];case 1:return n.sent(),[3,3];case 2:throw r=n.sent(),new Error(O(t.name,r.message));case 3:return[2]}}))}))},e.prototype._deactivateContainer=function(e,t){for(var r=this,n=t.next();n.value;){var i=n.value(e);if(ee(i))return i.then((function(){return r._deactivateContainerAsync(e,t)}));n=t.next()}},e.prototype._deactivateContainerAsync=function(e,t){return Ie(this,void 0,void 0,(function(){var r;return Le(this,(function(n){switch(n.label){case 0:r=t.next(),n.label=1;case 1:return r.value?[4,r.value(e)]:[3,3];case 2:return n.sent(),r=t.next(),[3,1];case 3:return[2]}}))}))},e.prototype._getContainerModuleHelpersFactory=function(){var e=this,t=function(e,t){e._binding.moduleId=t},r=function(r){return function(n){var i=e.rebind(n);return t(i,r),i}},n=function(t){return function(r,n){e._moduleActivationStore.addActivation(t,r,n),e.onActivation(r,n)}},i=function(t){return function(r,n){e._moduleActivationStore.addDeactivation(t,r,n),e.onDeactivation(r,n)}};return function(o){return{bindFunction:(s=o,function(r){var n=e.bind(r);return t(n,s),n}),isboundFunction:function(t){return e.isBound(t)},onActivationFunction:n(o),onDeactivationFunction:i(o),rebindFunction:r(o),unbindFunction:function(t){return e.unbind(t)},unbindAsyncFunction:function(t){return e.unbindAsync(t)}};var s}},e.prototype._getAll=function(e){return Promise.all(this._get(e))},e.prototype._get=function(e){var t=Fe(Fe({},e),{contextInterceptor:function(e){return e},targetType:v.Variable});if(this._middleware){var r=this._middleware(t);if(null==r)throw new Error("Invalid return type in middleware. Middleware must return!");return r}return this._planAndResolve()(t)},e.prototype._getButThrowIfAsync=function(e){var t=this._get(e);if(te(t))throw new Error("You are attempting to construct '"+e.serviceIdentifier+"' in a synchronous way\n but it has asynchronous dependencies.");return t},e.prototype._getAllArgs=function(e){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:e}},e.prototype._getNotAllArgs=function(e,t,r,n){return{avoidConstraints:!1,isMultiInject:t,serviceIdentifier:e,key:r,value:n}},e.prototype._planAndResolve=function(){var e=this;return function(t){var r=function(e,t,r,n,i,o,s,a){void 0===a&&(a=!1);var l=new I(t),p=function(e,t,r,n,i,o){var s=new L(e?u:c,r),a=new U(t,"",r,s);if(void 0!==i){var l=new L(i,o);a.metadata.push(l)}return a}(r,n,i,0,o,s);try{return X(e,a,i,l,null,p),l}catch(e){throw T(e)&&R(l.plan.rootRequest),e}}(e._metadataReader,e,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints);return function(e){return pe(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}(r=t.contextInterceptor(r))}},e.prototype._deactivateIfSingleton=function(e){var t=this;if(e.activated)return ee(e.cache)?e.cache.then((function(r){return t._deactivate(e,r)})):this._deactivate(e,e.cache)},e.prototype._deactivateSingletons=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(ee(this._deactivateIfSingleton(n)))throw new Error("Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)")}},e.prototype._deactivateSingletonsAsync=function(e){return Ie(this,void 0,void 0,(function(){var t=this;return Le(this,(function(r){switch(r.label){case 0:return[4,Promise.all(e.map((function(e){return t._deactivateIfSingleton(e)})))];case 1:return r.sent(),[2]}}))}))},e.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(e,t,r){return this.parent?this._deactivate.bind(this.parent)(e,t):this._bindingDeactivationAndPreDestroy(e,t,r)},e.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(e,t,r){return Ie(this,void 0,void 0,(function(){return Le(this,(function(n){switch(n.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(e,t)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(e,t,r)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},e.prototype._removeServiceFromDictionary=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error("Could not unbind serviceIdentifier: "+j(e))}},e.prototype._bindingDeactivationAndPreDestroy=function(e,t,r){var n=this;if("function"==typeof e.onDeactivation){var i=e.onDeactivation(t);if(ee(i))return i.then((function(){return n._preDestroy(r,t)}))}return this._preDestroy(r,t)},e.prototype._bindingDeactivationAndPreDestroyAsync=function(e,t,r){return Ie(this,void 0,void 0,(function(){return Le(this,(function(n){switch(n.label){case 0:return"function"!=typeof e.onDeactivation?[3,2]:[4,e.onDeactivation(t)];case 1:n.sent(),n.label=2;case 2:return[4,this._preDestroy(r,t)];case 3:return n.sent(),[2]}}))}))},e}(),$e=function(e){this.id=_(),this.registry=e},Ue=function(e){this.id=_(),this.registry=e};function qe(e,t,r,n){!function(e){if(void 0!==e)throw new Error(E)}(t),Ve(l,e,r.toString(),n)}function Ve(e,t,r,n){var i=function(e){var t=[];if(Array.isArray(e)){var r=function(e){for(var t=new Set,r=0,n=e;r<n.length;r++){var i=n[r];if(t.has(i))return i;t.add(i)}}((t=e).map((function(e){return e.key})));if(void 0!==r)throw new Error(k+" "+r.toString())}else t=[e];return t}(n),o={};Reflect.hasOwnMetadata(e,t)&&(o=Reflect.getMetadata(e,t));var s=o[r];if(void 0===s)s=[];else for(var a=function(e){if(i.some((function(t){return t.key===e.key})))throw new Error(k+" "+e.key.toString())},c=0,u=s;c<u.length;c++)a(u[c]);s.push.apply(s,i),o[r]=s,Reflect.defineMetadata(e,o,t)}function He(e){return function(t,r,n){"number"==typeof n?qe(t,r,n,e):function(e,t,r){if(void 0!==e.prototype)throw new Error(E);Ve(p,e.constructor,t,r)}(t,r,e)}}function We(e,t){Reflect.decorate(e,t)}function Ge(e,t){return function(r,n){t(r,n,e)}}function ze(e,t,r){"number"==typeof r?We([Ge(r,e)],t):"string"==typeof r?Reflect.decorate([e],t,r):We([e],t)}function Ke(){return function(e){if(Reflect.hasOwnMetadata(d,e))throw new Error("Cannot apply @injectable decorator multiple times.");var t=Reflect.getMetadata(h,e)||[];return Reflect.defineMetadata(d,t,e),e}}function Je(e,t){return He(new L(e,t))}function Qe(e){return He(new L(i,e))}function Ye(e){return function(t){return function(r,n,i){if(void 0===t){var o="function"==typeof r?r.name:r.constructor.name;throw new Error("@inject called with undefined this could mean that the class "+o+" has a circular dependency problem. You can use a LazyServiceIdentifer to  overcome this limitation.")}return He(new L(e,t))(r,n,i)}}}var Xe=Ye(c);function Ze(){return He(new L(a,!0))}function et(){return function(e,t,r){qe(e,t,r,new L(s,!0))}}var tt=Ye(u);function rt(e){return function(t,r,n){qe(t,r,n,new L(o,e))}}function nt(e,t){return function(){return function(r,n){var i=new L(e,n);if(Reflect.hasOwnMetadata(e,r.constructor))throw new Error(t);Reflect.defineMetadata(e,i,r.constructor)}}}var it,ot=nt(f,"Cannot apply @postConstruct decorator multiple times in the same class"),st=nt(m,"Cannot apply @preDestroy decorator multiple times in the same class");it||(it={});var at=n},81546:(e,t,r)=>{"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}},18713:e=>{"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<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function o(e,t,r){n.stat(e,(function(n,o){r(n,!n&&i(o,e,t))}))}},69272:(e,t,r)=>{"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<n;++r){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(192|n>>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<r.length;++l)u+=r[l]*c,u=u<<11|u>>>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<l.length;m++){var g=e(l,m,l[m],p+1)||JSON.stringify(null);f.push(d+i+g)}return"["+f.join(",")+d+"]"}if(-1!==u.indexOf(l)){if(s)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(l);var y=r(l).sort(c&&c(l));for(f=[],m=0;m<y.length;m++){var b=e(l,o=y[m],l[o],p+1);if(b){var v=JSON.stringify(o)+h+b;f.push(d+i+v)}}return u.splice(u.indexOf(l),1),"{"+f.join(",")+d+"}"}}({"":e},"",e,0)};var t=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},r=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r}},77694:(e,t,r)=>{"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:()=>De,init:()=>Ee,options:()=>pe,registerCustomProtocol:()=>Ce,registerPlugin:()=>xe,reset:()=>Pe,test:()=>Te,tokenize:()=>Oe}),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<e.jr.length;n++){var i=e.jr[n][0],o=e.jr[n][1];if(i.test(t))return o}return e.jd},u=function(e,t,r){for(var n=0;n<t.length;n++)s(e,t[n],r)},l=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0],i=t[r][1];s(e,n,i)}},p=function(e,t,r,n){for(var i,o=0,a=t.length;o<a&&(i=e.j[t[o]]);)e=i,o++;if(o>=a)return[];for(;o<a-1;)i=n(),s(e,t[o],i),e=i,o++;s(e,t[a-1],r)},d="DOMAIN",h="LOCALHOST",f="TLD",m="NUM",g="PROTOCOL",y="MAILTO",b="WS",v="NL",w="OPENBRACE",_="OPENBRACKET",S="OPENANGLEBRACKET",k="OPENPAREN",P="CLOSEBRACE",x="CLOSEBRACKET",C="CLOSEANGLEBRACKET",E="CLOSEPAREN",O="AMPERSAND",D="APOSTROPHE",T="ASTERISK",j="AT",A="BACKSLASH",M="BACKTICK",R="CARET",F="COLON",I="COMMA",L="DOLLAR",N="DOT",B="EQUALS",$="EXCLAMATION",U="HYPHEN",q="PERCENT",V="PIPE",H="PLUS",W="POUND",G="QUERY",z="QUOTE",K="SEMI",J="SLASH",Q="TILDE",Y="UNDERSCORE",X="SYM",Z=Object.freeze({__proto__:null,DOMAIN:d,LOCALHOST:h,TLD:f,NUM:m,PROTOCOL:g,MAILTO:y,WS:b,NL:v,OPENBRACE:w,OPENBRACKET:_,OPENANGLEBRACKET:S,OPENPAREN:k,CLOSEBRACE:P,CLOSEBRACKET:x,CLOSEANGLEBRACKET:C,CLOSEPAREN:E,AMPERSAND:O,APOSTROPHE:D,ASTERISK:T,AT:j,BACKSLASH:A,BACKTICK:M,CARET:R,COLON:F,COMMA:I,DOLLAR:L,DOT:N,EQUALS:B,EXCLAMATION:$,HYPHEN:U,PERCENT:q,PIPE:V,PLUS:H,POUND:W,QUERY:G,QUOTE:z,SEMI:K,SLASH:J,TILDE:Q,UNDERSCORE:Y,SYM:X}),ee="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),te=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,re=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,ne=/\uFE0F/,ie=/\d/,oe=/\s/;function se(){var e=arguments.length>0&&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(D)],["{",o(w)],["[",o(_)],["<",o(S)],["(",o(k)],["}",o(P)],["]",o(x)],[">",o(C)],[")",o(E)],["&",o(O)],["*",o(T)],["@",o(j)],["`",o(M)],["^",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(Y)],["\\",o(A)]]),s(t,"\n",o(v)),a(t,oe,u),s(u,"\n",i()),a(u,oe,u);for(var ce=0;ce<ee.length;ce++)p(t,ee[ce],ae(f),se);var ue=se(),le=se(),pe=se(),de=se();p(t,"file",ue,se),p(t,"ftp",le,se),p(t,"http",pe,se),p(t,"mailto",de,se);var he=se(),fe=o(g),me=o(y);s(le,"s",he),s(le,":",fe),s(pe,"s",he),s(pe,":",fe),s(ue,":",fe),s(he,":",fe),s(de,":",me);for(var ge=se(),ye=0;ye<e.length;ye++)p(t,e[ye],ge,se);return s(ge,":",fe),p(t,"localhost",ae(h),se),a(t,ie,r),a(t,te,n),a(t,re,n),a(t,ne,n),a(r,ie,r),a(r,te,n),a(r,re,n),a(r,ne,n),s(r,"-",c),s(n,"-",c),s(c,"-",c),a(n,ie,n),a(n,te,n),a(n,re,n),a(n,ne,n),a(c,ie,n),a(c,te,n),a(c,re,n),a(c,ne,n),t.jd=o(X),t}function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}var ce={defaultProtocol:"http",events:null,format:le,formatHref:le,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function ue(e){e=e||{},this.defaultProtocol="defaultProtocol"in e?e.defaultProtocol:ce.defaultProtocol,this.events="events"in e?e.events:ce.events,this.format="format"in e?e.format:ce.format,this.formatHref="formatHref"in e?e.formatHref:ce.formatHref,this.nl2br="nl2br"in e?e.nl2br:ce.nl2br,this.tagName="tagName"in e?e.tagName:ce.tagName,this.target="target"in e?e.target:ce.target,this.rel="rel"in e?e.rel:ce.rel,this.validate="validate"in e?e.validate:ce.validate,this.truncate="truncate"in e?e.truncate:ce.truncate,this.className="className"in e?e.className:ce.className,this.attributes=e.attributes||ce.attributes,this.ignoreTags=[];for(var t=("ignoreTags"in e?e.ignoreTags:ce.ignoreTags),r=0;r<t.length;r++)this.ignoreTags.push(t[r].toUpperCase())}function le(e){return e}ue.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),rel:this.get("rel",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e),truncate:this.get("truncate",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,r){var n,i=this[e];if(!i)return i;switch(ae(i)){case"function":return i(t,r.t);case"object":return"function"==typeof(n=r.t in i?i[r.t]:ce[e])?n(t,r.t):n}return i},getObject:function(e,t,r){var n=this[e];return"function"==typeof n?n(t,r.t):n}};var pe=Object.freeze({__proto__:null,defaults:ce,Options:ue});function de(){}function he(e,t){function r(t,r){this.t=e,this.v=t,this.tk=r}return function(e,t){var r=arguments.length>2&&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<t.length;o++)i.push(t[o].v);return i=i.join(""),r||n||(i="".concat(e,"://").concat(i)),i},hasProtocol:function(){return this.tk[0].t===g}}),ve=Object.freeze({__proto__:null,MultiToken:de,Base:de,createTokenClass:he,MailtoEmail:fe,Email:me,Text:ge,Nl:ye,Url:be});function we(){var e=i(),t=i(),r=i(),n=i(),a=i(),c=i(),l=i(),p=o(be),b=i(),Z=o(be),ee=o(be),te=i(),re=i(),ne=i(),ie=i(),oe=i(),se=o(be),ae=o(be),ce=o(be),ue=o(be),le=i(),pe=i(),de=i(),he=i(),ge=i(),ve=i(),we=o(me),_e=i(),Se=o(me),ke=o(fe),Pe=i(),xe=i(),Ce=i(),Ee=i(),Oe=o(ye);s(e,v,Oe),s(e,g,t),s(e,y,r),s(t,J,n),s(n,J,a),s(e,f,c),s(e,d,c),s(e,h,p),s(e,m,c),s(a,f,ee),s(a,d,ee),s(a,m,ee),s(a,h,ee),s(c,N,l),s(ge,N,ve),s(l,f,p),s(l,d,c),s(l,m,c),s(l,h,c),s(ve,f,we),s(ve,d,ge),s(ve,m,ge),s(ve,h,ge),s(p,N,l),s(we,N,ve),s(p,F,b),s(p,J,ee),s(b,m,Z),s(Z,J,ee),s(we,F,_e),s(_e,m,Se);var De=[O,T,j,A,M,R,L,d,B,U,h,m,q,V,H,W,g,J,X,Q,f,Y],Te=[D,C,P,x,E,F,I,N,$,S,w,_,k,G,z,K];s(ee,w,re),s(ee,_,ne),s(ee,S,ie),s(ee,k,oe),s(te,w,re),s(te,_,ne),s(te,S,ie),s(te,k,oe),s(re,P,ee),s(ne,x,ee),s(ie,C,ee),s(oe,E,ee),s(se,P,ee),s(ae,x,ee),s(ce,C,ee),s(ue,E,ee),s(le,P,ee),s(pe,x,ee),s(de,C,ee),s(he,E,ee),u(re,De,se),u(ne,De,ae),u(ie,De,ce),u(oe,De,ue),u(re,Te,le),u(ne,Te,pe),u(ie,Te,de),u(oe,Te,he),u(se,De,se),u(ae,De,ae),u(ce,De,ce),u(ue,De,ue),u(se,Te,se),u(ae,Te,ae),u(ce,Te,ce),u(ue,Te,ue),u(le,De,se),u(pe,De,ae),u(de,De,ce),u(he,De,ue),u(le,Te,le),u(pe,Te,pe),u(de,Te,de),u(he,Te,he),u(ee,De,ee),u(te,De,ee),u(ee,Te,te),u(te,Te,te),s(r,f,ke),s(r,d,ke),s(r,m,ke),s(r,h,ke),u(ke,De,ke),u(ke,Te,Pe),u(Pe,De,ke),u(Pe,Te,Pe);var je=[O,D,T,A,M,R,P,L,d,B,U,m,w,q,V,H,W,G,J,X,Q,f,Y];return u(c,je,xe),s(c,j,Ce),u(p,je,xe),s(p,j,Ce),u(l,je,xe),u(xe,je,xe),s(xe,j,Ce),s(xe,N,Ee),u(Ee,je,xe),s(Ce,f,ge),s(Ce,d,ge),s(Ce,m,ge),s(Ce,h,we),e}function _e(e,t,r){var n=r[0].s,i=r[r.length-1].e;return new e(t.substr(n,i-n),r)}var Se="undefined"!=typeof console&&console&&console.warn||function(){},ke={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function Pe(){ke.scanner=null,ke.parser=null,ke.pluginQueue=[],ke.customProtocols=[],ke.initialized=!1}function xe(e,t){for(var r=0;r<ke.pluginQueue.length;r++)if(e===ke.pluginQueue[r][0])return Se('linkifyjs: plugin "'.concat(e,'" already registered - will be overwritten')),void(ke.pluginQueue[r]=[e,t]);ke.pluginQueue.push([e,t]),ke.initialized&&Se('linkifyjs: already initialized - will not register plugin "'.concat(e,'" until you manually call linkify.init(). To avoid this warning, please register all plugins before invoking linkify the first time.'))}function Ce(e){if(ke.initialized&&Se('linkifyjs: already initialized - will not register custom protocol "'.concat(e,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(e))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");ke.customProtocols.push(e)}function Ee(){ke.scanner={start:se(ke.customProtocols),tokens:Z},ke.parser={start:we(),tokens:ve};for(var e={createTokenClass:he},t=0;t<ke.pluginQueue.length;t++)ke.pluginQueue[t][1]({scanner:ke.scanner,parser:ke.parser,utils:e});ke.initialized=!0}function Oe(e){return ke.initialized||Ee(),function(e,t,r){for(var n=r.length,i=0,o=[],s=[];i<n;){for(var a=e,u=null,l=null,p=0,d=null,h=-1;i<n&&!(u=c(a,r[i].t));)s.push(r[i++]);for(;i<n&&(l=u||c(a,r[i].t));)u=null,(a=l).accepts()?(h=0,d=a):h>=0&&h++,i++,p++;if(h<0)for(var f=i-p;f<i;f++)s.push(r[f]);else{s.length>0&&(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;n<r;){var i=e.charCodeAt(n),o=void 0,s=i<55296||i>56319||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<n;){for(var a=e,u=null,l=0,p=null,d=-1,h=-1;s<n&&(u=c(a,r[s]));)(a=u).accepts()?(d=0,h=0,p=a):d>=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 De(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Oe(e),n=[],i=0;i<r.length;i++){var o=r[i];!o.isLink||t&&o.t!==t||n.push(o.toObject())}return n}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Oe(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(1147),s=r(49451),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<t.length;s++){let u=o(String(t[s]),{...r,onResult:c},!0),l=u.state.negated||u.state.negatedExtglob;l&&a++;for(let t of e){let e=u(t,!0);(l?!e.isMatch:e.isMatch)&&(l?n.add(e.output):(n.delete(e.output),i.add(e.output)))}}let u=(a===t.length?[...s]:[...i]).filter((e=>!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=c(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),i.push(e.output)}});for(let e of i)o.includes(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<e.nodes.length;t++){let r=e.nodes[t];"comma"!==r.type||"brace"!==e.type?"close"!==r.type?r.value&&"open"!==r.type?d.push(s(d.pop(),r.value)):r.nodes&&a(r,e):l.push(s(l.pop(),d,p)):(1===t&&d.push(""),d.push(""))}return d};return o.flatten(a(e))}},78707:(e,t,r)=>{"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,O=0;const D=()=>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"});E<C;)if(k=S[S.length-1],w=D(),w!==b&&w!==y)if(w!==o)if(w!==f)if(w!==h)if(w!==u)if(w!==l)if(w!==m&&w!==g&&w!==s)if(w!==p)if(w!==d)if(w===a&&O>0){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&&O>0&&0===k.commas){let e=k.nodes;if(0===O||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}),O--,k=S[S.length-1]}else{O++;let e=P.value&&"$"===P.value.slice(-1)||!0===k.dollar;k=T({type:"brace",open:!0,close:!1,dollar:e,depth:O,commas:0,ranges:0,nodes:[]}),S.push(k),T({type:"open",value:w})}else{let e,r=w;for(!0!==t.keepQuotes&&(w="");E<C&&(e=D());)if(e!==o){if(e===r){!0===t.keepQuotes&&(w+=e);break}w+=e}else w+=e+D();T({type:"text",value:w})}else{if("paren"!==k.type){T({type:"text",value:w});continue}k=S.pop(),T({type:"text",value:w}),k=S[S.length-1]}else k=T({type:"paren",nodes:[]}),S.push(k),T({type:"text",value:w});else{let e;for(x++;E<C&&(e=D());)if(w+=e,e!==h)if(e!==o){if(e===f&&(x--,0===x))break}else w+=D();else x++;T({type:"text",value:w})}else T({type:"text",value:"\\"+w});else T({type:"text",value:(t.keepEscaping?w:"")+D()});do{if(k=S.pop(),"root"!==k.type){k.nodes.forEach((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<e.length;n++){let i=e[n];Array.isArray(i)?r(i,t):void 0!==i&&t.push(i)}return t};return r(e),t}},18459:(e,t,r)=>{"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<t;)e="0"+e;return r?"-"+e:e},p=(e,t,r,n)=>{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)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?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))}},1147:(e,t,r)=>{"use strict";e.exports=r(93148)},92819:(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}},10688:(e,t,r)=>{"use strict";const n=r(92819),i=r(49451),{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},d="number"==typeof r.maxLength?Math.min(o,r.maxLength):o;let h=e.length;if(h>d)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${d}`);const f={type:"bos",value:"",output:r.prepend||""},m=[f],g=r.capture?"":"?:",y=i.isWindows(t),b=n.globChars(y),v=n.extglobChars(b),{DOT_LITERAL:w,PLUS_LITERAL:_,SLASH_LITERAL:S,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:x,NO_DOT_SLASH:C,NO_DOTS_SLASH:E,QMARK:O,QMARK_NO_DOT:D,STAR:T,START_ANCHOR:j}=b,A=e=>`(${g}(?:(?!${j}${e.dot?P:w}).)*?)`,M=r.dot?"":x,R=r.dot?O:D;let F=!0===r.bash?A(r):T;r.capture&&(F=`(${F})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const I={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:m};e=i.removePrefix(e,I),h=e.length;const L=[],N=[],B=[];let $,U=f;const q=()=>I.index===h-1,V=I.peek=(t=1)=>e[I.index+t],H=I.advance=()=>e[++I.index]||"",W=()=>e.slice(I.index+1),G=(e="",t=0)=>{I.consumed+=e,I.index+=t},z=e=>{I.output+=null!=e.output?e.output:e.value,G(e.value)},K=()=>{let e=1;for(;"!"===V()&&("("!==V(2)||"?"===V(3));)H(),I.start++,e++;return e%2!=0&&(I.negated=!0,I.start++,!0)},J=e=>{I[e]++,B.push(e)},Q=e=>{I[e]--,B.pop()},Y=e=>{if("globstar"===U.type){const t=I.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||L.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(I.output=I.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=F,I.output+=U.output)}if(L.length&&"paren"!==e.type&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&z(e),U&&"text"===U.type&&"text"===e.type)return U.value+=e.value,void(U.output=(U.output||"")+e.value);e.prev=U,m.push(e),U=e},X=(e,t)=>{const n={...v[t],conditions:1,inner:""};n.prev=U,n.parens=I.parens,n.output=I.output;const i=(r.capture?"(":"")+n.open;J("parens"),Y({type:e,value:t,output:I.output?"":k}),Y({type:"paren",extglob:!0,value:H(),output:i}),L.push(n)},Z=e=>{let t,n=e.close+(r.capture?")":"");if("negate"===e.type){let i=F;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=A(r)),(i!==F||q()||/^\)+$/.test(W()))&&(n=e.close=`)$))${i}`),e.inner.includes("*")&&(t=W())&&/^\.[^\\/.]+$/.test(t)&&(n=e.close=`)${t})${i})`),"bos"===e.prev.type&&(I.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:$,output:n}),Q("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?R+(o?O.repeat(o.length):""):O.repeat(r.length):"."===i?w.repeat(r.length):"*"===i?t?t+i+(o?F:""):F: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?(I.output=e,I):(I.output=i.wrapOutput(o,I,t),I)}for(;!q();){if($=H(),"\0"===$)continue;if("\\"===$){const e=V();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){$+="\\",Y({type:"text",value:$});continue}const t=/^\\+/.exec(W());let n=0;if(t&&t[0].length>2&&(n=t[0].length,I.index+=n,n%2!=0&&($+="\\")),!0===r.unescape?$=H():$+=H(),0===I.brackets){Y({type:"text",value:$});continue}}if(I.brackets>0&&("]"!==$||"["===U.value||"[^"===U.value)){if(!1!==r.posix&&":"===$){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),r=U.value.slice(e+2),n=s[r];if(n){U.value=t+n,I.backtrack=!0,H(),f.output||1!==m.indexOf(U)||(f.output=k);continue}}}("["===$&&":"!==V()||"-"===$&&"]"===V())&&($=`\\${$}`),"]"!==$||"["!==U.value&&"[^"!==U.value||($=`\\${$}`),!0===r.posix&&"!"===$&&"["===U.value&&($="^"),U.value+=$,z({value:$});continue}if(1===I.quotes&&'"'!==$){$=i.escapeRegex($),U.value+=$,z({value:$});continue}if('"'===$){I.quotes=1===I.quotes?0:1,!0===r.keepQuotes&&Y({type:"text",value:$});continue}if("("===$){J("parens"),Y({type:"paren",value:$});continue}if(")"===$){if(0===I.parens&&!0===r.strictBrackets)throw new SyntaxError(p("opening","("));const e=L[L.length-1];if(e&&I.parens===e.parens+1){Z(L.pop());continue}Y({type:"paren",value:$,output:I.parens?")":"\\)"}),Q("parens");continue}if("["===$){if(!0!==r.nobracket&&W().includes("]"))J("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));$=`\\${$}`}Y({type:"bracket",value:$});continue}if("]"===$){if(!0===r.nobracket||U&&"bracket"===U.type&&1===U.value.length){Y({type:"text",value:$,output:`\\${$}`});continue}if(0===I.brackets){if(!0===r.strictBrackets)throw new SyntaxError(p("opening","["));Y({type:"text",value:$,output:`\\${$}`});continue}Q("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||($=`/${$}`),U.value+=$,z({value:$}),!1===r.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(U.value);if(I.output=I.output.slice(0,-U.value.length),!0===r.literalBrackets){I.output+=t,U.value=t;continue}U.value=`(${g}${t}|${U.value})`,I.output+=U.value;continue}if("{"===$&&!0!==r.nobrace){J("braces");const e={type:"brace",value:$,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};N.push(e),Y(e);continue}if("}"===$){const e=N[N.length-1];if(!0===r.nobrace||!e){Y({type:"text",value:$,output:$});continue}let t=")";if(!0===e.dots){const e=m.slice(),n=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=l(n,r),I.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=I.output.slice(0,e.outputIndex),n=I.tokens.slice(e.tokensIndex);e.value=e.output="\\{",$=t="\\}",I.output=r;for(const e of n)I.output+=e.output||e.value}Y({type:"brace",value:$,output:t}),Q("braces"),N.pop();continue}if("|"===$){L.length>0&&L[L.length-1].conditions++,Y({type:"text",value:$});continue}if(","===$){let e=$;const t=N[N.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Y({type:"comma",value:$,output:e});continue}if("/"===$){if("dot"===U.type&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",m.pop(),U=f;continue}Y({type:"slash",value:$,output:S});continue}if("."===$){if(I.braces>0&&"dot"===U.type){"."===U.value&&(U.output=w);const e=N[N.length-1];U.type="dots",U.output+=$,U.value+=$,e.dots=!0;continue}if(I.braces+I.parens===0&&"bos"!==U.type&&"slash"!==U.type){Y({type:"text",value:$,output:w});continue}Y({type:"dot",value:$,output:w});continue}if("?"===$){if((!U||"("!==U.value)&&!0!==r.noextglob&&"("===V()&&"?"!==V(2)){X("qmark",$);continue}if(U&&"paren"===U.type){const e=V();let t=$;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(W()))&&(t=`\\${$}`),Y({type:"text",value:$,output:t});continue}if(!0!==r.dot&&("slash"===U.type||"bos"===U.type)){Y({type:"qmark",value:$,output:D});continue}Y({type:"qmark",value:$,output:O});continue}if("!"===$){if(!0!==r.noextglob&&"("===V()&&("?"!==V(2)||!/[!=<:]/.test(V(3)))){X("negate",$);continue}if(!0!==r.nonegate&&0===I.index){K();continue}}if("+"===$){if(!0!==r.noextglob&&"("===V()&&"?"!==V(2)){X("plus",$);continue}if(U&&"("===U.value||!1===r.regex){Y({type:"plus",value:$,output:_});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||I.parens>0){Y({type:"plus",value:$});continue}Y({type:"plus",value:_});continue}if("@"===$){if(!0!==r.noextglob&&"("===V()&&"?"!==V(2)){Y({type:"at",extglob:!0,value:$,output:""});continue}Y({type:"text",value:$});continue}if("*"!==$){"$"!==$&&"^"!==$||($=`\\${$}`);const e=a.exec(W());e&&($+=e[0],I.index+=e[0].length),Y({type:"text",value:$});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=$,U.output=F,I.backtrack=!0,I.globstar=!0,G($);continue}let t=W();if(!0!==r.noextglob&&/^\([^?]/.test(t)){X("star",$);continue}if("star"===U.type){if(!0===r.noglobstar){G($);continue}const n=U.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:$,output:""});continue}const a=I.braces>0&&("comma"===n.type||"brace"===n.type),c=L.length&&("pipe"===n.type||"paren"===n.type);if(!o&&"paren"!==n.type&&!a&&!c){Y({type:"star",value:$,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[I.index+4];if(r&&"/"!==r)break;t=t.slice(3),G("/**",3)}if("bos"===n.type&&q()){U.type="globstar",U.value+=$,U.output=A(r),I.output=U.output,I.globstar=!0,G($);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!s&&q()){I.output=I.output.slice(0,-(n.output+U.output).length),n.output=`(?:${n.output}`,U.type="globstar",U.output=A(r)+(r.strictSlashes?")":"|$)"),U.value+=$,I.globstar=!0,I.output+=n.output+U.output,G($);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";I.output=I.output.slice(0,-(n.output+U.output).length),n.output=`(?:${n.output}`,U.type="globstar",U.output=`${A(r)}${S}|${S}${e})`,U.value+=$,I.output+=n.output+U.output,I.globstar=!0,G($+H()),Y({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){U.type="globstar",U.value+=$,U.output=`(?:^|${S}|${A(r)}${S})`,I.output=U.output,I.globstar=!0,G($+H()),Y({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-U.output.length),U.type="globstar",U.output=A(r),U.value+=$,I.output+=U.output,I.globstar=!0,G($);continue}const n={type:"star",value:$,output:F};!0!==r.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==r.regex?(I.index!==I.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(I.output+=C,U.output+=C):!0===r.dot?(I.output+=E,U.output+=E):(I.output+=M,U.output+=M),"*"!==V()&&(I.output+=k,U.output+=k)),Y(n)):(n.output=$,Y(n)):(n.output=".*?","bos"!==U.type&&"slash"!==U.type||(n.output=M+n.output),Y(n))}for(;I.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));I.output=i.escapeLast(I.output,"["),Q("brackets")}for(;I.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing",")"));I.output=i.escapeLast(I.output,"("),Q("parens")}for(;I.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","}"));I.output=i.escapeLast(I.output,"{"),Q("braces")}if(!0===r.strictSlashes||"star"!==U.type&&"bracket"!==U.type||Y({type:"maybe_slash",value:"",output:`${S}?`}),!0===I.backtrack){I.output="";for(const e of I.tokens)I.output+=null!=e.output?e.output:e.value,e.suffix&&(I.output+=e.suffix)}return I};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},93148:(e,t,r)=>{"use strict";const n=r(71017),i=r(9488),o=r(10688),s=r(49451),a=r(92819),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},9488:(e,t,r)=>{"use strict";const n=r(49451),{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(92819),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,O=e,D=-1,T=0,j=0,A=!1,M=!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=()=>D>=_,W=()=>(C=E,O.charCodeAt(++D));for(;D<_;){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)&&O.charCodeAt(D+1)===d){if(R=V.isGlob=!0,F=V.isExtglob=!0,U=!0,E===u&&D===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){M=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||D!==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(D),P.push(V),V={value:"",depth:0,isGlob:!1},!0===U)continue;if(C===c&&D===T+1){T+=2;continue}j=D+1}}else N=V.backslashes=!0,E=W(),E===p&&(L=!0)}!0===r.noext&&(F=!1,R=!1);let G=O,z="",K="";T>0&&(z=O.slice(0,T),O=O.slice(T),j-=T),G&&!0===R&&j>0?(G=O.slice(0,j),K=O.slice(j)):!0===R?(G="",K=O):G=O,G&&""!==G&&"/"!==G&&G!==O&&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:M,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<k.length;n++){const i=t?t+1:T,o=k[n],s=e.slice(i,o);r.tokens&&(0===n&&0!==T?(P[n].isPrefix=!0,P[n].value=z):P[n].value=s,w(P[n]),J.maxDepth+=P[n].depth),0===n&&""===s||x.push(s),t=o}if(t&&t+1<e.length){const n=e.slice(t+1);x.push(n),r.tokens&&(P[P.length-1].value=n,w(P[P.length-1]),J.maxDepth+=P[P.length-1].depth)}J.slashes=k,J.parts=x}return J}},49451:(e,t,r)=>{"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(92819);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}},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;n<e.length;n++)r.push([e[n],t[n]]);return r}(e,t),i=n.length,o="",s=0;for(let e=0;e<i;e++){let[t,r]=n[e];t===r?o+=t:"0"!==t||"9"!==r?o+=`[${a=t}${(c=r)-a==1?"":"-"}${c}]`:s++}var a,c;return s&&(o+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function s(e,t,r,n){let i,s=function(e,t){let r=1,n=1,i=l(e,r),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),r+=1,i=l(e,r);for(i=p(t+1,n)-1;e<i&&i<=t;)o.add(i),n+=1,i=p(t+1,n)-1;return o=[...o],o.sort(c),o}(e,t),a=[],u=e;for(let e=0;e<s.length;e++){let t=s[e],c=o(String(u),String(t),n),l="";r.isPadded||!i||i.pattern!==c.pattern?(r.isPadded&&(l=f(t,r,n)),c.string=l+c.pattern+d(c.count),a.push(c),u=t+1,i=c):(i.count.length>1&&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;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},d.braceExpand=function(e,t){return f(e,t)},h.prototype.braceExpand=f,h.prototype.parse=function(e,t){if(e.length>65536)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<k&&(_=e.charAt(S));S++)if(this.debug("%s\t%s %s %j",e,S,o,_),p&&u[_])o+="\\"+_,p=!1;else switch(_){case"/":return!1;case"\\":w(),p=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,S,o,_),f){this.debug("  in class"),"!"===_&&S===y+1&&(_="^"),o+=_;continue}v.debug("call clearStateChar %j",n),w(),n=_,r.noext&&w();continue;case"(":if(f){o+="(";continue}if(!n){o+="\\(";continue}d.push({type:n,start:S-1,reStart:o.length,open:s[n].open,close:s[n].close}),o+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,o),n=!1;continue;case")":if(f||!d.length){o+="\\)";continue}w(),l=!0;var P=d.pop();o+=P.close,"!"===P.type&&h.push(P),P.reEnd=o.length;continue;case"|":if(f||!d.length||p){o+="\\|",p=!1;continue}w(),o+="|";continue;case"[":if(w(),f){o+="\\"+_;continue}f=!0,y=S,g=o.length,o+=_;continue;case"]":if(S===y+1||!f){o+="\\"+_,p=!1;continue}if(f){var x=e.substring(y+1,S);try{RegExp("["+x+"]")}catch(e){var C=this.parse(x,m);o=o.substr(0,g)+"\\["+C[0]+"\\]",l=l||C[1],f=!1;continue}}l=!0,f=!1,o+=_;continue;default:w(),p?p=!1:!u[_]||"^"===_&&f||(o+="\\"),o+=_}for(f&&(x=e.substr(y+1),C=this.parse(x,m),o=o.substr(0,g)+"\\["+C[0],l=l||C[1]),P=d.pop();P;P=d.pop()){var E=o.slice(P.reStart+P.open.length);this.debug("setting tail",o,P),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n   %s",E,E,P,o);var O="*"===P.type?c:"?"===P.type?a:"\\"+P.type;l=!0,o=o.slice(0,P.reStart)+O+"\\("+E}w(),p&&(o+="\\\\");var D=!1;switch(o.charAt(0)){case".":case"[":case"(":D=!0}for(var T=h.length-1;T>-1;T--){var j=h[T],A=o.slice(0,j.reStart),M=o.slice(j.reStart,j.reEnd-8),R=o.slice(j.reEnd-8,j.reEnd),F=o.slice(j.reEnd);R+=F;var I=A.split("(").length-1,L=F;for(S=0;S<I;S++)L=L.replace(/\)[+*?]?/,"");var N="";""===(F=L)&&t!==m&&(N="$"),o=A+M+F+N+R}if(""!==o&&l&&(o="(?=.)"+o),D&&(o=b+o),t===m)return[o,l];if(!l)return e.replace(/\\(.)/g,"$1");var B=r.nocase?"i":"";try{var $=new RegExp("^"+o+"$",B)}catch(e){return new RegExp("$.")}return $._glob=e,$._src=o,$};var m={};d.makeRe=function(e,t){return new h(e,t||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",o=e.map((function(e){return e.map((function(e){return e===i?r:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch(e){this.regexp=!1}return this.regexp},d.match=function(e,t,r){var n=new h(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},h.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);var i,o,s=this.set;for(this.debug(this.pattern,"set",s),o=e.length-1;o>=0&&!(i=e[o]);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;if(r.matchBase&&1===a.length&&(c=[i]),this.matchOne(c,a,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},h.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,a=e.length,c=t.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u,l=t[s],p=e[o];if(this.debug(t,l,p),!1===l)return!1;if(l===i){this.debug("GLOBSTAR",[t,l,p]);var d=o,h=s+1;if(h===c){for(this.debug("** at the end");o<a;o++)if("."===e[o]||".."===e[o]||!n.dot&&"."===e[o].charAt(0))return!1;return!0}for(;d<a;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,h,f),this.matchOne(e.slice(d),t.slice(h),r))return this.debug("globstar found match!",d,a,f),!0;if("."===f||".."===f||!n.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> 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))}},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:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.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(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch(e){}if(!0===r.removeDirectoryIndex&&(r.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(r.removeDirectoryIndex)&&r.removeDirectoryIndex.length>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<arguments.length;u++){for(var l in s=Object(arguments[u]))r.call(s,l)&&(c[l]=s[l]);if(t){a=t(s);for(var p=0;p<a.length;p++)n.call(s,a[p])&&(c[a[p]]=s[a[p]])}}return c}},58034:(e,t,r)=>{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||"<anonymous>",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<c.length;u++){var l=c[u];p.prototype[l]||(p.prototype[l]=a.prototype[l])}function p(e){if(!(this instanceof p))return new p(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},58272:(e,t,r)=>{"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.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),x(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},b.prototype.unshift=function(e){return v(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=r(79514).s),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.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"),D(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.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function E(e){d("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function T(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.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.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 j(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 M(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(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,D(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!==M(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<i;o++)n[o].emit("unpipe",this,r);return this}var s=M(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},b.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):n.nextTick(E,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T},41999:(e,t,r)=>{"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<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(71947),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},18650:(e,t,r)=>{"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<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,a,n,i,o);return c}(this,o,a,e,t,r)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[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},43239:e=>{"use strict";var t=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return new t((function(t,o){i.push((function(e,n){if(e)o(e);else if(r.multiArgs){for(var i=new Array(arguments.length-1),s=1;s<arguments.length;s++)i[s-1]=arguments[s];t(i)}else t(n)})),e.apply(n,i)}))}},r=e.exports=function(e,r,n){"function"!=typeof r&&(n=r,r=Promise),(n=n||{}).exclude=n.exclude||[/.+Sync$/];var i="function"==typeof e?function(){return n.excludeMain?e.apply(this,arguments):t(e,r,n).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,o){var s=e[o];return i[o]="function"==typeof s&&function(e){var t=function(t){return"string"==typeof t?e===t:t.test(e)};return n.include?n.include.some(t):!n.exclude.some(t)}(o)?t(s,r,n):s,i}),i)};r.all=r},51842:(e,t,r)=>{"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<u.length;e++)u[e][0](u[e][1]);u=[],t=!1}function p(e,r){u.push([e,r]),t||(t=!0,c(l,0))}function d(e){var t=e.owner,r=t._state,n=t._data,s=e[r],a=e.then;if("function"==typeof s){r=i;try{n=s(n)}catch(e){g(a,e)}}h(a,n)||(r===i&&f(a,n),r===o&&g(a,n))}function h(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){r||(r=!0,t===n?m(e,n):f(e,n))}),(function(t){r||(r=!0,g(e,t))})),!0}}catch(t){return r||g(e,t),!0}return!1}function f(e,t){e!==t&&h(e,t)||m(e,t)}function m(e,t){e._state===r&&(e._state=n,e._data=t,p(b,e))}function g(e,t){e._state===r&&(e._state=n,e._data=t,p(v,e))}function y(e){e._then=e._then.forEach(d)}function b(e){e._state=i,y(e)}function v(e){e._state=o,y(e),!e._handled&&a&&global.process.emit("unhandledRejection",e._data,e)}function w(e){global.process.emit("rejectionHandled",e)}function _(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof _==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){g(t,e)}try{e((function(e){f(t,e)}),r)}catch(e){r(e)}}(e,this)}_.prototype={constructor:_,_state:r,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(s),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===o&&a&&p(w,this)),this._state===i||this._state===o?p(d,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},_.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new _((function(t,r){var n=[],i=0;function o(e){return i++,function(r){n[e]=r,--i||t(n)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(o(a),r):n[a]=s;i||t(n)}))},_.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new _((function(t,r){for(var n,i=0;i<e.length;i++)(n=e[i])&&"function"==typeof n.then?n.then(t,r):t(n)}))},_.resolve=function(e){return e&&"object"==typeof e&&e.constructor===_?e:new _((function(t){t(e)}))},_.reject=function(e){return new _((function(t,r){r(e)}))},e.exports=_},65952: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<i.length;)i[o++]=arguments[o];return process.nextTick((function(){e.apply(null,i)}))}}}:e.exports=process},15637:(e,t,r)=>{"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<s.length;a++){var c=s[a];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},93138:(e,t,r)=>{"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?D(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):j(e,u)):C(e,u,t,!1)}else n||(u.reading=!1,j(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),j(e,t)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=f.destroy,P.prototype._undestroy=f.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},P.prototype.unshift=function(e){return x(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){l||(l=r(45255).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var E=1073741824;function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.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 D(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 j(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,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<n;r++)if(e[r]===t)return r;return-1}P.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):D(this),null;if(0===(e=O(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-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(r,t))),null===(n=e>0?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;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=$(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!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?D(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(M,this),r},P.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,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<S.length;s++)e.on(S[s],this.emit.bind(this,S[s]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(6189)),p(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=L,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===d&&(d=r(71752)),d(P,e,t)})},67918:(e,t,r)=>{"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<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(71947)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},61731:(e,t,r)=>{"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=O(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 O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(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=O(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(D,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<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,a,n,i,o);return u}(this,i,s,e,t,r)),o},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},P.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-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;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=r(14300).Buffer,a=r(73837).inspect,c=a&&a.custom||"inspect";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}var t,r;return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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 e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.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<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&o(t.prototype,r),e}()},96181:e=>{"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<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){a=!1,u=!0,s||o.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,p=!0,a||o.call(t)},h=function(e){o.call(t,e)},f=function(){var e;return s&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",f),t.req?m():t.on("request",m)):a&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",f),function(){t.removeListener("complete",l),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",f)}}},71752:(e,t,r)=>{"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<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({objectMode:!0},r)),u=!1;function l(){return p.apply(this,arguments)}function p(){return(p=i((function*(){try{var e=yield n.next(),t=e.value;e.done?c.push(null):c.push(yield t)?l():u=!1}catch(e){c.destroy(e)}}))).apply(this,arguments)}return c._read=function(){u||(u=!0,l())},c}},14404:(e,t,r)=>{"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;r<e;r++)t[r]=arguments[r];var n,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map((function(e,r){var o=r<t.length-1;return c(e,o,r>0,(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){var r=this._selector(this._keys[e],this._values[e]);return e+1>=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<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,n)},t.prototype.values=function(){return new r(this._keys,this._values,o)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function o(e,t){return t}function s(e,t){return[e,t]}}():Map,d=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,h=new(l||"function"!=typeof WeakMap?function(){var e=c.create(),r=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var t;do{t="@@WeakMap@@"+s()}while(c.has(e,t));return e[t]=!0,t}function i(e,n){if(!t.call(e,r)){if(!n)return;Object.defineProperty(e,r,{value:c.create()})}return e[r]}function o(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function s(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",n=0;n<16;++n){var i=t[n];4!==n&&6!==n&&8!==n||(r+="-"),i<16&&(r+="0"),r+=i.toString(16).toLowerCase()}return r}}():WeakMap);function f(e,t,r){var n=h.get(e);if(k(n)){if(!r)return;n=new p,h.set(e,n)}var i=n.get(t);if(k(i)){if(!r)return;i=new p,n.set(t,i)}return i}function m(e,t,r){if(g(e,t,r))return!0;var n=R(t);return!P(n)&&m(e,n,r)}function g(e,t,r){var n=f(t,r,!1);return!k(n)&&!!n.has(e)}function y(e,t,r){if(g(e,t,r))return b(e,t,r);var n=R(t);return P(n)?void 0:y(e,n,r)}function b(e,t,r){var n=f(t,r,!1);if(!k(n))return n.get(e)}function v(e,t,r,n){f(r,n,!0).set(e,t)}function w(e,t){var r=_(e,t),n=R(e);if(null===n)return r;var i=w(n,t);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new d,s=[],a=0,c=r;a<c.length;a++){var u=c[a];o.has(u)||(o.add(u),s.push(u))}for(var l=0,p=i;l<p.length;l++)u=p[l],o.has(u)||(o.add(u),s.push(u));return s}function _(e,t){var r=[],n=f(e,t,!1);if(k(n))return r;for(var o=function(e){var t=j(e,i);if(!D(t))throw new TypeError;var r=t.call(e);if(!x(r))throw new TypeError;return r}(n.keys()),s=0;;){var a=A(o);if(!a)return r.length=s,r;var c=a.value;try{r[s]=c}catch(e){try{M(o)}finally{throw e}}s++}}function S(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function k(e){return void 0===e}function P(e){return null===e}function x(e){return"object"==typeof e?null!==e:"function"==typeof e}function C(e,t){switch(S(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",i=j(e,n);if(void 0!==i){var o=i.call(e,r);if(x(o))throw new TypeError;return o}return function(e,t){if("string"===t){var r=e.toString;if(D(r)&&!x(i=r.call(e)))return i;if(D(n=e.valueOf)&&!x(i=n.call(e)))return i}else{var n;if(D(n=e.valueOf)&&!x(i=n.call(e)))return i;var i,o=e.toString;if(D(o)&&!x(i=o.call(e)))return i}throw new TypeError}(e,"default"===r?"number":r)}function E(e){var t=C(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function O(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function D(e){return"function"==typeof e}function T(e){return"function"==typeof e}function j(e,t){var r=e[t];if(null!=r){if(!D(r))throw new TypeError;return r}}function A(e){var t=e.next();return!t.done&&t}function M(e){var t=e.return;t&&t.call(e)}function R(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var i=n.constructor;return"function"!=typeof i||i===e?t:i}function F(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,n){if(k(r)){if(!O(e))throw new TypeError;if(!T(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=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(!O(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<s;r++){var a=e[r];n(a)?t=i.call(t,o.call(a)):t.push(a)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},43777:(e,t)=>{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<i;r++)n.add(e[r],t);return n}size(){return this._set.size}add(e,t){const r=this.has(e),n=this._array.length;r&&!t||this._array.push(e),r||this._set.set(e,n)}has(e){return this._set.has(e)}indexOf(e){const t=this._set.get(e);if(t>=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}}t.I=r},78293:(e,t,r)=>{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<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)}},22434:(e,t)=>{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?n<o.length?n:-1:c:c-e>1?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<t;r++)n[r]=e.charCodeAt(r);const i=this._wasm.exports.parse_mappings(r);if(!i){const e=this._wasm.exports.get_last_error();let t=`Error parsing mappings (code ${e}): `;switch(e){case 1:t+="the mappings contained a negative line, column, source index, or name index";break;case 2:t+="the mappings contained a number larger than 2**32";break;case 3:t+="reached EOF while in the middle of parsing a VLQ";break;case 4:t+="invalid base 64 character while parsing a VLQ";break;default:t+="unknown error code"}throw new Error(t)}this._mappingsPtr=i}eachMapping(e,t,r){const n=t||null,i=r||u.GENERATED_ORDER;this._wasm.withMappingCallback((t=>{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<a.line||i===a.line&&o<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,new u(n.getArg(e,"map"),t).then((e=>({generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t<this._sections.length;t++)for(let r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}originalPositionFor(e){const t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),o=this._sections[r];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))}sourceContentFor(e,t){for(let t=0;t<this._sections.length;t++){const r=this._sections[t].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}_findSectionIndex(e){for(let t=0;t<this._sections.length;t++){const{consumer:r}=this._sections[t];if(-1!==r._findSourceIndex(e))return t}return-1}generatedPositionFor(e){const t=this._findSectionIndex(n.getArg(e,"source")),r=t>=0?this._sections[t]:null,i=t>=0&&t+1<this._sections.length?this._sections[t+1]:null,o=r&&r.consumer.generatedPositionFor(e);if(o&&null!==o.line){const e=r.generatedOffset.generatedLine-1,t=r.generatedOffset.generatedColumn-1;return 1===o.line&&(o.column+=t,"number"==typeof o.lastColumn&&(o.lastColumn+=t)),o.lastColumn===1/0&&i&&o.line===i.generatedOffset.generatedLine&&(o.lastColumn=i.generatedOffset.generatedColumn-2),o.line+=e,o}return{line:null,column:null,lastColumn:null}}allGeneratedPositionsFor(e){const t=this._findSectionIndex(n.getArg(e,"source")),r=t>=0?this._sections[t]:null,i=t>=0&&t+1<this._sections.length?this._sections[t+1]:null;return r?r.consumer.allGeneratedPositionsFor(e).map((e=>{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<this._sections.length?this._sections[i+1]:null,{generatedOffset:s}=n,a=s.generatedLine-1,c=s.generatedColumn-1;n.consumer.eachMapping((function(t){1===t.generatedLine&&(t.generatedColumn+=c,"number"==typeof t.lastGeneratedColumn&&(t.lastGeneratedColumn+=c)),t.lastGeneratedColumn===1/0&&o&&t.generatedLine===o.generatedOffset.generatedLine&&(t.lastGeneratedColumn=o.generatedOffset.generatedColumn-2),t.generatedLine+=a,e.call(this,t)}),t,r)}))}computeColumnSpans(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.computeColumnSpans()}destroy(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.destroy()}}},6962:(e,t,r)=>{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;f<m;f++){if(t=h[f],e="",t.generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(f>0){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<s.length?s[c++]:void 0}};let l,p=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(p<e.generatedLine)){l=s[c]||"";const t=l.substr(0,e.generatedColumn-d);return s[c]=l.substr(e.generatedColumn-d),d=e.generatedColumn,f(h,t),void(h=e)}f(h,u()),p++,d=0}for(;p<e.generatedLine;)n.add(u()),p++;d<e.generatedColumn&&(l=s[c]||"",n.add(l.substr(0,e.generatedColumn)),s[c]=l.substr(e.generatedColumn),d=e.generatedColumn),h=e}),this),c<s.length&&(h&&f(h,u()),n.add(s.splice(c).join(""))),t.sources.forEach((function(e){const o=t.sourceContentFor(e);null!=o&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,o))})),n;function f(e,t){if(null===e||void 0===e.source)n.add(t);else{const o=r?i.join(r,e.source):e.source;n.add(new a(e.originalLine,e.originalColumn,o,t,e.name))}}}add(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this}prepend(e){if(Array.isArray(e))for(let t=e.length-1;t>=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;r<n;r++)t=this.children[r],t[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let t,r;const n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this}replaceRight(e,t){const r=this.children[this.children.length-1];return r[s]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this}setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t}walkSourceContents(e){for(let t=0,r=this.children.length;t<r;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);const t=Object.keys(this.sourceContents);for(let r=0,n=t.length;r<n;r++)e(i.fromSetString(t[r]),this.sourceContents[t[r]])}toString(){let e="";return this.walk((function(t){e+=t})),e}toStringWithSourceMap(e){const t={code:"",line:1,column:0},r=new n(e);let i=!1,o=null,s=null,a=null,c=null;return this.walk((function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(o===n.source&&s===n.line&&a===n.column&&c===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),o=n.source,s=n.line,a=n.column,c=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1);for(let s=0,a=e.length;s<a;s++)10===e.charCodeAt(s)?(t.line++,t.column=0,s+1===a?(o=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}}}t.SourceNode=a},28254:(e,t,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;e<t;e++)n+=`${r}/`;return n}const h=/^[A-Za-z0-9\+\-\.]+:/;function f(e){return"/"===e[0]?"/"===e[1]?"scheme-relative":"path-absolute":h.test(e)?"absolute":"path-relative"}function m(e,t){"string"==typeof e&&(e=new n(e)),"string"==typeof t&&(t=new n(t));const r=t.pathname.split("/"),i=e.pathname.split("/");for(i.length>0&&!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;e<n.length;e++)try{u(this,this.mapper(n[e]))}catch(e){return r(e)}this.overflow=this[o].length>this.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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[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<c.length;u++){var l=c[u];p.prototype[l]||(p.prototype[l]=a.prototype[l])}function p(e){if(!(this instanceof p))return new p(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},39752:(e,t,r)=>{"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.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),x(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},b.prototype.unshift=function(e){return v(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=r(74038).s),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.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"),D(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.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function E(e){d("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function T(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.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.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 j(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 M(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(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,D(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!==M(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<i;o++)n[o].emit("unpipe",this,r);return this}var s=M(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},b.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):n.nextTick(E,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){d("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T},59069:(e,t,r)=>{"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<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(71947),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},67271:(e,t,r)=>{"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<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,a,n,i,o);return c}(this,o,a,e,t,r)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[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<arguments.length;n++)r[n-2]=arguments[n];return c(t,r)},t.loadMessageBundle=function(e){return s.default().loadMessageBundle(e)},t.config=function(e){return s.default().config(e)}},91070:(e,t)=>{"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<arguments.length;i++)n[i-2]=arguments[i];return p(t)?t>=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;f<c.keys.length;f++){var m=c.keys[f],g=l[d(m)?m:m.key];void 0===g&&(g=c.messages[f]),p.push(g)}s[a]=p}else s[a]=c.messages}return s}}(e,t),!r||c)return r;if(l)try{i.writeFileSync(a,JSON.stringify(r),{encoding:"utf8",flag:"wx"})}catch(e){if("EEXIST"===e.code)return r;throw e}return r}(e,t)}catch(e){console.log("Load or create bundle failed ",e)}if(!r){if(u.languagePackSupport)return g(t);var o=function(e){for(var t=u.language;t;){var r=n.join(e,"nls.bundle."+t+".json");if(i.existsSync(r))return r;var o=t.lastIndexOf("-");t=o>0?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)t=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&&(t=t)}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<d;p++){var h=n[p];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=i.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f);for(var m=0,g=o.length;m<g;m++){var y=f+o[m];try{if(s.sync(y,{pathExt:u})){if(!t.all)return y;l.push(y)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)};var n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(71017),o=n?";":":",s=r(64219);function a(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function c(e,t){var r=t.colon||o,i=t.path||process.env.PATH||"",s=[""];i=i.split(r);var a="";return n&&(i.unshift(process.cwd()),s=(a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==e.indexOf(".")&&""!==s[0]&&s.unshift("")),(e.match(/\//)||n&&e.match(/\\/))&&(i=[""]),{env:i,ext:s,extExe:a}}function u(e,t,r){"function"==typeof t&&(r=t,t={});var n=c(e,t),o=n.env,u=n.ext,l=n.extExe,p=[];!function n(c,d){if(c===d)return t.all&&p.length?r(null,p):r(a(e));var h=o[c];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=i.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f),function e(i,o){if(i===o)return n(c+1,d);var a=u[i];s(f+a,{pathExt:l},(function(n,s){if(!n&&s){if(!t.all)return r(null,f+a);p.push(f+a)}return e(i+1,o)}))}(0,u.length)}(0,o.length)}},37534:e=>{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<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},48681:(e,t,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<e.length;t++){const n=e[t];r.set(n,i),i+=n.length}return i<t?r.slice(0,i):r}function o(e,t,r,n,i){for(let o=0;o<i;o++)r[n+o]=e[o]^t[3&o]}function s(e,t){for(let r=0;r<e.length;r++)e[r]^=t[3&r]}function a(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=Buffer.from(e):ArrayBuffer.isView(e)?t=Buffer.from(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}try{const t=r(Object(function(){var e=new Error("Cannot find module 'bufferutil'");throw e.code="MODULE_NOT_FOUND",e}()));e.exports={concat:i,mask(e,r,n,i,s){s<48?o(e,r,n,i,s):t.mask(e,r,n,i,s)},toArrayBuffer:a,toBuffer:c,unmask(e,r){e.length<32?s(e,r):t.unmask(e,r)}}}catch(t){e.exports={concat:i,mask:o,toArrayBuffer:a,toBuffer:c,unmask:s}}},79864:e=>{"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<e.length;h++)if(p=e.charCodeAt(h),void 0===r)if(-1===d&&1===n[p])-1===l&&(l=h);else if(0===h||32!==p&&9!==p){if(59!==p&&44!==p)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);const n=e.slice(l,d);44===p?(i(t,n,s),s=Object.create(null)):r=n,l=d=-1}}else-1===d&&-1!==l&&(d=h);else if(void 0===o)if(-1===d&&1===n[p])-1===l&&(l=h);else if(32===p||9===p)-1===d&&-1!==l&&(d=h);else if(59===p||44===p){if(-1===l)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h),i(s,e.slice(l,d),!0),44===p&&(i(t,r,s),s=Object.create(null),r=void 0),l=d=-1}else{if(61!==p||-1===l||-1!==d)throw new SyntaxError(`Unexpected character at index ${h}`);o=e.slice(l,h),l=d=-1}else if(c){if(1!==n[p])throw new SyntaxError(`Unexpected character at index ${h}`);-1===l?l=h:a||(a=!0),c=!1}else if(u)if(1===n[p])-1===l&&(l=h);else if(34===p&&-1!==l)u=!1,d=h;else{if(92!==p)throw new SyntaxError(`Unexpected character at index ${h}`);c=!0}else if(34===p&&61===e.charCodeAt(h-1))u=!0;else if(-1===d&&1===n[p])-1===l&&(l=h);else if(-1===l||32!==p&&9!==p){if(59!==p&&44!==p)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);let n=e.slice(l,d);a&&(n=n.replace(/\\/g,""),a=!1),i(s,o,n),44===p&&(i(t,r,s),s=Object.create(null),r=void 0),o=void 0,l=d=-1}}else-1===d&&(d=h);if(-1===l||u||32===p||9===p)throw new SyntaxError("Unexpected end of input");-1===d&&(d=h);const f=e.slice(l,d);return void 0===r?i(t,f,s):(void 0===o?i(s,f,!0):i(s,o,a?f.replace(/\\/g,""):f),i(t,r,s)),t}}},8528:e=>{"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<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=t.slice(e),t.slice(0,e)}const t=Buffer.allocUnsafe(e);do{const r=this._buffers[0],n=t.length-e;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._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!=(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&p(t,this._mask)}return this._opcode>7?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<this._queue.length;t++){const r=this._queue[t],n=r[r.length-1];"function"==typeof n&&n(e)}}else this._bufferedBytes-=r[u],this._deflating=!1,r.readOnly=!1,this.sendFrame(p.frame(t,r),n),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][u],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][u],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}e.exports=p},15519:(e,t,r)=>{"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<e.length;o++){const s=e.charCodeAt(o);if(-1===i&&1===n[s])-1===r&&(r=o);else if(0===o||32!==s&&9!==s){if(44!==s)throw new SyntaxError(`Unexpected character at index ${o}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${o}`);-1===i&&(i=o);const n=e.slice(r,i);if(t.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}}else-1===i&&-1!==r&&(i=o)}if(-1===r||-1!==i)throw new SyntaxError("Unexpected end of input");const s=e.slice(r,o);if(t.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return t.add(s),t}}},91607:(e,t,r)=>{"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;)if(0==(128&e[r]))r++;else if(192==(224&e[r])){if(r+1===t||128!=(192&e[r+1])||192==(254&e[r]))return!1;r+=2}else if(224==(240&e[r])){if(r+2>=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,...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,d){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 g=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+l).digest("base64")}`],y=new u(null);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;e&&(g.push(`Sec-WebSocket-Protocol: ${e}`),y._protocol=e)}if(e[a.extensionName]){const t=e[a.extensionName].params,r=s.format({[a.extensionName]:[t]});g.push(`Sec-WebSocket-Extensions: ${r}`),y._extensions=e}this.emit("headers",g,n),i.write(g.concat("\r\n").join("\r\n")),i.removeListener("error",f),y.setSocket(i,c,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(y),y.on("close",(()=>{this.clients.delete(y),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)}))),d(y,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),O=["CONNECTING","OPEN","CLOSING","CLOSED"],D=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,T=[8,13];class j 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=j.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=j.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=j.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[d.extensionName]&&this._extensions[d.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==j.CLOSED){if(this.readyState===j.CONNECTING){const e="WebSocket was closed before the connection was established";return I(this,this._req,e)}this.readyState!==j.CLOSING?(this._readyState=j.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!==j.CONNECTING&&this.readyState!==j.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===j.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===j.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===j.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===j.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||g,t,r)):L(this,e,r)}resume(){this.readyState!==j.CONNECTING&&this.readyState!==j.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===j.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!==j.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!==j.CLOSED){if(this.readyState===j.CONNECTING){const e="WebSocket was closed before the connection was established";return I(this,this._req,e)}this._socket&&(this._readyState=j.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 M(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||!D.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]}let _=e._req=b(s);s.timeout&&_.on("timeout",(()=>{I(e,_,"Opening handshake has timed out")})),_.on("error",(t=>{null===_||_.aborted||(_=e._req=null,M(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 M(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!==j.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 M(e,t){e._readyState=j.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=j.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} (${O[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=j.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=j.CLOSING,e._receiver.end(),this.end()}function J(){const e=this[_];this.removeListener("error",J),this.on("error",S),e&&(e._readyState=j.CLOSING,this.destroy())}Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:O.indexOf("CONNECTING")}),Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:O.indexOf("CONNECTING")}),Object.defineProperty(j,"OPEN",{enumerable:!0,value:O.indexOf("OPEN")}),Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:O.indexOf("OPEN")}),Object.defineProperty(j,"CLOSING",{enumerable:!0,value:O.indexOf("CLOSING")}),Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:O.indexOf("CLOSING")}),Object.defineProperty(j,"CLOSED",{enumerable:!0,value:O.indexOf("CLOSED")}),Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:O.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(j.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(j.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})}})})),j.prototype.addEventListener=k,j.prototype.removeEventListener=P,e.exports=j},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<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},41741:e=>{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;n<i;n++)r.push(arguments[n]);return r}function r(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function n(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,r,n){if(!(this instanceof i))return new i(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=t,t.Node=i,t.create=t,t.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null},t.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},t.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},t.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},t.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},t.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},t.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},t.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},t.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},t.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},t.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},t.prototype.map=function(e,r){r=r||this;for(var n=new t,i=this.head;null!==i;)n.push(e.call(r,i.value,this)),i=i.next;return n},t.prototype.mapReverse=function(e,r){r=r||this;for(var n=new t,i=this.tail;null!==i;)n.push(e.call(r,i.value,this)),i=i.prev;return n},t.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)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(r<e||r<0)return n;e<0&&(e=0),r>this.length&&(r=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<r;i++,o=o.next)n.push(o.value);return n},t.prototype.sliceReverse=function(e,r){(r=r||this.length)<0&&(r+=this.length),(e=e||0)<0&&(e+=this.length);var n=new t;if(r<e||r<0)return n;e<0&&(e=0),r>this.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),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.__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.mtime));if(i)return void i.forEach((r=>t(Object.assign(Object.assign({},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=Object.assign(Object.assign({},e),{resolvedPath:n,sourceUrl:r});s.push(i),t(i)}null===(n=this.cache)||void 0===n||n.store(e.compiledPath,e.mtime,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),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.__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 O=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._sourceMapHandlerInstalled=!1,this._byRef=new Map,this.moduleEntryBreakpoints=d.caseNormalizedMap(),this._dap=e,this._sourceContainer=t,null==s||s.onLongParse((()=>e.longPrediction({}))),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){const r=this._sourceContainer.source(t.source);if(!r)return[];const n=this._sourceContainer.currentSiblingUiLocations({source:r,lineNumber:t.line,columnNumber:void 0===t.column?1:t.column}),i=this._sourceContainer.currentSiblingUiLocations({source:r,lineNumber:void 0===t.endLine?t.line+1:t.endLine,columnNumber:void 0===t.endColumn?1:t.endColumn});if(n.length!==i.length)return this.logger.warn("internal","Expected to have the same number of start and end locations"),[];const o=[];for(let t=0;t<n.length;t++){const s=n[t],a=i[t];if(s.source!==a.source){this.logger.warn("internal","Expected to have the same number of start and end scripts");continue}const c=s.source,u=e.scriptsFromSource(c);if(0===u.size)continue;const{scriptId:l}=u.values().next().value;o.push(e.cdp().Debugger.getPossibleBreakpoints({restrictToFunction:!1,start:Object.assign({scriptId:l},(0,x.uiToRawOffset)((0,x.base1To0)(s),c.runtimeScriptOffset)),end:Object.assign({scriptId:l},(0,x.uiToRawOffset)((0,x.base1To0)(a),c.runtimeScriptOffset))}).then((e=>{if(!e)return[];const t=[];for(const n of e.locations){const{lineNumber:e,columnNumber:i=0}=n,o=this._sourceContainer.currentSiblingUiLocations(Object.assign({source:c},(0,x.rawToUiOffset)((0,x.base0To1)({lineNumber:e,columnNumber:i}),c.runtimeScriptOffset)),r);for(const e of o)t.push({line:e.lineNumber,column:e.columnNumber})}return t})))}return(await Promise.all(o)).reduce(((e,t)=>[...e,...t]),[])}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)))}setSourceMapPauseDisabledForTest(){}setPredictorDisabledForTest(e){this._predictorDisabledForTest=e}async _installSourceMapHandler(e){this._sourceMapHandlerInstalled=!0,"yes"===this.launchConfig.perScriptSourcemaps?await Promise.all([this.updateEntryBreakpointMode(e,1),e.setScriptSourceMapHandler(!1,this._scriptSourceMapHandler)]):this._breakpointsPredictor&&!this.launchConfig.pauseForSourceMap?await e.setScriptSourceMapHandler(!1,this._scriptSourceMapHandler):await e.setScriptSourceMapHandler(!0,this._scriptSourceMapHandler)}async _uninstallSourceMapHandler(e){e.setScriptSourceMapHandler(!1),this._sourceMapHandlerInstalled=!1}_setBreakpoint(e,t){this._enabledFilter(e)&&this.addLaunchBlocker(Promise.race([(0,p.delay)(500),e.enable(t)]))}async setBreakpoints(e,t){var r,n;if(!this._sourceMapHandlerInstalled&&this._thread&&(null===(r=e.breakpoints)||void 0===r?void 0:r.length)&&await this._installSourceMapHandler(this._thread),e.source.path=d.platformPathToPreferredCase(e.source.path),e.source.sourceReference&&e.source.path&&!this._sourceContainer.source(e.source)&&(e.source.sourceReference=void 0),!this._predictorDisabledForTest&&this._breakpointsPredictor){const t=this._breakpointsPredictor.predictBreakpoints(e);this.addLaunchBlocker(t),await t}const i=this._thread;if(!1===(null==i?void 0:i.debuggerReady.hasSettled())){const e=i.debuggerReady.promise;this.addLaunchBlocker(e),await e}const o=()=>e.source.path?this._byPath.get(e.source.path):e.source.sourceReference?this._byRef.get(e.source.sourceReference):void 0,s=(r=>{var n;const i={unbound:r.slice(),new:[],list:[]};if(!e.breakpoints)return i;for(let r=0;r<e.breakpoints.length;r++){const o=e.breakpoints[r];let s;try{s=new k.UserDefinedBreakpoint(this,t[r],e.source,o,this.conditionFactory.getConditionFor(o))}catch(n){if(!(n instanceof m.ProtocolError))throw n;this._dap.output({category:"stderr",output:n.message}),s=new _.NeverResolvedBreakpoint(this,t[r],e.source,o)}const a=i.unbound.findIndex((e=>e.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!==(n=o())&&void 0!==n?n:[]);if(e.source.path)this._byPath.set(e.source.path,s.list);else{if(!e.source.sourceReference)return{breakpoints:[]};this._byRef.set(e.source.sourceReference,s.list)}if(this._totalBreakpointsCount-=s.unbound.length,await Promise.all(s.unbound.map((e=>e.disable()))),this._totalBreakpointsCount+=s.new.length,this._thread&&0===this._totalBreakpointsCount&&this._sourceMapHandlerInstalled&&this._uninstallSourceMapHandler(this._thread),i&&s.new.length){this.ensureModuleEntryBreakpoint(i,e.source);const t=o(),r=Promise.all(s.new.filter(this._enabledFilter).filter((e=>null==t?void 0:t.includes(e))).map((e=>e.enable(i))));this.addLaunchBlocker(Promise.race([(0,p.delay)(500),r])),await r}const a=await Promise.all(s.list.map((e=>e.toDap())));return this._breakpointsStatisticsCalculator.registerBreakpoints(a),(0,p.delay)(0).then((()=>s.new.forEach((e=>e.markSetCompleted())))),{breakpoints:a}}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))))}}};O=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))],O),t.BreakpointManager=O},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?Object.assign(Object.assign({},e),{uiLocations:this._manager._sourceContainer.currentSiblingUiLocations(t)}):e))))}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){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){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.updateCdpRefs((e=>e.map((e=>1===e.state&&e.cdpId===t?Object.assign(Object.assign({},e),{locations:r,uiLocations:[...e.uiLocations,...this._manager._sourceContainer.currentSiblingUiLocations(n,i)]}):e))))}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(){}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,Object.assign({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:Object.assign({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),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.__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(5376),u=r(15501),l=r(91183);class p{constructor(){this.replays=new Map}addReplay(e,t,r,n=!1){n&&this.clearEvent(e,t);const i={event:`${e}.${t}`,params:r},o=this.replays.get(e);o?o.push(i):this.replays.set(e,[i])}capture(e,t,r,n=!1){e[t].on(r,(e=>this.addReplay(t,r,e,n)))}filterReply(e,t){const r=this.replays.get(e);r&&this.replays.set(e,r.filter(t))}clearEvent(e,t){const r=this.replays.get(e);r&&this.replays.set(e,r.filter((e=>e.event!==t)))}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 d=class{constructor(e,t,r){this.cdp=e,this.portTracker=t,this.logger=r,this.disposables=new c.DisposableList,this.replay=new p,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"),this.replay.capture(e,"Debugger","paused",!0),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.filterReply("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,l.acquireTrackedWebSocketServer)(this.portTracker,{perMessageDeflate:!0,path:e});return this.logger.info("proxyActivity","activated cdp proxy"),t.on("connection",(e=>{const t=new f(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":this.replay.read(t).forEach((t=>e.send({method:t.event,params:t.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)}};d=n([(0,s.injectable)(),i(0,(0,s.inject)(a.ICdpApi)),i(1,(0,s.inject)(l.IPortLeaseTracker)),i(2,(0,s.inject)(u.ILogger))],d),t.CdpProxyProvider=d;let h=0;class f{constructor(e,t){this.webSocket=e,this.logger=t,this.disposables=new c.DisposableList,this.id=h++}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.start<r&&r<=o.end&&("Identifier"===i.type?n=()=>this.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 Object.assign(Object.assign({},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?Object.assign(Object.assign({},s),{callFrameId:a}):Object.assign(Object.assign({},s),{contextId:e}),{stackFrame:t});if(!c||c.exceptionDetails)return{result:[],isArray:!1};if(!c.result.objectId){const t=Object.assign(Object.assign({},s),{returnByValue:!0,throwOnSideEffect:!1,expression:(0,d.enumeratePropertiesTemplate)(`(${r})`,JSON.stringify(n),JSON.stringify(i))}),o=await this.evaluator.evaluate(a?Object.assign(Object.assign({},t),{callFrameId:a}):Object.assign(Object.assign({},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(n.length){if(e.stackFrame){const t=new Set(n.map((e=>e.label)));for(const r of await e.stackFrame.completions())t.has(r.label)||(t.add(r.label),n.push(r))}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()),Object.assign({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),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.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),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.__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),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.__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(let e=0;e<t.frames.length;e++){const n=await t.frames[e].uiLocation();if(n&&(r||(r=n),!n.source.blackboxed()))return{source:await n.source.toDap(),line:n.lineNumber,column:n.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)),{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)),Object.assign(Object.assign({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 Object.assign(Object.assign({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 Object.assign(Object.assign({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)?Object.assign({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),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.__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),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.__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},s=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugAdapter=void 0;const a=o(r(33463)),c=r(5376),u=r(15501),l=r(78986),p=r(34285),d=o(r(33763)),h=o(r(97208)),f=o(r(44413)),m=r(1032),g=r(99010),y=r(43224),b=r(31939),v=r(75951),w=r(51695),_=r(54216),S=r(64966),k=r(68164),P=r(45997),x=r(92249),C=r(80935),E=r(23200),O=r(58269),D=r(46989),T=r(67523),j=r(44873),A=r(39226),M=a.loadMessageBundle(r(71017).join(__dirname,"adapter/debugAdapter.js"));class R{constructor(e,t,r,n){this.asyncStackPolicy=t,this.launchConfig=r,this._services=n,this._disposables=new c.DisposableList,this._customBreakpoints=new Set,this._threadDeferred=(0,l.getDeferred)(),this.lastBreakpointId=0,this._cdpProxyProvider=this._services.get(v.ICdpProxyProvider),this._configurationDoneDeferred=(0,l.getDeferred)(),this.sourceContainer=n.get(j.SourceContainer),this.breakpointManager=n.get(b.BreakpointManager);const i=n.get(C.IPerformanceProvider),o=n.get(y.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",(()=>this._withThread((e=>e.stepInto())))),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("canPrettyPrintSource",(e=>this._canPrettyPrintSource(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._withThread((async t=>({breakpoints:await this.breakpointManager.getBreakpointLocations(t,e)}))))),this.dap.on("createDiagnostics",(e=>this._dumpDiagnostics(e))),this.dap.on("requestCDPProxy",(()=>this._requestCDPProxy())),this.dap.on("setExcludedCallers",(e=>this._onSetExcludedCallers(e)))}async launchBlocker(){await this._configurationDoneDeferred.promise,await this._services.get(x.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=R.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:M(0,null),default:!1,supportsCondition:!0,description:M(1,null),conditionDescription:'error.name == "MyError"'},{filter:"uncaught",label:M(2,null),default:!1,supportsCondition:!0,description:M(3,null),conditionDescription:'error.name == "MyError"'}],supportsStepBack:!1,supportsSetVariable:!0,supportsRestartFrame:!0,supportsGotoTargetsRequest:!1,supportsStepInTargetsRequest:!1,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}}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.lastBreakpointId)))&&void 0!==r?r:[])}async setExceptionBreakpoints(e){return await this._services.get(x.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 f.createSilentError(M(4,null));if(!(r instanceof j.SourceFromMap))return f.createSilentError(M(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=h.platformPathToPreferredCase(e.source.path);const t=this.sourceContainer.source(e.source);if(!t)return f.createSilentError(M(6,null));const r=await t.content();return void 0===r?(t instanceof j.SourceFromMap&&this.dap.suggestDisableSourcemap({source:e.source}),f.createSilentError(M(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 m.ProtocolError(f.threadNotAvailable());const t=await this._thread.evaluate({expression:`${e.expression} = ${d.wrapObjectLiteral(e.value)}`,context:"repl",frameId:e.frameId}),{result:r}=t,n=s(t,["result"]);return Object.assign({value:r},n)}async _onSetVariable(e){const t=this.findVariableStore((t=>t.hasVariable(e.variablesReference)));return t?(e.value=d.wrapObjectLiteral(e.value.trim()),t.setVariable(e)):f.createSilentError(M(8,null))}_withThread(e){if(!this._thread)throw new m.ProtocolError(f.threadNotAvailable());return e(this._thread)}async _refreshStackTrace(){this._thread&&this._thread.pausedDetails()&&await this._thread.refreshStackTrace()}createThread(e,t){this._thread=new A.Thread(this.sourceContainer,e,this.dap,t,this._services.get(p.IRenameProvider),this._services.get(u.ILogger),this._services.get(P.IEvaluator),this._services.get(w.ICompletions),this.launchConfig,this.breakpointManager,this._services.get(_.IConsole),this._services.get(x.IExceptionPauseService),this._services.get(T.SmartStepper));const r=this._services.get(E.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(u.ILogger).error("internal","Error enabling async stacks",e))),this.breakpointManager.setThread(this._thread),this._services.get(k.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(D.IScriptSkipper).toggleSkippingFile(e),await this._refreshStackTrace(),{}}async _canPrettyPrintSource(e){if(!e.source)return{canPrettyPrint:!1};e.source.path=h.platformPathToPreferredCase(e.source.path);const t=this.sourceContainer.source(e.source);return t?{canPrettyPrint:t.canPrettyPrint()}:f.createSilentError(M(9,null))}async _prettyPrintSource(e){if(!e.source)return{canPrettyPrint:!1};e.source.path=h.platformPathToPreferredCase(e.source.path);const t=this.sourceContainer.source(e.source);if(!t)return f.createSilentError(M(10,null));const r=await t.prettyPrint();if(!r)return f.createSilentError(M(11,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(S.Diagnostics).generateHtml()};return e.fromSuggestion&&this._services.get(y.ITelemetryReporter).report("diagnosticPrompt",{event:"opened"}),t}async _requestCDPProxy(){return await this._cdpProxyProvider.proxy()}dispose(){this._disposables.dispose(),(0,g.disposeContainer)(this._services)}}t.DebugAdapter=R},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,`<!DOCTYPE html>\n      <html lang="en">\n      <head>\n        <meta charset="UTF-8">\n        <meta name="viewport" content="width=device-width, initial-scale=1.0">\n        <title>Document</title>\n      </head>\n      <body>\n        <script>window.DUMP=${JSON.stringify(await this.generateObject())}<\/script>\n        <script>${await this.fs.readFile(u.toolPath,"utf-8")}<\/script>\n      </body>\n      </html>`),e}dumpBreakpoints(){const e=[];for(const t of[this.breakpoints.appliedByPath,this.breakpoints.appliedByRef])for(const r of t.values())for(const t of r){const r=t.diagnosticDump();e.push({source:r.source,params:r.params,cdp:r.cdp.map((e=>1===e.state?Object.assign(Object.assign({},e),{uiLocations:e.uiLocations.map((e=>this.dumpUiLocation(e)))}):Object.assign(Object.assign({},e),{done:void 0})))})}return e}dumpSources(){const e=[];let t=0;for(const r of this.sources.sources)e.push((async()=>({uniqueId:t++,url:r.url,sourceReference:r.sourceReference,absolutePath:r.absolutePath,actualAbsolutePath:await r.existingAbsolutePath(),scriptIds:r.scriptIds(),prettyName:await r.prettyName(),compiledSourceRefToUrl:r instanceof h.SourceFromMap?[...r.compiledToSourceUrl.entries()].map((([e,t])=>[e.sourceReference,t])):void 0,sourceMap:r.sourceMap&&{url:r.sourceMap.url,metadata:r.sourceMap.metadata,sources:(0,c.mapValues)(Object.fromEntries(r.sourceMap.sourceByUrl),(e=>e.sourceReference))}}))());return Promise.all(e)}dumpUiLocation(e){return{lineNumber:e.lineNumber,columnNumber:e.columnNumber,sourceReference:e.source.sourceReference}}};f=n([(0,o.injectable)(),i(0,(0,o.inject)(l.FS)),i(1,(0,o.inject)(h.SourceContainer)),i(2,(0,o.inject)(d.BreakpointManager)),i(3,(0,o.inject)(p.ITarget))],f),t.Diagnostics=f},68164:function(e,t,r){"use strict";var n,i=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},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticToolSuggester=void 0;const s=r(55053),a=r(5376),c=r(44936),u=r(78986),l=r(58116),p=r(78563),d=r(43224),h=/\/node_modules\/|^node\:/;let f=n=class{constructor(e,t,r){this.telemetry=t,this.experimentation=r,this.disposable=new a.DisposableList,this.hadBreakpoint=!1,this.didVerifyBreakpoint=!1,this.hadNonModuleSourcemap=!1,this.startedAt=Date.now(),this.disposable.push(n.didVerifyEmitter.event((()=>{this.didVerifyBreakpoint=!0}))),n.consecutiveQualifyingSessions>=2&&this.disposable.push((0,u.disposableTimeout)((async()=>{this.currentlyQualifying&&await this.experimentation.getTreatment("diagnosticPrompt",!0)&&(t.report("diagnosticPrompt",{event:"suggested"}),n.didSuggest=!0,e.suggestDiagnosticTool({}))}),5e3))}get currentlyQualifying(){return this.hadBreakpoint&&!this.didVerifyBreakpoint&&this.hadNonModuleSourcemap}notifyHadBreakpoint(){this.hadBreakpoint=!0}notifyVerifiedBreakpoint(){this.didVerifyBreakpoint||(n.didVerifyEmitter.fire(),n.didSuggest&&(n.didSuggest=!1,this.telemetry.report("diagnosticPrompt",{event:"resolved"})))}attach(e){if(!this.hadNonModuleSourcemap){const t=this.disposable.push(e.Debugger.on("scriptParsed",(e=>{e.sourceMapURL&&!h.test(e.url)&&(this.hadNonModuleSourcemap=!0,this.disposable.disposeObject(t))})))}}dispose(){this.currentlyQualifying&&Date.now()-2500>this.startedAt?n.consecutiveQualifyingSessions++:n.consecutiveQualifyingSessions=0,this.disposable.dispose()}};f.consecutiveQualifyingSessions=0,f.didVerifyEmitter=new c.EventEmitter,f.didSuggest=!1,f=n=i([(0,s.injectable)(),o(0,(0,s.inject)(l.IRootDapApi)),o(1,(0,s.inject)(d.ITelemetryReporter)),o(2,(0,s.inject)(p.IExperimentationService))],f),t.DiagnosticToolSuggester=f},45997: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.Evaluator=t.IEvaluator=t.returnValueStr=void 0;const o=r(26487),s=r(6113),a=r(38347),c=r(55053),u=r(63216),l=r(72223),p=r(34285),d=r(56102);t.returnValueStr="$returnValue";const h=()=>"__js_debug_hoisted_"+(0,s.randomBytes)(8).toString("hex");t.IEvaluator=Symbol("IEvaluator");let f=class{constructor(e,t){this.cdp=e,this.renameProvider=t}get hasReturnValue(){return!!this.returnValue}setReturnedValue(e){this.returnValue=e}prepare(e,{isInternalScript:r,hoist:n,renames:i}={}){!1!==r&&(e+=(0,d.getSourceSuffix)());const o=new Map;o.set(t.returnValueStr,h());for(const e of null!=n?n:[])o.set(e,h());const{transformed:s,hoisted:a}=this.replaceVariableInExpression(e,o,i);return a.size?{canEvaluateDirectly:!1,invoke:(e,r={})=>Promise.all([...o].map((([e,n])=>this.hoistValue(e===t.returnValueStr?this.returnValue:r[e],n)))).then((()=>this.cdp.Debugger.evaluateOnCallFrame(Object.assign(Object.assign({},e),{expression:s}))))}:{canEvaluateDirectly:!0,invoke:e=>this.cdp.Debugger.evaluateOnCallFrame(Object.assign(Object.assign({},e),{expression:s}))}}async evaluate(e,t){if(!("callFrameId"in e))return this.cdp.Runtime.evaluate(e);let r=t;if(null==t?void 0:t.stackFrame){const e=await this.renameProvider.provideOnStackframe(t.stackFrame);r=Object.assign(Object.assign({},r),{renames:{mapping:e,position:t.stackFrame.rawPosition}})}return this.prepare(e.expression,r).invoke(e)}async hoistValue(e,t){const r=null==e?void 0:e.objectId,n=`setTimeout(() => { delete globalThis.${t} }, 0)`;r?await this.cdp.Runtime.callFunctionOn({objectId:r,functionDeclaration:`function() { globalThis.${t} = this; ${n}; ${(0,d.getSourceSuffix)()} }`}):await this.cdp.Runtime.evaluate({expression:`globalThis.${t} = ${JSON.stringify(null==e?void 0:e.value)};${n};`+(0,d.getSourceSuffix)()})}replaceVariableInExpression(e,t,r){const n=new Set;let i=!1;const s=(e,t)=>({type:"ConditionalExpression",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:e}},operator:"!==",right:{type:"Literal",value:"undefined"}},consequent:{type:"Identifier",name:e},alternate:t}),c=[],u=(0,a.replace)((0,l.parseProgram)(e),{enter(o){const a=o;if("Identifier"!==o.type||"."===e[a.start-1])return;const c=t.get(o.name);if(c)return n.add(o.name),i=!0,this.skip(),s(c,m);const u=null==r?void 0:r.mapping.getCompiledName(o.name,r.position);return u?(i=!0,this.skip(),s(u,o)):void 0},leave:()=>{c.pop()}});return{hoisted:n,transformed:i?(0,o.generate)(u):e}}};f=n([(0,c.injectable)(),i(0,(0,c.inject)(u.ICdpApi)),i(1,(0,c.inject)(p.IRenameProvider))],f),t.Evaluator=f;const m={type:"Identifier",name:"undefined"}},92249: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.ExceptionPauseService=t.IExceptionPauseService=void 0;const o=r(55053),s=r(7678),a=r(78986),c=r(33763),u=r(73454),l=r(58116),p=r(44413),d=r(1032),h=r(41222),f=r(45997),m=r(46989),g=r(44873);t.IExceptionPauseService=Symbol("IExceptionPauseService");let y=class{constructor(e,t,r,n,i){this.evaluator=e,this.scriptSkipper=t,this.dap=r,this.sourceContainer=i,this.state={cdp:"none"},this.blocker=(0,a.getDeferred)(),this.noDebug=!!n.noDebug,this.breakOnError=n.__breakOnConditionalError,this.blocker.resolve()}get launchBlocker(){return this.blocker.promise}async setBreakpoints(e){if(!this.noDebug){try{this.state=this.parseBreakpointRequest(e)}catch(e){if(!(e instanceof d.ProtocolError))throw e;return void this.dap.output({category:"stderr",output:e.message})}this.cdp?await this.sendToCdp(this.cdp):"none"!==this.state.cdp&&this.blocker.hasSettled()&&(this.blocker=(0,a.getDeferred)())}}async shouldPauseAt(e){var t;if("exception"!==e.reason&&"promiseRejection"!==e.reason||"none"===this.state.cdp)return!1;if(this.shouldScriptSkip(e))return!1;const r=this.state.condition;if(null===(t=e.data)||void 0===t?void 0:t.uncaught){if(r.uncaught&&!await this.evalCondition(e,r.uncaught))return!1}else if(r.caught&&!await this.evalCondition(e,r.caught))return!1;return!0}async apply(e){this.cdp=e,"none"!==this.state.cdp&&await this.sendToCdp(e)}async sendToCdp(e){await e.Debugger.setPauseOnExceptions({state:this.state.cdp}),this.blocker.resolve()}async evalCondition(e,t){const r=await t({callFrameId:e.callFrames[0].callFrameId},{error:e.data});return!!(null==r?void 0:r.result.value)}shouldScriptSkip(e){var t;if((null===(t=e.data)||void 0===t?void 0:t.uncaught)||!e.callFrames.length)return!1;const r=this.sourceContainer.getScriptById(e.callFrames[0].location.scriptId);return!!r&&this.scriptSkipper.isScriptSkipped(r.url)}parseBreakpointRequest(e){var t;const r=(null!==(t=e.filterOptions)&&void 0!==t?t:[]).concat(e.filters.map((e=>({filterId:e}))));let n="none";const i=[],o=[];for(const{filterId:e,condition:t}of r)"all"===e?(n="all",t&&i.push(e)):"uncaught"===e&&("none"===n&&(n="uncaught"),t&&o.push(e));const a=e=>{if(0===e.length)return;const t="!!("+r.map((e=>e.condition)).filter(s.truthy).join(") || !!(")+")",n=(0,c.getSyntaxErrorIn)(t);if(n)throw new d.ProtocolError((0,p.invalidBreakPointCondition)({line:0,condition:t},n.message));const i=this.breakOnError?(0,h.wrapBreakCondition)(t):t;return this.evaluator.prepare(i,{hoist:["error"]}).invoke};return"none"===n?{cdp:n}:{cdp:n,condition:{caught:a(i),uncaught:a(o)}}}};y=n([(0,o.injectable)(),i(0,(0,o.inject)(f.IEvaluator)),i(1,(0,o.inject)(m.IScriptSkipper)),i(2,(0,o.inject)(l.IDapApi)),i(3,(0,o.inject)(u.AnyLaunchConfiguration)),i(4,(0,o.inject)(g.SourceContainer))],y),t.ExceptionPauseService=y},25901:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatCssAsAnsi=t.formatMessage=void 0;const i=n(r(32438)),o=r(22969);function s(e){try{return new i.default(e).ansi256().object().ansi256}catch(e){}}t.formatMessage=function(e,t,r){const n=function(e,t){if(!e.includes("%"))return[{type:"string",value:e}];const r=[];function n(e){if(!e)return;const t=r[r.length-1];"string"===(null==t?void 0:t.type)?t.value+=e:r.push({type:"string",value:e})}function i(e,t,n){r.push({type:"specifier",specifier:e,precision:t,substitutionIndex:n})}let o=0,s=0;const a=new RegExp(`%%|%(?:(\\d+)\\$)?(?:\\.(\\d*))?([${t.join("")}])`,"g");for(let t=a.exec(e);t;t=a.exec(e)){const r=t.index;if(r>o&&n(e.substring(o,r)),"%%"===t[0])n("%");else{const[,e,r,n]=t;e&&Number(e)>0&&(s=Number(e)-1),i(n,r?Number(r):void 0,s),++s}o=r+t[0].length}return n(e.substring(o)),r}(e,Array.from(r.keys())),i=new Set,s=r.get("");if(!s)throw new Error("Expected to hav a default formatter");const a=new o.BudgetStringBuilder(1e4);let c=!1;for(let e=0;a.checkBudget()&&e<n.length;++e){const o=n[e];if("string"===o.type){a.append(o.value);continue}const u=o.substitutionIndex;if(u>=t.length){a.append("%"+(o.precision||"")+o.specifier);continue}i.add(u),"c"===o.specifier&&(c=!0);const l=r.get(o.specifier)||s;a.append(l(t[u],{budget:a.budget(),quoted:!1}))}c&&a.append("");for(let r=0;a.checkBudget()&&r<t.length;++r)i.has(r)||(i.add(r),(e||r)&&a.append(" "),a.append(s(t[r],{budget:a.budget(),quoted:!1})));return{result:a.build(),usedAllSubs:i.size===t.length}},t.formatCssAsAnsi=function(e){const t=/\s*(.*?)\s*:\s*(.*?)\s*(?:;|$)/g;let r="",n=t.exec(e);for(;null!==n;){if(3===n.length)switch(n[1]){case"color":const e=s(n[2]);e&&(r+=`[38;5;${e}m`);break;case"background":case"background-color":const t=s(n[2]);t&&(r+=`[48;5;${t}m`);break;case"font-weight":"bold"===n[2]&&(r+="");break;case"font-style":"italic"===n[2]&&(r+="");break;case"text-decoration":"underline"===n[2]&&(r+="")}n=t.exec(e)}return r}},68382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContextForType=void 0;const r=e=>e.replace(/\\/gm,"\\\\").replace(/\n/gm,"\\n").replace(/\r/gm,"\\r").replace(/\t/gm,"\\t"),n={budget:1e5,quoted:!0},i={budget:1e3,quoted:!0,postProcess:r},o={budget:1/0,quoted:!1},s={budget:1e3,quoted:!0,postProcess:r},a={budget:100,quoted:!0};t.getContextForType=e=>{switch(e){case"repl":return n;case"hover":case"propertyValue":return i;case"watch":return s;case"copy":case"clipboard":return o;default:return a}}},28951: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.__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.messageFormatters=t.formatAsTable=t.previewException=t.internalPropertyWeight=t.privatePropertyWeight=t.propertyWeight=t.previewRemoteObject=t.isArray=t.previewAsObject=t.subtypesWithoutPreview=void 0;const s=r(22969),a=o(r(36268)),c=o(r(25901)),u=r(68382);function l(e){return"function"===e.type||"object"===e.type&&!t.subtypesWithoutPreview.has(e.subtype)}function p(e){return"array"===e.subtype||"typedarray"===e.subtype}function d(e,t){return"function"===e.type?b(e.description,t.budget):"object"===e.type&&"node"===e.subtype?e.description:"preview"in e&&e.preview?h(e.preview,t.budget):y(e,t.budget,t.quoted)}function h(e,t){return p(e)?function(e,t){const r=new s.BudgetStringBuilder(t);let n=e.description;const i=n.match(/[^(]*\(([\d]+)\)/);if(!i)return n;const o=parseInt(i[1],10);n.startsWith("Array(")&&(n=n.substring("Array".length)),r.append(a.trimEnd(n,r.budget())),r.append(" ");const c=new s.BudgetStringBuilder(r.budget()-2,", ");let u=-1;for(const t of e.properties){if(!c.checkBudget())break;if(isNaN(t.name))continue;const e=parseInt(t.name,10);e>u+1&&c.appendEllipsis(),u=e,c.append(g(t,c.budget()))}o>u+1&&c.appendEllipsis();for(const t of e.properties){if(!c.checkBudget())break;isNaN(t.name)&&c.append(g(t,c.budget(),t.name))}return e.overflow&&c.appendEllipsis(),r.append("["+c.build()+"]"),r.build()}(e,t):"internal#entry"===e.subtype?a.trimEnd(e.description||"",t):"function"===e.type?b(e.description,t):l(e)?function(e,t){const r=new s.BudgetStringBuilder(t," ");"Object"!==e.description&&r.append(a.trimEnd(e.description,r.budget()));const n=new Map,i=e.properties||[];for(const e of i)n.set(e.name,e);const o=n.get("[[PrimitiveValue]]");if(o)return r.append(`(${g(o,r.budget()-2)})`),r.build();const c=n.get("[[PromiseStatus]]"),u=n.get("[[PromiseValue]]");if(c&&u)return"pending"===c.value?r.append(`{<${c.value}>}`):r.append(`{${g(u,r.budget()-2,`<${c.value}>`)}}`),r.build();const l=n.get("[[GeneratorStatus]]");if(l)return r.append(`{<${l.value}>}`),r.build();const p=new s.BudgetStringBuilder(r.budget()-2,", ");for(const e of i){if(!p.checkBudget())break;p.append(g(e,p.budget(),e.name))}for(const t of e.entries||[]){if(!p.checkBudget())break;if(t.key){const e=h(t.key,Math.min(20,p.budget())),r=h(t.value,Math.min(20,p.budget()-e.length-4));p.append(m(e," => ",r,p.budget()))}else p.append(h(t.value,Math.min(20,p.budget())))}e.overflow&&p.appendEllipsis();const d=p.build();return d?r.append("{"+d+"}"):r.isEmpty()&&r.append("{}"),r.build()}(e,t):function(e,t){var r;return"object"===e.type&&"null"===e.subtype?f("null",t):"undefined"===e.type?f("undefined",t):"string"===e.type?a.trimMiddle(null!==(r=e.description)&&void 0!==r?r:e.value,t):function(e,t){return e.length>=t?e.slice(0,t-1)+"…":e}(e.description||"",t)}(e,t)}function f(e,t){return e.length<=t?e:"…"}function m(e,t,r,n){return void 0===e?a.trimMiddle(r,n):e.length+t.length>n?a.trimEnd(e,n):`${e}${t}${a.trimMiddle(r,n-e.length-t.length)}`}function g(e,t,r){var n;return t=Math.min(t,100),"function"===e.type?m(r,": ","ƒ",t):"object"===e.type&&"Object"===e.value?m(r,": ","{…}",t):void 0===e.value?m(r,": ",`<${e.type}>`,t):"string"===e.type?m(r,": ",`'${e.value}'`,t):m(r,": ",null!==(n=e.value)&&void 0!==n?n:"unknown",t)}function y(e,t,r){if("string"===e.type){const n=e.value||(e.description?e.description:""),i=a.trimMiddle(n,r?t-2:t);return r?`'${i}'`:i}return"undefined"===e.type?"undefined":"null"===e.subtype?"null":e.description?a.trimEnd(e.description,Math.max(t,1e5)):a.trimEnd(String("value"in e?e.value:e.description),t)}function b(e,t){const r=new s.BudgetStringBuilder(t),n=e.replace(/^function [gs]et /,"function ").replace(/^function [gs]et\(/,"function(").replace(/^[gs]et /,""),i=n.match(/^(async\s+function)/),o=n.startsWith("function*"),a=n.startsWith("*"),c=!o&&n.startsWith("function"),u=n.startsWith("class ")||n.startsWith("class{"),l=n.indexOf("=>"),p=!i&&!o&&!c&&!u&&l>0;let d;if(u){d=n.substring("class".length);const e=/^[^{\s]+/.exec(d.trim());let t="";e&&(t=e[0].trim()||""),f("class",d,t)}else if(i)d=n.substring(i[1].length),f("async ƒ",d,h(d));else if(o)d=n.substring("function*".length),f("ƒ*",d,h(d));else if(a)d=n.substring("*".length),f("ƒ*",d,h(d));else if(c)d=n.substring("function".length),f("ƒ",d,h(d));else if(p){let e=n;n.length>30&&(e=n.substring(0,l+2)+" {…}"),f("",n,e)}else f("ƒ",n,h(n));return r.build();function h(e){const t=e.indexOf("("),r=e.match(/\)\s*{/),n=r&&r.index||0;return-1!==t&&r&&n>t?(e.substring(0,t).trim()||"")+e.substring(t,n+1):"()"}function f(e,t,n){r.checkBudget()&&(e.length&&r.append(e+" "),(t=t.trim()).endsWith(" { [native code] }")&&(t=t.substring(0,t.length-" { [native code] }".length)),r.budget()>=t.length?r.append(t):r.append(n.replace(/\n/g," ")))}}function v(e,t,r){if("number"===e.type)return String(e.value);if("bigint"===e.type)return e.description;const n=e,i="number"==typeof n.value?n.value:+String(n.description);return a.trimEnd(String(t?Math.floor(i):i),r)}function w(e,t){return e.length===t?e:e.length<t?e+" ".repeat(t-e.length):a.trimEnd(e,t)}t.subtypesWithoutPreview=new Set(["null","regexp","date"]),t.previewAsObject=l,t.isArray=p,t.previewRemoteObject=function(e,t){var r,n;const i=(0,u.getContextForType)(t),o=d(e,i);return null!==(n=null===(r=i.postProcess)||void 0===r?void 0:r.call(i,o))&&void 0!==n?n:o},t.propertyWeight=function(e){return"__proto__"===e.name?0:e.name.startsWith("__")?1:100},t.privatePropertyWeight=function(e){return 20},t.internalPropertyWeight=function(e){return 10},t.previewException=function(e){var t,r;const n=e;if("object"!==n.type||"null"===n.subtype)return{title:y(n,1e4,!1)};const i=null!==(r=null!==(t=n.description)&&void 0!==t?t:n.className)&&void 0!==r?r:"Error",o=/^\s+at\s/m.exec(i);if(!o){const e=i.lastIndexOf("\n");return-1===e?{title:i}:{title:i.substring(0,e)}}return{title:i.substring(0,o.index-1),stackTrace:i.substring(o.index+2)}},t.formatAsTable=function(e){var t;const r=[],n=new Set([void 0]),i=new Map;for(const o of e.properties.filter((e=>e.valuePreview))){const e=new Map;e.set(void 0,o.name),i.set(void 0,Math.max(i.get(void 0)||0,o.name.length)),r.push(e),null===(t=o.valuePreview)||void 0===t||t.properties.map((t=>{t.value&&(n.add(t.name),e.set(t.name,t.value),i.set(t.name,Math.max(i.get(t.name)||0,t.value.length)))}))}for(const e of n.values())e&&i.set(e,Math.max(i.get(e)||0,e.length));const o=Array.from(i.values()).reduce(((e,t)=>e+t),0),s=116-3*(n.size-1);if(o>s){const e=s/o;for(const t of i.keys()){const r=Math.max(3,i.get(t)*e|0);i.set(t,r)}}const c=[];for(const e of n.values())c.push("-".repeat(i.get(e)));const u="[-"+c.join("-|-")+"-]",l=[];l.push(u.replace("[","╭").replace(/\|/g,"┬").replace("]","╮").replace(/-/g,"┄"));const p=[];for(const e of n.values())p.push(w(e||"",i.get(e)));l.push("┊ "+p.join(" ┊ ")+" ┊"),l.push(u.replace("[","├").replace(/\|/g,"┼").replace("]","┤").replace(/-/g,"┄"));for(const e of r){const t=[];for(const r of n.values())t.push(w(e.get(r)||"",i.get(r)));l.push("┊ "+t.join(" ┊ ")+" ┊")}return l.push(u.replace("[","╰").replace(/\|/g,"┴").replace("]","╯").replace(/-/g,"┄")),l.map((e=>a.trimEnd(e,120))).join("\n")},t.messageFormatters=new Map([["",(e,t)=>d(e,t)],["s",(e,t)=>function(e,t){return a.trimMiddle(String(void 0!==e.value?e.value:e.description),t)}(e,t.budget)],["i",(e,t)=>v(e,!0,t.budget)],["d",(e,t)=>v(e,!0,t.budget)],["f",(e,t)=>v(e,!1,t.budget)],["c",e=>c.formatCssAsAnsi(e.value)],["o",(e,t)=>d(e,t)],["O",(e,t)=>d(e,t)]])},93134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserPerformanceProvider=void 0,t.BrowserPerformanceProvider=class{constructor(){this.didEnable=new WeakSet}async retrieve(e){this.didEnable.has(e)||(this.didEnable.add(e),await e.Performance.enable({}));const t=await e.Performance.getMetrics({});if(!t)return{error:"Error in CDP"};const r={};for(const e of t.metrics)r[e.name]=e.value;return{metrics:r}}}},80935: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.PerformanceProviderFactory=t.IPerformanceProvider=void 0;const o=r(55053),s=r(50036),a=r(93134),c=r(72273);t.IPerformanceProvider=Symbol("IPerformanceProvider");let u=class{constructor(e){this.target=e}create(){return"node"===this.target.type()?new c.NodePerformanceProvider:new a.BrowserPerformanceProvider}};u=n([(0,o.injectable)(),i(0,(0,o.inject)(s.ITarget))],u),t.PerformanceProviderFactory=u},72273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodePerformanceProvider=void 0;const n=r(56102);t.NodePerformanceProvider=class{async retrieve(e){const t=await e.Runtime.evaluate({expression:`({\n        memory: process.memoryUsage(),\n        cpu: process.cpuUsage(),\n        timestamp: Date.now(),\n        resourceUsage: process.resourceUsage && process.resourceUsage(),\n      })${(0,n.getSourceSuffix)()}`,returnByValue:!0});return t?t.exceptionDetails?{error:t.exceptionDetails.text}:{metrics:t.result.value}:{error:"No response from CDP"}}}},91183: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.__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.PortLeaseTracker=t.IPortLeaseTracker=t.acquireTrackedWebSocketServer=t.acquireTrackedServer=void 0;const c=r(55053),u=s(r(41808)),l=r(25370),p=r(44936),d=r(77551),h=r(78986),f=r(99010);t.acquireTrackedServer=async(e,t,r,n=l.NeverCancelled)=>{const i=r?await(0,d.waitForServerToListen)(u.createServer(t).listen(r,"127.0.0.1"),n):await(0,d.findOpenPort)({tester:(0,d.makeAcquireTcpServer)(t)},n),o=e.register(i.address().port);return i.on("close",(()=>o.dispose())),i.on("error",(()=>o.dispose())),i},t.acquireTrackedWebSocketServer=async(e,t,r)=>{const n=await(0,d.findOpenPort)({tester:(0,d.makeAcquireWebSocketServer)(t)},r),i=e.register(n.address().port);return n.on("close",(()=>i.dispose())),n.on("error",(()=>i.dispose())),n},t.IPortLeaseTracker=Symbol("IPortLeaseTracker");let m=class{constructor(e){this.usedPorts=new Set,this.onRegistered=new p.EventEmitter,this.isMandated="remote"===e}register(e){return this.usedPorts.add(e),this.onRegistered.fire(e),{dispose:()=>this.usedPorts.delete(e)}}isRegistered(e,t=2e3){return this.usedPorts.has(e)?Promise.resolve(!0):e<53e3||e>=54e3?Promise.resolve(!1):(0,l.cancellableRace)([()=>(0,h.delay)(t).then((()=>!1)),t=>new Promise((r=>{const n=this.onRegistered.event((t=>{t===e&&r(!0)}));t.onCancellationRequested((()=>n.dispose()))}))])}};m=o([(0,c.injectable)(),a(0,(0,c.inject)(f.ExtensionLocation))],m),t.PortLeaseTracker=m},23200: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.ProfileController=t.IProfileController=void 0;const o=r(55053),s=r(63216),a=r(23601),c=r(44413),u=r(1032),l=r(31939),p=r(82122),d=r(71017),h=r(22037),f=r(6113);t.IProfileController=Symbol("IProfileController");let m=class{constructor(e,t,r){this.cdp=e,this.factory=t,this.breakpoints=r}connect(e,t){e.on("startProfile",(async r=>(await this.start(e,t,r),{}))),e.on("stopProfile",(()=>this.stopProfiling(e))),t.onPaused((()=>this.stopProfiling(e)))}async start(e,t,r){if(this.profile)throw new u.ProtocolError((0,c.invalidConcurrentProfile)());this.profile=this.startProfileInner(e,t,r).catch((e=>{throw this.profile=void 0,e})),await this.profile}async startProfileInner(e,t,r){var n;let i,o=!1;if(null===(n=r.stopAtBreakpoint)||void 0===n?void 0:n.length){const e=new Set(r.stopAtBreakpoint);o=!0,i=t=>!(t instanceof p.UserDefinedBreakpoint)||e.has(t.dapId)}else i=()=>!1;await this.breakpoints.applyEnabledFilter(i);const s=(0,d.join)((0,h.tmpdir)(),`vscode-js-profile-${(0,f.randomBytes)(4).toString("hex")}`),a=await this.factory.get(r.type).start(r,s),c={file:s,profile:a,enableFilter:i,keptDebuggerOn:o};a.onUpdate((t=>e.profilerStateUpdate({label:t,running:!0}))),a.onStop((()=>this.disposeProfile(c)));const u=!!t.pausedDetails();return o?await t.resume():u&&(await this.cdp.Debugger.disable({}),u&&t.onResumed()),e.profileStarted({file:c.file,type:r.type}),c}async stopProfiling(e){var t;const r=await(null===(t=this.profile)||void 0===t?void 0:t.catch((()=>{})));return r&&this.profile?(this.profile=void 0,await(null==r?void 0:r.profile.stop()),e.profilerStateUpdate({label:"",running:!1}),{}):{}}async disposeProfile({profile:e,enableFilter:t,keptDebuggerOn:r}){r||await this.cdp.Debugger.enable({}),await this.breakpoints.applyEnabledFilter(void 0,t),e.dispose()}};m=n([(0,o.injectable)(),i(0,(0,o.inject)(s.ICdpApi)),i(1,(0,o.inject)(a.IProfilerFactory)),i(2,(0,o.inject)(l.BreakpointManager))],m),t.ProfileController=m},58269: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.__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.BasicCpuProfiler=void 0;const c=r(55053),u=s(r(33463)),l=r(63216),p=r(44936),d=r(73454),h=r(44413),f=r(1032),m=r(99010),g=r(44873),y=u.loadMessageBundle(r(71017).join(__dirname,"adapter/profiling/basicCpuProfiler.js"));let b=class{constructor(e,t,r,n){this.cdp=e,this.fs=t,this.sources=r,this.launchConfig=n}static canApplyTo(){return!0}async start(e,t){if(await this.cdp.Profiler.enable({}),!await this.cdp.Profiler.start({}))throw new f.ProtocolError((0,h.profileCaptureError)());return new v(this.cdp,this.fs,this.sources,this.launchConfig.__workspaceFolder,t)}};b.type="cpu",b.extension=".cpuprofile",b.label=y(0,null),b.description=y(1,null),b.editable=!0,b=o([(0,c.injectable)(),a(0,(0,c.inject)(l.ICdpApi)),a(1,(0,c.inject)(m.FS)),a(2,(0,c.inject)(g.SourceContainer)),a(3,(0,c.inject)(d.AnyLaunchConfiguration))],b),t.BasicCpuProfiler=b;class v{constructor(e,t,r,n,i){this.cdp=e,this.fs=t,this.sources=r,this.workspaceFolder=n,this.file=i,this.stopEmitter=new p.EventEmitter,this.disposed=!1,this.onUpdate=(new p.EventEmitter).event,this.onStop=this.stopEmitter.event}async dispose(){this.disposed||(this.disposed=!0,await this.cdp.Profiler.disable({}),this.stopEmitter.fire())}async stop(){const e=await this.cdp.Profiler.stop({});if(!e)throw new f.ProtocolError((0,h.profileCaptureError)());await this.dispose();const t=await this.annotateSources(e.profile);await this.fs.writeFile(this.file,JSON.stringify(t))}async annotateSources(e){let t=0;const r=new Map,n=e=>{const n=[e.functionName,e.url,e.scriptId,e.lineNumber,e.columnNumber].join(":"),i=r.get(n);if(i)return i.id;const o=t++;return r.set(n,{id:o,callFrame:e,locations:(async()=>{var t;const r=await(null===(t=this.sources.getScriptById(e.scriptId))||void 0===t?void 0:t.source);return r?Promise.all(this.sources.currentSiblingUiLocations({lineNumber:e.lineNumber+1,columnNumber:e.columnNumber+1,source:r}).map((async e=>Object.assign(Object.assign({},e),{source:await e.source.toDapShallow()})))):[]})()}),o},i=e.nodes.map((e=>{var t;return Object.assign(Object.assign({},e),{locationId:n(e.callFrame),positionTicks:null===(t=e.positionTicks)||void 0===t?void 0:t.map((t=>Object.assign(Object.assign({},t),{startLocationId:n(Object.assign(Object.assign({},e.callFrame),{lineNumber:t.line-1,columnNumber:0})),endLocationId:n(Object.assign(Object.assign({},e.callFrame),{lineNumber:t.line,columnNumber:0}))})))})}));return Object.assign(Object.assign({},e),{nodes:i,$vscode:{rootPath:this.workspaceFolder,locations:await Promise.all([...r.values()].sort(((e,t)=>e.id-t.id)).map((async e=>({callFrame:e.callFrame,locations:await e.locations}))))}})}}},30308: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.__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.HeapDumpProfiler=void 0;const c=r(57147),u=r(55053),l=s(r(33463)),p=r(63216),d=r(44936),h=l.loadMessageBundle(r(71017).join(__dirname,"adapter/profiling/heapDumpProfiler.js"));let f=class{constructor(e){this.cdp=e,this.cdp.HeapProfiler.on("addHeapSnapshotChunk",(({chunk:e})=>{var t;return null===(t=this.currentWriter)||void 0===t?void 0:t.stream.write(e)}))}static canApplyTo(){return!0}async start(e,t){return{onStop:(new d.EventEmitter).event,onUpdate:(new d.EventEmitter).event,dispose:()=>{},stop:async()=>{await this.cdp.HeapProfiler.enable({}),await this.dumpToFile(t),await this.cdp.HeapProfiler.disable({})}}}async dumpToFile(e){const{stream:t,promise:r}=this.currentWriter={stream:(0,c.createWriteStream)(e),promise:this.cdp.HeapProfiler.takeHeapSnapshot({})};await r,t.end(),this.currentWriter=void 0}};f.type="memory",f.extension=".heapsnapshot",f.label=h(0,null),f.description=h(1,null),f.instant=!0,f=o([(0,u.injectable)(),a(0,(0,u.inject)(p.ICdpApi))],f),t.HeapDumpProfiler=f},23601:function(e,t,r){"use strict";var n,i=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},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilerFactory=t.IProfilerFactory=void 0;const s=r(55053),a=r(99010),c=r(58269),u=r(30308);t.IProfilerFactory=Symbol("IProfilerFactory");let l=n=class{constructor(e){this.container=e}get(e){const t=n.ctors.find((t=>t.type===e));if(!t)throw new Error(`Invalid profilter type ${e}`);return this.container.get(t)}};l.ctors=[c.BasicCpuProfiler,u.HeapDumpProfiler],l=n=i([(0,s.injectable)(),o(0,(0,s.inject)(a.IContainer))],l),t.ProfilerFactory=l},31868: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.__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)}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BasicResourceProvider=void 0;const u=c(r(57052)),l=s(r(97409)),p=r(55053),d=r(42954),h=r(25370),f=r(5376),m=r(97208),g=r(99010),y=r(83739);let b=class{constructor(e,t){this.fs=e,this.options=t}async fetch(e,t=h.NeverCancelled,r){try{return{ok:!0,url:e,body:(0,u.default)(e).toString("utf-8"),statusCode:200}}catch(e){}const n=(0,m.isAbsolute)(e)?e:(0,m.fileUrlToAbsolutePath)(e);if(n)try{return{ok:!0,url:e,body:await this.fs.readFile(n,"utf-8"),statusCode:200}}catch(t){return{ok:!1,url:e,error:t,statusCode:200}}return this.fetchHttp(e,t,r)}async fetchJson(e,t,r){const n=await this.fetch(e,t,Object.assign({Accept:"application/json"},r));if(!n.ok)return n;try{return Object.assign(Object.assign({},n),{body:JSON.parse(n.body)})}catch(t){return Object.assign(Object.assign({},n),{ok:!1,url:e,error:t})}}async fetchHttp(e,t,r){var n;const i=new URL(e),o={headers:r,followRedirect:!0};"http:"!==i.protocol&&await(0,m.isLoopback)(e)&&(o.rejectUnauthorized=!1),null===(n=this.options)||void 0===n||n.provideOptions(o,e);const s=await this.requestHttp(e,o,t);return 503===s.statusCode&&"localhost"===i.hostname?(i.hostname="127.0.0.1",this.requestHttp(i.toString(),o,t)):s}async requestHttp(e,t,r){var n,i,o,s;null===(n=this.options)||void 0===n||n.provideOptions(t,e);const a=new f.DisposableList;try{const n=(0,l.default)(e,t);a.push(r.onCancellationRequested((()=>n.cancel())));const i=await n;return{ok:!0,url:e,body:i.body,statusCode:i.statusCode}}catch(t){if(!(t instanceof l.RequestError))throw t;const r=t.response?String(null===(i=t.response)||void 0===i?void 0:i.body):t.message,n=null!==(s=null===(o=t.response)||void 0===o?void 0:o.statusCode)&&void 0!==s?s:503;return{ok:!1,body:r,statusCode:n,url:e,error:new d.HttpStatusError(n,e,r)}}finally{a.dispose()}}};b=o([(0,p.injectable)(),a(0,(0,p.inject)(g.FS)),a(1,(0,p.optional)()),a(1,(0,p.inject)(y.IRequestOptionsProvider))],b),t.BasicResourceProvider=b},41395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeOptions=t.addHeader=void 0,t.addHeader=(e,t,r)=>{t=t.toLowerCase();const n=null==e?void 0:e[t];return Object.assign(Object.assign({},e),{[t]:n?n instanceof Array?n.concat(r):[n,r]:r})},t.mergeOptions=(e,t)=>{const r=e;for(const[e,n]of Object.entries(t))r[e]="object"==typeof n&&n?Object.assign(r[e]||{},n):n}},42954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IResourceProvider=t.HttpStatusError=void 0;class r extends Error{constructor(e,t,r){super(`Unexpected ${e} response from ${t}: ${null!=r?r:"<empty body>"}`),this.statusCode=e,this.url=t,this.body=r}}t.HttpStatusError=r,t.IResourceProvider=Symbol("IResourceProvider")},83739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRequestOptionsProvider=void 0,t.IRequestOptionsProvider=Symbol("IRequestOptionsProvider")},42842: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceProviderState=void 0;const i=r(55053),o=r(41395);let s=class{constructor(){this.cdp=[]}attach(e){return this.cdp.push({cdp:e,enabledNetwork:!1}),{dispose:()=>{this.cdp=this.cdp.filter((t=>t.cdp!==e))}}}async apply(e,t){const r=this.cdp[0];return r&&(t=await this.applyCookies(r,e,t)),t}async applyCookies(e,t,r){var n;e.enabledNetwork||(e.enabledNetwork=!0,await e.cdp.Network.enable({}));const i=await e.cdp.Network.getCookies({urls:[t]});return(null===(n=null==i?void 0:i.cookies)||void 0===n?void 0:n.length)?(0,o.addHeader)(r,"Cookie",i.cookies.sort(((e,t)=>e.path.length-t.path.length)).map((e=>`${e.name}=${e.value}`)).join("; ")):r}};s=n([(0,i.injectable)()],s),t.ResourceProviderState=s},58871: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.StatefulResourceProvider=void 0;const o=r(55053),s=r(63216),a=r(5376),c=r(99010),u=r(31868),l=r(83739),p=r(42842);let d=class extends u.BasicResourceProvider{constructor(e,t,r,n){super(e,n),this.state=t,this.disposables=new a.DisposableList,r&&this.disposables.push(this.state.attach(r))}dispose(){this.disposables.dispose()}async fetchHttp(e,t,r={}){const n=await super.fetchHttp(e,t,r);if(!n.ok){const n=await this.state.apply(e,r);if(n!==r)return await super.fetchHttp(e,t,n)}return n}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(c.FS)),i(1,(0,o.inject)(p.ResourceProviderState)),i(2,(0,o.optional)()),i(2,(0,o.inject)(s.ICdpApi)),i(3,(0,o.optional)()),i(3,(0,o.inject)(l.IRequestOptionsProvider))],d),t.StatefulResourceProvider=d},93241:function(e,t,r){"use strict";var n,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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},a=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)&&i(t,e,r);return o(t,e),t},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptSkipper=void 0;const l=r(55053),p=u(r(48586)),d=r(63216),h=r(18229),f=r(44936),m=r(15501),g=r(94723),y=r(7678),b=a(r(79783)),v=r(78986),w=r(36268),_=a(r(97208)),S=r(73454),k=r(50036),P=r(44873),x=r(56102);let C=n=class{constructor({skipFiles:e},t,r,i){this.logger=t,this.cdp=r,this._nonNodeInternalGlobs=null,this._nodeInternalsGlobs=null,this._scriptsWithSkipping=new Set,this._targetId=i.id(),this._rootTargetId=E(i).id(),this._isUrlSkipped=new h.MapUsingProjection((e=>this._normalizeUrl(e))),this._isAuthoredUrlSkipped=new h.MapUsingProjection((e=>this._normalizeUrl(e))),this._preprocessNodeInternals(e),this._setRegexForNonNodeInternals(e),this._initNodeInternals(i),this._updateSkippedDebounce=(0,y.trailingEdgeThrottle)(500,(()=>this._updateGeneratedSkippedSources())),n.sharedSkipsEmitter.event((e=>{e.rootTargetId===this._rootTargetId&&e.targetId!==this._targetId&&this._toggleSkippingFile(e.params)}))}setSourceContainer(e){this._sourceContainer=e}_preprocessNodeInternals(e){const t=/^<node_internals>[\/\\](.*)$/,r=e.map((e=>{e=e.trim();const r=t.exec(e);return r?r[1]:null})).filter((e=>e));r.length>0&&(this._nodeInternalsGlobs=r)}_setRegexForNonNodeInternals(e){const t=e.filter((e=>!e.includes("<node_internals>"))).map((e=>b.forceForwardSlashes(e))).map(_.lowerCaseInsensitivePath);t.length>0&&(this._nonNodeInternalGlobs=t)}_testSkipNodeInternal(e){return!!this._nodeInternalsGlobs&&(e.startsWith(g.node15InternalsPrefix)&&(e=e.slice(g.node15InternalsPrefix.length)),(0,p.default)([e],this._nodeInternalsGlobs).length>0)}_testSkipNonNodeInternal(e){return!!this._nonNodeInternalGlobs&&(0,p.default)([_.lowerCaseInsensitivePath(b.forceForwardSlashes(e))],this._nonNodeInternalGlobs,{dot:!0}).length>0}_isNodeInternal(e,t){return!!e.startsWith(g.node15InternalsPrefix)||(null==t?void 0:t.has(e))||/^internal\/.+\.js$/.test(e)}async _updateBlackboxedUrls(e){const t=e.map((e=>(0,w.escapeRegexSpecialChars)(e))).map((e=>`^${e}$`));await this.cdp.Debugger.setBlackboxPatterns({patterns:t})}_updateGeneratedSkippedSources(){const e=[];for(const[t,r]of this._isUrlSkipped.entries())r&&e.push(t);return this._updateBlackboxedUrls(e)}_normalizeUrl(e){return b.forceForwardSlashes(e.toLowerCase())}isScriptSkipped(e){const t=this._normalizeUrl(e);return!0===this._isUrlSkipped.get(t)||!0===this._isAuthoredUrlSkipped.get(t)}async _updateSourceWithSkippedSourceMappedSources(e,t){const r=this.isScriptSkipped(e.url),n=[];let i=r;Array.from(e.sourceMap.sourceByUrl.values()).forEach((t=>{let o=this.isScriptSkipped(t.url);if(void 0===o&&(o=r),o!==i){const r=this._sourceContainer.currentSiblingUiLocations({source:t,lineNumber:1,columnNumber:1},e);r[0]?(n.push({lineNumber:r[0].lineNumber-1,columnNumber:r[0].columnNumber-1}),i=!i):this.logger.error("internal","Could not map script beginning for "+t.sourceReference)}}));let o=t;n.length||(o=o.filter((e=>this._scriptsWithSkipping.has(e))),o.forEach((e=>this._scriptsWithSkipping.delete(e)))),await Promise.all(o.map((e=>this.cdp.Debugger.setBlackboxedRanges({scriptId:e,positions:n}))))}initializeSkippingValueForSource(e){var t;const r=null===(t=this._allNodeInternals)||void 0===t?void 0:t.settledValue;this._allNodeInternals&&!r?this._allNodeInternals.promise.then((t=>this._initializeSkippingValueForSource(e,t))):this._initializeSkippingValueForSource(e,r)}_initializeSkippingValueForSource(e,t,r=e.scriptIds()){const n=e instanceof P.SourceFromMap?this._isAuthoredUrlSkipped:this._isUrlSkipped,i=e.url;n.has(this._normalizeUrl(i))||(this._isNodeInternal(i,t)?n.set(i,this._testSkipNodeInternal(i)):e.absolutePath?n.set(i,this._testSkipNonNodeInternal(e.absolutePath)):n.set(i,this._testSkipNonNodeInternal(i)));let o=this.isScriptSkipped(i);if(o&&(0,P.isSourceWithMap)(e)&&Array.from(e.sourceMap.sourceByUrl.values()).forEach((e=>{this._isAuthoredUrlSkipped.set(e.url,!0)})),(0,P.isSourceWithMap)(e)){for(const n of e.sourceMap.sourceByUrl.values())o=this._initializeSkippingValueForSource(n,t,r)||o;this._updateSourceWithSkippedSourceMappedSources(e,r)}return o&&this._updateSkippedDebounce(),o}async _initNodeInternals(e){if("node"!==e.type()||!this._nodeInternalsGlobs||this._allNodeInternals)return;const t=this._allNodeInternals=(0,v.getDeferred)(),r=await this.cdp.Runtime.evaluate({expression:"require('module').builtinModules"+(0,x.getSourceSuffix)(),returnByValue:!0,includeCommandLineAPI:!0});r&&!r.exceptionDetails?t.resolve(new Set(r.result.value.map((e=>e+".js")))):t.resolve(new Set)}async _toggleSkippingFile(e){let t;e.resource&&_.isAbsolute(e.resource)&&(t=e.resource);const r={path:t,sourceReference:e.sourceReference},n=this._sourceContainer.source(r);if(n){const e=!this.isScriptSkipped(n.url);if(n instanceof P.SourceFromMap){this._isAuthoredUrlSkipped.set(n.url,e);const t=Array.from(n.compiledToSourceUrl.keys());await Promise.all(t.map((e=>this._updateSourceWithSkippedSourceMappedSources(e,e.scriptIds()))))}else if(this._isUrlSkipped.set(n.url,e),(0,P.isSourceWithMap)(n))for(const t of n.sourceMap.sourceByUrl.values())this._isAuthoredUrlSkipped.set(t.url,e);await this._updateGeneratedSkippedSources()}return{}}async toggleSkippingFile(e){const t=await this._toggleSkippingFile(e);return n.sharedSkipsEmitter.fire({params:e,rootTargetId:this._rootTargetId,targetId:this._targetId}),t}};function E(e){const t=e.parent();return t?E(t):e}C.sharedSkipsEmitter=new f.EventEmitter,C=n=s([(0,l.injectable)(),c(0,(0,l.inject)(S.AnyLaunchConfiguration)),c(1,(0,l.inject)(m.ILogger)),c(2,(0,l.inject)(d.ICdpApi)),c(3,(0,l.inject)(k.ITarget))],C),t.ScriptSkipper=C},46989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IScriptSkipper=void 0,t.IScriptSkipper=Symbol("IScriptSkipper")},33868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfProfile=void 0;const n=r(31405),i=r(57147);t.SelfProfile=class{constructor(e){this.file=e,this.session=new n.Session,this.session.connect()}async start(){try{await this.post("Profiler.enable")}catch(e){}await this.post("Profiler.start")}async stop(){const{profile:e}=await this.post("Profiler.stop");await i.promises.writeFile(this.file,JSON.stringify(e))}dispose(){this.session.disconnect()}post(e,t){return new Promise(((r,n)=>this.session.post(e,t,((e,t)=>{e?n(e):r(t)}))))}}},67523: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.SmartStepper=t.shouldStepOverStackFrame=void 0;const o=r(55053),s=r(15501),a=r(73454),c=r(44873);async function u(e){const t=await e.uiLocation();return t?t.source.blackboxed()?2:(0,c.isSourceWithMap)(t.source)?t.isMapped||t.unmappedReason!==c.UnmappedReason.MapPositionMissing?0:1:0:0}t.shouldStepOverStackFrame=u;const l=new Set(["breakpoint","exception","entry"]);let p=class{constructor(e,t){this.launchConfig=e,this.logger=t,this._smartStepCount=0}resetSmartStepCount(){this._smartStepCount>0&&(this.logger.verbose("internal",`smartStep: skipped ${this._smartStepCount} steps`),this._smartStepCount=0)}async getSmartStepDirection(e,t){if(!this.launchConfig.smartStep)return;if(l.has(e.reason))return;const r=(await e.stackTrace.loadFrames(1))[0];if(0!==await u(r))return this._smartStepCount++>16?2:"step"===(null==t?void 0:t.reason)?t.direction:0;this.resetSmartStepCount()}};p=n([(0,o.injectable)(),i(0,(0,o.inject)(a.AnyLaunchConfiguration)),i(1,(0,o.inject)(s.ILogger))],p),t.SmartStepper=p},44873: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.__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.base1To0=t.base0To1=t.rawToUiOffset=t.uiToRawOffset=t.SourceContainer=t.UnmappedReason=t.isSourceWithMap=t.SourceFromMap=t.Source=void 0;const c=r(55053),u=r(69272),l=r(71017),p=r(69074),d=r(57310),h=s(r(33463)),f=r(18229),m=r(44936),g=r(15501),y=r(7678),b=r(79783),v=r(78986),w=r(43430),_=r(14090),S=s(r(33763)),k=r(33763),P=s(r(97208)),x=r(73454),C=r(58116),E=r(44413),O=r(99010),D=r(63634),T=r(42954),j=r(46989),A=h.loadMessageBundle(r(71017).join(__dirname,"adapter/sources.js"));function M(e){return"number"==typeof e.lineNumber&&"number"==typeof e.columnNumber&&!!e.source}const R=()=>({source:null,line:null,column:null,name:null,lastColumn:null,isSourceMapLoadFailure:!0}),F={load:0,resolveLocation:2e3,sourceMapMinPause:1e3,output:1e3,sourceMapCumulativePause:1e4};class I{constructor(e,t,r,n,i,o,s,a){this.url=t,this.inlineScriptOffset=o,this.runtimeScriptOffset=s,this._scriptIds=[],this.sourceReference=e.getSourceReference(t),this._contentGetter=(0,y.once)(n),this._container=e,this.absolutePath=r||"",this._fqname=this._fullyQualifiedName(),this._name=this._humanName(),this.setSourceMapUrl(i),this._existingAbsolutePath=S.checkContentHash(this.absolutePath,o||s?void 0:a,e._fileContentOverridesForTest.get(this.absolutePath))}setSourceMapUrl(e){this.sourceMap=e?{url:e,sourceByUrl:new Map,metadata:{sourceMapUrl:e,compiledPath:this.absolutePath||this.url}}:void 0}addScriptId(e){this._scriptIds.push(e)}scriptIds(){return this._scriptIds}async content(){var e;let t=await this._contentGetter();return(null===(e=this.inlineScriptOffset)||void 0===e?void 0:e.lineOffset)&&(t="\n".repeat(this.inlineScriptOffset.lineOffset)+t),t}mimeType(){return"text/javascript"}canPrettyPrint(){return this._container&&!this._name.endsWith("-pretty.js")}async prettyPrint(){var e,r;if(!this._container||!this.canPrettyPrint())return;if((0,t.isSourceWithMap)(this)&&this.sourceMap.url.endsWith("-pretty.map")){const t=null===(r=this._container._sourceMaps.get(null===(e=this.sourceMap)||void 0===e?void 0:e.url))||void 0===r?void 0:r.map;return t&&{map:t,source:[...this.sourceMap.sourceByUrl.values()][0]}}const n=await this.content();if(!n)return;const i=this.url||`eval://${this.sourceReference}.js`,o=i+"-pretty.map",s=i.split(/[\/\\]/).pop()+"-pretty.js",a=await(0,k.prettyPrintAsSourceMap)(s,n,i,o);if(!a)return;this.setSourceMapUrl(o);const c=this,u={compiled:new Set([c]),map:a,loaded:Promise.resolve()};return this._container._sourceMaps.set(o,u),await this._container._addSourceMapSources(c,a),{map:a,source:[...c.sourceMap.sourceByUrl.values()][0]}}async toDap(){return this.toDapShallow()}async toDapShallow(){const e=await this._existingAbsolutePath,t={name:this._name,path:this._fqname,sourceReference:this.sourceReference,presentationHint:this.blackboxed()?"deemphasize":void 0,origin:this.blackboxed()?A(0,null):void 0};return e&&(t.sourceReference=0,t.path=e),t}existingAbsolutePath(){return this._existingAbsolutePath}async prettyName(){return await this._existingAbsolutePath||this._fqname}_humanName(){if(P.isAbsolute(this._fqname))for(const e of this._container.rootPaths)if((0,b.isSubdirectoryOf)(e,this._fqname))return(0,b.forceForwardSlashes)((0,l.relative)(e,this._fqname));return this._fqname}_fullyQualifiedName(){var e;if(!this.url)return"<eval>/VM"+this.sourceReference;if(this.absolutePath.startsWith("<node_internals>"))return this.absolutePath;if(P.isAbsolute(this.url))return this.url;const t=P.fileUrlToAbsolutePath(this.url);if(t)return t;let r=this.url;try{const t=[],n=new d.URL(this.url);if("data:"===n.protocol)return"<eval>/VM"+this.sourceReference;n.hostname&&t.push(n.hostname),n.port&&t.push("꞉"+n.port),n.pathname&&t.push(/^\/[a-z]:/.test(n.pathname)?n.pathname.slice(1):n.pathname);const i=null===(e=n.searchParams)||void 0===e?void 0:e.toString();i&&t.push("?"+i),r=t.join("")}catch(e){}return r.endsWith("/")&&(r+="(index)"),this.inlineScriptOffset&&(r+=`꞉${this.inlineScriptOffset.lineOffset+1}:${this.inlineScriptOffset.columnOffset+1}`),r}blackboxed(){return this._container.isSourceSkipped(this.url)}}t.Source=I;class L extends I{constructor(){super(...arguments),this.compiledToSourceUrl=new Map}}t.SourceFromMap=L,t.isSourceWithMap=e=>!!e&&e instanceof I&&!!e.sourceMap;const N=(e,t)=>t instanceof L&&t.compiledToSourceUrl.has(e);var B;!function(e){e[e.MapDisabled=0]="MapDisabled",e[e.HasNoMap=1]="HasNoMap",e[e.MapLoadingFailed=2]="MapLoadingFailed",e[e.MapPositionMissing=3]="MapPositionMissing",e[e.CannotMap=4]="CannotMap"}(B=t.UnmappedReason||(t.UnmappedReason={}));const $=2**31-1;let U=class{constructor(e,t,r,n,i,o,s,a){this.sourceMapFactory=t,this.logger=r,this.launchConfig=n,this.initializeConfig=i,this.sourcePathResolver=o,this.scriptSkipper=s,this.resourceProvider=a,this.rootPaths=[],this.scriptsById=new Map,this.onScriptEmitter=new m.EventEmitter,this._sourceByOriginalUrl=new f.MapUsingProjection((e=>e.toLowerCase())),this._sourceByReference=new Map,this._sourceMapSourcesByUrl=new Map,this._sourceByAbsolutePath=P.caseNormalizedMap(),this._sourceMaps=new Map,this._sourceMapTimeouts=F,this._fileContentOverridesForTest=new Map,this._temporarilyDisabledSourceMaps=new Set,this._permanentlyDisabledSourceMaps=new Set,this.onScript=this.onScriptEmitter.event,this._statistics={fallbackSourceMapCount:0},this._dap=e;const c="webRoot"in n?n.webRoot:n.rootPath;c&&(this.rootPaths=[c,(0,b.properResolve)(c,"..","ClientApp")]),s.setSourceContainer(this),this.setSourceMapTimeouts(Object.assign(Object.assign({},this.sourceMapTimeouts()),n.timeouts))}get sources(){return this._sourceByReference.values()}statistics(){return this._statistics}setSourceMapTimeouts(e){this._sourceMapTimeouts=e}sourceMapTimeouts(){return this._sourceMapTimeouts}setFileContentOverrideForTest(e,t){void 0===t?this._fileContentOverridesForTest.delete(e):this._fileContentOverridesForTest.set(e,t)}async loadedSources(){const e=[];for(const t of this._sourceByReference.values())e.push(t.toDap());return await Promise.all(e)}source(e){return e.sourceReference?this._sourceByReference.get(e.sourceReference):e.path?this._sourceByAbsolutePath.get(e.path):void 0}isSourceSkipped(e){return this.scriptSkipper.isScriptSkipped(e)}addScriptById(e){this.scriptsById.set(e.scriptId,e),this.onScriptEmitter.fire(e)}getScriptById(e){return this.scriptsById.get(e)}getSourceByOriginalUrl(e){return this._sourceByOriginalUrl.get(e)}getSourceReference(e){let t=(0,u.xxHash32)(e)&$;for(let e=0;e<65535;e++){if(!this._sourceByReference.has(t))return t;t===$&&(t=0),t++}return this.logger.assert(!1,"Max iterations exceeding for source reference assignment"),t}async preferredUiLocation(e){let r=!1,n=B.CannotMap;for(;(0,t.isSourceWithMap)(e.source);){const t=this._sourceMaps.get(e.source.sourceMap.url);if(!this.logger.assert(t,`Expected to have sourcemap for loaded source ${e.source.sourceMap.url}`))break;if(await Promise.race([t.loaded,(0,v.delay)(this._sourceMapTimeouts.resolveLocation)]),!t.map)return Object.assign(Object.assign({},e),{isMapped:r,unmappedReason:n});const i=this._sourceMappedUiLocation(e,t.map);if(!M(i)){n=r?void 0:i;break}e=i,r=!0,n=void 0}return Object.assign(Object.assign({},e),{isMapped:r,unmappedReason:n})}currentSiblingUiLocations(e,t){return this._uiLocations(e).filter((e=>!t||e.source===t))}clear(e){this.scriptsById.clear();for(const t of this._sourceByReference.values())this.removeSource(t,e);this._sourceByReference.clear(),this.sourceMapFactory instanceof w.CachingSourceMapFactory&&this.sourceMapFactory.invalidateCache()}_uiLocations(e){return[...this.getSourceMapUiLocations(e),e,...this.getCompiledLocations(e)]}getSourceMapUiLocations(e){var r;if(!(0,t.isSourceWithMap)(e.source))return[];const n=null===(r=this._sourceMaps.get(e.source.sourceMap.url))||void 0===r?void 0:r.map;if(!n)return[];const i=this._sourceMappedUiLocation(e,n);if(!M(i))return[];const o=this.getSourceMapUiLocations(i);return o.push(i),o}_sourceMappedUiLocation(e,r){const n=e.source;if(!(0,t.isSourceWithMap)(n))return B.HasNoMap;if(this._temporarilyDisabledSourceMaps.has(n)||this._permanentlyDisabledSourceMaps.has(n))return B.MapDisabled;const i=this.getOptiminalOriginalPosition(r,V(e,n.inlineScriptOffset));if("isSourceMapLoadFailure"in i)return B.MapLoadingFailed;if(!i.source)return B.MapPositionMissing;const o=n.sourceMap.sourceByUrl.get(i.source);return o?{lineNumber:i.line||1,columnNumber:i.column?i.column+1:1,source:o}:B.MapPositionMissing}getCompiledLocations(e){if(!(e.source instanceof L))return[];let t=[];for(const[r,n]of e.source.compiledToSourceUrl){const i=this._sourceMaps.get(r.sourceMap.url);if(!i||!i.map)continue;const o=this.sourceMapFactory.guardSourceMapFn(i.map,(()=>S.getOptimalCompiledPosition(n,e,i.map)),R);if(!o)continue;const{lineNumber:s,columnNumber:a}=q({lineNumber:o.line||1,columnNumber:(o.column||0)+1},r.inlineScriptOffset),c={lineNumber:s,columnNumber:a,source:r};t=t.concat(c,this.getCompiledLocations(c))}return t}getOptiminalOriginalPosition(e,t){return this.sourceMapFactory.guardSourceMapFn(e,(()=>{const r=e.originalPositionFor({line:t.lineNumber,column:t.columnNumber-1,bias:p.SourceMapConsumer.GREATEST_LOWER_BOUND});return null!==r.line?r:e.originalPositionFor({line:t.lineNumber,column:t.columnNumber-1,bias:p.SourceMapConsumer.LEAST_UPPER_BOUND})}),R)}async addSource(e,t,r,n,i,o){const s=await this.sourcePathResolver.urlToAbsolutePath({url:e});this.logger.verbose("runtime.sourcecreate","Creating source from url",{inputUrl:e,absolutePath:s});const a=new I(this,e,s,t,r&&this.sourcePathResolver.shouldResolveSourceMap({sourceMapUrl:r,compiledPath:s||e})?r:void 0,n,i,this.launchConfig.enableContentValidation?o:void 0);return this._addSource(a),a}async _addSource(e){const r=e.url&&this._sourceByOriginalUrl.get(e.url);r&&!N(r,e)&&this.removeSource(r,!0),this._sourceByOriginalUrl.set(e.url,e),this._sourceByReference.set(e.sourceReference,e),e instanceof L&&this._sourceMapSourcesByUrl.set(e.url,e);const n=this._sourceByAbsolutePath.get(e.absolutePath);if((void 0===n||n.url.length>=e.url.length||N(n,e))&&this._sourceByAbsolutePath.set(e.absolutePath,e),this.scriptSkipper.initializeSkippingValueForSource(e),e.toDap().then((e=>this._dap.loadedSource({reason:"new",source:e}))),!(0,t.isSourceWithMap)(e))return;const i=this._sourceMaps.get(e.sourceMap.url);if(i)return i.compiled.add(e),void(i.map&&await this._addSourceMapSources(e,i.map));const o=(0,v.getDeferred)(),s={compiled:new Set([e]),loaded:o.promise};this._sourceMaps.set(e.sourceMap.url,s);try{s.map=await this.sourceMapFactory.load(e.sourceMap.metadata)}catch(t){if("visualstudio"===this.initializeConfig.clientID){const r=e.sourceMap.metadata.sourceMapUrl;try{const n=await this.sourcePathResolver.urlToAbsolutePath({url:r});n&&(e.sourceMap.metadata.sourceMapUrl=P.absolutePathToFileUrl(n)),s.map=await this.sourceMapFactory.load(e.sourceMap.metadata),this._statistics.fallbackSourceMapCount++,this.logger.info("sourcemap.parsing","Failed to process original source-map; falling back to storage source-map",{fallbackSourceMapUrl:e.sourceMap.metadata.sourceMapUrl,originalSourceMapUrl:r,originalSourceMapError:(0,D.extractErrorDetails)(t)})}catch(e){}}if(!s.map)return this._dap.output({output:(0,E.sourceMapParseFailed)(e.url,t.message).error.format+"\n",category:"stderr"}),o.resolve()}if(this._sourceMaps.get(e.sourceMap.url)!==s)return o.resolve();this.logger.verbose("sourcemap.parsing","Creating sources from source map",{sourceMapId:s.map.id,metadata:s.map.metadata});const a=[];for(const e of s.compiled)a.push(this._addSourceMapSources(e,s.map));await Promise.all(a),this.scriptSkipper.initializeSkippingValueForSource(e),o.resolve()}removeSource(e,r=!1){const n=this._sourceByReference.get(e.sourceReference);if(void 0===n)return;if(this.logger.assert(e===n,"Expected source to be the same as the existing reference"),this._sourceByReference.delete(e.sourceReference),e instanceof L&&this._sourceMapSourcesByUrl.delete(e.url),this._sourceByAbsolutePath.delete(e.absolutePath),(0,t.isSourceWithMap)(e)&&(this._permanentlyDisabledSourceMaps.delete(e),this._temporarilyDisabledSourceMaps.delete(e)),r||e.toDap().then((e=>this._dap.loadedSource({reason:"removed",source:e}))),!(0,t.isSourceWithMap)(e))return;const i=this._sourceMaps.get(e.sourceMap.url);this.logger.assert(i,`Source map missing for ${e.sourceMap.url} in removeSource()`)&&(this.logger.assert(i.compiled.has(e),`Source map ${e.sourceMap.url} does not contain source ${e.url}`),i.compiled.delete(e),i.compiled.size||(i.map&&i.map.destroy(),this._sourceMaps.delete(e.sourceMap.url)),i.map&&this._removeSourceMapSources(e,i.map,r))}async _addSourceMapSources(e,t){const r=[];for(const n of t.sources){const i=await this.sourcePathResolver.urlToAbsolutePath({url:n,map:t}),o=i?P.absolutePathToFileUrl(i):t.computedSourceUrl(n),s=this._sourceMapSourcesByUrl.get(o);if(s){s.compiledToSourceUrl.set(e,n),e.sourceMap.sourceByUrl.set(n,s);continue}this.logger.verbose("runtime.sourcecreate","Creating source from source map",{inputUrl:n,sourceMapId:t.id,absolutePath:i,resolvedUrl:o});const a=i&&P.absolutePathToFileUrl(i),c=this.sourceMapFactory.guardSourceMapFn(t,(()=>t.sourceContentFor(n)),(()=>null)),u=new L(this,o,i,null!==c?()=>Promise.resolve(c):a?()=>this.resourceProvider.fetch(a).then((e=>e.body)):()=>e.content(),void 0,void 0,e.runtimeScriptOffset);u.compiledToSourceUrl.set(e,n),e.sourceMap.sourceByUrl.set(n,u),r.push(this._addSource(u))}await Promise.all(r)}_removeSourceMapSources(e,t,r){for(const n of t.sources){const t=e.sourceMap.sourceByUrl.get(n);this.logger.assert(t,`Unknown source ${n} in removeSourceMapSources`)&&(e.sourceMap.sourceByUrl.delete(n),t.compiledToSourceUrl.delete(e),t.compiledToSourceUrl.size||this.removeSource(t,r))}}async waitForSourceMapSources(e){if(!(0,t.isSourceWithMap)(e))return[];const r=this._sourceMaps.get(e.sourceMap.url);return this.logger.assert(r,"Unrecognized source map url in waitForSourceMapSources()")?(await r.loaded,[...e.sourceMap.sourceByUrl.values()]):[]}async revealUiLocation(e){this._dap.revealLocationRequested({source:await e.source.toDap(),line:e.lineNumber,column:e.columnNumber})}disableSourceMapForSource(e,t=!1){t?this._permanentlyDisabledSourceMaps.add(e):this._temporarilyDisabledSourceMaps.add(e)}clearDisabledSourceMaps(e){e?this._temporarilyDisabledSourceMaps.delete(e):this._temporarilyDisabledSourceMaps.clear()}};function q(e,t){if(!t)return e;let{lineNumber:r,columnNumber:n}=e;return t&&(r+=t.lineOffset,r<=1&&(n+=t.columnOffset)),Object.assign(Object.assign({},e),{lineNumber:r,columnNumber:n})}function V(e,t){if(!t)return e;let{lineNumber:r,columnNumber:n}=e;return t&&(r=Math.max(1,r-t.lineOffset),r<=1&&(n=Math.max(1,n-t.columnOffset))),Object.assign(Object.assign({},e),{lineNumber:r,columnNumber:n})}U=o([(0,c.injectable)(),a(0,(0,c.inject)(C.IDapApi)),a(1,(0,c.inject)(w.ISourceMapFactory)),a(2,(0,c.inject)(g.ILogger)),a(3,(0,c.inject)(x.AnyLaunchConfiguration)),a(4,(0,c.inject)(O.IInitializeParams)),a(5,(0,c.inject)(_.ISourcePathResolver)),a(6,(0,c.inject)(j.IScriptSkipper)),a(7,(0,c.inject)(T.IResourceProvider))],U),t.SourceContainer=U,t.uiToRawOffset=q,t.rawToUiOffset=V,t.base0To1=e=>({lineNumber:e.lineNumber+1,columnNumber:e.columnNumber+1}),t.base1To0=e=>({lineNumber:e.lineNumber-1,columnNumber:e.columnNumber-1})},35219: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.__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.StackFrame=t.StackTrace=void 0;const s=o(r(33463)),a=r(7678),c=r(67790),u=r(44413),l=r(1032),p=r(67523),d=r(39226),h=s.loadMessageBundle(r(71017).join(__dirname,"adapter/stackTrace.js"));class f{constructor(e){this.frames=[],this._frameById=new Map,this._lastFrameThread=e}static fromRuntime(e,t){const r=new f(e);for(let n=0;n<t.callFrames.length;n++)t.callFrames[n].url.endsWith(".cdp")||r.frames.push(m.fromRuntime(e,t.callFrames[n],!1));return t.parentId?(r._asyncStackTraceId=t.parentId,console.assert(!t.parent)):r._appendStackTrace(e,t.parent),r}static async fromRuntimeWithPredicate(e,t,r,n=1/0){const i=new f(e);for(let o=0;o<t.callFrames.length&&n>0;o++)if(!t.callFrames[o].url.endsWith(".cdp")){const s=m.fromRuntime(e,t.callFrames[o],!1);await r(s)&&(i.frames.push(),n--)}return t.parentId?(i._asyncStackTraceId=t.parentId,console.assert(!t.parent)):i._appendStackTrace(e,t.parent),i}static fromDebugger(e,t,r,n){const i=new f(e);for(const r of t)i._appendFrame(m.fromDebugger(e,r));return n?(i._asyncStackTraceId=n,console.assert(!r)):i._appendStackTrace(e,r),i}async loadFrames(e){for(;this.frames.length<e&&this._asyncStackTraceId;){if(this._asyncStackTraceId.debuggerId&&(this._lastFrameThread=d.Thread.threadForDebuggerId(this._asyncStackTraceId.debuggerId)),!this._lastFrameThread){this._asyncStackTraceId=void 0;break}const e=await this._lastFrameThread.cdp().Debugger.getStackTrace({stackTraceId:this._asyncStackTraceId});this._asyncStackTraceId=void 0,e&&this._appendStackTrace(this._lastFrameThread,e.stackTrace)}return this.frames}frame(e){return this._frameById.get(e)}_appendStackTrace(e,t){for(console.assert(!t||!this._asyncStackTraceId);t;){if("async function"===t.description&&t.callFrames.length&&t.callFrames.shift(),t.callFrames.length){this._appendFrame(m.asyncSeparator(e,t.description||"async"));for(const r of t.callFrames)this._appendFrame(m.fromRuntime(e,r,!0))}t.parentId&&(this._asyncStackTraceId=t.parentId,console.assert(!t.parent)),t=t.parent}}_appendFrame(e){this.frames.push(e),this._frameById.set(e._id,e)}async formatAsNative(){const e=(await this.loadFrames(50)).map((e=>e.formatAsNative()));return(await Promise.all(e)).join("\n")+"\n"}async format(){const e=(await this.loadFrames(50)).map((e=>e.format()));return(await Promise.all(e)).join("\n")+"\n"}async toDap(e){const t=e.startFrame||0;let r=(e.levels||50)+t;const n=await this.loadFrames(r);r=Math.min(n.length,e.levels?r:n.length);const i=[];for(let o=t;o<r;o++)i.push(n[o].toDap(e.format));return{stackFrames:await Promise.all(i),totalFrames:this._asyncStackTraceId?1e6:n.length}}}t.StackTrace=f;class m{constructor(e,t,r,n=!1){this.isAsync=n,this._isAsyncSeparator=!1,this._id=++m._lastFrameId,this._name=t||"<anonymous>",this._rawLocation=r,this.uiLocation=(0,a.once)((()=>e.rawLocationToUiLocation(r))),this._thread=e}get rawPosition(){return new c.Base0Position(this._rawLocation.lineNumber,this._rawLocation.columnNumber)}static fromRuntime(e,t,r){return new m(e,t.functionName,e.rawLocation(t),r)}static fromDebugger(e,t){const r=new m(e,t.functionName,e.rawLocation(t));return r._scope={chain:t.scopeChain,thisObject:t.this,returnValue:t.returnValue,variables:new Array(t.scopeChain.length).fill(void 0),callFrameId:t.callFrameId},r}static asyncSeparator(e,t){const r=new m(e,t,{lineNumber:1,columnNumber:1,scriptId:""},!0);return r._isAsyncSeparator=!0,r}equivalentTo(e){return e&&e._rawLocation.columnNumber===this._rawLocation.columnNumber&&e._rawLocation.lineNumber===this._rawLocation.lineNumber&&e._rawLocation.scriptId===this._rawLocation.scriptId}callFrameId(){return this._scope?this._scope.callFrameId:void 0}async scopes(){if(!this._scope)throw new l.ProtocolError((0,u.asyncScopesNotAvailable)());const e=[];for(let t=0;t<this._scope.chain.length;t++){const r=this._scope.chain[t];let n,i="";switch(r.type){case"global":i=h(0,null);break;case"local":i=h(1,null),n="locals";break;case"with":i=h(2,null),n="locals";break;case"closure":i=h(3,null),n="arguments";break;case"catch":i=h(4,null),n="locals";break;case"block":i=h(5,null),n="locals";break;case"script":i=h(6,null);break;case"eval":i=h(7,null);break;case"module":i=h(8,null);break;default:i=r.type.substr(0,1).toUpperCase()+r.type.substr(1)}r.name&&"closure"===r.type?i=h(9,null,r.name):r.name&&(i=`${i}: ${r.name}`);const o=await this._scopeVariable(t,this._scope),s={name:i,presentationHint:n,expensive:"global"===r.type,variablesReference:o.id};if(r.startLocation){const e=this._thread.rawLocation(r.startLocation),t=await this._thread.rawLocationToUiLocation(e);if(s.line=(t||e).lineNumber,s.column=(t||e).columnNumber,t&&(s.source=await t.source.toDap()),r.endLocation){const e=this._thread.rawLocation(r.endLocation),t=await this._thread.rawLocationToUiLocation(e);s.endLine=(t||e).lineNumber,s.endColumn=(t||e).columnNumber}}e.push(s)}return{scopes:e}}async toDap(e){const t=await this.uiLocation(),r=t?await t.source.toDap():void 0,n=await(0,p.shouldStepOverStackFrame)(this),i=this._isAsyncSeparator?"label":n?"deemphasize":"normal";n&&r&&(r.origin=h(1===n?10:11,null));const o=(t||this._rawLocation).lineNumber,s=(t||this._rawLocation).columnNumber;let a=this._name;return r&&e&&(e.module&&(a+=` [${r.name}]`),e.line&&(a+=` Line ${o}`)),{id:this._id,name:a,line:o,column:s,source:r,presentationHint:i,canRestart:!this.isAsync}}async formatAsNative(){if(this._isAsyncSeparator)return`    --- ${this._name} ---`;const e=await this.uiLocation(),t=await(null==e?void 0:e.source.existingAbsolutePath())||(null==e?void 0:e.source.url)||await(null==e?void 0:e.source.prettyName()),{lineNumber:r,columnNumber:n}=e||this._rawLocation;return`    at ${this._name} (${t}:${r}:${n})`}async format(){if(this._isAsyncSeparator)return`◀ ${this._name} ▶`;const e=await this.uiLocation(),t=await(null==e?void 0:e.source.prettyName())||"<unknown>",r=e||this._rawLocation;let n=`${this._name} @ ${t}:${r.lineNumber}`;return r.columnNumber>1&&(n+=`:${r.columnNumber}`),n}async _scopeVariable(e,t){const r=t.variables[e];if(r)return r;const n={stackFrame:this,callFrameId:t.callFrameId,scopeNumber:e},i=[];0===e&&(i.push({name:"this",value:t.thisObject}),t.returnValue&&i.push({name:h(12,null),value:t.returnValue}));const o=this._thread.pausedVariables().createScope(t.chain[e].object,n,i);return t.variables[e]=o}async completions(){if(!this._scope)return[];const e=this._thread.pausedVariables();if(!e)return[];const t=[];for(let r=0;r<this._scope.chain.length;r++)t.push(this._scopeVariable(r,this._scope).then((async t=>(await e.getVariables({variablesReference:t.id})).map((e=>({label:e.name,type:"property"}))))));const r=await Promise.all(t);return[].concat(...r)}}t.StackFrame=m,m._lastFrameId=0},38103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enumeratePropertiesTemplate=t.enumerateProperties=void 0;const n=r(56102);t.enumerateProperties=(0,n.remoteFunction)((function(e,t,r){const n=r?"variable":"property",i=(e,t,i)=>{if("function"!==t)return n;if("constructor"===e)return"class";const o=String(i);return o.startsWith("class ")||o.includes("[native code]")&&/^[A-Z]/.test(e)?"class":r?"function":"method"},o=[],s=new Set;let a="~",c=void 0===e?this:e;for(;null!=c;c=c.__proto__){a+="~";const e=Object.getOwnPropertyNames(c).filter((e=>e.startsWith(t)&&!e.match(/^\d+$/)));for(const t of e){if(s.has(t))continue;s.add(t);const e=Object.getOwnPropertyDescriptor(c,t);let r=n;try{r=i(t,typeof(null==e?void 0:e.value),c[t])}catch(e){}o.push({label:t,sortText:a+t.replace(/^_+/,(e=>"{".repeat(e.length))),type:r})}r=!1}return{result:o,isArray:this instanceof Array}})),t.enumeratePropertiesTemplate=(0,n.templateFunction)(t.enumerateProperties.source)},61392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayProperties=void 0;const n=r(56102);t.getArrayProperties=(0,n.remoteFunction)((function(){const e={__proto__:this.__proto__},t=Object.getOwnPropertyNames(this);for(let r=0;r<t.length;++r){const n=t[r],i=n>>>0;if(String(i>>>0)===n&&i>>>0!=4294967295)continue;const o=Object.getOwnPropertyDescriptor(this,n);o&&Object.defineProperty(e,n,o)}return e}))},38453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArraySlots=void 0;const n=r(56102);t.getArraySlots=(0,n.remoteFunction)((function(e,t){const r={},n=-1===e?0:e,i=-1===t?this.length:e+t;for(let e=n;e<i&&e<this.length;++e){const t=Object.getOwnPropertyDescriptor(this,e);t&&Object.defineProperty(r,e,t)}return r}))},56102:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.remoteFunction=t.RemoteException=t.templateFunctionStr=t.templateFunction=t.getSourceSuffix=void 0;const i=r(81132),o=r(6113);function s(e){const r=(0,i.parseExpressionAt)(e,0,{ecmaVersion:"latest",locations:!0});if("FunctionExpression"!==r.type)throw new Error(`Could not find function declaration for:\n\n${e}`);const n=r.params.map((e=>{if("Identifier"!==e.type)throw new Error("Parameter must be identifier");return e.name})),{start:o,end:s}=r.body;return(...r)=>`(() => {\n    ${r.map(((e,t)=>`let ${n[t]} = ${e}`)).join("; ")};\n    ${e.slice(o+1,s-1)}\n  })();${(0,t.getSourceSuffix)()}`}t.getSourceSuffix=()=>`\n//# sourceURL=eval-${(0,o.randomBytes)(4).toString("hex")}.cdp\n`,t.templateFunction=function(e){return s(""+e)},t.templateFunctionStr=s;class a extends Error{constructor(e){super(e.text),this.details=e}}t.RemoteException=a,t.remoteFunction=function(e){const r=(""+e).replace("}",(0,t.getSourceSuffix)()+"}"),i=async e=>{var{cdp:t,args:i}=e,o=n(e,["cdp","args"]);const s=await t.Runtime.callFunctionOn(Object.assign({functionDeclaration:r,arguments:i.map((e=>({value:e})))},o));if(!s)throw new a({exceptionId:0,text:"No response from CDP",lineNumber:0,columnNumber:0});if(s.exceptionDetails)throw new a(s.exceptionDetails);return s.result};return i.source=r,i}},19199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invokeGetter=void 0;const n=r(56102);t.invokeGetter=(0,n.remoteFunction)((function(e){return this[e]}))},60290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.previewThis=void 0;const n=r(56102);t.previewThis=(0,n.remoteFunction)((function(){return this}))},89627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readMemory=void 0;const n=r(56102);t.readMemory=(0,n.remoteFunction)((function(e,t){const{buffer:r,byteLength:n,byteOffset:i}=this instanceof ArrayBuffer?new DataView(this):this instanceof WebAssembly.Memory?new DataView(this.buffer):this,o=i+Math.min(e,n),s=Math.max(0,Math.min(t,n-e));return function(e){const t="0123456789abcedf";let r="";for(let n=0;n<e.length;n++){const i=e[n];r+=t[i>>>4]+t[15&i]}return r}(new Uint8Array(r,o,s))}))},68752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeForClipboard=t.serializeForClipboardTmpl=void 0;const n=r(56102);t.serializeForClipboardTmpl=(0,n.templateFunction)((function(e,t){const r=" ".repeat(t);try{return function t(n,i=0,o=[]){switch(typeof n){case"bigint":return`${n}n`;case"boolean":case"symbol":return n.toString();case"function":{const e=n.toString().replace(/^[^\s]+\(/,"function(").split(/\r?\n/g);let t=/^$/;for(const r of e){const e=/^[ \t]+/.exec(r);if(e){t=new RegExp(`^[ \\t]{0,${e[0].length}}`);break}}return e.map(((n,o)=>0===o?n:(n=n.replace(t,""),o===e.length-1?r.repeat(i)+n:r.repeat(i+1)+n))).join("\n")}case"number":return`${n}`;case"object":if(null===n)return"null";if(o.includes(n))return"[Circular]";if("undefined"!=typeof Node&&e instanceof Node)return e.outerHTML;const s=function(e){return e instanceof Uint8Array?Uint8Array:e instanceof Uint8ClampedArray?Uint8ClampedArray:e instanceof Uint16Array?Uint16Array:e instanceof Uint32Array?Uint32Array:e instanceof BigUint64Array?BigUint64Array:e instanceof Int8Array?Int8Array:e instanceof Int32Array?Int32Array:e instanceof BigInt64Array?BigInt64Array:e instanceof Float32Array?Float32Array:e instanceof Float64Array?Float64Array:void 0}(n);if(s)return`new ${s.name}([${n.join(", ")}])`;if(n instanceof ArrayBuffer)return`new Uint8Array([${new Uint8Array(n).join(", ")}]).buffer`;if(n instanceof Array)return["[",...n.map((e=>r.repeat(i+1)+t(e,i+1,[...o,n])+",")),r.repeat(i)+"]"].join("\n");const a=n;return["{",...Object.keys(a).map((e=>r.repeat(i+1)+(/^[$a-z_][0-9a-z_$]*$/i.test(e)?e:JSON.stringify(e))+": "+t(a[e],i+1,[...o,n])+",")),r.repeat(i)+"}"].join("\n");case"string":return JSON.stringify(n);case"undefined":return"undefined";default:return String(n)}}(e)}catch(t){return""+e}})),t.serializeForClipboard=(0,n.remoteFunction)(`\n  function(spaces2) {\n    const result = ${(0,t.serializeForClipboardTmpl)("this","spaces2")};\n    return result;\n  }\n`)},14043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeMemory=void 0;const n=r(56102);t.writeMemory=(0,n.remoteFunction)((function(e,t){const r=function(e){const t=new Uint8Array(e.length>>>1);for(let r=0;r<e.length;r+=2)t[r>>>1]=parseInt(e.slice(r,r+2),16);return t}(t),{buffer:n,byteLength:i,byteOffset:o}=this instanceof ArrayBuffer?new DataView(this):this instanceof WebAssembly.Memory?new DataView(this.buffer):this,s=o+Math.min(e,i),a=Math.max(0,Math.min(r.length,i-e));return new Uint8Array(n,s,a).set(r.subarray(0,a)),a}))},39226: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.__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.Thread=t.ExecutionContext=void 0;const s=o(r(33463)),a=r(44936),c=r(51457),u=r(67790),l=r(78986),p=o(r(33763)),d=r(16865),h=o(r(97208)),f=r(97208),m=o(r(44413)),g=r(1032),y=r(98995),b=r(82122),v=r(54216),w=r(4348),_=o(r(28951)),S=r(44873),k=r(35219),P=r(68752),x=r(40224),C=s.loadMessageBundle(r(71017).join(__dirname,"adapter/threads.js"));class E{constructor(e,t){this.thread=e,this.description=t}isDefault(){return this.description.auxData&&this.description.auxData.isDefault}}t.ExecutionContext=E;class O{constructor(e){this._obj=e,this._dapDeferred=(0,l.getDeferred)()}resolve(){this._dapDeferred.resolve(this._obj)}with(e){return this._dapDeferred.hasSettled()?e(this._obj):this._dapDeferred.promise.then((t=>e(t)))}}const D=(e,t)=>e.sourceReference===t.sourceReference&&h.comparePathsWithoutCasing(e.path||"",t.path||"");class T{constructor(e,t,r,n,i,o,s,c,u,p,d,h,f){this.target=n,this.logger=o,this.evaluator=s,this.completer=c,this.launchConfig=u,this._breakpointManager=p,this.console=d,this.exceptionPause=h,this._smartStepper=f,this._executionContexts=new Map,this._scriptSources=new Map,this._sourceMapLoads=new Map,this._excludedCallers=[],this._sourceScripts=new WeakMap,this._pausedDetailsEvent=new WeakMap,this._onPausedEmitter=new a.EventEmitter,this.disposed=!1,this.debuggerReady=(0,l.getDeferred)(),this.onPaused=this._onPausedEmitter.event,this._dap=new O(r),this._sourceContainer=e,this._cdp=t,this.id=T._lastThreadId++,this.replVariables=new x.VariableStore(i,this._cdp,r,u,this),this._initialize()}setExcludedCallers(e){this._excludedCallers=e}cdp(){return this._cdp}name(){return this.target.name()}pausedDetails(){return this._pausedDetails}pausedVariables(){return this._pausedVariables}executionContexts(){return Array.from(this._executionContexts.values())}defaultExecutionContext(){for(const e of this._executionContexts.values())if(e.isDefault())return e}async resume(){return this._sourceContainer.clearDisabledSourceMaps(),await this._cdp.Debugger.resume({})||void 0===this._pausedDetails?{allThreadsContinued:!1}:m.createSilentError(C(0,null))}async pause(){return this._expectedPauseReason={reason:"pause"},await this._cdp.Debugger.pause({})?{}:m.createSilentError(C(1,null))}async stepOver(){return this._expectedPauseReason={reason:"step",direction:1},await this._cdp.Debugger.stepOver({})?{}:m.createSilentError(C(2,null))}async stepInto(){return this._waitingForStepIn=this._pausedDetails,this._expectedPauseReason={reason:"step",direction:0},await this._cdp.Debugger.stepInto({breakOnAsyncCall:!0})?{}:m.createSilentError(C(3,null))}async stepOut(){return this._expectedPauseReason={reason:"step",direction:2},await this._cdp.Debugger.stepOut({})?{}:m.createSilentError(C(4,null))}_stackFrameNotFoundError(){return m.createSilentError(C(5,null))}_evaluateOnAsyncFrameError(){return m.createSilentError(C(6,null))}async restartFrame(e){var t;const r=null===(t=this._pausedDetails)||void 0===t?void 0:t.stackTrace.frame(e.frameId);if(!r)return this._stackFrameNotFoundError();const n=r.callFrameId();return n?(await this._cdp.Debugger.restartFrame({callFrameId:n}),this._expectedPauseReason={reason:"frame_entry",description:C(8,null)},await this._cdp.Debugger.stepInto({}),{}):m.createUserError(C(7,null))}async stackTrace(e){return this._pausedDetails?this._pausedDetails.stackTrace.toDap(e):m.createSilentError(C(9,null))}async scopes(e){const t=this._pausedDetails?this._pausedDetails.stackTrace.frame(e.frameId):void 0;return t?t.scopes():this._stackFrameNotFoundError()}async exceptionInfo(){const e=this._pausedDetails&&this._pausedDetails.exception;if(!e)return m.createSilentError(C(10,null));const t=_.previewException(e);return{exceptionId:t.title,breakMode:"all",details:{stackTrace:t.stackTrace,evaluateName:void 0}}}async revealPage(){return this._cdp.Page.bringToFront({}),{}}async completions(e){let t;if(void 0!==e.frameId){if(t=this._pausedDetails?this._pausedDetails.stackTrace.frame(e.frameId):void 0,!t)return this._stackFrameNotFoundError();if(!t.callFrameId())return this._evaluateOnAsyncFrameError()}if(1===e.line&&e.text.startsWith("cd "))return{targets:this.getExecutionContextCompletions(e)};const r=await this.completer.completions({executionContextId:this._selectedContext?this._selectedContext.description.id:void 0,stackFrame:t,expression:e.text,position:new u.Base1Position(e.line||1,e.column)});return{targets:[...this.getExecutionContextCompletions(e),...r]}}getExecutionContextCompletions(e){if(e.line&&e.line>1)return[];const t=e.text.slice(0,e.column).trim();return[...this._executionContexts.values()].map((e=>`cd ${this.target.executionContextName(e.description)}`)).filter((e=>e.startsWith(t))).map((t=>({label:t,start:0,length:e.text.length})))}async evaluate(e){let t,r;if(void 0!==e.frameId){if(r=this._pausedDetails?this._pausedDetails.stackTrace.frame(e.frameId):void 0,!r)throw new g.ProtocolError(this._stackFrameNotFoundError());if(t=r.callFrameId(),!t)throw new g.ProtocolError(this._evaluateOnAsyncFrameError())}if("repl"===e.context&&e.expression.startsWith("cd ")){const t=e.expression.substring("cd ".length).trim();for(const e of this._executionContexts.values())if(this.target.executionContextName(e.description)===t)return this._selectedContext=e,{result:`[${t}]`,variablesReference:0}}const n="clipboard"===e.context?{expression:(0,P.serializeForClipboardTmpl)(e.expression,"2"),includeCommandLineAPI:!0,returnByValue:!0,objectGroup:"console"}:{expression:e.expression,includeCommandLineAPI:!0,objectGroup:"console",generatePreview:!0,timeout:"hover"===e.context?500:void 0};if("repl"===e.context&&(n.expression=p.wrapObjectLiteral(n.expression),-1!==n.expression.indexOf("await"))){const e=p.rewriteTopLevelAwait(n.expression);e&&(n.expression=e,n.awaitPromise=!0)}const i=this.evaluator.evaluate(t?Object.assign(Object.assign({},n),{callFrameId:t}):Object.assign(Object.assign({},n),{contextId:this._selectedContext?this._selectedContext.description.id:void 0}),{isInternalScript:!1,stackFrame:r});if("repl"===e.context)return await this._evaluateRepl(i);const o=await i;if(!o)throw new g.ProtocolError(m.createSilentError(C(11,null)));if(o.exceptionDetails){let e=o.exceptionDetails.exception?_.previewException(o.exceptionDetails.exception).title:o.exceptionDetails.text;throw e.startsWith("Uncaught")||(e="Uncaught "+e),new g.ProtocolError(m.createSilentError(e))}const s=t?this._pausedVariables:this.replVariables;if(!s)throw new g.ProtocolError(m.createSilentError(C(12,null)));const a=await s.createFloatingVariable(o.result).toDap(e.context);return{type:o.result.type,result:a.value,variablesReference:a.variablesReference,namedVariables:a.namedVariables,indexedVariables:a.indexedVariables}}async _evaluateRepl(e){const t=await e;if(!t)return{result:"",variablesReference:0};if(t.exceptionDetails){const e=await new v.ExceptionMessage(t.exceptionDetails).toDap(this);throw new g.ProtocolError(m.replError(e.output))}{const e=this._selectedContext&&this.defaultExecutionContext()!==this._selectedContext?`[${this.target.executionContextName(this._selectedContext.description)}] `:"",r=await this.replVariables.createFloatingVariable(t.result).toDap("repl");return{variablesReference:r.variablesReference,result:`${e}${r.value}`}}}_initialize(){this._cdp.Runtime.on("executionContextCreated",(e=>{this._executionContextCreated(e.context)})),this._cdp.Runtime.on("executionContextDestroyed",(e=>{this._executionContextDestroyed(e.executionContextId)})),this._cdp.Runtime.on("executionContextsCleared",(()=>{this.launchConfig.noDebug||this._ensureDebuggerEnabledAndRefreshDebuggerId(),this.replVariables.clear(),this._executionContextsCleared()})),this._cdp.Inspector.on("targetReloadedAfterCrash",(()=>{this._breakpointManager.reapply()})),"console"===this.launchConfig.outputCapture&&(this._cdp.Runtime.on("consoleAPICalled",(e=>{this.console.dispatch(this,e)})),this._cdp.Runtime.on("exceptionThrown",(e=>{this.console.enqueue(this,new v.ExceptionMessage(e.exceptionDetails))}))),this._cdp.Runtime.on("inspectRequested",(e=>{e.hints.copyToClipboard?this._copyObjectToClipboard(e.object):e.hints.queryObjects?this.console.enqueue(this,new v.QueryObjectsMessage(e.object,this.cdp())):this._revealObject(e.object)})),this._cdp.Debugger.on("paused",(async e=>this._onPaused(e))),this._cdp.Debugger.on("resumed",(()=>this.onResumed())),this._cdp.Debugger.on("scriptParsed",(e=>this._onScriptParsed(e))),this._cdp.Debugger.on("scriptFailedToParse",(e=>this._onScriptParsed(e))),this._cdp.Runtime.enable({}),this.launchConfig.noDebug?this.logger.info("runtime.launch","Running with noDebug, so debug domains are disabled"):this._ensureDebuggerEnabledAndRefreshDebuggerId(),this.target.initialize(),this._dap.with((e=>e.thread({reason:"started",threadId:this.id})))}dapInitialized(){this._dap.resolve()}async refreshStackTrace(){if(!this._pausedDetails)return;const e=this._pausedDetailsEvent.get(this._pausedDetails);e&&(this._pausedDetails=this._createPausedDetails(e)),this._onThreadResumed(),await this._onThreadPaused(this._pausedDetails)}_executionContextCreated(e){const t=new E(this,e);this._executionContexts.set(e.id,t)}_executionContextDestroyed(e){this._executionContexts.get(e)&&this._executionContexts.delete(e)}_executionContextsCleared(){this._removeAllScripts(),this._breakpointManager.executionContextWasCleared(),this._pausedDetails&&this.onResumed(),this._executionContexts.clear()}_ensureDebuggerEnabledAndRefreshDebuggerId(){this._cdp.Debugger.enable({}).then((e=>{this.debuggerReady.resolve(),e&&T._allThreadsByDebuggerId.set(e.debuggerId,this)})),this.exceptionPause.apply(this._cdp)}async _onPaused(e){var t,r,n,i;const o=(null!==(t=e.hitBreakpoints)&&void 0!==t?t:[]).filter((e=>e!==this._pauseOnSourceMapBreakpointId)),s="Break on start"===e.reason,a=e.callFrames[0].location,c=(null===(r=e.data)||void 0===r?void 0:r.scriptId)||a.scriptId,u="instrumentation"===e.reason&&(null===(n=e.data)||void 0===n?void 0:n.scriptId)||this._breakpointManager.isEntrypointBreak(o,c);if(this.evaluator.setReturnedValue(null===(i=e.callFrames[0])||void 0===i?void 0:i.returnValue),u){if("auto"===this.launchConfig.perScriptSourcemaps&&this._shouldEnablePerScriptSms(e)&&await this._enablePerScriptSourcemaps(),e.data&&!s&&(e.data.__rewriteAs="breakpoint"),await this._handleSourceMapPause(c,a));else if(s);else if(await this.isCrossThreadStep(e))e.data=Object.assign(Object.assign({},e.data),{__rewriteAs:"step"});else if(!await this._breakpointManager.shouldPauseAt(e,o,this.target.entryBreakpoint,!0))return this.resume()}else if(!("exception"===e.reason||"promiseRejection"===e.reason?await this.exceptionPause.shouldPauseAt(e):await this._breakpointManager.shouldPauseAt(e,o,this.target.entryBreakpoint,!1)))return this.resume();if(s&&("continueOnAttach"in this.launchConfig&&this.launchConfig.continueOnAttach||"pwa-extensionHost"===this.launchConfig.type||this.target instanceof y.NodeWorkerTarget))return void this.resume();const l=this._pausedDetails=this._createPausedDetails(e);if(this._excludedCallers.length&&await this._matchesExcludedCaller(this._pausedDetails.stackTrace))return this.logger.info("runtime","Skipping pause due to excluded caller"),void this.resume();const p=await this._smartStepper.getSmartStepDirection(l,this._expectedPauseReason);if(this._pausedDetails===l){switch(p){case 0:return this.stepInto();case 2:return this.stepOut();case 1:return this.stepOver()}this._waitingForStepIn=void 0,this._pausedDetailsEvent.set(l,e),this._pausedVariables=this.replVariables.createDetached(),await this._onThreadPaused(l)}}async _matchesExcludedCaller(e){var t,r;if(!this._excludedCallers.length)return!1;const n=await(null===(t=e.frames[0])||void 0===t?void 0:t.uiLocation());if(!n)return!1;let i,o;const s=[];for(const{caller:t,target:a}of this._excludedCallers)if(a.line===n.lineNumber&&a.column===n.columnNumber&&(null!=i||(i=await n.source.toDapShallow()),D(i,a.source))){o||(o=await e.loadFrames(50).then((e=>Promise.all(e.slice(1).map((e=>e.uiLocation()))))));for(let e=0;e<o.length;e++){const n=o[e];if(!n||n.lineNumber!==t.line||n.columnNumber!==t.column)continue;const i=null!==(r=s[e])&&void 0!==r?r:s[e]=await n.source.toDapShallow();if(D(i,t.source))return!0}}return!1}onResumed(){this._pausedDetails=void 0,this._pausedVariables=void 0,this.evaluator.setReturnedValue(void 0),this._onThreadResumed()}async dispose(){this.disposed=!0,this._removeAllScripts(!0);for(const[e,t]of T._allThreadsByDebuggerId)t===this&&T._allThreadsByDebuggerId.delete(e);this._executionContextsCleared(),this.console.length&&await new Promise((e=>this.console.onDrained(e))),this.console.dispose(),await this._dap.with((e=>e.thread({reason:"exited",threadId:this.id})))}rawLocation(e){if("location"in e){const t=e;return{lineNumber:Math.max(0,t.location.lineNumber)+1,columnNumber:Math.max(0,t.location.columnNumber||0)+1,scriptId:t.location.scriptId}}return{lineNumber:Math.max(0,e.lineNumber)+1,columnNumber:Math.max(0,e.columnNumber||0)+1,scriptId:e.scriptId}}rawLocationToUiLocation(e){if(!e.scriptId||this.disposed)return;if(this.launchConfig.noDebug)return;const t=this._sourceContainer.getScriptById(e.scriptId);return t?t.resolvedSource?this._sourceContainer.preferredUiLocation(Object.assign(Object.assign({},(0,S.rawToUiOffset)(e,t.resolvedSource.runtimeScriptOffset)),{source:t.resolvedSource})):t.source.then((t=>this._sourceContainer.preferredUiLocation(Object.assign(Object.assign({},(0,S.rawToUiOffset)(e,t.runtimeScriptOffset)),{source:t})))):this.rawLocationToUiLocationWithWaiting(e)}async rawLocationToUiLocationWithWaiting(e){const t=e.scriptId?await this.getScriptByIdOrWait(e.scriptId):void 0;if(!t)return;const r=await t.source;return this._sourceContainer.preferredUiLocation(Object.assign(Object.assign({},(0,S.rawToUiOffset)(e,r.runtimeScriptOffset)),{source:r}))}getScriptByIdOrWait(e,t=500){return this._sourceContainer.getScriptById(e)||this.waitForScriptId(e,t)}waitForScriptId(e,t){return new Promise((r=>{const n=this._sourceContainer.onScript((t=>{t.scriptId===e&&(r(t),n.dispose(),clearTimeout(i))})),i=setTimeout((()=>{r(void 0),n.dispose()}),t)}))}async renderDebuggerLocation(e){const t=this.rawLocation(e),r=await this.rawLocationToUiLocation(t);return r?`@ ${await r.source.prettyName()}:${r.lineNumber}`:`@ VM${t.scriptId||"XX"}:${t.lineNumber}`}async updateCustomBreakpoint(e,t){if(!this.target.supportsCustomBreakpoints())return;const r=(0,w.customBreakpoints)().get(e);r&&await r.apply(this._cdp,t)}_createPausedDetails(e){var t,r;const n="assert"===e.reason||"exception"===e.reason||"promiseRejection"===e.reason||"other"===e.reason||"ambiguous"===e.reason;if(!(e.hitBreakpoints&&e.hitBreakpoints.length)&&n||this._sourceContainer.clearDisabledSourceMaps(),e.hitBreakpoints&&this._sourceMapDisabler)for(const t of this._sourceMapDisabler(e.hitBreakpoints))this._sourceContainer.disableSourceMapForSource(t);const i=k.StackTrace.fromDebugger(this,e.callFrames,e.asyncStackTrace,e.asyncStackTraceId);if("breakpoint"===(null===(t=e.data)||void 0===t?void 0:t.__rewriteAs))return{thread:this,stackTrace:i,reason:"breakpoint",description:C(13,null)};if("step"===(null===(r=e.data)||void 0===r?void 0:r.__rewriteAs))return{thread:this,stackTrace:i,reason:"step",description:C(14,null)};switch(e.reason){case"assert":return{thread:this,stackTrace:i,reason:"exception",description:C(15,null)};case"debugCommand":return{thread:this,stackTrace:i,reason:"pause",description:C(16,null)};case"DOM":return{thread:this,stackTrace:i,reason:"data breakpoint",description:C(17,null)};case"EventListener":return this._resolveEventListenerBreakpointDetails(i,e);case"exception":return{thread:this,stackTrace:i,reason:"exception",description:C(18,null),exception:e.data};case"promiseRejection":return{thread:this,stackTrace:i,reason:"exception",description:C(19,null),exception:e.data};case"instrumentation":return e.data&&e.data.scriptId?{thread:this,stackTrace:i,reason:"step",description:C(20,null)}:{thread:this,stackTrace:i,reason:"function breakpoint",description:C(21,null)};case"XHR":return{thread:this,stackTrace:i,reason:"data breakpoint",description:C(22,null)};case"OOM":return{thread:this,stackTrace:i,reason:"exception",description:C(23,null)};default:if(e.hitBreakpoints&&e.hitBreakpoints.length){let t=!1;const r=this.target.entryBreakpoint;if(r&&e.hitBreakpoints.includes(r.cdpId)){t=!0;const n=this._sourceContainer.source({path:(0,f.fileUrlToAbsolutePath)(r.path)});void 0!==n&&(t=!this._sourceContainer.currentSiblingUiLocations({lineNumber:e.callFrames[0].location.lineNumber+1,columnNumber:(e.callFrames[0].location.columnNumber||0)+1,source:n}).some((e=>this._breakpointManager.hasAtLocation(e))))}return t||this._breakpointManager.registerBreakpointsHit(e.hitBreakpoints),{thread:this,stackTrace:i,hitBreakpoints:e.hitBreakpoints,reason:t?"entry":"breakpoint",description:C(24,null)}}return this._expectedPauseReason?Object.assign({thread:this,stackTrace:i,description:C(25,null)},this._expectedPauseReason):{thread:this,stackTrace:i,reason:"pause",description:C(26,null)}}}_resolveEventListenerBreakpointDetails(e,t){const r=t.data,n=r&&r.eventName||"",i=(0,w.customBreakpoints)().get(n);if(i){const t=i.details(r);return{thread:this,stackTrace:e,reason:"function breakpoint",description:t.short,text:t.long}}return{thread:this,stackTrace:e,reason:"function breakpoint",description:C(27,null)}}_clearDebuggerConsole(){return{category:"console",output:""}}scriptsFromSource(e){return this._sourceScripts.get(e)||new Set}_removeAllScripts(e=!1){this._sourceContainer.clear(e),this._scriptSources.clear(),this._sourceMapLoads.clear()}_onScriptParsed(e){if(e.url.endsWith(".cdp"))return;if(h.isAbsolute(e.url)&&(e.url=h.absolutePathToFileUrl(e.url)),this._sourceContainer.getScriptById(e.scriptId))return;e.url&&(e.url=this.target.scriptUrlToUrl(e.url));let t=this._scriptSources.get(e.url);t||(t=new Map,this._scriptSources.set(e.url,t));const r={url:e.url,scriptId:e.scriptId,source:(async()=>{const n=e.url&&e.hash&&t&&t.get(e.hash);if(n)return n.addScriptId(e.scriptId),n;const i=e.startLine||e.startColumn?{lineOffset:e.startLine,columnOffset:e.startColumn}:void 0,o=e.url.endsWith("#vscode-extension")?{lineOffset:2,columnOffset:0}:void 0;let s;e.sourceMapURL&&this.launchConfig.sourceMaps&&(s=h.isDataUri(e.sourceMapURL)?e.sourceMapURL:e.url&&h.completeUrl(e.url,e.sourceMapURL)||e.url,s||this._dap.with((t=>m.reportToConsole(t,`Could not load source map from ${e.sourceMapURL}`))));const a=await this._sourceContainer.addSource(e.url,(async()=>{const t=await this._cdp.Debugger.getScriptSource({scriptId:e.scriptId});return t?t.scriptSource:void 0}),s,i,o,e.hash);t.set(e.hash,a),a.addScriptId(e.scriptId);let c=this._sourceScripts.get(a);return c||(c=new Set,this._sourceScripts.set(a,c)),c.add(r),a})(),hash:e.hash};r.source.then((e=>r.resolvedSource=e)),this._sourceContainer.addScriptById(r),e.sourceMapURL&&this._getOrStartLoadingSourceMaps(r)}async _handleSourceMapPause(e,t){this._pausedForSourceMapScriptId=e;const r=this._sourceContainer.sourceMapTimeouts().sourceMapMinPause,n=r+this._sourceContainer.sourceMapTimeouts().sourceMapCumulativePause,i=this._sourceContainer.getScriptById(e);if(!i)return this._pausedForSourceMapScriptId=void 0,!1;const o=new c.HrTime,s=await Promise.race([this._getOrStartLoadingSourceMaps(i,t),(0,l.delay)(n)]),a=o.elapsed().ms,u=this._sourceContainer.sourceMapTimeouts().sourceMapCumulativePause-Math.max(a-r,0);return this._sourceContainer.setSourceMapTimeouts(Object.assign(Object.assign({},this._sourceContainer.sourceMapTimeouts()),{sourceMapCumulativePause:u})),this.logger.verbose("internal","Blocked execution waiting for source-map",{timeSpentWallClockInMs:a,sourceMapCumulativePause:u}),s||this._dap.with((e=>e.output({category:"stderr",output:C(28,null,i.url||i.scriptId,n)}))),console.assert(this._pausedForSourceMapScriptId===e),this._pausedForSourceMapScriptId=void 0,!!s&&s.map(S.base1To0).some((e=>e.lineNumber===t.lineNumber&&(void 0===t.columnNumber||t.columnNumber===e.columnNumber)))}_getOrStartLoadingSourceMaps(e,t){const r=this._sourceMapLoads.get(e.scriptId);if(r)return r;const n=e.source.then((e=>this._sourceContainer.waitForSourceMapSources(e))).then((r=>r.length&&this._scriptWithSourceMapHandler?this._scriptWithSourceMapHandler(e,r,t):[]));return this._sourceMapLoads.set(e.scriptId,n),n}async _revealObject(e){if("function"!==e.type||void 0===e.objectId)return;const t=await this._cdp.Runtime.getProperties({objectId:e.objectId,ownProperties:!0});if(t)for(const e of t.internalProperties||[]){if("[[FunctionLocation]]"!==e.name||!e.value||"internal#location"!==e.value.subtype)continue;const t=await this.rawLocationToUiLocation(this.rawLocation(e.value.value));t&&this._sourceContainer.revealUiLocation(t);break}}async _copyObjectToClipboard(e){if(e.objectId)try{const t=await(0,P.serializeForClipboard)({cdp:this.cdp(),objectId:e.objectId,args:[2],silent:!0,returnByValue:!0});this._dap.with((e=>e.copyRequested({text:t.value})))}catch(e){}finally{this.cdp().Runtime.releaseObject({objectId:e.objectId}).catch((()=>{}))}else this._dap.with((t=>t.copyRequested({text:_.previewRemoteObject(e,"copy")})))}async _onThreadPaused(e){let t;this._expectedPauseReason=void 0,this._onPausedEmitter.fire(e),e.hitBreakpoints&&(t=await Promise.race([(0,l.delay)(1e3).then((()=>{})),Promise.all(e.hitBreakpoints.map((e=>this._breakpointManager._resolvedBreakpoints.get(e))).filter((e=>e instanceof b.UserDefinedBreakpoint)).map((e=>e.untilSetCompleted().then((()=>e.dapId)))))])),this._dap.with((r=>r.stopped({reason:e.reason,description:e.description,threadId:this.id,text:e.text,hitBreakpointIds:t,allThreadsStopped:!1})))}_onThreadResumed(){this._dap.with((e=>e.continued({threadId:this.id,allThreadsContinued:!1})))}isCrossThreadStep(e){if(!e.asyncStackTraceId||!e.asyncStackTraceId.debuggerId)return!1;const t=T.threadForDebuggerId(e.asyncStackTraceId.debuggerId);if(!t||!t._waitingForStepIn)return!1;const r=t._waitingForStepIn.stackTrace;return t._cdp.Debugger.getStackTrace({stackTraceId:e.asyncStackTraceId}).then((e=>!(!e||!e.stackTrace.callFrames.length)&&(!!k.StackFrame.fromRuntime(t,e.stackTrace.callFrames[0],!1).equivalentTo(r.frames[0])&&(t._waitingForStepIn=void 0,!0))))}async setScriptSourceMapHandler(e,t){this._scriptWithSourceMapHandler=t;const r=e&&this._sourceContainer.sourceMapTimeouts().sourceMapMinPause&&t;if(r&&!this._pauseOnSourceMapBreakpointId){const e=await this._cdp.Debugger.setInstrumentationBreakpoint({instrumentation:"beforeScriptWithSourceMapExecution"});this._pauseOnSourceMapBreakpointId=e?e.breakpointId:void 0}else if(!r&&this._pauseOnSourceMapBreakpointId){const e=this._pauseOnSourceMapBreakpointId;this._pauseOnSourceMapBreakpointId=void 0,await this._cdp.Debugger.removeBreakpoint({breakpointId:e})}}async _enablePerScriptSourcemaps(){await this._breakpointManager.updateEntryBreakpointMode(this,1),await this.setScriptSourceMapHandler(!1,this._scriptWithSourceMapHandler)}_shouldEnablePerScriptSms(e){var t,r,n;return!("instrumentation"!==e.reason||!e.data||!(null===(t=e.data.sourceMapURL)||void 0===t?void 0:t.startsWith("data:")))&&((null===(r=e.data.url)||void 0===r?void 0:r.startsWith("webpack"))||(null===(n=e.data.url)||void 0===n?void 0:n.startsWith("ng:")))}setSourceMapDisabler(e){this._sourceMapDisabler=e}static threadForDebuggerId(e){return T._allThreadsByDebuggerId.get(e)}async replacePathsInStackTrace(e){const t=[];for(const r of new d.StackTraceParser(e)){if("string"==typeof r){t.push(r);continue}const e=this._sourceContainer.getSourceByOriginalUrl(h.absolutePathToFileUrl(r.path))||this._sourceContainer.getSourceByOriginalUrl(r.path);e?t.push(this._sourceContainer.preferredUiLocation({columnNumber:r.position.base1.columnNumber,lineNumber:r.position.base1.lineNumber,source:e}).then((({source:e,lineNumber:t,columnNumber:r})=>`${e.absolutePath}:${t}:${r}`))):t.push(r.toString())}return(await Promise.all(t)).join("")}}t.Thread=T,T._lastThreadId=0,T._allThreadsByDebuggerId=new Map},40224:function(e,t,r){"use strict";var n,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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},a=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)&&i(t,e,r);return o(t,e),t},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableStore=void 0;const u=r(26487),l=r(55053),p=r(33463),d=r(63216),h=r(7678),f=r(72223),m=r(34285),g=r(73454),y=r(58116),b=a(r(44413)),v=r(1032),w=a(r(28951)),_=r(56102),S=r(61392),k=r(38453),P=r(19199),x=r(89627),C=r(14043),E=(()=>{let e=0;return()=>e++%2147483646+1})(),O=e=>{if("string"==typeof e)return{value:e};const t=e;return t.objectId?{objectId:t.objectId}:t.unserializableValue?{unserializableValue:t.unserializableValue}:{value:t.value}},D=new Set(["typedarray","dataview","arraybuffer","webassemblymemory"]),T=/^[$a-z_][0-9a-z_$]*$/i,j=/^#[0-9a-z_$]+$/i,A=(e,t,r)=>{const n=(0,f.statementsToFunction)(e,(0,f.parseSource)(t),r);return(0,u.generate)(n)},M=e=>!!e&&"object"==typeof e&&"readMemory"in e&&"writeMemory"in e;class R{constructor(e,t,r,n,i,o,s){this.cdp=e,this.parent=t,this.vars=n,this.locationProvider=i,this.currentRef=o,this.settings=s,this.name=r.name,this.presentationHint=r.presentationHint,this.sortOrder=r.sortOrder||0}createVariable(e,t,...r){var n;const i=new e(new R(this.cdp,null===(n=this.currentRef)||void 0===n?void 0:n.call(this),t,this.vars,this.locationProvider,(()=>i),this.settings),...r);return i.id>0&&this.vars.add(i),i}createVariableByType(e,t){return w.isArray(t)?this.createVariable(q,e,t):t.objectId&&!w.subtypesWithoutPreview.has(t.subtype)?this.createVariable(U,e,t):this.createVariable(F,e,t)}async createObjectPropertyVars(e){var t,r;const n=[];if(this.settings.customPropertiesGenerator){const{result:t,errorDescription:r}=await this.evaluateCodeForObject(e,[],this.settings.customPropertiesGenerator,[],!1);t&&"undefined"!==t.type?e=t:n.push([this.createVariable($,{name:"",sortOrder:-1},t,(null==t?void 0:t.description)||r||(0,p.localize)("error.unknown","Unknown error"))])}if(!e.objectId)return[];const[i,o]=await Promise.all([this.cdp.Runtime.getProperties({objectId:e.objectId,accessorPropertiesOnly:!0,ownProperties:!1,generatePreview:!0}),this.cdp.Runtime.getProperties({objectId:e.objectId,ownProperties:!0,generatePreview:!0})]);if(!i||!o)return[];const s=new Map,a=[];for(const e of i.result)e.symbol?a.push(e):"__proto__"===e.name&&(null===(t=o.internalProperties)||void 0===t?void 0:t.some((e=>"[[Prototype]]"===e.name)))||s.set(e.name,e);for(const e of o.result)e.get||e.set||(e.symbol?a.push(e):s.set(e.name,e));for(const e of null!==(r=o.privateProperties)&&void 0!==r?r:[])s.set(e.name,e);for(const t of[s.values(),a.values()])for(const r of t)n.push(this.createPropertyVar(r,e));for(const e of o.internalProperties||[]){if("[[StableObjectId]]"===e.name)continue;let t;"[[FunctionLocation]]"===e.name&&e.value&&"internal#location"===e.value.subtype?t=this.createVariable(B,{name:e.name,presentationHint:{visibility:"internal",attributes:["readOnly"]},sortOrder:2},e.value):void 0!==e.value&&(t=this.createVariableByType({name:e.name,presentationHint:{visibility:"internal"},sortOrder:2},e.value)),t&&n.push([t])}return(0,h.flatten)(await Promise.all(n))}async getCustomObjectDescription(e,t,r){const n="__proto__"===e&&t.description||w.previewRemoteObject(t,r);if(!this.settings.customDescriptionGenerator)return n;const{result:i,errorDescription:o}=await this.evaluateCodeForObject(t,["defaultValue"],this.settings.customDescriptionGenerator,[n],!0);return(null==i?void 0:i.value)?""+i.value:(0,p.localize)("error.customValueDescriptionGeneratorFailed","{0} (couldn't describe: {1})",n,o)}async createPropertyVar(e,t){const r=[],n={name:e.name,presentationHint:{},sortOrder:0},i=e.get&&"undefined"!==e.get.type,o=e.set&&"undefined"!==e.set.type;return(e=>e.hasOwnProperty("configurable"))(e)?(!1===e.enumerable&&(n.presentationHint.visibility="internal",n.sortOrder=1),(!1===e.writable||i&&!o)&&(n.presentationHint.attributes=["readOnly"])):(n.presentationHint.visibility="private",n.sortOrder=1),"value"in e&&e.value&&r.push(this.createVariableByType(n,e.value)),i?r.push(this.createVariable(G,n,e.get,t)):o&&r.push(this.createVariable(W,n,e.set)),r}async evaluateCodeForObject(e,t,r,n,i){try{const o=await this.cdp.Runtime.callFunctionOn({objectId:e.objectId,functionDeclaration:A(t,r,i),arguments:n.map(O)});if(o){if(void 0===o.exceptionDetails)return{result:o.result};if(o&&o.result.description)return{errorDescription:o.result.description}}return{errorDescription:(0,p.localize)("error.unknown","Unknown error")}}catch(e){return{errorDescription:e.stack||e.message||String(e)}}}}class F{constructor(e,t){this.context=e,this.remoteObject=t,this.id=E()}get name(){return this.context.name}get sortOrder(){return this.context.sortOrder}get accessor(){const{parent:e,name:t}=this.context;return!e||e instanceof z?this.context.name:"number"==typeof t||/^[0-9]+$/.test(t)?`${e.accessor}[${t}]`:T.test(t)||"this"===e.accessor&&j.test(t)?`${e.accessor}.${t}`:`${e.accessor}[${JSON.stringify(t)}]`}async toDap(e){let t=this.context.name;return this.context.parent instanceof z&&(t=await this.context.parent.getRename(t)),Promise.resolve({name:t,value:w.previewRemoteObject(this.remoteObject,e),evaluateName:this.accessor,type:this.remoteObject.type,variablesReference:0,presentationHint:this.context.presentationHint})}async setProperty(e,t){const r=await this.context.cdp.Runtime.callFunctionOn({objectId:this.remoteObject.objectId,functionDeclaration:`function(a) { return this[a] = ${t}; ${(0,_.getSourceSuffix)()} }`,arguments:[O(e)],silent:!0});if(!r)throw new v.ProtocolError(b.createSilentError((0,p.localize)("error.setVariableDidFail","Unable to set variable value")));if(r.exceptionDetails)throw new v.ProtocolError(Q(r.exceptionDetails));return this.context.createVariableByType({name:e},r.result)}async getChildren(e){return Promise.resolve([])}}class I{constructor(e){this.child=e,this.id=E()}getChildren(){return Promise.resolve([this.child])}}class L extends F{constructor(e,t,r,n){var i,o;super(e,{type:null!==(o=null===(i=r[0])||void 0===i?void 0:i.type)&&void 0!==o?o:"string"}),this.value=t,this.args=r,this.stackTrace=n}toDap(){return Promise.resolve({name:this.context.name,value:this.value,variablesReference:this.stackTrace||this.args.some(w.previewAsObject)?this.id:0})}getChildren(e){const t=[],{args:r,stackTrace:n}=this;for(let e=0;e<r.length;++e)w.previewAsObject(r[e])&&t.push(this.context.createVariableByType({name:`arg${e}`,sortOrder:e},r[e]));return n&&t.push(this.context.createVariable(N,{name:"",sortOrder:Number.MAX_SAFE_INTEGER},this.remoteObject,n)),Promise.resolve(t)}}class N extends F{constructor(e,t,r){super(e,t),this.stacktrace=r}async toDap(){return{name:"",value:await this.stacktrace.format(),variablesReference:0}}}class B extends F{constructor(e,t){super(e,t),this.location=t.value}async toDap(){return{name:this.context.name,value:await this.context.locationProvider.renderDebuggerLocation(this.location),variablesReference:0,presentationHint:{visibility:"internal"}}}}class $ extends F{constructor(e,t,r){super(e,t),this.message=r}get accessor(){if(!(this.context.parent instanceof F))throw new Error("ErrorVariable must have a parent Variable");return this.context.parent.accessor}toDap(){return Promise.resolve({name:this.context.name,value:this.message,variablesReference:0})}}class U extends F{async toDap(e){return Object.assign(Object.assign({},await super.toDap(e)),{type:this.remoteObject.className||this.remoteObject.subtype||this.remoteObject.type,variablesReference:this.id,memoryReference:D.has(this.remoteObject.subtype)?String(this.id):void 0,value:await this.context.getCustomObjectDescription(this.context.name,this.remoteObject,e)})}async readMemory(e,t){const r=await(0,x.readMemory)({cdp:this.context.cdp,args:[e,t],objectId:this.remoteObject.objectId,returnByValue:!0});return Buffer.from(r.value,"hex")}async writeMemory(e,t){return(await(0,C.writeMemory)({cdp:this.context.cdp,args:[e,t.toString("hex")],objectId:this.remoteObject.objectId,returnByValue:!0})).value}getChildren(e){return this.context.createObjectPropertyVars(this.remoteObject)}}class q extends U{constructor(e,t){super(e,t),this.length=0;const r=String(t.description).match(/\(([0-9]+)\)/);this.length=r?+r[1]:0}async toDap(e){return Object.assign(Object.assign({},await super.toDap(e)),{indexedVariables:this.length>100?this.length:void 0,namedVariables:this.length>100?1:void 0})}async getChildren(e){switch(null==e?void 0:e.filter){case"indexed":return this.getArraySlots(e);case"named":return this.getArrayProperties();default:return Promise.all([this.getArrayProperties(),this.getArraySlots()]).then(h.flatten)}}async getArrayProperties(){try{const e=await(0,S.getArrayProperties)({cdp:this.context.cdp,args:[],objectId:this.remoteObject.objectId,generatePreview:!0});return this.context.createObjectPropertyVars(e)}catch(e){return[]}}async getArraySlots(e){const t=e&&void 0!==e.start?e.start:-1,r=e&&void 0!==e.count?e.count:-1;let n;try{n=await(0,k.getArraySlots)({cdp:this.context.cdp,generatePreview:!1,args:[t,r],objectId:this.remoteObject.objectId})}catch(e){return[]}const i=await this.context.createObjectPropertyVars(n);return n.objectId&&await this.context.cdp.Runtime.releaseObject({objectId:n.objectId}),i}}class V extends q{async toDap(e){return this.remoteObject.preview?Object.assign(Object.assign({},await super.toDap(e)),{name:w.formatAsTable(this.remoteObject.preview)}):super.toDap(e)}}class H extends F{constructor(e,t){if(super(e,t),!(this.context.parent instanceof F))throw new Error("AccessorVariable must have variable parent")}get accessor(){return this.context.parent.accessor}getChildren(e){return this.context.createObjectPropertyVars(this.remoteObject)}}class W extends H{async toDap(e){return Object.assign(Object.assign({},await super.toDap(e)),{value:"write-only",variablesReference:this.id})}}class G extends H{constructor(e,t,r){super(e,t),this.parentObject=r}async toDap(e){const t=await super.toDap(e);return t.variablesReference=this.id,t.presentationHint=Object.assign(Object.assign({},t.presentationHint),{lazy:!0}),t}async getChildren(e){try{const e=await(0,P.invokeGetter)({cdp:this.context.cdp,objectId:this.parentObject.objectId,args:[this.context.name]});return[this.context.createVariableByType({name:""},e)]}catch(e){if(!(e instanceof _.RemoteException))throw e}return super.getChildren(e)}}class z{constructor(e,t,r,n,i){this.remoteObject=e,this.context=t,this.ref=r,this.extraProperties=n,this.renameProvider=i,this.id=E()}async getChildren(e){const t=await this.context.createObjectPropertyVars(this.remoteObject),r=new Set(t.map((e=>e.name)));for(const e of this.extraProperties)r.has(e.name)||t.push(this.context.createVariableByType({name:e.name},e.value));return t}async getRename(e){return(await this.renameProvider.provideOnStackframe(this.ref.stackFrame)).getOriginalName(e,this.ref.stackFrame.rawPosition)||e}async setProperty(e,t){const r=await this.context.cdp.Debugger.evaluateOnCallFrame({expression:`${t} ${(0,_.getSourceSuffix)()}`,callFrameId:this.ref.callFrameId});if(!r)throw new v.ProtocolError(b.createUserError((0,p.localize)("error.invalidExpression","Invalid expression")));if(r.exceptionDetails)throw new v.ProtocolError(Q(r.exceptionDetails));return await this.context.cdp.Debugger.setVariableValue({callFrameId:this.ref.callFrameId,scopeNumber:this.ref.scopeNumber,variableName:e,newValue:O(r.result)}),this.context.createVariableByType({name:e},r.result)}}class K{constructor(){this.value=new Map}get(e){return this.value.get(e)}add(e){this.value.set(e.id,e)}clear(){this.value.clear()}}let J=n=class{constructor(e,t,r,n,i){this.renameProvider=e,this.cdp=t,this.dap=r,this.launchConfig=n,this.locationProvider=i,this.vars=new K}createDetached(){return new n(this.renameProvider,this.cdp,this.dap,this.launchConfig,this.locationProvider)}clear(){this.vars.clear()}createFloatingVariable(e){return this.createFloatingContext().createVariableByType({name:""},e)}createVariableForOutput(e,t,r,n){const i=this.createFloatingContext(),o=1===t.length&&"table"===n?i.createVariable(V,{name:""},t[0]):1===t.length&&w.previewAsObject(t[0])&&!r?i.createVariableByType({name:""},t[0]):i.createVariable(L,{name:""},e,t,r),s=new I(o);return this.vars.add(s),s}createScope(e,t,r){const n=new z(e,new R(this.cdp,void 0,{name:""},this.vars,this.locationProvider,(()=>n),{customDescriptionGenerator:this.launchConfig.customDescriptionGenerator,customPropertiesGenerator:this.launchConfig.customPropertiesGenerator}),t,r,this.renameProvider);return this.vars.add(n),n}hasVariable(e){return!!this.vars.get(e)}hasMemory(e){return M(this.vars.get(Number(e)))}async readMemory(e,t,r){const n=this.vars.get(Number(e));return M(n)?n.readMemory(t,r):void 0}async writeMemory(e,t,r){const n=this.vars.get(Number(e)),i=M(n)?await n.writeMemory(t,r):0;return i>0&&this.dap.invalidated({areas:["variables"]}),i}async getVariables(e){const t=this.vars.get(e.variablesReference);if(!t)return[];const r=await t.getChildren(e);return(await Promise.all(r.map((e=>e.toDap(t instanceof z||t instanceof I?"repl":"propertyValue").then((t=>({v:e,dap:t}))))))).sort(((e,t)=>e.v.sortOrder-t.v.sortOrder||+e.dap.name-+t.dap.name||e.dap.name.localeCompare(t.dap.name))).map((e=>e.dap))}async setVariable(e){const t=this.vars.get(e.variablesReference);if(!e.value)throw new v.ProtocolError(b.createUserError((0,p.localize)("error.emptyExpression","Cannot set an empty value")));if(t instanceof z||t instanceof F){const r=await t.setProperty(e.name,e.value);return await r.toDap("propertyValue")}throw new v.ProtocolError(b.createSilentError((0,p.localize)("error.variableNotFound","Variable not found")))}createFloatingContext(){return new R(this.cdp,void 0,{name:"<unnamed>"},this.vars,this.locationProvider,void 0,{customDescriptionGenerator:this.launchConfig.customDescriptionGenerator,customPropertiesGenerator:this.launchConfig.customPropertiesGenerator})}};function Q(e){const t=e.exception&&w.previewException(e.exception).title||e.text;return b.createUserError(t)}J=n=s([(0,l.injectable)(),c(0,(0,l.inject)(m.IRenameProvider)),c(1,(0,l.inject)(d.ICdpApi)),c(2,(0,l.inject)(y.IDapApi)),c(3,(0,l.inject)(g.AnyLaunchConfiguration))],J),t.VariableStore=J},24862: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.VueFileMapper=t.IVueFileMapper=void 0;const o=r(55053),s=r(27819),a=r(95882),c=r(7678),u=r(71017),l=/^webpack:\/{3}([^/]+?\.vue)(\?[0-9a-z]*)?$/i,p=/^webpack:\/{3}\.\/.+\.vue\?[0-9a-z]+$/i;t.IVueFileMapper=Symbol("IVueFileMapper");let d=class{constructor(e,t){this.files=e,this.search=t,this.getMapping=(0,c.once)((async()=>{const e=new Map;return await this.search.streamAllChildren(this.files,(t=>e.set((0,u.basename)(t),t))),e}))}async lookup(e){const t=l.exec(e);if(t)return(await this.getMapping()).get(t[1])}getVueHandling(e){return this.files.empty?0:l.test(e)?1:p.test(e)?2:0}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(a.VueComponentPaths)),i(1,(0,o.inject)(s.ISearchStrategy))],d),t.VueFileMapper=d},5504: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.__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.Binder=void 0;const s=o(r(22037)),a=o(r(33463)),c=r(17180),u=r(4846),l=r(68164),p=r(33868),d=r(25370),h=r(44936),f=r(15501),m=r(221),g=r(7678),y=r(78986),b=o(r(97208)),v=r(73454),w=r(2263),_=r(99010),S=r(50036),k=r(43224),P=r(27812),x=a.loadMessageBundle(r(71017).join(__dirname,"binder.js"));t.Binder=class{constructor(e,t,r,n){this._rootServices=r,this._threads=new Map,this._terminationCount=0,this._onTargetListChangedEmitter=new h.EventEmitter,this.onTargetListChanged=this._onTargetListChangedEmitter.event,this._serviceTree=new WeakMap,this._delegate=e,this._dap=t.dap(),this._targetOrigin=n,this._disposables=[this._onTargetListChangedEmitter,(0,P.installUnhandledErrorReporter)(r.get(f.ILogger),r.get(k.ITelemetryReporter),r.get(_.IsVSCode))],t.attachTelemetry(r.get(k.ITelemetryReporter)),this._dap.then((e=>{let t,n=0;e.on("initialize",(async t=>{this._rootServices.bind(_.IInitializeParams).toConstantValue(t);const r=u.DebugAdapter.capabilities();return"vscode"===t.clientID&&(0,P.filterErrorsReportedToTelemetry)(),setTimeout((()=>{e.initialized({})}),0),r})),e.on("setExceptionBreakpoints",(async()=>({}))),e.on("setBreakpoints",(async e=>{var t,i,o;return(null===(t=e.breakpoints)||void 0===t?void 0:t.length)&&r.get(l.DiagnosticToolSuggester).notifyHadBreakpoint(),{breakpoints:null!==(o=null===(i=e.breakpoints)||void 0===i?void 0:i.map((()=>({id:++n,verified:!1,message:x(0,null)}))))&&void 0!==o?o:[]}})),e.on("configurationDone",(async()=>({}))),e.on("threads",(async()=>({threads:[]}))),e.on("loadedSources",(async()=>({sources:[]}))),e.on("breakpointLocations",(()=>Promise.resolve({breakpoints:[]}))),e.on("attach",(t=>this._boot((0,v.applyDefaults)(t,this._rootServices.get(_.ExtensionLocation)),e))),e.on("launch",(t=>this._boot((0,v.applyDefaults)(t,this._rootServices.get(_.ExtensionLocation)),e))),e.on("pause",(async()=>({}))),e.on("terminate",(async()=>(await this._disconnect(),{}))),e.on("disconnect",(async()=>(await this._disconnect(),{}))),e.on("restart",(async({arguments:e})=>(await this._restart(e),{}))),e.on("startSelfProfile",(async({file:e})=>(null==t||t.dispose(),t=new p.SelfProfile(e),await t.start(),{}))),e.on("stopSelfProfile",(async()=>(t&&(await t.stop(),t.dispose(),t=void 0),{})))}))}getLaunchers(){if(!this._launchers){this._launchers=new Set(this._rootServices.getAll(S.ILauncher));for(const e of this._launchers)e.onTargetListChanged((()=>{const t=this.targetList();this._attachToNewTargets(t,e),this._detachOrphanThreads(t),this._onTargetListChangedEmitter.fire()}),void 0,this._disposables)}return this._launchers}async _disconnect(){if(!this._launchers)return;this._rootServices.get(k.ITelemetryReporter).flush(),await Promise.all([...this._launchers].map((e=>e.disconnect())));const e=()=>!this.targetList.length&&0===this._terminationCount;e()||(await new Promise((t=>this.onTargetListChanged((()=>{e()&&t()})))),await(0,y.delay)(0))}async _boot(e,t){!function(e){v.isNightly&&e.output({category:"console",output:'Note: Using the "preview" debug extension\n'})}(t),this.reportBootTelemetry(e),(0,w.provideLaunchParams)(this._rootServices,e,t),this._rootServices.get(f.ILogger).setup((0,f.resolveLoggerOptions)(t,e.trace));const r=e.timeout>0?d.CancellationTokenSource.withTimeout(e.timeout):new d.CancellationTokenSource;e.rootPath&&(e.rootPath=b.platformPathToPreferredCase(e.rootPath)),this._launchParams=e;try{await Promise.all([...this.getLaunchers()].map((t=>this._launch(t,e,r.token))))}catch(e){throw e}return{}}reportBootTelemetry(e){const t=(0,v.applyDefaults)({type:e.type,request:e.request,name:"<string>",__workspaceFolder:"<workspace>"}),r=(e,n)=>"string"==typeof e?n&&t[n]===e?e:"<string>":e instanceof Array?e.map((e=>r(e))):e&&"object"==typeof e?(0,g.mapValues)(e,(e=>r(e))):e;this._rootServices.get(k.ITelemetryReporter).report("launch",{type:e.type,request:e.request,os:`${s.platform()} ${s.arch()}`,nodeVersion:process.version,adapterVersion:v.packageVersion,parameters:(0,g.mapValues)(e,r)})}async _restart(e){let t;if(e){const r=this._rootServices.get(m.MutableLaunchConfig);t=(0,v.applyDefaults)(Object.assign({__workspaceFolder:r.__workspaceFolder},e),this._rootServices.get(_.ExtensionLocation)),r.update(t)}await Promise.all([...this.getLaunchers()].map((e=>e.restart(t))))}async _launch(e,t,r){if(!(await this.captureLaunch(e,t,r)).blockSessionTermination)return;++this._terminationCount;const n=e.onTerminated((e=>{n.dispose();const t=this._detachOrphanThreads(this.targetList(),{restart:e.restart});--this._terminationCount,this._onTargetListChangedEmitter.fire(),this._terminationCount||t.then((()=>this._dap)).then((t=>t.terminated({restart:e.restart})))}));this._disposables.push(n)}async captureLaunch(e,t,r){const n=e.constructor.name;let i;try{i=await e.launch(t,{telemetryReporter:this._rootServices.get(k.ITelemetryReporter),cancellationToken:r,targetOrigin:this._targetOrigin,dap:await this._dap})}catch(e){throw this._rootServices.get(f.ILogger).warn("runtime.launch","Launch returned error",{error:e,wasCancelled:r.isCancellationRequested,name:n}),e}return i.blockSessionTermination&&this._rootServices.get(f.ILogger).info("runtime.launch","Launched successfully",{name:n}),i}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[],(0,_.disposeContainer)(this._rootServices),this._detachOrphanThreads([])}targetList(){const e=[];for(const t of this.getLaunchers())e.push(...t.targetList());return e}async attach(e,t,r){if(!this._launchParams)throw new Error("Cannot launch before params have been set");if(!e.canAttach())return;const n=await e.attach();if(!n)return;const i=await this._delegate.acquireDap(e),o=await i.dap(),s=this._launchParams;this._asyncStackPolicy||(this._asyncStackPolicy=(0,c.getAsyncStackPolicy)(s.showAsyncStacks));const a=e.parent(),l=a&&this._serviceTree.get(a)||this._rootServices,p=(0,w.createTargetContainer)(l,e,o,n);i.attachTelemetry(p.get(k.ITelemetryReporter)),this._serviceTree.set(e,l);const d=new u.DebugAdapter(o,this._asyncStackPolicy,s,p),h=d.createThread(n,e),f=async()=>(await d.launchBlocker(),e.runIfWaitingForDebugger(),t.resolve({thread:h,debugAdapter:d}),{});await this._delegate.initAdapter(d,e,r)?f():(o.on("attach",f),o.on("launch",f),o.on("disconnect",(()=>this.detachTarget(e,p))),o.on("terminate",(()=>this.stopTarget(e,p))),o.on("restart",(async()=>(e.canRestart()?e.restart():await this._restart(),{})))),await e.afterBind()}async detachTarget(e,t){return t.get(k.ITelemetryReporter).flush(),this.targetList().includes(e)?(e.canDetach()?(await e.detach(),this._releaseTarget(e)):this._disconnect(),{}):{}}stopTarget(e,t){return t.get(k.ITelemetryReporter).flush(),this.targetList().includes(e)?(e.canStop()?e.stop():this._disconnect(),Promise.resolve({})):Promise.resolve({})}_attachToNewTargets(e,t){for(const r of e.values())if(r.waitingForDebugger()&&!this._threads.has(r)){const e=(0,y.getDeferred)();this._threads.set(r,e),this.attach(r,e,t)}}async _detachOrphanThreads(e,t){await Promise.all([...this._threads.keys()].filter((t=>!e.includes(t))).map((e=>this._releaseTarget(e,t))))}async _releaseTarget(e,t={}){const r=this._threads.get(e);if(!r)return;this._threads.delete(e);const n=await r.promise;await n.thread.dispose(),n.debugAdapter.dap.terminated(t),n.debugAdapter.dispose(),this._delegate.releaseDap(e)}}},63216:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CDPSession=t.ProtocolError=t.ICdpApi=void 0;const n=r(44936);let i=0;t.ICdpApi=Symbol("ICdpApi");class o extends Error{constructor(e){super("<<message>>"),this.method=e}setCause(e,t){var r;return this.cause={code:e,message:t},this.message=`CDP error ${e} calling method ${this.method}: ${t}`,this.stack=null===(r=this.stack)||void 0===r?void 0:r.replace("<<message>>",this.message),this}}t.ProtocolError=o,t.default=class{constructor(e,t,r){this.logger=t,this.telemetryReporter=r,this._connectionId=i++,this._lastId=1e3,this._disposedSessions=new Map,this._onDisconnectedEmitter=new n.EventEmitter,this.waitWrapper=function(){if(parseInt(process.versions.node,10)>=11)return setImmediate;let e=!1;const t=[],r=()=>{const n=t.shift();n?(setImmediate(r),n()):e=!1};return n=>{t.push(n),e||(e=!0,setImmediate(r))}}(),this.onDisconnected=this._onDisconnectedEmitter.event,this._transport=e,this._transport.onMessage((([e,t])=>this._onMessage(e,t))),this._transport.onEnd((()=>this._onTransportClose())),this._sessions=new Map,this._closed=!1,this._rootSession=new a(this,"",this.logger),this._sessions.set("",this._rootSession)}rootSession(){return this._rootSession.cdp()}_send(e,t={},r){const n=++this._lastId,i={id:n,method:e,params:t};r&&(i.sessionId=r);const o=JSON.stringify(i);return this.logger.verbose("cdp.send",void 0,{connectionId:this._connectionId,message:i}),this._transport.send(o),n}_onMessage(e,t){const r=JSON.parse(e);let n=r;r.result&&r.result.scriptSource?n=Object.assign(Object.assign({},r),{result:Object.assign(Object.assign({},r.result),{scriptSource:"<script source>"})}):"Debugger.scriptParsed"===r.method&&r.params&&r.params.sourceMapURL&&r.params.sourceMapURL.startsWith("data:")&&(n=Object.assign(Object.assign({},r),{params:Object.assign(Object.assign({},r.params),{sourceMapURL:"<data source map url>"})})),this.logger.verbose("cdp.receive",void 0,{connectionId:this._connectionId,message:n});const i=this._sessions.get(r.sessionId||"");if(!i){const e=this._disposedSessions.get(r.sessionId);if(e){const t=(Date.now()-e.getTime())/1e3;return void this.logger.warn("internal",`Got message for a session disposed ${t} seconds ago`,{sessionId:r.sessionId,disposeOn:e})}throw new Error(`Unknown session id: ${r.sessionId} while processing: ${r.method}`)}const o=r.method;let s;try{i._onMessage(r)}catch(e){s=e}o&&this.telemetryReporter.reportOperation("cdpOperation",o,t.elapsed().ms,s)}_onTransportClose(){if(!this._closed){this._closed=!0,this._transport.dispose(),this.logger.info("cdp.receive",void 0,{connectionId:this._connectionId});for(const e of this._sessions.values())e._onClose();this._sessions.clear(),this._onDisconnectedEmitter.fire()}}close(){this._onTransportClose()}isClosed(){return this._closed}createSession(e){const t=new a(this,e,this.logger);return this._sessions.set(e,t),t.cdp()}disposeSession(e){const t=this._sessions.get(e);t&&(t._onClose(),this._disposedSessions.set(t.sessionId(),new Date),this._sessions.delete(t.sessionId()))}};const s=+process.version.substring(1).split(".")[0]<11;class a{constructor(e,t,r){this.logger=r,this._queue=[],this._prefixListeners=new n.ListenerMap,this._directListeners=new n.ListenerMap,this.paused=!1,this._callbacks=new Map,this._connection=e,this._sessionId=t,this._cdp=this._createApi()}pause(){this.paused=!0}resume(){if(!this.paused)return;this.paused=!1;const e=this._queue;this._queue=[],this.logger.verbose("cdp.receive","Dequeue messages",{message:e});for(const t of e)this._processResponse(t)}cdp(){return this._cdp}sessionId(){return this._sessionId}_createApi(){return new Proxy({},{get:(e,t)=>"pause"===t?()=>this.pause():"resume"===t?()=>this.resume():"session"===t?this:new Proxy({},{get:(e,r)=>{if("then"!==r)return"on"===r?(e,r)=>this.on(`${t}.${e}`,r):e=>this.send(`${t}.${r}`,e)}})})}on(e,t){return this._directListeners.listen(e,t)}onPrefix(e,t){return this._prefixListeners.listen(e,t)}send(e,t={}){return this.sendOrDie(e,t).catch((()=>{}))}sendOrDie(e,t={}){if(!this._connection)return Promise.reject(new o(e).setCause(0,"Connection is closed"));const r=this._connection._send(e,t,this._sessionId);return new Promise(((t,n)=>{this._callbacks.set(r,{resolve:t,reject:n,from:new o(e),method:e})}))}_onMessage(e){this.paused&&e.id?this._processResponse(e):this._queue.length>0?this._queue.push(e):s||this.paused?(this._queue.push(e),this.paused||this._processQueue()):this._processResponse(e)}_processQueue(){var e;null===(e=this._connection)||void 0===e||e.waitWrapper((()=>{if(this.paused)return;const e=this._queue.shift();e&&(this._processResponse(e),this._queue.length&&this._processQueue())}))}_processResponse(e){if(void 0===e.id){const t=e;this._directListeners.emit(t.method,t.params);for(const[e,r]of this._prefixListeners.listeners)t.method.startsWith(e)&&r.fire(t);return}const t=this._callbacks.get(e.id);t&&(this._callbacks.delete(e.id),"error"in e?t.reject(t.from.setCause(e.error.code,e.error.message)):"result"in e&&t.resolve(e.result))}async detach(){if(!this._connection)throw new Error("Session already detached. Most likely the target has been closed.");this._connection._send("Target.detachFromTarget",{},this._sessionId)}isClosed(){return!this._connection}_onClose(){for(const e of this._callbacks.values())e.reject(e.from.setCause(0,"Connection is closed"));this._callbacks.clear(),this._connection=void 0}}t.CDPSession=a},16769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GzipPipeTransport=void 0;const n=r(59796),i=r(34517);class o extends i.RawPipeTransport{constructor(e,t,r){super(e,(0,n.createGzip)(),(r||t).pipe((0,n.createGunzip)())),this.pipeWrite.pipe(t)}send(e){super.send(e),this.pipeWrite.flush(n.constants.Z_SYNC_FLUSH)}beforeClose(){this.pipeWrite.flush(n.constants.Z_FINISH)}}t.GzipPipeTransport=o},34517:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RawPipeTransport=void 0;const i=n(r(67794)),o=r(7678),s=r(44936),a=r(51457);t.RawPipeTransport=class{constructor(e,t,r){this.logger=e,this.pipeWrite=t,this.pipeRead=r,this.messageEmitter=new s.EventEmitter,this.endEmitter=new s.EventEmitter,this.onMessage=this.messageEmitter.event,this.onEnd=this.endEmitter.event,this.onceEnded=(0,o.once)((()=>{var e;this.streams&&(this.beforeClose(),this.streams.read.removeAllListeners(),null===(e=this.pipeRead)||void 0===e||e.destroy(),this.streams.write.removeListener("end",this.onceEnded),this.streams.write.removeListener("error",this.onWriteError),this.streams.write.on("error",(()=>{})),this.streams.write.end(),this.streams=void 0,this.endEmitter.fire())})),this.onWriteError=e=>{this.logger.error("internal","pipeWrite error",{error:e})};const n=r||t;this.streams={read:n.on("error",(e=>this.logger.error("internal","pipeRead error",{error:e}))).pipe((0,i.default)("\0")).on("data",(e=>this.messageEmitter.fire([e,new a.HrTime]))).on("end",this.onceEnded),write:t.on("end",this.onceEnded).on("error",this.onWriteError)}}send(e){var t;null===(t=this.streams)||void 0===t||t.write.write(e+"\0")}dispose(){this.onceEnded()}beforeClose(){}}},2940:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketTransport=void 0;const i=n(r(48681)),o=r(25370),s=r(44936),a=r(51457),c=r(97208);class u{constructor(e){this.messageEmitter=new s.EventEmitter,this.endEmitter=new s.EventEmitter,this.onMessage=this.messageEmitter.event,this.onEnd=this.endEmitter.event,this._ws=e,this._ws.addEventListener("message",(e=>{this.messageEmitter.fire([e.data.toString("utf-8"),new a.HrTime])})),this._ws.addEventListener("close",(()=>{this.endEmitter.fire(),this._ws=void 0})),this._ws.addEventListener("error",(()=>{}))}static async create(e,t){const r=!e.startsWith("ws://"),n=await(0,c.isLoopback)(e);for(;;)try{const s={headers:{host:"localhost"},perMessageDeflate:!1,maxPayload:268435456,rejectUnauthorized:!(r&&n),followRedirects:!0},a=new i.default(e,[],s);return await(0,o.timeoutPromise)(new Promise(((r,n)=>{a.addEventListener("open",(()=>r(new u(a)))),a.addEventListener("error",(i=>{const o=e===a.url?e:a.url.replace(/^http(s?):/,"ws$1:");o!==e?this.create(o,t).then(r,n):n(i.error)}))})),o.CancellationTokenSource.withTimeout(2e3,t).token,`Could not open ${e}`).catch((e=>{throw a.close(),e}))}catch(e){if(t.isCancellationRequested)throw e}}send(e){var t;null===(t=this._ws)||void 0===t||t.send(e)}dispose(){return new Promise((e=>{if(!this._ws)return e();this._ws.addEventListener("close",(()=>e())),this._ws.close()}))}}t.WebSocketTransport=u},55012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTransport=void 0;const n=r(5376),i=r(44936),o=r(51457);t.WorkerTransport=class{constructor(e,t){this.sessionId=e,this.sink=t,this.onMessageEmitter=new i.EventEmitter,this.onEndEmitter=new i.EventEmitter,this.disposables=new n.DisposableList,this.onMessage=this.onMessageEmitter.event,this.onEnd=this.onEndEmitter.event,this.disposables.push(t.NodeWorker.on("detachedFromWorker",(t=>{t.sessionId===e&&(this.onEndEmitter.fire(),this.dispose())})),t.NodeWorker.on("receivedMessageFromWorker",(t=>{t.sessionId===e&&this.onMessageEmitter.fire([t.message,new o.HrTime])})))}send(e){this.sink.NodeWorker.sendMessageToWorker({message:e,sessionId:this.sessionId})}dispose(){this.disposables.isDisposed||(this.disposables.dispose(),this.onEndEmitter.fire())}}},22969:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BudgetStringBuilder=void 0,t.BudgetStringBuilder=class{constructor(e,t){this._tokens=[],this._separator=t||"",this._budget=e-1-this._separator.length}append(e){e.length>this.budget()?this.appendEllipsis():this._append(e)}_append(e){this._tokens.length&&(this._budget-=this._separator.length),this._tokens.push(e),this._budget-=e.length}appendEllipsis(){"…"!==this._tokens[this._tokens.length-1]&&this._append("…")}checkBudget(){return this._budget<=0&&this.appendEllipsis(),this._budget>0}budget(){return this._budget-(this._tokens.length?this._separator.length:0)}build(){return this._tokens.join(this._separator)}isEmpty(){return!this._tokens.length}}},25370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.Cancelled=t.NeverCancelled=t.cancellableRace=t.timeoutPromise=t.TaskCancelledError=void 0;const n=r(1032),i=r(44936),o=r(78986);class s extends n.ProtocolError{constructor(e){super({id:9243,format:e,showUser:!0}),this._cause={id:9243,format:e,showUser:!0}}}t.TaskCancelledError=s,t.timeoutPromise=function(e,t,r){if(t.isCancellationRequested)return Promise.reject(new s(r||"Task cancelled"));const n=(0,o.getDeferred)(),i=t.onCancellationRequested(n.resolve);return Promise.race([n.promise.then((()=>{throw new s(r||"Task cancelled")})),e.then((e=>(i.dispose(),e))).catch((e=>{throw i.dispose(),e}))])},t.cancellableRace=function(e,t){const r=new c(t),n=e.map((async e=>{try{return await e(r.token)}finally{r.cancel()}}));return Promise.race(n)};const a=Object.freeze((function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}));t.NeverCancelled=Object.freeze({isCancellationRequested:!1,onCancellationRequested:()=>({dispose:()=>{}})}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a});class c{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}static withTimeout(e,t){const r=new c(t),n=r._token=new u,i=setTimeout((()=>n.cancel()),e);return n.onCancellationRequested((()=>clearTimeout(i))),r}get token(){return this._token||(this._token=new u),this._token}cancel(){this._token?this._token instanceof u&&this._token.cancel():this._token=t.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof u&&this._token.dispose():this._token=t.NeverCancelled}}t.CancellationTokenSource=c;class u{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new i.EventEmitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}},97878: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.__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.writeToConsole=void 0;const s=o(r(89496));t.writeToConsole=function(e){s.debug.activeDebugConsole.appendLine(e)}},8216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeConfig=t.readConfig=t.asCommand=t.runCommand=t.registerCommand=t.isDebugType=t.allDebugTypes=t.allCommands=t.preferredDebugTypes=void 0,t.preferredDebugTypes=new Map([["pwa-node","node"],["pwa-chrome","chrome"],["pwa-extensionHost","extensionHost"],["pwa-msedge","msedge"]]);t.allCommands=new Set(Object.keys({"extension.js-debug.addCustomBreakpoints":null,"extension.pwa-node-debug.attachNodeProcess":null,"extension.js-debug.clearAutoAttachVariables":null,"extension.js-debug.setAutoAttachVariables":null,"extension.js-debug.autoAttachToProcess":null,"extension.js-debug.createDebuggerTerminal":null,"extension.js-debug.createDiagnostics":null,"extension.js-debug.debugLink":null,"extension.js-debug.npmScript":null,"extension.js-debug.pickNodeProcess":null,"extension.js-debug.prettyPrint":null,"extension.js-debug.removeAllCustomBreakpoints":null,"extension.js-debug.removeCustomBreakpoint":null,"extension.js-debug.revealPage":null,"extension.js-debug.startProfile":null,"extension.js-debug.stopProfile":null,"extension.js-debug.toggleSkippingFile":null,"extension.node-debug.startWithStopOnEntry":null,"extension.js-debug.requestCDPProxy":null,"extension.js-debug.openEdgeDevTools":null,"extension.js-debug.callers.add":null,"extension.js-debug.callers.goToCaller":null,"extension.js-debug.callers.gotToTarget":null,"extension.js-debug.callers.remove":null,"extension.js-debug.callers.removeAll":null})),t.allDebugTypes=new Set(Object.keys({"pwa-extensionHost":null,"node-terminal":null,"pwa-node":null,"pwa-chrome":null,"pwa-msedge":null})),t.isDebugType=e=>t.allDebugTypes.has(e),t.registerCommand=(e,t,r)=>e.registerCommand(t,r),t.runCommand=async(e,t,...r)=>await e.executeCommand(t,...r),t.asCommand=e=>e,t.readConfig=(e,t,r)=>e.getConfiguration(void 0,r).get(t),t.writeConfig=(e,t,r,n)=>e.getConfiguration().update(t,r,n)},18229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapUsingProjection=void 0;class r{constructor(e,t){this.key=e,this.value=t}toString(){return`${this.key}: ${this.value}`}}class n{constructor(e,t){this.projection=e,this.initialContents=t;const n=Array.from(t||[]).map((e=>[this.projection(e[0]),new r(e[0],e[1])]));this.projectionToKeyAndValue=new Map(n)}clear(){this.projectionToKeyAndValue.clear()}delete(e){const t=this.projection(e);return this.projectionToKeyAndValue.delete(t)}forEach(e,t){this.projectionToKeyAndValue.forEach((r=>{e.call(t,r.value,r.key,this)}),t)}get(e){const t=this.projection(e),r=this.projectionToKeyAndValue.get(t);return r?r.value:void 0}has(e){return this.projectionToKeyAndValue.has(this.projection(e))}set(e,t){return this.projectionToKeyAndValue.set(this.projection(e),new r(e,t)),this}get size(){return this.projectionToKeyAndValue.size}*entries(){for(const e of this.projectionToKeyAndValue.values())yield[e.key,e.value]}*keys(){for(const e of this.projectionToKeyAndValue.values())yield e.key}*values(){for(const e of this.projectionToKeyAndValue.values())yield e.value}[Symbol.iterator](){return this.entries()}get[Symbol.toStringTag](){return JSON.stringify(Array.from(this.entries()))}toString(){return`MapUsingProjection<${JSON.stringify([...this.entries()])}>`}}t.MapUsingProjection=n},78472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableMap=void 0;const n=r(44936);t.ObservableMap=class{constructor(){this.changeEmitter=new n.EventEmitter,this.addEmitter=new n.EventEmitter,this.removeEmitter=new n.EventEmitter,this.targetMap=new Map,this.onChanged=this.changeEmitter.event,this.onAdd=this.addEmitter.event,this.onRemove=this.removeEmitter.event}get size(){return this.targetMap.size}add(e,t){this.targetMap.set(e,t),this.addEmitter.fire([e,t]),this.changeEmitter.fire()}get(e){return this.targetMap.get(e)}remove(e){const t=this.targetMap.get(e);return void 0!==t&&(this.targetMap.delete(e),this.removeEmitter.fire([e,t]),this.changeEmitter.fire(),!0)}value(){return this.targetMap.values()}}},8261: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)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBrowserProvider=t.IDefaultBrowserProvider=void 0;const s=o(r(97619)),a=r(55053),c=r(99010),u=r(63945),l=r(7678),p=new Map([["chrome",0],["safari",1],["firefox",2],["msedge",3],["microsoft edge",3],["appxq0fevzme2pys62n3e0fbqa7peapykr8v",4],["ie.http",5]]),d=e=>{e=e.toLowerCase();for(const[t,r]of p.entries())if(e.includes(t))return r};t.IDefaultBrowserProvider=Symbol("IDefaultBrowserProvider");let h=class{constructor(e,t=process.platform){this.execa=e,this.platform=t,this.lookup=(0,l.once)((()=>"win32"===this.platform?this.lookupWindows():this.lookupUnix()))}async lookupUnix(){const{name:e}=await(0,s.default)();return d(e)}async lookupWindows(){const e=await this.execa("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]);if(e.failed)throw u.ChildProcessError.fromExeca(e);const t=/ProgId\s*REG_SZ\s*(\S+)/.exec(e.stdout);if(t)return d(t[1])}};h=n([(0,a.injectable)(),i(0,(0,a.inject)(c.Execa))],h),t.DefaultBrowserProvider=h},5376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisposableList=t.noOpDisposable=t.RefCounter=void 0;const n=r(7678);t.RefCounter=class{constructor(e){this.value=e,this.disposed=!1,this.count=0}checkout(){if(this.disposed)throw new Error("Cannot checkout a disposed instance");return this.count++,{value:this.value,dispose:(0,n.once)((()=>{0==--this.count&&this.dispose()}))}}dispose(){this.disposed||(this.disposed=!0,this.value.dispose)}},t.noOpDisposable={dispose:()=>{}},t.DisposableList=class{constructor(e){this.disposed=!1,this.items=[],e&&(this.items=e.slice())}get isDisposed(){return this.disposed}callback(...e){for(const t of e)this.push({dispose:t})}push(...e){return this.disposed?(e.forEach((e=>e.dispose())),e[0]):(this.items.push(...e),e[0])}disposeObject(e){this.items=this.items.filter((t=>t!==e)),e.dispose()}dispose(){const e=Promise.all(this.items.map((e=>e.dispose())));return this.items=[],this.disposed=!0,e}}},94570: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.__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.EnvironmentVars=t.getSanitizeProcessEnv=void 0;const s=o(r(71017)),a=r(7678);function c(e){const t=[/^APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL$/i,/^ELECTRON_.+$/i,/^GOOGLE_API_KEY$/i,/^VSCODE_.+$/i,/^SNAP(|_.*)$/i,/^GDK_PIXBUF_.+$/i];return new u(e).map(((e,r)=>t.some((t=>t.test(e)))?void 0:r))}t.getSanitizeProcessEnv=c;class u{constructor(e){this.defined=(0,a.once)((()=>(0,a.removeNulls)(this.value))),this.value=e?(0,a.removeUndefined)(e):{}}lookup(e){return"win32"===u.platform?(0,a.getCaseInsensitiveProperty)(this.value,e):this.value[e]}addToPath(e,t="append",r=!1){const n="win32"===u.platform?"Path":"PATH",i="win32"===u.platform?s.win32.delimiter:s.posix.delimiter;let o=this.lookup(n);return r&&!o&&(o=`\${env:${n}}`),o=o?"append"===t?o+i+e:e+i+o:e,this.update(n,o)}addNodeOption(e){const t=this.lookup("NODE_OPTIONS");return this.update("NODE_OPTIONS",t?`${t} ${e}`:e)}update(e,t){return u.merge(this,{[e]:t})}merge(...e){return u.merge(this,...e)}map(e){return new u((0,a.mapValues)(this.value,((t,r)=>e(r,t))))}static merge(...e){const t=e.map((e=>e instanceof u?e.value:e)),r="win32"===u.platform?(0,a.caseInsensitiveMerge)(...t):Object.assign({},...t);return new u(r)}}t.EnvironmentVars=u,u.platform=process.platform,u.empty=new u({}),u.processEnv=(0,a.once)((()=>c(process.env)))},44936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerMap=t.EventEmitter=void 0;const n=r(7678);class i{constructor(){this._listeners=new Set,this.event=(e,t,r)=>{const n={listener:e,thisArg:t};this._listeners.add(n);const i={dispose:()=>{i.dispose=()=>{},this._listeners.delete(n)}};return r&&r.push(i),i}}get size(){return this._listeners.size}fire(e){const t=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const t of this._listeners)this._deliveryQueue.push({data:t,event:e});if(t){for(let e=0;e<this._deliveryQueue.length;e++){const{data:t,event:r}=this._deliveryQueue[e];t.listener.call(t.thisArg,r)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}t.EventEmitter=i,t.ListenerMap=class{constructor(){this.map=new Map,this.listeners=this.map}listen(e,t){let r=this.map.get(e);r||(r=new i,this.map.set(e,r));const o=r.event(t);return{dispose:(0,n.once)((()=>{o.dispose(),0===(null==r?void 0:r.size)&&this.map.delete(e)}))}}emit(e,t){var r;null===(r=this.listeners.get(e))||void 0===r||r.fire(t)}}},95882: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.__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.VueComponentPaths=t.OutFiles=t.FileGlobList=void 0;const c=r(55053),u=s(r(71017)),l=r(73454);let p=class{constructor({rootPath:e,patterns:t}){e&&t?(this.rootPath=e,this.patterns=t.map((t=>u.isAbsolute(t)?u.relative(e,t):t))):(this.rootPath="",this.patterns=[])}get empty(){return 0===this.patterns.length}};p=o([(0,c.injectable)()],p),t.FileGlobList=p;let d=class extends p{constructor({rootPath:e,outFiles:t,sourceMaps:r}){super({rootPath:e,patterns:!1===r?[]:t})}};d=o([(0,c.injectable)(),a(0,(0,c.inject)(l.AnyLaunchConfiguration))],d),t.OutFiles=d;let h=class extends p{constructor(e){super({rootPath:e.rootPath,patterns:"vueComponentPaths"in e?e.vueComponentPaths:[]})}};h=o([(0,c.injectable)(),a(0,(0,c.inject)(l.AnyLaunchConfiguration))],h),t.VueComponentPaths=h},77551: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.__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.waitForServerToListen=t.makeAcquireWebSocketServer=t.makeAcquireTcpServer=t.acquirePortNumber=t.isPortOpen=t.findOpenPort=void 0;const s=o(r(41808)),a=o(r(48681)),c=r(25370),u=r(67999);function l(e,t=c.NeverCancelled){let r;return new Promise(((n,i)=>{const o=s.createServer();o.listen(e,"127.0.0.1",(()=>{const e=o.address();o.close((()=>n(e.port)))})),o.on("error",i),r=t.onCancellationRequested((()=>{o.close(),i(new c.TaskCancelledError("Port open lookup cancelled"))}))})).finally((()=>null==r?void 0:r.dispose()))}t.findOpenPort=async function({min:e=53e3,max:t=54e3,attempts:r=1e3,tester:n=l}={},i=c.NeverCancelled){let o=(0,u.randomInRange)(e,t);for(let s=Math.min(r,t-e);;s--)try{return await n(o,i)}catch(r){if(0===s||r instanceof c.TaskCancelledError)throw r;o=o===t-1?e:o+1}},t.isPortOpen=async function(e,t){try{return await l(e,t),!0}catch(e){return!1}},t.acquirePortNumber=l,t.makeAcquireTcpServer=e=>(r,n)=>{const i=s.createServer(e);return i.listen(r,"127.0.0.1"),(0,t.waitForServerToListen)(i,n)},t.makeAcquireWebSocketServer=e=>(r,n)=>(0,t.waitForServerToListen)(new a.Server(Object.assign(Object.assign({host:"127.0.0.1"},e),{port:r})),n),t.waitForServerToListen=(e,t)=>{let r;return new Promise(((n,i)=>{e.on("error",i),e.on("listening",(()=>n(e))),r=t.onCancellationRequested((()=>{e.close(),i(new c.TaskCancelledError("Port open lookup cancelled"))}))})).finally((()=>null==r?void 0:r.dispose()))}},26379: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.__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.LocalAndRemoteFsUtils=t.RemoteFsThroughDapUtils=t.LocalFsUtils=t.IFsUtils=t.readFileRaw=t.writeFile=t.readfile=t.readdir=t.stat=t.moveFile=t.existsWithoutDeref=t.existsInjected=t.copyFile=t.canAccess=t.fsModule=void 0;const s=o(r(57147)),a=o(r(73837));async function c({access:e},t){if(!t)return!1;try{return await e(t),!0}catch(e){return!1}}t.fsModule=s,t.canAccess=c,t.copyFile=async function(e,t,r){try{await e.copyFile(t,r)}catch(n){try{if(!await c(e,r))throw n;await e.unlink(r),await e.copyFile(t,r)}catch(e){throw n}}},t.existsInjected=async function({stat:e},t){if(t)try{return await e(t)}catch(e){return}},t.existsWithoutDeref=async function({lstat:e},t){if(t)try{return await e(t)}catch(e){return}},t.moveFile=async function({copyFile:e,rename:t,unlink:r},n,i){try{await t(n,i)}catch(t){await e(n,i),await r(n)}},t.stat=function(e){return new Promise((t=>{s.stat(e,((e,r)=>t(e?void 0:r)))}))},t.readdir=function(e){return new Promise((t=>{s.readdir(e,"utf8",(async(e,r)=>{t(e?[]:r)}))}))},t.readfile=function(e){return new Promise((t=>{s.readFile(e,"utf8",(async(e,r)=>{t(e?"":r)}))}))},t.writeFile=a.promisify(s.writeFile),t.readFileRaw=function(e){return s.promises.readFile(e).catch((()=>Buffer.alloc(0)))},t.IFsUtils=Symbol("FsUtils");class u{constructor(e){this.fs=e}realPath(e){return this.fs.realpath(e)}async exists(e){try{return await this.fs.access(e,s.constants.F_OK),!0}catch(e){return!1}}readFile(e){return this.fs.readFile(e)}}t.LocalFsUtils=u;class l{constructor(e){this.dap=e}async realPath(){throw new Error("not implemented")}async exists(e){try{const{doesExists:t}=await this.dap.remoteFileExistsRequest({localFilePath:e});return t}catch(e){return!1}}readFile(){throw new Error("not implemented")}}t.RemoteFsThroughDapUtils=l,t.LocalAndRemoteFsUtils=class{constructor(e,t,r){this.remoteFilePrefix=e,this.localFsUtils=t,this.remoteFsUtils=r}static create(e,t,r){const n=new u(t);return void 0!==e?new this(e.toLowerCase(),n,new l(r)):n}async exists(e){return this.selectFs(e).exists(e)}async readFile(e){return this.selectFs(e).readFile(e)}async realPath(e){return this.selectFs(e).realPath(e)}selectFs(e){return e.toLowerCase().startsWith(this.remoteFilePrefix)?this.remoteFsUtils:this.localFsUtils}}},79191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hasher=void 0;const n=r(32081),i=r(71017),o=r(7678),s=r(78986);t.Hasher=class{constructor(e=3){this.maxFailures=e,this.idCounter=0,this.failureCount=0,this.deferredMap=new Map,this.deferCleanup=(0,o.debounce)(3e4,(()=>this.cleanup()))}async hashBytes(e){return(await this.send({type:1,data:e,id:this.idCounter++})).hash}async hashFile(e){return(await this.send({type:0,file:e,id:this.idCounter++})).hash}async verifyBytes(e,t,r){return(await this.send({type:3,data:e,id:this.idCounter++,expected:t,checkNode:r})).matches}async verifyFile(e,t,r){return(await this.send({type:2,file:e,id:this.idCounter++,expected:t,checkNode:r})).matches}dispose(){this.cleanup(),this.deferCleanup.clear()}send(e){const t=this.getProcess();if(!t)throw new Error("hash.bundle.js process unexpectedly exited");this.deferCleanup();const r=(0,s.getDeferred)();return this.deferredMap.set(e.id,{deferred:r,request:e}),t.send(e),r.promise}cleanup(){this.instance&&(this.instance.removeAllListeners("exit"),this.instance.kill(),this.instance=void 0,this.failureCount=0)}getProcess(){if(this.instance)return this.instance;if(this.failureCount>this.maxFailures)return;const e=this.instance=(0,n.fork)((0,i.join)(__dirname,"hash.bundle.js"),[],{env:{},silent:!0,execArgv:[]});return e.setMaxListeners(1/0),e.addListener("message",(e=>{const t=e,r=this.deferredMap.get(t.id);r&&(r.deferred.resolve(t),this.deferredMap.delete(t.id))})),e.on("exit",(()=>{if(this.instance=void 0,this.failureCount++>=this.maxFailures){for(const{deferred:e}of this.deferredMap.values())e.reject(new Error("hash.bundle.js process unexpectedly exited"));this.deferredMap.clear(),this.deferCleanup.clear()}else{const e=this.getProcess();this.deferCleanup();for(const{request:t}of this.deferredMap.values())null==e||e.send(t)}})),e}}},51457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HrTime=void 0;const r=1e9;class n{constructor(e=process.hrtime()){this.value=e}get ms(){return 1e3*this.s}get s(){return this.value[0]+this.value[1]/r}elapsed(){return(new n).subtract(this)}subtract(e){let t=this.value[1]-e.value[1],i=this.value[0]-e.value[0];return t<0&&(t+=r,i--),new n([i,t])}}t.HrTime=n},95473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogSink=void 0;const n=r(66775);t.ConsoleLogSink=class{constructor(e){this.dap=e}async setup(){}dispose(){}write(e){const t=e.level>3?"stderr":2===e.level?"console":"stdout";let r=`[${function(e){switch(e){case 4:return"FATAL";case 3:return"ERROR";case 2:return"WARN";case 1:return"INFO";case 0:return"VERB";default:return"UNKNOWN"}}(e.level)}@${function(){const e=new Date;return`${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}.${String(e.getUTCMilliseconds()).padStart(3,"0")}`}()}] [${e.tag}]`;e.message&&(r+=` ${e.message}`),e.metadata&&(r+=`: ${JSON.stringify(e.metadata)}`),r+="\n",this.dap.output((0,n.omitLoggingFor)({category:t,output:r}))}}},9330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileLogSink=void 0;const n=r(57147),i=r(71017),o=r(59796),s=(e,t)=>t instanceof Error?{message:t.message,stack:t.stack}:"bigint"==typeof t?t.toString():t;t.FileLogSink=class{constructor(e,t){this.file=e,this.dap=t;try{(0,n.mkdirSync)((0,i.dirname)(e),{recursive:!0})}catch(e){}e.endsWith(".gz")?(this.stream=(0,o.createGzip)(),this.stream.pipe((0,n.createWriteStream)(e))):this.stream=(0,n.createWriteStream)(e)}async setup(){var e;null===(e=this.dap)||void 0===e||e.output({category:"console",output:`Verbose logs are written to:\n${this.file}\n`})}dispose(){this.stream&&(this.stream.end(),this.stream=void 0)}write(e){var t,r;this.stream&&(this.stream.write(JSON.stringify(e,s)+"\n"),null===(r=(t=this.stream).flush)||void 0===r||r.call(t,o.constants.Z_SYNC_FLUSH))}}},15501: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.__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.resolveLoggerOptions=t.fulfillLoggerOptions=t.ILogger=t.allLogTags=void 0;const s=r(6113),a=r(22037),c=o(r(71017)),u=r(95473),l=r(9330);t.allLogTags=Object.keys({runtime:null,"runtime.sourcecreate":null,"runtime.assertion":null,"runtime.launch":null,"runtime.target":null,"runtime.welcome":null,"runtime.exception":null,"runtime.sourcemap":null,"runtime.breakpoints":null,"sourcemap.parsing":null,"perf.function":null,"cdp.send":null,"cdp.receive":null,"dap.send":null,"dap.receive":null,internal:null,proxyActivity:null}),t.ILogger=Symbol("ILogger");const p=e=>{switch(e.toLowerCase()){case"verbose":return 0;case"info":return 1;case"warn":return 2;case"error":return 3;case"fatal":return 4;default:throw new Error(`Unknown log level "${e}"`)}};function d(e,t=(0,a.tmpdir)()){if(!1===e)return{console:!1,level:"fatal",stdio:!1,logFile:null,tags:[]};const r={console:!1,level:"verbose",stdio:!0,logFile:c.join(t,`vscode-debugadapter-${(0,s.randomBytes)(4).toString("hex")}.json.gz`),tags:[]};return!0===e?r:Object.assign(Object.assign({},r),e)}t.fulfillLoggerOptions=d,t.resolveLoggerOptions=function(e,t){const r=d(t),n={tags:r.tags,level:void 0===r.level?0:p(r.level),sinks:[]};return r.console&&n.sinks.push(new u.ConsoleLogSink(e)),r.logFile&&n.sinks.push(new l.FileLogSink(r.logFile,e)),n}},74839:function(e,t,r){"use strict";var n,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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},a=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)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const c=r(55053),u=a(r(22037)),l=r(15501),p=r(24868),d=r(73454);let h=n=class{constructor(){this.logTarget={queue:[]},this.minLevel=0}static async test(e=1){const t=new n;return t.setup({sinks:[new p.TestLogSink],level:e,showWelcome:!1}),t}info(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:1})}verbose(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:0})}warn(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:2})}error(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:3})}fatal(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:4})}assert(e,t){if(!1===e||null==e){if(this.error("runtime.assertion",t,{error:new Error("Assertion failed")}),process.env.JS_DEBUG_THROW_ASSERTIONS)throw new Error(t);return!1}return!0}log(e){if("queue"in this.logTarget)this.logTarget.queue.push(e);else if(!(e.level<this.minLevel)&&(!this.tags||this.tags.has(e.tag)))for(const t of this.logTarget.sinks)t.write(e)}dispose(){if("sinks"in this.logTarget){for(const e of this.logTarget.sinks)e.dispose();this.logTarget={queue:[]}}}forTarget(){return this}async setup(e){if(this.minLevel=e.level,e.tags&&e.tags.length?this.tags=new Set(e.tags.map((e=>l.allLogTags.filter((t=>t===e||t.startsWith(`${e}.`))))).reduce(((e,t)=>[...e,...t]),[])):this.tags=void 0,await Promise.all(e.sinks.map((e=>e.setup()))),!1!==e.showWelcome){const t=f();for(const r of e.sinks)r.write(t)}const t=this.logTarget;this.logTarget={sinks:e.sinks.slice()},"sinks"in t?t.sinks.forEach((e=>e.dispose())):t.queue.forEach((e=>this.log(e)))}};h.null=(()=>{const e=new n;return e.setup({sinks:[],level:5}),e})(),h=n=s([(0,c.injectable)()],h),t.Logger=h;const f=()=>({timestamp:Date.now(),tag:"runtime.welcome",level:1,message:`${d.packageName} v${d.packageVersion} started`,metadata:{os:`${u.platform()} ${u.arch()}`,nodeVersion:process.version,adapterVersion:d.packageVersion}})},59657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyLogger=void 0;class r{constructor(){this.target={queue:[]}}connectTo(e){this.target={logger:e}}info(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:1})}verbose(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:0})}warn(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:2})}error(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:3})}fatal(e,t,r){this.log({tag:e,timestamp:Date.now(),message:t,metadata:r,level:4})}log(e){this.target&&("queue"in this.target?this.target.queue.push(e):this.target.logger.log(e))}assert(e,t){if(!1===e||null==e){if(this.error("runtime.assertion",t,{error:new Error("Assertion failed")}),process.env.JS_DEBUG_THROW_ASSERTIONS)throw new Error(t);return!1}return!0}setup(){throw new Error("A ProxyLogger cannot be setup()")}dispose(){this.target=void 0}forTarget(){return new r}}t.ProxyLogger=r},24868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestLogSink=void 0,t.TestLogSink=class{async setup(){}dispose(){}write(e){if(e.level>2)throw new Error(e.message);console.log(JSON.stringify(e))}}},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMutableLaunchConfig=t.MutableLaunchConfig=void 0;const n=r(44936);t.MutableLaunchConfig=Symbol("MutableLaunchConfig"),t.createMutableLaunchConfig=e=>{const t=new n.EventEmitter;return new Proxy({},{ownKeys:()=>Object.keys(e),get(r,n){switch(n){case"update":return r=>{e=r,t.fire()};case"onChange":return t.event;default:return e[n]}}})}},94723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.node15InternalsPrefix=void 0,t.node15InternalsPrefix="node:"},7678:(e,t)=>{"use strict";function r(e,t){const r={};for(const n of Object.keys(e)){const i=e[n];t(i,n)&&(r[n]=i)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.invertMap=t.upcastPartial=t.pick=t.flatten=t.bisectArray=t.trailingEdgeThrottle=t.debounce=t.memoizeWeak=t.memoize=t.once=t.getCaseInsensitiveProperty=t.caseInsensitiveMerge=t.walkObject=t.sortKeys=t.filterObject=t.mapKeys=t.mapValues=t.filterValues=t.assertNever=t.removeUndefined=t.removeNulls=t.truthy=void 0,t.truthy=e=>!!e,t.removeNulls=e=>r(e,(e=>null!==e)),t.removeUndefined=e=>r(e,(e=>void 0!==e)),t.assertNever=(e,t)=>{throw new Error(t.replace("{value}",JSON.stringify(e)))},t.filterValues=r,t.mapValues=function(e,t){const r={};for(const n of Object.keys(e)){const i=e[n];r[n]=t(i,n)}return r},t.mapKeys=function(e,t){const r={};for(const n of Object.keys(e)){const i=t(n,e[n]);void 0!==i&&(r[i]=e[n])}return r},t.filterObject=function(e,t){const r={};for(const n of Object.keys(e))t(n,e[n])&&(r[n]=e[n]);return r},t.sortKeys=function(e,t){if(!e||"object"!=typeof e||e instanceof Array)return e;const r={};for(const n of Object.keys(e).sort(t))r[n]=e[n];return r},t.walkObject=function e(t,r){if(t=r(t))if(t instanceof Array)t=t.map((t=>e(t,r)));else if("object"==typeof t&&t)for(const n of Object.keys(t))t[n]=e(t[n],r);return t},t.caseInsensitiveMerge=function(...e){if(0===e.length)return{};const t={},r=Object.create(null);for(const n of e)if(n)for(const e of Object.keys(n)){const i=e.toLowerCase();r[i]?t[r[i]]=n[e]:(r[i]=e,t[e]=n[e])}return t},t.getCaseInsensitiveProperty=function(e,t){if(e.hasOwnProperty(t))return e[t];const r=t.toLowerCase();for(const t of Object.keys(e))if(t.toLowerCase()===r)return e[t]};const n=Symbol("unset");t.once=function(e){let t=n;const r=(...i)=>(t===n&&(r.value=t=e(...i)),t);return r.forget=()=>{t=n,r.value=void 0},r.value=void 0,r},t.memoize=function(e){const t=new Map,r=r=>{if(t.has(r))return t.get(r);const n=e(r);return t.set(r,n),n};return r.clear=()=>t.clear(),r},t.memoizeWeak=function(e){const t=new WeakMap;return r=>{if(t.has(r))return t.get(r);const n=e(r);return t.set(r,n),n}},t.debounce=function(e,t){let r;const n=()=>{void 0!==r&&clearTimeout(r),r=setTimeout((()=>{r=void 0,t()}),e)};return n.clear=()=>{r&&(clearTimeout(r),r=void 0)},n},t.trailingEdgeThrottle=function(e,t){let r;const n=()=>{void 0===r&&(r=setTimeout((()=>{r=void 0,t()}),e))};return n.queued=()=>!!r,n.clear=()=>{r&&(clearTimeout(r),r=void 0)},n},t.bisectArray=function(e,t){const r=[],n=[];for(const i of e)t(i)?r.push(i):n.push(i);return[r,n]},t.flatten=function(e){let t=[];for(const r of e)t=t.concat(r);return t},t.pick=function(e,t){const r={};for(const n of t)r[n]=e[n];return r},t.upcastPartial=e=>e,t.invertMap=function(e){const t=new Map;for(const[r,n]of e)t.set(n,r);return t}},79783: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.__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},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isWindowsPath=t.isUncPath=t.isSubpathOrEqualTo=t.isSubdirectoryOf=t.splitWithDriveLetter=t.forceForwardSlashes=t.fixDriveLetterAndSlashes=t.fixDriveLetter=t.properRelative=t.properResolve=t.properJoin=t.isWithinAsar=t.findExecutable=t.findInPath=void 0;const a=s(r(79850)),c=o(r(71017)),u=r(26379),l=r(7678);function p(e,r=!1){if(!e)return e;if(e.match(/file:\/\/\/[A-Za-z]:/)){const t="file:///".length;e="file:///"+e[t].toLowerCase()+e.substr(t+1)}else if((0,t.isWindowsPath)(e)){const t=r?e[0].toUpperCase():e[0].toLowerCase();e=t+e.substr(1)}return e}function d(e){return e.replace(/\\\//g,"/").replace(/\\/g,"/")}t.findInPath=async function(e,t,r){let n;if("win32"===process.platform){const e=r.WINDIR||"C:\\Windows";n=c.join(e,"System32","where.exe")}else n="/usr/bin/which";try{if(await(0,u.existsInjected)(e,n)){const e=(await(0,a.default)(n,[t],{env:(0,l.removeNulls)(r)})).stdout.split(/\r?\n/);if("win32"===process.platform){const t=String(r.PATHEXT||".exe").toUpperCase().split(";");for(const r of e){const e=c.extname(r).toUpperCase();if(e&&t.includes(e))return r}}else if(e.length>0)return e[0];return}return t}catch(e){}},t.findExecutable=async function(e,t,r){if(t){if("win32"===process.platform&&!c.extname(t)){const n=r.lookup("PATHEXT");if(n){const r=n.split(";");for(const n of r){const r=t+n;if(await(0,u.existsInjected)(e,r))return r}}}return await(0,u.existsInjected)(e,t)?t:void 0}},t.isWithinAsar=e=>e.includes(`.asar${c.sep}`),t.properJoin=function(...e){return c.posix.isAbsolute(e[0])?d(c.posix.join(...e)):c.win32.isAbsolute(e[0])?c.win32.join(...e):c.join(...e)},t.properResolve=function(...e){return c.posix.isAbsolute(e[0])?c.posix.resolve(...e):c.win32.isAbsolute(e[0])?c.win32.resolve(...e):c.resolve(...e)},t.properRelative=function(e,t){return c.posix.isAbsolute(e)?c.posix.relative(e,t):c.win32.isAbsolute(e)?c.win32.relative(e,t):c.relative(e,t)},t.fixDriveLetter=p,t.fixDriveLetterAndSlashes=function(e,r=!1){if(!e)return e;if((e=p(e,r)).match(/file:\/\/\/[A-Za-z]:/)){const t="file:///".length;e=e.substr(0,t+1)+e.substr(t+1).replace(/\//g,"\\")}else(0,t.isWindowsPath)(e)&&(e=e.replace(/\//g,"\\"));return e},t.forceForwardSlashes=d,t.splitWithDriveLetter=e=>{const t=e.split(c.sep);return/^[a-z]:$/i.test(t[0])&&(t[0]+=c.sep),t},t.isSubdirectoryOf=(e,t)=>{const r=c.relative(e,t);return r.length&&!c.isAbsolute(r)&&!r.startsWith("..")},t.isSubpathOrEqualTo=(e,t)=>{const r=c.relative(e,t);return!c.isAbsolute(r)&&!r.startsWith("..")},t.isUncPath=e=>e.startsWith("\\\\"),t.isWindowsPath=e=>/^[A-Za-z]:/.test(e)},67790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base01Position=t.Base1Position=t.Base0Position=t.comparePositions=void 0,t.comparePositions=(e,t)=>{if(e instanceof r)return e.compare(t.base0);if(e instanceof i)return t.compare(t.base01);if(e instanceof n)return t.compare(t.base1);throw new Error(`Invalid position ${e}`)};class r{constructor(e,t){this.lineNumber=e,this.columnNumber=t}get base0(){return this}get base1(){return new n(this.lineNumber+1,this.columnNumber+1)}get base01(){return new i(this.lineNumber,this.columnNumber+1)}compare(e){return this.lineNumber-e.lineNumber||this.columnNumber-e.columnNumber||0}}t.Base0Position=r;class n{constructor(e,t){this.lineNumber=e,this.columnNumber=t}get base0(){return new r(this.lineNumber-1,this.columnNumber-1)}get base1(){return this}get base01(){return new i(this.lineNumber-1,this.columnNumber)}compare(e){return this.lineNumber-e.lineNumber||this.columnNumber-e.columnNumber||0}}t.Base1Position=n;class i{constructor(e,t){this.lineNumber=e,this.columnNumber=t}get base0(){return new r(this.lineNumber-1,this.columnNumber)}get base1(){return new n(this.lineNumber,this.columnNumber+1)}get base01(){return this}compare(e){return this.lineNumber-e.lineNumber||this.columnNumber-e.columnNumber||0}}t.Base01Position=i},63945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spawnAsync=t.ChildProcessError=void 0;const n=r(32081);class i extends Error{constructor(e,t,r,n,i){super(`${e} exited with code ${n||-1}: ${t}`),this.command=e,this.stderr=t,this.stdout=r,this.code=n,this.innerError=i}static fromExeca(e){return new i(e.command,e.stderr.toString(),e.stdout.toString(),e.exitCode)}}t.ChildProcessError=i,t.spawnAsync=function(e,t,r){return new Promise(((o,s)=>{const a=(0,n.spawn)(e,t,Object.assign(Object.assign({},r),{stdio:"pipe"})),c=[],u=[];a.stderr.on("data",(e=>c.push(e))),a.stdout.on("data",(e=>u.push(e)));const l=(t,r)=>s(new i(e,Buffer.concat(c).toString(),Buffer.concat(u).toString(),t,r));a.on("error",(e=>l(void 0,e))),a.on("close",(e=>e?l(e):o({stdout:Buffer.concat(u).toString(),stderr:Buffer.concat(c).toString()})))}))}},78986:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDeferred=t.some=t.disposableTimeout=t.delay=void 0,t.delay=e=>isFinite(e)?new Promise((t=>setTimeout(t,e))):new Promise((()=>{})),t.disposableTimeout=(e,t)=>{const r=setTimeout(e,t);return{dispose:()=>clearTimeout(r)}},t.some=function(e){return new Promise(((t,r)=>{let n=e.length;for(const i of e)i.then((e=>{e?(t(e),n=-1):0==--n&&t(void 0)})).catch(r)}))},t.getDeferred=function(){let e,t=null,r=null,n=!1;const i=new Promise(((i,o)=>{t=t=>{n=!0,e=t,i(t)},r=e=>{n=!0,o(e)}}));return{resolve:t,reject:r,promise:i,get settledValue(){return e},hasSettled:()=>n}}},67999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomInRange=void 0,t.randomInRange=(e,t)=>e+Math.floor(Math.random()*(t-e))},87768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semver=void 0;class r{constructor(e,t,r){this.major=e,this.minor=t,this.patch=r}static parse(e){const t=e.split(".").map(Number);if(3!==t.length||t.some(isNaN))throw new SyntaxError(`Input string '${e}' is not a semver`);return new r(t[0],t[1],t[2])}static min(e,t){return e.lt(t)?e:t}compare(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch}gt(e){return this.compare(e)>0}gte(e){return this.compare(e)>=0}lt(e){return this.compare(e)<0}lte(e){return this.compare(e)<=0}toString(){return`${this.major}.${this.minor}.${this.patch}`}}t.Semver=r},72223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statementToExpression=t.returnErrorsFromStatements=t.functionToFunctionCall=t.statementsToFunction=t.parseSource=t.parseProgram=t.getText=t.getEnd=t.getStart=t.acornOptions=void 0;const n=r(81132),i=r(22681);t.acornOptions={ecmaVersion:"latest",locations:!0,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,allowReserved:!0,allowReturnOutsideFunction:!0},t.getStart=e=>e.start,t.getEnd=e=>e.end,t.getText=(e,r)=>e.slice((0,t.getStart)(r),(0,t.getEnd)(r)),t.parseProgram=(e,r=!1)=>(r?n.parse:i.parse)(e,t.acornOptions),t.parseSource=e=>{const r=(0,t.parseProgram)(e);for(const e of r.body)"FunctionDeclaration"===e.type&&e.id&&(0,i.isDummy)(e.id)&&(e.id=null);return r.body},t.statementsToFunction=function(e,t,r){return t.length>1||"FunctionDeclaration"!==t[0].type?s(e,t,!0,r):o(e,[{type:"ReturnStatement",argument:{type:"CallExpression",optional:!1,arguments:[{type:"ThisExpression"},...e.map((e=>({type:"Identifier",name:e})))],callee:{type:"MemberExpression",property:{type:"Identifier",name:"call"},computed:!1,optional:!1,object:{type:"FunctionExpression",params:t[0].params,body:t[0].body}}}}],!0,r)};const o=(e,t,r,n)=>{const i={type:"Identifier",name:"e"},o=n?[{type:"TryStatement",block:{type:"BlockStatement",body:t},handler:{type:"CatchClause",param:i,body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"MemberExpression",object:i,property:{type:"Identifier",name:"stack"},computed:!1,optional:!1},operator:"||",right:{type:"MemberExpression",object:i,property:{type:"Identifier",name:"message"},computed:!1,optional:!1}},operator:"||",right:{type:"CallExpression",callee:{type:"Identifier",name:"String"},arguments:[i],optional:!1}}}]}}}]:t;return r?{type:"FunctionExpression",id:{type:"Identifier",name:"_generatedCode"},params:e.map((e=>({type:"Identifier",name:e}))),body:{type:"BlockStatement",body:o}}:{type:"ArrowFunctionExpression",params:e.map((e=>({type:"Identifier",name:e}))),expression:!1,body:{type:"BlockStatement",body:o}}};function s(e,t,r,n){const i=t[t.length-1];if("ReturnStatement"!==i.type){const e=a(i);e&&(t=[...t.slice(0,-1),{type:"ReturnStatement",argument:e}])}return o(e,t,r,n)}function a(e){switch(e.type){case"ExpressionStatement":return e.expression;case"BlockStatement":return{type:"CallExpression",arguments:[],callee:{type:"ArrowFunctionExpression",params:[],expression:!1,body:e},optional:!1};case"ReturnStatement":return e.argument||void 0;default:return}}t.functionToFunctionCall=(e,t)=>({type:"CallExpression",arguments:e.map((e=>({type:"Identifier",name:e}))),callee:t,optional:!1}),t.returnErrorsFromStatements=(e,r,n)=>(0,t.functionToFunctionCall)(e,s(e,r,n,!0)),t.statementToExpression=a},58893:function(e,t,r){"use strict";var n,i=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};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeSearchStrategy=void 0;const o=r(55053),s=r(79783),a=r(45145),c=r(27819);let u=n=class{constructor(e,t){this.vscode=e,this.logger=t,this.nodeStrategy=new a.NodeSearchStrategy(this.logger)}static createOrFallback(e){try{const t=r(89496);if(void 0!==t.workspace.findTextInFiles)return new n(t,e)}catch(e){}return new a.NodeSearchStrategy(e)}async streamAllChildren(e,t){return this.nodeStrategy.streamAllChildren(e,t)}async streamChildrenWithSourcemaps(e,t){if(e.patterns.some((e=>e.startsWith(".."))))return this.nodeStrategy.streamChildrenWithSourcemaps(e,t);const r=[];return await this.vscode.workspace.findTextInFiles({pattern:"sourceMappingURL",isCaseSensitive:!0},Object.assign(Object.assign({},this.getTextSearchOptions(e)),{previewOptions:{charsPerLine:Number.MAX_SAFE_INTEGER,matchLines:1}}),(e=>{const n="text"in e?e.text:e.preview.text;r.push((0,c.createMetadataForFile)(e.uri.fsPath,n).then((e=>e&&t(e))).catch((t=>this.logger.warn("sourcemap.parsing","Error parsing source map",{error:t,file:e.uri.fsPath}))))})),this.logger.info("sourcemap.parsing",`findTextInFiles search found ${r.length} files`),(await Promise.all(r)).filter((e=>void 0!==e))}getTextSearchOptions(e){return{include:new this.vscode.RelativePattern(e.rootPath,(0,s.forceForwardSlashes)(e.patterns.filter((e=>!e.startsWith("!"))).join(", "))),exclude:e.patterns.filter((e=>e.startsWith("!"))).map((e=>(0,s.forceForwardSlashes)(e.slice(1)))).join(","),useDefaultExcludes:!1,useIgnoreFiles:!1,useGlobalIgnoreFiles:!1,followSymlinks:!0,beforeContext:0,afterContext:0}}};u=n=i([(0,o.injectable)()],u),t.CodeSearchStrategy=u},23517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelatedCache=void 0;const n=r(57147),i=r(71017),o=r(7678),s=r(26379);t.CorrelatedCache=class{constructor(e,t=500){this.storageFile=e,this.debounceTime=t,this.flush=(0,o.debounce)(this.debounceTime,(()=>this.flushImmediately()));try{(0,n.mkdirSync)((0,i.dirname)(e))}catch(e){}}async lookup(e,t){const r=(await this.getData())[e];return r&&r.correlation===t?r.value:void 0}async store(e,t,r){(await this.getData())[e]={correlation:t,value:r},this.flush()}async flushImmediately(){return this.flush.clear(),(0,s.writeFile)(this.storageFile,JSON.stringify(await this.getData()))}dispose(){this.flushImmediately()}getData(){return this.cacheData||(this.cacheData=this.hydrateFromDisk()),this.cacheData}async hydrateFromDisk(){try{return JSON.parse(await(0,s.readfile)(this.storageFile))||{}}catch(e){return{}}}}},45145: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)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeSearchStrategy=void 0;const s=o(r(92112)),a=r(55053),c=r(15501),u=r(79783),l=r(27819);let p=class{constructor(e){this.logger=e}async streamAllChildren(e,t){const r=[];return await new Promise(((n,i)=>this.globForFiles(e).on("data",(e=>r.push(t((0,u.fixDriveLetterAndSlashes)(e.path))))).on("finish",n).on("error",i))),(await Promise.all(r)).filter((e=>void 0!==e))}async streamChildrenWithSourcemaps(e,t){const r=[];return await new Promise(((n,i)=>this.globForFiles(e).on("data",(e=>r.push((0,l.createMetadataForFile)((0,u.fixDriveLetterAndSlashes)(e.path)).then((e=>e&&t(e))).catch((t=>this.logger.warn("sourcemap.parsing","Error parsing source map",{error:t,file:e.path})))))).on("finish",n).on("error",i))),(await Promise.all(r)).filter((e=>void 0!==e))}globForFiles(e){return(0,s.default)([...e.patterns.map(u.forceForwardSlashes),"!**/*.asar/**"],{matchBase:!0,cwd:e.rootPath})}};p=n([(0,a.injectable)(),i(0,(0,a.inject)(c.ILogger))],p),t.NodeSearchStrategy=p},34285: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.RenameMapping=t.RenameProvider=t.IRenameProvider=void 0;const o=r(55053),s=r(44873),a=r(73454),c=r(67790),u=r(36268),l=r(43430),p=/[$a-z_][$0-9A-Z_$]*/iy;t.IRenameProvider=Symbol("IRenameProvider");let d=class{constructor(e,t){this.sourceMapFactory=e,this.launchConfig=t,this.renames=new Map}provideOnStackframe(e){if(!this.launchConfig.sourceMapRenames)return h.None;const t=e.uiLocation();return void 0===t?h.None:"then"in t?t.then((e=>this.provideForSource(null==e?void 0:e.source))):this.provideForSource(null==t?void 0:t.source)}provideForSource(e){if(!this.launchConfig.sourceMapRenames)return h.None;if(!(e instanceof s.SourceFromMap))return h.None;const t=e.compiledToSourceUrl.keys().next().value;if(!t)throw new Error("unreachable");const r=this.renames.get(t.url);if(r)return r;const n=this.sourceMapFactory.load(t.sourceMap.metadata).then((async e=>{if(!(null==e?void 0:e.hasNames))return h.None;const r=await t.content();return r?this.createFromSourceMap(e,r):h.None})).catch((()=>h.None));return this.renames.set(t.url,n),n}createFromSourceMap(e,t){const r=new u.PositionToOffset(t),n=[];return e.eachMapping((e=>{if(!e.name)return;const i=new c.Base01Position(e.generatedLine,e.generatedColumn),o=r.convert(i);p.lastIndex=o;const s=p.exec(t);s&&n.push({compiled:s[0],original:e.name,position:i})})),n.sort(((e,t)=>e.position.compare(t.position))),new h(n)}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(l.ISourceMapFactory)),i(1,(0,o.inject)(a.AnyLaunchConfiguration))],d),t.RenameProvider=d;class h{constructor(e){this.renames=e}getOriginalName(e,t){var r;return null===(r=this.getClosestRename(t,(t=>t.compiled===e)))||void 0===r?void 0:r.original}getCompiledName(e,t){var r;return null===(r=this.getClosestRename(t,(t=>t.original===e)))||void 0===r?void 0:r.compiled}getClosestRename(e,t){const r=e.base01;let n;for(const e of this.renames)if(t(e)){if(!(e.position.compare(r)<0)&&n)return n;n=e}return n}}t.RenameMapping=h,h.None=new h([])},9132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMap=void 0;const n=r(79783),i=r(97208);class o{constructor(e,t,r,n,i){if(this.original=e,this.metadata=t,this.actualRoot=r,this.actualSources=n,this.hasNames=i,this.sourceActualToOriginal=new Map,this.sourceOriginalToActual=new Map,this.id=o.idCounter++,n.length!==e.sources.length)throw new Error("Expected actualSources.length === original.source.length");for(let t=0;t<n.length;t++)this.sourceActualToOriginal.set(n[t],e.sources[t]),this.sourceOriginalToActual.set(e.sources[t],n[t])}get sources(){return this.actualSources.slice()}get file(){var e;return null!==(e=this.metadata.compiledPath)&&void 0!==e?e:this.original.file}get sourceRoot(){return this.actualRoot}get sourcesContent(){return this.original.sourcesContent}computedSourceUrl(e){return(0,n.fixDriveLetterAndSlashes)((0,i.completeUrlEscapingRoot)(this.metadata.sourceMapUrl.startsWith("data:")?this.metadata.compiledPath:this.metadata.sourceMapUrl,this.sourceRoot+e))}computeColumnSpans(){this.original.computeColumnSpans()}originalPositionFor(e){var t;const r=this.original.originalPositionFor(e);return r.source&&(r.source=null!==(t=this.sourceOriginalToActual.get(r.source))&&void 0!==t?t:r.source),r}generatedPositionFor(e){var t;return this.original.generatedPositionFor(Object.assign(Object.assign({},e),{source:null!==(t=this.sourceActualToOriginal.get(e.source))&&void 0!==t?t:e.source}))}allGeneratedPositionsFor(e){var t;return this.original.allGeneratedPositionsFor(Object.assign(Object.assign({},e),{source:null!==(t=this.sourceActualToOriginal.get(e.source))&&void 0!==t?t:e.source}))}hasContentsOfAllSources(){return this.original.hasContentsOfAllSources()}sourceContentFor(e,t){var r;return this.original.sourceContentFor(null!==(r=this.sourceActualToOriginal.get(e))&&void 0!==r?r:e,t)}eachMapping(e,t,r){return this.original.eachMapping(e,t,r)}destroy(){this.original.destroy()}}t.SourceMap=o,o.idCounter=0},43430: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.CachingSourceMapFactory=t.SourceMapFactory=t.ISourceMapFactory=void 0;const o=r(55053),s=r(69074),a=r(42954),c=r(58116),u=r(44413),l=r(18229),p=r(14090),d=r(97208),h=r(9132);t.ISourceMapFactory=Symbol("ISourceMapFactory");let f=class{constructor(e,t,r){this.pathResolve=e,this.resourceProvider=t,this.dap=r,this.hasWarnedAboutMaps=new WeakSet}async load(e){var t;const r=await this.parseSourceMap(e.sourceMapUrl),n=r.sourceRoot;r.sourceRoot=void 0;const i=r.sources;return r.sources=r.sources.map(((e,t)=>`source${t}.js`)),new h.SourceMap(await new s.SourceMapConsumer(r),e,null!=n?n:"",i,!!(null===(t=r.names)||void 0===t?void 0:t.length))}guardSourceMapFn(e,t,r){try{return t()}catch(t){if(!/error parsing/i.test(String(t.message)))throw t;if(!this.hasWarnedAboutMaps.has(e)){const r=(0,u.sourceMapParseFailed)(e.metadata.compiledPath,t.message).error;this.dap.output({output:r.format+"\n",category:"stderr"}),this.hasWarnedAboutMaps.add(e)}return r()}}dispose(){}async parseSourceMap(e){let t=(0,d.fileUrlToAbsolutePath)(e);t&&(t=this.pathResolve.rebaseRemoteToLocal(t));const r=await this.resourceProvider.fetch(t||e);if(!r.ok)throw r.error;let n=r.body;return")]}"===n.slice(0,3)&&(n=n.substring(n.indexOf("\n"))),JSON.parse(n)}};f=n([(0,o.injectable)(),i(0,(0,o.inject)(p.ISourcePathResolver)),i(1,(0,o.inject)(a.IResourceProvider)),i(2,(0,o.inject)(c.IRootDapApi))],f),t.SourceMapFactory=f;let m=class extends f{constructor(){super(...arguments),this.knownMaps=new l.MapUsingProjection((e=>e.toLowerCase())),this.overwrittenSourceMaps=[]}load(e){const t=this.knownMaps.get(e.sourceMapUrl);if(!t)return this.loadNewSourceMap(e);const r=e.mtime,n=t.metadata.mtime;return t.reloadIfNoMtime?r&&n&&r===n?(t.reloadIfNoMtime=!1,t.prom):(this.overwrittenSourceMaps.push(t.prom),this.loadNewSourceMap(e)):n&&r&&r!==n?(this.overwrittenSourceMaps.push(t.prom),this.loadNewSourceMap(e)):t.prom}loadNewSourceMap(e){const t=super.load(e);return this.knownMaps.set(e.sourceMapUrl,{metadata:e,reloadIfNoMtime:!1,prom:t}),t}dispose(){for(const e of this.knownMaps.values())e.prom.then((e=>e.destroy()),(()=>{}));for(const e of this.overwrittenSourceMaps)e.then((e=>e.destroy()),(()=>{}));this.knownMaps.clear()}invalidateCache(){for(const e of this.knownMaps.values())e.reloadIfNoMtime=!0}};m=n([(0,o.injectable)()],m),t.CachingSourceMapFactory=m},27819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMetadataForFile=t.ISearchStrategy=void 0;const n=r(26379),i=r(33763),o=r(97208);t.ISearchStrategy=Symbol("ISearchStrategy"),t.createMetadataForFile=async(e,t)=>{void 0===t&&(t=await(0,n.readfile)(e));let r=(0,i.parseSourceMappingUrl)(t);if(!r)return;if(r=(0,o.completeUrl)((0,o.absolutePathToFileUrl)(e),r),!r)return;if(!r.startsWith("data:")&&!r.startsWith("file://"))return;const s=await(0,n.stat)((0,o.fileUrlToAbsolutePath)(r)||e);return s?{compiledPath:e,sourceMapUrl:r,mtime:s&&s.mtimeMs}:void 0}},85196: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.__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.moduleAwarePathMappingResolver=t.defaultPathMappingResolver=t.getComputedSourceRoot=t.getFullSourceEntry=void 0;const s=r(57147),a=o(r(71017)),c=r(57310),u=o(r(97208)),l=r(7678),p=r(79783);function d(e,t){return e===t||(e.endsWith("/")||(e+="/"),t.startsWith(e))}function h(e,t,r){const n=decodeURIComponent(r.substring(e.length));return n?(0,p.properJoin)(t,n):t}t.getFullSourceEntry=function(e,t){return e?(e.endsWith("/")||(e+="/"),e+t):t},t.getComputedSourceRoot=async function(e,t,r,n,i){let o;if(t=u.fileUrlToAbsolutePath(t)||t,e){if(u.isFileUrl(e))o=u.fileUrlToAbsolutePath(e);else if(u.isAbsolute(e))o=await n(e,r,i)||e;else if(a.isAbsolute(t))s=t,l=e,o=(0,p.properResolve)(a.dirname(s),l);else{const s=new c.URL(t).pathname,u=await n(s,r,i),l=a.dirname(u);o=(0,p.properJoin)(l,e)}i.verbose("sourcemap.parsing","resolved sourceRoot",{sourceRoot:e,absSourceRoot:o})}else if(a.isAbsolute(t))o=a.dirname(t),i.verbose("sourcemap.parsing","no sourceRoot specified, using script dirname",{absSourceRoot:o});else{const e=new c.URL(t).pathname||"/placeholder.js",s=await n(e,r,i);o=s?a.dirname(s):"",i.verbose("sourcemap.parsing","no sourceRoot specified, using webRoot + script path dirname",{absSourceRoot:o})}var s,l;return o=u.stripTrailingSlash(o),o=(0,p.fixDriveLetterAndSlashes)(o),o},t.defaultPathMappingResolver=async(e,t,r)=>{if(!e||!e.startsWith("/"))return"";const n=Object.keys(t).sort(((e,t)=>t.length-e.length));for(let i of n){if(!i)continue;const n=t[i];if("/"!==i[0]&&(r.verbose("sourcemap.parsing",`Keys should be absolute: ${i}`),i="/"+i),d(i,e))return h(i,n,e)}return""},t.moduleAwarePathMappingResolver=(e,r)=>async(n,i,o)=>{if("win32"===process.platform&&/^[a-z]:/i.test(n))return n;const c=await u.nearestDirectoryContaining(e,a.dirname(r),"package.json");if(!c)return(0,t.defaultPathMappingResolver)(n,i,o);const p=await(0,t.defaultPathMappingResolver)(n,(0,l.filterObject)(i,(e=>e.length>=c.length)),o);if("win32"!==process.platform&&"/"!==n&&!p){const e=await s.promises.stat(n).catch((()=>{}));if(null==e?void 0:e.isDirectory())return n}return p||c}},14090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISourcePathResolver=void 0,t.ISourcePathResolver=Symbol("ISourcePathResolver")},33763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSyntaxErrorIn=t.getOptimalCompiledPosition=t.checkContentHash=t.parseSourceMappingUrl=t.wrapObjectLiteral=t.rewriteTopLevelAwait=t.prettyPrintAsSourceMap=void 0;const n=r(81132),i=r(26487),o=r(38347),s=r(57147),a=r(69074),c=r(26379),u=r(79191),l=r(79783),p=r(72223),d=r(9132);t.prettyPrintAsSourceMap=async function(e,t,r,o){const s=n.Parser.parse(t,{locations:!0,ecmaVersion:"latest"}),c=new a.SourceMapGenerator({file:e}),u=(0,i.generate)(s,{sourceMap:{setSourceContent:(e,t)=>c.setSourceContent(e,t),applySourceMap:(e,t,r)=>c.applySourceMap(e,t,r),toJSON:()=>c.toJSON(),toString:()=>c.toString(),addMapping:t=>c.addMapping({generated:t.original,original:{column:t.generated.column,line:t.generated.line},source:e,name:t.name})}});return c.setSourceContent(e,u),new d.SourceMap(await a.SourceMapConsumer.fromSourceMap(c),{sourceMapUrl:o,compiledPath:r},"",[e],!1)},t.rewriteTopLevelAwait=function(e){let t;try{t=(0,p.parseProgram)(e,!0)}catch(e){return}const r=(e,t)=>({type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:e,right:t}});let n=!1,s=!1;const a=(0,o.replace)(t,{enter(e,t){switch(e.type){case"ClassDeclaration":return r(e.id||{type:"Identifier",name:"_default"},Object.assign(Object.assign({},e),{type:"ClassExpression"}));case"FunctionDeclaration":return this.skip(),r(e.id||{type:"Identifier",name:"_default"},Object.assign(Object.assign({},e),{type:"FunctionExpression"}));case"FunctionExpression":case"ArrowFunctionExpression":case"MethodDefinition":return o.VisitorOption.Skip;case"AwaitExpression":return void(n=!0);case"ForOfStatement":return void(e.await&&(n=!0));case"ReturnStatement":return void(s=!0);case"VariableDeclaration":if(!(t&&"body"in t&&t.body instanceof Array))return;const i=t.body,a=e.declarations.map((e=>({type:"ExpressionStatement",expression:{type:"UnaryExpression",operator:"void",prefix:!0,argument:{type:"AssignmentExpression",operator:"=",left:e.id,right:e.init||{type:"Identifier",name:"undefined"}}}})));i.splice(i.indexOf(e),1,...a)}}});if(!n||s)return;const c=a.body[a.body.length-1];"ExpressionStatement"===c.type&&(a.body[a.body.length-1]={type:"ReturnStatement",argument:c.expression});const u={type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"ArrowFunctionExpression",params:[],generator:!1,expression:!1,async:!0,body:{type:"BlockStatement",body:a.body}},arguments:[],optional:!1}};return(0,i.generate)(u)},t.wrapObjectLiteral=function(e){try{const t=(0,n.parseExpressionAt)(e,0,p.acornOptions);return t.end<e.length||"ObjectExpression"!==t.type?e:`(${e})`}catch(t){return e}},t.parseSourceMappingUrl=function(e){if(!e)return;const t="sourceMappingURL",r=e.length,n=t.length;let i=r,o=0;for(;;){if(i=e.lastIndexOf(t,i),-1===i)return;if(i<4)return;if(i-=4,"/"===e[i]&&"/"===e[i+1]&&("#"===e[i+2]||"@"===e[i+2])&&!(" "!==e[i+3]&&"\t"!==e[i+3]||(o=i+4+n,o<r&&"="!==e[o])))break}let s=e.substring(o+1);const a=s.indexOf("\n");-1!==a&&(s=s.substring(0,a)),s=s.trim();for(let e=0;e<s.length;++e)if('"'===s[e]||"'"===s[e]||" "===s[e]||"\t"===s[e])return;return s};const h=new u.Hasher;t.checkContentHash=async function(e,t,r){if(e&&!(0,l.isWithinAsar)(e))return t?("string"==typeof r?await h.verifyBytes(r,t,!0):await h.verifyFile(e,t,!0))?e:void 0:await new c.LocalFsUtils(s.promises).exists(e)?e:void 0},t.getOptimalCompiledPosition=function(e,t,r){const n=r.generatedPositionFor({source:e,line:t.lineNumber,column:t.columnNumber-1,bias:a.SourceMapConsumer.GREATEST_LOWER_BOUND}),i=e=>{if(null===e.line||null===e.column)return 1e11;const n=r.originalPositionFor(e);return null!==n.line?Math.abs(t.lineNumber-n.line):1e11},o=i(n),s=r.allGeneratedPositionsFor({source:e,line:t.lineNumber,column:t.columnNumber-1}).filter((e=>null!==e.line&&null!==e.column)).sort(((e,t)=>e.line!==t.line?e.line-t.line:e.column-t.column)).map((e=>[e,i(e)]));return s.push([n,o]),s.sort((([e,t],[r,n])=>t-n||e.line-r.line||e.column-r.column)),s[0][0]},t.getSyntaxErrorIn=function(e){try{new Function(e)}catch(e){return e}}},16865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StackTraceLocation=t.StackTraceParser=void 0;const n=r(67790),i=/^(\W*at .*\()(.*):(\d+):(\d+)(\))$/,o=/^(\W*at )(.*):(\d+):(\d+)$/;class s{constructor(e){this.stack=e}static isStackLike(e){return i.test(e)||o.test(e)}*[Symbol.iterator](){for(const e of this.stack.split("\n")){const t=i.exec(e)||o.exec(e);if(!t){yield e+"\n";continue}const[,r,s,c,u,l]=t;r&&(yield r),yield new a(s,new n.Base1Position(Number(c),Number(u))),l&&(yield l),yield"\n"}}}t.StackTraceParser=s;class a{constructor(e,t){this.path=e,this.position=t}toString(){return`${this.path}:${this.position.lineNumber}:${this.position.columnNumber}`}}t.StackTraceLocation=a},36268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PositionToOffset=t.escapeRegexSpecialChars=t.isRegexSpecialChar=t.formatMillisForLog=t.trimMiddle=t.trimEnd=void 0,t.trimEnd=function(e,t){return e.length<=t?e:e.substr(0,t-1)+"…"},t.trimMiddle=function(e,t){if(e.length<=t)return e;let r=t>>1,n=t-r-1;const i=e.codePointAt(e.length-n-1);i&&i>=65536&&(--n,++r);const o=e.codePointAt(r-1);return r>0&&o&&o>=65536&&--r,e.substr(0,r)+"…"+e.substr(e.length-n,n)},t.formatMillisForLog=function(e){function t(e,t){const r=String(e);return"0".repeat(t-r.length)+r}const r=new Date(e);return`${t(r.getHours(),2)}:${t(r.getMinutes(),2)}:${t(r.getSeconds(),2)}.${t(r.getMilliseconds(),3)}`};const r="/\\.?*()^${}|[]+";t.isRegexSpecialChar=e=>r.includes(e),t.escapeRegexSpecialChars=function(e,t){const n=r.split("").filter((e=>!t||t.indexOf(e)<0)).join("").replace(/[\\\]]/g,"\\$&"),i=new RegExp(`[${n}]`,"g");return e.replace(i,"\\$&")},t.PositionToOffset=class{constructor(e){this.source=e,this.lines=[];let t=0;for(let r=e.indexOf("\n");-1!==r;r=e.indexOf("\n",t))this.lines.push(r-t),t=r+1;this.lines.push(e.length-t)}convert(e){const t=e.base0;if(t.lineNumber>this.lines.length)return this.source.length;let r=0;for(let e=0;e<t.lineNumber;e++)r+=this.lines[e]+1;return r+Math.min(this.lines[t.lineNumber],t.columnNumber)}}},97208: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.__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.createTargetFilter=t.requirePageTarget=t.createTargetFilterForConfig=t.platformPathToPreferredCase=t.platformPathToUrlPath=t.urlPathToPlatformPath=t.maybeAbsolutePathToFileUrl=t.isFileUrl=t.urlToRegex=t.isDataUri=t.isAbsolute=t.absolutePathToFileUrl=t.fileUrlToNetworkPath=t.fileUrlToAbsolutePath=t.stripTrailingSlash=t.escapeForRegExp=t.isValidUrl=t.completeUrlEscapingRoot=t.removeQueryString=t.completeUrl=t.isLoopback=t.isMetaAddress=t.isLoopbackIp=t.nearestDirectoryContaining=t.nearestDirectoryWhere=t.caseNormalizedMap=t.comparePathsWithoutCasingOrSlashes=t.comparePathsWithoutCasing=t.lowerCaseInsensitivePath=t.getCaseSensitivePaths=t.setCaseSensitivePaths=t.resetCaseSensitivePaths=void 0;const s=r(9523),a=o(r(71017)),c=r(57310),u=r(18229),l=r(7678),p=r(79783),d=r(36268);let h="win32"!==process.platform;function f(){return h}function m(e){return h?e:e.toLowerCase()}function g(e,t){return h?e===t:e.toLowerCase()===t.toLowerCase()}t.resetCaseSensitivePaths=function(){h="win32"!==process.platform},t.setCaseSensitivePaths=function(e){h=e},t.getCaseSensitivePaths=f,t.lowerCaseInsensitivePath=m,t.comparePathsWithoutCasing=g,t.comparePathsWithoutCasingOrSlashes=function(e,t){return g((0,p.forceForwardSlashes)(e),(0,p.forceForwardSlashes)(t))},t.caseNormalizedMap=function(){return f()?new Map:new u.MapUsingProjection(m)},t.nearestDirectoryWhere=async(e,t)=>{for(;;){if(await t(e))return e;const r=a.dirname(e);if(r===e)return;e=r}},t.nearestDirectoryContaining=(e,r,n)=>(0,t.nearestDirectoryWhere)(r,(t=>e.exists(a.join(t,n))));const y=new Set(["localhost","127.0.0.1","::1"]),b=new Set(["0.0.0.0","::","0000:0000:0000:0000:0000:0000:0000:0000"]);t.isLoopbackIp=e=>y.has(e.toLowerCase());const v=e=>{try{return new c.URL(e).hostname.replace(/^\[|\]$/g,"")}catch(t){return e}};function w(e){try{return new c.URL(e),!0}catch(e){return!1}}t.isMetaAddress=e=>b.has(v(e)),t.isLoopback=(0,l.memoize)((async e=>{const r=v(e);if((0,t.isLoopbackIp)(r))return!0;try{const e=await s.promises.lookup(r);return(0,t.isLoopbackIp)(e.address)}catch(e){return!1}})),t.completeUrl=function(e,t){try{return new c.URL(t,e).href}catch(e){}},t.removeQueryString=function(e){try{const t=new c.URL(e);return t.search="",t.toString()}catch(t){return e}},t.completeUrlEscapingRoot=function(e,t){try{return new c.URL(t),t}catch(e){}let r;try{r=new c.URL(e||"")}catch(e){return t}let n=r.protocol+"//";return r.username&&(n+=r.username+":"+r.password+"@"),n+=r.host,n+=a.dirname(r.pathname),"/"!==n[n.length-1]&&(n+="/"),n+=t,n},t.isValidUrl=w,t.escapeForRegExp=function(e){const t="^[]{}()\\.^$*+?|-,";let r=!1;for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t.charAt(n))){r=!0;break}if(!r)return e;let n="";for(let r=0;r<e.length;++r)-1!==t.indexOf(e.charAt(r))&&(n+="\\"),n+=e.charAt(r);return n},t.stripTrailingSlash=function(e){return e.replace(/\/$/,"").replace(/\\$/,"")};const _=/^https:\/\/([a-z0-9\-]+)\+\.vscode-resource\.vscode-webview\.net\/(.+)/i;function S(e){const t=_.exec(e);if(t)e=`${t[1]}:///${t[2]}`;else if(e.startsWith("vscode-webview-resource://"))e=new c.URL(e).pathname.replace(/%2F/gi,"/").replace(/^\/([a-z0-9\-]+)(\/{1,2})/i,((e,t,r)=>1===r.length?`${t}:///`:`${t}://`));else if(!O(e))return;return e=e.replace("file:///",""),"/"===(e=decodeURIComponent(e))[0]||e.match(/^[A-Za-z]:/)||(e="/"+e),(0,p.fixDriveLetterAndSlashes)(e)}function k(e){return"win32"===process.platform?"file:///"+D(e):"file://"+D(e)}t.fileUrlToAbsolutePath=S,t.fileUrlToNetworkPath=function(e){return O(e)&&(e=(e=e.replace("file:///","\\\\")).replace(/\//g,"\\"),e=decodeURIComponent(e)),e},t.absolutePathToFileUrl=k,t.isAbsolute=function(e){return a.posix.isAbsolute(e)||a.win32.isAbsolute(e)},t.isDataUri=function(e){return/^data:[a-z]+\/[a-z]/.test(e)};const P=(e,t,r)=>{if(!r||":"===e)return void t.add(e);if("/"===e)return void t.add(`\\${e}`);(0,d.isRegexSpecialChar)(e)?t.add(`\\${e}`):t.add(e);const n=encodeURIComponent(e);"\\"!==e&&n!==e&&t.add(n)},x=e=>{switch(e.size){case 0:return"";case 1:return e.values().next().value;default:const t=[...e];return t.some((e=>e.length>1))?`(?:${t.join("|")})`:`[${t.join("")}]`}},C=new Set,E=(e,t,r,n)=>{let i="";for(let o=t;o<r;o++){const t=e[o];h?P(t,C,n):(P(t.toLowerCase(),C,n),P(t.toUpperCase(),C,n)),i+=x(C),C.clear()}return i};function O(e){return e.startsWith("file:///")}function D(e){return e=T(e),"win32"===process.platform?e.split(/[\\//]/g).map(((e,t)=>t>0?encodeURIComponent(e):e)).join("/"):e.split("/").map(encodeURIComponent).join("/")}function T(e){return e&&"win32"===process.platform&&":"===e[1]?e[0].toUpperCase()+e.substring(1):e}t.urlToRegex=function(e,[t,r]=[0,e.length]){if(r<=t)return e;const n=[],i=E(e,0,t,!1),o=E(e,r,e.length,!1),s=e.slice(t,r);for(const e of[decodeURIComponent(s),S(s)]){if(!e)continue;const t=E(e,0,e.length,!0);n.push(`${i}${t}${o}`.replace(/^(file:\\\/\\\/\\\/)?([a-z]):/i,((e,t="",r)=>`${t}[${r.toUpperCase()}${r.toLowerCase()}]:`)))}return n.join("|")},t.isFileUrl=O,t.maybeAbsolutePathToFileUrl=function(e,t){return e&&T(t).startsWith(e)&&!w(t)?k(t):t},t.urlPathToPlatformPath=function(e){return"win32"===process.platform&&(e=e.replace(/\//g,"\\")),decodeURI(e)},t.platformPathToUrlPath=D,t.platformPathToPreferredCase=T,t.createTargetFilterForConfig=(e,r=[])=>{const n=e.urlFilter||e.url||"file"in e&&e.file;if(!n)return()=>!0;const i=(0,t.createTargetFilter)(n,...r);return e=>i(e.url)},t.requirePageTarget=e=>t=>"page"===t.type&&e(t),t.createTargetFilter=(...e)=>{const t=e=>{const t=S(e=e.toLowerCase());var r;t?e=t:(r=e)&&!a.isAbsolute(r)&&(0,c.parse)(r).protocol&&e.includes("://")&&(e=e.substr(e.indexOf("://")+3)),e.endsWith("/")&&(e=e.substr(0,e.length-1));const n=e.indexOf("#");return-1!==n&&(e=e.slice(0,"/"===e[n-1]?n-1:n)),e},r=e.map((e=>(0,d.escapeRegexSpecialChars)(t(e),"/*").replace(/(\/\*$)|\*/g,".*"))),n=new RegExp("^("+r.join("|")+")$","g");return e=>(n.lastIndex=0,n.test(t(e)))}},73454:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionId=t.isNightly=t.packagePublisher=t.packageVersion=t.packageName=t.breakpointLanguages=t.resolveVariableInConfig=t.resolveWorkspaceInConfig=t.removeOptionalWorkspaceFolderUsages=t.applyDefaults=t.isConfigurationWithEnv=t.applyTerminalDefaults=t.applyExtensionHostDefaults=t.applyEdgeDefaults=t.applyChromeDefaults=t.applyNodeDefaults=t.defaultSourceMapPathOverrides=t.nodeAttachConfigDefaults=t.edgeLaunchConfigDefaults=t.chromeLaunchConfigDefaults=t.edgeAttachConfigDefaults=t.chromeAttachConfigDefaults=t.nodeLaunchConfigDefaults=t.extensionHostConfigDefaults=t.delegateDefaults=t.terminalBaseDefaults=t.baseDefaults=t.AnyLaunchConfiguration=void 0;const o=i(r(82210)),s=r(7678);t.AnyLaunchConfiguration=Symbol("AnyLaunchConfiguration"),t.baseDefaults={type:"",name:"",request:"",trace:!1,outputCapture:"console",timeout:1e4,timeouts:{},showAsyncStacks:!0,skipFiles:[],smartStep:!0,sourceMaps:!0,sourceMapRenames:!0,pauseForSourceMap:!0,resolveSourceMapLocations:null,rootPath:"${workspaceFolder}",outFiles:["${workspaceFolder}/**/*.js","!**/node_modules/**"],sourceMapPathOverrides:c("${workspaceFolder}"),enableContentValidation:!0,cascadeTerminateToConfigurations:[],__workspaceFolder:"",__remoteFilePrefix:void 0,__breakOnConditionalError:!1,customDescriptionGenerator:void 0,customPropertiesGenerator:void 0};const a=Object.assign(Object.assign({},t.baseDefaults),{cwd:"${workspaceFolder}",env:{},envFile:null,pauseForSourceMap:!1,sourceMaps:!0,localRoot:null,remoteRoot:null,resolveSourceMapLocations:["**","!**/node_modules/**"],autoAttachChildProcesses:!0,runtimeSourcemapPausePatterns:[],skipFiles:["<node_internals>/**"]});function c(e){return{"webpack:///./~/*":`${e}/node_modules/*`,"webpack:////*":"/*","webpack://?:*/*":`${e}/*`,"webpack:///([a-z]):/(.+)":"$1:/$2","meteor://💻app/*":`${e}/*`}}function u(e){var r=n(e,[]);return!r.sourceMapPathOverrides&&r.cwd&&(r.sourceMapPathOverrides=c(r.cwd)),void 0!==r.resolveSourceMapLocations||r.remoteRoot||(r.resolveSourceMapLocations=r.outFiles),"attach"===r.request?Object.assign(Object.assign({},t.nodeAttachConfigDefaults),r):Object.assign(Object.assign({},t.nodeLaunchConfigDefaults),r)}function l(e,r){return"attach"===e.request?Object.assign(Object.assign(Object.assign({},t.chromeAttachConfigDefaults),{browserAttachLocation:r}),e):Object.assign(Object.assign(Object.assign({},t.chromeLaunchConfigDefaults),{browserLaunchLocation:r}),e)}function p(e,r){return"attach"===e.request?Object.assign(Object.assign(Object.assign({},t.edgeAttachConfigDefaults),{browserAttachLocation:r}),e):Object.assign(Object.assign(Object.assign({},t.edgeLaunchConfigDefaults),{browserLaunchLocation:r}),e)}function d(e){const r=Object.assign(Object.assign({},t.extensionHostConfigDefaults),e);return r.skipFiles=[...r.skipFiles,"**/node_modules.asar/**","**/bootstrap-fork.js"],r}function h(e){return!e.sourceMapPathOverrides&&e.cwd&&(e.sourceMapPathOverrides=c(e.cwd)),"launch"===e.request?Object.assign(Object.assign({},t.terminalBaseDefaults),e):Object.assign(Object.assign({},t.delegateDefaults),e)}function f(e){var t,r,n,i;const o="${workspaceFolder}",a=Object.assign(Object.assign({},e),{rootPath:void 0,outFiles:e.outFiles.filter((e=>!e.includes(o))),sourceMapPathOverrides:(0,s.filterValues)(e.sourceMapPathOverrides,(e=>!e.includes("${workspaceFolder}")))});return"vueComponentPaths"in a&&(a.vueComponentPaths=a.vueComponentPaths.filter((e=>!e.includes(o)))),"resolveSourceMapLocations"in a&&(a.resolveSourceMapLocations=null!==(r=null===(t=a.resolveSourceMapLocations)||void 0===t?void 0:t.filter((e=>!e.includes(o))))&&void 0!==r?r:null),"cwd"in a&&(null===(n=a.cwd)||void 0===n?void 0:n.includes(o))&&(a.cwd=void 0),"webRoot"in a&&(null===(i=a.webRoot)||void 0===i?void 0:i.includes(o))&&(a.webRoot="/"),a}function m(e){return e.__workspaceFolder||(e=f(e)),e=g(e,"workspaceFolder",e.__workspaceFolder),g(e,"webRoot","webRoot"in e?e.webRoot:e.__workspaceFolder)}function g(e,t,r){let n;if("string"==typeof e)n=e.replace(new RegExp(`\\$\\{${t}\\}`,"g"),(()=>{if(!r)throw new Error(`Unable to resolve \${${t}} in configuration (${JSON.stringify(t)})`);return r}));else if(e instanceof Array)n=e.map((e=>g(e,t,r)));else if("object"==typeof e&&e){const i={};for(const[n,o]of Object.entries(e))i[g(n,t,r)]=g(o,t,r);n=i}else n=e;return n}t.terminalBaseDefaults=Object.assign(Object.assign({},a),{showAsyncStacks:{onceBreakpointResolved:16},type:"node-terminal",request:"launch",name:"JavaScript Debug Terminal"}),t.delegateDefaults=Object.assign(Object.assign({},a),{type:"node-terminal",request:"attach",name:t.terminalBaseDefaults.name,showAsyncStacks:{onceBreakpointResolved:16},delegateId:-1}),t.extensionHostConfigDefaults=Object.assign(Object.assign({},a),{type:"pwa-extensionHost",name:"Debug Extension",request:"launch",args:["--extensionDevelopmentPath=${workspaceFolder}"],outFiles:["${workspaceFolder}/out/**/*.js"],resolveSourceMapLocations:["${workspaceFolder}/**","!**/node_modules/**"],rendererDebugOptions:{},runtimeExecutable:"${execPath}",autoAttachChildProcesses:!1,debugWebviews:!1,debugWebWorkerHost:!1,__sessionId:""}),t.nodeLaunchConfigDefaults=Object.assign(Object.assign({},a),{type:"pwa-node",request:"launch",program:"",cwd:"${workspaceFolder}",stopOnEntry:!1,console:"internalConsole",restart:!1,args:[],runtimeExecutable:"node",runtimeVersion:"default",runtimeArgs:[],profileStartup:!1,attachSimplePort:null,killBehavior:"forceful"}),t.chromeAttachConfigDefaults=Object.assign(Object.assign({},t.baseDefaults),{type:"pwa-chrome",request:"attach",address:"localhost",port:0,disableNetworkCache:!0,pathMapping:{},url:null,restart:!1,urlFilter:"",sourceMapPathOverrides:c("${webRoot}"),webRoot:"${workspaceFolder}",server:null,browserAttachLocation:"workspace",targetSelection:"automatic",vueComponentPaths:["${workspaceFolder}/**/*.vue","!**/node_modules/**"],perScriptSourcemaps:"auto"}),t.edgeAttachConfigDefaults=Object.assign(Object.assign({},t.chromeAttachConfigDefaults),{type:"pwa-msedge",useWebView:!1}),t.chromeLaunchConfigDefaults=Object.assign(Object.assign({},t.chromeAttachConfigDefaults),{type:"pwa-chrome",request:"launch",cwd:null,file:null,env:{},urlFilter:"*",includeDefaultArgs:!0,runtimeArgs:null,runtimeExecutable:"*",userDataDir:!0,browserLaunchLocation:"workspace",profileStartup:!1,cleanUp:"wholeBrowser"}),t.edgeLaunchConfigDefaults=Object.assign(Object.assign({},t.chromeLaunchConfigDefaults),{type:"pwa-msedge",useWebView:!1}),t.nodeAttachConfigDefaults=Object.assign(Object.assign({},a),{type:"pwa-node",attachExistingChildren:!0,address:"localhost",port:9229,restart:!1,request:"attach",continueOnAttach:!1}),t.defaultSourceMapPathOverrides=c,t.applyNodeDefaults=u,t.applyChromeDefaults=l,t.applyEdgeDefaults=p,t.applyExtensionHostDefaults=d,t.applyTerminalDefaults=h,t.isConfigurationWithEnv=e=>"object"==typeof e&&!!e&&"env"in e&&"envFile"in e,t.applyDefaults=function(e,t){let r;const n="remote"===t?"ui":"workspace";switch(e.type){case"pwa-node":r=u(e);break;case"pwa-msedge":r=p(e,n);break;case"pwa-chrome":r=l(e,n);break;case"pwa-extensionHost":r=d(e);break;case"node-terminal":r=h(e);break;default:throw(0,s.assertNever)(e,"Unknown config: {value}")}return m(r)},t.removeOptionalWorkspaceFolderUsages=f,t.resolveWorkspaceInConfig=m,t.resolveVariableInConfig=g,t.breakpointLanguages=["javascript","typescript","typescriptreact","javascriptreact","fsharp","html"],t.packageName=o.default.name,t.packageVersion=o.default.version,t.packagePublisher=o.default.publisher,t.isNightly=t.packageName.includes("nightly"),t.extensionId=`${t.packagePublisher}.${t.packageName}`},58116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRootDapApi=t.IDapApi=t.isRequest=void 0;const n=r(78986),i=r(44413),o=r(66775),s=r(1032);t.isRequest=e=>e.endsWith("Request"),t.IDapApi=Symbol("IDapApi"),t.IRootDapApi=Symbol("IRootDapApi"),t.default=class{constructor(e,t){this.transport=e,this.logger=t,this._pendingRequests=new Map,this._requestHandlers=new Map,this._eventListeners=new Map,this.disposables=[],this._initialized=(0,n.getDeferred)(),this.closed=!1,this._sequence=1,this.disposables.push(this.transport.messageReceived((e=>this._onMessage(e.message,e.receivedTime)))),this._dap=Promise.resolve(this._createApi())}get initializedBlocker(){return this._initialized.promise}attachTelemetry(e){this.telemetryReporter=e,this._dap.then((t=>e.attachDap(t)))}dap(){return this._dap}_createApi(){return new Proxy({},{get:(e,r)=>{if("then"!==r)return"on"===r?(e,t)=>(this._requestHandlers.set(e,t),()=>this._requestHandlers.delete(e)):"off"===r?e=>this._requestHandlers.delete(e):e=>{if((0,t.isRequest)(r))return this.enqueueRequest(r.slice(0,-"Request".length),e);this._send({seq:0,type:"event",event:r,body:e})}}})}createTestApi(){const e=(e,t)=>{let r=this._eventListeners.get(e);r||(r=new Set,this._eventListeners.set(e,r)),r.add(t)},t=(e,t)=>{const r=this._eventListeners.get(e);r&&r.delete(t)},r=(r,n)=>new Promise((i=>{const o=e=>{n&&!n(e)||(t(r,o),i(e))};e(r,o)}));return new Proxy({},{get:(n,i)=>"on"===i?e:"off"===i?t:"once"===i?r:e=>this.enqueueRequest(i,e)})}enqueueRequest(e,t){return new Promise((r=>{const n={seq:0,type:"request",command:e,arguments:t||{}};this._send(n),this._pendingRequests.set(n.seq,r)}))}stop(){this.closed=!0,this.transport.close()}_send(e){if(this.closed)this.logger.warn("dap.send","Not sending message because the connection has ended",e);else{e.seq=this._sequence++;const t="event"!==e.type||!o.logOmittedCalls.has(e.body);this.transport.send(e,t)}}async _onMessage(e,t){var r,n,o,a;if("request"===e.type){const o={seq:0,type:"response",request_seq:e.seq,command:e.command,success:!0};try{const n=this._requestHandlers.get(e.command);if(n){const t=await n(e.arguments);(0,i.isDapError)(t)?this._send(Object.assign(Object.assign({},o),{success:!1,message:t.error.format,body:{error:t.error}})):(this._send(Object.assign(Object.assign({},o),{body:t})),"initialize"===o.command?this._initialized.resolve(this):"disconnect"===o.command&&process.nextTick((()=>{this.stop()})))}else console.error(`Unknown request: ${e.command}`);null===(r=this.telemetryReporter)||void 0===r||r.reportOperation("dapOperation",e.command,t.elapsed().ms)}catch(r){r instanceof s.ProtocolError?this._send(Object.assign(Object.assign({},o),{success:!1,body:{error:r.cause}})):(console.error(r),this._send(Object.assign(Object.assign({},o),{success:!1,body:{error:{id:9221,format:`Error processing ${e.command}: ${r.stack||r.message}`,showUser:!1,sendTelemetry:!1}}}))),null===(n=this.telemetryReporter)||void 0===n||n.reportOperation("dapOperation",e.command,t.elapsed().ms,r)}}if("event"===e.type){const t=this._eventListeners.get(e.event)||new Set;for(const r of t)r(e.body)}if("response"===e.type){const t=this._pendingRequests.get(e.request_seq);if(!this.logger.assert(t,`Expected callback for request sequence ID ${e.request_seq}`))return;this._pendingRequests.delete(e.request_seq),e.success?t(e.body):t((null===(a=null===(o=e.body)||void 0===o?void 0:o.error)||void 0===a?void 0:a.format)||e.message||"Unknown error")}}}},44413: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.__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.isErrorOfType=t.isDapError=t.sourceMapParseFailed=t.threadNotAvailable=t.invalidBreakPointCondition=t.asyncScopesNotAvailable=t.invalidLogPointSyntax=t.targetPageNotFound=t.browserAttachFailed=t.browserLaunchFailed=t.browserNotFound=t.replError=t.invalidConcurrentProfile=t.profileCaptureError=t.invalidHitCondition=t.nodeBinaryOutOfDate=t.cannotFindNodeBinary=t.cannotLoadEnvironmentVars=t.cannotLaunchInTerminal=t.nvmVersionNotFound=t.nvmHomeNotFound=t.nvsNotFound=t.nvmNotFound=t.createUserError=t.createSilentError=t.reportToConsole=void 0;const s=o(r(33463)),a=r(1032),c=s.loadMessageBundle(r(71017).join(__dirname,"dap/errors.js"));function u(e,t=9222){return{__errorMarker:!0,error:{id:t,format:e,showUser:!1}}}function l(e,t=9223){return{__errorMarker:!0,error:{id:t,format:e,showUser:!0}}}t.reportToConsole=function(e,t){e.output({category:"console",output:t+"\n"})},t.createSilentError=u,t.createUserError=l,t.nvmNotFound=()=>l(c(0,null),9224),t.nvsNotFound=()=>l(c(1,null),9225),t.nvmHomeNotFound=()=>l(c(2,null),9226),t.nvmVersionNotFound=(e,t)=>l(c(3,null,e,t),9226),t.cannotLaunchInTerminal=e=>l(c(4,null,e),9227),t.cannotLoadEnvironmentVars=e=>l(c(5,null,e),9228),t.cannotFindNodeBinary=(e,t)=>l(c(6,null,e,t),9229),t.nodeBinaryOutOfDate=(e,t)=>l(c(7,null,t,e),9230),t.invalidHitCondition=e=>l(c(8,null,e),9231),t.profileCaptureError=()=>l(c(9,null),9235),t.invalidConcurrentProfile=()=>l(c(10,null),9236),t.replError=e=>u(e,9238),t.browserNotFound=(e,t,r)=>l("*"!==t||r.length?c(12,null,e,t,JSON.stringify([...new Set(r)])):c(11,null),9233),t.browserLaunchFailed=e=>l(c(13,null,e.message),9240),t.browserAttachFailed=e=>l(null!=e?e:c(14,null),9242),t.targetPageNotFound=()=>l(c(15,null),9241),t.invalidLogPointSyntax=e=>l(e,9232),t.asyncScopesNotAvailable=()=>u(c(16,null),9234),t.invalidBreakPointCondition=(e,t)=>l(c(17,null,JSON.stringify(e.condition),e.line,t),9237),t.threadNotAvailable=()=>u(c(18,null),9244),t.sourceMapParseFailed=(e,t)=>l(c(19,null,e,t)),t.isDapError=e=>"object"==typeof e&&!!e&&"__errorMarker"in e,t.isErrorOfType=(e,t)=>e instanceof a.ProtocolError&&e.cause.id===t},66775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omitLoggingFor=t.logOmittedCalls=void 0,t.logOmittedCalls=new WeakSet,t.omitLoggingFor=e=>(t.logOmittedCalls.add(e),e)},7964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingDapApi=void 0;const n=r(78986);t.createPendingDapApi=()=>{let e,t=(0,n.getDeferred)();return new Proxy({},{get:(r,i)=>"connect"===i?r=>{t.resolve(r),e=r}:"disconnect"===i?()=>{t=(0,n.getDeferred)(),e=void 0}:async(...r)=>(e||await t.promise)[i](...r)})}},1032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolError=void 0;class r extends Error{constructor(e){super("__errorMarker"in e?e.error.format:e.format),this._cause="__errorMarker"in e?e.error:e}get cause(){return this._cause}}t.ProtocolError=r},80112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionIdDapTransport=t.StreamDapTransport=void 0;const n=r(44936),i=r(51457),o="\r\n\r\n";let s=0;t.StreamDapTransport=class{constructor(e,t,r){this.inputStream=e,this.outputStream=t,this._contentLength=-1,this._connectionId=s++,this.msgEmitter=new n.EventEmitter,this.messageReceived=this.msgEmitter.event,this.endedEmitter=new n.EventEmitter,this.closed=this.endedEmitter.event,this._handleData=e=>{var t;const r=new i.HrTime;for(this._rawData=Buffer.concat([this._rawData,e]);;){if(this._contentLength>=0){if(this._rawData.length>=this._contentLength){const e=this._rawData.toString("utf8",0,this._contentLength);if(this._rawData=this._rawData.slice(this._contentLength),this._contentLength=-1,e.length>0)try{const n=JSON.parse(e);null===(t=this.logger)||void 0===t||t.verbose("dap.receive",void 0,{connectionId:this._connectionId,message:n}),this.msgEmitter.fire({message:n,receivedTime:r})}catch(e){console.error("Error handling data: "+(e&&e.message))}continue}}else{const e=this._rawData.indexOf(o);if(-1!==e){const t=this._rawData.toString("utf8",0,e).split("\r\n");for(let e=0;e<t.length;e++){const r=t[e].split(/: +/);"Content-Length"===r[0]&&(this._contentLength=+r[1])}this._rawData=this._rawData.slice(e+o.length);continue}}break}},this.logger=r,this._rawData=Buffer.alloc(0),e.on("end",(()=>this.endedEmitter.fire())),e.on("data",this._handleData)}send(e,t=!0){var r,n;const i=JSON.stringify(e);if(t){let t=e;"response"===e.type&&"source"===e.command&&(t=Object.assign(Object.assign({},e),{body:Object.assign(Object.assign({},e.body),{content:"<script source>"})})),null===(r=this.logger)||void 0===r||r.verbose("dap.send",void 0,{connectionId:this._connectionId,message:t})}const o=`Content-Length: ${Buffer.byteLength(i,"utf8")}\r\n\r\n${i}`;this.outputStream.destroyed?null===(n=this.logger)||void 0===n||n.warn("dap.send","Message not sent. Connection was closed."):this.outputStream.write(o,"utf8",(e=>{var t;e&&(null===(t=this.logger)||void 0===t||t.error("dap.send","Error while writing to output stream",e),this.close())}))}close(){this.inputStream.destroy(),this.outputStream.destroy()}setLogger(e){return this.logger=e,this}},t.SessionIdDapTransport=class{constructor(e,t){this.sessionId=e,this.rootTransport=t,this.sessionIdMessageEmitter=new n.EventEmitter,this.messageReceived=this.sessionIdMessageEmitter.event,this.closedEmitter=new n.EventEmitter,this.closed=this.closedEmitter.event,this._isClosed=!1,this.disposables=[],this.disposables.push(t.messageReceived((e=>this.onMessage(e)))),this.disposables.push(t.closed((()=>this.close())))}send(e,t){this._isClosed||(e.sessionId=this.sessionId,this.rootTransport.send(e,t))}setLogger(e){return this.rootTransport.setLogger(e),this}onMessage(e){this._isClosed||e.message.sessionId!==this.sessionId||this.sessionIdMessageEmitter.fire(e)}close(){this._isClosed=!0,this.disposables.forEach((e=>e.dispose())),this.closedEmitter.fire()}}},17014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toolPath=void 0;const n=r(71017);t.toolPath=(0,n.join)(__dirname,"diagnosticTool.bundle.js")},4893: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.__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.deactivate=t.activate=void 0;const s=r(22037),a=o(r(89496)),c=r(8216),u=r(73454),l=r(2263),p=r(99010),d=r(28247),h=r(14383),f=r(47636),m=r(72852),g=r(2072),y=r(65055),b=r(2511),v=r(90781),w=r(43081),_=r(66678),S=r(22754),k=r(61945),P=r(96365),x=r(11503),C=r(89935),E=r(82311);t.activate=function(e){var t;const r=(0,l.createGlobalContainer)({storagePath:"win32"===process.platform?(0,s.tmpdir)():e.storagePath||e.extensionPath,isVsCode:!0,isRemote:!!process.env.JS_DEBUG_USE_COMPANION||(null===(t=a.extensions.getExtension(u.extensionId))||void 0===t?void 0:t.extensionKind)===a.ExtensionKind.Workspace,context:e});e.subscriptions.push((0,c.registerCommand)(a.commands,"extension.js-debug.npmScript",y.debugNpmScript),(0,c.registerCommand)(a.commands,"extension.js-debug.pickNodeProcess",_.pickProcess),(0,c.registerCommand)(a.commands,"extension.pwa-node-debug.attachNodeProcess",_.attachProcess),(0,c.registerCommand)(a.commands,"extension.js-debug.toggleSkippingFile",C.toggleSkippingFile));const n=r.getAll(m.IDebugConfigurationResolver);for(const t of n){const r=t;e.subscriptions.push(a.debug.registerDebugConfigurationProvider(t.type,r));const n=c.preferredDebugTypes.get(t.type);n&&e.subscriptions.push(a.debug.registerDebugConfigurationProvider(n,r))}const i=r.getAll(m.IDebugConfigurationProvider);for(const e of i)a.debug.registerDebugConfigurationProvider(e.type,e,void 0!==a.DebugConfigurationProviderTriggerKind?e.triggerKind:void 0);const o=new E.VSCodeSessionManager(r);e.subscriptions.push(...[...c.allDebugTypes].map((e=>a.debug.registerDebugAdapterDescriptorFactory(e,o)))),e.subscriptions.push(a.debug.onDidTerminateDebugSession((e=>o.terminate(e)))),e.subscriptions.push(o);const O=r.get(b.DebugSessionTracker);O.attach(),e.subscriptions.push(w.PrettyPrintTrackerFactory.register(O)),(0,f.registerCompanionBrowserLaunch)(e),(0,g.registerCustomBreakpointsUI)(e,O),(0,v.registerDebugTerminalUI)(e,r.get(d.DelegateLauncherFactory),r.get(x.TerminalLinkHandler),r),(0,S.registerProfilingCommand)(e,r),(0,h.registerAutoAttach)(e,r.get(d.DelegateLauncherFactory),r),(0,P.registerRevealPage)(e,O),(0,k.registerRequestCDPProxy)(e,O),r.getAll(p.IExtensionContribution).forEach((t=>t.register(e)))},t.deactivate=function(){}},99010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionContribution=t.disposeContainer=t.trackDispose=t.SessionSubStates=t.BrowserFinder=t.ExtensionLocation=t.FS=t.Execa=t.ProcessEnv=t.ExtensionContext=t.IsVSCode=t.VSCodeApi=t.IInitializeParams=t.StoragePath=t.IContainer=void 0,t.IContainer=Symbol("IContainer"),t.StoragePath=Symbol("StoragePath"),t.IInitializeParams=Symbol("IInitializeParams"),t.VSCodeApi=Symbol("VSCodeApi"),t.IsVSCode=Symbol("IsVSCode"),t.ExtensionContext=Symbol("ExtensionContext"),t.ProcessEnv=Symbol("ProcessEnv"),t.Execa=Symbol("execa"),t.FS=Symbol("FS"),t.ExtensionLocation="ExtensionLocation",t.BrowserFinder=Symbol("IBrowserFinder"),t.SessionSubStates=Symbol("SessionSubStates");const r=new WeakMap;t.trackDispose=(e,t)=>{if("object"!=typeof t||!t||!("dispose"in t))return t;const n=t,i=r.get(e.container);return i?i.push(n):r.set(e.container,[n]),t},t.disposeContainer=e=>{var t;null===(t=r.get(e))||void 0===t||t.forEach((e=>e.dispose()))},t.IExtensionContribution=Symbol("IExtensionContribution")},2263:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.provideLaunchParams=t.createGlobalContainer=t.createTopLevelSessionContainer=t.createTargetContainer=void 0;const i=r(5324),o=n(r(79850)),s=r(57147),a=r(55053);r(59544);const c=r(52287),u=r(31939),l=r(31625),p=r(37853),d=r(75951),h=r(51695),f=r(54216),m=r(74497),g=r(64966),y=r(68164),b=r(45997),v=r(92249),w=r(80935),_=r(91183),S=r(23200),k=r(23601),P=r(58269),x=r(30308),C=r(42954),E=r(83739),O=r(42842),D=r(58871),T=r(93241),j=r(46989),A=r(67523),M=r(44873),R=r(24862),F=r(63216),I=r(78472),L=r(8261),N=r(95882),B=r(26379),$=r(15501),U=r(74839),q=r(221),V=r(58893),H=r(34285),W=r(43430),G=r(27819),z=r(14090),K=r(73454),J=r(58116),Q=r(99010),Y=r(52886),X=r(68773),Z=r(20478),ee=r(9743),te=r(5319),re=r(6711),ne=r(33915),ie=r(28247),oe=r(10735),se=r(19282),ae=r(31819),ce=r(82252),ue=r(34370),le=r(45957),pe=r(13213),de=r(88031),he=r(95077),fe=r(77584),me=r(72518),ge=r(74966),ye=r(16362),be=r(50036),ve=r(63634),we=r(78563),_e=r(18322),Se=r(63028),ke=r(43224);t.createTargetContainer=(e,t,r,n)=>{const i=new a.Container;return i.parent=e,i.bind(K.AnyLaunchConfiguration).toConstantValue(t.launchConfig),i.bind(Q.IContainer).toConstantValue(i),i.bind(J.IDapApi).toConstantValue(r),i.bind(F.ICdpApi).toConstantValue(n),i.bind(be.ITarget).toConstantValue(t),i.bind(ye.ITargetOrigin).toConstantValue(t.targetOrigin()),i.bind(z.ISourcePathResolver).toConstantValue(t.sourcePathResolver()),i.bind(C.IResourceProvider).to(D.StatefulResourceProvider).inSingletonScope(),i.bind(l.IBreakpointConditionFactory).to(l.BreakpointConditionFactory).inSingletonScope(),i.bind(p.LogPointCompiler).toSelf().inSingletonScope(),i.bind(w.PerformanceProviderFactory).toSelf(),i.bind(w.IPerformanceProvider).toDynamicValue((e=>e.container.get(w.PerformanceProviderFactory).create())).inSingletonScope(),i.bind(c.BreakpointPredictorDelegate).toSelf().inSingletonScope(),i.bind(c.IBreakpointsPredictor).toDynamicValue((()=>e.get(c.IBreakpointsPredictor).getChild())).inSingletonScope().onActivation(Q.trackDispose),i.bind(ke.ITelemetryReporter).to(process.env.DA_TEST_DISABLE_TELEMETRY?Se.NullTelemetryReporter:ve.DapTelemetryReporter).inSingletonScope().onActivation(Q.trackDispose),i.bind(u.BreakpointManager).toSelf().inSingletonScope(),i.bind(M.SourceContainer).toSelf().inSingletonScope(),i.bind(g.Diagnostics).toSelf().inSingletonScope(),i.bind(j.IScriptSkipper).to(T.ScriptSkipper).inSingletonScope(),i.bind(A.SmartStepper).toSelf().inSingletonScope(),i.bind(v.IExceptionPauseService).to(v.ExceptionPauseService).inSingletonScope(),i.bind(h.ICompletions).to(h.Completions).inSingletonScope(),i.bind(b.IEvaluator).to(b.Evaluator).inSingletonScope(),i.bind(f.IConsole).to(m.Console).inSingletonScope(),i.bind(P.BasicCpuProfiler).toSelf(),i.bind(x.HeapDumpProfiler).toSelf(),i.bind(k.IProfilerFactory).to(k.ProfilerFactory).inSingletonScope(),i.bind(S.IProfileController).to(S.ProfileController).inSingletonScope(),i.bind(d.ICdpProxyProvider).to(d.CdpProxyProvider).inSingletonScope().onActivation(Q.trackDispose),i},t.createTopLevelSessionContainer=e=>{const t=new a.Container;t.parent=e,t.bind(Q.IContainer).toConstantValue(t),t.bind($.ILogger).to(U.Logger).inSingletonScope().onActivation(Q.trackDispose),t.bind(O.ResourceProviderState).toSelf().inSingletonScope(),t.bind(C.IResourceProvider).to(D.StatefulResourceProvider).inSingletonScope(),t.bind(ke.ITelemetryReporter).to(process.env.DA_TEST_DISABLE_TELEMETRY?Se.NullTelemetryReporter:ve.DapTelemetryReporter).inSingletonScope().onActivation(Q.trackDispose),t.bind(N.OutFiles).to(N.OutFiles).inSingletonScope(),t.bind(N.VueComponentPaths).to(N.VueComponentPaths).inSingletonScope(),t.bind(R.IVueFileMapper).to(R.VueFileMapper).inSingletonScope(),t.bind(G.ISearchStrategy).toDynamicValue((e=>V.CodeSearchStrategy.createOrFallback(e.container.get($.ILogger)))).inSingletonScope(),t.bind(ce.INodeBinaryProvider).to(ce.InteractiveNodeBinaryProvider),t.bind(te.RemoteBrowserHelper).toSelf().inSingletonScope().onActivation(Q.trackDispose),t.bind(he.RestartPolicyFactory).toSelf(),t.bind(be.ILauncher).to(ne.VSCodeRendererAttacher).onActivation(Q.trackDispose),t.bind(be.ILauncher).to(oe.ExtensionHostAttacher).onActivation(Q.trackDispose),t.bind(be.ILauncher).to(se.ExtensionHostLauncher).onActivation(Q.trackDispose),t.bind(be.ILauncher).to(ue.NodeLauncher).onActivation(Q.trackDispose),t.bind(de.IProgramLauncher).to(fe.SubprocessProgramLauncher),t.bind(de.IProgramLauncher).to(me.TerminalProgramLauncher),t.bind(pe.IPackageJsonProvider).to(pe.PackageJsonProvider).inSingletonScope(),e.get(Q.IsVSCode)&&(t.bind(be.ILauncher).to(r(71592).TerminalNodeLauncher).onActivation(Q.trackDispose),t.bind(E.IRequestOptionsProvider).to(r(53150).SettingRequestOptionsProvider).inSingletonScope(),t.bind(we.IExperimentationService).to(r(60597).VSCodeExperimentationService).inSingletonScope()),t.bind(be.ILauncher).to(ae.NodeAttacher).onActivation(Q.trackDispose),t.bind(X.ChromeLauncher).toSelf().inSingletonScope().onActivation(Q.trackDispose),t.bind(be.ILauncher).toService(X.ChromeLauncher),t.bind(be.ILauncher).to(Z.EdgeLauncher).inSingletonScope().onActivation(Q.trackDispose),t.bind(be.ILauncher).to(re.RemoteBrowserLauncher).inSingletonScope().onActivation(Q.trackDispose),t.bind(be.ILauncher).to(ee.RemoteBrowserAttacher).inSingletonScope().onActivation(Q.trackDispose),t.bind(be.ILauncher).to(Y.BrowserAttacher).onActivation(Q.trackDispose),t.bind(be.ILauncher).toDynamicValue((()=>e.get(ie.DelegateLauncherFactory).createLauncher(t.get($.ILogger)))).inSingletonScope();const n=e=>t=>new e(t.container.get(Q.ProcessEnv),t.container.get(Q.FS),t.container.get(Q.Execa));return t.bind(Q.BrowserFinder).toDynamicValue(n(i.ChromeBrowserFinder)).inSingletonScope().whenTargetTagged("browser","chrome"),t.bind(Q.BrowserFinder).toDynamicValue(n(i.EdgeBrowserFinder)).inSingletonScope().whenTargetTagged("browser","edge"),t},t.createGlobalContainer=e=>{const t=new a.Container;return t.bind(Q.IContainer).toConstantValue(t),t.bind(ie.DelegateLauncherFactory).toSelf().inSingletonScope(),t.bind(ge.NodeOnlyPathResolverFactory).toSelf().inSingletonScope(),t.bind(we.IExperimentationService).to(_e.NullExperimentationService).inSingletonScope(),t.bind(Q.SessionSubStates).toConstantValue(new I.ObservableMap),t.bind(L.IDefaultBrowserProvider).to(L.DefaultBrowserProvider).inSingletonScope(),t.bind(Q.StoragePath).toConstantValue(e.storagePath),t.bind(Q.IsVSCode).toConstantValue(e.isVsCode),t.bind(le.INvmResolver).to(le.NvmResolver),t.bind(_.IPortLeaseTracker).to(_.PortLeaseTracker).inSingletonScope(),t.bind(Q.ProcessEnv).toConstantValue(process.env),t.bind(Q.Execa).toConstantValue(o.default),t.bind(Q.FS).toConstantValue(s.promises),t.bind(B.IFsUtils).toConstantValue(new B.LocalFsUtils(s.promises)),t.bind(Q.ExtensionLocation).toConstantValue(e.isRemote?"remote":"local"),e.context&&t.bind(Q.ExtensionContext).toConstantValue(e.context),e.isVsCode&&(t.bind(Q.VSCodeApi).toConstantValue(r(89496)),r(21756).E(t)),t},t.provideLaunchParams=(e,t,r)=>{e.bind(q.MutableLaunchConfig).toConstantValue((0,q.createMutableLaunchConfig)(t)),e.bind(K.AnyLaunchConfiguration).toService(q.MutableLaunchConfig),e.bind(ge.ISourcePathResolverFactory).to(ge.SourcePathResolverFactory).inSingletonScope(),e.bind(J.IRootDapApi).toConstantValue(r),e.bind(z.ISourcePathResolver).toDynamicValue((e=>e.container.get(ge.ISourcePathResolverFactory).create(t,e.container.get($.ILogger)))).inSingletonScope(),e.bind(B.IFsUtils).toConstantValue(B.LocalAndRemoteFsUtils.create(t.__remoteFilePrefix,s.promises,r)),e.bind(W.ISourceMapFactory).to(W.CachingSourceMapFactory).inSingletonScope().onActivation(Q.trackDispose),e.bind(H.IRenameProvider).to(H.RenameProvider).inSingletonScope(),e.bind(y.DiagnosticToolSuggester).toSelf().inSingletonScope().onActivation(Q.trackDispose),e.bind(c.BreakpointsPredictor).toSelf(),e.bind(c.IBreakpointsPredictor).toDynamicValue((e=>new c.BreakpointPredictorDelegate(e.container.get(W.ISourceMapFactory),(()=>e.container.get(c.BreakpointsPredictor))))).inSingletonScope()}},55646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerSessionManager=void 0;const n=r(91183),i=r(78986),o=r(80112),s=r(91350);t.ServerSessionManager=class{constructor(e,t){this.disposables=[],this.servers=new Map,this.sessionManager=new s.SessionManager(e,t),this.portLeaseTracker=e.get(n.IPortLeaseTracker),this.disposables.push(this.sessionManager)}createDebugServer(e,t){return e.configuration.__pendingTargetId?this.createChildDebugServer(e):this.createRootDebugServer(e,t)}createRootDebugServer(e,t){return this.innerCreateServer(e,(t=>this.sessionManager.createNewRootSession(e,t)),t)}createRootDebugSessionFromStreams(e,t,r){const n=new o.StreamDapTransport(t,r);return this.sessionManager.createNewRootSession(e,n)}createChildDebugServer(e){return this.innerCreateServer(e,(t=>this.sessionManager.createNewChildSession(e,e.configuration.__pendingTargetId,t)))}async innerCreateServer(e,t,r){const s=(0,i.getDeferred)(),a=await(0,n.acquireTrackedServer)(this.portLeaseTracker,(e=>{const r=new o.StreamDapTransport(e,e),n=t(r);s.resolve(n.connection)}),r);return this.servers.set(e.id,a),{server:a,connectionPromise:s.promise}}terminate(e){var t;this.sessionManager.terminate(e),null===(t=this.servers.get(e.id))||void 0===t||t.close(),this.servers.delete(e.id)}dispose(){this.sessionManager.dispose()}}},91350:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionManager=t.RootSession=t.Session=void 0;const i=r(5504),o=r(5376),s=r(15501),a=n(r(58116)),c=r(2263),u=r(99010),l=r(16362),p=r(43224);class d{constructor(e,t,r,n,i){this.debugSession=e,this.logger=r,this.sessionStates=n,this.parent=i,this.subscriptions=new o.DisposableList,t.setLogger(r),this.connection=new a.default(t,this.logger)}listenToTarget(e){this.subscriptions.push(e.onNameChanged((()=>this.setName(e))),this.sessionStates.onAdd((([t])=>t===this.debugSession.id&&this.setName(e))),this.sessionStates.onRemove((([t])=>t===this.debugSession.id&&this.setName(e)))),this.setName(e)}dispose(){this.subscriptions.dispose()}setName(e){const t=this.sessionStates.get(this.debugSession.id);let r=e.name();this.parent instanceof h&&(r=`${this.parent.debugSession.name}: ${r}`),this.debugSession.name=t?`${r} (${t})`:r}}t.Session=d;class h extends d{constructor(e,t,r){super(e,t,r.get(s.ILogger),r.get(u.SessionSubStates)),this.debugSession=e,this.services=r,this.connection.attachTelemetry(r.get(p.ITelemetryReporter))}createBinder(e){this._binder=new i.Binder(e,this.connection,this.services,new l.TargetOrigin(this.debugSession.id))}dispose(){var e,t;super.dispose(),null===(t=null===(e=this._binder)||void 0===e?void 0:e.dispose)||void 0===t||t.call(e)}}t.RootSession=h,t.SessionManager=class{constructor(e,t){this.globalContainer=e,this.sessionLauncher=t,this._disposables=[],this._sessions=new Map,this._pendingTarget=new Map,this._sessionForTarget=new Map,this._sessionForTargetCallbacks=new Map}terminate(e){const t=this._sessions.get(e.id);this._sessions.delete(e.id),t&&t.dispose()}createNewRootSession(e,t){const r=new h(e,t,(0,c.createTopLevelSessionContainer)(this.globalContainer));return r.createBinder(this),this._sessions.set(e.id,r),r}createNewChildSession(e,t,r){var n;const i=this._pendingTarget.get(t);if(!i)throw new Error(`Cannot find target ${t}`);const{target:o,parent:s}=i,a=new d(e,r,s.logger,s.sessionStates,s);this._pendingTarget.delete(t),a.debugSession.name=o.name(),a.listenToTarget(o);const c=this._sessionForTargetCallbacks.get(o);return this._sessionForTargetCallbacks.delete(o),null===(n=null==c?void 0:c.fulfill)||void 0===n||n.call(c,a),this._sessions.set(e.id,a),a}async acquireDap(e){return(await this.getOrLaunchSession(e)).connection}getOrLaunchSession(e){const t=this._sessionForTarget.get(e);if(t)return t;const r=new Promise((async(t,r)=>{var n,i;let o;const s=e.parent();if(o=s?await this.getOrLaunchSession(s):this._sessions.get(e.targetOrigin().id),!o)throw new Error("Expected to get a parent debug session for target");this._pendingTarget.set(e.id(),{target:e,parent:o}),this._sessionForTargetCallbacks.set(e,{fulfill:t,reject:r});const a=o.debugSession.configuration,c={type:"pwa-extensionHost"===a.type?"pwa-chrome":a.type,name:e.name(),request:o.debugSession.configuration.request,__pendingTargetId:e.id(),preRestartTask:null!==(n=a.preRestartTask)&&void 0!==n?n:a.postDebugTask,postRestartTask:null!==(i=a.postRestartTask)&&void 0!==i?i:a.preLaunchTask};this.sessionLauncher.launch(o,e,c)}));return this._sessionForTarget.set(e,r),r}initAdapter(){return Promise.resolve(!1)}releaseDap(e){this._sessionForTarget.delete(e);const t=this._sessionForTargetCallbacks.get(e);t&&t.reject(new Error("Target gone")),this._sessionForTargetCallbacks.delete(e)}dispose(){for(const e of this._sessions.values())e.dispose();this._sessions.clear(),this._pendingTarget.clear(),this._sessionForTarget.clear(),this._sessionForTargetCallbacks.clear();for(const e of this._disposables)e.dispose();this._disposables=[]}}},2403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakpointsStatisticsCalculator=void 0;class r{constructor(e=!1,t=!1){this.verified=e,this.hit=t}}t.BreakpointsStatisticsCalculator=class{constructor(){this._statisticsById=new Map}registerBreakpoints(e){e.forEach((e=>{void 0!==e.id&&!this._statisticsById.has(e.id)&&this._statisticsById.set(e.id,new r(e.verified,!1))}))}registerResolvedBreakpoint(e){this.getStatistics(e).verified=!0}registerBreakpointHit(e){this.getStatistics(e).hit=!0}getStatistics(e){const t=this._statisticsById.get(e);if(void 0!==t)return t;{const t=new r;return this._statisticsById.set(e,t),t}}statistics(){let e=0,t=0,r=0;for(const n of this._statisticsById.values())e++,n.hit&&r++,n.verified&&t++;return{set:e,verified:t,hit:r}}}},83085: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.__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},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlazorSourcePathResolver=void 0;const a=s(r(71017)),c=o(r(97208)),u=r(64416);class l extends u.BrowserSourcePathResolver{constructor(e,t,r,n){if(super(e,t,r,n),this.blazorInCodespacesRegexpSubstitution="$1:\\$2",this.options.remoteFilePrefix){const e=`\\${a.default.sep}`,t=this.options.remoteFilePrefix.replace(new RegExp(e,"g"),e);this.blazorInCodespacesRegexp=new RegExp(`^${t}${e}([A-z])\\$${e}(.*)$`)}else this.blazorInCodespacesRegexp=new RegExp("")}absolutePathToUrlRegexp(e){if(!this.options.remoteFilePrefix){const t=c.absolutePathToFileUrl(e);return c.urlToRegex(t)}{const t=e.replace(this.blazorInCodespacesRegexp,this.blazorInCodespacesRegexpSubstitution),r=c.platformPathToUrlPath(t).replace(/^(\w):(.*)$/,"$1$2"),n=c.urlToRegex(r);if(n){const t=`dotnet://.*\\.dll/${n}`;return this.logger.verbose("runtime.breakpoints","absolutePathToUrlRegexp.blazor.remoteFs",{absolutePath:e,dotnetUrlRegexp:t}),t}}return super.absolutePathToUrlRegexp(e)}}t.BlazorSourcePathResolver=l},2462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserArgs=void 0;const n=r(7678),i="--remote-debugging-port",o="--remote-debugging-pipe",s=e=>{const t={};for(const r of e){const e=r.indexOf("=");-1===e?t[r]=null:t[r.slice(0,e)]=r.slice(e+1)}return t},a=e=>{const t=[];for(const r of Object.keys(e)){const n=e[r];void 0!==n&&t.push(null===n?r:`${r}=${n}`)}return t};class c{constructor(e=[]){this.args=e,this.argMap=(0,n.once)((()=>s(this.args)))}add(e,t=null){return new c(a(Object.assign(Object.assign({},this.argMap()),{[e]:t})))}remove(e){return new c(a(Object.assign(Object.assign({},this.argMap()),{[e]:void 0})))}merge(e){return new c(a(Object.assign(Object.assign({},this.argMap()),e instanceof c?e.argMap():s(e))))}setConnection(e){return new c(a(Object.assign(Object.assign({},this.argMap()),{[o]:"pipe"===e?null:void 0,[i]:"pipe"!==e?String(e):void 0})))}getSuggestedConnection(){const e=this.argMap();if(e.hasOwnProperty(o))return"pipe";const t=e[i];return void 0!==t?t&&Number(t)||0:void 0}filter(e){const t=this.argMap(),r=[];for(const n of Object.keys(t)){const i=t[n];e(n,i)&&r.push(null===i?n:`${n}=${i}`)}return new c(r)}toArray(){return this.args.slice()}}t.BrowserArgs=c,c.default=new c(["--disable-background-networking","--disable-background-timer-throttling","--disable-backgrounding-occluded-windows","--disable-breakpad","--disable-client-side-phishing-detection","--disable-default-apps","--disable-dev-shm-usage","--disable-renderer-backgrounding","--disable-sync","--metrics-recording-only","--no-first-run","--no-default-browser-check"])},52886: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.__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.BrowserAttacher=void 0;const c=r(55053),u=s(r(33463)),l=r(25370),p=r(44936),d=r(15501),h=r(78986),f=r(14090),m=r(97208),g=r(44413),y=r(1032),b=r(99010),v=r(68798),w=s(r(40976)),_=u.loadMessageBundle(r(71017).join(__dirname,"targets/browser/browserAttacher.js"));let S=class{constructor(e,t,r){this.logger=e,this.pathResolver=t,this.vscode=r,this._disposables=[],this._onTerminatedEmitter=new p.EventEmitter,this.onTerminated=this._onTerminatedEmitter.event,this._onTargetListChangedEmitter=new p.EventEmitter,this.onTargetListChanged=this._onTargetListChangedEmitter.event}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[],this._attemptTimer&&clearTimeout(this._attemptTimer),this._targetManager&&this._targetManager.dispose()}resolveParams(e){return"attach"===e.request&&("pwa-chrome"===e.type||"pwa-msedge"===e.type)&&"workspace"===e.browserAttachLocation}async launch(e,t){return this.resolveParams(e)?(this._lastLaunchParams=Object.assign(Object.assign({},e),{timeout:1/0}),await this.attemptToAttach(this._lastLaunchParams,t),{blockSessionTermination:!0}):{blockSessionTermination:!1}}_scheduleAttach(e,t){this._attemptTimer=setTimeout((()=>{this._attemptTimer=void 0,this.attemptToAttach(e,Object.assign(Object.assign({},t),{cancellationToken:l.NeverCancelled}))}),1e3)}createTargetManager(e,t,r){return v.BrowserTargetManager.connect(e,void 0,this.pathResolver,t,this.logger,r.telemetryReporter,r.targetOrigin)}async attemptToAttach(e,t){const r=await this.acquireConnectionForBrowser(t,e);this._connection=r,r.onDisconnected((()=>{this._connection=void 0,this._targetManager&&(this._targetManager.dispose(),this._targetManager=void 0,this._onTargetListChangedEmitter.fire()),this._lastLaunchParams===e&&e.restart?this._scheduleAttach(e,t):this._onTerminatedEmitter.fire({killed:!0,code:0})}),void 0,this._disposables);const n=this._targetManager=await this.createTargetManager(r,e,t);if(!n)return;n.serviceWorkerModel.onDidChange((()=>this._onTargetListChangedEmitter.fire())),n.frameModel.onFrameNavigated((()=>this._onTargetListChangedEmitter.fire())),n.onTargetAdded((()=>{this._onTargetListChangedEmitter.fire()})),n.onTargetRemoved((()=>{this._onTargetListChangedEmitter.fire(),n.targetList().length||this._onTerminatedEmitter.fire({killed:!0,code:0})}));const i=await Promise.race([n.waitForMainTarget(await this.getTargetFilter(n,e)),(0,h.delay)(e.timeout).then((()=>{throw new y.ProtocolError((0,g.targetPageNotFound)())}))]);return"string"==typeof i?i:void 0}async getTargetFilter(e,t){const r=(0,m.createTargetFilterForConfig)(t),n=(0,m.requirePageTarget)(r);if("pick"!==t.targetSelection)return n;const i=await e.getCandiateInfo(n);if(0===i.length)return n;if(1===i.length||!this.vscode)return e=>e.targetId===i[0].targetId;const o=_(0,null),s=await this.vscode.window.showQuickPick(i.map((e=>({label:e.title,detail:e.url,targetId:e.targetId}))),{matchOnDescription:!0,matchOnDetail:!0,placeHolder:o});return s?e=>e.targetId===s.targetId:n}async acquireConnectionForBrowser({telemetryReporter:e,cancellationToken:t},r){for(;this._lastLaunchParams===r;)try{return await this.acquireConnectionInner(e,r,t)}catch(e){if(t.isCancellationRequested)throw new y.ProtocolError((0,g.browserAttachFailed)(_(1,null,`${r.address}:${r.port}`,e.message)));await(0,h.delay)(1e3)}throw new y.ProtocolError((0,g.browserAttachFailed)(_(2,null,`${r.address}:${r.port}`,"Cancelled")))}async acquireConnectionInner(e,t,r){const n=`http://${t.address}:${t.port}`;return await w.attach({browserURL:n,inspectUri:t.inspectUri,pageURL:t.url},r,this.logger,e)}async terminate(){var e;this._lastLaunchParams=void 0,null===(e=this._connection)||void 0===e||e.close()}disconnect(){return this.terminate()}async restart(){if(this._targetManager)for(const e of this._targetManager.targetList())"page"!==e.type()||e.name().startsWith("devtools://")||e.restart()}targetList(){const e=this._targetManager;return e?e.targetList():[]}};S=o([(0,c.injectable)(),a(0,(0,c.inject)(d.ILogger)),a(1,(0,c.inject)(f.ISourcePathResolver)),a(2,(0,c.optional)()),a(2,(0,c.inject)(b.VSCodeApi))],S),t.BrowserAttacher=S},2347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseURL=void 0;const n=r(57310);t.baseURL=function(e){if(e.url)try{const t=new n.URL(e.url);if(t.pathname="/",t.search="",t.hash="","data:"===t.protocol)return;return t.href}catch(e){}}},3816: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.__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.BrowserLauncher=void 0;const c=r(5324),u=s(r(57147)),l=r(55053),p=s(r(71017)),d=r(25370),h=r(5376),f=r(94570),m=r(44936),g=r(26379),y=r(15501),b=r(14090),v=r(97208),w=r(44413),_=r(1032),S=r(99010),k=r(68798),P=s(r(40976));let x=class{constructor(e,t,r,n,i){this.storagePath=e,this.logger=t,this.pathResolver=r,this.initializeParams=n,this.fs=i,this._disposables=new h.DisposableList,this._terminated=!1,this._onTerminatedEmitter=new m.EventEmitter,this.onTerminated=this._onTerminatedEmitter.event,this._onTargetListChangedEmitter=new m.EventEmitter,this.onTargetListChanged=this._onTargetListChangedEmitter.event}dispose(){this._disposables.dispose()}async launchBrowser({runtimeExecutable:e,trace:t,includeDefaultArgs:r,runtimeArgs:n,userDataDir:i,env:o,cwd:s,port:a,url:c,file:l,inspectUri:d,webRoot:h,cleanUp:m,launchUnelevated:g},y,b,v,w){const _=await this.findBrowserPath(e||"stable");let S;"string"==typeof i?S=i:i&&(S=p.join(this.storagePath,(null==n?void 0:n.includes("--headless"))?".headless-profile":".profile"));try{u.mkdirSync(this.storagePath)}catch(e){}return await P.launch(y,_,this.logger,v,this.initializeParams,b,{onStdout:e=>y.output({category:"stdout",output:e}),onStderr:e=>y.output({category:"stderr",output:e}),dumpio:"boolean"==typeof t?t:t.stdio,cleanUp:m,hasUserNavigation:!(!c&&!l),cwd:s||h||void 0,env:f.EnvironmentVars.merge(f.EnvironmentVars.processEnv(),o),args:n||[],userDataDir:S,connection:a||(d?0:"pipe"),launchUnelevated:g,ignoreDefaultArgs:!r,url:c,inspectUri:d,promisedPort:w})}getFilterForTarget(e){return(0,v.requirePageTarget)((0,v.createTargetFilterForConfig)(e,["about:blank"]))}async prepareLaunch(e,{dap:t,targetOrigin:r,cancellationToken:n,telemetryReporter:i}){let o;try{o=await this.launchBrowser(e,t,n,i)}catch(e){throw new _.ProtocolError((0,w.browserLaunchFailed)(e))}if(this._disposables.push(o.cdp.onDisconnected((()=>this.fireTerminatedEvent()))),this._connectionForTest=o.cdp,this._launchParams=e,this._targetManager=await k.BrowserTargetManager.connect(o.cdp,o.process,this.pathResolver,this._launchParams,this.logger,i,r),!this._targetManager)throw o.process.kill(),new _.ProtocolError((0,w.browserAttachFailed)());this._targetManager.serviceWorkerModel.onDidChange((()=>this._onTargetListChangedEmitter.fire())),this._targetManager.frameModel.onFrameNavigated((()=>this._onTargetListChangedEmitter.fire())),this._disposables.push(this._targetManager),this._targetManager.onTargetAdded((()=>{this._onTargetListChangedEmitter.fire()})),this._targetManager.onTargetRemoved((()=>{this._onTargetListChangedEmitter.fire()}));const s=this.getFilterForTarget(e),a=await(0,d.timeoutPromise)(this._targetManager.waitForMainTarget(s),n,"Could not attach to main target");if(!a)throw o.process.kill(),new _.ProtocolError((0,w.targetPageNotFound)());return a}async finishLaunch(e,t){if("skipNavigateForTest"in t)return;let r;if(t.file){const e=p.resolve(t.webRoot||t.rootPath||"",t.file),n=Math.min(e.includes("#")?e.indexOf("#"):1/0,e.includes("?")?e.indexOf("?"):1/0);r=isFinite(n)&&!await(0,g.existsInjected)(this.fs,e)?(0,v.absolutePathToFileUrl)(e.slice(0,n))+e.slice(n):(0,v.absolutePathToFileUrl)(e)}else r=t.url;r&&await e.cdp().Page.navigate({url:r})}async launch(e,t){const r=this.resolveParams(e);if(!r)return{blockSessionTermination:!1};const n=await this.prepareLaunch(r,t);return await this.finishLaunch(n,r),{blockSessionTermination:!0}}async terminate(){for(const e of this.targetList())"page"===e.type()&&await e.cdp().Page.close({})}async disconnect(){var e;await(null===(e=this._targetManager)||void 0===e?void 0:e.closeBrowser())}async restart(){for(const e of this.targetList())"page"===e.type()&&e.restart()}async findBrowserByExe(e,t){var r;if("*"===t){const t=await e.findWhere((e=>"stable"===e.quality))||(await e.findAll())[0];return null==t?void 0:t.path}return(0,c.isQuality)(t)?null===(r=await e.findWhere((e=>e.quality===t)))||void 0===r?void 0:r.path:t}targetList(){const e=this._targetManager;return e?e.targetList():[]}connectionForTest(){return this._connectionForTest}fireTerminatedEvent(){this._terminated||(this._terminated=!0,this._onTerminatedEmitter.fire({code:0,killed:!0}))}};x=o([(0,l.injectable)(),a(0,(0,l.inject)(S.StoragePath)),a(1,(0,l.inject)(y.ILogger)),a(2,(0,l.inject)(b.ISourcePathResolver)),a(3,(0,l.inject)(S.IInitializeParams)),a(4,(0,l.inject)(S.FS))],x),t.BrowserLauncher=x},64416: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.__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.BrowserSourcePathResolver=void 0;const c=r(55053),u=s(r(71017)),l=r(57310),p=r(24862),d=r(26379),h=r(79783),f=r(85196),m=s(r(97208)),g=r(97208),y=r(48055),b="https?:\\/\\/[^\\/]+\\/";let v=class extends y.SourcePathResolverBase{constructor(e,t,r,n){super(r,n),this.vueMapper=e,this.fsUtils=t}absolutePathToUrlPath(e){e=u.normalize(e);const{baseUrl:t,pathMapping:r}=this.options,n=["/",r["/"]],i=Object.entries(r).sort((([,e],[,t])=>t.length-e.length)).find((([,t])=>(0,h.isSubdirectoryOf)(t,e)))||n;if(!i)return{url:m.absolutePathToFileUrl(e),needsWildcard:!1};let o=m.platformPathToUrlPath(u.relative(i[1],e));const s=i[0].replace(/\/$|^\//g,"");return s&&(o=s+"/"+o),t||m.isValidUrl(o)?{url:m.completeUrlEscapingRoot(t,o),needsWildcard:!1}:{url:o,needsWildcard:!0}}async urlToAbsolutePath({url:e,map:t}){const r=e.indexOf("?");return-1!==r&&".vue"!==e.slice(r-4,r)&&(e=e.slice(0,r)),t?this.sourceMapSourceToAbsolute(e,t):this.simpleUrlToAbsolute(e)}async simpleUrlToAbsolute(e){if(!e)return;if(m.isFileUrl(e)){const t=m.fileUrlToAbsolutePath(e);if(await this.fsUtils.exists(t))return t;const r=m.fileUrlToNetworkPath(e);if(await this.fsUtils.exists(r))return r}let t;try{const r=new l.URL(e);if(t=r.pathname&&"/"!==r.pathname?r.pathname:"index.html","webpack-internal:"===r.protocol)return}catch(r){t=e}const r=u.extname(t),n=t.replace(/^\//,"").split(/[\/\\]/);for(;n.length>0;){const e="/"+n.join("/"),t=await(0,f.defaultPathMappingResolver)(e,this.options.pathMapping,this.logger);if(t){if(!r&&await this.fsUtils.exists(t+".html"))return t+".html";if(await this.fsUtils.exists(t))return t}n.shift()}}async sourceMapSourceToAbsolute(e,t){if(!this.shouldResolveSourceMap(t.metadata))return;switch(this.vueMapper.getVueHandling(e)){case 2:return;case 1:const t=await this.vueMapper.lookup(e);if(t)return(0,h.fixDriveLetterAndSlashes)(t)}e=this.normalizeSourceMapUrl(e);const{pathMapping:r}=this.options,n=(0,f.getFullSourceEntry)(t.sourceRoot,e);let i=this.sourceMapOverrides.apply(n);if(i!==n){i=(0,h.fixDriveLetterAndSlashes)(i);const e=(0,h.properResolve)(r["/"],"..","ClientApp",(0,h.properRelative)(r["/"],i));return"visualstudio"===this.options.clientID&&n.startsWith("webpack:///")&&!await this.fsUtils.exists(i)&&await this.fsUtils.exists(e)?e:i}return m.isFileUrl(e)?m.fileUrlToAbsolutePath(e):u.isAbsolute(e)?(0,h.fixDriveLetterAndSlashes)(e):(0,h.properResolve)(await(0,f.getComputedSourceRoot)(t.sourceRoot,t.metadata.compiledPath,r,f.defaultPathMappingResolver,this.logger),e)}absolutePathToUrlRegexp(e){const t=this.absolutePathToUrlPath(e);let r=t.url,n=e.length;r.endsWith("index.html")?(n=r.length-"index.html".length-1,r=r.slice(0,n)+"\\/?($|index(\\.html)?)"):r.endsWith(".html")&&(n=r.length-".html".length,r=r.slice(0,n)+"(\\.html)?");let i=0;t.needsWildcard&&(r=b+r,i=b.length,n+=b.length);const o=(0,g.urlToRegex)(r,[i,n]);return t.needsWildcard?`${(0,g.urlToRegex)(m.absolutePathToFileUrl(e))}|${o}`:o}};v=o([(0,c.injectable)(),a(0,(0,c.inject)(p.IVueFileMapper)),a(1,(0,c.inject)(d.IFsUtils))],v),t.BrowserSourcePathResolver=v},68798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserTargetManager=void 0;const n=r(44936),i=r(52790),o=r(49157),s=r(30929);t.BrowserTargetManager=class{constructor(e,t,r,i,a,c,u,l){this.process=t,this.logger=a,this.telemetry=c,this.launchParams=u,this._targets=new Map,this._detachedTargets=new Set,this.frameModel=new o.FrameModel,this.serviceWorkerModel=new s.ServiceWorkerModel(this.frameModel),this._lifecycleQueue=Promise.resolve(),this._onTargetAddedEmitter=new n.EventEmitter,this._onTargetRemovedEmitter=new n.EventEmitter,this.onTargetAdded=this._onTargetAddedEmitter.event,this.onTargetRemoved=this._onTargetRemovedEmitter.event,this._connection=e,this._sourcePathResolver=i,this._browser=r,this._targetOrigin=l,this.serviceWorkerModel.onDidChange((()=>{for(const e of this._targets.values())"service_worker"===e.type()&&e._onNameChangedEmitter.fire()}))}static async connect(e,t,r,n,i,o,s){const a=e.rootSession(),c=await a.Target.attachToBrowserTarget({});if(!c)return;const u=e.createSession(c.sessionId);return new this(e,t,u,r,i,o,n,s)}dispose(){this.serviceWorkerModel.dispose()}targetList(){return Array.from(this._targets.values()).filter((e=>i.jsTypes.has(e.type())))}async getCandiateInfo(e){const t=await this._browser.Target.getTargets({});return t?e?t.targetInfos.filter(e):t.targetInfos:[]}async closeBrowser(){var e;if("launch"===this.launchParams.request){if("wholeBrowser"===this.launchParams.cleanUp)await this._browser.Browser.close({}),null===(e=this.process)||void 0===e||e.kill();else for(const e of this._targets.values())await this._browser.Target.closeTarget({targetId:e.targetId}),this._connection.close();this.process=void 0}}waitForMainTarget(e){let t;const r=new Promise((e=>t=e)),n=async r=>{if([...this._targets.values()].some((e=>e.targetId===r.targetId))||this._detachedTargets.has(r.targetId))return;if(e&&!e(r))return;const n=this._browser.Target.on("targetInfoChanged",(e=>{e.targetInfo.targetId===r.targetId&&(r=e.targetInfo)}));let i;try{i=await this._browser.Target.attachToTarget({targetId:r.targetId,flatten:!0})}finally{n.dispose()}t(i?this.attachedToTarget(r,i.sessionId,!0):void 0)};return this._browser.Target.setDiscoverTargets({discover:!0}),this._browser.Target.on("targetCreated",this.enqueueLifecycleFn((e=>n(e.targetInfo)))),this._browser.Target.on("targetInfoChanged",(e=>this._targetInfoChanged(e.targetInfo,this.enqueueLifecycleFn(n)))),this._browser.Target.on("detachedFromTarget",this.enqueueLifecycleFn((async e=>{e.targetId&&await this._detachedFromTarget(e.sessionId,!1)}))),r}enqueueLifecycleFn(e){return t=>this._lifecycleQueue=this._lifecycleQueue.then((()=>e(t)))}attachedToTarget(e,t,r,n,o=!0){const s=this._targets.get(t);if(s)return s;const a=this._connection.createSession(t),c=new i.BrowserTarget(this,e,a,n,r,this.launchParams,t,this.logger,(()=>{this._connection.disposeSession(t),this._detachedFromTarget(t)}));this._targets.set(t,c),n&&n._children.set(e.targetId,c),a.Target.on("attachedToTarget",(async e=>{this.attachedToTarget(e.targetInfo,e.sessionId,e.waitingForDebugger,c)})),a.Target.on("detachedFromTarget",(async e=>{e.targetId&&this._detachedFromTarget(e.sessionId,!1)})),a.Target.setAutoAttach({autoAttach:!0,waitForDebuggerOnStart:o,flatten:!0}),a.Network.setCacheDisabled({cacheDisabled:this.launchParams.disableNetworkCache}).catch((e=>this.logger.info("runtime.target","Error setting network cache state",e))),n||this.retrieveBrowserTelemetry(a);const u=e.type;return i.domDebuggerTypes.has(u)&&this.frameModel.attached(a,e.targetId),this.serviceWorkerModel.attached(a),this._onTargetAddedEmitter.fire(c),i.jsTypes.has(u)&&"service_worker"!==u?"page"===u&&o&&a.Page.waitForDebugger({}):c.runIfWaitingForDebugger(),c}async retrieveBrowserTelemetry(e){try{const t=await e.Browser.getVersion({});if(!t)throw new Error("Undefined return from getVersion()");const r={targetCRDPVersion:t.protocolVersion,targetRevision:t.revision,targetUserAgent:t.userAgent,targetV8:t.jsVersion,targetVersion:"",targetProject:"",targetProduct:""};this.logger.verbose("runtime.target","Retrieved browser information",t);const n=(t.product||"").split("/");2===n.length?(r.targetProject=n[0],r.targetVersion=n[1]):r.targetProduct=t.product,this.telemetry.report("browserVersion",r)}catch(e){this.logger.warn("runtime.target","Error getting browser telemetry",e)}}async _detachedFromTarget(e,t=!0){var r;const n=this._targets.get(e);if(n){this._targets.delete(e),null===(r=n.parentTarget)||void 0===r||r._children.delete(e);try{await n._detached()}catch(e){}if(this._onTargetRemovedEmitter.fire(n),t&&(this._detachedTargets.add(n.targetId),await this._browser.Target.detachFromTarget({sessionId:e})),!this._targets.size&&"launch"===this.launchParams.request)try{"wholeBrowser"===this.launchParams.cleanUp?await this._browser.Browser.close({}):(await this._browser.Target.closeTarget({targetId:n.id()}),this._connection.close())}catch(e){}}}async _targetInfoChanged(e,t){const r=[...this._targets.values()].filter((t=>t.targetId===e.targetId));if(!e.attached||!r.length)return r.length&&await Promise.all(r.map((e=>this._detachedFromTarget(e.sessionId,!1)))),t(e);for(const t of r)t._updateFromInfo(e);for(const t of this._targets.values())t.targetId!==e.targetId&&t._onNameChangedEmitter.fire()}}},52790: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.__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.BrowserTarget=t.domDebuggerTypes=t.jsTypes=void 0;const s=r(57310),a=r(44936),c=o(r(97208)),u=r(65581);t.jsTypes=new Set(["page","iframe","worker","service_worker"]),t.domDebuggerTypes=new Set(["page","iframe"]);const l=new Set(["page","iframe"]),p=l;class d{constructor(e,t,r,n,i,o,s,c,u){this._targetInfo=t,this.launchConfig=o,this.sessionId=s,this.logger=c,this._attached=!1,this._onNameChangedEmitter=new a.EventEmitter,this.onNameChanged=this._onNameChangedEmitter.event,this.entryBreakpoint=void 0,this._children=new Map,this._cdp=r,r.pause(),this._manager=e,this.parentTarget=n,this._waitingForDebugger=i,this._updateFromInfo(t),this._ondispose=u}get targetInfo(){return this._targetInfo}get targetId(){return this._targetInfo.targetId}get independentLifeycle(){return l.has(this.type())}get supplementalConfig(){const e=this.type();return{__browserTargetType:e,__usePerformanceFromParent:"page"!==e}}targetOrigin(){return this._manager._targetOrigin}id(){return this.sessionId}cdp(){return this._cdp}name(){return this._computeName()}fileName(){return this._targetInfo.url}type(){return this._targetInfo.type}afterBind(){return this._cdp.resume(),Promise.resolve()}initialize(){return Promise.resolve()}async runIfWaitingForDebugger(){await Promise.all([this._cdp.Runtime.runIfWaitingForDebugger({}),this._cdp.Runtime.evaluate({expression:(0,u.signalReadyExpr)()})])}parent(){return this.parentTarget&&!t.jsTypes.has(this.parentTarget.type())?this.parentTarget.parentTarget:this.parentTarget}children(){const e=[];for(const r of this._children.values())t.jsTypes.has(r.type())?e.push(r):e.push(...r.children());return e}canStop(){return p.has(this.type())}stop(){if(this._manager.targetList().includes(this))if("service_worker"===this.type()){if(this._manager.serviceWorkerModel.stopWorker(this.id()),!this.parentTarget)return;this._manager.serviceWorkerModel.stopWorker(this.parentTarget.id())}else this._cdp.Target.closeTarget({targetId:this._targetInfo.targetId})}canRestart(){return l.has(this.type())}restart(){this._cdp.Page.reload({})}waitingForDebugger(){return this._waitingForDebugger}canAttach(){return!this._attached}async attach(){return this._waitingForDebugger=!1,this._attached=!0,Promise.resolve(this._cdp)}canDetach(){return this._attached}async detach(){this._attached=!1,this._manager._detachedFromTarget(this.sessionId)}executionContextName(e){const t=e.auxData,r=e.name;if(!t)return r;const n=t.frameId,i=n?this._manager.frameModel.frameForId(n):void 0;return i&&t.isDefault&&!i.parentFrame()?"top":i&&t.isDefault?i.displayName():i?`${r}`:r}supportsCustomBreakpoints(){return t.domDebuggerTypes.has(this.type())}scriptUrlToUrl(e){return c.completeUrl(this._targetInfo.url,e)||e}sourcePathResolver(){return this._manager._sourcePathResolver}_updateFromInfo(e){this._targetInfo=Object.assign(Object.assign({},e),{type:this._targetInfo.type}),this._onNameChangedEmitter.fire()}setComputeNameFn(e){this._customNameComputeFn=e,this._onNameChangedEmitter.fire()}_computeName(){var e;const t=null===(e=this._customNameComputeFn)||void 0===e?void 0:e.call(this,this);if(t)return t;if("service_worker"===this.type()){const e=this._manager.serviceWorkerModel.version(this.id());if(e)return e.label()+" [Service Worker]"}let r=this._targetInfo.title;if(!r||!this._manager.targetList().some((e=>e instanceof d&&e!==this&&e._targetInfo.title===this._targetInfo.title)))return r;try{const e=new s.URL(this._targetInfo.url);"data:"===e.protocol?r=" <data>":r+=e?` (${this._targetInfo.url.replace(/^[a-z]+:\/\/|\/$/gi,"")})`:` (${this._targetInfo.url})`}catch(e){r+=` (${this._targetInfo.url})`}return r}async _detached(){await this._manager.serviceWorkerModel.detached(this._cdp),this._ondispose(this)}}t.BrowserTarget=d},68773: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.ChromeLauncher=void 0;const o=r(55053),s=r(26379),a=r(15501),c=r(14090),u=r(44413),l=r(1032),p=r(99010),d=r(3816);let h=class extends d.BrowserLauncher{constructor(e,t,r,n,i,o){super(e,t,i,o,n),this.browserFinder=r}resolveParams(e){return"pwa-chrome"===e.type&&"launch"===e.request&&"workspace"===e.browserLaunchLocation?e:void 0}async findBrowserPath(e){const t=await this.findBrowserByExe(this.browserFinder,e);if(!t||!await(0,s.canAccess)(this.fs,t))throw new l.ProtocolError((0,u.browserNotFound)("Chrome",e,(await this.browserFinder.findAll()).map((e=>e.quality))));return t}};h=n([(0,o.injectable)(),i(0,(0,o.inject)(p.StoragePath)),i(1,(0,o.inject)(a.ILogger)),i(2,(0,o.inject)(p.BrowserFinder)),i(2,(0,o.tagged)("browser","chrome")),i(3,(0,o.inject)(p.FS)),i(4,(0,o.inject)(c.ISourcePathResolver)),i(5,(0,o.inject)(p.IInitializeParams))],h),t.ChromeLauncher=h},39413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constructInspectorWSUri=void 0;const n=r(57310),i=r(7678);t.constructInspectorWSUri=function(e,t,r){const o=(0,i.memoize)((e=>{if(e)return new n.URL(e);throw new Error(`A valid url wasn't supplied: <${e}>`)})),s={"url.hostname":()=>o(t).hostname,"url.port":()=>o(t).port,browserInspectUri:()=>encodeURIComponent(r),browserInspectUriPath:()=>new n.URL(r).pathname,wsProtocol:()=>"https:"===o(t).protocol?"wss":"ws"};return e.replace(/{([^\}]+)}/g,((e,t)=>s.hasOwnProperty(t)?s[t]():e))}},20478: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)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EdgeLauncher=void 0;const s=r(6113),a=r(55053),c=r(41808),u=r(22037),l=r(71017),p=o(r(63216)),d=r(2940),h=r(25370),f=r(26379),m=r(15501),g=r(78986),y=r(14090),b=r(97208),v=r(44413),w=r(1032),_=r(99010),S=r(3816),k=["--do-not-de-elevate"];let P=class extends S.BrowserLauncher{constructor(e,t,r,n,i,o){super(e,t,i,o,n),this.browserFinder=r}resolveParams(e){return"pwa-msedge"===e.type&&"launch"===e.request&&"workspace"===e.browserLaunchLocation?e:void 0}launchBrowser(e,t,r,n){var i;return super.launchBrowser(Object.assign(Object.assign({},e),{runtimeArgs:null!==(i=e.runtimeArgs)&&void 0!==i?i:k}),t,r,n,e.useWebView?this.getWebviewPort(e,n):void 0)}getFilterForTarget(e){return e.useWebView&&e.urlFilter?(0,b.requirePageTarget)((0,b.createTargetFilterForConfig)(e)):super.getFilterForTarget(e)}async getWebviewPort(e,t){const r=(0,g.getDeferred)();if(!e.runtimeExecutable)return r.resolve(e.port),r.promise;const n=e.runtimeExecutable.split(/\\|\//).pop(),i=`VSCode_${(0,s.randomBytes)(12).toString("base64")}`,o=`\\\\.\\pipe\\WebView2\\Debugger\\${n}\\${i}`,a=(0,c.createServer)((n=>{n.on("data",(async n=>{const i=JSON.parse(n.toString()),o=i.devtoolsActivePort||"",s=parseInt(o.split("\n").shift()||""),a=e.port||s;r.resolve(a);const c=`ws://${e.address}:${a}/devtools/${i.type}/${i.id}`,u=await d.WebSocketTransport.create(c,h.NeverCancelled),l=new p.default(u,this.logger,t);await l.rootSession().Runtime.runIfWaitingForDebugger({}),l.close()}))}));return a.on("error",r.reject),a.on("close",(()=>r.resolve(e.port))),a.listen(o),e.userDataDir=e.userDataDir||(0,l.join)((0,u.tmpdir)(),`vscode-js-debug-userdatadir_${e.port}`),e.env=e.env||{},e.env.WEBVIEW2_USER_DATA_FOLDER=e.userDataDir.toString(),e.env.WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS=`--remote-debugging-port=${e.port}`,e.env.WEBVIEW2_WAIT_FOR_SCRIPT_DEBUGGER="true",e.env.WEBVIEW2_PIPE_FOR_SCRIPT_DEBUGGER=i,r.promise}async findBrowserPath(e){const t=await this.findBrowserByExe(this.browserFinder,e);if(!t||!await(0,f.canAccess)(this.fs,t))throw new w.ProtocolError((0,v.browserNotFound)("Edge",e,(await this.browserFinder.findAll()).map((e=>e.quality))));return t}};P=n([(0,a.injectable)(),i(0,(0,a.inject)(_.StoragePath)),i(1,(0,a.inject)(m.ILogger)),i(2,(0,a.inject)(_.BrowserFinder)),i(2,(0,a.tagged)("browser","edge")),i(3,(0,a.inject)(_.FS)),i(4,(0,a.inject)(y.ISourcePathResolver)),i(5,(0,a.inject)(_.IInitializeParams))],P),t.EdgeLauncher=P},49157: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.__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.Frame=t.FrameModel=void 0;const s=r(57310),a=o(r(71017)),c=r(44936);t.FrameModel=class{constructor(){this._onFrameAddedEmitter=new c.EventEmitter,this._onFrameRemovedEmitter=new c.EventEmitter,this._onFrameNavigatedEmitter=new c.EventEmitter,this.onFrameAdded=this._onFrameAddedEmitter.event,this.onFrameRemoved=this._onFrameRemovedEmitter.event,this.onFrameNavigated=this._onFrameNavigatedEmitter.event,this._frames=new Map}attached(e,t){e.Page.enable({}),e.Page.getResourceTree({}).then((r=>{this._processCachedResources(e,r?r.frameTree:void 0,t)}))}mainFrame(){return this._mainFrame}_processCachedResources(e,t,r){t&&this._addFramesRecursively(e,t,t.frame.parentId,r),e.Page.on("frameAttached",(t=>{this._frameAttached(e,r,t.frameId,t.parentFrameId)})),e.Page.on("frameNavigated",(t=>{this._frameNavigated(e,r,t.frame)})),e.Page.on("frameDetached",(t=>{this._frameDetached(e,r,t.frameId)}))}_addFrame(e,t,r){const n=new u(this,e,t,r);return this._frames.set(n.id,n),n.isMainFrame()&&(this._mainFrame=n),this._onFrameAddedEmitter.fire(n),n}_frameAttached(e,t,r,n){let i=this._frames.get(r);return i||(i=this._addFrame(e,r,n)),i._ref(t),i}_frameNavigated(e,t,r){let n=this._frames.get(r.id);n||(n=this._frameAttached(e,t,r.id,r.parentId)),n._navigate(r,t),this._onFrameNavigatedEmitter.fire(n)}_frameDetached(e,t,r){const n=this._frames.get(r);n&&n._unref(t)}frameForId(e){return this._frames.get(e)}frames(){return Array.from(this._frames.values())}_addFramesRecursively(e,t,r,n){const i=t.frame;let o=this._frames.get(i.id);o?(o._navigate(i,n),this._onFrameNavigatedEmitter.fire(o)):(o=this._addFrame(e,i.id,r),o._navigate(i,n));for(let r=0;t.childFrames&&r<t.childFrames.length;++r)this._addFramesRecursively(e,t.childFrames[r],o.id,n)}};class u{constructor(e,t,r,n){this._targets=new Set,this.cdp=t,this.model=e,this._parentFrameId=n,this.id=r,this._url=""}_ref(e){this._targets.add(e)}_navigate(e,t){this._name=e.name,this._url=e.url,this._securityOrigin=e.securityOrigin,this._unreachableUrl=e.unreachableUrl||"",this._ref(t),this._unrefChildFrames(t)}name(){return this._name||""}url(){return this._url}securityOrigin(){return this._securityOrigin}unreachableUrl(){return this._unreachableUrl}isMainFrame(){return!this._parentFrameId}parentFrame(){return this._parentFrameId?this.model.frameForId(this._parentFrameId):void 0}childFrames(){return this.model.frames().filter((e=>e._parentFrameId===this.id))}_unrefChildFrames(e){for(const t of this.childFrames())t._unref(e)}_unref(e){this._targets.delete(e),this._targets.size||(this._unrefChildFrames(e),this.model._frames.delete(this.id),this.model._onFrameRemovedEmitter.fire(this))}displayName(){return this._name?this._name:function(e){let t;try{t=new s.URL(e)}catch(t){return l(e,20)}if("data"===t.protocol)return l(e,20);if("blob"===t.protocol)return e;if("about:blank"===e)return e;let r=a.basename(t.pathname);return r||(r=(t.host||"")+"/"),"/"===r&&(r=l(e,20)),r}(this._url)||`<iframe ${this.id}>`}}function l(e,t){return e.length<=t?e:e.substr(0,t-1)+"…"}t.Frame=u},40976: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.__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},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.attach=t.defaultArgs=t.launch=void 0;const a=o(r(32081)),c=r(57147),u=s(r(63216)),l=r(2940),p=r(94570),d=r(26379),h=r(78986),f=r(2462),m=r(39413),g=r(27830),y=r(18966),b=r(79554),v=()=>{};function w(e,t={}){const{userDataDir:r=null,ignoreDefaultArgs:n=!1}=t;let i=!0===n?new f.BrowserArgs:f.BrowserArgs.default;return n instanceof Array&&(i=i.filter((e=>!n.includes(e)))),r&&(i=i.add("--user-data-dir",r)),i=i.merge(e),e.toArray().every((e=>e.startsWith("-")))&&t.hasUserNavigation&&(i=i.add("about:blank")),i}t.launch=async function(e,t,r,n,i,o,s={}){var l,m;const{onStderr:y=v,onStdout:_=v,args:S=[],dumpio:k=!1,cwd:P=process.cwd(),env:x=p.EnvironmentVars.empty,connection:C="pipe",cleanUp:E="wholeBrowser",url:O,inspectUri:D}=s;let T=new f.BrowserArgs(S),j=T.getSuggestedConnection();void 0===j&&(T=T.setConnection(C),j=C),T=w(T,s);let A,M=["pipe","pipe","pipe"];if("pipe"===j&&(M=k?["ignore","pipe","pipe","pipe","pipe"]:["ignore","ignore","ignore","pipe","pipe"]),i.supportsLaunchUnelevatedProcessRequest&&s.launchUnelevated&&"number"==typeof j&&0!==j)await(0,b.launchUnelevatedChrome)(e,t,T.toArray(),o),A=new g.NonTrackedBrowserProcess(r);else{r.info("runtime.launch",`Launching Chrome from ${t}`);const e=a.spawn(t,T.toArray(),{detached:!0,env:x.defined(),cwd:await(0,d.canAccess)(c.promises,P)?P:process.cwd(),stdio:M});if(void 0===e.pid)throw await Promise.race([(0,h.delay)(1e3).then((()=>new Error("Unable to launch the executable (undefined pid)"))),new Promise((t=>e.once("error",t)))]);A=new g.ChildProcessBrowserProcess(e,r)}k&&(null===(l=A.stderr)||void 0===l||l.on("data",(e=>y(e.toString()))),null===(m=A.stdout)||void 0===m||m.on("data",(e=>_(e.toString()))));let R=()=>{"wholeBrowser"===E&&A.kill()};process.on("exit",R),A.onExit((()=>process.removeListener("exit",R)));try{s.promisedPort&&(j=await s.promisedPort);const e=await A.transport({connection:j,inspectUri:D||void 0,url:O||void 0},o),t=new u.default(e,r,n);return R=async()=>{"wholeBrowser"===E?(await t.rootSession().Browser.close({}),A.kill()):t.close()},{cdp:t,process:A}}catch(e){throw R(),e}},t.defaultArgs=w,t.attach=async function(e,t,r,n){const{browserWSEndpoint:i,browserURL:o}=e;if(i){const e=await l.WebSocketTransport.create(i,t);return new u.default(e,r,n)}if(o){const i=await(0,y.retryGetBrowserEndpoint)(o,t,r),s=e.inspectUri?(0,m.constructInspectorWSUri)(e.inspectUri,e.pageURL,i):i,a=await l.WebSocketTransport.create(s,t);return new u.default(a,r,n)}throw new Error("Either browserURL or browserWSEndpoint needs to be specified")}},9743: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)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteBrowserAttacher=void 0;const s=r(55053),a=o(r(63216)),c=r(15501),u=r(14090),l=r(99010),p=r(52886),d=r(5319);let h=class extends p.BrowserAttacher{constructor(e,t,r,n){super(t,r,n),this.helper=e}resolveParams(e){return"attach"===e.request&&("pwa-chrome"===e.type||"pwa-msedge"===e.type)&&"ui"===e.browserAttachLocation}async acquireConnectionForBrowser(e,t){const r=await this.helper.launch(e.dap,e.cancellationToken,{type:"pwa-chrome"===t.type?"chrome":"edge",params:t,attach:{host:t.address,port:t.port}});return new a.default(r,this.logger,e.telemetryReporter)}};h=n([(0,s.injectable)(),i(0,(0,s.inject)(d.RemoteBrowserHelper)),i(1,(0,s.inject)(c.ILogger)),i(2,(0,s.inject)(u.ISourcePathResolver)),i(3,(0,s.optional)()),i(3,(0,s.inject)(l.VSCodeApi))],h),t.RemoteBrowserAttacher=h},5319: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.RemoteBrowserHelper=void 0;const o=r(55053),s=r(91183),a=r(16769),c=r(25370),u=r(15501),l=r(78986);let p=0,d=class{constructor(e,t){this.logger=e,this.portLeaseTracker=t,this.teardown=new WeakMap}async launch(e,t,r){this.server&&this.server.close();const n=(0,l.getDeferred)(),i=this.server=await(0,s.acquireTrackedServer)(this.portLeaseTracker,n.resolve),o=++p;e.launchBrowserInCompanion(Object.assign(Object.assign({},r),{serverPort:i.address().port,launchId:o}));const u=await(0,c.timeoutPromise)(n.promise,t,"Timed out waiting for browser connection"),d=new a.GzipPipeTransport(this.logger,u);return this.teardown.set(d,(()=>e.killCompanionBrowser({launchId:o}))),d}close(e){var t;null===(t=this.teardown.get(e))||void 0===t||t()}dispose(){var e;null===(e=this.server)||void 0===e||e.close(),this.server=void 0}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(u.ILogger)),i(1,(0,o.inject)(s.IPortLeaseTracker))],d),t.RemoteBrowserHelper=d},6711: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)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteBrowserLauncher=void 0;const s=r(55053),a=o(r(63216)),c=r(44936),u=r(15501),l=r(14090),p=r(99010),d=r(2462),h=r(3816),f=r(40976),m=r(5319);let g=class extends h.BrowserLauncher{constructor(e,t,r,n,i,o){super(e,t,r,n,i),this.helper=o}resolveParams(e){return"pwa-chrome"!==e.type&&"pwa-msedge"!==e.type||"launch"!==e.request||"ui"!==e.browserLaunchLocation?void 0:e}async launchBrowser(e,t,r,n){const i=await this.helper.launch(t,r,{type:"pwa-chrome"===e.type?"chrome":"edge",browserArgs:(0,f.defaultArgs)(new d.BrowserArgs(e.runtimeArgs||[]),{hasUserNavigation:!!e.url,ignoreDefaultArgs:!e.includeDefaultArgs}).setConnection(e.port||"pipe").toArray(),params:e});return{cdp:new a.default(i,this.logger,n),process:{onExit:(new c.EventEmitter).event,onError:(new c.EventEmitter).event,transport:()=>Promise.resolve(i),kill:()=>this.helper.close(i)}}}async findBrowserPath(){throw new Error("not implemented")}};g=n([(0,s.injectable)(),i(0,(0,s.inject)(p.StoragePath)),i(1,(0,s.inject)(u.ILogger)),i(2,(0,s.inject)(l.ISourcePathResolver)),i(3,(0,s.inject)(p.IInitializeParams)),i(4,(0,s.inject)(p.FS)),i(5,(0,s.inject)(m.RemoteBrowserHelper))],g),t.RemoteBrowserLauncher=g},30929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceWorkerModel=t.ServiceWorkerVersion=t.ServiceWorkerRegistration=void 0;const n=r(44936),i=r(57310);class o{constructor(e){this.versions=new Map,this.id=e.registrationId,this.scopeURL=e.scopeURL}}t.ServiceWorkerRegistration=o;class s{constructor(e,t){this.revisions=[],this.registration=e,this.id=t.versionId,this.scriptURL=t.scriptURL,this._targetId=t.targetId,this._status=t.status,this._runningStatus=t.runningStatus}addRevision(e){this._targetId&&e.targetId&&this._targetId!==e.targetId&&console.error(`${this._targetId} !== ${e.targetId}`),e.targetId&&(this._targetId=e.targetId),this._status=e.status,this._runningStatus=e.runningStatus,this.revisions.unshift(e)}status(){return this._status}runningStatus(){return this._runningStatus}targetId(){return this._targetId}label(){const e=new i.URL(this.registration.scopeURL);let t=e.pathname.substr(1);t.endsWith("/")&&(t=t.substring(0,t.length-1));const r=t||`${e.host}`,n="activated"===this._status?"":` ${this._status}`,o="running"===this._runningStatus?"":` ${this._runningStatus}`;return`${r} #${this.id}${n}${o}`}}t.ServiceWorkerVersion=s;class a{constructor(e){this._registrations=new Map,this._versions=new Map,this._onDidChangeUpdater=new n.EventEmitter,this.onDidChange=this._onDidChangeUpdater.event,this._targets=new Set,this._frameModel=e,a._instances.add(this)}dispose(){a._instances.delete(this)}attached(e){this._targets.add(e),this._cdp||(this._cdp=e,e.ServiceWorker.enable({}),e.ServiceWorker.on("workerRegistrationUpdated",(e=>this._workerRegistrationsUpdated(e.registrations))),e.ServiceWorker.on("workerVersionUpdated",(e=>this._workerVersionsUpdated(e.versions))),"normal"!==a._mode&&this.setMode(a._mode))}async detached(e){this._targets.delete(e)}version(e){return this._versions.get(e)}registrations(){const e=[],t=this._frameModel.frames().map((e=>e.url()));for(const r of this._registrations.values())for(const n of t)if(n.startsWith(r.scopeURL)){e.push(r);break}return e}registration(e){return this._registrations.get(e)}_workerVersionsUpdated(e){for(const t of e){const e=this._registrations.get(t.registrationId);if(!e)continue;let r=e.versions.get(t.versionId);r||(r=new s(e,t),e.versions.set(t.versionId,r)),t.targetId&&this._versions.set(t.targetId,r),r.addRevision(t),"redundant"===r.status()&&"stopped"===r.runningStatus()&&(t.targetId&&this._versions.delete(t.targetId),e.versions.delete(r.id))}this._onDidChangeUpdater.fire()}_workerRegistrationsUpdated(e){for(const t of e)if(t.isDeleted)this._registrations.has(t.registrationId),this._registrations.delete(t.registrationId);else{if(this._registrations.has(t.registrationId))return;this._registrations.set(t.registrationId,new o(t))}this._onDidChangeUpdater.fire()}static setModeForAll(e){a._mode=e;for(const t of a._instances)t.setMode(e)}setMode(e){if(this._cdp){this._cdp.ServiceWorker.setForceUpdateOnPageLoad({forceUpdateOnPageLoad:"force"===e});for(const t of this._targets.values())"bypass"===e?(t.Network.enable({}),t.Network.setBypassServiceWorker({bypass:!0})):t.Network.disable({})}}async stopWorker(e){if(!this._cdp)return;const t=this.version(e);t&&await this._cdp.ServiceWorker.stopWorker({versionId:t.id})}}t.ServiceWorkerModel=a,a._instances=new Set},27830: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.__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.ChildProcessBrowserProcess=t.NonTrackedBrowserProcess=void 0;const s=o(r(14521)),a=r(34517),c=r(2940),u=r(25370),l=r(5376),p=r(44936),d=r(78986),h=r(54495),f=r(39413),m=r(18966),g=async(e,t,r,n)=>{const i=0===r.connection?await function(e,t){if(!e.stderr)throw new Error("Cannot wait for a websocket for a target that lacks stderr");return new Promise(((r,n)=>{const i=s.createInterface({input:e.stderr});let o="";const a=()=>d();i.on("line",h),i.on("close",a);const c=new l.DisposableList([e.onExit((()=>d())),e.onError(d)]),p=t.onCancellationRequested((()=>{f(),n(new u.TaskCancelledError(`Timed out after ${p} ms while trying to connect to the browser!`))}));function d(e){f(),n(new Error(["Failed to launch browser!"+(e?" "+e.message:""),o,"","TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md",""].join("\n")))}function h(e){o+=e+"\n";const t=e.match(/^DevTools listening on (ws:\/\/.*)$/);t&&(f(),r(t[1]))}function f(){p.dispose(),i.removeListener("line",h),i.removeListener("close",a),c.dispose()}}))}(t,n):await(0,m.retryGetBrowserEndpoint)(`http://localhost:${r.connection}`,n,e),o=r.inspectUri?(0,f.constructInspectorWSUri)(r.inspectUri,r.url,i):i;for(;;)try{return await c.WebSocketTransport.create(o,n)}catch(e){if(n.isCancellationRequested)throw e;await(0,d.delay)(200)}};t.NonTrackedBrowserProcess=class{constructor(e){this.logger=e,this.pid=void 0,this.onExit=(new p.EventEmitter).event,this.onError=(new p.EventEmitter).event}async transport(e,t){return g(this.logger,this,e,t)}kill(){}},t.ChildProcessBrowserProcess=class{constructor(e,t){this.cp=e,this.logger=t,this.pid=void 0,this.exitEmitter=new p.EventEmitter,this.onExit=this.exitEmitter.event,this.errorEmitter=new p.EventEmitter,this.onError=this.errorEmitter.event,e.on("exit",(e=>this.exitEmitter.fire(e||0))),e.on("error",(e=>this.errorEmitter.fire(e)))}get stderr(){return this.cp.stderr}get stdio(){return this.cp.stdio}async transport(e,t){return"pipe"===e.connection?new a.RawPipeTransport(this.logger,this.cp.stdio[3],this.cp.stdio[4]):g(this.logger,this,e,t)}kill(){(0,h.killTree)(this.cp.pid,this.logger)}}},18966: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.__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.retryGetBrowserEndpoint=t.retryGetNodeEndpoint=t.getWSEndpoint=void 0;const s=r(57147),a=o(r(57310)),c=r(31868),u=r(78986);async function l(e,t,r,n){const i=new c.BasicResourceProvider(s.promises),[o,u]=await Promise.all([i.fetchJson(a.resolve(e,"/json/version"),t,{host:"localhost"}),n?i.fetchJson(a.resolve(e,"/json/list"),t,{host:"localhost"}):Promise.resolve(void 0)]);if(o.ok){if(o.body.webSocketDebuggerUrl){const e=d(o.url,o.body.webSocketDebuggerUrl);return r.verbose("runtime.launch","Discovered target URL from /json/version",{url:o.body.webSocketDebuggerUrl,fixed:e}),e}}else r.verbose("runtime.launch","Error looking up /json/version",o);if(u){if(u.ok){const e=d(u.url,u.body[0].webSocketDebuggerUrl);return r.verbose("runtime.launch","Discovered target URL from /json/list",{url:u.body[0].webSocketDebuggerUrl,fixed:e}),e}r.verbose("runtime.launch","Error looking up /json/list",u)}throw new Error("Could not find any debuggable target")}t.getWSEndpoint=l;const p=e=>async(t,r,n)=>{for(;;)try{return await l(t,r,n,e)}catch(e){if(r.isCancellationRequested)throw new Error(`Could not connect to debug target at ${t}: ${e.message}`);await(0,u.delay)(200)}};function d(e,t){const r=new a.URL(e),n=new a.URL(t);return n.host=r.host,n.toString()}t.retryGetNodeEndpoint=p(!0),t.retryGetBrowserEndpoint=p(!1)},79554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.launchUnelevatedChrome=void 0;const n=r(25370);t.launchUnelevatedChrome=async function(e,t,r,i){const o=e.launchUnelevatedRequest({process:t,args:r});await(0,n.timeoutPromise)(o,i,"Could not launch browser unelevated")}},33915:function(e,t,r){"use strict";var n,i=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},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VSCodeRendererAttacher=void 0;const a=r(55053),c=r(41808),u=s(r(63216)),l=r(34517),p=r(5376),d=r(15501),h=r(14090),f=r(73454),m=r(74966),g=r(52886),y=r(78487);let b=n=class extends g.BrowserAttacher{constructor(e,t,r){super(e,t),this.pathResolverFactory=r}async launch(e,t){if("pwa-extensionHost"!==e.type||"attach"!==e.request)return{blockSessionTermination:!1};const r=n.debugIdToRendererDebugPort.get(e.__sessionId);if(!r)return{blockSessionTermination:!1};const i=(0,f.applyDefaults)(Object.assign({name:"Webview",type:"pwa-chrome",request:"attach",port:r,__workspaceFolder:e.__workspaceFolder,urlFilter:""},e.rendererDebugOptions));return i.__sessionId=e.__sessionId,i.debugWebWorkerExtHost=e.debugWebWorkerHost,i.debugWebviews=e.debugWebviews,super.launch(i,t).catch((e=>this.logger.error("runtime.exception","Error in webview attach",{err:e}))),{blockSessionTermination:!1}}async acquireConnectionInner(e,t,r){const n=new p.DisposableList,i=await new Promise(((e,i)=>{const o=(0,c.createConnection)({port:t.port},(()=>e(o)));o.on("error",i),n.push(r.onCancellationRequested((()=>{o.destroy(),i(new Error("connection timed out"))})))})).finally((()=>n.dispose()));return new u.default(new l.RawPipeTransport(this.logger,i),this.logger,e)}async getTargetFilter(e){return e.filter}async createTargetManager(e,t,r){return new y.VSCodeRendererTargetManager(e,void 0,e.rootSession(),this.pathResolverFactory.create(t,this.logger),this.logger,r.telemetryReporter,t,r.targetOrigin)}};b.debugIdToRendererDebugPort=new Map,b=n=i([(0,a.injectable)(),o(0,(0,a.inject)(d.ILogger)),o(1,(0,a.inject)(h.ISourcePathResolver)),o(2,(0,a.inject)(m.ISourcePathResolverFactory))],b),t.VSCodeRendererAttacher=b},78487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VSCodeRendererTargetManager=void 0;const n=r(57310),i=r(97208),o=r(68798);class s extends o.BrowserTargetManager{constructor(){super(...arguments),this.baseFilter=(0,i.createTargetFilterForConfig)(this.launchParams),this.filter=e=>{const{debugWebWorkerExtHost:t,debugWebviews:r}=this.launchParams;if(t){if("worker"===e.type&&"DebugWorkerExtensionHost"===e.title)return!0;if("page"===e.type&&e.title.includes("[Extension Development Host]"))return!0}return!(!r||"iframe"!==e.type||!this.baseFilter(e))}}static async connectRenderer(e,t,r,n,i,o){const s=e.rootSession(),a=await s.Target.attachToBrowserTarget({});if(!a)return;const c=e.createSession(a.sessionId);return new this(e,void 0,c,t,n,i,r,o)}waitForMainTarget(e){const t=this.launchParams;return t.debugWebWorkerExtHost&&this._browser.Target.on("targetCreated",this.enqueueLifecycleFn((async({targetInfo:e})=>{if(!e.url.includes(t.__sessionId))return;const r=await this._browser.Target.attachToTarget({targetId:e.targetId,flatten:!0});r&&this.attachedToTarget(e,r.sessionId,!1)}))),super.waitForMainTarget(e)}attachedToTarget(e,t,r,n){const i=super.attachedToTarget(e,t,r||this.filter(e),n,!1);return"iframe"===e.type&&i.setComputeNameFn(a),i}}t.VSCodeRendererTargetManager=s;const a=e=>{let t;try{t=new n.URL(e.targetInfo.url)}catch(e){return}switch(t.searchParams.get("purpose")){case"customEditor":return`${t.searchParams.get("extensionId")} editor: ${t.host}`;case"notebookRenderer":return`Notebook Renderer: ${t.host}`;default:const e=t.searchParams.get("extensionId");return`Webview: ${e?e+" ":""} ${t.host}`}}},70782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DelegateLauncher=void 0;const n=r(78472),i=r(44936),o=r(59657),s=r(16362);t.DelegateLauncher=class{constructor(e,t){this.parentList=e,this.logger=t,this.targets=new n.ObservableMap,this.onTerminatedEmitter=new i.EventEmitter,this.onTerminated=this.onTerminatedEmitter.event,this.onTargetListChanged=this.targets.onChanged,e.onAdd((([,e])=>{e.parent&&this.targets.get(e.parent.id)&&this.targets.add(e.id,e.target)})),e.onRemove((([e])=>{this.targets.remove(e)&&!this.targets.size&&this.onTerminatedEmitter.fire({killed:!0,code:0})}))}async launch(e,t){if("node-terminal"!==e.type||"attach"!==e.request)return{blockSessionTermination:!1};const r=this.parentList.get(e.delegateId);if(void 0===r)return setTimeout((()=>this.onTerminatedEmitter.fire({killed:!0,code:0})),1),{blockSessionTermination:!0};const n=r.target.targetOrigin();if(!(n instanceof s.MutableTargetOrigin))throw new Error("Expected delegate session to have a mutable target origin");const i=r.target.logger;if(!(i instanceof o.ProxyLogger))throw new Error("Expected delegate session to have a proxy logger");return n.id=t.targetOrigin.id,i.connectTo(this.logger),setTimeout((()=>{this.targets.add(e.delegateId,r.target),r.dap.connect(t.dap)}),0),{blockSessionTermination:!0}}terminate(){for(const e of this.targets.value())e.stop();return Promise.resolve()}disconnect(){return this.terminate()}restart(){for(const e of this.targets.value())e.restart();return Promise.resolve()}targetList(){return[...this.targets.value()]}dispose(){this.terminate()}}},28247: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};Object.defineProperty(t,"__esModule",{value:!0}),t.DelegateLauncherFactory=void 0;const i=r(78472),o=r(70782),s=r(55053);let a=0,c=class{constructor(){this.delegateSessions=new i.ObservableMap,this.refsByTarget=new WeakMap}createLauncher(e){return new o.DelegateLauncher(this.delegateSessions,e)}addDelegate(e,t,r){const n={id:a++,target:e,dap:t,parent:r&&this.refsByTarget.get(r)};return this.refsByTarget.set(e,n),this.delegateSessions.add(n.id,n),n.id}removeDelegate(e){const t=this.refsByTarget.get(e);t&&this.delegateSessions.remove(t.id)}};c=n([(0,s.injectable)()],c),t.DelegateLauncherFactory=c},73062: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.__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.AutoAttachPreconditionFailed=t.AutoAttachLauncher=void 0;const c=r(55053),u=s(r(71017)),l=s(r(89496)),p=r(91183),d=r(8216),h=r(26379),f=r(15501),m=r(79783),g=r(1032),y=r(99010),b=r(74966),v=r(53915),w=r(33783),_=r(82252),S=r(33811),k=r(41978),P=r(40210),x=r(29801);let C=class extends S.NodeLauncherBase{constructor(e,t,r,n,i,o){super(e,t,o,i),this.extensionContext=r,this.fs=n,this.telemetryItems=new Map}get deferredSocketName(){var e;const t=this.extensionContext.environmentVariableCollection.get("VSCODE_INSPECTOR_OPTIONS");if(t)return null===(e=new v.BootloaderEnvironment({VSCODE_INSPECTOR_OPTIONS:t.value}).inspectorOptions)||void 0===e?void 0:e.inspectorIpc}getProcessTelemetry(e){return Promise.resolve(e instanceof k.NodeTarget?this.telemetryItems.get(e.processId()):void 0)}resolveParams(e){if("node-terminal"===e.type&&"launch"===e.request)return e}async launchProgram(e){await this.applyInspectorOptions(this.extensionContext.environmentVariableCollection,e),this.program=new P.StubProgram,this.program.stopped.then((e=>this.onProgramTerminated(e)))}async refreshVariables(){this.run&&await this.applyInspectorOptions(this.extensionContext.environmentVariableCollection,this.run)}async applyInspectorOptions(e,t){var r;let n;try{n=await this.resolveNodePath(t.params)}catch(e){if(!(e instanceof g.ProtocolError&&9229===e.cause.id))throw e;n=new _.NodeBinary("node",void 0)}const i=(0,d.readConfig)(l.workspace,"debug.javascript.autoAttachFilter"),o=(await this.resolveEnvironment(t,n,{deferredMode:!0,inspectorIpc:null!==(r=this.deferredSocketName)&&void 0!==r?r:t.serverAddress+".deferred",autoAttachMode:i,aaPatterns:"smart"===i?this.readSmartPatterns():void 0})).defined();e.persistent=!0,e.prepend("NODE_OPTIONS",o.NODE_OPTIONS+" "),e.append("VSCODE_INSPECTOR_OPTIONS",v.variableDelimiter+o.VSCODE_INSPECTOR_OPTIONS)}readSmartPatterns(){var e,t;const r=(0,d.readConfig)(l.workspace,"debug.javascript.autoAttachSmartPattern"),n=1===(null===(e=l.workspace.workspaceFolders)||void 0===e?void 0:e.length)?l.workspace.workspaceFolders[0].uri.fsPath:`{${null===(t=l.workspace.workspaceFolders)||void 0===t?void 0:t.map((e=>e.uri.fsPath)).join(",")}}`;return null==r?void 0:r.map((e=>e.replace("${workspaceFolder}",n))).map(m.forceForwardSlashes)}async getBootloaderFile(e,t){var r;const n=this.extensionContext.storagePath||this.extensionContext.globalStoragePath;if(n.includes(" ")){if(!t.isPreciselyKnown)throw new E("We did not find `node` on your PATH, so we cannot enable auto-attach in your environment","https://github.com/microsoft/vscode-js-debug/issues/708");if(!t.has(0))throw new E(`The \`node\` version on your PATH is too old (${null===(r=t.version)||void 0===r?void 0:r.major}), so we cannot enable auto-attach in your environment`,"https://github.com/microsoft/vscode-js-debug/issues/708")}const i=u.join(n,"bootloader.js");try{await this.fs.mkdir(n)}catch(e){}await Promise.all([(0,h.copyFile)(this.fs,w.bootloaderDefaultPath,i),(0,h.copyFile)(this.fs,w.watchdogPath,u.join(n,"watchdog.bundle.js"))]);const o=(0,m.forceForwardSlashes)(i);return{interpolatedPath:o.includes(" ")?`"${o}"`:o,dispose:()=>{}}}async spawnForChild(e){var t;if(!this.run)return;const r=Number(null!==(t=e.pid)&&void 0!==t?t:"0");this.telemetryItems.set(r,e.telemetry),(await x.WatchDog.attach(Object.assign(Object.assign({},e),{ipcAddress:this.run.serverAddress}))).onEnd((()=>this.telemetryItems.delete(r)))}static clearVariables(e){e.environmentVariableCollection.clear()}};C=o([(0,c.injectable)(),a(0,(0,c.inject)(_.INodeBinaryProvider)),a(1,(0,c.inject)(f.ILogger)),a(2,(0,c.inject)(y.ExtensionContext)),a(3,(0,c.inject)(y.FS)),a(4,(0,c.inject)(b.ISourcePathResolverFactory)),a(5,(0,c.inject)(p.IPortLeaseTracker))],C),t.AutoAttachLauncher=C;class E extends Error{constructor(e,t){super(e),this.helpLink=t}}t.AutoAttachPreconditionFailed=E},53915:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BootloaderEnvironment=t.variableDelimiter=void 0,t.variableDelimiter=":::",t.BootloaderEnvironment=class{constructor(e){this.processEnv=e}get nodeOptions(){return this.processEnv.NODE_OPTIONS}set nodeOptions(e){void 0===e?delete this.processEnv.NODE_OPTIONS:this.processEnv.NODE_OPTIONS=e}get inspectorOptions(){const e=this.processEnv.VSCODE_INSPECTOR_OPTIONS;if(!e)return;const r=e.split(t.variableDelimiter).find((e=>!!e));if(r)try{return JSON.parse(r)}catch(e){return}}set inspectorOptions(e){void 0===e?delete this.processEnv.VSCODE_INSPECTOR_OPTIONS:this.processEnv.VSCODE_INSPECTOR_OPTIONS=JSON.stringify(e)}unsetForTree(){delete this.processEnv.VSCODE_INSPECTOR_OPTIONS}updateInspectorOption(e,t){const r=this.inspectorOptions;r&&(this.inspectorOptions=Object.assign(Object.assign({},r),{[e]:t}))}}},33783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bootloaderDefaultPath=t.watchdogPath=void 0;const n=r(71017);t.watchdogPath=(0,n.join)(__dirname,"watchdog.bundle.js"),t.bootloaderDefaultPath=(0,n.join)(__dirname,"bootloader.bundle.js")},37518: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.__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.CallbackFile=void 0;const s=r(22037),a=o(r(71017)),c=r(6113),u=r(57147);class l{constructor(){this.path=a.join((0,s.tmpdir)(),`node-debug-callback-${(0,c.randomBytes)(8).toString("hex")}`),this.disposed=!1}read(e=l.pollInterval){return this.readPromise||(this.readPromise=new Promise(((t,r)=>{const n=setInterval((()=>{if(this.disposed)return clearInterval(n),void t(void 0);if((0,u.existsSync)(this.path)){try{t(JSON.parse((0,u.readFileSync)(this.path,"utf-8")))}catch(e){r(e)}finally{this.dispose()}clearInterval(n)}}),e)}))),this.readPromise}dispose(){if(!this.disposed){this.disposed=!0;try{(0,u.unlinkSync)(this.path)}catch(e){}}}}t.CallbackFile=l,l.pollInterval=200},81446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTargetId=void 0;const n=r(6113);t.createTargetId=()=>(0,n.randomBytes)(12).toString("hex")},10735: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionHostAttacher=void 0;const i=r(55053),o=r(56102),s=r(78986),a=r(87768),c=r(18966),u=r(54495),l=r(97019),p=r(82252),d=r(40210),h=r(29801);class f extends d.WatchDogProgram{constructor(e,t){super(e),this.logger=t,this.stopped.then((()=>{this.telemetry&&(0,u.killTree)(this.telemetry.processId,this.logger,"polite")}))}}let m=class extends l.NodeAttacherBase{constructor(){super(...arguments),this.restarting=!1}async restart(){var e;this.restarting=!0,this.onProgramTerminated({code:0,killed:!0,restart:!0}),null===(e=this.program)||void 0===e||e.stop()}resolveParams(e){return"pwa-extensionHost"===e.type&&"attach"===e.request?e:void 0}async launchProgram(e){const t=await(0,c.retryGetNodeEndpoint)(`http://localhost:${e.params.port}`,e.context.cancellationToken,this.logger),r=await h.WatchDog.attach({ipcAddress:e.serverAddress,scriptName:"Extension Host",inspectorURL:t,waitForDebugger:!0,dynamicAttach:!0}),n=this.program=new f(r,this.logger);this.program.stopped.then((e=>{n===this.program&&this.onProgramTerminated(e)}))}createLifecycle(e,t,r){return r.openerId?{}:{initialized:()=>this.onFirstInitialize(e,t)}}async onFirstInitialize(e,t){this.setEnvironmentVariables(e,t);const r=await this.gatherTelemetryFromCdp(e,t),n=this.program;if(r&&n){const e=new d.TerminalProcess({processId:r.processId},this.logger,"forceful");e.stopped.then((()=>n.stop())),n.stopped.then((()=>{this.restarting||e.stop()}))}}async setEnvironmentVariables(e,t){if(!t.params.autoAttachChildProcesses)return;const r=await this.resolveEnvironment(t,new p.NodeBinary("node",a.Semver.parse(process.versions.node)));for(let t=0;t<5;t++){const t=await e.Runtime.evaluate({contextId:1,returnByValue:!0,expression:`Object.assign(process.env, ${JSON.stringify(r.defined())})`+(0,o.getSourceSuffix)()});if(t){if(!t.exceptionDetails)return;this.logger.error("runtime.target","Error setting child environment vars",t.exceptionDetails)}else this.logger.error("runtime.target","Undefined result setting child environment vars");await(0,s.delay)(50)}}};m=n([(0,i.injectable)()],m),t.ExtensionHostAttacher=m},65581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signalReadyExpr=void 0;const n=r(56102);t.signalReadyExpr=()=>"globalThis.__jsDebugIsReady = true; "+(0,n.getSourceSuffix)()},19282: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionHostLauncher=void 0;const i=r(57147),o=r(55053),s=r(77551),a=r(33915),c=r(33811),u=r(40210);let l=class extends c.NodeLauncherBase{resolveParams(e){return"pwa-extensionHost"===e.type&&"launch"===e.request?e:void 0}async launchProgram(e){const t=e.params.port||await(0,s.findOpenPort)(),r=await e.context.dap.launchVSCodeRequest({args:p(e.params,t),env:this.getConfiguredEnvironment(e.params).defined(),debugRenderer:e.params.debugWebviews||e.params.debugWebWorkerHost});r.rendererDebugPort&&a.VSCodeRendererAttacher.debugIdToRendererDebugPort.set(e.params.__sessionId,r.rendererDebugPort),this.program=new u.StubProgram,this.program.stop()}};l=n([(0,o.injectable)()],l),t.ExtensionHostLauncher=l;const p=(e,t)=>{const r=e.args.map((e=>{if(e.startsWith("-")){const t=e.split("=",2);return 2===t.length&&((0,i.existsSync)(t[1])||(0,i.existsSync)(t[1]+".js"))?{prefix:t[0]+"=",path:t[1]}:{prefix:e}}try{const t=(0,i.lstatSync)(e);if(t.isDirectory())return{prefix:"--folder-uri=",path:e};if(t.isFile())return{prefix:"--file-uri=",path:e}}catch(e){}return{path:e}}));return e.noDebug||r.unshift({prefix:`--inspect-brk-extensions=${t}`}),r.unshift({prefix:`--debugId=${e.__sessionId}`}),r}},54495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.killTree=void 0;const n=r(32081),i=r(71017);t.killTree=function(e,t,r="forceful"){if("none"===r)return!0;if("win32"===process.platform){const o=process.env.WINDIR||"C:\\Windows",s=(0,i.join)(o,"System32","taskkill.exe");try{return(0,n.execSync)(`${s} ${"forceful"===r?"/F":""} /T /PID ${e}`),!0}catch(e){return t.error("runtime.exception","Error running taskkill.exe",e),!1}}else try{const o=(0,i.join)(__dirname,"./terminateProcess.sh"),s=(0,n.spawnSync)("sh",[o,e.toString(),"forceful"===r?"9":"15"]);return!s.stderr||!s.status||(t.error("runtime.exception","Error running terminateProcess",s),!1)}catch(e){return t.error("runtime.exception","Error running terminateProcess",e),!1}}},19597: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.__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.LeaseFile=void 0;const s=r(6113),a=r(57147),c=r(22037),u=o(r(71017));class l{constructor(){this.disposed=!1,this.path=u.join((0,c.tmpdir)(),`node-debug-callback-${(0,s.randomBytes)(8).toString("hex")}`),this.file=a.promises.open(this.path,"w")}static isValid(e){try{const t=(0,a.readFileSync)(e);return!!t.length&&t.readDoubleBE()>Date.now()-l.recencyDeadline}catch(e){return!1}}async startTouchLoop(){await this.touch(),this.disposed||(this.updateInterval=setInterval((()=>this.touch()),l.updateInterval))}async touch(e=(()=>Date.now())){const t=await this.file,r=Buffer.alloc(8);r.writeDoubleBE(e()),await t.write(r,0,r.length,0)}async dispose(){if(!this.disposed){this.disposed=!0,this.updateInterval&&clearInterval(this.updateInterval);try{const e=await this.file;await e.close(),await a.promises.unlink(this.path)}catch(e){}}}}t.LeaseFile=l,l.updateInterval=1e3,l.recencyDeadline=2e3},31819: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.__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.NodeAttacher=void 0;const c=r(55053),u=s(r(33463)),l=r(91183),p=r(56102),d=r(25370),h=r(15501),f=r(78986),m=r(97208),g=r(18966),y=r(74966),b=r(19597),v=r(97019),w=r(3974),_=r(82252),S=r(40210),k=r(95077),P=r(29801),x=u.loadMessageBundle(r(71017).join(__dirname,"targets/node/nodeAttacher.js"));let C=class extends v.NodeAttacherBase{constructor(e,t,r,n,i=new k.RestartPolicyFactory){super(e,t,n,r),this.restarters=i}resolveParams(e){return"pwa-node"===e.type&&"attach"===e.request?e:void 0}async launchProgram(e){const t=async(t,n)=>{const i=this.program;let o;try{o=e.params.websocketAddress?e.params.websocketAddress:await(0,g.retryGetNodeEndpoint)(`http://${e.params.address}:${e.params.port}`,n&&e.params.timeout>0?d.CancellationTokenSource.withTimeout(e.params.timeout).token:e.context.cancellationToken,this.logger)}catch(e){if(i&&i===n)return r(t,i,{killed:!1,code:1});throw e}const s=await P.WatchDog.attach({ipcAddress:e.serverAddress,scriptName:"Remote Process",inspectorURL:o,waitForDebugger:!0,dynamicAttach:!0}),a=this.program=new S.WatchDogProgram(s);a.stopped.then((e=>r(t.reset(),a,e)))},r=async(r,n,i)=>{if(this.program!==n)return;if(i.killed)return void this.onProgramTerminated(i);const o=r.next();if(!o)return void this.onProgramTerminated(i);e.context.dap.output({output:x(0,null,o.delay)});const s=new S.StubProgram;this.program=s;const a=await Promise.race([(0,f.delay)(o.delay),s.stopped]);this.program===s&&(a?this.onProgramTerminated(i):t(o,s))};return t(this.restarters.create(e.params.restart))}createLifecycle(e,t,r){if(r.openerId)return{};let n;return{initialized:async()=>{n=this.onFirstInitialize(e,t,r),await n},close:()=>{var e;this.targetList().length&&(null===(e=this.program)||void 0===e||e.stop()),null==n||n.then((e=>e.dispose()))}}}async onFirstInitialize(e,t,r){const n=new b.LeaseFile;await n.startTouchLoop();const i=await this.resolveNodePath(t.params),[o]=await Promise.all([this.gatherTelemetryFromCdp(e,t),this.setEnvironmentVariables(e,t,n.path,r.targetId,i)]);return o&&t.params.attachExistingChildren&&(0,w.watchAllChildren)({pid:o.processId,nodePath:i.path,hostname:t.params.address,ipcAddress:t.serverAddress},r.targetId,this.logger).catch((e=>this.logger.warn("internal","Error watching child processes",{err:e}))),n}async setEnvironmentVariables(e,t,r,n,i){if(!t.params.autoAttachChildProcesses)return;if(!await(0,m.isLoopback)(t.params.address))return void this.logger.warn("runtime.target","Cannot attach to children of remote process");const o=await this.resolveEnvironment(t,i,{requireLease:r,openerId:n});for(let t=0;t<5;t++){const t=await e.Runtime.evaluate({contextId:1,returnByValue:!0,expression:`typeof process === 'undefined' || process.pid === undefined ? 'process not defined' : Object.assign(process.env, ${JSON.stringify(o.defined())})`+(0,p.getSourceSuffix)()});if(!t)return void this.logger.error("runtime.target","Undefined result setting child environment vars");if(!t.exceptionDetails&&"process not defined"!==t.result.value)return;this.logger.error("runtime.target","Error setting child environment vars",t),await(0,f.delay)(50)}}};C=o([(0,c.injectable)(),a(0,(0,c.inject)(_.INodeBinaryProvider)),a(1,(0,c.inject)(h.ILogger)),a(2,(0,c.inject)(y.ISourcePathResolverFactory)),a(3,(0,c.inject)(l.IPortLeaseTracker))],C),t.NodeAttacher=C},97019: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};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeAttacherBase=void 0;const i=r(55053),o=r(33811);let s=class extends o.NodeLauncherBase{};s=n([(0,i.injectable)()],s),t.NodeAttacherBase=s},3974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchAllChildren=void 0;const n=r(29801),i=r(25370),o=r(92800),s=r(18966);t.watchAllChildren=async function(e,t,r,a=i.NeverCancelled){const c=await async function(e,t){const r=new Map;r.set(0,{children:[],pid:0,ppid:0,command:"",args:""});try{await o.processTree.lookup((({pid:e,ppid:t,command:n,args:i})=>(e!==t&&r.set(e,{pid:e,ppid:t,command:n,args:i,children:[]}),r)),null)}catch(e){return void t.warn("internal","Error getting child process tree",e)}const n=r.values();for(const e of n){const t=r.get(e.ppid);t&&t!==e&&t.children.push(e)}return!isNaN(e)&&e>0?r.get(e):r.get(0)}(e.pid,r);if(!c)return[];const u=[];let l=c.children.slice();for(;l.length;){const i=l.pop();l=l.concat(i.children);const{port:c}=(0,o.analyseArguments)(i.args);c&&u.push((0,s.getWSEndpoint)(`http://${e.hostname}:${c}`,a,r,!0).then((r=>n.WatchDog.attach({ipcAddress:e.ipcAddress,scriptName:"Child Process",inspectorURL:r,waitForDebugger:!0,dynamicAttach:!0,pid:String(i.pid),openerId:t}))).catch((e=>r.info("internal","Could not spawn WD for child process",{err:e,port:c,child:i}))))}return(await Promise.all(u)).filter((e=>!!e))}},82252: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.__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.InteractiveNodeBinaryProvider=t.NodeBinaryProvider=t.NodeBinaryOutOfDateError=t.NodeBinary=t.getRunScript=t.isPackageManager=t.hideDebugInfoFromConsole=t.INodeBinaryProvider=void 0;const c=r(55053),u=r(71017),l=s(r(33463)),p=r(94570),d=r(15501),h=r(79783),f=r(63945),m=r(87768),g=r(44413),y=r(1032),b=r(99010),v=r(13213),w=l.loadMessageBundle(r(71017).join(__dirname,"targets/node/nodeBinaryProvider.js"));t.INodeBinaryProvider=Symbol("INodeBinaryProvider"),t.hideDebugInfoFromConsole=function(e,t){return e.has(1)?t.addNodeOption("--inspect-publish-uid=http"):t};const _=new Set(["npm","yarn","pnpm","tnpm","cnpm"]);t.isPackageManager=e=>_.has((0,u.basename)(e,(0,u.extname)(e))),t.getRunScript=(e,r)=>{if(e&&(0,t.isPackageManager)(e))return r.find((e=>!e.startsWith("-")&&"run"!==e&&"run-script"!==e))};const S=new m.Semver(12,0,0),k=new m.Semver(8,0,0),P=[{inclusiveMin:new m.Semver(16,0,0),inclusiveMax:new m.Semver(16,3,99),message:w(0,null)},{inclusiveMin:new m.Semver(7,0,0),inclusiveMax:new m.Semver(8,99,99),message:w(1,null)}];class x{constructor(e,t){this.path=e,this.version=t,this.capabilities=new Set,void 0===t&&(t=S),t.gte(new m.Semver(12,0,0))&&this.capabilities.add(0),t.gte(new m.Semver(12,6,0))&&this.capabilities.add(1)}get isPreciselyKnown(){return void 0!==this.version}get warning(){if(this.version)for(const e of P)if(e.inclusiveMax.gte(this.version)&&e.inclusiveMin.lte(this.version))return e}has(e,t){return this.isPreciselyKnown||void 0===t?this.capabilities.has(e):t}}t.NodeBinary=x;class C extends y.ProtocolError{constructor(e,t){super((0,g.nodeBinaryOutOfDate)(e.toString(),t)),this.version=e,this.location=t}}t.NodeBinaryOutOfDateError=C;const E=/^(node|electron)(64)?(\.exe|\.cmd)?$/i,O=new Map([[11,new m.Semver(12,0,0)],[10,new m.Semver(12,0,0)],[9,new m.Semver(12,0,0)],[8,new m.Semver(12,0,0)],[7,new m.Semver(12,0,0)],[6,new m.Semver(12,0,0)],[5,new m.Semver(10,0,0)],[4,new m.Semver(10,0,0)],[3,new m.Semver(10,0,0)],[2,new m.Semver(8,0,0)],[1,new m.Semver(8,0,0)]]);let D=class{constructor(e,t,r){this.logger=e,this.fs=t,this.packageJson=r,this.knownGoodMappings=new Map}async resolveAndValidate(e,t="node",r){try{return await this.resolveAndValidateInner(e,t,r)}catch(e){if(!(e instanceof C))throw e;if(await this.shouldTryDebuggingAnyway(e))return new x(e.location,e.version instanceof m.Semver?e.version:void 0);throw e}}shouldTryDebuggingAnyway(e){return Promise.resolve(!1)}async resolveAndValidateInner(e,r,n){var i,o;const s=await this.resolveBinaryLocation(r,e);if(this.logger.info("runtime.launch","Using binary at",{location:s,executable:r}),!s)throw new y.ProtocolError((0,g.cannotFindNodeBinary)(r,w(2,null)));if(n)return new x(s,new m.Semver(n,0,0));const a=E.exec((0,u.basename)(s).toLowerCase());if(!a){if((0,t.isPackageManager)(s)){const t=await this.packageJson.getPath();t&&(e=e.addToPath((0,u.resolve)((0,u.dirname)(t),"node_modules/.bin"),"prepend"))}try{const t=await this.resolveAndValidateInner(e,"node",void 0);return new x(s,t.version)}catch(e){if((0,g.isErrorOfType)(e,9230))throw e;return new x(s,void 0)}}if(s.startsWith("/snap/"))return new x(s,void 0);const c=this.knownGoodMappings.get(s);if(c)return c;const l=await this.getVersionText(s);this.logger.info("runtime.launch","Discovered version",{version:l.trim()});const p=/v([0-9]+)\.([0-9]+)\.([0-9]+)/.exec(l);if(!p)throw new C(l.trim(),s);const[,d,h,f]=p.map(Number);let b=new m.Semver(d,h,f);if("electron"===a[1]){const t=await this.resolveAndValidate(e);b=m.Semver.min(null!==(i=O.get(b.major))&&void 0!==i?i:S,null!==(o=t.version)&&void 0!==o?o:S)}if(b.lt(k))throw new C(b,s);const v=new x(s,b);return this.knownGoodMappings.set(s,v),v}async resolveBinaryLocation(e,t){return e&&(0,u.isAbsolute)(e)?await(0,h.findExecutable)(this.fs,e,t):await(0,h.findInPath)(this.fs,e,t.value)}async getVersionText(e){try{const{stdout:t}=await(0,f.spawnAsync)(e,["--version"],{env:p.EnvironmentVars.processEnv().defined()});return t}catch(t){throw new y.ProtocolError((0,g.cannotFindNodeBinary)(e,w(3,null,t.message)))}}};D=o([(0,c.injectable)(),a(0,(0,c.inject)(d.ILogger)),a(1,(0,c.inject)(b.FS)),a(2,(0,c.inject)(v.IPackageJsonProvider))],D),t.NodeBinaryProvider=D;let T=class extends D{constructor(e,t,r,n){super(e,t,r),this.vscode=n}async shouldTryDebuggingAnyway({message:e}){if(!this.vscode)return!1;const t=w(4,null);return await this.vscode.window.showErrorMessage(w(5,null,e),t)===t}};T=o([a(0,(0,c.inject)(d.ILogger)),a(1,(0,c.inject)(b.FS)),a(2,(0,c.inject)(v.IPackageJsonProvider)),a(3,(0,c.optional)()),a(3,(0,c.inject)(b.VSCodeApi))],T),t.InteractiveNodeBinaryProvider=T},34370: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.NodeLauncher=void 0;const o=r(55053),s=r(71017),a=r(52287),c=r(91183),u=r(26379),l=r(15501),p=r(79783),d=r(78986),h=r(97208),f=r(52517),m=r(18966),g=r(74966),y=r(37518),b=r(82252),v=r(33811),w=r(13213),_=r(88031),S=r(40210),k=r(95077),P=r(29801);let x=class extends v.NodeLauncherBase{constructor(e,t,r,n,i,o,s,a,c){super(e,t,c,a),this.bpPredictor=r,this.launchers=n,this.restarters=i,this.fsUtils=o,this.packageJson=s}resolveParams(e){let t;if("pwa-node"===e.type&&"launch"===e.request?t=Object.assign({},e):"server"in e&&e.server&&"program"in e.server&&(t=Object.assign({},e.server)),t)return(0,f.fixInspectFlags)(t),t}async launchProgram(e){e.params.program&&(e.params.program=await this.tryGetCompiledFile(e.params.program)),this.attachSimplePort=await this.getSimpleAttachPortIfAny(e.params);const t=async r=>{this.program&&this.program.stop();const n=await this.resolveNodePath(e.params,e.params.runtimeExecutable||void 0),i=n.warning;i&&e.context.dap.output({category:"stderr",output:i.message});const o=new y.CallbackFile;let s=await this.resolveEnvironment(e,n,{fileCallback:o.path});this.attachSimplePort?(e.params.attachSimplePort||e.context.dap.output({category:"stderr",output:"Using legacy attach mode for --inspect-brk in npm scripts. We recommend removing --inspect-brk, and using `stopOnEntry` in your launch.json if you need it."}),s=s.merge({NODE_OPTIONS:null})):s=(0,b.hideDebugInfoFromConsole)(n,s);const a=Object.assign(Object.assign({},e.params),{env:s.value}),c=this.launchers.find((e=>e.canLaunch(a)));if(!c)throw new Error("Cannot find an appropriate launcher for the given set of options");let u=await c.launchProgram(n.path,a,e.context);if(this.attachSimplePort){const t=await P.WatchDog.attach({ipcAddress:e.serverAddress,scriptName:"Remote Process",inspectorURL:await(0,m.retryGetNodeEndpoint)(`http://127.0.0.1:${this.attachSimplePort}`,e.context.cancellationToken,this.logger),waitForDebugger:!0,dynamicAttach:!0});u=new S.CombinedProgram(u,new S.WatchDogProgram(t))}else o.read().then((e=>{e&&u.gotTelemetery(e)}));this.program=u,u.stopped.then((async e=>{if(o.dispose(),this.program!==u)return;if(e.killed||0===e.code)return void this.onProgramTerminated(e);const n=r.next();n?(await(0,d.delay)(n.delay),this.program===u&&t(n)):this.onProgramTerminated(e)}))};return t(this.restarters.create(e.params.restart))}async getSimpleAttachPortIfAny(e){var t,r,n;if(e.attachSimplePort)return e.attachSimplePort;const i=(0,b.getRunScript)(e.runtimeExecutable,e.runtimeArgs);if(!i)return;const o=await this.packageJson.getContents();return(null===(r=null===(t=null==o?void 0:o.scripts)||void 0===t?void 0:t[i])||void 0===r?void 0:r.includes("--inspect-brk"))?null!==(n=e.port)&&void 0!==n?n:9229:void 0}createLifecycle(e,t,{targetId:r}){return{initialized:async()=>{if(this.attachSimplePort&&await this.gatherTelemetryFromCdp(e,t),!t.params.stopOnEntry)return;const r=await(async(e,t)=>{if("string"==typeof t.stopOnEntry)return(0,s.resolve)(t.cwd,t.stopOnEntry);if(t.program)return(0,s.resolve)(t.cwd,t.program);for(const r of t.args){if(r.startsWith("-"))continue;const n=(0,s.resolve)(t.cwd,r);if(await e.exists(n))return n}})(this.fsUtils,t.params);if(!r)return void this.logger.warn("runtime","Could not resolve program entrypointfrom args");const n=(0,h.absolutePathToFileUrl)(r),i=(0,h.urlToRegex)(n)+"(?:entryBreakpoint){0}",o=await e.Debugger.setBreakpointByUrl({urlRegex:i,lineNumber:0,columnNumber:0});return(null==o?void 0:o.breakpointId)?{cdpId:null==o?void 0:o.breakpointId,path:n}:void 0},close:()=>{const e=Number(r);if(e>0)try{process.kill(e)}catch(e){}}}}async tryGetCompiledFile(e){e=(0,p.fixDriveLetterAndSlashes)(e);const t=(0,s.extname)(e);if(!t||".js"===t)return e;const r=await this.bpPredictor.getPredictionForSource(e);if(!r||0===r.size)return e;const n=r.values().next().value;return n?(this.logger.info("runtime.launch","Updating entrypoint to compiled file",{from:e,to:n.compiledPath,candidates:r.size}),n.compiledPath):e}};x=n([(0,o.injectable)(),i(0,(0,o.inject)(b.INodeBinaryProvider)),i(1,(0,o.inject)(l.ILogger)),i(2,(0,o.inject)(a.IBreakpointsPredictor)),i(3,(0,o.multiInject)(_.IProgramLauncher)),i(4,(0,o.inject)(k.RestartPolicyFactory)),i(5,(0,o.inject)(u.IFsUtils)),i(6,(0,o.inject)(w.IPackageJsonProvider)),i(7,(0,o.inject)(g.ISourcePathResolverFactory)),i(8,(0,o.inject)(c.IPortLeaseTracker))],x),t.NodeLauncher=x},33811: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.__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)}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLauncherBase=void 0;const u=s(r(57147)),l=r(55053),p=s(r(41808)),d=s(r(22037)),h=s(r(71017)),f=s(r(90993)),m=r(91183),g=r(56102),y=c(r(63216)),b=r(34517),v=r(55012),w=r(25370),_=r(78472),S=r(5376),k=r(94570),P=r(44936),x=r(15501),C=r(7678),E=r(79783),O=r(78986),D=r(44413),T=r(1032),j=r(74966),A=r(33783),M=r(82252),R=r(41978),F=r(98995);let I=0,L=class{constructor(e,t,r,n){this.pathProvider=e,this.logger=t,this.portLeaseTracker=r,this.pathResolverFactory=n,this.serverConnections=new Set,this.targets=new _.ObservableMap,this.onTerminatedEmitter=new P.EventEmitter,this.onTerminated=this.onTerminatedEmitter.event,this.onTargetListChanged=this.targets.onChanged,this.bootloaderFile=(0,C.once)(this.getBootloaderFile.bind(this))}async launch(e,t){const r=this.resolveParams(e);if(!r)return{blockSessionTermination:!1};this._stopServer();const{server:n,pipe:i}=await this._startServer(t.telemetryReporter),o=this.logger.forTarget(),s=this.run={server:n,serverAddress:i,params:r,context:t,logger:o,pathResolver:this.pathResolverFactory.create(r,this.logger)};return await this.launchProgram(s),{blockSessionTermination:!0}}async terminate(){this.program?await this.program.stop():this.onProgramTerminated({code:0,killed:!0})}async disconnect(){await this.terminate()}async restart(e){var t;if(!this.run)return;const r=this.program;r&&(this.program=void 0,await r.stop(),await Promise.race([(0,O.delay)(2e3).then((()=>!1)),Promise.all([...this.serverConnections].map((e=>new Promise((t=>e.onDisconnected(t))))))])||(this.logger.warn("runtime.launch","Timeout waiting for server connections to close"),this.closeAllConnections())),await this.launchProgram(Object.assign(Object.assign({},this.run),{params:e&&null!==(t=this.resolveParams(e))&&void 0!==t?t:this.run.params,context:Object.assign(Object.assign({},this.run.context),{cancellationToken:this.run.params.timeout>0?w.CancellationTokenSource.withTimeout(this.run.params.timeout).token:w.NeverCancelled})}))}targetList(){return[...this.targets.value()]}dispose(){this._stopServer()}onProgramTerminated(e){this.onTerminatedEmitter.fire(e),this._stopServer(),this.program=void 0}resolveNodePath(e,t="node"){return this.pathProvider.resolveAndValidate(k.EnvironmentVars.merge(k.EnvironmentVars.processEnv(),this.getConfiguredEnvironment(e)),t,e.nodeVersionHint)}getConfiguredEnvironment(e){let t=k.EnvironmentVars.empty;if(e.envFile)try{t=t.merge(function(e){if(!u.existsSync(e))return{};const t=((r=u.readFileSync(e,"utf8"))&&"\ufeff"===r[0]&&(r=r.substr(1)),r);var r;return f.parse(Buffer.from(t))}(e.envFile))}catch(e){throw new T.ProtocolError((0,D.cannotLoadEnvironmentVars)(e.message))}return t.merge(e.env)}async resolveEnvironment({params:e,serverAddress:t},r,n){const i=this.getConfiguredEnvironment(e),o=await this.bootloaderFile(e.cwd,r),s=Object.assign({inspectorIpc:t,deferredMode:!1,waitForDebugger:"",execPath:await(0,E.findInPath)(u.promises,"node",process.env),onlyEntrypoint:!e.autoAttachChildProcesses,verbose:!!(!0===e.trace||"object"==typeof e.trace&&e.trace.stdio)||void 0,autoAttachMode:"always",mandatePortTracking:!!this.portLeaseTracker.isMandated||void 0},n),a={NODE_OPTIONS:`--require ${o.interpolatedPath}`,VSCODE_INSPECTOR_OPTIONS:JSON.stringify(s),ELECTRON_RUN_AS_NODE:null},c=i.lookup("NODE_OPTIONS");c&&(a.NODE_OPTIONS+=` ${c}`);const l=k.EnvironmentVars.processEnv().lookup("NODE_OPTIONS");return l&&(a.NODE_OPTIONS+=` ${l}`),i.merge(Object.assign({},a))}createLifecycle(e,t,r){return{}}async _startServer(e){const t="win32"===process.platform?"\\\\.\\pipe\\":d.tmpdir(),r=h.join(t,`node-cdp.${process.pid}-${++I}.sock`),n=await new Promise(((t,n)=>{const i=p.createServer((t=>this._startSession(t,e))).on("error",n).listen(r,(()=>t(i)))}));return{pipe:r,server:n}}_stopServer(){var e,t;null===(e=this.run)||void 0===e||e.server.close(),this.run=void 0,null===(t=this.bootloaderFile.value)||void 0===t||t.then((e=>e.dispose())),this.bootloaderFile.forget(),this.closeAllConnections()}closeAllConnections(){this.serverConnections.forEach((e=>e.close())),this.serverConnections.clear()}async _startSession(e,t){if(!this.run)return;const{connection:r,cdp:n,targetInfo:i}=await this.acquireTarget(e,t,this.run.logger);if(!this.run)return void e.destroy();void 0===i.processId&&(i.processId=Number(i.targetId));const o=new R.NodeTarget(this.run.params,this.run.pathResolver,this.run.context.targetOrigin,r,n,i,this.run.logger,this.createLifecycle(n,this.run,i),i.openerId?this.targets.get(i.openerId):void 0);this.listenToWorkerDomain(n,t,o),this.targets.add(i.targetId,o),o.onDisconnect((()=>this.targets.remove(i.targetId)))}async listenToWorkerDomain(e,t,r){e.NodeWorker.on("attachedToWorker",(n=>{const i=new v.WorkerTransport(n.sessionId,e),o=new F.NodeWorkerTarget(r.launchConfig,{attached:!0,canAccessOpener:!1,type:"node-worker",targetId:`${r.id()}-${n.sessionId}`,title:n.workerInfo.title,url:n.workerInfo.url,openerId:r.id()},r,r.targetOrigin(),new y.default(i,r.logger,t).rootSession(),r.sourcePathResolver(),r.logger),s=new S.DisposableList;s.push(i),s.push(r.onDisconnect((()=>s.dispose()))),s.push(i.onEnd((()=>s.dispose()))),s.callback((()=>this.targets.remove(o.id()))),this.targets.add(o.id(),o)}))}async acquireTarget(e,t,r){const n=new y.default(new b.RawPipeTransport(r,e),r,t);this.serverConnections.add(n),n.onDisconnected((()=>this.serverConnections.delete(n)));const i=n.rootSession(),{targetInfo:o}=await new Promise((e=>i.Target.on("targetCreated",e))),s=o,a=this.portLeaseTracker.register(s.processInspectorPort);return n.onDisconnected((()=>a.dispose())),{targetInfo:s,cdp:i,connection:n,logger:r}}async getBootloaderFile(e,t){const r=(0,E.forceForwardSlashes)(A.bootloaderDefaultPath);if(!r.includes(" "))return{interpolatedPath:r,dispose:()=>{}};if(t.has(0))return{interpolatedPath:`"${r}"`,dispose:()=>{}};const n=`require(${JSON.stringify(r)})`;if(!d.tmpdir().includes(" ")||!e){const e=h.join(d.tmpdir(),"vscode-js-debug-bootloader.js");return await u.promises.writeFile(e,n),{interpolatedPath:e,dispose:()=>{}}}const i=".vscode-js-debug-bootloader.js",o=h.join(e,i);return await u.promises.writeFile(o,n),{interpolatedPath:`./${i}`,dispose:()=>u.unlinkSync(o)}}async gatherTelemetryFromCdp(e,t){for(let r=0;r<8;r++){const n=await e.Runtime.evaluate({contextId:1,returnByValue:!0,expression:"typeof process === 'undefined' || process.pid === undefined ? 'process not defined' : ({ processId: process.pid, nodeVersion: process.version, architecture: process.arch })"+(0,g.getSourceSuffix)()});if(!this.program)return;if(!n||!n.result.value)return void this.logger.error("runtime.target","Undefined result getting telemetry");if("object"!=typeof n.result.value){this.logger.info("runtime.target","Process not yet defined, will retry"),await(0,O.delay)(50*2**r);continue}const i=n.result.value;return t.context.telemetryReporter.report("nodeRuntime",{version:i.nodeVersion,arch:i.architecture}),this.program.gotTelemetery(i),i}}};L=o([(0,l.injectable)(),a(0,(0,l.inject)(M.INodeBinaryProvider)),a(1,(0,l.inject)(x.ILogger)),a(2,(0,l.inject)(m.IPortLeaseTracker)),a(3,(0,l.inject)(j.ISourcePathResolverFactory))],L),t.NodeLauncherBase=L},46681: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.__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.NodeSourcePathResolver=void 0;const s=o(r(71017)),a=r(57310),c=r(79783),u=r(85196),l=o(r(97208)),p=r(48055),d="node:";class h extends p.SourcePathResolverBase{constructor(e,t,r,n){super(r,n),this.fsUtils=e,this.linkedBp=t,this.options=r,this.logger=n}static shouldWarnAboutSymlinks(e){var t;return"runtimeArgs"in e&&!(null===(t=e.runtimeArgs)||void 0===t?void 0:t.includes("--preserve-symlinks"))}static getOptions(e){return{resolveSourceMapLocations:e.resolveSourceMapLocations,basePath:e.cwd,sourceMapOverrides:e.sourceMapPathOverrides,remoteRoot:e.remoteRoot,localRoot:e.localRoot}}derive(e){return new h(this.fsUtils,this.linkedBp,Object.assign(Object.assign({},this.options),e),this.logger)}get resolutionOptions(){return this.options}async urlToAbsolutePath({url:e,map:t}){var r;if(e=e.replace(/\?.+/,""),(e=this.normalizeSourceMapUrl(e)).startsWith(d)&&this.options.basePath)return(e=s.join(this.options.basePath,"lib",e.slice(d.length))).endsWith(".js")||(e+=".js"),e;if(t)return this.sourceMapSourceToAbsolute(e,t);const n=l.fileUrlToAbsolutePath(e);if(n)return this.rebaseRemoteToLocal(n);if(l.isValidUrl(e)){const t=this.sourceMapOverrides.apply(e);e=t===e?new a.URL(e).pathname.slice(1):t}else{if(!s.isAbsolute(e))return`<node_internals>/${e}`;e=this.sourceMapOverrides.apply(e)}const i=(0,c.properResolve)(null!==(r=this.options.basePath)&&void 0!==r?r:"",e);return this.rebaseRemoteToLocal(i)}absolutePathToUrl(e){return l.absolutePathToFileUrl(this.rebaseLocalToRemote(s.normalize(e)))}async absolutePathToUrlRegexp(e){var t;let r=e;try{r=await this.fsUtils.realPath(e)}catch(e){}return l.comparePathsWithoutCasing(r,e)?l.urlToRegex(this.absolutePathToUrl(e)):(null===(t=this.linkedBp)||void 0===t||t.warn(),l.urlToRegex(this.absolutePathToUrl(e))+"|"+l.urlToRegex(this.absolutePathToUrl(r)))}async sourceMapSourceToAbsolute(e,t){if(!this.shouldResolveSourceMap(t.metadata))return;const r=(0,u.getFullSourceEntry)(t.sourceRoot,e),n=this.sourceMapOverrides.apply(r);return n!==r?(0,c.fixDriveLetterAndSlashes)(n):l.isFileUrl(e)?l.fileUrlToAbsolutePath(e):(!s.isAbsolute(e)&&this.options.basePath&&(e=(0,c.properResolve)(await(0,u.getComputedSourceRoot)(this.options.remoteRoot&&l.isAbsolute(t.sourceRoot)&&this.rebaseRemoteToLocal(t.sourceRoot)||t.sourceRoot,t.metadata.compiledPath,{"/":this.options.basePath},(0,u.moduleAwarePathMappingResolver)(this.fsUtils,t.metadata.compiledPath),this.logger),e)),this.rebaseRemoteToLocal(e)||e)}}t.NodeSourcePathResolver=h},41978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTarget=void 0;const n=r(71017),i=r(44936),o=r(97208);t.NodeTarget=class{constructor(e,t,r,o,s,a,c,u={},l){this.launchConfig=e,this.pathResolver=t,this.targetOriginValue=r,this.connection=o,this.targetInfo=a,this.logger=c,this.lifecycle=u,this._parent=l,this._serialize=Promise.resolve(void 0),this._attached=!1,this._onNameChangedEmitter=new i.EventEmitter,this._onDisconnectEmitter=new i.EventEmitter,this.entryBreakpoint=void 0,this.onDisconnect=this._onDisconnectEmitter.event,this.onNameChanged=this._onNameChangedEmitter.event,this.connection=o,this._cdp=s,s.pause(),this._waitingForDebugger="waitingForDebugger"===a.type,a.title?this._targetName=`${(0,n.basename)(a.title)} [${a.processId}]`:this._targetName=`[${a.processId}]`,s.Target.on("targetDestroyed",(()=>this.connection.close())),o.onDisconnected((()=>this._disconnected()))}id(){return this.targetInfo.targetId}processId(){return this.targetInfo.processId}name(){return this._targetName}fileName(){return this.targetInfo.title}type(){return"node"}targetOrigin(){return this.targetOriginValue}parent(){return this._parent}async initialize(){this.lifecycle.initialized&&(this.entryBreakpoint=await this.lifecycle.initialized(this)||void 0)}waitingForDebugger(){return this._waitingForDebugger}scriptUrlToUrl(e){return"/"===e[0]||"win32"===process.platform&&":"===e[1]&&"\\"===e[2]?(0,o.absolutePathToFileUrl)(e):e}sourcePathResolver(){return this.pathResolver}supportsCustomBreakpoints(){return!1}executionContextName(){return this._targetName}hasParent(){return!!this._parent}async runIfWaitingForDebugger(){await this._cdp.Runtime.runIfWaitingForDebugger({})}async _disconnected(){this._onDisconnectEmitter.fire()}canAttach(){return!this._attached}async attach(){return this._serialize=this._serialize.then((async()=>{if(!this._attached)return this._doAttach()})),this._serialize}async _doAttach(){this._waitingForDebugger=!1,this._attached=!0;const e=await this._cdp.Target.attachToTarget({targetId:this.targetInfo.targetId});if(!e)return void this.logger.info("runtime.launch","Failed to attach to target",{targetId:this.targetInfo.targetId});let t;return this._cdp.NodeWorker.enable({waitForDebuggerOnStart:!0}),e&&"__dynamicAttach"in e&&(await this._cdp.Debugger.enable({}),await this._cdp.Runtime.enable({})),this._cdp.Runtime.on("executionContextCreated",(e=>{e.context.auxData&&e.context.auxData.isDefault&&(t=e.context.id)})),this._cdp.Runtime.on("executionContextDestroyed",(e=>{e.executionContextId===t&&this.connection.close()})),this._cdp}async afterBind(){this._cdp.resume()}canDetach(){return this._attached}async detach(){this._serialize=this._serialize.then((async()=>{if(this._waitingForDebugger){const e=await this._doAttach();await(null==e?void 0:e.Runtime.runIfWaitingForDebugger({}))}this._attached&&this._doDetach()}))}async _doDetach(){await Promise.all([this._cdp.Target.detachFromTarget({targetId:this.targetInfo.targetId}),this._cdp.NodeWorker.disable({})]),this.connection.close(),this._attached=!1}canRestart(){return!1}restart(){}canStop(){return!0}stop(){try{this.lifecycle.close&&this.lifecycle.close(this)}finally{this.connection.close()}}refreshPathResolver(e){this.pathResolver.resolutionOptions.basePath||(this.pathResolver=this.pathResolver.derive({basePath:e}))}}},98995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeWorkerTarget=void 0;const n=r(44936),i=r(97208);t.NodeWorkerTarget=class{constructor(e,t,r,i,o,s,a){this.launchConfig=e,this.targetInfo=t,this.parentTarget=r,this.targetOriginValue=i,this.cdp=o,this.pathResolver=s,this.logger=a,this.onNameChanged=(new n.EventEmitter).event,this.attached=!1,this.isWaitingForDebugger=!0,o.pause()}id(){return this.targetInfo.targetId}name(){return this.targetInfo.title}fileName(){return this.targetInfo.url}type(){return"node"}parent(){return this.parentTarget}children(){return[]}canStop(){return!1}stop(){}canRestart(){return!1}restart(){}canAttach(){return!this.attached}async attach(){return await Promise.all([this.cdp.Debugger.enable({}),this.cdp.Runtime.enable({})]),this.attached=!0,this.cdp}canDetach(){return this.attached}async detach(){await this.cdp.Debugger.resume({}),await this.cdp.NodeWorker.detach({sessionId:this.targetInfo.targetId}),this.attached=!1}targetOrigin(){return this.targetOriginValue}afterBind(){return this.cdp.resume(),Promise.resolve()}async runIfWaitingForDebugger(){this.isWaitingForDebugger=!1,await this.cdp.Runtime.runIfWaitingForDebugger({})}initialize(){return Promise.resolve()}waitingForDebugger(){return this.isWaitingForDebugger}supportsCustomBreakpoints(){return!1}scriptUrlToUrl(e){return"/"===e[0]||"win32"===process.platform&&":"===e[1]&&"\\"===e[2]?(0,i.absolutePathToFileUrl)(e):e}sourcePathResolver(){return this.pathResolver}executionContextName(){return this.targetInfo.title}}},45957: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.__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.NvmResolver=t.INvmResolver=void 0;const c=s(r(57147)),u=r(57147),l=r(55053),p=s(r(22037)),d=s(r(71017)),h=r(26379),f=r(78986),m=r(44413),g=r(1032);t.INvmResolver=Symbol("INvmResolver");let y=class{constructor(e=new h.LocalFsUtils(u.promises),t=process.env,r=process.arch,n=process.platform,i=p.homedir()){this.fsUtils=e,this.env=t,this.arch=r,this.platform=n,this.homedir=i}async resolveNvmVersionPath(e){let t,r=this.env.NVS_HOME;if(!r){const e="win32"===this.platform?d.join(this.env.LOCALAPPDATA||"","nvs"):d.join(this.env.HOME||"",".nvs");c.existsSync(e)&&(r=e)}const n=[],i=this.parseVersionString(e);if(i.nvsFormat||r){if(t=await this.resolveNvs(r,i),!t&&i.nvsFormat)throw new g.ProtocolError((0,m.nvmVersionNotFound)(e,"nvs"));n.push("nvs")}if(!t)if("win32"===this.platform)this.env.NVM_HOME&&(t=await this.resolveWindowsNvm(e),n.push("nvm-windows"));else{const r=this.env.NVM_DIR||d.join(this.homedir,".nvm");await this.fsUtils.exists(r)&&(t=await this.resolveUnixNvm(e),n.push("nvm"))}if(!n.length)throw new g.ProtocolError((0,m.nvmNotFound)());if(!t||!await this.fsUtils.exists(t))throw new g.ProtocolError((0,m.nvmVersionNotFound)(e,n.join("/")));return{directory:t,binary:await this.getBinaryInFolder(t)}}async getBinaryInFolder(e){return await(0,f.some)(["node64.exe","node64"].map((t=>this.fsUtils.exists(d.join(e,t)))))?"node64":"node"}async resolveNvs(e,{remoteName:t,semanticVersion:r,arch:n}){if(!e)throw new g.ProtocolError((0,m.nvsNotFound)());const i=this.findBinFolderForVersion(d.join(e,t),r,(e=>c.existsSync(d.join(e,n))));if(i)return"win32"!==this.platform?d.join(i,n,"bin"):d.join(i,n)}async resolveUnixNvm(e){let t=this.env.NVM_DIR;if(!t){const e=d.join(this.env.HOME||"",".nvm");await this.fsUtils.exists(e)&&(t=e)}if(!t)throw new g.ProtocolError((0,m.nvmNotFound)());const r=this.findBinFolderForVersion(d.join(t,"versions","node"),`v${e}`);return r?d.join(r,"bin"):void 0}async resolveWindowsNvm(e){const t=this.env.NVM_HOME;if(!t)throw new g.ProtocolError((0,m.nvmHomeNotFound)());return this.findBinFolderForVersion(t,`v${e}`)}findBinFolderForVersion(e,t,r){if(!c.existsSync(e))return;const n=c.readdirSync(e);if(n.includes(t))return d.join(e,t);const i=n.filter((e=>e.startsWith(`${t}.`))).sort(b).filter((t=>!r||r(d.join(e,t)))).pop();return i?d.join(e,i):void 0}parseVersionString(e){const t=/^(([\w-]+)\/)?(v?(\d+(\.\d+(\.\d+)?)?))(\/((x86)|(32)|((x)?64)|(arm\w*)|(ppc\w*)))?$/i.exec(e);if(!t)throw new Error("Invalid version string: "+e);return{nvsFormat:!(!t[2]&&!t[8]),remoteName:t[2]||"node",semanticVersion:t[4]||"",arch:function(e){switch(e){case"32":case"x86":case"ia32":return"x86";case"64":case"x64":case"amd64":return"x64";case"arm":const t=process.config.variables.arm_version;return t?"armv"+t+"l":"arm";default:return e}}(t[8]||this.arch)}}};y=o([(0,l.injectable)(),a(0,(0,l.inject)(h.IFsUtils))],y),t.NvmResolver=y;const b=(e,t)=>{const r=/([0-9]+)\.([0-9]+)\.([0-9]+)/.exec(e),n=/([0-9]+)\.([0-9]+)\.([0-9]+)/.exec(t);if(!r||!n)return(n?-1:0)+(r?1:0);const[,i,o,s]=r,[,a,c,u]=n;return Number(i)-Number(a)||Number(o)-Number(c)||Number(s)-Number(u)}},13213: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.PackageJsonProvider=t.noPackageJsonProvider=t.IPackageJsonProvider=void 0;const o=r(55053),s=r(71017),a=r(26379),c=r(7678),u=r(97208),l=r(73454);t.IPackageJsonProvider=Symbol("IPackageJsonProvider"),t.noPackageJsonProvider={getPath:()=>Promise.resolve(void 0),getContents:()=>Promise.resolve(void 0)};let p=class{constructor(e,t){this.fs=e,this.config=t,this.getPath=(0,c.once)((async()=>{if("pwa-node"!==this.config.type||"launch"!==this.config.request)return;const e=await(0,u.nearestDirectoryContaining)(this.fs,this.config.cwd,"package.json");return e?(0,s.join)(e,"package.json"):void 0})),this.getContents=(0,c.once)((async()=>{const e=await this.getPath();if(e)try{const t=await this.fs.readFile(e);return JSON.parse(t.toString())}catch(e){return}}))}};p=n([(0,o.injectable)(),i(0,(0,o.inject)(a.IFsUtils)),i(1,(0,o.inject)(l.AnyLaunchConfiguration))],p),t.PackageJsonProvider=p},88031: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.__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.getNodeLaunchArgs=t.IProgramLauncher=void 0;const s=o(r(71017));t.IProgramLauncher=Symbol("IProgramLauncher"),t.getNodeLaunchArgs=e=>{let t=e.program;if(t&&s.isAbsolute(t)){const r=s.relative(e.cwd,t);t=s.isAbsolute(r)?r:`.${s.sep}${r}`}return t?[...e.runtimeArgs,t,...e.args]:[...e.runtimeArgs,...e.args]}},40210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalProcess=t.WatchDogProgram=t.StubProgram=t.SubprocessProgram=t.CombinedProgram=void 0;const n=r(54495);t.CombinedProgram=class{constructor(e,t){this.a=e,this.b=t,this.stopped=Promise.race([this.a.stopped.then((async e=>await this.b.stop()&&e)),this.b.stopped.then((async e=>await this.a.stop()&&e))])}gotTelemetery(e){this.a.gotTelemetery(e),this.b.gotTelemetery(e)}async stop(){return(await Promise.all([this.a.stop(),this.b.stop()]))[0]}},t.SubprocessProgram=class{constructor(e,t,r){this.child=e,this.logger=t,this.killBehavior=r,this.killed=!1,this.stopped=new Promise(((t,r)=>{e.once("exit",(e=>t({killed:this.killed,code:e||0}))),e.once("error",(e=>r({killed:this.killed,code:1,error:e})))}))}gotTelemetery(){}stop(){return this.killed=!0,(0,n.killTree)(this.child.pid,this.logger,this.killBehavior),this.stopped}};class i{constructor(){this.stopped=new Promise((e=>this.stopDefer=e))}gotTelemetery(e){this.telemetry=e}stop(){return this.stopDefer({code:0,killed:!0}),this.stopped}}t.StubProgram=i,t.WatchDogProgram=class extends i{constructor(e){super(),this.wd=e,e.onEnd(this.stopDefer)}stop(){return this.wd.dispose(),this.stopped}};class o{constructor(e,t,r){this.terminalResult=e,this.logger=t,this.killBehavior=r,this.didStop=!1,this.stopped=new Promise((e=>this.onStopped=t=>{this.didStop=!0,e({code:0,killed:t})})),e.processId&&this.startPollLoop(e.processId)}gotTelemetery({processId:e}){this.didStop?(0,n.killTree)(e,this.logger,this.killBehavior):this.loop||this.startPollLoop(e)}stop(){return this.didStop||(this.didStop=!0,this.loop?((0,n.killTree)(this.loop.processId,this.logger,this.killBehavior),this.startPollLoop(this.loop.processId,o.killConfirmInterval)):this.terminalResult.shellProcessId?((0,n.killTree)(this.terminalResult.shellProcessId,this.logger,this.killBehavior),this.startPollLoop(this.terminalResult.shellProcessId,o.killConfirmInterval)):this.onStopped(!0)),this.stopped}startPollLoop(e,t=o.terminationPollInterval){this.loop&&clearInterval(this.loop.timer);const r={processId:e,timer:setInterval((()=>{(function(e){try{return process.kill(e,0),!0}catch(e){return!1}})(e)||(clearInterval(r.timer),this.onStopped(!0))}),t)};this.loop=r}}t.TerminalProcess=o,o.terminationPollInterval=1e3,o.killConfirmInterval=200},95077: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};Object.defineProperty(t,"__esModule",{value:!0}),t.RestartPolicyFactory=void 0;const i=r(55053);let o=class{create(e){var t,r;return!1===e?new a:new s(!0===e?{maxAttempts:1/0,delay:1e3}:{maxAttempts:null!==(t=e.maxAttempts)&&void 0!==t?t:1/0,delay:null!==(r=e.delay)&&void 0!==r?r:1e3})}};o=n([(0,i.injectable)()],o),t.RestartPolicyFactory=o;class s{constructor(e,t=0){this.options=e,this.attempt=t}get delay(){return this.options.delay}next(){return this.attempt===this.options.maxAttempts?void 0:new s(this.options,this.attempt+1)}reset(){return this.attempt?new s(this.options):this}}class a{constructor(){this.delay=-1}next(){}reset(){return this}}},77584: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.SubprocessProgramLauncher=void 0;const o=r(32081),s=r(55053),a=r(94570),c=r(15501),u=r(88031),l=r(40210);let p=class{constructor(e){this.logger=e}canLaunch(e){return"internalConsole"===e.console}async launchProgram(e,t,r){const{executable:n,args:i,shell:s}=d(e,(0,u.getNodeLaunchArgs)(t));r.dap.output({category:"console",output:[n,...i].join(" ")});const c=(0,o.spawn)(n,i,{shell:s,cwd:t.cwd,env:a.EnvironmentVars.merge(a.EnvironmentVars.processEnv(),t.env).defined()});return"console"===t.outputCapture?this.discardStdio(r.dap,c):this.captureStdio(r.dap,c),new l.SubprocessProgram(c,this.logger,t.killBehavior)}captureStdio(e,t){t.stdout.on("data",(t=>e.output({category:"stdout",output:t.toString()}))),t.stderr.on("data",(t=>e.output({category:"stderr",output:t.toString()}))),t.stdout.resume(),t.stderr.resume()}discardStdio(e,t){let r=[];const n=()=>{r&&e.output({category:"stderr",output:Buffer.concat(r).toString()})},i=Buffer.from("Debugger attached."),o=e=>{e.includes(i)?(r=void 0,t.stderr.removeListener("data",o)):r&&r.push(e)};t.stderr.on("data",o),t.on("error",(t=>{n(),e.output({category:"stderr",output:t.stack||t.message})})),t.on("exit",(t=>{null!==t&&t>0&&(n(),e.output({category:"stderr",output:`Process exited with code ${t}\r\n`}))})),t.stdout.resume(),t.stderr.resume()}};p=n([(0,s.injectable)(),i(0,(0,s.inject)(c.ILogger))],p),t.SubprocessProgramLauncher=p;const d=(e,t)=>{if("win32"===process.platform&&e.endsWith(".ps1")&&(t=["-File",e,...t],e="powershell.exe"),"win32"!==process.platform||!e.includes(" "))return{executable:e,args:t,shell:!1};let r=!1;const n=[];for(const e of t)e.includes(" ")?(n.push(`"${e}"`),r=!0):n.push(e);return r?{executable:`"${e}"`,args:n,shell:!0}:{executable:e,args:t,shell:!1}}},71592: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.__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.TerminalNodeLauncher=void 0;const c=r(6113),u=r(55053),l=r(22037),p=s(r(71017)),d=s(r(89496)),h=r(91183),f=r(44936),m=r(15501),g=r(1032),y=r(99010),b=r(74966),v=r(82252),w=r(33811);class _{constructor(e){this.terminal=e,this.stopped=new Promise((t=>{const r=d.window.onDidCloseTerminal((n=>{n===e&&(t({code:0,killed:!0}),r.dispose())}))}))}gotTelemetery(){}stop(){return this.terminal.sendText(""),setTimeout((()=>this.terminal.dispose()),1),this.stopped}}let S=class extends w.NodeLauncherBase{constructor(e,t,r,n,i){super(e,t,i,n),this.fs=r,this.terminalCreatedEmitter=new f.EventEmitter,this.callbackFile=p.join((0,l.tmpdir)(),`node-debug-callback-${(0,c.randomBytes)(8).toString("hex")}`),this.onTerminalCreated=this.terminalCreatedEmitter.event}async getProcessTelemetry(){try{return JSON.parse(await this.fs.readFile(this.callbackFile,"utf-8"))}catch(e){return}}resolveParams(e){return"node-terminal"===e.type&&"launch"===e.request?e:"pwa-chrome"===e.type&&e.server&&"command"in e.server?e.server:void 0}async launchProgram(e){let t;try{t=await this.resolveNodePath(e.params)}catch(e){if(e instanceof g.ProtocolError&&9230===e.cause.id)throw e;t=new v.NodeBinary("node",void 0)}const r=await this.resolveEnvironment(e,t,{fileCallback:this.callbackFile}),n=await this.createTerminal({name:e.params.name,cwd:e.params.cwd,iconPath:new d.ThemeIcon("debug"),env:(0,v.hideDebugInfoFromConsole)(t,r).defined(),isTransient:!0});this.terminalCreatedEmitter.fire(n),n.show();const i=this.program=new _(n);e.params.command&&n.sendText(e.params.command,!0),i.stopped.then((e=>{i===this.program&&this.onProgramTerminated(e)}))}createTerminal(e){return Promise.resolve(d.window.createTerminal(e))}dispose(){super.dispose(),this.fs.unlink(this.callbackFile).catch((()=>{}))}};S=o([(0,u.injectable)(),a(0,(0,u.inject)(v.INodeBinaryProvider)),a(1,(0,u.inject)(m.ILogger)),a(2,(0,u.inject)(y.FS)),a(3,(0,u.inject)(b.ISourcePathResolverFactory)),a(4,(0,u.inject)(h.IPortLeaseTracker))],S),t.TerminalNodeLauncher=S},72518: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.TerminalProgramLauncher=void 0;const o=r(55053),s=r(15501),a=r(7678),c=r(44413),u=r(1032),l=r(88031),p=r(40210);let d=class{constructor(e){this.logger=e}canLaunch(e){return e.internalConsoleOptions,"internalConsole"!==e.console}async launchProgram(e,t,r){const n={kind:"integratedTerminal"===t.console?"integrated":"external",title:t.name,cwd:t.cwd,args:[e,...(0,l.getNodeLaunchArgs)(t)],env:(0,a.removeNulls)(t.env)};let i;try{i=await this.sendLaunchRequest(n,r)}catch(e){throw new u.ProtocolError((0,c.cannotLaunchInTerminal)(e.message))}return new p.TerminalProcess(i,this.logger,t.killBehavior)}sendLaunchRequest(e,t){return t.dap.runInTerminalRequest(e)}};d=n([(0,o.injectable)(),i(0,(0,o.inject)(s.ILogger))],d),t.TerminalProgramLauncher=d},29801: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.__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.WatchDog=void 0;const s=o(r(41808)),a=r(34517),c=r(2940),u=r(25370),l=r(44936),p=r(74839),d=r(81446);class h{constructor(e,t){var r;this.info=e,this.server=t,this.onEndEmitter=new l.EventEmitter,this.gracefulExit=!1,this.targetAlive=!1,this.targetInfo={targetId:null!==(r=this.info.ownId)&&void 0!==r?r:(0,d.createTargetId)(),processId:Number(this.info.pid)||0,type:this.info.waitForDebugger?"waitingForDebugger":"",title:this.info.scriptName,url:"file://"+this.info.scriptName,openerId:this.info.openerId,attached:!0,canAccessOpener:!1,processInspectorPort:Number(new URL(this.info.inspectorURL).port)},this.onEnd=this.onEndEmitter.event,this.listenToServer()}get isTargetAlive(){return this.targetAlive}static async attach(e){const t=await new Promise(((t,r)=>{const n=s.createConnection(e.ipcAddress,(()=>t(n)));n.on("error",r)})),r=new a.RawPipeTransport(p.Logger.null,t);return new h(e,r)}listenToServer(){const{server:e,targetInfo:t}=this;e.send(JSON.stringify({method:"Target.targetCreated",params:{targetInfo:t}})),e.onMessage((async([t])=>{if(this.target&&!t.includes("Target.attachToTarget")&&!t.includes("Target.detachFromTarget"))return void this.target.send(t);const r=await this.execute(t);r&&e.send(JSON.stringify(r))})),e.onEnd((()=>{this.disposeTarget(),this.onEndEmitter.fire({killed:this.gracefulExit,code:this.gracefulExit?0:1})}))}dispose(){this.gracefulExit=!0,this.disposeTarget(),this.server.dispose()}async execute(e){var t;const r=JSON.parse(e);switch(r.method){case"Target.attachToTarget":return this.target&&this.disposeTarget(),this.target=await this.createTarget(),{id:r.id,result:{sessionId:this.targetInfo.targetId,__dynamicAttach:!!this.info.dynamicAttach||void 0}};case"Target.detachFromTarget":return this.gracefulExit=!0,this.disposeTarget(),{id:r.id,result:{}};default:return void(null===(t=this.target)||void 0===t||t.send(r))}}async createTarget(){this.gracefulExit=!1;const e=await c.WebSocketTransport.create(this.info.inspectorURL,u.NeverCancelled);return e.onMessage((([e])=>this.server.send(e))),e.onEnd((()=>{e&&this.server.send(JSON.stringify({method:"Target.targetDestroyed",params:{targetId:this.targetInfo.targetId,sessionId:this.targetInfo.targetId}})),this.targetAlive=!1,this.server.dispose()})),e}disposeTarget(){this.target&&(this.target.dispose(),this.target=void 0)}}t.WatchDog=h},18937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapOverrides=void 0;const n=r(79783),i=r(36268),o=new RegExp((0,i.escapeRegexSpecialChars)("*"),"g"),s="?:*",a=new RegExp((0,i.escapeRegexSpecialChars)(s),"g"),c=(e,t)=>{const r=t.match(e);return e.lastIndex=0,r?r.length:0},u=new RegExp(`${(0,i.escapeRegexSpecialChars)(s)}|${(0,i.escapeRegexSpecialChars)("*")}`,"g");t.SourceMapOverrides=class{constructor(e,t){this.logger=t,this.replacers=[];const r=Object.keys(e).sort(((e,t)=>t.replace(s,"*").length-e.replace(s,"*").length));for(const s of r){let r=e[s];if(!r.includes("*")&&/\$[0-9'`&]/.test(r)){this.replacers.push([new RegExp(`^${s}$`,"i"),r]);continue}const l=(0,n.forceForwardSlashes)(s),p=`"${l}": "${r}"`,d=c(o,l)-c(a,l);if(d>1){t.warn("runtime.sourcemap",`Warning: only one asterisk allowed in a sourceMapPathOverrides entry - ${p}`);continue}if(c(o,r)>d){t.warn("runtime.sourcemap",`The right side of a sourceMapPathOverrides entry must have 0 or 1 asterisks - ${p}}`);continue}let h="^",f=0;for(u.lastIndex=0;;){const e=u.exec(l);if(h+=(0,i.escapeRegexSpecialChars)(l.slice(f,null==e?void 0:e.index),"/"),!e)break;"*"===e[0]?h+="(.*?)":h+=".*?",f=e.index+e[0].length}0===d&&(h+="([\\/\\\\].*)?",r+="*"),this.replacers.push([new RegExp(h+"$","i"),r.replace(/\$/g,"$$$$").replace(/\*/,"$1")])}}apply(e){const t=(0,n.forceForwardSlashes)(e);for(const[r,i]of this.replacers){const o=t.replace(r,i);if(o!==t)return this.logger.verbose("runtime.sourcemap",`SourceMap: mapping ${e} => ${o}, via sourceMapPathOverrides entry - ${r.toString()}`),(0,n.properJoin)(o)}return e}}},48055: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.__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},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SourcePathResolverBase=void 0;const a=s(r(48586)),c=o(r(71017)),u=r(94723),l=r(79783),p=r(97208),d=r(18937),h=/\x00/;t.SourcePathResolverBase=class{constructor(e,t){var r;this.options=e,this.logger=t,this.sourceMapOverrides=new d.SourceMapOverrides(this.options.sourceMapOverrides,this.logger),this.resolveLocations=null===(r=this.options.resolveSourceMapLocations)||void 0===r?void 0:r.map((e=>{const t=(e=e.replace(/\.[a-z0-9]+$/,".*")).startsWith("!")?"!":"",r=e.slice(t.length);return(0,p.isAbsolute)(r)?t+(0,l.properResolve)(r):e}))}shouldResolveSourceMap({sourceMapUrl:e,compiledPath:t}){if(t.startsWith(u.node15InternalsPrefix))return!1;if(!this.resolveLocations||0===this.resolveLocations.length)return!0;const r=(0,p.fileUrlToAbsolutePath)(e)||(0,p.isDataUri)(e)&&t||e;if(r.startsWith("webpack-internal:///"))return!0;const n=!/^[a-z]+:/i.test(e)&&(0,p.getCaseSensitivePaths)(),i=e=>(e=(0,l.forceForwardSlashes)(e),n?e:e.toLowerCase()),o=this.rebaseRemoteToLocal(r),s=o!==r?[r,o]:[r];return(0,a.default)(s.map(i),this.resolveLocations.map(i),{dot:!0}).length>0}rebaseRemoteToLocal(e){if(!this.options.remoteRoot||!this.options.localRoot||!this.canMapPath(e))return c.resolve(e);const t=(0,l.properRelative)(this.options.remoteRoot,e);if(t.startsWith(".."))return"";let r=(0,l.properJoin)(this.options.localRoot,t);return r=(0,l.fixDriveLetter)(r),this.logger.verbose("runtime.sourcemap",`Mapped remoteToLocal: ${e} -> ${r}`),(0,l.properResolve)(r)}rebaseLocalToRemote(e){if(!this.options.remoteRoot||!this.options.localRoot||!this.canMapPath(e))return e;const t=(0,l.properRelative)(this.options.localRoot,e);let r=(0,l.properJoin)(this.options.remoteRoot,t);return r=(0,l.fixDriveLetterAndSlashes)(r,!0),this.logger.verbose("runtime.sourcemap",`Mapped localToRemote: ${e} -> ${r}`),r}normalizeSourceMapUrl(e){return e.replace(h,"")}canMapPath(e){return c.posix.isAbsolute(e)||c.win32.isAbsolute(e)||(0,p.isFileUrl)(e)}}},74966: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.SourcePathResolverFactory=t.NodeOnlyPathResolverFactory=t.ISourcePathResolverFactory=void 0;const o=r(55053),s=r(24862),a=r(26379),c=r(99010),u=r(64732),l=r(83085),p=r(2347),d=r(64416),h=r(46681);t.ISourcePathResolverFactory=Symbol("ISourcePathResolverFactory");let f=class{constructor(e,t){this.fsUtils=e,this.linkedBp=t}create(e,t){if("pwa-node"===e.type||"node-terminal"===e.type||"pwa-extensionHost"===e.type)return new h.NodeSourcePathResolver(this.fsUtils,h.NodeSourcePathResolver.shouldWarnAboutSymlinks(e)?this.linkedBp:void 0,h.NodeSourcePathResolver.getOptions(e),t);throw new Error(`Not usable for type ${e.type}`)}};f=n([(0,o.injectable)(),i(0,(0,o.inject)(a.IFsUtils)),i(1,(0,o.optional)()),i(1,(0,o.inject)(u.ILinkedBreakpointLocation))],f),t.NodeOnlyPathResolverFactory=f;let m=class{constructor(e,t,r,n){this.initializeParams=e,this.vueMapper=t,this.fsUtils=r,this.linkedBp=n}create(e,t){return"pwa-node"===e.type||"node-terminal"===e.type||"pwa-extensionHost"===e.type?new h.NodeSourcePathResolver(this.fsUtils,h.NodeSourcePathResolver.shouldWarnAboutSymlinks(e)?this.linkedBp:void 0,h.NodeSourcePathResolver.getOptions(e),t):new(e.inspectUri?l.BlazorSourcePathResolver:d.BrowserSourcePathResolver)(this.vueMapper,this.fsUtils,{resolveSourceMapLocations:e.resolveSourceMapLocations,baseUrl:(0,p.baseURL)(e),localRoot:null,remoteRoot:null,pathMapping:Object.assign({"/":e.webRoot},e.pathMapping),sourceMapOverrides:e.sourceMapPathOverrides,clientID:this.initializeParams.clientID,remoteFilePrefix:e.__remoteFilePrefix},t)}};m=n([(0,o.injectable)(),i(0,(0,o.inject)(c.IInitializeParams)),i(1,(0,o.inject)(s.IVueFileMapper)),i(2,(0,o.inject)(a.IFsUtils)),i(3,(0,o.optional)()),i(3,(0,o.inject)(u.ILinkedBreakpointLocation))],m),t.SourcePathResolverFactory=m},16362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MutableTargetOrigin=t.TargetOrigin=t.ITargetOrigin=void 0,t.ITargetOrigin=Symbol("ITargetOrigin"),t.TargetOrigin=class{constructor(e){this.id=e}},t.MutableTargetOrigin=class{constructor(e){this.id=e}}},50036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILauncher=t.ITarget=void 0,t.ITarget=Symbol("ITarget"),t.ILauncher=Symbol("ILauncher")},14372: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.__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.createLoggers=void 0;const s=o(r(57147)),a=o(r(71017));t.createLoggers=e=>{const t={};function r(t,r){return e({category:"telemetry",output:t,data:r})}return function(e){try{const t=a.resolve(a.dirname(__filename),"..","..",".gitcommit");e.jsDebugCommitId=s.readFileSync(t,"utf8")}catch(e){}}(t),{breakpointStats:e=>r("js-debug/breakpointStats",Object.assign(Object.assign({},t),e)),statistics:e=>r("js-debug/statistics",Object.assign(Object.assign({},t),e)),browserVersion:e=>{t.browser=(e.targetProject||e.targetProject)+"/"+e.targetVersion,r("js-debug/browserVersion",Object.assign(Object.assign({},t),e))},cdpOperation:e=>r("js-debug/cdp/operation",Object.assign(Object.assign({},t),e)),dapOperation:e=>r("js-debug/dap/operation",Object.assign(Object.assign({},t),e)),error:e=>r("js-debug/error",Object.assign(Object.assign({},t),e)),launch:e=>{r("js-debug/launch",Object.assign(Object.assign(Object.assign({},t),e),{parameters:JSON.stringify(e.parameters)}))},nodeRuntime:e=>{t.nodeVersion=e.version,r("js-debug/nodeRuntime",Object.assign(Object.assign({},t),e))},diagnosticPrompt:e=>{r("js-debug/diagnosticPrompt",Object.assign(Object.assign({},t),e))},setGlobalMetric:(e,r)=>{t[e]=r}}}},63634:function(e,t,r){"use strict";var n,i=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},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractErrorDetails=t.DapTelemetryReporter=void 0;const s=r(55053),a=r(44936),c=r(7678),u=r(99010),l=r(14372),p=r(36753);let d=n=class{constructor(e=!0){this.isVsCode=e,this.target=[],this.flushEmitter=new a.EventEmitter,this.loggers=(0,l.createLoggers)((e=>this.pushOutput(e))),this.batchFlushTimeout={},this.batchers={dapOperation:new p.ReporterBatcher(this.isVsCode),cdpOperation:new p.ReporterBatcher(this.isVsCode)},this.onFlush=this.flushEmitter.event,this.setGlobalMetric=this.loggers.setGlobalMetric}report(e,...t){(0,this.loggers[e])(...t)}reportOperation(e,t,r,i){this.batchers[e].add(t,r,i),void 0===this.batchFlushTimeout[e]&&(this.batchFlushTimeout[e]=setTimeout((()=>{this.report(e,this.batchers[e].flush()),this.batchFlushTimeout[e]=void 0}),n.batchFlushInterval))}attachDap(e){this.target instanceof Array&&this.target.forEach((t=>e.output(t))),this.target=e}flush(){this.flushEmitter.fire();const e=Object.entries(this.batchFlushTimeout);for(const[t,r]of e){const e=this.batchers[t].flush();e.length&&this.report(t,e),this.batchFlushTimeout[t]=void 0,clearTimeout(r)}}dispose(){for(const e of Object.values(this.batchFlushTimeout))e&&clearTimeout(e)}pushOutput(e){e.data=h(e.data),this.target instanceof Array?this.target.push(e):this.target.output(e)}};d.batchFlushInterval=5e3,d=n=i([(0,s.injectable)(),o(0,(0,s.inject)(u.IsVSCode))],d),t.DapTelemetryReporter=d;const h=e=>"number"==typeof e?Number(e.toFixed(1)):"object"==typeof e&&e?e instanceof Error?m(e):e instanceof Array?e.map(h):(0,c.mapValues)(e,h):e,f=/(?:[A-z]:)?(?:[\\/][^:]*)+[\\/]([^:]*:)/g;function m(e){const t=String(e.message),r=String(e.name);return f.lastIndex=0,{error:{message:t,name:r,stack:"string"==typeof e.stack?e.stack.replace(f,"$1"):void 0}}}t.extractErrorDetails=m},78563:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExperimentationService=void 0,t.IExperimentationService=Symbol("IExperimentationService")},18322: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};Object.defineProperty(t,"__esModule",{value:!0}),t.NullExperimentationService=void 0;const i=r(55053);let o=class{getTreatment(e,t){return Promise.resolve(t)}};o=n([(0,i.injectable)()],o),t.NullExperimentationService=o},63028: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};Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryReporter=void 0;const i=r(44936),o=r(55053);let s=class{constructor(){this.flushEmitter=new i.EventEmitter,this.onFlush=this.flushEmitter.event}report(){}reportOperation(){}attachDap(){}flush(){this.flushEmitter.fire()}dispose(){}};s=n([(0,o.injectable)()],s),t.NullTelemetryReporter=s},36753:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReporterBatcher=void 0,t.ReporterBatcher=class{constructor(e=!0){this.isVSCode=e,this.measurements=Object.create(null)}add(e,t,r){let n=this.measurements[e];n||(n=this.measurements[e]={times:[],errors:[]}),n.times.push(t),r&&n.errors.push(r)}flush(){const e={errors:[]};for(const t in this.measurements){const{times:r,errors:n}=this.measurements[t],i={operation:t,totalTime:0,max:0,avg:0,stddev:0,count:r.length,failed:n.length};for(const e of r)i.totalTime+=e,i.max=Math.max(i.max,e);i.avg=i.totalTime/i.count;for(const e of r)i.stddev+=(e-i.avg)**2;i.stddev=Math.sqrt(i.stddev/(r.length-1)),e[i.operation]=i,e[`!${i.operation}.errors`]=n,this.isVSCode||(e[`${i.operation}.errors`]=n)}return this.measurements=Object.create(null),e}}},74529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logPerf=void 0,t.logPerf=async(e,t,r,n={})=>{const i=Date.now();try{return await r()}finally{e.verbose("perf.function","",Object.assign({method:t,duration:Date.now()-i},n))}}},43224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITelemetryReporter=void 0,t.ITelemetryReporter=Symbol("ITelemetryReporter")},27812: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.__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.filterErrorsReportedToTelemetry=t.onUncaughtError=t.installUnhandledErrorReporter=void 0;const s=o(r(71017));t.installUnhandledErrorReporter=function(e,r,n){const i=(0,t.onUncaughtError)(e,r,"uncaughtException",n),o=(0,t.onUncaughtError)(e,r,"unhandledRejection",n);return process.addListener("uncaughtException",i),process.addListener("unhandledRejection",o),{dispose:()=>{process.removeListener("uncaughtException",i),process.removeListener("unhandledRejection",o)}}},t.onUncaughtError=(e,t,r,n=!0)=>i=>{(function(e){var t,r;return!c||"object"==typeof(r=e)&&!!r&&"stack"in r&&!!(null===(t=e.stack)||void 0===t?void 0:t.includes(a))})(i)&&(t.report("error",{"!error":i,error:n?void 0:i,exceptionType:r}),e.error("runtime.exception","Unhandled error in debug adapter",i))};const a=s.dirname(s.dirname(s.dirname(__dirname)));let c=!1;t.filterErrorsReportedToTelemetry=function(){c=!0}},60597: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.VSCodeExperimentationService=void 0;const o=r(55053),s=r(62579),a=r(73454),c=r(99010),u=r(63634),l=r(43224);let p=class{constructor(e,t){t&&e instanceof u.DapTelemetryReporter&&(this.service=(0,s.getExperimentationService)("ms-vscode.js-debug",a.packageVersion,a.isNightly?s.TargetPopulation.Insiders:s.TargetPopulation.Public,{setSharedProperty(t,r){e.setGlobalMetric(t,r)},postEvent(t,r){e.pushOutput({category:"telemetry",output:t,data:r})}},t.globalState))}async getTreatment(e,t){if(!this.service)return t;try{return await this.service.getTreatmentVariableAsync("vscode",e,!0)}catch(e){return t}}};p=n([(0,o.injectable)(),i(0,(0,o.inject)(l.ITelemetryReporter)),i(1,(0,o.optional)()),i(1,(0,o.inject)(c.ExtensionContext))],p),t.VSCodeExperimentationService=p},14383: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.__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.registerAutoAttach=void 0;const s=o(r(89496)),a=o(r(33463)),c=r(91183),u=r(8216),l=r(59657),p=r(99010),d=r(73062),h=r(82252),f=r(13213),m=r(74966),g=r(90781),y=a.loadMessageBundle(r(71017).join(__dirname,"ui/autoAttach.js"));t.registerAutoAttach=function(e,t,r){let n,i;const o=()=>n||(n=(async()=>{const o=new l.ProxyLogger,a=new d.AutoAttachLauncher(new h.NodeBinaryProvider(o,r.get(p.FS),f.noPackageJsonProvider),o,e,r.get(p.FS),r.get(m.NodeOnlyPathResolverFactory),r.get(c.IPortLeaseTracker));return await(0,g.launchVirtualTerminalParent)(t,a,(0,u.readConfig)(s.workspace,"debug.javascript.terminalOptions")),a.onTargetListChanged((()=>{0!==a.targetList().length||i?i&&(clearTimeout(i),i=void 0):i=setTimeout((()=>{n=void 0,a.terminate()}),3e5)})),a})(),n);e.subscriptions.push((0,u.registerCommand)(s.commands,"extension.js-debug.setAutoAttachVariables",(async()=>{try{return{ipcAddress:(await o()).deferredSocketName}}catch(e){if(e instanceof d.AutoAttachPreconditionFailed&&e.helpLink){const t=y(0,null);await s.window.showErrorMessage(e.message,t)===t&&s.env.openExternal(s.Uri.parse(e.helpLink))}else await s.window.showErrorMessage(e.message)}})),s.workspace.onDidChangeWorkspaceFolders((()=>{null==n||n.then((e=>e.refreshVariables()))})),(0,u.registerCommand)(s.commands,"extension.js-debug.autoAttachToProcess",(async e=>{try{(await o()).spawnForChild(e)}catch(e){console.error(e),s.window.showErrorMessage(`Error activating auto attach: ${e.stack||e}`)}})),(0,u.registerCommand)(s.commands,"extension.js-debug.clearAutoAttachVariables",(async()=>{d.AutoAttachLauncher.clearVariables(e);const t=await n;t&&(t.terminate(),n=void 0)})))}},51940: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.__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.CascadeTerminationTracker=void 0;const c=r(55053),u=s(r(89496)),l=r(2511);let p=class{constructor(e){this.tracker=e}register(e){e.subscriptions.push(this.tracker.onSessionEnded((e=>{const t=e.configuration.cascadeTerminateToConfigurations;if(t&&t instanceof Array)for(const e of t)for(const t of this.tracker.getByName(e))u.debug.stopDebugging(t)})))}};p=o([(0,c.injectable)(),a(0,(0,c.inject)(l.DebugSessionTracker))],p),t.CascadeTerminationTracker=p},47636: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.__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.registerCompanionBrowserLaunch=void 0;const s=r(57310),a=o(r(89496)),c=o(r(33463)),u=r(8216),l=r(12128),p=c.loadMessageBundle(r(71017).join(__dirname,"ui/companionBrowserLaunch.js")),d=async e=>{const t=e.params.url;if(!t)return;let r;try{r=new s.URL(t)}catch(e){return}if(!(0,u.readConfig)(a.workspace,"debug.javascript.automaticallyTunnelRemoteServer"))return;const n=Number(r.port)||80;if(!(await a.workspace.tunnels).some((e=>t=>"string"==typeof t.localAddress?t.localAddress.endsWith(`:${e}`):t.localAddress.port===e)(n)))try{await a.workspace.openTunnel({remoteAddress:{port:n,host:"localhost"},localAddressPort:n})}catch(e){}};t.registerCompanionBrowserLaunch=function(e){const t=new l.DebugSessionTunnels;e.subscriptions.push(t,a.debug.onDidReceiveDebugSessionCustomEvent((async e=>{switch(e.event){case"launchBrowserInCompanion":return(async(e,t,r)=>{if(a.env.uiKind===a.UIKind.Web)return a.window.showErrorMessage(p(0,null));try{const[,n]=await Promise.all([d(r),t.request(e.id,{remotePort:r.serverPort,label:"Browser Debug Tunnel"}).catch((()=>{}))]);await a.commands.executeCommand("js-debug-companion.launchAndAttach",Object.assign({proxyUri:n?`127.0.0.1:${n.localAddress.port}`:`127.0.0.1:${r.serverPort}`},r))}catch(e){a.window.showErrorMessage(`Error launching browser: ${e.message||e.stack}`)}})(e.session,t,e.body);case"killCompanionBrowser":return((e,t,{launchId:r})=>{a.commands.executeCommand("js-debug-companion.kill",{launchId:r}),t.destroySession(e.id)})(e.session,t,e.body)}})))}},73952: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseConfigurationProvider=void 0;const a=r(55053),c=s(r(89496));let u=class{get type(){return this.getType()}get triggerKind(){return this.getTriggerKind()}async provideDebugConfigurations(e,t){try{const r=await this.provide(e,t);return r?r instanceof Array?r:[r]:[]}catch(e){return c.window.showErrorMessage(e.message,{modal:!0}),[]}}};u=o([(0,a.injectable)()],u),t.BaseConfigurationProvider=u},80870: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.__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.BaseConfigurationResolver=void 0;const c=r(55053),u=r(71017),l=s(r(89496)),p=r(8216),d=r(15501),h=r(7678),f=r(73454),m=r(99010);let g=class{constructor(e){this.extensionContext=e}get type(){return this.getType()}async resolveDebugConfiguration(e,t,r){if(t.type&&(t.type=this.getType()),"__pendingTargetId"in t)return t;const n=t;try{const t=await this.resolveDebugConfigurationAsync(e,n,r);return t&&this.commonResolution(t,e)}catch(e){l.window.showErrorMessage(e.message,{modal:!0})}}applyDefaultRuntimeExecutable(e){if(e.runtimeExecutable)return;const t=(0,p.readConfig)(l.workspace,"debug.javascript.defaultRuntimeExecutable"),r=t?t[e.type]:void 0;r&&(e.runtimeExecutable=r)}commonResolution(e,t){var r,n,i;return e.trace=(0,d.fulfillLoggerOptions)(e.trace,this.extensionContext.logPath),e.__workspaceCachePath=this.extensionContext.storagePath,e.__breakOnConditionalError=null!==(r=(0,p.readConfig)(l.workspace,"debug.javascript.breakOnConditionalError",t))&&void 0!==r&&r,t?e.__workspaceFolder=t.uri.fsPath:(e.__workspaceFolder||(e.__workspaceFolder=this.getSuggestedWorkspaceFolders(e).filter(h.truthy).filter((e=>"${workspaceFolder}"!==e)).map((e=>{var t;return(0,u.isAbsolute)(e)?null===(t=l.workspace.getWorkspaceFolder(l.Uri.file(e)))||void 0===t?void 0:t.uri.fsPath:e})).find(h.truthy)||(null===(i=null===(n=l.workspace.workspaceFolders)||void 0===n?void 0:n[0])||void 0===i?void 0:i.uri.fsPath)||""),e=e.__workspaceFolder?(0,f.resolveWorkspaceInConfig)(e):(0,f.removeOptionalWorkspaceFolderUsages)(e)),e}getSuggestedWorkspaceFolders(e){return[]}};g=o([(0,c.injectable)(),a(0,(0,c.inject)(m.ExtensionContext))],g),t.BaseConfigurationResolver=g},51899: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeDebugConfigurationProvider=t.ChromeDebugConfigurationResolver=void 0;const i=r(73454),o=r(3261),s=r(55053);let a=class extends o.ChromiumDebugConfigurationResolver{async resolveDebugConfigurationAsync(e,t){if(!t.name&&!t.type&&!t.request){const e=(new c).createLaunchConfigFromContext();if(!e)return null;t=e}return await this.resolveBrowserCommon(e,t),"attach"===t.request?Object.assign(Object.assign({},i.chromeAttachConfigDefaults),t):Object.assign(Object.assign({},i.chromeLaunchConfigDefaults),t)}getType(){return"pwa-chrome"}};a=n([(0,s.injectable)()],a),t.ChromeDebugConfigurationResolver=a;let c=class extends o.ChromiumDebugConfigurationProvider{getType(){return"pwa-chrome"}};c=n([(0,s.injectable)()],c),t.ChromeDebugConfigurationProvider=c},3261: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.__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.ChromiumDebugConfigurationProvider=t.ChromiumDebugConfigurationResolver=void 0;const c=r(55053),u=r(22037),l=r(71017),p=s(r(89496)),d=s(r(33463)),h=r(77551),f=r(26379),m=r(78986),g=r(99010),y=r(73952),b=r(80870),v=r(54268),w=r(74747),_=d.loadMessageBundle(r(71017).join(__dirname,"ui/configuration/chromiumDebugConfigurationProvider.js"));let S=class extends b.BaseConfigurationResolver{constructor(e,t,r,n,i){super(e),this.nodeProvider=t,this.terminalProvider=r,this.location=n,this.fs=i}async resolveBrowserCommon(e,t){if(t.request,t.server&&"program"in t.server){const r=Object.assign(Object.assign({},t.server),{type:"pwa-node",request:"launch",name:`${t.name}: Server`});t.server=await this.nodeProvider.resolveDebugConfiguration(e,r)}else t.server&&"command"in t.server&&(t.server=await this.terminalProvider.resolveDebugConfiguration(e,Object.assign(Object.assign({},t.server),{type:"node-terminal",request:"launch",name:`${t.name}: Server`})));const r="remote"===this.location?"ui":"workspace";if("launch"!==t.request||t.browserLaunchLocation||(t.browserLaunchLocation=r),"attach"===t.request&&!t.browserAttachLocation&&(t.browserAttachLocation=r),"launch"===t.request){const e=t;this.applyDefaultRuntimeExecutable(e)}}getSuggestedWorkspaceFolders(e){return[e.rootPath,e.webRoot]}async resolveDebugConfigurationWithSubstitutedVariables(e,t){if("__pendingTargetId"in t)return t;let r=t;if("launch"===r.request){const e=await this.ensureNoLockfile(r);if(void 0===e)return;r=e}return r}async ensureNoLockfile(e){var t,r;if("launch"!==e.request)return e;const n=e;if(!1===n.userDataDir)return e;if(n.port&&!await(0,h.isPortOpen)(n.port))return e;const i="string"==typeof n.userDataDir?n.userDataDir:(0,l.join)(null!==(t=this.extensionContext.storagePath)&&void 0!==t?t:(0,u.tmpdir)(),(null===(r=n.runtimeArgs)||void 0===r?void 0:r.includes("--headless"))?".headless-profile":".profile"),o=(0,l.join)(i,"win32"===process.platform?"lockfile":"SingletonLock");if(await(0,m.some)([(0,f.existsWithoutDeref)(this.fs,o),this.isVsCodeLocked((0,l.join)(i,"code.lock"))])){const e=_(0,null);if(await p.window.showErrorMessage(_(1,null,!0===n.userDataDir?_(2,null):_(3,null)),{modal:!0},e)!==e)return}return Object.assign(Object.assign({},e),{userDataDir:i})}async isVsCodeLocked(e){try{const t=Number(await this.fs.readFile(e,"utf-8"));return process.kill(t,0),!0}catch(e){return!1}}};S=o([(0,c.injectable)(),a(0,(0,c.inject)(g.ExtensionContext)),a(1,(0,c.inject)(v.NodeConfigurationResolver)),a(2,(0,c.inject)(w.TerminalDebugConfigurationResolver)),a(3,(0,c.inject)(g.ExtensionLocation)),a(4,(0,c.inject)(g.FS))],S),t.ChromiumDebugConfigurationResolver=S;let k=class extends y.BaseConfigurationProvider{provide(){return this.createLaunchConfigFromContext()||this.getDefaultLaunch()}getTriggerKind(){return p.DebugConfigurationProviderTriggerKind.Initial}createLaunchConfigFromContext(){const e=p.window.activeTextEditor;if(e&&"html"===e.document.languageId)return{type:this.getType(),request:"launch",name:`Open ${(0,l.basename)(e.document.uri.fsPath)}`,file:e.document.uri.fsPath}}getDefaultLaunch(){return{type:this.getType(),request:"launch",name:_(4,null),url:"http://localhost:8080",webRoot:"${workspaceFolder}"}}};k=o([(0,c.injectable)()],k),t.ChromiumDebugConfigurationProvider=k},18234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugConfigurationProvider=t.IDebugConfigurationResolver=void 0,t.IDebugConfigurationResolver=Symbol("IDebugConfigurationResolver"),t.IDebugConfigurationProvider=Symbol("IDebugConfigurationProvider")},59434: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.EdgeDebugConfigurationProvider=t.EdgeDebugConfigurationResolver=void 0;const a=r(55053),c=s(r(33463)),u=r(73454),l=r(3261),p=c.loadMessageBundle(r(71017).join(__dirname,"ui/configuration/edgeDebugConfigurationProvider.js"));let d=class extends l.ChromiumDebugConfigurationResolver{async resolveDebugConfigurationAsync(e,t){var r;if(!t.name&&!t.type&&!t.request){const e=(new h).createLaunchConfigFromContext();if(!e)return;t=e}return await this.resolveBrowserCommon(e,t),t.useWebView&&(t.timeout=null!==(r=t.timeout)&&void 0!==r?r:0),"attach"===t.request?Object.assign(Object.assign({},u.edgeAttachConfigDefaults),t):Object.assign(Object.assign({},u.edgeLaunchConfigDefaults),t)}getType(){return"pwa-msedge"}};d=o([(0,a.injectable)()],d),t.EdgeDebugConfigurationResolver=d;let h=class extends l.ChromiumDebugConfigurationProvider{getType(){return"pwa-msedge"}getDefaultLaunch(){return Object.assign(Object.assign({},super.getDefaultLaunch()),{name:p(0,null)})}};h=o([(0,a.injectable)()],h),t.EdgeDebugConfigurationProvider=h},91763: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};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionHostConfigurationResolver=void 0;const i=r(57147),o=r(55053),s=r(71017),a=r(73454),c=r(80870);let u=class extends c.BaseConfigurationResolver{async resolveDebugConfigurationAsync(e,t){if(void 0===t.debugWebWorkerHost){const r=await p(e,t);t=Object.assign(Object.assign({},t),{debugWebWorkerHost:1===r.length&&"web"===r[0]})}return t.debugWebWorkerHost&&(t.outFiles=[]),Promise.resolve(Object.assign(Object.assign({},a.extensionHostConfigDefaults),t))}getType(){return"pwa-extensionHost"}};u=n([(0,o.injectable)()],u),t.ExtensionHostConfigurationResolver=u;const l="--extensionDevelopmentPath=",p=async(e,t)=>{var r,n,o,c;const u=null===(r=t.args)||void 0===r?void 0:r.find((e=>e.startsWith(l)));if(!u)return["workspace"];const p=(0,a.resolveVariableInConfig)(u.slice(l.length),"workspaceFolder",null!==(o=null!==(n=null==e?void 0:e.uri.fsPath)&&void 0!==n?n:t.__workspaceFolder)&&void 0!==o?o:"");let d;try{const e=await i.promises.readFile((0,s.join)(p,"package.json"),"utf-8");d=null!==(c=JSON.parse(e).extensionKind)&&void 0!==c?c:"workspace"}catch(e){return["workspace"]}return d instanceof Array?d:[d]}},72852: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.allConfigurationProviders=t.allConfigurationResolvers=void 0,i(r(18234),t);const o=r(51899),s=r(59434),a=r(91763),c=r(98102),u=r(54268),l=r(74747);t.allConfigurationResolvers=[o.ChromeDebugConfigurationResolver,s.EdgeDebugConfigurationResolver,a.ExtensionHostConfigurationResolver,u.NodeConfigurationResolver,l.TerminalDebugConfigurationResolver],t.allConfigurationProviders=[o.ChromeDebugConfigurationProvider,s.EdgeDebugConfigurationProvider,c.NodeInitialDebugConfigurationProvider,c.NodeDynamicDebugConfigurationProvider]},98102: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeDynamicDebugConfigurationProvider=t.NodeInitialDebugConfigurationProvider=void 0;const a=r(55053),c=s(r(71017)),u=s(r(89496)),l=s(r(33463)),p=r(7678),d=r(73454),h=r(65055),f=r(7905),m=r(73952),g=r(54268),y=l.loadMessageBundle(r(71017).join(__dirname,"ui/configuration/nodeDebugConfigurationProvider.js"));let b=class extends m.BaseConfigurationProvider{provide(e){return(0,g.createLaunchConfigFromContext)(e,!0)}getType(){return"pwa-node"}getTriggerKind(){return u.DebugConfigurationProviderTriggerKind.Initial}};b=o([(0,a.injectable)()],b),t.NodeInitialDebugConfigurationProvider=b;const v=["cwd","program"];let w=class extends m.BaseConfigurationProvider{async provide(e){const t=(0,p.flatten)(await Promise.all([this.getFromNpmScripts(e),this.getFromActiveFile()]));if(e)for(const r of t){const t=r;for(const r of v){const n=t[r];n&&c.isAbsolute(n)&&(t[r]=c.join("${workspaceFolder}",c.relative(e.uri.fsPath,n)))}}return t}getType(){return"pwa-node"}getTriggerKind(){return u.DebugConfigurationProviderTriggerKind.Dynamic}async getFromNpmScripts(e){const t={type:"node-terminal",name:y(0,null),request:"launch",cwd:null==e?void 0:e.uri.fsPath};if(!e)return[t];const r=await(0,h.findScripts)([e.uri.fsPath],!0);if(!r)return[t];const n=await(0,f.getPackageManager)(e);return r.map((e=>({type:"node-terminal",name:y(1,null,e.name),request:"launch",command:`${n} run ${e.name}`,cwd:e.directory}))).concat(t)}getFromActiveFile(){const e=u.window.activeTextEditor;return e&&d.breakpointLanguages.includes(e.document.languageId)&&"file"===e.document.uri.scheme?[{type:"pwa-node",name:y(2,null),request:"launch",program:e.document.uri.fsPath}]:[]}};w=o([(0,a.injectable)()],w),t.NodeDynamicDebugConfigurationProvider=w},54268: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.__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.createLaunchConfigFromContext=t.guessWorkingDirectory=t.NodeConfigurationResolver=void 0;const c=r(57147),u=r(55053),l=s(r(71017)),p=s(r(89496)),d=s(r(33463)),h=r(97878),f=r(94570),m=r(77551),g=r(26379),y=r(79783),b=r(97208),v=r(73454),w=r(99010),_=r(45957),S=r(52517),k=r(66678),P=r(80870),x=d.loadMessageBundle(r(71017).join(__dirname,"ui/configuration/nodeDebugConfigurationResolver.js"));let C=class extends P.BaseConfigurationResolver{constructor(e,t,r){super(e),this.nvmResolver=t,this.fsUtils=r}async resolveDebugConfigurationWithSubstitutedVariables(e,t){const r=t;if("pwa-node"===r.type&&"attach"===r.request&&"string"==typeof r.processId&&await(0,k.resolveProcessId)(this.fsUtils,r),r.cwd){const e=await(0,g.existsInjected)(c.promises,r.cwd);if(!e)return void p.window.showErrorMessage(x(0,null,r.cwd),{modal:!0});if(!e.isDirectory())return void p.window.showErrorMessage(x(1,null,r.cwd),{modal:!0})}return r}async resolveDebugConfigurationAsync(e,t,r){if(t.name||t.type||t.request||"launch"!==(t=await D(e,!0,t)).request||t.program){if(t.cwd||(t.cwd=t.localRoot||E("launch"===t.request?t.program:void 0,e)),t.remoteRoot&&!t.localRoot&&(t.localRoot="${workspaceFolder}"),"launch"===t.request){this.applyDefaultRuntimeExecutable(t);const n=t.runtimeVersion;if("string"==typeof n&&"default"!==n){const{directory:e,binary:r}=await this.nvmResolver.resolveNvmVersionPath(n);t.env=new f.EnvironmentVars(t.env).addToPath(e,"prepend",!0).value,t.runtimeExecutable=t.runtimeExecutable&&"node"!==t.runtimeExecutable?t.runtimeExecutable:r}if("integratedTerminal"!==t.console||t.internalConsoleOptions||(t.internalConsoleOptions="neverOpen"),null===t.attachSimplePort||void 0===t.attachSimplePort)(0,S.fixInspectFlags)(t);else{if(0===t.attachSimplePort){t.attachSimplePort=await(0,m.findOpenPort)(void 0,r);const e=`--inspect-brk=${t.attachSimplePort}`;t.runtimeArgs=t.runtimeArgs?[...t.runtimeArgs,e]:[e]}t.continueOnAttach=!t.stopOnEntry,t.stopOnEntry=!1}await async function(e,t,r){if(r.outFiles||!t)return;let n;if(r.program?(n=O(t,r.program),n&&(n=l.dirname(n))):r.cwd&&(n=O(t,r.cwd)),!n||(0,y.isSubpathOrEqualTo)(t.uri.fsPath,n))return;const i=await(0,b.nearestDirectoryWhere)(n,(async t=>!t.includes("node_modules")&&await e.exists(l.join(t,"package.json"))));if(i){const e=(0,y.forceForwardSlashes)(l.relative(t.uri.fsPath,i));e.length&&(r.outFiles=[...v.baseDefaults.outFiles,`\${workspaceFolder}/${e}/**/*.js`,`!\${workspaceFolder}/${e}/**/node_modules/**`])}}(this.fsUtils,e,t)}return(0,v.applyNodeDefaults)(t)}p.window.showErrorMessage(x(2,null),{modal:!0})}getType(){return"pwa-node"}getSuggestedWorkspaceFolders(e){return[e.rootPath,e.cwd]}};function E(e,t){if(t)return t.uri.fsPath;if(p.workspace.workspaceFolders&&p.workspace.workspaceFolders.length>0)return p.workspace.workspaceFolders[0].uri.fsPath;if(e){if("${file}"===e)return"${fileDirname}";if(l.isAbsolute(e))return l.dirname(e)}return"${workspaceFolder}"}function O(e,t){var r;return e&&(t=(0,v.resolveVariableInConfig)(t,"workspaceFolder",e.uri.fsPath)),(null===(r=p.workspace.workspaceFolders)||void 0===r?void 0:r.length)&&(t=(0,v.resolveVariableInConfig)(t,"workspaceRoot",p.workspace.workspaceFolders[0].uri.fsPath)),l.isAbsolute(t)?t:e?l.join(e.uri.fsPath,t):void 0}async function D(e,t,r){var n;const i={type:"pwa-node",request:"launch",name:x(3,null),skipFiles:["<node_internals>/**"]};r&&r.noDebug&&(i.noDebug=!0);const o=await T(e,"package.json");let s,a=!1;if(o&&"mern-starter"===o.name)return t&&(0,h.writeToConsole)(x(4,null,"Mern Starter")),function(e){"launch"===e.request&&(e.runtimeExecutable="nodemon",e.program="${workspaceFolder}/index.js",e.restart=!0,e.env={BABEL_DISABLE_CACHE:"1",NODE_ENV:"development"},e.console="integratedTerminal",e.internalConsoleOptions="neverOpen")}(i),i;if(o&&(s=await async function(e,t,r){let n;try{if(t.main?n=t.main:t.scripts&&"string"==typeof t.scripts.start&&(n=t.scripts.start.split(" ").pop()),n){let t;if(l.isAbsolute(n)?t=n:(t=e?l.join(e.uri.fsPath,n):void 0,n=l.join("${workspaceFolder}",n)),r&&t&&!await(0,g.existsInjected)(c.promises,t)&&!await(0,g.existsInjected)(c.promises,t+".js"))return}}catch(e){}return n}(e,o,t),s&&t&&(0,h.writeToConsole)(x(5,null))),!s){const t=p.window.activeTextEditor;t&&v.breakpointLanguages.includes(t.document.languageId)&&(a="javascript"!==t.document.languageId,s=e?l.relative(e.uri.fsPath,t.document.uri.fsPath):t.document.uri.fsPath,l.isAbsolute(s)||(s="${workspaceFolder}"+l.sep+s))}if(s||(s="${file}"),s&&(i.program=s,e||(i.__workspaceFolder=l.dirname(s))),a||p.workspace.textDocuments.some((e=>{return"typescript"===(t=e.languageId)||"coffeescript"===t;var t}))){t&&(0,h.writeToConsole)(x(6,null));let r="";const o=await T(e,"tsconfig.json");if((null===(n=null==o?void 0:o.compilerOptions)||void 0===n?void 0:n.outDir)&&function(){const e=p.workspace.getConfiguration().get("typescript.tsc.autoDetect");return"off"!==e&&"watch"!==e}()){const e=o.compilerOptions.outDir;l.isAbsolute(e)||(r=e,0===r.indexOf("./")&&(r=r.substr(2)),"/"!==r[r.length-1]&&(r+="/")),i.preLaunchTask="tsc: build - tsconfig.json"}i.outFiles=["${workspaceFolder}/"+r+"**/*.js"]}return i}async function T(e,t){if(e)try{const r=await c.promises.readFile(l.join(e.uri.fsPath,t),"utf8");return JSON.parse(r)}catch(e){}}C=o([(0,u.injectable)(),a(0,(0,u.inject)(w.ExtensionContext)),a(1,(0,u.inject)(_.INvmResolver)),a(2,(0,u.inject)(g.IFsUtils))],C),t.NodeConfigurationResolver=C,t.guessWorkingDirectory=E,t.createLaunchConfigFromContext=D},74747: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.__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.TerminalDebugConfigurationResolver=void 0;const s=o(r(89496)),a=r(8216),c=r(73454),u=r(80870),l=r(54268);class p extends u.BaseConfigurationResolver{async resolveDebugConfigurationAsync(e,t){if(t.cwd||(t.cwd=(0,l.guessWorkingDirectory)(void 0,e)),"launch"!==t.request||t.command)return t.remoteRoot&&!t.localRoot&&(t.localRoot="${workspaceFolder}"),(0,c.applyTerminalDefaults)(t);await(0,a.runCommand)(s.commands,"extension.js-debug.createDebuggerTerminal",void 0,e)}getType(){return"node-terminal"}}t.TerminalDebugConfigurationResolver=p},52517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixInspectFlags=void 0,t.fixInspectFlags=function(e){if(!e.runtimeArgs||e.attachSimplePort)return;const t=[];for(const r of e.runtimeArgs)/^--inspect-brk(=|$)/.test(r)?e.stopOnEntry=e.stopOnEntry||!0:t.push(r);e.runtimeArgs=t}},2072: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.__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.registerCustomBreakpointsUI=void 0;const s=o(r(89496)),a=r(4348),c=r(44936),u=r(2511);class l{constructor(e,t){this.id=e.id,this.enabled=t,this.label=`${e.group}: ${e.title}`,this.treeItem=new s.TreeItem(this.label),this.treeItem.id=e.id}static compare(e,t){return e.label.localeCompare(t.label)}}class p{constructor(e){this._onDidChangeTreeData=new c.EventEmitter,this.onDidChangeTreeData=this._onDidChangeTreeData.event,this.breakpoints=[];for(const e of(0,a.customBreakpoints)().values())this.breakpoints.push(new l(e,!1));this._debugSessionTracker=e,e.onSessionAdded((e=>{u.DebugSessionTracker.isConcreteSession(e)&&e.customRequest("enableCustomBreakpoints",{ids:this.breakpoints.filter((e=>e.enabled)).map((e=>e.id))})}))}getTreeItem(e){return e.treeItem}async getChildren(e){return e?[]:this.breakpoints.filter((e=>e.enabled)).sort(l.compare)}async getParent(){}addBreakpoints(e){for(const t of e)t.enabled=!0;const t=e.map((e=>e.id));for(const e of this._debugSessionTracker.getConcreteSessions())e.customRequest("enableCustomBreakpoints",{ids:t});this._onDidChangeTreeData.fire(void 0)}removeBreakpoints(e){const t=new Set(e);for(const e of this.breakpoints)t.has(e.id)&&(e.enabled=!1);for(const t of this._debugSessionTracker.getConcreteSessions())t.customRequest("disableCustomBreakpoints",{ids:e});this._onDidChangeTreeData.fire(void 0)}}t.registerCustomBreakpointsUI=function(e,t){const r=new p(t);s.window.createTreeView("jsBrowserBreakpoints",{treeDataProvider:r}),e.subscriptions.push(s.commands.registerCommand("extension.js-debug.addCustomBreakpoints",(()=>{const e=s.window.createQuickPick(),t=r.breakpoints.filter((e=>!e.enabled));e.items=t,e.onDidAccept((()=>{r.addBreakpoints(e.selectedItems),e.dispose()})),e.show()}))),e.subscriptions.push(s.commands.registerCommand("extension.js-debug.removeAllCustomBreakpoints",(()=>{r.removeBreakpoints(r.breakpoints.filter((e=>e.enabled)).map((e=>e.id)))}))),e.subscriptions.push(s.commands.registerCommand("extension.js-debug.removeCustomBreakpoint",(e=>{r.removeBreakpoints([e.id])})))}},67809: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.__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.DebugLinkUi=void 0;const c=r(55053),u=r(57310),l=s(r(89496)),p=s(r(33463)),d=r(8216),h=r(8261),f=r(99010),m=p.loadMessageBundle(r(71017).join(__dirname,"ui/debugLinkUI.js"));function g(e,t){if(e){try{if(new u.URL(e).hostname)return e}catch(e){}try{const r=`http://${e}`,n=new u.URL(r);if(!t||n.port)return r}catch(e){}}}let y=class{constructor(e,t){this.defaultBrowser=e,this.context=t}register(e){e.subscriptions.push(l.commands.registerCommand("extension.js-debug.debugLink",(e=>this.handle(e))))}async handle(e){var t,r,n;if(!(e=null!==(t=null!=e?e:await this.getLinkFromTextEditor())&&void 0!==t?t:await this.getLinkFromQuickInput()))return;let i="pwa-chrome";try{3===await this.defaultBrowser.lookup()&&(i="pwa-msedge")}catch(e){}const o=null!==(r=(0,d.readConfig)(l.workspace,"debug.javascript.debugByLinkOptions"))&&void 0!==r?r:{},s=Object.assign(Object.assign({},"string"==typeof o?{}:o),{type:i,name:e,request:"launch",url:e});l.debug.startDebugging(null===(n=l.workspace.workspaceFolders)||void 0===n?void 0:n[0],s),this.persistConfig(s)}getLinkFromTextEditor(){const e=l.window.activeTextEditor;if(e)return g(e.document.getText(e.selection),!0)}async getLinkFromQuickInput(){const e=await l.env.clipboard.readText(),t=await l.window.showInputBox({value:g(e,!1)||this.mostRecentLink,placeHolder:"https://localhost:8080",validateInput:e=>{if(e&&!g(e,!1))return m(0,null)}});if(t)return this.mostRecentLink=t,t}async persistConfig(e){var t;if(!1===this.context.globalState.get("saveDebugLinks"))return;const r=l.workspace.getConfiguration("launch"),n=null!==(t=r.get("configurations"))&&void 0!==t?t:[];if(n.some((t=>t.url===e.url)))return;const i=m(1,null),o=m(2,null),s=await l.window.showInformationMessage(m(3,null),i,m(4,null),o);s===o&&this.context.globalState.update("saveDebugLinks",!1),s===i&&await r.update("configurations",[...n,e])}};y=o([(0,c.injectable)(),a(0,(0,c.inject)(h.IDefaultBrowserProvider)),a(1,(0,c.inject)(f.ExtensionContext))],y),t.DebugLinkUi=y},65055: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.__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.findScripts=t.debugNpmScript=void 0;const s=o(r(57147)),a=o(r(71017)),c=o(r(89496)),u=o(r(33463)),l=r(8216),p=r(26379),d=r(7905),h=u.loadMessageBundle(r(71017).join(__dirname,"ui/debugNpmScript.js"));t.debugNpmScript=async function(e){const t=await m(e?[e]:void 0);if(!t)return;const r=async e=>{const t=c.workspace.getWorkspaceFolder(c.Uri.file(e.directory));(0,l.runCommand)(c.commands,"extension.js-debug.createDebuggerTerminal",await(0,d.getRunScriptCommand)(e.name,t),t,{cwd:e.directory})};if(1===t.length)return r(t[0]);const n=t.some((e=>e.directory!==t[0].directory)),i=c.window.createQuickPick();i.items=t.map((e=>({script:e,label:n?`${a.basename(e.directory)}: ${e.name}`:e.name,description:e.command}))),i.onDidAccept((async()=>{r(i.selectedItems[0].script),i.dispose()})),i.show()};const f=(e,t)=>e.score>t.score?e:t;async function m(e,t=!1){var r,n;const i=null!==(n=null!=e?e:null===(r=c.workspace.workspaceFolders)||void 0===r?void 0:r.map((e=>e.uri.fsPath)))&&void 0!==n?n:[];if(!i||0===i.length)return void(t||c.window.showErrorMessage(h(0,null)));const o=i.map((e=>a.join(e,"package.json"))),u=[];let l={path:o[0],score:0};for(const e of o){if(!s.existsSync(e))continue;let r;l=f(l,{path:e,score:1});try{r=JSON.parse(await(0,p.readfile)(e))}catch(r){t||g("showWarningMessage",h(1,null,e,r.message),e),l=f(l,{path:void 0,score:3});continue}if(l=f(l,{path:void 0,score:2}),r.scripts)for(const t of Object.keys(r.scripts))u.push({directory:a.dirname(e),name:t,command:r.scripts[t]})}if(0!==u.length)return u.sort(((e,t)=>("start"===e.name?-1:0)+("start"===t.name?1:0))),u;l.path&&!t&&g("showErrorMessage",h(2,null),l.path)}async function g(e,t,r){const n=h(3,null);if(await c.window[e](t,n)!==n)return;if(s.existsSync(r)){const e=await c.workspace.openTextDocument(r);return void await c.window.showTextDocument(e)}const i=await c.workspace.openTextDocument(c.Uri.file(r).with({scheme:"untitled"})),o=await c.window.showTextDocument(i);await o.edit((e=>e.insert(new c.Position(0,0),'{\n  "scripts": {\n    \n  }\n}\n')));const a=new c.Position(2,5);o.selection=new c.Selection(a,a)}t.findScripts=m},2511:function(e,t,r){"use strict";var n,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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},a=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)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugSessionTracker=void 0;const c=r(55053),u=a(r(89496)),l=r(8216);let p=n=class{constructor(){this._onSessionAddedEmitter=new u.EventEmitter,this._onSessionEndedEmitter=new u.EventEmitter,this._disposables=[],this.sessions=new Map,this.onSessionAdded=this._onSessionAddedEmitter.event,this.onSessionEnded=this._onSessionEndedEmitter.event}static isConcreteSession(e){return!!e.configuration.__pendingTargetId}static pickSession(e,t){if(e.length<2)return e[0];const r=u.window.createQuickPick();return r.title=t,r.items=e.map((e=>({label:e.name,id:e.id}))),r.ignoreFocusOut=!0,new Promise((t=>{r.onDidAccept((()=>t(e.find((e=>{var t;return e.id===(null===(t=r.selectedItems[0])||void 0===t?void 0:t.id)}))))),r.onDidHide((()=>t(void 0))),r.show()})).finally((()=>r.dispose()))}getById(e){return this.sessions.get(e)}isRunning(e){return[...this.sessions.values()].includes(e)}getByName(e){return[...this.sessions.values()].filter((t=>t.name===e))}getConcreteSessions(){return[...this.sessions.values()].filter(n.isConcreteSession)}getChildren(e){return[...this.sessions.values()].filter((t=>t.configuration.__parentId===e.id))}attach(){u.debug.onDidStartDebugSession((e=>{(0,l.isDebugType)(e.type)&&(this.sessions.set(e.id,e),this._onSessionAddedEmitter.fire(e))}),void 0,this._disposables),u.debug.onDidTerminateDebugSession((e=>{(0,l.isDebugType)(e.type)&&(this.sessions.delete(e.id),this._onSessionEndedEmitter.fire(e))}),void 0,this._disposables),u.debug.onDidReceiveDebugSessionCustomEvent((e=>{if((0,l.isDebugType)(e.session.type))if("revealLocationRequested"!==e.event)if("copyRequested"!==e.event);else{const t=e.body;u.env.clipboard.writeText(t.text)}else{const t=e.body,r=u.debug.asDebugSourceUri(e.body.source),n={};if(t.line){const e=new u.Position((t.line||1)-1,(t.column||1)-1);n.selection=new u.Range(e,e)}u.window.showTextDocument(r,n)}}),void 0,this._disposables)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}};p=n=s([(0,c.injectable)()],p),t.DebugSessionTracker=p},12128: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.__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.DebugSessionTunnels=void 0;const s=o(r(89496)),a=r(5376);t.DebugSessionTunnels=class{constructor(){this.tunnels=new Map,this.disposable=new a.DisposableList,this.disposable.push(s.debug.onDidTerminateDebugSession((e=>this.destroySession(e.id))))}dispose(){return this.disposable.dispose()}destroySession(e){const t=this.tunnels.get(e);t&&(t.dispose(),this.tunnels.delete(e))}async request(e,t){var r;let n,i=this.tunnels.get(e);if(i||(i=await s.workspace.openTunnel({remoteAddress:{port:t.remotePort,host:"localhost"},localAddressPort:null!==(r=t.localPort)&&void 0!==r?r:t.remotePort,label:t.label})),"string"==typeof i.localAddress){const[e,t]=i.localAddress.split(":");n={host:e,port:Number(t)}}else n=i.localAddress;return{remoteAddress:i.remoteAddress,localAddress:n}}}},90781: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.__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.registerDebugTerminalUI=t.launchVirtualTerminalParent=void 0;const s=r(22037),a=o(r(89496)),c=o(r(33463)),u=r(91183),l=r(25370),p=r(8216),d=r(44936),h=r(59657),f=r(73454),m=r(7964),g=r(99010),y=r(82252),b=r(41978),v=r(13213),w=r(71592),_=r(74966),S=r(16362),k=r(63634),P=c.loadMessageBundle(r(71017).join(__dirname,"ui/debugTerminalUI.js"));t.launchVirtualTerminalParent=(e,t,r={},n=(()=>!0))=>{const i=new k.DapTelemetryReporter,o=Object.assign(Object.assign({},(0,p.readConfig)(a.workspace,"debug.javascript.terminalOptions")),{internalConsoleOptions:"neverOpen"}),s=(0,m.createPendingDapApi)();i.attachDap(s);let c=new Set;const u=async e=>{var n,i;const o=await t.getProcessTelemetry(e),s=o&&a.Uri.file(o.cwd),c=s&&a.workspace.getWorkspaceFolder(s);return c?c.uri:r.__workspaceFolder?a.Uri.file(r.__workspaceFolder):null!==(i=null===(n=a.workspace.workspaceFolders)||void 0===n?void 0:n[0].uri)&&void 0!==i?i:s};return t.onTargetListChanged((async()=>{const r=await a.workspace.requestWorkspaceTrust(),i=new Set;for(const l of t.targetList()){if(i.add(l),c.has(l)){c.delete(l);continue}const t=e.addDelegate(l,s,l.parent());if(!n(l))return void l.detach();if(l.targetInfo.openerId&&!l.parent())return void l.detach();if(!r)return void l.detach();if(!l.parent()){const e=await u(l);l instanceof b.NodeTarget&&e&&l.refreshPathResolver(e.fsPath),a.debug.startDebugging(e&&a.workspace.getWorkspaceFolder(e),Object.assign(Object.assign({},o),{type:"node-terminal",name:"Node.js Process",request:"attach",delegateId:t,__workspaceFolder:e}))}}for(const t of c)e.removeDelegate(t);c=i})),t.launch((0,f.applyDefaults)(Object.assign(Object.assign(Object.assign({},o),{type:"node-terminal",name:f.terminalBaseDefaults.name,request:"launch"}),r)),{dap:s,telemetryReporter:i,cancellationToken:l.NeverCancelled,get targetOrigin(){return new S.MutableTargetOrigin("<unset>")}})};const x=Symbol("Abort"),C=(0,s.homedir)(),E="win32"===process.platform?e=>e:e=>e.startsWith(C)?`~${e.slice(C.length)}`:e;class O extends w.TerminalNodeLauncher{constructor(){super(...arguments),this.optionsReadyEmitter=new d.EventEmitter,this.onOptionsReady=this.optionsReadyEmitter.event}createTerminal(e){return this.optionsReadyEmitter.fire(e),new Promise((e=>{const t=a.window.onDidOpenTerminal((r=>{t.dispose(),e(r)}))}))}}t.registerDebugTerminalUI=function(e,r,n,i){var o,s;const c=new Map,l=(e,t)=>new w.TerminalNodeLauncher(t,e,i.get(g.FS),i.get(_.NodeOnlyPathResolverFactory),i.get(u.IPortLeaseTracker));async function d(e,r,o,s,u=l){if(!o){const e=await async function(){var e;const t=a.workspace.workspaceFolders;if(!t||t.length<2)return null==t?void 0:t[0];const r=await a.window.showQuickPick(t.map((e=>({label:e.name,description:E(e.uri.fsPath),folder:e}))),{placeHolder:P(0,null)});return null!==(e=null==r?void 0:r.folder)&&void 0!==e?e:x}();if(e===x)return;o=e}if(r)for(const[e,t]of c)if(t.folder===o&&t.cwd===(null==s?void 0:s.cwd)&&!t.launcher.targetList().length)return e.show(!0),void e.sendText(r);const p=new h.ProxyLogger,d=u(p,new y.NodeBinaryProvider(p,i.get(g.FS),v.noPackageJsonProvider));d.onTerminalCreated((e=>{c.set(e,{launcher:d,folder:o,cwd:null==s?void 0:s.cwd}),n.enableHandlingInTerminal(e)}));try{await(0,t.launchVirtualTerminalParent)(e,d,Object.assign(Object.assign({command:r},s),{__workspaceFolder:null==o?void 0:o.uri.fsPath}),(()=>{for(const[e,t]of c)if(t.launcher===d&&e.state.isInteractedWith)return!0;return!1}))}catch(e){a.window.showErrorMessage(e.message)}}e.subscriptions.push(a.window.onDidCloseTerminal((e=>{c.delete(e)})),(0,p.registerCommand)(a.commands,"extension.js-debug.createDebuggerTerminal",((e,t,n)=>d(r,e,t,n))),a.window.registerTerminalProfileProvider("extension.js-debug.debugTerminal",{provideTerminalProfile:()=>new Promise((e=>d(r,void 0,void 0,void 0,((t,r)=>{const n=new O(r,t,i.get(g.FS),i.get(_.NodeOnlyPathResolverFactory),i.get(u.IPortLeaseTracker));return n.onOptionsReady((t=>e(new a.TerminalProfile(t)))),n}))))}),null===(s=(o=a.window).registerTerminalLinkProvider)||void 0===s?void 0:s.call(o,n))}},76223: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.__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.DiagnosticsUI=void 0;const c=r(55053),u=s(r(89496)),l=s(r(33463)),p=r(8216),d=r(99010),h=r(2511),f=l.loadMessageBundle(r(71017).join(__dirname,"ui/diagnosticsUI.js")),m="neverRemind";let g=class{constructor(e,t,r){this.fs=e,this.context=t,this.tracker=r,this.dismissedForSession=!1,this.isPrompting=!1}register(e){e.subscriptions.push((0,p.registerCommand)(u.commands,"extension.js-debug.createDiagnostics",(async()=>this.getDiagnosticInfo(await this.getTargetSession()))),u.debug.onDidReceiveDebugSessionCustomEvent((async t=>{if("openDiagnosticTool"===t.event)return this.openDiagnosticTool(t.body.file);if("suggestDiagnosticTool"!==t.event||this.dismissedForSession||this.context.workspaceState.get(m)||this.isPrompting)return;this.isPrompting=!0;const r=f(0,null),n=f(1,null),i=f(2,null),o=await u.window.showInformationMessage("It looks like you might be having trouble with breakpoints. Would you like to open our diagnostic tool?",r,n,i);switch(this.isPrompting=!1,o){case r:this.getDiagnosticInfo(await this.getTargetSession(),!0);break;case i:e.workspaceState.update(m,!0);break;case n:this.dismissedForSession=!0}})))}getTargetSession(){const e=u.debug.activeDebugSession;if(!e||!(0,p.isDebugType)(null==e?void 0:e.type))return this.pickSession();if(h.DebugSessionTracker.isConcreteSession(e))return e;const t=this.tracker.getChildren(e);return 1===t.length?t[0]:this.pickSession()}pickSession(){return h.DebugSessionTracker.pickSession(this.tracker.getConcreteSessions(),f(3,null))}async getDiagnosticInfo(e,t=!1){if(!e||!this.tracker.isRunning(e))return void u.window.showErrorMessage(f(4,null));const{file:r}=await e.customRequest("createDiagnostics",{fromSuggestion:t});await this.openDiagnosticTool(r)}async openDiagnosticTool(e){u.window.createWebviewPanel("jsDebugDiagnostics","Debug Diagnostics",u.ViewColumn.Active,{enableScripts:!0}).webview.html=await this.fs.readFile(e,"utf-8")}};g=o([(0,c.injectable)(),a(0,(0,c.inject)(d.FS)),a(1,(0,c.inject)(d.ExtensionContext)),a(2,(0,c.inject)(h.DebugSessionTracker))],g),t.DiagnosticsUI=g},84986: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.DisableSourceMapUI=void 0;const a=r(55053),c=s(r(89496)),u=s(r(33463)),l=r(8216),p=u.loadMessageBundle(r(71017).join(__dirname,"ui/disableSourceMapUI.js"));let d=class{register(e){e.subscriptions.push(c.debug.onDidReceiveDebugSessionCustomEvent((e=>{if("suggestDisableSourcemap"!==e.event||!(0,l.isDebugType)(e.session.type))return;const t=e.body;this.unmap(e.session,t.source).catch((e=>c.window.showErrorMessage(e.message)))})))}async unmap(e,t){((0,l.readConfig)(c.workspace,"debug.javascript.unmapMissingSources")||await this.prompt())&&await e.customRequest("disableSourcemap",{source:t})}async prompt(){const e=p(0,null),t=p(1,null),r=p(2,null);switch(await c.window.showInformationMessage(p(3,null),e,t,p(4,null),r)){case e:return(0,l.writeConfig)(c.workspace,"debug.javascript.unmapMissingSources",!0,c.ConfigurationTarget.Global),!0;case t:return(0,l.writeConfig)(c.workspace,"debug.javascript.unmapMissingSources",!0,c.ConfigurationTarget.Workspace),!0;case r:return!0;default:return!1}}};d=o([(0,a.injectable)()],d),t.DisableSourceMapUI=d},1718: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.__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.EdgeDevToolOpener=void 0;const c=r(55053),u=s(r(89496)),l=s(r(33463)),p=r(8216),d=r(2511),h=l.loadMessageBundle(r(71017).join(__dirname,"ui/edgeDevToolOpener.js")),f=e=>{if("pwa-msedge"!==(null==e?void 0:e.type))return!1;const t=e.configuration.__browserTargetType;return"iframe"===t||"page"===t};let m=class{constructor(e){this.tracker=e}register(e){e.subscriptions.push((0,p.registerCommand)(u.commands,"extension.js-debug.openEdgeDevTools",(async()=>{const e=u.debug.activeDebugSession&&f(u.debug.activeDebugSession)?u.debug.activeDebugSession:await d.DebugSessionTracker.pickSession(this.tracker.getConcreteSessions().filter(f),h(0,null));if(!e)return;const t=function(e){let t=e;for(;t.parentSession;)t=t.parentSession;return t}(e);try{return await u.commands.executeCommand("vscode-edge-devtools.attachToCurrentDebugTarget",e.id,t.configuration)}catch(e){if(e instanceof Error&&/command .+ not found/.test(e.message))return u.commands.executeCommand("workbench.extensions.action.showExtensionsWithIds",["ms-edgedevtools.vscode-edge-devtools"]);throw e}})))}};m=o([(0,c.injectable)(),a(0,(0,c.inject)(d.DebugSessionTracker))],m),t.EdgeDevToolOpener=m},35874: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.__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.ExcludedCallersUI=t.ExcludedCaller=void 0;const c=r(6113),u=r(55053),l=r(71017),p=s(r(89496)),d=r(8216),h=r(2511),f=({name:e,line:t,column:r,source:n})=>`${e} (${(0,l.basename)(String(n.path))}:${t}:${r})`,m=({name:e,line:t,column:r,source:n})=>`${e} (${n.path}:${t}:${r})`,g=async({line:e,column:t,source:r})=>{if(0!==r.sourceReference||!r.path)return;const n=p.Uri.file(r.path),i=await p.workspace.openTextDocument(n),o=await p.window.showTextDocument(i),s=new p.Position(e-1,t-1);o.revealRange(new p.Range(s,s)),o.selection=new p.Selection(s,s)};class y{constructor(e,t){this.caller=e,this.target=t,this.treeItem=new p.TreeItem(`${f(e)} → ${f(t)}`,p.TreeItemCollapsibleState.None),this.treeItem.tooltip=`Breaks at ${m(t)} containing ${m(e)} will be skipped`,this.id=this.treeItem.id=(0,c.createHash)("sha1").update(JSON.stringify([e,t])).digest("base64")}toDap(){return{caller:this.caller,target:this.target}}}t.ExcludedCaller=y;let b=class{constructor(e){this.sessionTracker=e,this._onDidChangeTreeData=new p.EventEmitter,this.allCallers=new Map,this.lastHadCallers=!1,this.onDidChangeTreeData=this._onDidChangeTreeData.event}register(e){e.subscriptions.push(p.window.createTreeView("jsExcludedCallers",{treeDataProvider:this}),(0,d.registerCommand)(p.commands,"extension.js-debug.callers.add",(async(e,t)=>{var r;const n=await(null===(r=this.sessionTracker.getById(t.sessionId))||void 0===r?void 0:r.customRequest("stackTrace",{threadId:0,startFrame:0,levels:1}));if(!(null==n?void 0:n.stackFrames.length))return;const i=n.stackFrames[0],o=new y({name:t.frameName,column:t.frameLocation.range.startColumn,line:t.frameLocation.range.startLineNumber,source:t.frameLocation.source},{name:i.name,column:i.column,line:i.line,source:i.source});this.allCallers.set(o.id,o),this.triggerUpdate()})),(0,d.registerCommand)(p.commands,"extension.js-debug.callers.goToCaller",(e=>g(e.caller))),(0,d.registerCommand)(p.commands,"extension.js-debug.callers.gotToTarget",(e=>g(e.target))),(0,d.registerCommand)(p.commands,"extension.js-debug.callers.remove",(async e=>{this.allCallers.delete(e.id),this.triggerUpdate()})),(0,d.registerCommand)(p.commands,"extension.js-debug.callers.removeAll",(async()=>{this.allCallers.clear(),this.triggerUpdate()})),this.sessionTracker.onSessionAdded((e=>{this.allCallers.size>0&&this.sendCallersToSession(e)})))}getTreeItem(e){return e.treeItem}getChildren(e){return e?[]:[...this.allCallers.values()]}sendCallersToSession(e){e.customRequest("setExcludedCallers",{callers:[...this.allCallers.values()].map((e=>e.toDap()))})}triggerUpdate(){this._onDidChangeTreeData.fire(void 0);for(const e of this.sessionTracker.getConcreteSessions())this.sendCallersToSession(e);const e=this.allCallers.size>0;e!==this.lastHadCallers&&(p.commands.executeCommand("setContext","jsDebugHasExcludedCallers",e),this.lastHadCallers=e)}};b=o([(0,u.injectable)(),a(0,(0,u.inject)(h.DebugSessionTracker))],b),t.ExcludedCallersUI=b},7905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRunScriptCommand=t.getPackageManager=void 0;const n=r(89496);t.getPackageManager=async e=>{try{return await n.commands.executeCommand("npm.packageManager",null==e?void 0:e.uri)}catch(e){return"npm"}},t.getRunScriptCommand=async(e,r)=>`${await(0,t.getPackageManager)(r)} run ${e}`},64732:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILinkedBreakpointLocation=void 0,t.ILinkedBreakpointLocation=Symbol("ILinkedBreakpointLocation")},55226: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.__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.LinkedBreakpointLocationUI=void 0;const c=r(55053),u=s(r(33463)),l=r(99010),p=u.loadMessageBundle(r(71017).join(__dirname,"ui/linkedBreakpointLocationUI.js")),d="linkBpWarnIgnored";let h=class{constructor(e,t){this.vscode=e,this.context=t,this.didWarn=this.context.workspaceState.get(d,!1)}async warn(){if(this.didWarn)return;this.didWarn=!0;const e=p(0,null),t=p(1,null),r=await this.vscode.window.showWarningMessage("It looks like you have symlinked files. You might need to update your configuration to make this work as expected.",t,e);r===t?this.context.workspaceState.update(d,!0):r===e&&this.vscode.env.openExternal(this.vscode.Uri.parse("https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_can-i-debug-if-im-using-symlinks"))}};h=o([(0,c.injectable)(),a(0,(0,c.inject)(l.VSCodeApi)),a(1,(0,c.inject)(l.ExtensionContext))],h),t.LinkedBreakpointLocationUI=h},43530: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.__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.LongPredictionUI=void 0;const c=r(55053),u=r(71017),l=s(r(89496)),p=s(r(33463)),d=r(99010),h=p.loadMessageBundle(r(71017).join(__dirname,"ui/longPredictionUI.js")),f="omitLongPredictions";let m=class{constructor(e){this.context=e}register(e){e.subscriptions.push(l.debug.onDidReceiveDebugSessionCustomEvent((e=>{"longPrediction"===e.event&&this.promptLongBreakpoint(e.session.workspaceFolder)})))}async promptLongBreakpoint(e){if(this.context.workspaceState.get(f))return;const t=h(0,null),r=h(1,null),n=h(2,null),i=await l.window.showWarningMessage(t,n,r);if(i===n)return void this.context.workspaceState.update(f,!0);if(i!==r)return;if(e||(e=await l.window.showWorkspaceFolderPick()),!e)return void await l.window.showWarningMessage(h(3,null));const o=await l.workspace.openTextDocument((0,u.join)(e.uri.fsPath,".vscode","launch.json"));await l.window.showTextDocument(o)}};m=o([(0,c.injectable)(),a(0,(0,c.inject)(d.ExtensionContext))],m),t.LongPredictionUI=m},43302: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.JsDebugPortAttributesProvider=void 0;const o=r(55053),s=r(89496),a=r(91183);let c=class{constructor(e){this.leaseTracker=e,this.cachedResolutions=new Array(16).fill(""),this.cachedResolutionIndex=0}register(e){"function"==typeof s.workspace.registerPortAttributesProvider&&e.subscriptions.push(s.workspace.registerPortAttributesProvider({portRange:[53e3,54e3]},this))}async providePortAttributes(e,t){if(t&&this.cachedResolutions.includes(`${e}:${t}`))return{port:e,autoForwardAction:s.PortAutoForwardAction.Ignore};if(await this.leaseTracker.isRegistered(e)){if(t){const r=this.cachedResolutionIndex++%this.cachedResolutions.length;this.cachedResolutions[r]=`${e}:${t}`}return{port:e,autoForwardAction:s.PortAutoForwardAction.Ignore}}}};c=n([(0,o.injectable)(),i(0,(0,o.inject)(a.IPortLeaseTracker))],c),t.JsDebugPortAttributesProvider=c},43081: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.__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.PrettyPrintTrackerFactory=void 0;const s=o(r(63477)),a=o(r(89496)),c=r(89496),u=o(r(33463)),l=r(8216),p=r(5376),d=u.loadMessageBundle(r(71017).join(__dirname,"ui/prettyPrint.js"));class h{constructor(e){this.tracker=e,this.sessions=new p.DisposableList}static register(e){const t=new h(e);for(const e of l.allDebugTypes)a.debug.registerDebugAdapterTrackerFactory(e,t);return(0,l.registerCommand)(a.commands,"extension.js-debug.prettyPrint",(()=>t.prettifyActive())),t}createDebugAdapterTracker(e){if(!(0,l.readConfig)(a.workspace,"debug.javascript.suggestPrettyPrinting"))return;const t=new f(e);return this.sessions.push(t),a.debug.onDidTerminateDebugSession((r=>{r===e&&this.sessions.disposeObject(t)})),t}async prettifyActive(){const e=a.window.activeTextEditor;if("javascript"!==(null==e?void 0:e.document.languageId))return;const{sessionId:t,source:r}=g(e.document.uri),n=t&&this.tracker.getById(t);if(n)m(n,r,e.selection.start);else for(const t of this.tracker.getConcreteSessions())m(t,r,e.selection.start)}dispose(){this.sessions.dispose()}}t.PrettyPrintTrackerFactory=h;class f{constructor(e){this.session=e,this.candidatePaths=new Set,this.disposable=new p.DisposableList,this.suggested=new Set,this.disposable.push(a.window.onDidChangeActiveTextEditor((e=>this.onEditorChange(e))))}onDidSendMessage(e){var t,r,n,i;if("response"!==e.type||"stackTrace"!==e.command||!e.body)return;const o=e.body.stackFrames;if(!o)return;for(const e of o){const r=null===(t=e.source)||void 0===t?void 0:t.path;r&&this.candidatePaths.add(r)}const s=null===(n=null===(r=o[0])||void 0===r?void 0:r.source)||void 0===n?void 0:n.path;s&&(null===(i=a.window.activeTextEditor)||void 0===i?void 0:i.document.uri.path)===s&&this.onEditorChange(a.window.activeTextEditor)}dispose(){this.disposable.dispose()}onEditorChange(e){if("javascript"!==(null==e?void 0:e.document.languageId))return;const{source:t}=g(e.document.uri);if(!this.candidatePaths.has(t.path)&&0===t.sourceReference)return;const r=t.sourceReference||t.path;return!this.suggested.has(r)&&(this.suggested.add(r),function(e){for(let t=0;t<10&&t<e.lineCount;++t){const r=e.lineAt(t).text;if(r.length>500&&!r.startsWith("//#"))return!0}return!1}(e.document))?this.trySuggestPrinting(t,e.selection.start):void 0}async trySuggestPrinting(e,t){const r=await this.session.customRequest("canPrettyPrintSource",{source:e});if(!(null==r?void 0:r.canPrettyPrint))return;const n=d(0,null),i=d(1,null),o=d(2,null),s=await a.window.showInformationMessage("This JavaScript file seems to be minified.\nWould you like to pretty print it?",n,i,o);s===n?m(this.session,e,t):s===o&&(0,l.writeConfig)(a.workspace,"debug.javascript.suggestPrettyPrinting",!1,c.ConfigurationTarget.Global)}}const m=(e,t,r)=>e.customRequest("prettyPrintSource",{source:t,line:r.line,column:r.character}),g=e=>{const t=s.parse(e.query);return{sessionId:t.session,source:{path:e.fsPath,sourceReference:Number(t.ref)||0}}}},66678: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.__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.pickProcess=t.resolveProcessId=t.attachProcess=void 0;const s=r(32081),a=r(57147),c=r(71017),u=o(r(89496)),l=o(r(33463)),p=r(8216),d=r(26379),h=r(79783),f=r(97208),m=r(73454),g=r(92800),y=l.loadMessageBundle(r(71017).join(__dirname,"ui/processPicker.js"));async function b(e,t,r=!1){var n;const i=null===(n=t.processId)||void 0===n?void 0:n.trim(),o=i&&_(i);if(!o||isNaN(o.pid))throw new Error(y(0,null,i));if(o.port||function(e){try{if("win32"===process.platform){const t=`node -e process._debugProcess(${e})`;(0,s.execSync)(t)}else process.kill(e,"SIGUSR1")}catch(t){throw new Error(y(5,null,e,t))}}(o.pid),t.port=o.port||9229,delete t.processId,r){const r=await async function(e,t){var r;const n=t&&await g.processTree.getWorkingDirectory(t);if(!n)return null===(r=u.workspace.workspaceFolders)||void 0===r?void 0:r[0].uri.fsPath;const i=await(0,f.nearestDirectoryContaining)(e,n,"package.json");if(!i)return n;const o=u.workspace.getWorkspaceFolder(u.Uri.file(n));return!o||(0,h.isSubdirectoryOf)(o.uri.fsPath,i)?i:o.uri.fsPath}(e,o.pid);r&&(t.cwd=r)}}async function v(){try{const e=await async function(){const e=/^(?:node|iojs)(?:$|\b)/i;let t=0;const r=u.window.createQuickPick();r.placeholder=y(2,null),r.matchOnDescription=!0,r.matchOnDetail=!0,r.busy=!0,r.show();let n=!1;const i=new Promise((e=>{r.onDidAccept((()=>e(r.selectedItems[0]))),r.onDidHide((()=>e(void 0)))}));g.processTree.lookup(((i,o)=>{if(n)return o;"win32"===process.platform&&0===i.command.indexOf("\\??\\")&&(i.command=i.command.replace("\\??\\",""));const s=(0,c.basename)(i.command,".exe"),{port:a}=(0,g.analyseArguments)(i.args);if(!a&&!e.test(s))return o;const u={label:s,description:i.args,pidAndPort:w(i.pid,a),sortKey:i.date?i.date:t++,detail:a?y(3,null,i.pid,a,"SIGUSR1"):y(4,null,i.pid,"SIGUSR1")},l=o.findIndex((e=>e.sortKey<u.sortKey));return o.splice(-1===l?o.length:l,0,u),r.items=o,o}),[]).then((()=>r.busy=!1));const o=await i;return n=!0,r.dispose(),o}();return e?e.pidAndPort:null}catch(e){return await u.window.showErrorMessage(y(1,null,e.message),{modal:!0}),null}}t.attachProcess=async function(){const e=await v();if(!e)return;const t=(0,p.readConfig)(u.workspace,"debug.javascript.pickAndAttachOptions"),r=Object.assign(Object.assign(Object.assign({},m.nodeAttachConfigDefaults),t),{name:"process",processId:e});await b(new d.LocalFsUtils(a.promises),r,!0),await u.debug.startDebugging(r.cwd?u.workspace.getWorkspaceFolder(u.Uri.file(r.cwd)):void 0,r)},t.resolveProcessId=b,t.pickProcess=v;const w=(e,t)=>`${e}:${null!=t?t:""}`,_=e=>{const[t,r]=e.split(":");return{pid:Number(t),port:r?Number(r):void 0}}},18381:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseProcessTree=void 0;const i=r(32081),o=n(r(67794));t.BaseProcessTree=class{constructor(e=i.spawn){this.spawn=e}lookup(e,t){return new Promise(((r,n)=>{const i=this.createProcess(),s=this.createParser();i.on("error",n),i.stderr.on("error",(e=>n(`Error finding processes: ${e.toString()}`))),i.stdout.pipe((0,o.default)(/\r?\n/)).on("data",(r=>{const n=s(r);n&&(t=e(n,t))})),i.on("close",((e,i)=>{0===e?r(t):i?n(new Error(`process terminated with signal: ${i}`)):e&&n(new Error(`process terminated with exit code: ${e}`))}))}))}}},7559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarwinProcessTree=void 0;const n=r(71017),i=r(63945),o=r(18381);class s extends o.BaseProcessTree{constructor(e){super(),this.fsUtils=e}async getWorkingDirectory(e){try{const{stdout:t}=await(0,i.spawnAsync)("lsof",["-a","-dcwd","-Fn",`-p${e}`]),r=t.trim().split("\n").pop().slice(1);return r&&(0,n.isAbsolute)(r)&&await this.fsUtils.exists(r)?r:void 0}catch(e){if(e instanceof i.ChildProcessError)return;throw e}}createProcess(){return this.spawn("/bin/ps",["-xo",`pid=PID,ppid=PPID,comm=${"a".repeat(256)},command=COMMAND`])}createParser(){let e;return t=>{if(!e)return void(e=t.indexOf("COMMAND"));const r=/^\W*([0-9]+)\W*([0-9]+)\W*/.exec(t);return r?{pid:Number(r[1]),ppid:Number(r[2]),command:t.slice(r[0].length,e).trim(),args:t.slice(e).trim()}:void 0}}}t.DarwinProcessTree=s},51381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PosixProcessTree=void 0;const n=r(7559);class i extends n.DarwinProcessTree{createProcess(){return this.spawn("/bin/ps",["-axo","pid=PID,ppid=PPID,comm:30,command=COMMAND"])}createParser(){const e=super.createParser();return t=>{const r=e(t);if(!r)return;let n=r.args.indexOf(r.command);if(-1===n)return r;for(n+=r.command.length;n<r.args.length&&" "!==r.args[n];)n++;return r.command=r.args.substr(0,n),r.args=r.args.substr(n+1),r}}}t.PosixProcessTree=i},92800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analyseArguments=t.processTree=void 0;const n=r(57147),i=r(26379),o=r(7559),s=r(51381),a=r(61722),c=new i.LocalFsUtils(n.promises);t.processTree="win32"===process.platform?new a.WindowsProcessTree:"darwin"===process.platform?new o.DarwinProcessTree(c):new s.PosixProcessTree(c),t.analyseArguments=function(e){let t,r,n=/--inspect(-brk)?(=((\[[0-9a-fA-F:]*\]|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9\.]*):)?(\d+))?/.exec(e);return n&&n.length>=1&&(n.length>=5&&n[4]&&(t=n[4]),n.length>=6&&n[5]&&(r=parseInt(n[5]))),n=/--inspect-port=(\d+)/.exec(e),n&&2===n.length&&(r=parseInt(n[1])),{address:t,port:r}}},61722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsProcessTree=void 0;const n=r(71017),i=r(18381);class o extends i.BaseProcessTree{async getWorkingDirectory(){}createProcess(){const e=(0,n.join)(process.env.WINDIR||"C:\\Windows","System32","wbem","WMIC.exe");return this.spawn(e,["process","get","CommandLine,CreationDate,ParentProcessId,ProcessId"])}createParser(){const e=/^(.*)\s+([0-9]+)\.[0-9]+[+-][0-9]+\s+([0-9]+)\s+([0-9]+)$/;return t=>{const r=e.exec(t.trim());if(!r||5!==r.length)return;const n=Number(r[4]),i=Number(r[3]),o=Number(r[2]);let s=r[1].trim();if(!isNaN(n)&&!isNaN(i)&&s){let e=s;if('"'===s[0]){const t=s.indexOf('"',1);t>0&&(e=s.substr(1,t-1),s=s.substr(t+2))}else{const t=s.indexOf(" ");t>0?(e=s.substr(0,t),s=s.substr(t+1)):s=""}return{pid:n,ppid:i,command:e,args:s,date:o}}}}}t.WindowsProcessTree=o},22754: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.__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.registerProfilingCommand=void 0;const s=o(r(89496)),a=r(8216),c=r(79759);t.registerProfilingCommand=(e,t)=>{const r=t.get(c.UiProfileManager);e.subscriptions.push((0,a.registerCommand)(s.commands,"extension.js-debug.startProfile",(e=>r.start("string"==typeof e?{sessionId:e}:null!=e?e:{}))),(0,a.registerCommand)(s.commands,"extension.js-debug.stopProfile",(e=>r.stop(e))))}},94101: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.__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.BreakpointTerminationConditionFactory=void 0;const c=r(55053),u=s(r(71017)),l=s(r(89496)),p=s(r(33463)),d=r(7678),h=r(99010),f=p.loadMessageBundle(r(71017).join(__dirname,"ui/profiling/breakpointTerminationCondition.js")),m="breakpointTerminationWarnedSlow";let g=class{constructor(e,t){this.fs=e,this.context=t,this.sortOrder=2,this.id="breakpoint",this.label=f(0,null),this.description=f(1,null)}async onPick(e,t){if(t)return new y(t);const r=l.window.createQuickPick();r.canSelectMany=!0,r.matchOnDescription=!0,r.busy=!0;const n=await new Promise((t=>{r.onDidAccept((()=>t(r.selectedItems))),r.onDidHide((()=>t(void 0))),r.onDidChangeActive((async e=>{if(!e.length)return;const t=e[0].location,r=await l.workspace.openTextDocument(t.uri);l.window.showTextDocument(r,{selection:t.range,preview:!0,preserveFocus:!0})})),r.show(),(async()=>{const t=l.debug.breakpoints.filter((e=>e.enabled&&e instanceof l.SourceBreakpoint)),n=await Promise.all(t.map((t=>e.getDebugProtocolBreakpoint(t)))),i=await this.getCandidates(n,t);r.items=i,r.selectedItems=i,r.busy=!1})()}));return r.dispose(),n?(await this.warnSlowCode(),new y(n.map((e=>Number(e.id))))):void 0}async warnSlowCode(){this.context.workspaceState.get(m)||(l.window.showWarningMessage(f(2,null),f(3,null)),await this.context.workspaceState.update(m,!0))}async getCandidates(e,t){if(e.length!==t.length)throw new Error("Mismatched breakpoint array lengths");const r=(0,d.memoize)((e=>this.getFileLines(e)));return(await Promise.all(t.map((async(t,n)=>{var i;const o=e[n];if(!o||!o.id)return;const s=t.location,a=l.workspace.getWorkspaceFolder(s.uri),c=a?u.relative(a.uri.fsPath,s.uri.fsPath):s.uri.fsPath,p=await r(s.uri.fsPath);return{id:o.id,label:`${c}:${s.range.start.line}:${s.range.start.character}`,location:s,description:null===(i=null==p?void 0:p[s.range.start.line])||void 0===i?void 0:i.trim()}})))).filter(d.truthy)}async getFileLines(e){try{return(await this.fs.readFile(e,"utf-8")).split("\n")}catch(e){return}}};g=o([(0,c.injectable)(),a(0,(0,c.inject)(h.FS)),a(1,(0,c.inject)(h.ExtensionContext))],g),t.BreakpointTerminationConditionFactory=g;class y{constructor(e){this.breakpointIds=e}get customData(){return{stopAtBreakpoint:this.breakpointIds.slice()}}dispose(){}}},10592: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationTerminationConditionFactory=void 0;const a=s(r(33463)),c=s(r(89496)),u=r(55053),l=r(5376),p=a.loadMessageBundle(r(71017).join(__dirname,"ui/profiling/durationTerminationCondition.js"));let d=class{constructor(){this.sortOrder=1,this.id="duration",this.label=p(0,null),this.description=p(1,null)}async onPick(e,t){if(t)return new h(1e3*t);const r=c.window.createInputBox();r.title=p(2,null),r.placeholder=p(3,null),this.lastDuration&&(r.value=String(this.lastDuration)),r.onDidChangeValue((e=>{/^[0-9]+$/.test(e)?Number(e)<1?r.validationMessage=p(5,null):r.validationMessage=void 0:r.validationMessage=p(4,null)}));const n=await new Promise((e=>{r.onDidAccept((()=>{if(r.validationMessage)return e(void 0);this.lastDuration=Number(r.value),e(new h(1e3*this.lastDuration))})),r.onDidHide((()=>e(void 0))),r.show()}));return r.dispose(),n}};d=o([(0,u.injectable)()],d),t.DurationTerminationConditionFactory=d;class h{constructor(e){this.duration=e,this.disposable=new l.DisposableList}attachTo(e){const t=Date.now()+this.duration,r=()=>e.setStatus(1,`${Math.round((t-Date.now())/1e3)}s`),n=setTimeout((()=>e.stop()),this.duration),i=setInterval(r,1e3);r(),this.disposable.callback((()=>{clearTimeout(n),clearInterval(i)}))}dispose(){this.disposable.dispose()}}},86934: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.__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};Object.defineProperty(t,"__esModule",{value:!0}),t.ManualTerminationCondition=t.ManualTerminationConditionFactory=void 0;const a=s(r(33463)),c=r(55053),u=a.loadMessageBundle(r(71017).join(__dirname,"ui/profiling/manualTerminationCondition.js"));let l=class{constructor(){this.sortOrder=0,this.id="manual",this.label=u(0,null),this.description=u(1,null)}async onPick(){return new p}};l=o([(0,c.injectable)()],l),t.ManualTerminationConditionFactory=l;class p{dispose(){}}t.ManualTerminationCondition=p},68511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminationConditionFactory=void 0,t.ITerminationConditionFactory=Symbol("ITerminationConditionFactory")},79759: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.__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.UiProfileManager=void 0;const c=r(55053),u=r(22037),l=r(71017),p=s(r(89496)),d=s(r(33463)),h=r(23601),f=r(5376),m=r(26379),g=r(99010),y=r(2511),b=r(86934),v=r(68511),w=r(81764),_=d.loadMessageBundle(r(71017).join(__dirname,"ui/profiling/uiProfileManager.js")),S=e=>"__pendingTargetId"in e.configuration;let k=class{constructor(e,t,r,n){this.tracker=e,this.fs=t,this.sessionStates=r,this.terminationConditions=n,this.activeSessions=new Map,this.disposables=new f.DisposableList,this.disposables.push(p.debug.onDidReceiveDebugSessionCustomEvent((e=>{if("profileStarted"!==e.event)return;const t=e.body;let r=this.activeSessions.get(e.session.id);r||(r=new w.UiProfileSession(e.session,h.ProfilerFactory.ctors.find((e=>e.type===t.type))||h.ProfilerFactory.ctors[0],new b.ManualTerminationCondition),this.registerSession(r)),r.setFile(t.file)})))}async start(e){let t;const r=[...this.tracker.getConcreteSessions()].filter(S);if(t=e.sessionId?r.find((t=>t.id===e.sessionId)):await this.pickSession(r),!t)return;const n=t,i=this.activeSessions.get(n.id);if(i&&!await this.alreadyRunningSession(i))return;const o=await this.pickType(n,e.type);if(!o)return;let s;if(!o.instant&&(s=await this.pickTermination(n,e.termination),!s))return;const a=new w.UiProfileSession(n,o,s);a&&(this.registerSession(a,e.onCompleteCommand),await a.start(),o.instant&&await a.stop())}async stop(e){let t;if(e)t=this.activeSessions.get(e);else{const e=await this.pickSession([...this.activeSessions.values()].map((e=>e.session)));t=e&&this.activeSessions.get(e.id)}t&&(this.sessionStates.remove(t.session.id),await t.stop())}dispose(){for(const e of this.activeSessions.values())e.dispose();this.activeSessions.clear(),this.disposables.dispose()}registerSession(e,t){this.activeSessions.set(e.session.id,e),this.sessionStates.add(e.session.id,_(0,null)),e.onStatusChange((()=>this.updateStatusBar())),e.onStop((r=>{r&&this.openProfileFile(e,t,e.session,r),this.activeSessions.delete(e.session.id),e.dispose(),this.updateStatusBar()})),this.updateStatusBar()}async openProfileFile(e,t,r,n){var i,o,s,a;if(t)return Promise.all([p.commands.executeCommand(t,{contents:await this.fs.readFile(n,"utf-8"),basename:(0,l.basename)(n)+e.impl.extension}),this.fs.unlink(n)]);const c=null!==(a=null!==(o=null===(i=r.workspaceFolder)||void 0===i?void 0:i.uri.fsPath)&&void 0!==o?o:null===(s=p.workspace.workspaceFolders)||void 0===s?void 0:s[0].uri.fsPath)&&void 0!==a?a:(0,u.homedir)(),d=new Date,h=["vscode-profile",d.getFullYear(),d.getMonth()+1,d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()].map((e=>String(e).padStart(2,"0"))).join("-")+e.impl.extension,f=p.Uri.file((0,l.join)(c,h));await(0,m.moveFile)(this.fs,n,f.fsPath),await p.commands.executeCommand(e.impl.editable?"vscode.open":"revealInExplorer",f)}updateStatusBar(){var e;if(0===this.activeSessions.size)return null===(e=this.statusBarItem)||void 0===e||e.hide(),void p.commands.executeCommand("setContext","jsDebugIsProfiling",!1);if(this.statusBarItem||(this.statusBarItem=p.window.createStatusBarItem(p.StatusBarAlignment.Right,500),this.statusBarItem.command="extension.js-debug.stopProfile"),p.commands.executeCommand("setContext","jsDebugIsProfiling",!0),1===this.activeSessions.size){const e=this.activeSessions.values().next().value;this.statusBarItem.text=e.status?_(1,null,e.status):_(2,null)}else this.statusBarItem.text=_(3,null,this.activeSessions.size);this.statusBarItem.show()}async alreadyRunningSession(e){const t=_(4,null),r=_(5,null);return await p.window.showErrorMessage(_(6,null),t,r)===t&&(await this.stop(e.session.id),!0)}async pickSession(e){if(0===e.length)return;if(1===e.length)return e[0];const t=await p.window.showQuickPick(e.map((e=>({label:e.name,id:e.id}))));return t&&e.find((e=>e.id===t.id))}async pickType(e,t){const r=e.configuration;if(t)return h.ProfilerFactory.ctors.find((e=>e.type===t&&e.canApplyTo(r)));const n=await this.pickWithLastDefault(_(7,null),h.ProfilerFactory.ctors.filter((e=>e.canApplyTo(r))),this.lastChosenType);return n&&(this.lastChosenType=n.label),n}async pickTermination(e,t){var r,n;if(t){const i="string"==typeof t?{type:t}:t;return null===(r=this.terminationConditions.find((e=>e.id===i.type)))||void 0===r?void 0:r.onPick(e,...null!==(n=i.args)&&void 0!==n?n:[])}const i=await this.pickWithLastDefault(_(8,null),this.terminationConditions,this.lastChosenTermination);return i&&(this.lastChosenTermination=i.label),null==i?void 0:i.onPick(e)}async pickWithLastDefault(e,t,r){if(t.length<=1)return t[0];const n=p.window.createQuickPick();n.title=e,n.items=t.slice().sort(((e,t)=>{var n,i;return e.label===r||t.label===r?e.label===r?-1:1:(null!==(n=e.sortOrder)&&void 0!==n?n:0)-(null!==(i=t.sortOrder)&&void 0!==i?i:0)})).map((e=>({label:e.label,description:e.description,alwaysShow:!0})));const i=await new Promise((e=>{n.onDidAccept((()=>{var t;return e(null===(t=n.selectedItems[0])||void 0===t?void 0:t.label)})),n.onDidHide((()=>e(void 0))),n.show()}));return n.dispose(),i?t.find((e=>e.label===i)):void 0}};k=o([(0,c.injectable)(),a(0,(0,c.inject)(y.DebugSessionTracker)),a(1,(0,c.inject)(g.FS)),a(2,(0,c.inject)(g.SessionSubStates)),a(3,(0,c.multiInject)(v.ITerminationConditionFactory))],k),t.UiProfileManager=k},81764: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.__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.UiProfileSession=void 0;const s=o(r(89496)),a=o(r(33463)),c=r(5376),u=r(44936),l=a.loadMessageBundle(r(71017).join(__dirname,"ui/profiling/uiProfileSession.js"));t.UiProfileSession=class{constructor(e,t,r){var n;this.session=e,this.impl=t,this.termination=r,this.statusChangeEmitter=new u.EventEmitter,this.stopEmitter=new u.EventEmitter,this._innerStatus=[],this.disposables=new c.DisposableList,this.state=0,this.onStatusChange=this.statusChangeEmitter.event,this.onStop=this.stopEmitter.event,this.disposables.push(s.debug.onDidReceiveDebugSessionCustomEvent((t=>{t.session===e&&"profilerStateUpdate"===t.event&&this.onStateUpdate(t.body)})),s.debug.onDidTerminateDebugSession((t=>{t===e&&this.stopEmitter.fire(void 0)}))),r&&(this.disposables.push(r),null===(n=r.attachTo)||void 0===n||n.call(r,this))}get status(){return this._innerStatus.filter((e=>!!e)).join(", ")||void 0}async start(){try{await s.window.withProgress({location:s.ProgressLocation.Window,title:l(0,null)},(()=>{var e;return this.session.customRequest("startProfile",Object.assign({type:this.impl.type},null===(e=this.termination)||void 0===e?void 0:e.customData))}))}catch(e){s.window.showErrorMessage(e.message),this.stopEmitter.fire(void 0)}}dispose(){this.state=2,this.disposables.dispose()}setFile(e){this.file=e}async stop(){0===this.state&&(this.setStatus(-1,l(1,null)),this.state=1,await s.window.withProgress({location:s.ProgressLocation.Window,title:l(2,null)},(()=>this.session.customRequest("stopProfile",{}))))}onStateUpdate(e){e.running?this.setStatus(0,e.label):(this.state=2,this.stopEmitter.fire(this.file),this.dispose())}setStatus(e,t){0===this.state&&(-1===e?this._innerStatus=[t]:this._innerStatus[e]=t,this.statusChangeEmitter.fire(this.status))}}},61945: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.__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.registerRequestCDPProxy=void 0;const s=o(r(89496)),a=r(8216),c=r(12128);t.registerRequestCDPProxy=(e,t)=>{const r=new c.DebugSessionTunnels;e.subscriptions.push(r,(0,a.registerCommand)(s.commands,"extension.js-debug.requestCDPProxy",(async(e,n)=>{const i=t.getById(e);if(!i)return;const o=await i.customRequest("requestCDPProxy");if(!n)return o;try{const t=await r.request(e,{label:"Edge Devtools Tunnel",remotePort:o.port});return{host:t.localAddress.host,port:t.localAddress.port,path:o.path}}catch(e){return o}})))}},96365: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.__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.registerRevealPage=void 0;const s=o(r(89496)),a=r(8216);t.registerRevealPage=(e,t)=>{e.subscriptions.push((0,a.registerCommand)(s.commands,"extension.js-debug.revealPage",(async e=>{const r=t.getById(e);await(null==r?void 0:r.customRequest("revealPage"))})))}},53150: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};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRequestOptionsProvider=void 0;const i=r(55053),o=r(89496),s=r(41395),a=r(8216),c=r(7678);let u=class{constructor(){this.read=(0,c.once)((()=>(0,a.readConfig)(o.workspace,"debug.javascript.resourceRequestOptions")))}provideOptions(e){(0,s.mergeOptions)(e,this.read()||{})}};u=n([(0,i.injectable)()],u),t.SettingRequestOptionsProvider=u},96674: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};Object.defineProperty(t,"__esModule",{value:!0}),t.StartDebugingAndStopOnEntry=void 0;const i=r(55053),o=r(89496),s=r(8216);let a=class{register(e){e.subscriptions.push((0,s.registerCommand)(o.commands,"extension.node-debug.startWithStopOnEntry",(()=>o.commands.executeCommand("workbench.action.debug.start",{config:{stopOnEntry:!0}}))))}};a=n([(0,i.injectable)()],a),t.StartDebugingAndStopOnEntry=a},11503: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.__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.TerminalLinkHandler=void 0;const c=r(55053),u=r(31158),l=r(57310),p=s(r(89496)),d=s(r(33463)),h=r(8216),f=r(8261),m=r(5376),g=r(7678),y=r(97208),b=d.loadMessageBundle(r(71017).join(__dirname,"ui/terminalLinkHandler.js"));let v=class{constructor(e){this.defaultBrowser=e,this.enabledTerminals=new WeakSet,this.disposable=new m.DisposableList,this.notifiedCantOpenOnWeb=!1,this.baseConfiguration=this.readConfig(),this.disposable.push(p.workspace.onDidChangeConfiguration((e=>{e.affectsConfiguration("debug.javascript.debugByLinkOptions")&&(this.baseConfiguration=this.readConfig())})))}enableHandlingInTerminal(e){this.enabledTerminals.add(e)}dispose(){this.disposable.dispose()}provideTerminalLinks(e){var t;switch(this.baseConfiguration.enabled){case"off":return[];case"always":break;default:if(!this.enabledTerminals.has(e.terminal))return[]}const r=[],n=(0,g.once)((()=>{var t;if("cwd"in e.terminal.creationOptions&&e.terminal.creationOptions.cwd){const t=p.workspace.getWorkspaceFolder("string"==typeof e.terminal.creationOptions.cwd?p.Uri.file(e.terminal.creationOptions.cwd):e.terminal.creationOptions.cwd);if(t)return t}return null===(t=p.workspace.workspaceFolders)||void 0===t?void 0:t[0]}));for(const i of(0,u.find)(e.line,"url")){let o=-1;for(;-1!==(o=e.line.indexOf(i.value,o+1));){let e;try{e=new l.URL(i.href)}catch(e){continue}"http:"!==e.protocol||i.value.startsWith("http:")||(0,y.isLoopbackIp)(e.hostname)||(e.protocol="https:"),"http:"!==e.protocol&&"https:"!==e.protocol||r.push({startIndex:o,length:i.value.length,tooltip:b(0,null),target:e,workspaceFolder:null===(t=n())||void 0===t?void 0:t.index})}}return r}async handleTerminalLink(e){await this.handleTerminalLinkInner(e)||p.env.openExternal(p.Uri.parse(e.target.toString()))}async handleTerminalLinkInner(e){var t;if(!e.target)return!1;const r=e.target;if(p.env.uiKind===p.UIKind.Web)return this.notifiedCantOpenOnWeb||(p.window.showInformationMessage(b(1,null)),this.notifiedCantOpenOnWeb=!0),!1;(0,y.isMetaAddress)(r.hostname)&&(r.hostname="localhost");let n="pwa-chrome";try{3===await this.defaultBrowser.lookup()&&(n="pwa-msedge")}catch(e){}const i=void 0!==e.workspaceFolder?null===(t=p.workspace.workspaceFolders)||void 0===t?void 0:t[e.workspaceFolder]:void 0;return p.debug.startDebugging(i,Object.assign(Object.assign({},this.baseConfiguration),{type:n,name:r.toString(),request:"launch",url:r.toString()})),!0}readConfig(){let e=(0,h.readConfig)(p.workspace,"debug.javascript.debugByLinkOptions");return"boolean"==typeof e&&(e=e?"on":"off"),"string"==typeof e?{enabled:e}:Object.assign({enabled:"on"},e)}};v=o([(0,c.injectable)(),a(0,(0,c.inject)(f.IDefaultBrowserProvider))],v),t.TerminalLinkHandler=v},89935: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.__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.toggleSkippingFile=void 0;const s=o(r(89496)),a=r(57310),c=r(97208);t.toggleSkippingFile=async function(e){if(!e){const t=s.window.activeTextEditor;if(!t)return;e=t&&t.document.fileName}if(e&&s.debug.activeDebugSession){let t;t="string"==typeof e?(0,c.isFileUrl)(e)?{resource:(0,a.fileURLToPath)(e)}:{resource:e}:{sourceReference:e},await s.debug.activeDebugSession.customRequest("toggleSkipFileStatus",t)}}},21756:(e,t,r)=>{"use strict";t.E=void 0;const n=r(99010),i=r(51940),o=r(72852),s=r(67809),a=r(2511),c=r(76223),u=r(84986),l=r(1718),p=r(35874),d=r(64732),h=r(55226),f=r(43530),m=r(43302),g=r(94101),y=r(10592),b=r(86934),v=r(68511),w=r(79759),_=r(96674),S=r(11503);t.E=e=>{o.allConfigurationResolvers.forEach((t=>{e.bind(t).toSelf().inSingletonScope(),e.bind(o.IDebugConfigurationResolver).to(t)})),o.allConfigurationProviders.forEach((t=>e.bind(o.IDebugConfigurationProvider).to(t).inSingletonScope())),e.bind(n.IExtensionContribution).to(f.LongPredictionUI).inSingletonScope(),e.bind(n.IExtensionContribution).to(s.DebugLinkUi).inSingletonScope(),e.bind(n.IExtensionContribution).to(i.CascadeTerminationTracker).inSingletonScope(),e.bind(n.IExtensionContribution).to(u.DisableSourceMapUI).inSingletonScope(),e.bind(n.IExtensionContribution).to(c.DiagnosticsUI).inSingletonScope(),e.bind(n.IExtensionContribution).to(_.StartDebugingAndStopOnEntry).inSingletonScope(),e.bind(n.IExtensionContribution).to(m.JsDebugPortAttributesProvider).inSingletonScope(),e.bind(n.IExtensionContribution).to(l.EdgeDevToolOpener).inSingletonScope(),e.bind(n.IExtensionContribution).to(p.ExcludedCallersUI).inSingletonScope(),e.bind(d.ILinkedBreakpointLocation).to(h.LinkedBreakpointLocationUI).inSingletonScope(),e.bind(a.DebugSessionTracker).toSelf().inSingletonScope().onActivation(n.trackDispose),e.bind(w.UiProfileManager).toSelf().inSingletonScope().onActivation(n.trackDispose),e.bind(S.TerminalLinkHandler).toSelf().inSingletonScope(),e.bind(u.DisableSourceMapUI).toSelf().inSingletonScope(),e.bind(v.ITerminationConditionFactory).to(y.DurationTerminationConditionFactory).inSingletonScope(),e.bind(v.ITerminationConditionFactory).to(b.ManualTerminationConditionFactory).inSingletonScope(),e.bind(v.ITerminationConditionFactory).to(g.BreakpointTerminationConditionFactory).inSingletonScope()}},82311: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.__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.VSCodeSessionManager=void 0;const s=o(r(89496)),a=r(55646),c=r(91350);class u{launch(e,t,r){s.debug.startDebugging(e.debugSession.workspaceFolder,Object.assign(Object.assign(Object.assign({},r),t.supplementalConfig),{serverReadyAction:e.debugSession.configuration.serverReadyAction,__parentId:e.debugSession.id}),{parentSession:e.debugSession,consoleMode:s.DebugConsoleMode.MergeWithParent,noDebug:e.debugSession.configuration.noDebug,compact:e instanceof c.RootSession,lifecycleManagedByParent:!t.independentLifeycle})}}t.VSCodeSessionManager=class{constructor(e){this.sessionServerManager=new a.ServerSessionManager(e,new u)}async createDebugAdapterDescriptor(e){const t=await this.sessionServerManager.createDebugServer(e);return new s.DebugAdapterServer(t.server.address().port)}terminate(e){this.sessionServerManager.terminate(e)}dispose(){this.sessionServerManager.dispose()}}},89496:e=>{"use strict";e.exports=require("vscode")},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},85158:e=>{"use strict";e.exports=require("http2")},95687:e=>{"use strict";e.exports=require("https")},31405:e=>{"use strict";e.exports=require("inspector")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},63477:e=>{"use strict";e.exports=require("querystring")},14521:e=>{"use strict";e.exports=require("readline")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},82210:e=>{"use strict";e.exports=JSON.parse('{"name":"js-debug","displayName":"JavaScript Debugger","version":"1.65.0","publisher":"ms-vscode","author":{"name":"Microsoft Corporation"},"keywords":["pwa","javascript","node","chrome","debugger"],"description":"An extension for debugging Node.js programs and Chrome.","license":"MIT","engines":{"vscode":"^1.64.0","node":">=10"},"icon":"resources/logo.png","categories":["Debuggers"],"private":true,"repository":{"type":"git","url":"https://github.com/Microsoft/vscode-pwa.git"},"bugs":{"url":"https://github.com/Microsoft/vscode-pwa/issues"},"scripts":{"compile":"gulp","watch":"gulp watch","fmt":"gulp format","prepare":"husky install","package":"gulp package","publish":"gulp publish","updatetypes":"cd src/typings && npx vscode-dts dev && npx vscode-dts master","updatenodeapi":"python src/build/getNodePdl.py && prettier --write src/build/nodeCustom.ts","generateapis":"node out/src/build/generateDap.js && node out/src/build/generateCdp.js","test":"gulp && npm-run-all --parallel test:unit test:types test:golden test:lint","test:types":"tsc --noEmit","test:unit":"mocha --config .mocharc.unit.js","test:golden":"node ./out/src/test/runTest.js","test:lint":"gulp lint"},"dependencies":{"@c4312/chromehash":"0.2.0","acorn":"^8.7.0","acorn-loose":"^8.3.0","astring":"^1.8.1","color":"^4.2.0","data-uri-to-buffer":"^3.0.1","default-browser":"^2.0.1","dotenv":"^14.2.0","estraverse":"^5.3.0","execa":"^5.1.1","glob-stream":"^7.0.0","got":"^11.8.2","inversify":"^6.0.1","js-xxhash":"^1.0.4","jsonc-parser":"^3.0.0","linkifyjs":"^3.0.5","micromatch":"^4.0.4","path-browserify":"^1.0.1","preact":"^10.6.4","reflect-metadata":"^0.1.13","signale":"^1.4.0","source-map":"0.8.0-beta.0","source-map-support":"^0.5.21","split2":"^4.1.0","@vscode/js-debug-browsers":"^1.0.6","vscode-nls":"^5.0.0","vscode-tas-client":"^0.1.27","ws":"^8.4.2"},"prettier":{"trailingComma":"all","singleQuote":true,"arrowParens":"avoid","printWidth":100,"tabWidth":2},"devDependencies":{"@c4312/matcha":"^1.3.1","@mixer/parallel-prettier":"^2.0.1","@pptr/testrunner":"^0.8.0","@types/chai":"^4.3.0","@types/chai-as-promised":"^7.1.4","@types/chai-string":"^1.4.2","@types/chai-subset":"^1.3.3","@types/color":"^3.0.2","@types/debug":"^4.1.7","@types/del":"^4.0.0","@types/diff":"^5.0.2","@types/estraverse":"^5.1.1","@types/estree":"0.0.50","@types/express":"^4.17.13","@types/glob":"^7.2.0","@types/glob-stream":"^6.1.1","@types/gulp":"^4.0.9","@types/js-beautify":"^1.13.3","@types/json-schema":"^7.0.9","@types/linkifyjs":"^2.1.4","@types/long":"^4.0.1","@types/marked":"^4.0.1","@types/micromatch":"^4.0.2","@types/minimist":"^1.2.2","@types/mkdirp":"^1.0.2","@types/mocha":"^9.1.0","@types/node":"^17.0.10","@types/prettier":"^2.4.3","@types/signale":"^1.4.4","@types/sinon":"^10.0.8","@types/split2":"^3.2.1","@types/stream-buffers":"^3.0.4","@types/tmp":"^0.2.3","@types/ws":"^8.2.2","@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","@vscode/test-electron":"^2.1.1","chai":"^4.3.4","chai-as-promised":"^7.1.1","chai-string":"^1.5.0","chai-subset":"^1.6.0","css-loader":"^6.5.1","deepmerge":"^4.2.2","del":"^6.0.0","diff":"^5.0.0","eslint":"^8.7.0","eslint-plugin-header":"^3.1.1","eslint-plugin-react":"^7.28.0","express":"^4.17.2","glob":"^7.2.0","gulp":"^4.0.2","gulp-filter":"^7.0.0","gulp-rename":"^2.0.0","gulp-sourcemaps":"^3.0.0","gulp-tsb":"^4.0.6","gulp-util":"^3.0.8","husky":"^7.0.4","marked":"^4.0.10","merge2":"^1.4.1","minimist":"^1.2.5","mocha":"^9.1.4","mocha-junit-reporter":"^2.0.2","mocha-multi-reporters":"^1.5.1","npm-run-all":"^4.1.5","nyc":"^15.1.0","playwright":"^1.17.1","prettier":"^2.5.1","sinon":"^12.0.1","stream-buffers":"^3.0.2","style-loader":"^3.3.1","ts-node":"^10.4.0","typescript":"^4.5.5","unzipper":"^0.10.11","vsce":"^2.6.7","vscode-debugadapter-testsupport":"^1.47.0","vscode-debugprotocol":"^1.47.0","vscode-nls-dev":"^4.0.0","webpack":"^5.66.0","webpack-bundle-analyzer":"^4.5.0"},"main":"./src/extension.js","enabledApiProposals":["portsAttributes","findTextInFiles","workspaceTrust","resolvers"],"activationEvents":["onDebugDynamicConfigurations","onDebugInitialConfigurations","onDebugResolve:node","onDebugResolve:extensionHost","onDebugResolve:chrome","onTerminalProfile:extension.js-debug.debugTerminal","onCommand:extension.js-debug.addCustomBreakpoints","onCommand:extension.pwa-node-debug.attachNodeProcess","onCommand:extension.js-debug.clearAutoAttachVariables","onCommand:extension.js-debug.setAutoAttachVariables","onCommand:extension.js-debug.autoAttachToProcess","onCommand:extension.js-debug.createDebuggerTerminal","onCommand:extension.js-debug.createDiagnostics","onCommand:extension.js-debug.debugLink","onCommand:extension.js-debug.npmScript","onCommand:extension.js-debug.pickNodeProcess","onCommand:extension.js-debug.prettyPrint","onCommand:extension.js-debug.removeAllCustomBreakpoints","onCommand:extension.js-debug.removeCustomBreakpoint","onCommand:extension.js-debug.revealPage","onCommand:extension.js-debug.startProfile","onCommand:extension.js-debug.stopProfile","onCommand:extension.js-debug.toggleSkippingFile","onCommand:extension.node-debug.startWithStopOnEntry","onCommand:extension.js-debug.requestCDPProxy","onCommand:extension.js-debug.openEdgeDevTools","onCommand:extension.js-debug.callers.add","onCommand:extension.js-debug.callers.goToCaller","onCommand:extension.js-debug.callers.gotToTarget","onCommand:extension.js-debug.callers.remove","onCommand:extension.js-debug.callers.removeAll","onDebugResolve:pwa-node","onDebugResolve:node-terminal","onDebugResolve:pwa-extensionHost","onDebugResolve:pwa-chrome","onDebugResolve:pwa-msedge","onDebugResolve:node","onDebugResolve:chrome","onDebugResolve:extensionHost","onDebugResolve:msedge","onView:jsBrowserBreakpoints","onView:jsExcludedCallers","onWebviewPanel:jsDebugDiagnostics"],"extensionKind":["workspace"],"contributes":{"terminal":{"profiles":[{"id":"extension.js-debug.debugTerminal","title":"%debug.terminal.label%","icon":"$(debug)"}]},"menus":{"commandPalette":[{"command":"extension.js-debug.prettyPrint","title":"%pretty.print.script%","when":"debugType == pwa-extensionHost && inDebugMode || debugType == node-terminal && inDebugMode || debugType == pwa-node && inDebugMode || debugType == pwa-chrome && inDebugMode || debugType == pwa-msedge && inDebugMode"},{"command":"extension.js-debug.startProfile","title":"%profile.start%","when":"debugType == pwa-extensionHost && inDebugMode && !jsDebugIsProfiling || debugType == node-terminal && inDebugMode && !jsDebugIsProfiling || debugType == pwa-node && inDebugMode && !jsDebugIsProfiling || debugType == pwa-chrome && inDebugMode && !jsDebugIsProfiling || debugType == pwa-msedge && inDebugMode && !jsDebugIsProfiling"},{"command":"extension.js-debug.stopProfile","title":"%profile.stop%","when":"debugType == pwa-extensionHost && inDebugMode && jsDebugIsProfiling || debugType == node-terminal && inDebugMode && jsDebugIsProfiling || debugType == pwa-node && inDebugMode && jsDebugIsProfiling || debugType == pwa-chrome && inDebugMode && jsDebugIsProfiling || debugType == pwa-msedge && inDebugMode && jsDebugIsProfiling"},{"command":"extension.js-debug.revealPage","when":"false"},{"command":"extension.js-debug.debugLink","title":"%debugLink.label%","when":"!isWeb"},{"command":"extension.js-debug.createDiagnostics","title":"%createDiagnostics.label%","when":"debugType == pwa-extensionHost && inDebugMode || debugType == node-terminal && inDebugMode || debugType == pwa-node && inDebugMode || debugType == pwa-chrome && inDebugMode || debugType == pwa-msedge && inDebugMode"},{"command":"extension.js-debug.openEdgeDevTools","title":"%openEdgeDevTools.label%","when":"debugType == pwa-msedge"},{"command":"extension.js-debug.callers.add","title":"%commands.callersAdd.paletteLabel%","when":"debugType == pwa-extensionHost && debugState == \\"stopped\\" || debugType == node-terminal && debugState == \\"stopped\\" || debugType == pwa-node && debugState == \\"stopped\\" || debugType == pwa-chrome && debugState == \\"stopped\\" || debugType == pwa-msedge && debugState == \\"stopped\\""},{"command":"extension.js-debug.callers.goToCaller","when":"false"},{"command":"extension.js-debug.callers.gotToTarget","when":"false"}],"debug/callstack/context":[{"command":"extension.js-debug.revealPage","group":"navigation","when":"debugType == pwa-chrome && callStackItemType == \'session\' || debugType == pwa-msedge && callStackItemType == \'session\'"},{"command":"extension.js-debug.toggleSkippingFile","group":"navigation","when":"debugType == pwa-extensionHost && callStackItemType == \'session\' || debugType == node-terminal && callStackItemType == \'session\' || debugType == pwa-node && callStackItemType == \'session\' || debugType == pwa-chrome && callStackItemType == \'session\' || debugType == pwa-msedge && callStackItemType == \'session\'"},{"command":"extension.js-debug.startProfile","group":"navigation","when":"debugType == pwa-extensionHost && !jsDebugIsProfiling && callStackItemType == \'session\' || debugType == node-terminal && !jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-node && !jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-chrome && !jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-msedge && !jsDebugIsProfiling && callStackItemType == \'session\'"},{"command":"extension.js-debug.stopProfile","group":"navigation","when":"debugType == pwa-extensionHost && jsDebugIsProfiling && callStackItemType == \'session\' || debugType == node-terminal && jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-node && jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-chrome && jsDebugIsProfiling && callStackItemType == \'session\' || debugType == pwa-msedge && jsDebugIsProfiling && callStackItemType == \'session\'"},{"command":"extension.js-debug.startProfile","group":"inline","when":"debugType == pwa-extensionHost && !jsDebugIsProfiling || debugType == node-terminal && !jsDebugIsProfiling || debugType == pwa-node && !jsDebugIsProfiling || debugType == pwa-chrome && !jsDebugIsProfiling || debugType == pwa-msedge && !jsDebugIsProfiling"},{"command":"extension.js-debug.stopProfile","group":"inline","when":"debugType == pwa-extensionHost && jsDebugIsProfiling || debugType == node-terminal && jsDebugIsProfiling || debugType == pwa-node && jsDebugIsProfiling || debugType == pwa-chrome && jsDebugIsProfiling || debugType == pwa-msedge && jsDebugIsProfiling"},{"command":"extension.js-debug.callers.add","when":"debugType == pwa-extensionHost && callStackItemType == \'stackFrame\' || debugType == node-terminal && callStackItemType == \'stackFrame\' || debugType == pwa-node && callStackItemType == \'stackFrame\' || debugType == pwa-chrome && callStackItemType == \'stackFrame\' || debugType == pwa-msedge && callStackItemType == \'stackFrame\'"}],"debug/toolBar":[{"command":"extension.js-debug.stopProfile","when":"debugType == pwa-extensionHost && jsDebugIsProfiling || debugType == node-terminal && jsDebugIsProfiling || debugType == pwa-node && jsDebugIsProfiling || debugType == pwa-chrome && jsDebugIsProfiling || debugType == pwa-msedge && jsDebugIsProfiling"},{"command":"extension.js-debug.openEdgeDevTools","when":"debugType == pwa-msedge"}],"view/title":[{"command":"extension.js-debug.addCustomBreakpoints","when":"view == jsBrowserBreakpoints"},{"command":"extension.js-debug.removeAllCustomBreakpoints","when":"view == jsBrowserBreakpoints"},{"command":"extension.js-debug.callers.removeAll","group":"navigation","when":"view == jsExcludedCallers"}],"view/item/context":[{"command":"extension.js-debug.removeCustomBreakpoint","when":"view == jsBrowserBreakpoints","group":"inline"},{"command":"extension.js-debug.addCustomBreakpoints","when":"view == jsBrowserBreakpoints"},{"command":"extension.js-debug.removeCustomBreakpoint","when":"view == jsBrowserBreakpoints"},{"command":"extension.js-debug.callers.goToCaller","group":"inline","when":"view == jsExcludedCallers"},{"command":"extension.js-debug.callers.gotToTarget","group":"inline","when":"view == jsExcludedCallers"},{"command":"extension.js-debug.callers.remove","group":"inline","when":"view == jsExcludedCallers"}]},"breakpoints":[{"language":"javascript"},{"language":"typescript"},{"language":"typescriptreact"},{"language":"javascriptreact"},{"language":"fsharp"},{"language":"html"}],"debuggers":[{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%node.address.description%","type":"string"},"attachExistingChildren":{"default":false,"description":"%node.attach.attachExistingChildren.description%","type":"boolean"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"continueOnAttach":{"default":true,"markdownDescription":"%node.attach.continueOnAttach%","type":"boolean"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"port":{"default":9229,"description":"%node.port.description%","type":"number"},"processId":{"default":"${command:PickProcess}","description":"%node.attach.processId.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"websocketAddress":{"description":"%node.websocket.address.description%","type":"string"}}},"launch":{"properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}}}},"configurationSnippets":[],"label":"%node.label%","languages":["javascript","typescript","javascriptreact","typescriptreact"],"type":"pwa-node","variables":{"PickProcess":"extension.js-debug.pickNodeProcess"}},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%node.address.description%","type":"string"},"attachExistingChildren":{"default":false,"description":"%node.attach.attachExistingChildren.description%","type":"boolean"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"continueOnAttach":{"default":true,"markdownDescription":"%node.attach.continueOnAttach%","type":"boolean"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"port":{"default":9229,"description":"%node.port.description%","type":"number"},"processId":{"default":"${command:PickProcess}","description":"%node.attach.processId.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"websocketAddress":{"description":"%node.websocket.address.description%","type":"string"}}},"launch":{"properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}}}},"configurationSnippets":[{"body":{"name":"${1:Attach}","port":9229,"request":"attach","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.attach.description%","label":"%node.snippet.attach.label%","type":"node"},{"body":{"address":"${2:TCP/IP address of process to be debugged}","localRoot":"^\\"\\\\${workspaceFolder}\\"","name":"${1:Attach to Remote}","port":9229,"remoteRoot":"${3:Absolute path to the remote directory containing the program}","request":"attach","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.remoteattach.description%","label":"%node.snippet.remoteattach.label%","type":"node"},{"body":{"name":"${1:Attach by Process ID}","processId":"^\\"\\\\${command:PickProcess}\\"","request":"attach","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.attachProcess.description%","label":"%node.snippet.attachProcess.label%","type":"node"},{"body":{"name":"${2:Launch Program}","program":"^\\"\\\\${workspaceFolder}/${1:app.js}\\"","request":"launch","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.launch.description%","label":"%node.snippet.launch.label%","type":"node"},{"body":{"name":"${1:Launch via NPM}","request":"launch","runtimeArgs":["run-script","debug"],"runtimeExecutable":"npm","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"label":"%node.snippet.npm.label%","markdownDescription":"%node.snippet.npm.description%","type":"node"},{"body":{"console":"integratedTerminal","internalConsoleOptions":"neverOpen","name":"nodemon","program":"^\\"\\\\${workspaceFolder}/${1:app.js}\\"","request":"launch","restart":true,"runtimeExecutable":"nodemon","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.nodemon.description%","label":"%node.snippet.nodemon.label%","type":"node"},{"body":{"args":["-u","tdd","--timeout","999999","--colors","^\\"\\\\${workspaceFolder}/${1:test}\\""],"internalConsoleOptions":"openOnSessionStart","name":"Mocha Tests","program":"^\\"\\\\${workspaceFolder}/node_modules/mocha/bin/_mocha\\"","request":"launch","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.mocha.description%","label":"%node.snippet.mocha.label%","type":"node"},{"body":{"args":["${1:generator}"],"console":"integratedTerminal","internalConsoleOptions":"neverOpen","name":"Yeoman ${1:generator}","program":"^\\"\\\\${workspaceFolder}/node_modules/yo/lib/cli.js\\"","request":"launch","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"label":"%node.snippet.yo.label%","markdownDescription":"%node.snippet.yo.description%","type":"node"},{"body":{"args":["${1:task}"],"name":"Gulp ${1:task}","program":"^\\"\\\\${workspaceFolder}/node_modules/gulp/bin/gulp.js\\"","request":"launch","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.gulp.description%","label":"%node.snippet.gulp.label%","type":"node"},{"body":{"name":"Electron Main","program":"^\\"\\\\${workspaceFolder}/main.js\\"","request":"launch","runtimeExecutable":"^\\"\\\\${workspaceFolder}/node_modules/.bin/electron\\"","skipFiles":["<node_internals>/**"],"type":"pwa-node"},"description":"%node.snippet.electron.description%","label":"%node.snippet.electron.label%","type":"node"}],"label":"%node.label%","type":"node","variables":{"PickProcess":"extension.js-debug.pickNodeProcess"}},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"launch":{"properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}}}},"configurationSnippets":[{"body":{"command":"npm start","name":"Run npm start","request":"launch","type":"node-terminal"},"description":"%debug.terminal.snippet.label%","label":"%debug.terminal.snippet.label%"}],"label":"%debug.terminal.label%","languages":[],"type":"node-terminal"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"launch":{"properties":{"args":{"default":["--extensionDevelopmentPath=${workspaceFolder}"],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"debugWebWorkerHost":{"default":true,"markdownDescription":"%extensionHost.launch.debugWebWorkerHost%","type":["boolean"]},"debugWebviews":{"default":true,"markdownDescription":"%extensionHost.launch.debugWebviews%","type":["boolean"]},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"rendererDebugOptions":{"default":{"webRoot":"${workspaceFolder}"},"markdownDescription":"%extensionHost.launch.rendererDebugOptions%","properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}},"type":"object"},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeExecutable":{"default":"node","markdownDescription":"%extensionHost.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"required":["args"]}},"configurationSnippets":[],"label":"%extensionHost.label%","languages":["javascript","typescript","javascriptreact","typescriptreact"],"type":"pwa-extensionHost"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"launch":{"properties":{"args":{"default":["--extensionDevelopmentPath=${workspaceFolder}"],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"debugWebWorkerHost":{"default":true,"markdownDescription":"%extensionHost.launch.debugWebWorkerHost%","type":["boolean"]},"debugWebviews":{"default":true,"markdownDescription":"%extensionHost.launch.debugWebviews%","type":["boolean"]},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"rendererDebugOptions":{"default":{"webRoot":"${workspaceFolder}"},"markdownDescription":"%extensionHost.launch.rendererDebugOptions%","properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}},"type":"object"},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeExecutable":{"default":"node","markdownDescription":"%extensionHost.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"required":["args"]}},"configurationSnippets":[{"body":{"args":["^\\"--extensionDevelopmentPath=\\\\${workspaceFolder}\\""],"name":"%extensionHost.launch.config.name%","outFiles":["^\\"\\\\${workspaceFolder}/out/**/*.js\\""],"preLaunchTask":"npm","request":"launch","type":"pwa-extensionHost"},"description":"%extensionHost.snippet.launch.description%","label":"%extensionHost.snippet.launch.label%","type":"extensionHost"}],"label":"%extensionHost.label%","type":"extensionHost"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}},"launch":{"properties":{"browserLaunchLocation":{"default":null,"description":"%browser.browserLaunchLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"cleanUp":{"default":"wholeBrowser","description":"%browser.cleanUp.description%","enum":["wholeBrowser","onlyTab"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":null,"description":"%browser.cwd.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"default":{},"description":"%browser.env.description%","type":"object"},"file":{"default":"${workspaceFolder}/index.html","description":"%browser.file.description%","type":"string"},"includeDefaultArgs":{"default":true,"description":"%browser.includeDefaultArgs.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":0,"description":"%browser.launch.port.description%","type":"number"},"profileStartup":{"default":true,"description":"%browser.profileStartup.description%","type":"boolean"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeArgs":{"default":[],"description":"%browser.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"stable","description":"%browser.runtimeExecutable.description%","type":["string","null"]},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"userDataDir":{"default":true,"description":"%browser.userDataDir.description%","type":["string","boolean"]},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}}},"configurationSnippets":[],"label":"%chrome.label%","languages":["javascript","typescript","javascriptreact","typescriptreact","html","css","coffeescript","handlebars","vue"],"type":"pwa-chrome"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}},"launch":{"properties":{"browserLaunchLocation":{"default":null,"description":"%browser.browserLaunchLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"cleanUp":{"default":"wholeBrowser","description":"%browser.cleanUp.description%","enum":["wholeBrowser","onlyTab"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":null,"description":"%browser.cwd.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"default":{},"description":"%browser.env.description%","type":"object"},"file":{"default":"${workspaceFolder}/index.html","description":"%browser.file.description%","type":"string"},"includeDefaultArgs":{"default":true,"description":"%browser.includeDefaultArgs.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":0,"description":"%browser.launch.port.description%","type":"number"},"profileStartup":{"default":true,"description":"%browser.profileStartup.description%","type":"boolean"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeArgs":{"default":[],"description":"%browser.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"stable","description":"%browser.runtimeExecutable.description%","type":["string","null"]},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"userDataDir":{"default":true,"description":"%browser.userDataDir.description%","type":["string","boolean"]},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}}},"configurationSnippets":[{"body":{"name":"Launch Chrome","request":"launch","type":"pwa-chrome","url":"http://localhost:8080","webRoot":"^\\"${2:\\\\${workspaceFolder\\\\}}\\""},"description":"%chrome.launch.description%","label":"%chrome.launch.label%","type":"chrome"},{"body":{"name":"Attach to Chrome","port":9222,"request":"attach","type":"pwa-chrome","webRoot":"^\\"${2:\\\\${workspaceFolder\\\\}}\\""},"description":"%chrome.attach.description%","label":"%chrome.attach.label%","type":"chrome"}],"label":"%chrome.label%","type":"chrome"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"useWebView":{"default":false,"description":"%edge.useWebView.description%","type":"boolean"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}},"launch":{"properties":{"address":{"default":"localhost","description":"%edge.address.description%","type":"string"},"browserLaunchLocation":{"default":null,"description":"%browser.browserLaunchLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"cleanUp":{"default":"wholeBrowser","description":"%browser.cleanUp.description%","enum":["wholeBrowser","onlyTab"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":null,"description":"%browser.cwd.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"default":{},"description":"%browser.env.description%","type":"object"},"file":{"default":"${workspaceFolder}/index.html","description":"%browser.file.description%","type":"string"},"includeDefaultArgs":{"default":true,"description":"%browser.includeDefaultArgs.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%edge.port.description%","type":"number"},"profileStartup":{"default":true,"description":"%browser.profileStartup.description%","type":"boolean"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeArgs":{"default":[],"description":"%browser.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"stable","description":"%browser.runtimeExecutable.edge.description%","type":["string","null"]},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"useWebView":{"default":false,"description":"%edge.useWebView.description%","type":"boolean"},"userDataDir":{"default":true,"description":"%browser.userDataDir.description%","type":["string","boolean"]},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}}},"configurationSnippets":[],"label":"%edge.launch.label%","languages":["javascript","typescript","javascriptreact","typescriptreact","html","css","coffeescript","handlebars","vue"],"type":"pwa-msedge"},{"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217","configurationAttributes":{"attach":{"properties":{"address":{"default":"localhost","description":"%browser.address.description%","type":"string"},"browserAttachLocation":{"default":null,"description":"%browser.browserAttachLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%browser.attach.port.description%","type":"number"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":false,"markdownDescription":"%browser.restart%","type":"boolean"},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"targetSelection":{"default":"automatic","enum":["pick","automatic"],"markdownDescription":"%browser.targetSelection%","type":"string"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"useWebView":{"default":false,"description":"%edge.useWebView.description%","type":"boolean"},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}},"launch":{"properties":{"address":{"default":"localhost","description":"%edge.address.description%","type":"string"},"browserLaunchLocation":{"default":null,"description":"%browser.browserLaunchLocation.description%","oneOf":[{"type":"null"},{"enum":["ui","workspace"],"type":"string"}]},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"cleanUp":{"default":"wholeBrowser","description":"%browser.cleanUp.description%","enum":["wholeBrowser","onlyTab"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":null,"description":"%browser.cwd.description%","type":"string"},"disableNetworkCache":{"default":true,"description":"%browser.disableNetworkCache.description%","type":"boolean"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"default":{},"description":"%browser.env.description%","type":"object"},"file":{"default":"${workspaceFolder}/index.html","description":"%browser.file.description%","type":"string"},"includeDefaultArgs":{"default":true,"description":"%browser.includeDefaultArgs.description%","type":"boolean"},"inspectUri":{"default":null,"description":"%browser.inspectUri.description%","type":["string","null"]},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pathMapping":{"default":{},"description":"%browser.pathMapping.description%","type":"object"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"perScriptSourcemaps":{"default":"auto","description":"%browser.perScriptSourcemaps.description%","enum":["yes","no","auto"],"type":"string"},"port":{"default":9229,"description":"%edge.port.description%","type":"number"},"profileStartup":{"default":true,"description":"%browser.profileStartup.description%","type":"boolean"},"resolveSourceMapLocations":{"default":null,"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeArgs":{"default":[],"description":"%browser.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"stable","description":"%browser.runtimeExecutable.edge.description%","type":["string","null"]},"server":{"oneOf":[{"additionalProperties":false,"default":{"program":"node my-server.js"},"description":"%browser.server.description%","properties":{"args":{"default":[],"description":"%node.launch.args.description%","items":{"type":"string"},"type":"array"},"attachSimplePort":{"default":9229,"description":"%node.attachSimplePort.description%","type":"integer"},"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"console":{"default":"internalConsole","description":"%node.launch.console.description%","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"type":"string"},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"killBehavior":{"default":"forceful","enum":["forceful","polite","none"],"markdownDescription":"%node.killBehavior.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"profileStartup":{"default":true,"description":"%node.profileStartup.description%","type":"boolean"},"program":{"default":"","description":"%node.launch.program.description%","type":"string"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"restart":{"default":true,"description":"%node.attach.restart.description%","oneOf":[{"type":"boolean"},{"properties":{"delay":{"default":1000,"minimum":0,"type":"number"},"maxAttempts":{"default":10,"minimum":0,"type":"number"}},"type":"object"}]},"runtimeArgs":{"default":[],"description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"type":"array"},"runtimeExecutable":{"default":"node","markdownDescription":"%node.launch.runtimeExecutable.description%","type":["string","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"runtimeVersion":{"default":"default","markdownDescription":"%node.launch.runtimeVersion.description%","type":"string"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"stopOnEntry":{"default":true,"description":"%node.stopOnEntry.description%","type":["boolean","string"]},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"},{"additionalProperties":false,"default":{"program":"npm start"},"description":"%debug.terminal.label%","properties":{"autoAttachChildProcesses":{"default":true,"description":"%node.launch.autoAttachChildProcesses.description%","type":"boolean"},"cascadeTerminateToConfigurations":{"default":[],"description":"%base.cascadeTerminateToConfigurations.label%","items":{"type":"string","uniqueItems":true},"type":"array"},"command":{"default":"npm start","description":"%debug.terminal.program.description%","type":["string","null"]},"customDescriptionGenerator":{"description":"%customDescriptionGenerator.description%","type":"string"},"customPropertiesGenerator":{"deprecated":true,"description":"%customPropertiesGenerator.description%","type":"string"},"cwd":{"default":"${workspaceFolder}","description":"%node.launch.cwd.description%","docDefault":"localRoot || ${workspaceFolder}","type":"string"},"enableContentValidation":{"default":true,"description":"%enableContentValidation.description%","type":"boolean"},"env":{"additionalProperties":{"type":["string","null"]},"default":{},"markdownDescription":"%node.launch.env.description%","type":"object"},"envFile":{"default":"${workspaceFolder}/.env","description":"%node.launch.envFile.description%","type":"string"},"localRoot":{"default":null,"description":"%node.localRoot.description%","type":["string","null"]},"nodeVersionHint":{"default":12,"description":"%node.versionHint.description%","minimum":8,"type":"number"},"outFiles":{"default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"description":"%outFiles.description%","items":{"type":"string"},"type":["array"]},"outputCapture":{"default":"console","enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%"},"pauseForSourceMap":{"default":false,"markdownDescription":"%node.pauseForSourceMap.description%","type":"boolean"},"remoteRoot":{"default":null,"description":"%node.remoteRoot.description%","type":["string","null"]},"resolveSourceMapLocations":{"default":["${workspaceFolder}/**","!**/node_modules/**"],"description":"%node.resolveSourceMapLocations.description%","items":{"type":"string"},"type":["array","null"]},"runtimeSourcemapPausePatterns":{"default":[],"items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","type":"array"},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]}},"type":"object"}]},"showAsyncStacks":{"default":true,"description":"%node.showAsyncStacks.description%","oneOf":[{"type":"boolean"},{"properties":{"onAttach":{"default":32,"type":"number"}},"required":["onAttach"],"type":"object"},{"properties":{"onceBreakpointResolved":{"default":32,"type":"number"}},"required":["onceBreakpointResolved"],"type":"object"}]},"skipFiles":{"default":["<node_internals>/**"],"description":"%browser.skipFiles.description%","type":"array"},"smartStep":{"default":true,"description":"%smartStep.description%","type":"boolean"},"sourceMapPathOverrides":{"default":{"meteor://💻app/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","webpack://?:*/*":"${workspaceFolder}/*"},"description":"%node.sourceMapPathOverrides.description%","type":"object"},"sourceMapRenames":{"default":true,"description":"%browser.sourceMapRenames.description%","type":"boolean"},"sourceMaps":{"default":true,"description":"%browser.sourceMaps.description%","type":"boolean"},"timeout":{"default":10000,"description":"%node.timeout.description%","type":"number"},"timeouts":{"additionalProperties":false,"default":{},"description":"%timeouts.generalDescription%","markdownDescription":"%timeouts.generalDescription.markdown%","properties":{"sourceMapCumulativePause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","type":"number"},"sourceMapMinPause":{"default":1000,"description":"%timeouts.sourceMaps.sourceMapMinPause.description%","type":"number"}},"type":"object"},"trace":{"default":true,"description":"%trace.description%","oneOf":[{"description":"%trace.boolean.description%","type":"boolean"},{"additionalProperties":false,"properties":{"console":{"description":"%trace.stdio.description%","type":"boolean"},"level":{"description":"%trace.level.description%","enum":["fatal","error","warn","info","verbose"]},"logFile":{"description":"%trace.logFile.description%","type":["string","null"]},"stdio":{"description":"%trace.console.description%","type":"boolean"},"tags":{"description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]},"type":"array"}},"type":"object"}]},"url":{"default":"http://localhost:8080","description":"%browser.url.description%","type":"string"},"urlFilter":{"default":"","description":"%browser.urlFilter.description%","type":"string"},"useWebView":{"default":false,"description":"%edge.useWebView.description%","type":"boolean"},"userDataDir":{"default":true,"description":"%browser.userDataDir.description%","type":["string","boolean"]},"vueComponentPaths":{"default":["${workspaceFolder}/**/*.vue"],"description":"%browser.vueComponentPaths%","type":"array"},"webRoot":{"default":"${workspaceFolder}","description":"%browser.webRoot.description%","type":"string"}}}},"configurationSnippets":[{"body":{"name":"Launch Edge","request":"launch","type":"pwa-msedge","url":"http://localhost:8080","webRoot":"^\\"${2:\\\\${workspaceFolder\\\\}}\\""},"description":"%edge.launch.description%","label":"%edge.launch.label%","type":"msedge"},{"body":{"name":"Attach to Edge","port":9222,"request":"attach","type":"pwa-msedge","webRoot":"^\\"${2:\\\\${workspaceFolder\\\\}}\\""},"description":"%edge.attach.description%","label":"%edge.attach.label%","type":"msedge"}],"label":"%edge.launch.label%","type":"msedge"}],"commands":[{"command":"extension.js-debug.prettyPrint","title":"%pretty.print.script%","category":"Debug"},{"command":"extension.js-debug.toggleSkippingFile","title":"%toggle.skipping.this.file%","category":"Debug"},{"command":"extension.js-debug.addCustomBreakpoints","title":"%add.browser.breakpoint%","icon":"$(add)"},{"command":"extension.js-debug.removeCustomBreakpoint","title":"%remove.browser.breakpoint%","icon":"$(remove)"},{"command":"extension.js-debug.removeAllCustomBreakpoints","title":"%remove.browser.breakpoint.all%","icon":"$(close-all)"},{"command":"extension.pwa-node-debug.attachNodeProcess","title":"%attach.node.process%","category":"Debug"},{"command":"extension.js-debug.npmScript","title":"%debug.npm.script%","category":"Debug"},{"command":"extension.js-debug.createDebuggerTerminal","title":"%debug.terminal.label%","category":"Debug"},{"command":"extension.js-debug.startProfile","title":"%profile.start%","category":"Debug","icon":"$(record)"},{"command":"extension.js-debug.stopProfile","title":"%profile.stop%","category":"Debug","icon":"resources/dark/stop-profiling.svg"},{"command":"extension.js-debug.revealPage","title":"%browser.revealPage%","category":"Debug"},{"command":"extension.js-debug.debugLink","title":"%debugLink.label%","category":"Debug"},{"command":"extension.js-debug.createDiagnostics","title":"%createDiagnostics.label%","category":"Debug"},{"command":"extension.node-debug.startWithStopOnEntry","title":"%startWithStopOnEntry.label%","category":"Debug"},{"command":"extension.js-debug.openEdgeDevTools","title":"%openEdgeDevTools.label%","icon":"$(inspect)","category":"Debug"},{"command":"extension.js-debug.callers.add","title":"%commands.callersAdd.label%","category":"Debug"},{"command":"extension.js-debug.callers.remove","title":"%commands.callersRemove.label%","icon":"$(close)"},{"command":"extension.js-debug.callers.removeAll","title":"%commands.callersRemoveAll.label%","icon":"$(clear-all)"},{"command":"extension.js-debug.callers.goToCaller","title":"%commands.callersGoToCaller.label%","icon":"$(call-outgoing)"},{"command":"extension.js-debug.callers.gotToTarget","title":"%commands.callersGoToTarget.label%","icon":"$(call-incoming)"}],"keybindings":[{"command":"extension.node-debug.startWithStopOnEntry","key":"F10","mac":"F10","when":"debugConfigurationType == pwa-node && !inDebugMode || debugConfigurationType == pwa-extensionHost && !inDebugMode || debugConfigurationType == node && !inDebugMode"},{"command":"extension.node-debug.startWithStopOnEntry","key":"F11","mac":"F11","when":"debugConfigurationType == pwa-node && !inDebugMode || debugConfigurationType == pwa-extensionHost && !inDebugMode || debugConfigurationType == node && !inDebugMode"}],"configuration":{"title":"JavaScript Debugger","properties":{"debug.javascript.codelens.npmScripts":{"enum":["top","all","never"],"default":"top","description":"%configuration.npmScriptLensLocation%"},"debug.javascript.terminalOptions":{"type":"object","description":"%configuration.terminalOptions%","default":{},"properties":{"resolveSourceMapLocations":{"type":["array","null"],"description":"%node.resolveSourceMapLocations.description%","default":["${workspaceFolder}/**","!**/node_modules/**"],"items":{"type":"string"}},"outFiles":{"type":["array"],"description":"%outFiles.description%","default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"items":{"type":"string"}},"pauseForSourceMap":{"type":"boolean","markdownDescription":"%node.pauseForSourceMap.description%","default":false},"showAsyncStacks":{"description":"%node.showAsyncStacks.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","required":["onAttach"],"properties":{"onAttach":{"type":"number","default":32}}},{"type":"object","required":["onceBreakpointResolved"],"properties":{"onceBreakpointResolved":{"type":"number","default":32}}}]},"skipFiles":{"type":"array","description":"%browser.skipFiles.description%","default":["<node_internals>/**"]},"smartStep":{"type":"boolean","description":"%smartStep.description%","default":true},"sourceMaps":{"type":"boolean","description":"%browser.sourceMaps.description%","default":true},"sourceMapRenames":{"type":"boolean","default":true,"description":"%browser.sourceMapRenames.description%"},"sourceMapPathOverrides":{"type":"object","description":"%node.sourceMapPathOverrides.description%","default":{"webpack://?:*/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","meteor://💻app/*":"${workspaceFolder}/*"}},"timeout":{"type":"number","description":"%node.timeout.description%","default":10000},"timeouts":{"type":"object","description":"%timeouts.generalDescription%","default":{},"properties":{"sourceMapMinPause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapMinPause.description%","default":1000},"sourceMapCumulativePause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","default":1000}},"additionalProperties":false,"markdownDescription":"%timeouts.generalDescription.markdown%"},"trace":{"description":"%trace.description%","default":true,"oneOf":[{"type":"boolean","description":"%trace.boolean.description%"},{"type":"object","additionalProperties":false,"properties":{"console":{"type":"boolean","description":"%trace.stdio.description%"},"stdio":{"type":"boolean","description":"%trace.console.description%"},"level":{"enum":["fatal","error","warn","info","verbose"],"description":"%trace.level.description%"},"logFile":{"type":["string","null"],"description":"%trace.logFile.description%"},"tags":{"type":"array","description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]}}}}]},"outputCapture":{"enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%","default":"console"},"enableContentValidation":{"default":true,"type":"boolean","description":"%enableContentValidation.description%"},"customDescriptionGenerator":{"type":"string","description":"%customDescriptionGenerator.description%"},"customPropertiesGenerator":{"type":"string","deprecated":true,"description":"%customPropertiesGenerator.description%"},"cascadeTerminateToConfigurations":{"type":"array","items":{"type":"string","uniqueItems":true},"default":[],"description":"%base.cascadeTerminateToConfigurations.label%"},"cwd":{"type":"string","description":"%node.launch.cwd.description%","default":"${workspaceFolder}","docDefault":"localRoot || ${workspaceFolder}"},"localRoot":{"type":["string","null"],"description":"%node.localRoot.description%","default":null},"remoteRoot":{"type":["string","null"],"description":"%node.remoteRoot.description%","default":null},"autoAttachChildProcesses":{"type":"boolean","description":"%node.launch.autoAttachChildProcesses.description%","default":true},"env":{"type":"object","additionalProperties":{"type":["string","null"]},"markdownDescription":"%node.launch.env.description%","default":{}},"envFile":{"type":"string","description":"%node.launch.envFile.description%","default":"${workspaceFolder}/.env"},"runtimeSourcemapPausePatterns":{"type":"array","items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","default":[]},"nodeVersionHint":{"type":"number","minimum":8,"description":"%node.versionHint.description%","default":12},"command":{"type":["string","null"],"description":"%debug.terminal.program.description%","default":"npm start"}}},"debug.javascript.suggestPrettyPrinting":{"type":"boolean","description":"%configuration.suggestPrettyPrinting%","default":true},"debug.javascript.automaticallyTunnelRemoteServer":{"type":"boolean","description":"%configuration.automaticallyTunnelRemoteServer%","default":true},"debug.javascript.debugByLinkOptions":{"default":"on","description":"%configuration.debugByLinkOptions%","oneOf":[{"type":"string","enum":["on","off","always"]},{"type":"object","properties":{"resolveSourceMapLocations":{"type":["array","null"],"description":"%node.resolveSourceMapLocations.description%","default":null,"items":{"type":"string"}},"outFiles":{"type":["array"],"description":"%outFiles.description%","default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"items":{"type":"string"}},"pauseForSourceMap":{"type":"boolean","markdownDescription":"%node.pauseForSourceMap.description%","default":false},"showAsyncStacks":{"description":"%node.showAsyncStacks.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","required":["onAttach"],"properties":{"onAttach":{"type":"number","default":32}}},{"type":"object","required":["onceBreakpointResolved"],"properties":{"onceBreakpointResolved":{"type":"number","default":32}}}]},"skipFiles":{"type":"array","description":"%browser.skipFiles.description%","default":["<node_internals>/**"]},"smartStep":{"type":"boolean","description":"%smartStep.description%","default":true},"sourceMaps":{"type":"boolean","description":"%browser.sourceMaps.description%","default":true},"sourceMapRenames":{"type":"boolean","default":true,"description":"%browser.sourceMapRenames.description%"},"sourceMapPathOverrides":{"type":"object","description":"%node.sourceMapPathOverrides.description%","default":{"webpack://?:*/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","meteor://💻app/*":"${workspaceFolder}/*"}},"timeout":{"type":"number","description":"%node.timeout.description%","default":10000},"timeouts":{"type":"object","description":"%timeouts.generalDescription%","default":{},"properties":{"sourceMapMinPause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapMinPause.description%","default":1000},"sourceMapCumulativePause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","default":1000}},"additionalProperties":false,"markdownDescription":"%timeouts.generalDescription.markdown%"},"trace":{"description":"%trace.description%","default":true,"oneOf":[{"type":"boolean","description":"%trace.boolean.description%"},{"type":"object","additionalProperties":false,"properties":{"console":{"type":"boolean","description":"%trace.stdio.description%"},"stdio":{"type":"boolean","description":"%trace.console.description%"},"level":{"enum":["fatal","error","warn","info","verbose"],"description":"%trace.level.description%"},"logFile":{"type":["string","null"],"description":"%trace.logFile.description%"},"tags":{"type":"array","description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]}}}}]},"outputCapture":{"enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%","default":"console"},"enableContentValidation":{"default":true,"type":"boolean","description":"%enableContentValidation.description%"},"customDescriptionGenerator":{"type":"string","description":"%customDescriptionGenerator.description%"},"customPropertiesGenerator":{"type":"string","deprecated":true,"description":"%customPropertiesGenerator.description%"},"cascadeTerminateToConfigurations":{"type":"array","items":{"type":"string","uniqueItems":true},"default":[],"description":"%base.cascadeTerminateToConfigurations.label%"},"disableNetworkCache":{"type":"boolean","description":"%browser.disableNetworkCache.description%","default":true},"pathMapping":{"type":"object","description":"%browser.pathMapping.description%","default":{}},"webRoot":{"type":"string","description":"%browser.webRoot.description%","default":"${workspaceFolder}"},"urlFilter":{"type":"string","description":"%browser.urlFilter.description%","default":""},"url":{"type":"string","description":"%browser.url.description%","default":"http://localhost:8080"},"inspectUri":{"type":["string","null"],"description":"%browser.inspectUri.description%","default":null},"vueComponentPaths":{"type":"array","description":"%browser.vueComponentPaths%","default":["${workspaceFolder}/**/*.vue"]},"server":{"oneOf":[{"type":"object","description":"%browser.server.description%","additionalProperties":false,"default":{"program":"node my-server.js"},"properties":{"resolveSourceMapLocations":{"type":["array","null"],"description":"%node.resolveSourceMapLocations.description%","default":["${workspaceFolder}/**","!**/node_modules/**"],"items":{"type":"string"}},"outFiles":{"type":["array"],"description":"%outFiles.description%","default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"items":{"type":"string"}},"pauseForSourceMap":{"type":"boolean","markdownDescription":"%node.pauseForSourceMap.description%","default":false},"showAsyncStacks":{"description":"%node.showAsyncStacks.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","required":["onAttach"],"properties":{"onAttach":{"type":"number","default":32}}},{"type":"object","required":["onceBreakpointResolved"],"properties":{"onceBreakpointResolved":{"type":"number","default":32}}}]},"skipFiles":{"type":"array","description":"%browser.skipFiles.description%","default":["<node_internals>/**"]},"smartStep":{"type":"boolean","description":"%smartStep.description%","default":true},"sourceMaps":{"type":"boolean","description":"%browser.sourceMaps.description%","default":true},"sourceMapRenames":{"type":"boolean","default":true,"description":"%browser.sourceMapRenames.description%"},"sourceMapPathOverrides":{"type":"object","description":"%node.sourceMapPathOverrides.description%","default":{"webpack://?:*/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","meteor://💻app/*":"${workspaceFolder}/*"}},"timeout":{"type":"number","description":"%node.timeout.description%","default":10000},"timeouts":{"type":"object","description":"%timeouts.generalDescription%","default":{},"properties":{"sourceMapMinPause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapMinPause.description%","default":1000},"sourceMapCumulativePause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","default":1000}},"additionalProperties":false,"markdownDescription":"%timeouts.generalDescription.markdown%"},"trace":{"description":"%trace.description%","default":true,"oneOf":[{"type":"boolean","description":"%trace.boolean.description%"},{"type":"object","additionalProperties":false,"properties":{"console":{"type":"boolean","description":"%trace.stdio.description%"},"stdio":{"type":"boolean","description":"%trace.console.description%"},"level":{"enum":["fatal","error","warn","info","verbose"],"description":"%trace.level.description%"},"logFile":{"type":["string","null"],"description":"%trace.logFile.description%"},"tags":{"type":"array","description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]}}}}]},"outputCapture":{"enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%","default":"console"},"enableContentValidation":{"default":true,"type":"boolean","description":"%enableContentValidation.description%"},"customDescriptionGenerator":{"type":"string","description":"%customDescriptionGenerator.description%"},"customPropertiesGenerator":{"type":"string","deprecated":true,"description":"%customPropertiesGenerator.description%"},"cascadeTerminateToConfigurations":{"type":"array","items":{"type":"string","uniqueItems":true},"default":[],"description":"%base.cascadeTerminateToConfigurations.label%"},"cwd":{"type":"string","description":"%node.launch.cwd.description%","default":"${workspaceFolder}"},"localRoot":{"type":["string","null"],"description":"%node.localRoot.description%","default":null},"remoteRoot":{"type":["string","null"],"description":"%node.remoteRoot.description%","default":null},"autoAttachChildProcesses":{"type":"boolean","description":"%node.launch.autoAttachChildProcesses.description%","default":true},"env":{"type":"object","additionalProperties":{"type":["string","null"]},"markdownDescription":"%node.launch.env.description%","default":{}},"envFile":{"type":"string","description":"%node.launch.envFile.description%","default":"${workspaceFolder}/.env"},"runtimeSourcemapPausePatterns":{"type":"array","items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","default":[]},"nodeVersionHint":{"type":"number","minimum":8,"description":"%node.versionHint.description%","default":12},"program":{"type":"string","description":"%node.launch.program.description%","default":""},"stopOnEntry":{"type":["boolean","string"],"description":"%node.stopOnEntry.description%","default":true},"console":{"type":"string","enum":["internalConsole","integratedTerminal","externalTerminal"],"enumDescriptions":["%node.launch.console.internalConsole.description%","%node.launch.console.integratedTerminal.description%","%node.launch.console.externalTerminal.description%"],"description":"%node.launch.console.description%","default":"internalConsole"},"args":{"type":"array","description":"%node.launch.args.description%","items":{"type":"string"},"default":[]},"restart":{"description":"%node.attach.restart.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","properties":{"delay":{"type":"number","minimum":0,"default":1000},"maxAttempts":{"type":"number","minimum":0,"default":10}}}]},"runtimeExecutable":{"type":["string","null"],"markdownDescription":"%node.launch.runtimeExecutable.description%","default":"node"},"runtimeVersion":{"type":"string","markdownDescription":"%node.launch.runtimeVersion.description%","default":"default"},"runtimeArgs":{"type":"array","description":"%node.launch.runtimeArgs.description%","items":{"type":"string"},"default":[]},"profileStartup":{"type":"boolean","description":"%node.profileStartup.description%","default":true},"attachSimplePort":{"type":"integer","description":"%node.attachSimplePort.description%","default":9229},"killBehavior":{"type":"string","enum":["forceful","polite","none"],"default":"forceful","markdownDescription":"%node.killBehavior.description%"}}},{"type":"object","description":"%debug.terminal.label%","additionalProperties":false,"default":{"program":"npm start"},"properties":{"resolveSourceMapLocations":{"type":["array","null"],"description":"%node.resolveSourceMapLocations.description%","default":["${workspaceFolder}/**","!**/node_modules/**"],"items":{"type":"string"}},"outFiles":{"type":["array"],"description":"%outFiles.description%","default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"items":{"type":"string"}},"pauseForSourceMap":{"type":"boolean","markdownDescription":"%node.pauseForSourceMap.description%","default":false},"showAsyncStacks":{"description":"%node.showAsyncStacks.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","required":["onAttach"],"properties":{"onAttach":{"type":"number","default":32}}},{"type":"object","required":["onceBreakpointResolved"],"properties":{"onceBreakpointResolved":{"type":"number","default":32}}}]},"skipFiles":{"type":"array","description":"%browser.skipFiles.description%","default":["<node_internals>/**"]},"smartStep":{"type":"boolean","description":"%smartStep.description%","default":true},"sourceMaps":{"type":"boolean","description":"%browser.sourceMaps.description%","default":true},"sourceMapRenames":{"type":"boolean","default":true,"description":"%browser.sourceMapRenames.description%"},"sourceMapPathOverrides":{"type":"object","description":"%node.sourceMapPathOverrides.description%","default":{"webpack://?:*/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","meteor://💻app/*":"${workspaceFolder}/*"}},"timeout":{"type":"number","description":"%node.timeout.description%","default":10000},"timeouts":{"type":"object","description":"%timeouts.generalDescription%","default":{},"properties":{"sourceMapMinPause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapMinPause.description%","default":1000},"sourceMapCumulativePause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","default":1000}},"additionalProperties":false,"markdownDescription":"%timeouts.generalDescription.markdown%"},"trace":{"description":"%trace.description%","default":true,"oneOf":[{"type":"boolean","description":"%trace.boolean.description%"},{"type":"object","additionalProperties":false,"properties":{"console":{"type":"boolean","description":"%trace.stdio.description%"},"stdio":{"type":"boolean","description":"%trace.console.description%"},"level":{"enum":["fatal","error","warn","info","verbose"],"description":"%trace.level.description%"},"logFile":{"type":["string","null"],"description":"%trace.logFile.description%"},"tags":{"type":"array","description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]}}}}]},"outputCapture":{"enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%","default":"console"},"enableContentValidation":{"default":true,"type":"boolean","description":"%enableContentValidation.description%"},"customDescriptionGenerator":{"type":"string","description":"%customDescriptionGenerator.description%"},"customPropertiesGenerator":{"type":"string","deprecated":true,"description":"%customPropertiesGenerator.description%"},"cascadeTerminateToConfigurations":{"type":"array","items":{"type":"string","uniqueItems":true},"default":[],"description":"%base.cascadeTerminateToConfigurations.label%"},"cwd":{"type":"string","description":"%node.launch.cwd.description%","default":"${workspaceFolder}","docDefault":"localRoot || ${workspaceFolder}"},"localRoot":{"type":["string","null"],"description":"%node.localRoot.description%","default":null},"remoteRoot":{"type":["string","null"],"description":"%node.remoteRoot.description%","default":null},"autoAttachChildProcesses":{"type":"boolean","description":"%node.launch.autoAttachChildProcesses.description%","default":true},"env":{"type":"object","additionalProperties":{"type":["string","null"]},"markdownDescription":"%node.launch.env.description%","default":{}},"envFile":{"type":"string","description":"%node.launch.envFile.description%","default":"${workspaceFolder}/.env"},"runtimeSourcemapPausePatterns":{"type":"array","items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","default":[]},"nodeVersionHint":{"type":"number","minimum":8,"description":"%node.versionHint.description%","default":12},"command":{"type":["string","null"],"description":"%debug.terminal.program.description%","default":"npm start"}}}]},"perScriptSourcemaps":{"type":"string","default":"auto","enum":["yes","no","auto"],"description":"%browser.perScriptSourcemaps.description%"},"port":{"type":"number","description":"%browser.launch.port.description%","default":0},"file":{"type":"string","description":"%browser.file.description%","default":"${workspaceFolder}/index.html"},"userDataDir":{"type":["string","boolean"],"description":"%browser.userDataDir.description%","default":true},"includeDefaultArgs":{"type":"boolean","description":"%browser.includeDefaultArgs.description%","default":true},"runtimeExecutable":{"type":["string","null"],"description":"%browser.runtimeExecutable.description%","default":"stable"},"runtimeArgs":{"type":"array","description":"%browser.runtimeArgs.description%","items":{"type":"string"},"default":[]},"env":{"type":"object","description":"%browser.env.description%","default":{}},"cwd":{"type":"string","description":"%browser.cwd.description%","default":null},"profileStartup":{"type":"boolean","description":"%browser.profileStartup.description%","default":true},"cleanUp":{"type":"string","enum":["wholeBrowser","onlyTab"],"description":"%browser.cleanUp.description%","default":"wholeBrowser"},"browserLaunchLocation":{"description":"%browser.browserLaunchLocation.description%","default":null,"oneOf":[{"type":"null"},{"type":"string","enum":["ui","workspace"]}]},"enabled":{"type":"string","enum":["on","off","always"]}}}]},"debug.javascript.pickAndAttachOptions":{"type":"object","default":{},"markdownDescription":"%configuration.pickAndAttachOptions%","properties":{"resolveSourceMapLocations":{"type":["array","null"],"description":"%node.resolveSourceMapLocations.description%","default":["${workspaceFolder}/**","!**/node_modules/**"],"items":{"type":"string"}},"outFiles":{"type":["array"],"description":"%outFiles.description%","default":["${workspaceFolder}/**/*.js","!**/node_modules/**"],"items":{"type":"string"}},"pauseForSourceMap":{"type":"boolean","markdownDescription":"%node.pauseForSourceMap.description%","default":false},"showAsyncStacks":{"description":"%node.showAsyncStacks.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","required":["onAttach"],"properties":{"onAttach":{"type":"number","default":32}}},{"type":"object","required":["onceBreakpointResolved"],"properties":{"onceBreakpointResolved":{"type":"number","default":32}}}]},"skipFiles":{"type":"array","description":"%browser.skipFiles.description%","default":["<node_internals>/**"]},"smartStep":{"type":"boolean","description":"%smartStep.description%","default":true},"sourceMaps":{"type":"boolean","description":"%browser.sourceMaps.description%","default":true},"sourceMapRenames":{"type":"boolean","default":true,"description":"%browser.sourceMapRenames.description%"},"sourceMapPathOverrides":{"type":"object","description":"%node.sourceMapPathOverrides.description%","default":{"webpack://?:*/*":"${workspaceFolder}/*","webpack:///./~/*":"${workspaceFolder}/node_modules/*","meteor://💻app/*":"${workspaceFolder}/*"}},"timeout":{"type":"number","description":"%node.timeout.description%","default":10000},"timeouts":{"type":"object","description":"%timeouts.generalDescription%","default":{},"properties":{"sourceMapMinPause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapMinPause.description%","default":1000},"sourceMapCumulativePause":{"type":"number","description":"%timeouts.sourceMaps.sourceMapCumulativePause.description%","default":1000}},"additionalProperties":false,"markdownDescription":"%timeouts.generalDescription.markdown%"},"trace":{"description":"%trace.description%","default":true,"oneOf":[{"type":"boolean","description":"%trace.boolean.description%"},{"type":"object","additionalProperties":false,"properties":{"console":{"type":"boolean","description":"%trace.stdio.description%"},"stdio":{"type":"boolean","description":"%trace.console.description%"},"level":{"enum":["fatal","error","warn","info","verbose"],"description":"%trace.level.description%"},"logFile":{"type":["string","null"],"description":"%trace.logFile.description%"},"tags":{"type":"array","description":"%trace.tags.description%","items":{"enum":["cdp","dap","runtime"]}}}}]},"outputCapture":{"enum":["console","std"],"markdownDescription":"%node.launch.outputCapture.description%","default":"console"},"enableContentValidation":{"default":true,"type":"boolean","description":"%enableContentValidation.description%"},"customDescriptionGenerator":{"type":"string","description":"%customDescriptionGenerator.description%"},"customPropertiesGenerator":{"type":"string","deprecated":true,"description":"%customPropertiesGenerator.description%"},"cascadeTerminateToConfigurations":{"type":"array","items":{"type":"string","uniqueItems":true},"default":[],"description":"%base.cascadeTerminateToConfigurations.label%"},"cwd":{"type":"string","description":"%node.launch.cwd.description%","default":"${workspaceFolder}","docDefault":"localRoot || ${workspaceFolder}"},"localRoot":{"type":["string","null"],"description":"%node.localRoot.description%","default":null},"remoteRoot":{"type":["string","null"],"description":"%node.remoteRoot.description%","default":null},"autoAttachChildProcesses":{"type":"boolean","description":"%node.launch.autoAttachChildProcesses.description%","default":true},"env":{"type":"object","additionalProperties":{"type":["string","null"]},"markdownDescription":"%node.launch.env.description%","default":{}},"envFile":{"type":"string","description":"%node.launch.envFile.description%","default":"${workspaceFolder}/.env"},"runtimeSourcemapPausePatterns":{"type":"array","items":{"type":"string"},"markdownDescription":"%node.launch.runtimeSourcemapPausePatterns%","default":[]},"nodeVersionHint":{"type":"number","minimum":8,"description":"%node.versionHint.description%","default":12},"address":{"type":"string","description":"%node.address.description%","default":"localhost"},"port":{"type":"number","description":"%node.port.description%","default":9229},"websocketAddress":{"type":"string","description":"%node.websocket.address.description%"},"restart":{"description":"%node.attach.restart.description%","default":true,"oneOf":[{"type":"boolean"},{"type":"object","properties":{"delay":{"type":"number","minimum":0,"default":1000},"maxAttempts":{"type":"number","minimum":0,"default":10}}}]},"processId":{"type":"string","description":"%node.attach.processId.description%","default":"${command:PickProcess}"},"attachExistingChildren":{"type":"boolean","description":"%node.attach.attachExistingChildren.description%","default":false},"continueOnAttach":{"type":"boolean","markdownDescription":"%node.attach.continueOnAttach%","default":true}}},"debug.javascript.autoAttachFilter":{"type":"string","default":"disabled","enum":["always","smart","onlyWithFlag","disabled"],"enumDescriptions":["%configuration.autoAttachMode.always%","%configuration.autoAttachMode.smart%","%configuration.autoAttachMode.explicit%","%configuration.autoAttachMode.disabled%"],"markdownDescription":"%configuration.autoAttachMode%"},"debug.javascript.autoAttachSmartPattern":{"type":"array","items":{"type":"string"},"default":["${workspaceFolder}/**","!**/node_modules/**","**/$KNOWN_TOOLS$/**"],"markdownDescription":"%configuration.autoAttachSmartPatterns%"},"debug.javascript.breakOnConditionalError":{"type":"boolean","default":false,"markdownDescription":"%configuration.breakOnConditionalError%"},"debug.javascript.unmapMissingSources":{"type":"boolean","default":false,"description":"%configuration.unmapMissingSources%"},"debug.javascript.defaultRuntimeExecutable":{"type":"object","default":{"pwa-node":"node"},"markdownDescription":"%configuration.defaultRuntimeExecutables%","properties":{"pwa-node":{"type":"string"},"pwa-chrome":{"type":"string"},"pwa-msedge":{"type":"string"}}},"debug.javascript.resourceRequestOptions":{"type":"object","default":{},"markdownDescription":"%configuration.resourceRequestOptions%"}}},"views":{"debug":[{"id":"jsBrowserBreakpoints","name":"Browser breakpoints","when":"debugType == pwa-chrome || debugType == pwa-msedge"},{"id":"jsExcludedCallers","name":"Excluded Callers","when":"debugType == pwa-extensionHost && jsDebugHasExcludedCallers || debugType == node-terminal && jsDebugHasExcludedCallers || debugType == pwa-node && jsDebugHasExcludedCallers || debugType == pwa-chrome && jsDebugHasExcludedCallers || debugType == pwa-msedge && jsDebugHasExcludedCallers"}]},"viewsWelcome":[{"view":"debug","contents":"%debug.terminal.welcomeWithLink%","when":"debugStartLanguage == javascript && !isWeb || debugStartLanguage == typescript && !isWeb || debugStartLanguage == javascriptreact && !isWeb || debugStartLanguage == typescriptreact && !isWeb"},{"view":"debug","contents":"%debug.terminal.welcome%","when":"debugStartLanguage == javascript && isWeb || debugStartLanguage == typescript && isWeb || debugStartLanguage == javascriptreact && isWeb || debugStartLanguage == typescriptreact && isWeb"}]},"capabilities":{"virtualWorkspaces":false,"untrustedWorkspaces":{"supported":"limited","description":"%workspaceTrust.description%"}}}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n=r(4893);module.exports=n})();