"use strict";var DG=Object.create;var oS=Object.defineProperty;var GL=Object.getOwnPropertyDescriptor;var _G=Object.getOwnPropertyNames;var TG=Object.getPrototypeOf,RG=Object.prototype.hasOwnProperty;var AG=(n,e)=>()=>(n&&(e=n(n=0)),e);var O=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),zL=(n,e)=>{for(var t in e)oS(n,t,{get:e[t],enumerable:!0})},QL=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _G(e))!RG.call(n,i)&&i!==t&&oS(n,i,{get:()=>e[i],enumerable:!(r=GL(e,i))||r.enumerable});return n};var k=(n,e,t)=>(t=n!=null?DG(TG(n)):{},QL(e||!n||!n.__esModule?oS(t,"default",{value:n,enumerable:!0}):t,n)),YL=n=>QL(oS({},"__esModule",{value:!0}),n),v=(n,e,t,r)=>{for(var i=r>1?void 0:r?GL(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&oS(e,t,i),i},m=(n,e)=>(t,r)=>e(t,r,n);var ZL=O(()=>{var XL;(function(n){(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=i(n);typeof t.Reflect>"u"?t.Reflect=n:r=i(t.Reflect,r),e(r);function i(o,s){return function(a,l){typeof o[a]!="function"&&Object.defineProperty(o,a,{configurable:!0,writable:!0,value:l}),s&&s(a,l)}}})(function(e){var t=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",a={__proto__:[]}instanceof Array,l=!s&&!a,c={create:s?function(){return Xr(Object.create(null))}:a?function(){return Xr({__proto__:null})}:function(){return Xr({})},has:l?function($,X){return t.call($,X)}:function($,X){return X in $},get:l?function($,X){return t.call($,X)?$[X]:void 0}:function($,X){return $[X]}},u=Object.getPrototypeOf(Function),d=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",f=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:yr(),g=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lr(),b=!d&&typeof WeakMap=="function"?WeakMap:wr(),I=new b;function E($,X,ue,ve){if(nr(ue)){if(!fc($))throw new TypeError;if(!U(X))throw new TypeError;return Ie($,X)}else{if(!fc($))throw new TypeError;if(!Fr(X))throw new TypeError;if(!Fr(ve)&&!nr(ve)&&!pi(ve))throw new TypeError;return pi(ve)&&(ve=void 0),ue=zn(ue),Ke($,X,ue,ve)}}e("decorate",E);function x($,X){function ue(ve,Je){if(!Fr(ve))throw new TypeError;if(!nr(Je)&&!pe(Je))throw new TypeError;Te($,X,ve,Je)}return ue}e("metadata",x);function A($,X,ue,ve){if(!Fr(ue))throw new TypeError;return nr(ve)||(ve=zn(ve)),Te($,X,ue,ve)}e("defineMetadata",A);function T($,X,ue){if(!Fr(X))throw new TypeError;return nr(ue)||(ue=zn(ue)),mt($,X,ue)}e("hasMetadata",T);function J($,X,ue){if(!Fr(X))throw new TypeError;return nr(ue)||(ue=zn(ue)),kt($,X,ue)}e("hasOwnMetadata",J);function ne($,X,ue){if(!Fr(X))throw new TypeError;return nr(ue)||(ue=zn(ue)),ee($,X,ue)}e("getMetadata",ne);function H($,X,ue){if(!Fr(X))throw new TypeError;return nr(ue)||(ue=zn(ue)),Ee($,X,ue)}e("getOwnMetadata",H);function oe($,X){if(!Fr($))throw new TypeError;return nr(X)||(X=zn(X)),he($,X)}e("getMetadataKeys",oe);function ae($,X){if(!Fr($))throw new TypeError;return nr(X)||(X=zn(X)),ht($,X)}e("getOwnMetadataKeys",ae);function Y($,X,ue){if(!Fr(X))throw new TypeError;nr(ue)||(ue=zn(ue));var ve=pt(X,ue,!1);if(nr(ve)||!ve.delete($))return!1;if(ve.size>0)return!0;var Je=I.get(X);return Je.delete(ue),Je.size>0||I.delete(X),!0}e("deleteMetadata",Y);function Ie($,X){for(var ue=$.length-1;ue>=0;--ue){var ve=$[ue],Je=ve(X);if(!nr(Je)&&!pi(Je)){if(!U(Je))throw new TypeError;X=Je}}return X}function Ke($,X,ue,ve){for(var Je=$.length-1;Je>=0;--Je){var Zr=$[Je],bt=Zr(X,ue,ve);if(!nr(bt)&&!pi(bt)){if(!Fr(bt))throw new TypeError;ve=bt}}return ve}function pt($,X,ue){var ve=I.get($);if(nr(ve)){if(!ue)return;ve=new f,I.set($,ve)}var Je=ve.get(X);if(nr(Je)){if(!ue)return;Je=new f,ve.set(X,Je)}return Je}function mt($,X,ue){var ve=kt($,X,ue);if(ve)return!0;var Je=xt(X);return pi(Je)?!1:mt($,Je,ue)}function kt($,X,ue){var ve=pt(X,ue,!1);return nr(ve)?!1:Nt(ve.has($))}function ee($,X,ue){var ve=kt($,X,ue);if(ve)return Ee($,X,ue);var Je=xt(X);if(!pi(Je))return ee($,Je,ue)}function Ee($,X,ue){var ve=pt(X,ue,!1);if(!nr(ve))return ve.get($)}function Te($,X,ue,ve){var Je=pt(ue,ve,!0);Je.set($,X)}function he($,X){var ue=ht($,X),ve=xt($);if(ve===null)return ue;var Je=he(ve,X);if(Je.length<=0)return ue;if(ue.length<=0)return Je;for(var Zr=new g,bt=[],wt=0,Qe=ue;wt=0&&wt=this._keys.length?(this._index=-1,this._keys=X,this._values=X):this._index++,{value:Qe,done:!1}}return{value:void 0,done:!0}},bt.prototype.throw=function(wt){throw this._index>=0&&(this._index=-1,this._keys=X,this._values=X),wt},bt.prototype.return=function(wt){return this._index>=0&&(this._index=-1,this._keys=X,this._values=X),{value:wt,done:!0}},bt}();return function(){function bt(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return Object.defineProperty(bt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),bt.prototype.has=function(wt){return this._find(wt,!1)>=0},bt.prototype.get=function(wt){var Qe=this._find(wt,!1);return Qe>=0?this._values[Qe]:void 0},bt.prototype.set=function(wt,Qe){var At=this._find(wt,!0);return this._values[At]=Qe,this},bt.prototype.delete=function(wt){var Qe=this._find(wt,!1);if(Qe>=0){for(var At=this._keys.length,Z=Qe+1;ZNG});var NG,tU=AG(()=>{"use strict";NG=!1});var UU=O(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.EventEmitter=Va.once=Va.toPromise=void 0;function lz(n,e){return e?e.aborted?Promise.resolve(void 0):new Promise(t=>{let r=(0,Va.once)(n,o=>{e.removeEventListener("abort",i),t(o)}),i=()=>{r.dispose(),e.removeEventListener("abort",i),t(void 0)};e.addEventListener("abort",i)}):new Promise(t=>(0,Va.once)(n,t))}Va.toPromise=lz;var cz=(n,e)=>{let t=n(r=>{e(r),t.dispose()});return t};Va.once=cz;var _R=class{constructor(){this.event=(e,t,r)=>{let i=this.add(t?e.bind(t):e);return r?.push(i),i}}get size(){return this.listeners?typeof this.listeners=="function"?1:this.listeners.length:0}fire(e){if(this.listeners)if(typeof this.listeners=="function")this.listeners(e);else for(let t of this.listeners)t(e)}dispose(){this.listeners=void 0}add(e){return this.listeners?typeof this.listeners=="function"?this.listeners=[this.listeners,e]:this.listeners.push(e):this.listeners=e,{dispose:()=>this.rm(e)}}rm(e){if(!this.listeners)return;if(typeof this.listeners=="function"){this.listeners===e&&(this.listeners=void 0);return}let t=this.listeners.indexOf(e);t!==-1&&(this.listeners.length===2?this.listeners=t===0?this.listeners[1]:this.listeners[0]:this.listeners=this.listeners.slice(0,t).concat(this.listeners.slice(t+1)))}};Va.EventEmitter=_R});var Sn=O(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.NON_CUSTOM_TAG_KEYS=Bt.PRE_DESTROY=Bt.POST_CONSTRUCT=Bt.DESIGN_PARAM_TYPES=Bt.PARAM_TYPES=Bt.TAGGED_PROP=Bt.TAGGED=Bt.MULTI_INJECT_TAG=Bt.INJECT_TAG=Bt.OPTIONAL_TAG=Bt.UNMANAGED_TAG=Bt.NAME_TAG=Bt.NAMED_TAG=void 0;Bt.NAMED_TAG="named";Bt.NAME_TAG="name";Bt.UNMANAGED_TAG="unmanaged";Bt.OPTIONAL_TAG="optional";Bt.INJECT_TAG="inject";Bt.MULTI_INJECT_TAG="multi_inject";Bt.TAGGED="inversify:tagged";Bt.TAGGED_PROP="inversify:tagged_props";Bt.PARAM_TYPES="inversify:paramtypes";Bt.DESIGN_PARAM_TYPES="design:paramtypes";Bt.POST_CONSTRUCT="post_construct";Bt.PRE_DESTROY="pre_destroy";function uz(){return[Bt.INJECT_TAG,Bt.MULTI_INJECT_TAG,Bt.NAME_TAG,Bt.UNMANAGED_TAG,Bt.NAMED_TAG,Bt.OPTIONAL_TAG]}Bt.NON_CUSTOM_TAG_KEYS=uz()});var ea=O(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.TargetTypeEnum=ju.BindingTypeEnum=ju.BindingScopeEnum=void 0;var dz={Request:"Request",Singleton:"Singleton",Transient:"Transient"};ju.BindingScopeEnum=dz;var pz={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};ju.BindingTypeEnum=pz;var mz={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};ju.TargetTypeEnum=mz});var Ju=O(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.id=void 0;var fz=0;function hz(){return fz++}AE.id=hz});var GU=O(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.Binding=void 0;var HU=ea(),gz=Ju(),vz=function(){function n(e,t){this.id=(0,gz.id)(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=HU.BindingTypeEnum.Invalid,this.constraint=function(r){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return n.prototype.clone=function(){var e=new n(this.serviceIdentifier,this.scope);return e.activated=e.scope===HU.BindingScopeEnum.Singleton?this.activated:!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.onDeactivation=this.onDeactivation,e.cache=this.cache,e},n}();NE.Binding=vz});var bi=O(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.STACK_OVERFLOW=Ne.CIRCULAR_DEPENDENCY_IN_FACTORY=Ne.ON_DEACTIVATION_ERROR=Ne.PRE_DESTROY_ERROR=Ne.POST_CONSTRUCT_ERROR=Ne.ASYNC_UNBIND_REQUIRED=Ne.MULTIPLE_POST_CONSTRUCT_METHODS=Ne.MULTIPLE_PRE_DESTROY_METHODS=Ne.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=Ne.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=Ne.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=Ne.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=Ne.ARGUMENTS_LENGTH_MISMATCH=Ne.INVALID_DECORATOR_OPERATION=Ne.INVALID_TO_SELF_VALUE=Ne.LAZY_IN_SYNC=Ne.INVALID_FUNCTION_BINDING=Ne.INVALID_MIDDLEWARE_RETURN=Ne.NO_MORE_SNAPSHOTS_AVAILABLE=Ne.INVALID_BINDING_TYPE=Ne.NOT_IMPLEMENTED=Ne.CIRCULAR_DEPENDENCY=Ne.UNDEFINED_INJECT_ANNOTATION=Ne.MISSING_INJECT_ANNOTATION=Ne.MISSING_INJECTABLE_ANNOTATION=Ne.NOT_REGISTERED=Ne.CANNOT_UNBIND=Ne.AMBIGUOUS_MATCH=Ne.KEY_NOT_FOUND=Ne.NULL_ARGUMENT=Ne.DUPLICATED_METADATA=Ne.DUPLICATED_INJECTABLE_DECORATOR=void 0;Ne.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.";Ne.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:";Ne.NULL_ARGUMENT="NULL argument";Ne.KEY_NOT_FOUND="Key Not Found";Ne.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:";Ne.CANNOT_UNBIND="Could not unbind serviceIdentifier:";Ne.NOT_REGISTERED="No matching bindings found for serviceIdentifier:";Ne.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:";Ne.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";var yz=function(n){return"@inject called with undefined this could mean that the class "+n+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."};Ne.UNDEFINED_INJECT_ANNOTATION=yz;Ne.CIRCULAR_DEPENDENCY="Circular dependency found:";Ne.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.";Ne.INVALID_BINDING_TYPE="Invalid binding type:";Ne.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.";Ne.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!";Ne.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!";var bz=function(n){return"You are attempting to construct '"+n+`' in a synchronous way but it has asynchronous dependencies.`};Ne.LAZY_IN_SYNC=bz;Ne.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier";Ne.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";var Iz=function(){for(var n=[],e=0;e= than the number of constructor arguments of its base class.")};Ne.ARGUMENTS_LENGTH_MISMATCH=Iz;Ne.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.";Ne.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').";Ne.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean";Ne.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean";Ne.MULTIPLE_PRE_DESTROY_METHODS="Cannot apply @preDestroy decorator multiple times in the same class";Ne.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";Ne.ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";var Sz=function(n,e){return"@postConstruct error in class "+n+": "+e};Ne.POST_CONSTRUCT_ERROR=Sz;var Cz=function(n,e){return"@preDestroy error in class "+n+": "+e};Ne.PRE_DESTROY_ERROR=Cz;var wz=function(n,e){return"onDeactivation() error in class "+n+": "+e};Ne.ON_DEACTIVATION_ERROR=wz;var Ez=function(n,e){return"It looks like there is a circular dependency in one of the '"+n+"' bindings. Please investigate bindings with"+("service identifier '"+e+"'.")};Ne.CIRCULAR_DEPENDENCY_IN_FACTORY=Ez;Ne.STACK_OVERFLOW="Maximum call stack size exceeded"});var MR=O(ja=>{"use strict";var Pz=ja&&ja.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),kz=ja&&ja.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),xz=ja&&ja.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Pz(e,n,t);return kz(e,n),e};Object.defineProperty(ja,"__esModule",{value:!0});ja.MetadataReader=void 0;var NR=xz(Sn()),Dz=function(){function n(){}return n.prototype.getConstructorMetadata=function(e){var t=Reflect.getMetadata(NR.PARAM_TYPES,e),r=Reflect.getMetadata(NR.TAGGED,e);return{compilerGeneratedMetadata:t,userGeneratedMetadata:r||{}}},n.prototype.getPropertiesMetadata=function(e){var t=Reflect.getMetadata(NR.TAGGED_PROP,e)||[];return t},n}();ja.MetadataReader=Dz});var zU=O(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.BindingCount=void 0;var _z={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1};ME.BindingCount=_z});var KR=O(ms=>{"use strict";var Tz=ms&&ms.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),Rz=ms&&ms.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Az=ms&&ms.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Tz(e,n,t);return Rz(e,n),e};Object.defineProperty(ms,"__esModule",{value:!0});ms.tryAndThrowErrorIfStackOverflow=ms.isStackOverflowExeption=void 0;var Nz=Az(bi());function QU(n){return n instanceof RangeError||n.message===Nz.STACK_OVERFLOW}ms.isStackOverflowExeption=QU;var Mz=function(n,e){try{return n()}catch(t){throw QU(t)&&(t=e()),t}};ms.tryAndThrowErrorIfStackOverflow=Mz});var uh=O(Cn=>{"use strict";var Kz=Cn&&Cn.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),Oz=Cn&&Cn.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Fz=Cn&&Cn.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Kz(e,n,t);return Oz(e,n),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.getSymbolDescription=Cn.circularDependencyToException=Cn.listMetadataForTarget=Cn.listRegisteredBindingsForServiceIdentifier=Cn.getServiceIdentifierAsString=Cn.getFunctionName=void 0;var Lz=Fz(bi());function YU(n){if(typeof n=="function"){var e=n;return e.name}else{if(typeof n=="symbol")return n.toString();var e=n;return e}}Cn.getServiceIdentifierAsString=YU;function Uz(n,e,t){var r="",i=t(n,e);return i.length!==0&&(r=` Registered bindings:`,i.forEach(function(o){var s="Object";o.implementationType!==null&&(s=eW(o.implementationType)),r=r+` `+s,o.constraint.metaData&&(r=r+" - "+o.constraint.metaData)})),r}Cn.listRegisteredBindingsForServiceIdentifier=Uz;function XU(n,e){return n.parentRequest===null?!1:n.parentRequest.serviceIdentifier===e?!0:XU(n.parentRequest,e)}function Wz(n){function e(r,i){i===void 0&&(i=[]);var o=YU(r.serviceIdentifier);return i.push(o),r.parentRequest!==null?e(r.parentRequest,i):i}var t=e(n);return t.reverse().join(" --> ")}function ZU(n){n.childRequests.forEach(function(e){if(XU(e,e.serviceIdentifier)){var t=Wz(e);throw new Error(Lz.CIRCULAR_DEPENDENCY+" "+t)}else ZU(e)})}Cn.circularDependencyToException=ZU;function Vz(n,e){if(e.isTagged()||e.isNamed()){var t="",r=e.getNamedTag(),i=e.getCustomTags();return r!==null&&(t+=r.toString()+` `),i!==null&&i.forEach(function(o){t+=o.toString()+` `})," "+n+` `+n+" - "+t}else return" "+n}Cn.listMetadataForTarget=Vz;function eW(n){if(n.name)return n.name;var e=n.toString(),t=e.match(/^function\s*([^\s(]+)/);return t?t[1]:"Anonymous function: "+e}Cn.getFunctionName=eW;function jz(n){return n.toString().slice(7,-1)}Cn.getSymbolDescription=jz});var tW=O(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.Context=void 0;var Jz=Ju(),Bz=function(){function n(e){this.id=(0,Jz.id)(),this.container=e}return n.prototype.addPlan=function(e){this.plan=e},n.prototype.setCurrentRequest=function(e){this.currentRequest=e},n}();KE.Context=Bz});var ta=O(Ja=>{"use strict";var $z=Ja&&Ja.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),qz=Ja&&Ja.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Hz=Ja&&Ja.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&$z(e,n,t);return qz(e,n),e};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.Metadata=void 0;var Gz=Hz(Sn()),zz=function(){function n(e,t){this.key=e,this.value=t}return n.prototype.toString=function(){return this.key===Gz.NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},n}();Ja.Metadata=zz});var rW=O(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.Plan=void 0;var Qz=function(){function n(e,t){this.parentContext=e,this.rootRequest=t}return n}();OE.Plan=Qz});var OR=O(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.LazyServiceIdentifer=void 0;var Yz=function(){function n(e){this._cb=e}return n.prototype.unwrap=function(){return this._cb()},n}();FE.LazyServiceIdentifer=Yz});var nW=O(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.QueryableString=void 0;var Xz=function(){function n(e){this.str=e}return n.prototype.startsWith=function(e){return this.str.indexOf(e)===0},n.prototype.endsWith=function(e){var t="",r=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},r)},n.prototype.contains=function(e){return this.str.indexOf(e)!==-1},n.prototype.equals=function(e){return this.str===e},n.prototype.value=function(){return this.str},n}();LE.QueryableString=Xz});var FR=O(Ba=>{"use strict";var Zz=Ba&&Ba.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),eQ=Ba&&Ba.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),tQ=Ba&&Ba.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Zz(e,n,t);return eQ(e,n),e};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Target=void 0;var Ic=tQ(Sn()),rQ=Ju(),nQ=uh(),iW=ta(),iQ=nW(),oQ=function(){function n(e,t,r,i){this.id=(0,rQ.id)(),this.type=e,this.serviceIdentifier=r;var o=typeof t=="symbol"?(0,nQ.getSymbolDescription)(t):t;this.name=new iQ.QueryableString(o||""),this.identifier=t,this.metadata=new Array;var s=null;typeof i=="string"?s=new iW.Metadata(Ic.NAMED_TAG,i):i instanceof iW.Metadata&&(s=i),s!==null&&this.metadata.push(s)}return n.prototype.hasTag=function(e){for(var t=0,r=this.metadata;t{"use strict";var sQ=Ii&&Ii.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),aQ=Ii&&Ii.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),oW=Ii&&Ii.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&sQ(e,n,t);return aQ(e,n),e},UE=Ii&&Ii.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r0,u=l.length>t.length,d=c||u?l.length:t.length,f=dQ(r,e,o,a,d),g=cW(n,t,e),b=UE(UE([],f,!0),g,!0);return b}function uQ(n,e,t,r,i){var o=i[n.toString()]||[],s=dW(o),a=s.unmanaged!==!0,l=r[n],c=s.inject||s.multiInject;if(l=c||l,l instanceof lQ.LazyServiceIdentifer&&(l=l.unwrap()),a){var u=l===Object,d=l===Function,f=l===void 0,g=u||d||f;if(!e&&g){var b=LR.MISSING_INJECT_ANNOTATION+" argument "+n+" in class "+t+".";throw new Error(b)}var I=new aW.Target(sW.TargetTypeEnum.ConstructorArgument,s.targetName,l);return I.metadata=o,I}return null}function dQ(n,e,t,r,i){for(var o=[],s=0;s0?a:uW(n,t)}else return 0}Ii.getBaseClassDependencyCount=uW;function dW(n){var e={};return n.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[wS.INJECT_TAG],multiInject:e[wS.MULTI_INJECT_TAG],targetName:e[wS.NAME_TAG],unmanaged:e[wS.UNMANAGED_TAG]}}});var mW=O(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});WE.Request=void 0;var mQ=Ju(),fQ=function(){function n(e,t,r,i,o){this.id=(0,mQ.id)(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=r,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=r===null?new Map:null}return n.prototype.addChildRequest=function(e,t,r){var i=new n(e,this.parentContext,this,t,r);return this.childRequests.push(i),i},n}();WE.Request=fQ});var BR=O(ro=>{"use strict";var hQ=ro&&ro.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),gQ=ro&&ro.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),gW=ro&&ro.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&hQ(e,n,t);return gQ(e,n),e};Object.defineProperty(ro,"__esModule",{value:!0});ro.getBindingDictionary=ro.createMockRequest=ro.plan=void 0;var VE=zU(),VR=gW(bi()),vW=ea(),fW=gW(Sn()),vQ=KR(),dh=uh(),yW=tW(),jR=ta(),yQ=rW(),WR=pW(),JR=mW(),bW=FR();function IW(n){return n._bindingDictionary}ro.getBindingDictionary=IW;function bQ(n,e,t,r,i,o){var s=n?fW.MULTI_INJECT_TAG:fW.INJECT_TAG,a=new jR.Metadata(s,t),l=new bW.Target(e,r,t,a);if(i!==void 0){var c=new jR.Metadata(i,o);l.metadata.push(c)}return l}function hW(n,e,t,r,i){var o=ES(t.container,i.serviceIdentifier),s=[];return o.length===VE.BindingCount.NoBindingsAvailable&&t.container.options.autoBindInjectable&&typeof i.serviceIdentifier=="function"&&n.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(t.container.bind(i.serviceIdentifier).toSelf(),o=ES(t.container,i.serviceIdentifier)),e?s=o:s=o.filter(function(a){var l=new JR.Request(a.serviceIdentifier,t,r,a,i);return a.constraint(l)}),IQ(i.serviceIdentifier,s,i,t.container),s}function IQ(n,e,t,r){switch(e.length){case VE.BindingCount.NoBindingsAvailable:if(t.isOptional())return e;var i=(0,dh.getServiceIdentifierAsString)(n),o=VR.NOT_REGISTERED;throw o+=(0,dh.listMetadataForTarget)(i,t),o+=(0,dh.listRegisteredBindingsForServiceIdentifier)(r,i,ES),new Error(o);case VE.BindingCount.OnlyOneBindingAvailable:return e;case VE.BindingCount.MultipleBindingsAvailable:default:if(t.isArray())return e;var i=(0,dh.getServiceIdentifierAsString)(n),o=VR.AMBIGUOUS_MATCH+" "+i;throw o+=(0,dh.listRegisteredBindingsForServiceIdentifier)(r,i,ES),new Error(o)}}function SW(n,e,t,r,i,o){var s,a;if(i===null){s=hW(n,e,r,null,o),a=new JR.Request(t,r,null,s,o);var l=new yQ.Plan(r,a);r.addPlan(l)}else s=hW(n,e,r,i,o),a=i.addChildRequest(o.serviceIdentifier,s,o);s.forEach(function(c){var u=null;if(o.isArray())u=a.addChildRequest(c.serviceIdentifier,c,o);else{if(c.cache)return;u=a}if(c.type===vW.BindingTypeEnum.Instance&&c.implementationType!==null){var d=(0,WR.getDependencies)(n,c.implementationType);if(!r.container.options.skipBaseClassChecks){var f=(0,WR.getBaseClassDependencyCount)(n,c.implementationType);if(d.length{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.isPromiseOrContainsPromise=ph.isPromise=void 0;function $R(n){var e=typeof n=="object"&&n!==null||typeof n=="function";return e&&typeof n.then=="function"}ph.isPromise=$R;function wQ(n){return $R(n)?!0:Array.isArray(n)&&n.some($R)}ph.isPromiseOrContainsPromise=wQ});var CW=O($a=>{"use strict";var EQ=$a&&$a.__awaiter||function(n,e,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(n,e||[])).next())})},PQ=$a&&$a.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.FactoryType=void 0;var AQ;(function(n){n.DynamicValue="toDynamicValue",n.Factory="toFactory",n.Provider="toProvider"})(AQ=kS.FactoryType||(kS.FactoryType={}))});var HR=O(no=>{"use strict";var NQ=no&&no.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),MQ=no&&no.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),KQ=no&&no.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&NQ(e,n,t);return MQ(e,n),e};Object.defineProperty(no,"__esModule",{value:!0});no.getFactoryDetails=no.ensureFullyBound=no.multiBindToService=void 0;var OQ=N(),FQ=KQ(bi()),qa=ea(),qR=wW(),LQ=function(n){return function(e){return function(){for(var t=[],r=0;r{"use strict";var mh=Jn&&Jn.__assign||function(){return mh=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0){var i=$Q(e,t),o=mh(mh({},i),{constr:n});i.isAsync?r=HQ(o):r=DW(o)}else r=new n;return r}function DW(n){var e,t=new((e=n.constr).bind.apply(e,BQ([void 0],n.constructorInjections,!1)));return n.propertyRequests.forEach(function(r,i){var o=r.target.identifier,s=n.propertyInjections[i];t[o]=s}),t}function HQ(n){return kW(this,void 0,void 0,function(){var e,t;return xW(this,function(r){switch(r.label){case 0:return[4,EW(n.constructorInjections)];case 1:return e=r.sent(),[4,EW(n.propertyInjections)];case 2:return t=r.sent(),[2,DW(mh(mh({},n),{constructorInjections:e,propertyInjections:t}))]}})})}function EW(n){return kW(this,void 0,void 0,function(){var e,t,r,i;return xW(this,function(o){for(e=[],t=0,r=n;t{"use strict";var XQ=io&&io.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),ZQ=io&&io.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),eY=io&&io.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&XQ(e,n,t);return ZQ(e,n),e},tY=io&&io.__awaiter||function(n,e,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(n,e||[])).next())})},rY=io&&io.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]{"use strict";var gY=Si&&Si.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),vY=Si&&Si.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),yY=Si&&Si.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&gY(e,n,t);return vY(e,n),e};Object.defineProperty(Si,"__esModule",{value:!0});Si.typeConstraint=Si.namedConstraint=Si.taggedConstraint=Si.traverseAncerstors=void 0;var bY=yY(Sn()),IY=ta(),KW=function(n,e){var t=n.parentRequest;return t!==null?e(t)?!0:KW(t,e):!1};Si.traverseAncerstors=KW;var OW=function(n){return function(e){var t=function(r){return r!==null&&r.target!==null&&r.target.matchesTag(n)(e)};return t.metaData=new IY.Metadata(n,e),t}};Si.taggedConstraint=OW;var SY=OW(bY.NAMED_TAG);Si.namedConstraint=SY;var CY=function(n){return function(e){var t=null;if(e!==null)if(t=e.bindings[0],typeof n=="string"){var r=t.serviceIdentifier;return r===n}else{var i=e.bindings[0].implementationType;return n===i}return!1}};Si.typeConstraint=CY});var $E=O(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.BindingWhenSyntax=void 0;var Vi=qE(),Rn=eA(),wY=function(){function n(e){this._binding=e}return n.prototype.when=function(e){return this._binding.constraint=e,new Vi.BindingOnSyntax(this._binding)},n.prototype.whenTargetNamed=function(e){return this._binding.constraint=(0,Rn.namedConstraint)(e),new Vi.BindingOnSyntax(this._binding)},n.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){if(e===null)return!1;var t=e.target!==null&&!e.target.isNamed()&&!e.target.isTagged();return t},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=(0,Rn.taggedConstraint)(e)(t),new Vi.BindingOnSyntax(this._binding)},n.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return t!==null&&(0,Rn.typeConstraint)(e)(t.parentRequest)},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return t!==null&&(0,Rn.namedConstraint)(e)(t.parentRequest)},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(r){return r!==null&&(0,Rn.taggedConstraint)(e)(t)(r.parentRequest)},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return t!==null&&(0,Rn.traverseAncerstors)(t,(0,Rn.typeConstraint)(e))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return t!==null&&!(0,Rn.traverseAncerstors)(t,(0,Rn.typeConstraint)(e))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return t!==null&&(0,Rn.traverseAncerstors)(t,(0,Rn.namedConstraint)(e))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return t!==null&&!(0,Rn.traverseAncerstors)(t,(0,Rn.namedConstraint)(e))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(r){return r!==null&&(0,Rn.traverseAncerstors)(r,(0,Rn.taggedConstraint)(e)(t))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(r){return r!==null&&!(0,Rn.traverseAncerstors)(r,(0,Rn.taggedConstraint)(e)(t))},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return t!==null&&(0,Rn.traverseAncerstors)(t,e)},new Vi.BindingOnSyntax(this._binding)},n.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return t!==null&&!(0,Rn.traverseAncerstors)(t,e)},new Vi.BindingOnSyntax(this._binding)},n}();BE.BindingWhenSyntax=wY});var qE=O(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.BindingOnSyntax=void 0;var FW=$E(),EY=function(){function n(e){this._binding=e}return n.prototype.onActivation=function(e){return this._binding.onActivation=e,new FW.BindingWhenSyntax(this._binding)},n.prototype.onDeactivation=function(e){return this._binding.onDeactivation=e,new FW.BindingWhenSyntax(this._binding)},n}();HE.BindingOnSyntax=EY});var tA=O(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.BindingWhenOnSyntax=void 0;var PY=qE(),kY=$E(),xY=function(){function n(e){this._binding=e,this._bindingWhenSyntax=new kY.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new PY.BindingOnSyntax(this._binding)}return n.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},n.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},n.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},n.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},n.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},n.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},n.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},n.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},n.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},n.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},n.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},n.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},n.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},n.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},n.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},n.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},n.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},n}();GE.BindingWhenOnSyntax=xY});var LW=O(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.BindingInSyntax=void 0;var rA=ea(),nA=tA(),DY=function(){function n(e){this._binding=e}return n.prototype.inRequestScope=function(){return this._binding.scope=rA.BindingScopeEnum.Request,new nA.BindingWhenOnSyntax(this._binding)},n.prototype.inSingletonScope=function(){return this._binding.scope=rA.BindingScopeEnum.Singleton,new nA.BindingWhenOnSyntax(this._binding)},n.prototype.inTransientScope=function(){return this._binding.scope=rA.BindingScopeEnum.Transient,new nA.BindingWhenOnSyntax(this._binding)},n}();zE.BindingInSyntax=DY});var UW=O(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.BindingInWhenOnSyntax=void 0;var _Y=LW(),TY=qE(),RY=$E(),AY=function(){function n(e){this._binding=e,this._bindingWhenSyntax=new RY.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new TY.BindingOnSyntax(this._binding),this._bindingInSyntax=new _Y.BindingInSyntax(e)}return n.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},n.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},n.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},n.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},n.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},n.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},n.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},n.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},n.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},n.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},n.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},n.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},n.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},n.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},n.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},n.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},n.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},n.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},n.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},n.prototype.onDeactivation=function(e){return this._bindingOnSyntax.onDeactivation(e)},n}();QE.BindingInWhenOnSyntax=AY});var jW=O(Ha=>{"use strict";var NY=Ha&&Ha.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),MY=Ha&&Ha.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),KY=Ha&&Ha.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&NY(e,n,t);return MY(e,n),e};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.BindingToSyntax=void 0;var WW=KY(bi()),ji=ea(),VW=UW(),fh=tA(),OY=function(){function n(e){this._binding=e}return n.prototype.to=function(e){return this._binding.type=ji.BindingTypeEnum.Instance,this._binding.implementationType=e,new VW.BindingInWhenOnSyntax(this._binding)},n.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+WW.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},n.prototype.toConstantValue=function(e){return this._binding.type=ji.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=ji.BindingScopeEnum.Singleton,new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toDynamicValue=function(e){return this._binding.type=ji.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new VW.BindingInWhenOnSyntax(this._binding)},n.prototype.toConstructor=function(e){return this._binding.type=ji.BindingTypeEnum.Constructor,this._binding.implementationType=e,this._binding.scope=ji.BindingScopeEnum.Singleton,new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toFactory=function(e){return this._binding.type=ji.BindingTypeEnum.Factory,this._binding.factory=e,this._binding.scope=ji.BindingScopeEnum.Singleton,new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toFunction=function(e){if(typeof e!="function")throw new Error(WW.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=ji.BindingTypeEnum.Function,this._binding.scope=ji.BindingScopeEnum.Singleton,t},n.prototype.toAutoFactory=function(e){return this._binding.type=ji.BindingTypeEnum.Factory,this._binding.factory=function(t){var r=function(){return t.container.get(e)};return r},this._binding.scope=ji.BindingScopeEnum.Singleton,new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toAutoNamedFactory=function(e){return this._binding.type=ji.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(r){return t.container.getNamed(e,r)}},new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toProvider=function(e){return this._binding.type=ji.BindingTypeEnum.Provider,this._binding.provider=e,this._binding.scope=ji.BindingScopeEnum.Singleton,new fh.BindingWhenOnSyntax(this._binding)},n.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},n}();Ha.BindingToSyntax=OY});var JW=O(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.ContainerSnapshot=void 0;var FY=function(){function n(){}return n.of=function(e,t,r,i,o){var s=new n;return s.bindings=e,s.middleware=t,s.deactivations=i,s.activations=r,s.moduleActivationStore=o,s},n}();YE.ContainerSnapshot=FY});var BW=O(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.isClonable=void 0;function LY(n){return typeof n=="object"&&n!==null&&"clone"in n&&typeof n.clone=="function"}XE.isClonable=LY});var iA=O(Ga=>{"use strict";var UY=Ga&&Ga.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),WY=Ga&&Ga.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),VY=Ga&&Ga.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&UY(e,n,t);return WY(e,n),e};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.Lookup=void 0;var qp=VY(bi()),jY=BW(),JY=function(){function n(){this._map=new Map}return n.prototype.getMap=function(){return this._map},n.prototype.add=function(e,t){if(e==null)throw new Error(qp.NULL_ARGUMENT);if(t==null)throw new Error(qp.NULL_ARGUMENT);var r=this._map.get(e);r!==void 0?r.push(t):this._map.set(e,[t])},n.prototype.get=function(e){if(e==null)throw new Error(qp.NULL_ARGUMENT);var t=this._map.get(e);if(t!==void 0)return t;throw new Error(qp.KEY_NOT_FOUND)},n.prototype.remove=function(e){if(e==null)throw new Error(qp.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(qp.KEY_NOT_FOUND)},n.prototype.removeIntersection=function(e){var t=this;this.traverse(function(r,i){var o=e.hasKey(r)?e.get(r):void 0;if(o!==void 0){var s=i.filter(function(a){return!o.some(function(l){return a===l})});t._setValue(r,s)}})},n.prototype.removeByCondition=function(e){var t=this,r=[];return this._map.forEach(function(i,o){for(var s=[],a=0,l=i;a0?this._map.set(e,t):this._map.delete(e)},n}();Ga.Lookup=JY});var qW=O(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.ModuleActivationStore=void 0;var $W=iA(),BY=function(){function n(){this._map=new Map}return n.prototype.remove=function(e){if(this._map.has(e)){var t=this._map.get(e);return this._map.delete(e),t}return this._getEmptyHandlersStore()},n.prototype.addDeactivation=function(e,t,r){this._getModuleActivationHandlers(e).onDeactivations.add(t,r)},n.prototype.addActivation=function(e,t,r){this._getModuleActivationHandlers(e).onActivations.add(t,r)},n.prototype.clone=function(){var e=new n;return this._map.forEach(function(t,r){e._map.set(r,{onActivations:t.onActivations.clone(),onDeactivations:t.onDeactivations.clone()})}),e},n.prototype._getModuleActivationHandlers=function(e){var t=this._map.get(e);return t===void 0&&(t=this._getEmptyHandlersStore(),this._map.set(e,t)),t},n.prototype._getEmptyHandlersStore=function(){var e={onActivations:new $W.Lookup,onDeactivations:new $W.Lookup};return e},n}();ZE.ModuleActivationStore=BY});var oA=O(Bn=>{"use strict";var tP=Bn&&Bn.__assign||function(){return tP=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.AsyncContainerModule=gh.ContainerModule=void 0;var GW=Ju(),nX=function(){function n(e){this.id=(0,GW.id)(),this.registry=e}return n}();gh.ContainerModule=nX;var iX=function(){function n(e){this.id=(0,GW.id)(),this.registry=e}return n}();gh.AsyncContainerModule=iX});var QW=O(rP=>{"use strict";Object.defineProperty(rP,"__esModule",{value:!0});rP.getFirstArrayDuplicate=void 0;function oX(n){for(var e=new Set,t=0,r=n;t{"use strict";var sX=Ci&&Ci.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),aX=Ci&&Ci.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),XW=Ci&&Ci.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&sX(e,n,t);return aX(e,n),e};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.createTaggedDecorator=Ci.tagProperty=Ci.tagParameter=Ci.decorate=void 0;var nP=XW(bi()),ZW=XW(Sn()),lX=QW();function cX(n){return n.prototype!==void 0}function uX(n){if(n!==void 0)throw new Error(nP.INVALID_DECORATOR_OPERATION)}function e2(n,e,t,r){uX(e),r2(ZW.TAGGED,n,t.toString(),r)}Ci.tagParameter=e2;function t2(n,e,t){if(cX(n))throw new Error(nP.INVALID_DECORATOR_OPERATION);r2(ZW.TAGGED_PROP,n.constructor,e,t)}Ci.tagProperty=t2;function dX(n){var e=[];if(Array.isArray(n)){e=n;var t=(0,lX.getFirstArrayDuplicate)(e.map(function(r){return r.key}));if(t!==void 0)throw new Error(nP.DUPLICATED_METADATA+" "+t.toString())}else e=[n];return e}function r2(n,e,t,r){var i=dX(r),o={};Reflect.hasOwnMetadata(n,e)&&(o=Reflect.getMetadata(n,e));var s=o[t];if(s===void 0)s=[];else for(var a=function(d){if(i.some(function(f){return f.key===d.key}))throw new Error(nP.DUPLICATED_METADATA+" "+d.key.toString())},l=0,c=s;l{"use strict";var hX=za&&za.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),gX=za&&za.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),n2=za&&za.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&hX(e,n,t);return gX(e,n),e};Object.defineProperty(za,"__esModule",{value:!0});za.injectable=void 0;var vX=n2(bi()),sA=n2(Sn());function yX(){return function(n){if(Reflect.hasOwnMetadata(sA.PARAM_TYPES,n))throw new Error(vX.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(sA.DESIGN_PARAM_TYPES,n)||[];return Reflect.defineMetadata(sA.PARAM_TYPES,e,n),n}}za.injectable=yX});var o2=O(iP=>{"use strict";Object.defineProperty(iP,"__esModule",{value:!0});iP.tagged=void 0;var bX=ta(),IX=Sc();function SX(n,e){return(0,IX.createTaggedDecorator)(new bX.Metadata(n,e))}iP.tagged=SX});var s2=O(Qa=>{"use strict";var CX=Qa&&Qa.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),wX=Qa&&Qa.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),EX=Qa&&Qa.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&CX(e,n,t);return wX(e,n),e};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.named=void 0;var PX=EX(Sn()),kX=ta(),xX=Sc();function DX(n){return(0,xX.createTaggedDecorator)(new kX.Metadata(PX.NAMED_TAG,n))}Qa.named=DX});var aA=O(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0});oP.injectBase=void 0;var _X=bi(),TX=ta(),RX=Sc();function AX(n){return function(e){return function(t,r,i){if(e===void 0){var o=typeof t=="function"?t.name:t.constructor.name;throw new Error((0,_X.UNDEFINED_INJECT_ANNOTATION)(o))}return(0,RX.createTaggedDecorator)(new TX.Metadata(n,e))(t,r,i)}}}oP.injectBase=AX});var a2=O(Ya=>{"use strict";var NX=Ya&&Ya.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),MX=Ya&&Ya.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),KX=Ya&&Ya.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&NX(e,n,t);return MX(e,n),e};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.inject=void 0;var OX=KX(Sn()),FX=aA(),LX=(0,FX.injectBase)(OX.INJECT_TAG);Ya.inject=LX});var l2=O(Xa=>{"use strict";var UX=Xa&&Xa.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),WX=Xa&&Xa.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),VX=Xa&&Xa.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&UX(e,n,t);return WX(e,n),e};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.optional=void 0;var jX=VX(Sn()),JX=ta(),BX=Sc();function $X(){return(0,BX.createTaggedDecorator)(new JX.Metadata(jX.OPTIONAL_TAG,!0))}Xa.optional=$X});var c2=O(Za=>{"use strict";var qX=Za&&Za.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),HX=Za&&Za.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),GX=Za&&Za.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&qX(e,n,t);return HX(e,n),e};Object.defineProperty(Za,"__esModule",{value:!0});Za.unmanaged=void 0;var zX=GX(Sn()),QX=ta(),YX=Sc();function XX(){return function(n,e,t){var r=new QX.Metadata(zX.UNMANAGED_TAG,!0);(0,YX.tagParameter)(n,e,t,r)}}Za.unmanaged=XX});var u2=O(el=>{"use strict";var ZX=el&&el.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),eZ=el&&el.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),tZ=el&&el.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&ZX(e,n,t);return eZ(e,n),e};Object.defineProperty(el,"__esModule",{value:!0});el.multiInject=void 0;var rZ=tZ(Sn()),nZ=aA(),iZ=(0,nZ.injectBase)(rZ.MULTI_INJECT_TAG);el.multiInject=iZ});var d2=O(tl=>{"use strict";var oZ=tl&&tl.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),sZ=tl&&tl.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),aZ=tl&&tl.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&oZ(e,n,t);return sZ(e,n),e};Object.defineProperty(tl,"__esModule",{value:!0});tl.targetName=void 0;var lZ=aZ(Sn()),cZ=ta(),uZ=Sc();function dZ(n){return function(e,t,r){var i=new cZ.Metadata(lZ.NAME_TAG,n);(0,uZ.tagParameter)(e,t,r,i)}}tl.targetName=dZ});var lA=O(sP=>{"use strict";Object.defineProperty(sP,"__esModule",{value:!0});sP.propertyEventDecorator=void 0;var pZ=ta();function mZ(n,e){return function(){return function(t,r){var i=new pZ.Metadata(n,r);if(Reflect.hasOwnMetadata(n,t.constructor))throw new Error(e);Reflect.defineMetadata(n,i,t.constructor)}}}sP.propertyEventDecorator=mZ});var m2=O(rl=>{"use strict";var fZ=rl&&rl.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),hZ=rl&&rl.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),p2=rl&&rl.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&fZ(e,n,t);return hZ(e,n),e};Object.defineProperty(rl,"__esModule",{value:!0});rl.postConstruct=void 0;var gZ=p2(bi()),vZ=p2(Sn()),yZ=lA(),bZ=(0,yZ.propertyEventDecorator)(vZ.POST_CONSTRUCT,gZ.MULTIPLE_POST_CONSTRUCT_METHODS);rl.postConstruct=bZ});var h2=O(nl=>{"use strict";var IZ=nl&&nl.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),SZ=nl&&nl.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),f2=nl&&nl.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&IZ(e,n,t);return SZ(e,n),e};Object.defineProperty(nl,"__esModule",{value:!0});nl.preDestroy=void 0;var CZ=f2(bi()),wZ=f2(Sn()),EZ=lA(),PZ=(0,EZ.propertyEventDecorator)(wZ.PRE_DESTROY,CZ.MULTIPLE_PRE_DESTROY_METHODS);nl.preDestroy=PZ});var g2=O(aP=>{"use strict";Object.defineProperty(aP,"__esModule",{value:!0});aP.interfaces=void 0;var cA;cA||(cA={});aP.interfaces=cA});var N=O(Me=>{"use strict";var kZ=Me&&Me.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),xZ=Me&&Me.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),DZ=Me&&Me.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&kZ(e,n,t);return xZ(e,n),e};Object.defineProperty(Me,"__esModule",{value:!0});Me.multiBindToService=Me.getServiceIdentifierAsString=Me.typeConstraint=Me.namedConstraint=Me.taggedConstraint=Me.traverseAncerstors=Me.decorate=Me.interfaces=Me.id=Me.MetadataReader=Me.preDestroy=Me.postConstruct=Me.targetName=Me.multiInject=Me.unmanaged=Me.optional=Me.LazyServiceIdentifer=Me.inject=Me.named=Me.tagged=Me.injectable=Me.createTaggedDecorator=Me.ContainerModule=Me.AsyncContainerModule=Me.TargetTypeEnum=Me.BindingTypeEnum=Me.BindingScopeEnum=Me.Container=Me.METADATA_KEY=void 0;var _Z=DZ(Sn());Me.METADATA_KEY=_Z;var TZ=oA();Object.defineProperty(Me,"Container",{enumerable:!0,get:function(){return TZ.Container}});var uA=ea();Object.defineProperty(Me,"BindingScopeEnum",{enumerable:!0,get:function(){return uA.BindingScopeEnum}});Object.defineProperty(Me,"BindingTypeEnum",{enumerable:!0,get:function(){return uA.BindingTypeEnum}});Object.defineProperty(Me,"TargetTypeEnum",{enumerable:!0,get:function(){return uA.TargetTypeEnum}});var v2=zW();Object.defineProperty(Me,"AsyncContainerModule",{enumerable:!0,get:function(){return v2.AsyncContainerModule}});Object.defineProperty(Me,"ContainerModule",{enumerable:!0,get:function(){return v2.ContainerModule}});var RZ=Sc();Object.defineProperty(Me,"createTaggedDecorator",{enumerable:!0,get:function(){return RZ.createTaggedDecorator}});var AZ=i2();Object.defineProperty(Me,"injectable",{enumerable:!0,get:function(){return AZ.injectable}});var NZ=o2();Object.defineProperty(Me,"tagged",{enumerable:!0,get:function(){return NZ.tagged}});var MZ=s2();Object.defineProperty(Me,"named",{enumerable:!0,get:function(){return MZ.named}});var KZ=a2();Object.defineProperty(Me,"inject",{enumerable:!0,get:function(){return KZ.inject}});var OZ=OR();Object.defineProperty(Me,"LazyServiceIdentifer",{enumerable:!0,get:function(){return OZ.LazyServiceIdentifer}});var FZ=l2();Object.defineProperty(Me,"optional",{enumerable:!0,get:function(){return FZ.optional}});var LZ=c2();Object.defineProperty(Me,"unmanaged",{enumerable:!0,get:function(){return LZ.unmanaged}});var UZ=u2();Object.defineProperty(Me,"multiInject",{enumerable:!0,get:function(){return UZ.multiInject}});var WZ=d2();Object.defineProperty(Me,"targetName",{enumerable:!0,get:function(){return WZ.targetName}});var VZ=m2();Object.defineProperty(Me,"postConstruct",{enumerable:!0,get:function(){return VZ.postConstruct}});var jZ=h2();Object.defineProperty(Me,"preDestroy",{enumerable:!0,get:function(){return jZ.preDestroy}});var JZ=MR();Object.defineProperty(Me,"MetadataReader",{enumerable:!0,get:function(){return JZ.MetadataReader}});var BZ=Ju();Object.defineProperty(Me,"id",{enumerable:!0,get:function(){return BZ.id}});var $Z=g2();Object.defineProperty(Me,"interfaces",{enumerable:!0,get:function(){return $Z.interfaces}});var qZ=Sc();Object.defineProperty(Me,"decorate",{enumerable:!0,get:function(){return qZ.decorate}});var lP=eA();Object.defineProperty(Me,"traverseAncerstors",{enumerable:!0,get:function(){return lP.traverseAncerstors}});Object.defineProperty(Me,"taggedConstraint",{enumerable:!0,get:function(){return lP.taggedConstraint}});Object.defineProperty(Me,"namedConstraint",{enumerable:!0,get:function(){return lP.namedConstraint}});Object.defineProperty(Me,"typeConstraint",{enumerable:!0,get:function(){return lP.typeConstraint}});var HZ=uh();Object.defineProperty(Me,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return HZ.getServiceIdentifierAsString}});var GZ=HR();Object.defineProperty(Me,"multiBindToService",{enumerable:!0,get:function(){return GZ.multiBindToService}})});var I2=O($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.PythonExtension=$u.PVSC_EXTENSION_ID=void 0;var QZ=require("vscode");$u.PVSC_EXTENSION_ID="ms-python.python";var YZ;(function(n){async function e(){let t=QZ.extensions.getExtension($u.PVSC_EXTENSION_ID);if(t===void 0)throw new Error("Python extension is not installed or is disabled");return t.isActive||await t.activate(),t.exports}n.api=e})(YZ=$u.PythonExtension||($u.PythonExtension={}))});var vA=O((Nve,C2)=>{C2.exports=require("util").format});var L2=O(KS=>{KS.get=function(n){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var t={},r=Error.prepareStackTrace;Error.prepareStackTrace=function(o,s){return s},Error.captureStackTrace(t,n||KS.get);var i=t.stack;return Error.prepareStackTrace=r,Error.stackTraceLimit=e,i};KS.parse=function(n){if(!n.stack)return[];var e=this,t=n.stack.split(` `).slice(1);return t.map(function(r){if(r.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:r,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=r.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var o=null,s=null,a=null,l=null,c=null,u=i[5]==="native";if(i[1]){a=i[1];var d=a.lastIndexOf(".");if(a[d-1]=="."&&d--,d>0){o=a.substr(0,d),s=a.substr(d+1);var f=o.indexOf(".Module");f>0&&(a=a.substr(f+1),o=o.substr(0,f))}l=null}s&&(l=o,c=s),s===""&&(c=null,a=null);var g={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:l,methodName:c,columnNumber:parseInt(i[4],10)||null,native:u};return e._createParsedCallSite(g)}}).filter(function(r){return!!r})};function MS(n){for(var e in n)this[e]=n[e]}var uee=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],dee=["topLevel","eval","native","constructor"];uee.forEach(function(n){MS.prototype[n]=null,MS.prototype["get"+n[0].toUpperCase()+n.substr(1)]=function(){return this[n]}});dee.forEach(function(n){MS.prototype[n]=!1,MS.prototype["is"+n[0].toUpperCase()+n.substr(1)]=function(){return this[n]}});KS._createParsedCallSite=function(n){return new MS(n)}});var Fh=O((Ct,pV)=>{Ct=pV.exports=Vt;var gr;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?gr=function(){var n=Array.prototype.slice.call(arguments,0);n.unshift("SEMVER"),console.log.apply(console,n)}:gr=function(){};Ct.SEMVER_SPEC_VERSION="2.0.0";var LS=256,kP=Number.MAX_SAFE_INTEGER||9007199254740991,wA=16,Cne=LS-6,US=Ct.re=[],Ar=Ct.safeRe=[],ce=Ct.src=[],Lt=0,DA="[a-zA-Z0-9-]",EA=[["\\s",1],["\\d",LS],[DA,Cne]];function AP(n){for(var e=0;e)?=?)";var xP=Lt++;ce[xP]=ce[Rh]+"|x|X|\\*";var DP=Lt++;ce[DP]=ce[Th]+"|x|X|\\*";var Xp=Lt++;ce[Xp]="[v=\\s]*("+ce[DP]+")(?:\\.("+ce[DP]+")(?:\\.("+ce[DP]+")(?:"+ce[TA]+")?"+ce[VS]+"?)?)?";var Nh=Lt++;ce[Nh]="[v=\\s]*("+ce[xP]+")(?:\\.("+ce[xP]+")(?:\\.("+ce[xP]+")(?:"+ce[RA]+")?"+ce[VS]+"?)?)?";var tV=Lt++;ce[tV]="^"+ce[Oh]+"\\s*"+ce[Xp]+"$";var rV=Lt++;ce[rV]="^"+ce[Oh]+"\\s*"+ce[Nh]+"$";var nV=Lt++;ce[nV]="(?:^|[^\\d])(\\d{1,"+wA+"})(?:\\.(\\d{1,"+wA+"}))?(?:\\.(\\d{1,"+wA+"}))?(?:$|[^\\d])";var NP=Lt++;ce[NP]="(?:~>?)";var Mh=Lt++;ce[Mh]="(\\s*)"+ce[NP]+"\\s+";US[Mh]=new RegExp(ce[Mh],"g");Ar[Mh]=new RegExp(AP(ce[Mh]),"g");var wne="$1~",iV=Lt++;ce[iV]="^"+ce[NP]+ce[Xp]+"$";var oV=Lt++;ce[oV]="^"+ce[NP]+ce[Nh]+"$";var MP=Lt++;ce[MP]="(?:\\^)";var Kh=Lt++;ce[Kh]="(\\s*)"+ce[MP]+"\\s+";US[Kh]=new RegExp(ce[Kh],"g");Ar[Kh]=new RegExp(AP(ce[Kh]),"g");var Ene="$1^",sV=Lt++;ce[sV]="^"+ce[MP]+ce[Xp]+"$";var aV=Lt++;ce[aV]="^"+ce[MP]+ce[Nh]+"$";var KA=Lt++;ce[KA]="^"+ce[Oh]+"\\s*("+NA+")$|^$";var OA=Lt++;ce[OA]="^"+ce[Oh]+"\\s*("+eV+")$|^$";var Zp=Lt++;ce[Zp]="(\\s*)"+ce[Oh]+"\\s*("+NA+"|"+ce[Xp]+")";US[Zp]=new RegExp(ce[Zp],"g");Ar[Zp]=new RegExp(AP(ce[Zp]),"g");var Pne="$1$2$3",lV=Lt++;ce[lV]="^\\s*("+ce[Xp]+")\\s+-\\s+("+ce[Xp]+")\\s*$";var cV=Lt++;ce[cV]="^\\s*("+ce[Nh]+")\\s+-\\s+("+ce[Nh]+")\\s*$";var uV=Lt++;ce[uV]="(<|>)?=?\\s*\\*";for(al=0;alLS)return null;var t=e.loose?Ar[MA]:Ar[AA];if(!t.test(n))return null;try{return new Vt(n,e)}catch{return null}}Ct.valid=kne;function kne(n,e){var t=em(n,e);return t?t.version:null}Ct.clean=xne;function xne(n,e){var t=em(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null}Ct.SemVer=Vt;function Vt(n,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),n instanceof Vt){if(n.loose===e.loose)return n;n=n.version}else if(typeof n!="string")throw new TypeError("Invalid Version: "+n);if(n.length>LS)throw new TypeError("version is longer than "+LS+" characters");if(!(this instanceof Vt))return new Vt(n,e);gr("SemVer",n,e),this.options=e,this.loose=!!e.loose;var t=n.trim().match(e.loose?Ar[MA]:Ar[AA]);if(!t)throw new TypeError("Invalid Version: "+n);if(this.raw=n,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>kP||this.major<0)throw new TypeError("Invalid major version");if(this.minor>kP||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>kP||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+n)}return this.format(),this.raw=this.version,this};Ct.inc=Dne;function Dne(n,e,t,r){typeof t=="string"&&(r=t,t=void 0);try{return new Vt(n,t).inc(e,r).version}catch{return null}}Ct.diff=_ne;function _ne(n,e){if(FA(n,e))return null;var t=em(n),r=em(e),i="";if(t.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in t)if((s==="major"||s==="minor"||s==="patch")&&t[s]!==r[s])return i+s;return o}Ct.compareIdentifiers=Ah;var Y2=/^[0-9]+$/;function Ah(n,e){var t=Y2.test(n),r=Y2.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n0}Ct.lt=_P;function _P(n,e,t){return Pc(n,e,t)<0}Ct.eq=FA;function FA(n,e,t){return Pc(n,e,t)===0}Ct.neq=dV;function dV(n,e,t){return Pc(n,e,t)!==0}Ct.gte=LA;function LA(n,e,t){return Pc(n,e,t)>=0}Ct.lte=UA;function UA(n,e,t){return Pc(n,e,t)<=0}Ct.cmp=TP;function TP(n,e,t,r){switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return FA(n,t,r);case"!=":return dV(n,t,r);case">":return WS(n,t,r);case">=":return LA(n,t,r);case"<":return _P(n,t,r);case"<=":return UA(n,t,r);default:throw new TypeError("Invalid operator: "+e)}}Ct.Comparator=ys;function ys(n,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),n instanceof ys){if(n.loose===!!e.loose)return n;n=n.value}if(!(this instanceof ys))return new ys(n,e);n=n.trim().split(/\s+/).join(" "),gr("comparator",n,e),this.options=e,this.loose=!!e.loose,this.parse(n),this.semver===jS?this.value="":this.value=this.operator+this.semver.version,gr("comp",this)}var jS={};ys.prototype.parse=function(n){var e=this.options.loose?Ar[KA]:Ar[OA],t=n.match(e);if(!t)throw new TypeError("Invalid comparator: "+n);this.operator=t[1],this.operator==="="&&(this.operator=""),t[2]?this.semver=new Vt(t[2],this.options.loose):this.semver=jS};ys.prototype.toString=function(){return this.value};ys.prototype.test=function(n){return gr("Comparator.test",n,this.options.loose),this.semver===jS?!0:(typeof n=="string"&&(n=new Vt(n,this.options)),TP(n,this.operator,this.semver,this.options))};ys.prototype.intersects=function(n,e){if(!(n instanceof ys))throw new TypeError("a Comparator is required");(!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1});var t;if(this.operator==="")return t=new nn(n.value,e),RP(this.value,t,e);if(n.operator==="")return t=new nn(this.value,e),RP(n.semver,t,e);var r=(this.operator===">="||this.operator===">")&&(n.operator===">="||n.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(n.operator==="<="||n.operator==="<"),o=this.semver.version===n.semver.version,s=(this.operator===">="||this.operator==="<=")&&(n.operator===">="||n.operator==="<="),a=TP(this.semver,"<",n.semver,e)&&(this.operator===">="||this.operator===">")&&(n.operator==="<="||n.operator==="<"),l=TP(this.semver,">",n.semver,e)&&(this.operator==="<="||this.operator==="<")&&(n.operator===">="||n.operator===">");return r||i||o&&s||a||l};Ct.Range=nn;function nn(n,e){if((!e||typeof e!="object")&&(e={loose:!!e,includePrerelease:!1}),n instanceof nn)return n.loose===!!e.loose&&n.includePrerelease===!!e.includePrerelease?n:new nn(n.raw,e);if(n instanceof ys)return new nn(n.value,e);if(!(this instanceof nn))return new nn(n,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=n.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}nn.prototype.format=function(){return this.range=this.set.map(function(n){return n.join(" ").trim()}).join("||").trim(),this.range};nn.prototype.toString=function(){return this.range};nn.prototype.parseRange=function(n){var e=this.options.loose,t=e?Ar[cV]:Ar[lV];n=n.replace(t,Hne),gr("hyphen replace",n),n=n.replace(Ar[Zp],Pne),gr("comparator trim",n,Ar[Zp]),n=n.replace(Ar[Mh],wne),n=n.replace(Ar[Kh],Ene);var r=e?Ar[KA]:Ar[OA],i=n.split(" ").map(function(o){return Une(o,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(o){return!!o.match(r)})),i=i.map(function(o){return new ys(o,this.options)},this),i};nn.prototype.intersects=function(n,e){if(!(n instanceof nn))throw new TypeError("a Range is required");return this.set.some(function(t){return t.every(function(r){return n.set.some(function(i){return i.every(function(o){return r.intersects(o,e)})})})})};Ct.toComparators=Lne;function Lne(n,e){return new nn(n,e).set.map(function(t){return t.map(function(r){return r.value}).join(" ").trim().split(" ")})}function Une(n,e){return gr("comp",n,e),n=jne(n,e),gr("caret",n),n=Wne(n,e),gr("tildes",n),n=Bne(n,e),gr("xrange",n),n=qne(n,e),gr("stars",n),n}function Bi(n){return!n||n.toLowerCase()==="x"||n==="*"}function Wne(n,e){return n.trim().split(/\s+/).map(function(t){return Vne(t,e)}).join(" ")}function Vne(n,e){var t=e.loose?Ar[oV]:Ar[iV];return n.replace(t,function(r,i,o,s,a){gr("tilde",n,r,i,o,s,a);var l;return Bi(i)?l="":Bi(o)?l=">="+i+".0.0 <"+(+i+1)+".0.0":Bi(s)?l=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0":a?(gr("replaceTilde pr",a),l=">="+i+"."+o+"."+s+"-"+a+" <"+i+"."+(+o+1)+".0"):l=">="+i+"."+o+"."+s+" <"+i+"."+(+o+1)+".0",gr("tilde return",l),l})}function jne(n,e){return n.trim().split(/\s+/).map(function(t){return Jne(t,e)}).join(" ")}function Jne(n,e){gr("caret",n,e);var t=e.loose?Ar[aV]:Ar[sV];return n.replace(t,function(r,i,o,s,a){gr("caret",n,r,i,o,s,a);var l;return Bi(i)?l="":Bi(o)?l=">="+i+".0.0 <"+(+i+1)+".0.0":Bi(s)?i==="0"?l=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0":l=">="+i+"."+o+".0 <"+(+i+1)+".0.0":a?(gr("replaceCaret pr",a),i==="0"?o==="0"?l=">="+i+"."+o+"."+s+"-"+a+" <"+i+"."+o+"."+(+s+1):l=">="+i+"."+o+"."+s+"-"+a+" <"+i+"."+(+o+1)+".0":l=">="+i+"."+o+"."+s+"-"+a+" <"+(+i+1)+".0.0"):(gr("no pr"),i==="0"?o==="0"?l=">="+i+"."+o+"."+s+" <"+i+"."+o+"."+(+s+1):l=">="+i+"."+o+"."+s+" <"+i+"."+(+o+1)+".0":l=">="+i+"."+o+"."+s+" <"+(+i+1)+".0.0"),gr("caret return",l),l})}function Bne(n,e){return gr("replaceXRanges",n,e),n.split(/\s+/).map(function(t){return $ne(t,e)}).join(" ")}function $ne(n,e){n=n.trim();var t=e.loose?Ar[rV]:Ar[tV];return n.replace(t,function(r,i,o,s,a,l){gr("xRange",n,r,i,o,s,a,l);var c=Bi(o),u=c||Bi(s),d=u||Bi(a),f=d;return i==="="&&f&&(i=""),c?i===">"||i==="<"?r="<0.0.0":r="*":i&&f?(u&&(s=0),a=0,i===">"?(i=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):i==="<="&&(i="<",u?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a):u?r=">="+o+".0.0 <"+(+o+1)+".0.0":d&&(r=">="+o+"."+s+".0 <"+o+"."+(+s+1)+".0"),gr("xRange return",r),r})}function qne(n,e){return gr("replaceStars",n,e),n.trim().replace(Ar[uV],"")}function Hne(n,e,t,r,i,o,s,a,l,c,u,d,f){return Bi(t)?e="":Bi(r)?e=">="+t+".0.0":Bi(i)?e=">="+t+"."+r+".0":e=">="+e,Bi(l)?a="":Bi(c)?a="<"+(+l+1)+".0.0":Bi(u)?a="<"+l+"."+(+c+1)+".0":d?a="<="+l+"."+c+"."+u+"-"+d:a="<="+a,(e+" "+a).trim()}nn.prototype.test=function(n){if(!n)return!1;typeof n=="string"&&(n=new Vt(n,this.options));for(var e=0;e0){var i=n[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}Ct.satisfies=RP;function RP(n,e,t){try{e=new nn(e,t)}catch{return!1}return e.test(n)}Ct.maxSatisfying=zne;function zne(n,e,t){var r=null,i=null;try{var o=new nn(e,t)}catch{return null}return n.forEach(function(s){o.test(s)&&(!r||i.compare(s)===-1)&&(r=s,i=new Vt(r,t))}),r}Ct.minSatisfying=Qne;function Qne(n,e,t){var r=null,i=null;try{var o=new nn(e,t)}catch{return null}return n.forEach(function(s){o.test(s)&&(!r||i.compare(s)===1)&&(r=s,i=new Vt(r,t))}),r}Ct.minVersion=Yne;function Yne(n,e){n=new nn(n,e);var t=new Vt("0.0.0");if(n.test(t)||(t=new Vt("0.0.0-0"),n.test(t)))return t;t=null;for(var r=0;r":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!t||WS(t,s))&&(t=s);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+o.operator)}})}return t&&n.test(t)?t:null}Ct.validRange=Xne;function Xne(n,e){try{return new nn(n,e).range||"*"}catch{return null}}Ct.ltr=Zne;function Zne(n,e,t){return WA(n,e,"<",t)}Ct.gtr=eie;function eie(n,e,t){return WA(n,e,">",t)}Ct.outside=WA;function WA(n,e,t,r){n=new Vt(n,r),e=new nn(e,r);var i,o,s,a,l;switch(t){case">":i=WS,o=UA,s=_P,a=">",l=">=";break;case"<":i=_P,o=LA,s=WS,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(RP(n,e,r))return!1;for(var c=0;c=0.0.0")),d=d||g,f=f||g,i(g.semver,d.semver,r)?d=g:s(g.semver,f.semver,r)&&(f=g)}),d.operator===a||d.operator===l||(!f.operator||f.operator===a)&&o(n,f.semver))return!1;if(f.operator===l&&s(n,f.semver))return!1}return!0}Ct.prerelease=tie;function tie(n,e){var t=em(n,e);return t&&t.prerelease.length?t.prerelease:null}Ct.intersects=rie;function rie(n,e,t){return n=new nn(n,t),e=new nn(e,t),n.intersects(e)}Ct.coerce=nie;function nie(n){if(n instanceof Vt)return n;if(typeof n!="string")return null;var e=n.match(Ar[nV]);return e==null?null:em(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}});var NV=O((jIe,AV)=>{"use strict";AV.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var OV=O(qA=>{"use strict";var yie=Object.prototype.hasOwnProperty,bie;function MV(n){try{return decodeURIComponent(n.replace(/\+/g," "))}catch{return null}}function KV(n){try{return encodeURIComponent(n)}catch{return null}}function Iie(n){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},r;r=e.exec(n);){var i=MV(r[1]),o=MV(r[2]);i===null||o===null||i in t||(t[i]=o)}return t}function Sie(n,e){e=e||"";var t=[],r,i;typeof e!="string"&&(e="?");for(i in n)if(yie.call(n,i)){if(r=n[i],!r&&(r===null||r===bie||isNaN(r))&&(r=""),i=KV(i),r=KV(r),i===null||r===null)continue;t.push(i+"="+r)}return t.length?e+t.join("&"):""}qA.stringify=Sie;qA.parse=Iie});var BV=O((BIe,JV)=>{"use strict";var LV=NV(),QP=OV(),Cie=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,UV=/[\n\r\t]/g,wie=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,WV=/:\d+$/,Eie=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Pie=/^[a-zA-Z]:/;function GA(n){return(n||"").toString().replace(Cie,"")}var HA=[["#","hash"],["?","query"],function(e,t){return ul(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],FV={hash:1,query:1};function VV(n){var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e={};var t=e.location||{};n=n||t;var r={},i=typeof n,o;if(n.protocol==="blob:")r=new dl(unescape(n.pathname),{});else if(i==="string"){r=new dl(n,{});for(o in FV)delete r[o]}else if(i==="object"){for(o in n)o in FV||(r[o]=n[o]);r.slashes===void 0&&(r.slashes=wie.test(n.href))}return r}function ul(n){return n==="file:"||n==="ftp:"||n==="http:"||n==="https:"||n==="ws:"||n==="wss:"}function jV(n,e){n=GA(n),n=n.replace(UV,""),e=e||{};var t=Eie.exec(n),r=t[1]?t[1].toLowerCase():"",i=!!t[2],o=!!t[3],s=0,a;return i?o?(a=t[2]+t[3]+t[4],s=t[2].length+t[3].length):(a=t[2]+t[4],s=t[2].length):o?(a=t[3]+t[4],s=t[3].length):a=t[4],r==="file:"?s>=2&&(a=a.slice(2)):ul(r)?a=t[4]:r?i&&(a=a.slice(2)):s>=2&&ul(e.protocol)&&(a=t[4]),{protocol:r,slashes:i||ul(r),slashesCount:s,rest:a}}function kie(n,e){if(n==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(n.split("/")),r=t.length,i=t[r-1],o=!1,s=0;r--;)t[r]==="."?t.splice(r,1):t[r]===".."?(t.splice(r,1),s++):s&&(r===0&&(o=!0),t.splice(r,1),s--);return o&&t.unshift(""),(i==="."||i==="..")&&t.push(""),t.join("/")}function dl(n,e,t){if(n=GA(n),n=n.replace(UV,""),!(this instanceof dl))return new dl(n,e,t);var r,i,o,s,a,l,c=HA.slice(),u=typeof e,d=this,f=0;for(u!=="object"&&u!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=QP.parse),e=VV(e),i=jV(n||"",e),r=!i.protocol&&!i.slashes,d.slashes=i.slashes||r&&e.slashes,d.protocol=i.protocol||e.protocol||"",n=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||Pie.test(n))||!i.slashes&&(i.protocol||i.slashesCount<2||!ul(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f{"use strict";var $V=Array.isArray,qV=Object.keys,_ie=Object.prototype.hasOwnProperty;HV.exports=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=$V(e),i=$V(t),o,s,a;if(r&&i){if(s=e.length,s!=t.length)return!1;for(o=s;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(r!=i)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var f=qV(e);if(s=f.length,s!==qV(t).length)return!1;for(o=s;o--!==0;)if(!_ie.call(t,f[o]))return!1;for(o=s;o--!==0;)if(a=f[o],!n(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}});var fN=O(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.TargetPopulation=fd.Filters=fd.VSCodeFilterProvider=void 0;var xk=require("vscode"),mN=class n{constructor(e,t,r){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=r}static trimVersionSuffix(e){let t=/\-[a-zA-Z0-9]+$/;return e.split(t)[0]}getFilterValue(e){switch(e){case Cl.ApplicationVersion:return n.trimVersionSuffix(xk.version);case Cl.Build:return xk.env.appName;case Cl.ClientId:return xk.env.machineId;case Cl.ExtensionName:return this.extensionName;case Cl.ExtensionVersion:return n.trimVersionSuffix(this.extensionVersion);case Cl.Language:return xk.env.language;case Cl.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(Cl);for(let r of t)e.set(r,this.getFilterValue(r));return e}};fd.VSCodeFilterProvider=mN;var Cl;(function(n){n.Market="X-MSEdge-Market",n.CorpNet="X-FD-Corpnet",n.ApplicationVersion="X-VSCode-AppVersion",n.Build="X-VSCode-Build",n.ClientId="X-MSEdge-ClientId",n.ExtensionName="X-VSCode-ExtensionName",n.ExtensionVersion="X-VSCode-ExtensionVersion",n.Language="X-VSCode-Language",n.TargetPopulation="X-VSCode-TargetPopulation"})(Cl||(fd.Filters=Cl={}));var qj;(function(n){n.Team="team",n.Internal="internal",n.Insiders="insider",n.Public="public"})(qj||(fd.TargetPopulation=qj={}))});var Hj=O(Dk=>{"use strict";Object.defineProperty(Dk,"__esModule",{value:!0});Dk.BaseFeatureProvider=void 0;var hN=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}};Dk.BaseFeatureProvider=hN});var Gj=O(_k=>{"use strict";Object.defineProperty(_k,"__esModule",{value:!0});_k.FilteredFeatureProvider=void 0;var Zie=Hj(),gN=class extends Zie.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 i of r.keys()){let o=r.get(i);e.set(i,o)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;let t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}};_k.FilteredFeatureProvider=gN});var zj=O(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.TasApiFeatureProvider=hd.TASAPI_FETCHERROR_EVENTNAME=void 0;var eoe=Gj();hd.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var vN="ErrorType",yN=class extends eoe.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 a of e.keys()){let l=e.get(a);t[a]=l}let r;try{r=await this.httpClient.get({headers:t})}catch(a){let l=a,c=new Map;l.responseReceived&&!l.responseOk?c.set(vN,"ServerError"):l.responseReceived===!1?c.set(vN,"NoResponse"):c.set(vN,"GenericError"),this.telemetry.postEvent(hd.TASAPI_FETCHERROR_EVENTNAME,c)}if(!r)throw Error(hd.TASAPI_FETCHERROR_EVENTNAME);e.keys.length>0&&this.PostEventToTelemetry(t);let i=r.data,o=i.Configs,s=[];for(let a of o)if(a.Parameters)for(let l of Object.keys(a.Parameters)){let c=l+(a.Parameters[l]?"":"cf");s.includes(c)||s.push(c)}return{features:s,assignmentContext:i.AssignmentContext,configs:o}}};hd.TasApiFeatureProvider=yN});var Qj=O(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.HttpClient=gg.FetchError=void 0;var hg=class extends Error{constructor(e,t,r){super(e),this.responseReceived=t,this.responseOk=r}};gg.FetchError=hg;var bN=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new hg("No response received",!1);if(!t.ok)throw new hg("Response not ok",!0,!1);let r=await t.json();if(!r)throw new hg("No data received",!1);return{data:r}}};gg.HttpClient=bN});var Yj=O(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0});Tk.MemoryKeyValueStorage=void 0;var IN=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)}};Tk.MemoryKeyValueStorage=IN});var Xj=O(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.ExperimentationServiceBase=void 0;var toe=Yj(),SN=class{get features(){return this._features}set features(e){this._features=e,this.telemetry&&this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext)}constructor(e,t,r,i,o){this.telemetry=e,this.assignmentContextTelemetryPropertyName=t,this.telemetryEventName=r,this.storageKey=i,this.storage=o,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(o=new toe.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise((s,a)=>{this.resolveInitialFetchPromise=s})}async getFeaturesAsync(e=!1){if(this.fetchPromise!=null){try{await this.fetchPromise}catch{}return this.features}if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});try{this.fetchPromise=Promise.all(this.featureProviders.map(async r=>await r.getFeatures()));let t=await this.fetchPromise;this.updateFeatures(t,e)}catch{}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 i of e){for(let o of i.features)r.features.includes(o)||r.features.push(o);for(let o of i.configs){let s=r.configs.find(a=>a.Id===o.Id);s?s.Parameters=Object.assign(Object.assign({},s.Parameters),o.Parameters):r.configs.push(o)}r.assignmentContext+=i.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),e!==void 0&&e.configs===void 0&&(e.configs=[])),this.features.features.length===0&&(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){let t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`);let r=this.features.configs.find(i=>i.Id===e);return r?.Parameters[t]}async getTreatmentVariableAsync(e,t,r){if(r){let i=this.featuresConsumed,o=this.getTreatmentVariable(e,t);if(o===void 0)this.featuresConsumed=i;else return o}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(!(e==null||this.featureProviders==null))for(let t of e)this.featureProviders.push(t)}};Rk.ExperimentationServiceBase=SN});var Zj=O(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.PollingService=void 0;var CN=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(),this.onTick!=null&&(e&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}};Ak.PollingService=CN});var e9=O(Nk=>{"use strict";Object.defineProperty(Nk,"__esModule",{value:!0});Nk.ExperimentationServiceAutoPolling=void 0;var roe=Xj(),noe=Zj(),wN=class extends roe.ExperimentationServiceBase{constructor(e,t,r,i,o,s,a){if(super(e,i,o,s,a),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=r,this.assignmentContextTelemetryPropertyName=i,this.telemetryEventName=o,this.storageKey=s,this.storage=a,r<1e3&&r!==0)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 noe.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}else return await super.getFeaturesAsync(e)}};Nk.ExperimentationServiceAutoPolling=wN});var t9=O(Kk=>{"use strict";Object.defineProperty(Kk,"__esModule",{value:!0});Kk.ExperimentationService=void 0;var ioe=zj(),ooe=Qj(),soe=e9(),Mk=class extends soe.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],e.refetchInterval!=null?e.refetchInterval:0,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new ioe.TasApiFeatureProvider(new ooe.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};Kk.ExperimentationService=Mk;Mk.REFRESH_RATE_IN_MINUTES=30});var r9=O(Ok=>{"use strict";Object.defineProperty(Ok,"__esModule",{value:!0});Ok.ExperimentationService=void 0;var aoe=t9();Object.defineProperty(Ok,"ExperimentationService",{enumerable:!0,get:function(){return aoe.ExperimentationService}})});var n9=O(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.MementoKeyValueStorage=void 0;var EN=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)}};Fk.MementoKeyValueStorage=EN});var i9=O(kN=>{"use strict";Object.defineProperty(kN,"__esModule",{value:!0});var PN=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)}};kN.default=PN});var s9=O(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.getExperimentationServiceAsync=vg.getExperimentationService=void 0;var loe=fN(),coe=r9(),xN=require("vscode"),uoe=n9(),doe=i9(),poe="https://default.exp-tas.com/vscode/ab",moe="query-expfeature",foe="abexp.assignmentcontext",hoe="VSCode.ABExp.FeatureData",goe=1e3*60*30;function o9(n,e,t,r,i,...o){if(!i)throw new Error("Memento storage was not provided.");let s=xN.workspace.getConfiguration("telemetry");if(!(xN.env.isTelemetryEnabled===void 0?s.get("enableTelemetry",!0):xN.env.isTelemetryEnabled))return new doe.default;let c=[new loe.VSCodeFilterProvider(n,e,t),...o],u=new uoe.MementoKeyValueStorage(i);return new coe.ExperimentationService({filterProviders:c,telemetry:r,storageKey:hoe,keyValueStorage:u,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:foe,telemetryEventName:moe,endpoint:poe,refetchInterval:goe})}vg.getExperimentationService=o9;async function voe(n,e,t,r,i,...o){let s=o9(n,e,t,r,i,...o);return await s.initializePromise,s}vg.getExperimentationServiceAsync=voe});var l9=O(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.TargetPopulation=gd.getExperimentationServiceAsync=gd.getExperimentationService=void 0;var a9=s9();Object.defineProperty(gd,"getExperimentationService",{enumerable:!0,get:function(){return a9.getExperimentationService}});Object.defineProperty(gd,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return a9.getExperimentationServiceAsync}});var yoe=fN();Object.defineProperty(gd,"TargetPopulation",{enumerable:!0,get:function(){return yoe.TargetPopulation}})});var y9=O((Txe,v9)=>{"use strict";function Soe(){let n=[].slice.call(arguments).filter(t=>t),e=n.shift();return n.forEach(t=>{Object.keys(t).forEach(r=>{e[r]=t[r]})}),e}v9.exports=Soe});var fo=O(TN=>{"use strict";TN.fromCallback=function(n){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")n.apply(this,arguments);else return new Promise((e,t)=>{arguments[arguments.length]=(r,i)=>{if(r)return t(r);e(i)},arguments.length++,n.apply(this,arguments)})},"name",{value:n.name})};TN.fromPromise=function(n){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return n.apply(this,arguments);n.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:n.name})}});var I9=O((Axe,b9)=>{var Id=require("constants"),Coe=process.cwd,Bk=null,woe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Bk||(Bk=Coe.call(process)),Bk};try{process.cwd()}catch{}typeof process.chdir=="function"&&(RN=process.chdir,process.chdir=function(n){Bk=null,RN.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,RN));var RN;b9.exports=Eoe;function Eoe(n){Id.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=o(n.chown),n.fchown=o(n.fchown),n.lchown=o(n.lchown),n.chmod=r(n.chmod),n.fchmod=r(n.fchmod),n.lchmod=r(n.lchmod),n.chownSync=s(n.chownSync),n.fchownSync=s(n.fchownSync),n.lchownSync=s(n.lchownSync),n.chmodSync=i(n.chmodSync),n.fchmodSync=i(n.fchmodSync),n.lchmodSync=i(n.lchmodSync),n.stat=a(n.stat),n.fstat=a(n.fstat),n.lstat=a(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.chmod&&!n.lchmod&&(n.lchmod=function(u,d,f){f&&process.nextTick(f)},n.lchmodSync=function(){}),n.chown&&!n.lchown&&(n.lchown=function(u,d,f,g){g&&process.nextTick(g)},n.lchownSync=function(){}),woe==="win32"&&(n.rename=typeof n.rename!="function"?n.rename:function(u){function d(f,g,b){var I=Date.now(),E=0;u(f,g,function x(A){if(A&&(A.code==="EACCES"||A.code==="EPERM")&&Date.now()-I<6e4){setTimeout(function(){n.stat(g,function(T,J){T&&T.code==="ENOENT"?u(f,g,x):b(A)})},E),E<100&&(E+=10);return}b&&b(A)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,u),d}(n.rename)),n.read=typeof n.read!="function"?n.read:function(u){function d(f,g,b,I,E,x){var A;if(x&&typeof x=="function"){var T=0;A=function(J,ne,H){if(J&&J.code==="EAGAIN"&&T<10)return T++,u.call(n,f,g,b,I,E,A);x.apply(this,arguments)}}return u.call(n,f,g,b,I,E,A)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,u),d}(n.read),n.readSync=typeof n.readSync!="function"?n.readSync:function(u){return function(d,f,g,b,I){for(var E=0;;)try{return u.call(n,d,f,g,b,I)}catch(x){if(x.code==="EAGAIN"&&E<10){E++;continue}throw x}}}(n.readSync);function e(u){u.lchmod=function(d,f,g){u.open(d,Id.O_WRONLY|Id.O_SYMLINK,f,function(b,I){if(b){g&&g(b);return}u.fchmod(I,f,function(E){u.close(I,function(x){g&&g(E||x)})})})},u.lchmodSync=function(d,f){var g=u.openSync(d,Id.O_WRONLY|Id.O_SYMLINK,f),b=!0,I;try{I=u.fchmodSync(g,f),b=!1}finally{if(b)try{u.closeSync(g)}catch{}else u.closeSync(g)}return I}}function t(u){Id.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(d,f,g,b){u.open(d,Id.O_SYMLINK,function(I,E){if(I){b&&b(I);return}u.futimes(E,f,g,function(x){u.close(E,function(A){b&&b(x||A)})})})},u.lutimesSync=function(d,f,g){var b=u.openSync(d,Id.O_SYMLINK),I,E=!0;try{I=u.futimesSync(b,f,g),E=!1}finally{if(E)try{u.closeSync(b)}catch{}else u.closeSync(b)}return I}):u.futimes&&(u.lutimes=function(d,f,g,b){b&&process.nextTick(b)},u.lutimesSync=function(){})}function r(u){return u&&function(d,f,g){return u.call(n,d,f,function(b){c(b)&&(b=null),g&&g.apply(this,arguments)})}}function i(u){return u&&function(d,f){try{return u.call(n,d,f)}catch(g){if(!c(g))throw g}}}function o(u){return u&&function(d,f,g,b){return u.call(n,d,f,g,function(I){c(I)&&(I=null),b&&b.apply(this,arguments)})}}function s(u){return u&&function(d,f,g){try{return u.call(n,d,f,g)}catch(b){if(!c(b))throw b}}}function a(u){return u&&function(d,f,g){typeof f=="function"&&(g=f,f=null);function b(I,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),g&&g.apply(this,arguments)}return f?u.call(n,d,f,b):u.call(n,d,b)}}function l(u){return u&&function(d,f){var g=f?u.call(n,d,f):u.call(n,d);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function c(u){if(!u||u.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var w9=O((Nxe,C9)=>{var S9=require("stream").Stream;C9.exports=Poe;function Poe(n){return{ReadStream:e,WriteStream:t};function e(r,i){if(!(this instanceof e))return new e(r,i);S9.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}n.open(this.path,this.flags,this.mode,function(u,d){if(u){o.emit("error",u),o.readable=!1;return}o.fd=d,o.emit("open",d),o._read()})}function t(r,i){if(!(this instanceof t))return new t(r,i);S9.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var P9=O((Mxe,E9)=>{"use strict";E9.exports=xoe;var koe=Object.getPrototypeOf||function(n){return n.__proto__};function xoe(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:koe(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}});var Dn=O((Kxe,MN)=>{var sn=require("fs"),Doe=I9(),_oe=w9(),Toe=P9(),$k=require("util"),ti,Hk;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ti=Symbol.for("graceful-fs.queue"),Hk=Symbol.for("graceful-fs.previous")):(ti="___graceful-fs.queue",Hk="___graceful-fs.previous");function Roe(){}function D9(n,e){Object.defineProperty(n,ti,{get:function(){return e}})}var dm=Roe;$k.debuglog?dm=$k.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(dm=function(){var n=$k.format.apply($k,arguments);n="GFS4: "+n.split(/\n/).join(` GFS4: `),console.error(n)});sn[ti]||(k9=global[ti]||[],D9(sn,k9),sn.close=function(n){function e(t,r){return n.call(sn,t,function(i){i||x9(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(e,Hk,{value:n}),e}(sn.close),sn.closeSync=function(n){function e(t){n.apply(sn,arguments),x9()}return Object.defineProperty(e,Hk,{value:n}),e}(sn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){dm(sn[ti]),require("assert").equal(sn[ti].length,0)}));var k9;global[ti]||D9(global,sn[ti]);MN.exports=AN(Toe(sn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!sn.__patched&&(MN.exports=AN(sn),sn.__patched=!0);function AN(n){Doe(n),n.gracefulify=AN,n.createReadStream=ne,n.createWriteStream=H;var e=n.readFile;n.readFile=t;function t(Y,Ie,Ke){return typeof Ie=="function"&&(Ke=Ie,Ie=null),pt(Y,Ie,Ke);function pt(mt,kt,ee,Ee){return e(mt,kt,function(Te){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Pg([pt,[mt,kt,ee],Te,Ee||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=n.writeFile;n.writeFile=i;function i(Y,Ie,Ke,pt){return typeof Ke=="function"&&(pt=Ke,Ke=null),mt(Y,Ie,Ke,pt);function mt(kt,ee,Ee,Te,he){return r(kt,ee,Ee,function(ht){ht&&(ht.code==="EMFILE"||ht.code==="ENFILE")?Pg([mt,[kt,ee,Ee,Te],ht,he||Date.now(),Date.now()]):typeof Te=="function"&&Te.apply(this,arguments)})}}var o=n.appendFile;o&&(n.appendFile=s);function s(Y,Ie,Ke,pt){return typeof Ke=="function"&&(pt=Ke,Ke=null),mt(Y,Ie,Ke,pt);function mt(kt,ee,Ee,Te,he){return o(kt,ee,Ee,function(ht){ht&&(ht.code==="EMFILE"||ht.code==="ENFILE")?Pg([mt,[kt,ee,Ee,Te],ht,he||Date.now(),Date.now()]):typeof Te=="function"&&Te.apply(this,arguments)})}}var a=n.copyFile;a&&(n.copyFile=l);function l(Y,Ie,Ke,pt){return typeof Ke=="function"&&(pt=Ke,Ke=0),mt(Y,Ie,Ke,pt);function mt(kt,ee,Ee,Te,he){return a(kt,ee,Ee,function(ht){ht&&(ht.code==="EMFILE"||ht.code==="ENFILE")?Pg([mt,[kt,ee,Ee,Te],ht,he||Date.now(),Date.now()]):typeof Te=="function"&&Te.apply(this,arguments)})}}var c=n.readdir;n.readdir=d;var u=/^v[0-5]\./;function d(Y,Ie,Ke){typeof Ie=="function"&&(Ke=Ie,Ie=null);var pt=u.test(process.version)?function(ee,Ee,Te,he){return c(ee,mt(ee,Ee,Te,he))}:function(ee,Ee,Te,he){return c(ee,Ee,mt(ee,Ee,Te,he))};return pt(Y,Ie,Ke);function mt(kt,ee,Ee,Te){return function(he,ht){he&&(he.code==="EMFILE"||he.code==="ENFILE")?Pg([pt,[kt,ee,Ee],he,Te||Date.now(),Date.now()]):(ht&&ht.sort&&ht.sort(),typeof Ee=="function"&&Ee.call(this,he,ht))}}}if(process.version.substr(0,4)==="v0.8"){var f=_oe(n);x=f.ReadStream,T=f.WriteStream}var g=n.ReadStream;g&&(x.prototype=Object.create(g.prototype),x.prototype.open=A);var b=n.WriteStream;b&&(T.prototype=Object.create(b.prototype),T.prototype.open=J),Object.defineProperty(n,"ReadStream",{get:function(){return x},set:function(Y){x=Y},enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:function(){return T},set:function(Y){T=Y},enumerable:!0,configurable:!0});var I=x;Object.defineProperty(n,"FileReadStream",{get:function(){return I},set:function(Y){I=Y},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(n,"FileWriteStream",{get:function(){return E},set:function(Y){E=Y},enumerable:!0,configurable:!0});function x(Y,Ie){return this instanceof x?(g.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function A(){var Y=this;ae(Y.path,Y.flags,Y.mode,function(Ie,Ke){Ie?(Y.autoClose&&Y.destroy(),Y.emit("error",Ie)):(Y.fd=Ke,Y.emit("open",Ke),Y.read())})}function T(Y,Ie){return this instanceof T?(b.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function J(){var Y=this;ae(Y.path,Y.flags,Y.mode,function(Ie,Ke){Ie?(Y.destroy(),Y.emit("error",Ie)):(Y.fd=Ke,Y.emit("open",Ke))})}function ne(Y,Ie){return new n.ReadStream(Y,Ie)}function H(Y,Ie){return new n.WriteStream(Y,Ie)}var oe=n.open;n.open=ae;function ae(Y,Ie,Ke,pt){return typeof Ke=="function"&&(pt=Ke,Ke=null),mt(Y,Ie,Ke,pt);function mt(kt,ee,Ee,Te,he){return oe(kt,ee,Ee,function(ht,Fi){ht&&(ht.code==="EMFILE"||ht.code==="ENFILE")?Pg([mt,[kt,ee,Ee,Te],ht,he||Date.now(),Date.now()]):typeof Te=="function"&&Te.apply(this,arguments)})}}return n}function Pg(n){dm("ENQUEUE",n[0].name,n[1]),sn[ti].push(n),NN()}var qk;function x9(){for(var n=Date.now(),e=0;e2&&(sn[ti][e][3]=n,sn[ti][e][4]=n);NN()}function NN(){if(clearTimeout(qk),qk=void 0,sn[ti].length!==0){var n=sn[ti].shift(),e=n[0],t=n[1],r=n[2],i=n[3],o=n[4];if(i===void 0)dm("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-i>=6e4){dm("TIMEOUT",e.name,t);var s=t.pop();typeof s=="function"&&s.call(null,r)}else{var a=Date.now()-o,l=Math.max(o-i,1),c=Math.min(l*1.2,100);a>=c?(dm("RETRY",e.name,t),e.apply(null,t.concat([i]))):sn[ti].push(n)}qk===void 0&&(qk=setTimeout(NN,0))}}});var KN=O(kg=>{var Aoe=fo().fromCallback,la=Dn(),Noe=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof la[n]=="function");Object.keys(la).forEach(n=>{kg[n]=la[n]});Noe.forEach(n=>{kg[n]=Aoe(la[n])});kg.exists=function(n,e){return typeof e=="function"?la.exists(n,e):new Promise(t=>la.exists(n,t))};kg.read=function(n,e,t,r,i,o){return typeof o=="function"?la.read(n,e,t,r,i,o):new Promise((s,a)=>{la.read(n,e,t,r,i,(l,c,u)=>{if(l)return a(l);s({bytesRead:c,buffer:u})})})};kg.write=function(n,e,t,r,i,o){return typeof arguments[arguments.length-1]=="function"?la.write(n,e,t,r,i,o):typeof e=="string"?new Promise((s,a)=>{la.write(n,e,t,r,(l,c,u)=>{if(l)return a(l);s({bytesWritten:c,buffer:u})})}):new Promise((s,a)=>{la.write(n,e,t,r,i,(l,c,u)=>{if(l)return a(l);s({bytesWritten:c,buffer:u})})})}});var R9=O((Fxe,T9)=>{"use strict";var Lo=Dn(),_9=require("os"),Gk=require("path");function Moe(){let n=Gk.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));n=Gk.join(_9.tmpdir(),n);let e=new Date(1435410243862);Lo.writeFileSync(n,"https://github.com/jprichardson/node-fs-extra/pull/141");let t=Lo.openSync(n,"r+");return Lo.futimesSync(t,e,e),Lo.closeSync(t),Lo.statSync(n).mtime>1435410243e3}function Koe(n){let e=Gk.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=Gk.join(_9.tmpdir(),e);let t=new Date(1435410243862);Lo.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",r=>{if(r)return n(r);Lo.open(e,"r+",(i,o)=>{if(i)return n(i);Lo.futimes(o,t,t,s=>{if(s)return n(s);Lo.close(o,a=>{if(a)return n(a);Lo.stat(e,(l,c)=>{if(l)return n(l);n(null,c.mtime>1435410243e3)})})})})})}function Ooe(n){if(typeof n=="number")return Math.floor(n/1e3)*1e3;if(n instanceof Date)return new Date(Math.floor(n.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function Foe(n,e,t,r){Lo.open(n,"r+",(i,o)=>{if(i)return r(i);Lo.futimes(o,e,t,s=>{Lo.close(o,a=>{r&&r(s||a)})})})}T9.exports={hasMillisRes:Koe,hasMillisResSync:Moe,timeRemoveMillis:Ooe,utimesMillis:Foe}});var ON=O((Lxe,A9)=>{var Uo=Dn(),lC=require("path"),Loe=R9();function Uoe(n,e,t,r){r||(r=t,t={});var i=process.cwd(),o=lC.resolve(i,n),s=lC.resolve(i,e),a=t.filter,l=t.transform,c=t.overwrite;c===void 0&&(c=t.clobber),c===void 0&&(c=!0);var u=t.errorOnExist,d=t.dereference,f=t.preserveTimestamps===!0,g=0,b=0,I=0,E=!1;x(o);function x(ee){if(g++,a){if(a instanceof RegExp){if(console.warn("Warning: fs-extra: Passing a RegExp filter is deprecated, use a function"),!a.test(ee))return kt(!0)}else if(typeof a=="function"&&!a(ee,e))return kt(!0)}return A(ee)}function A(ee){var Ee=d?Uo.stat:Uo.lstat;I++,Ee(ee,function(Te,he){if(Te)return mt(Te);var ht={name:ee,mode:he.mode,mtime:he.mtime,atime:he.atime,stats:he};if(he.isDirectory())return H(ht);if(he.isFile()||he.isCharacterDevice()||he.isBlockDevice())return T(ht);if(he.isSymbolicLink())return Y(ee)})}function T(ee){var Ee=ee.name.replace(o,s.replace("$","$$$$"));pt(Ee,function(Te){Te?J(ee,Ee):c?ne(Ee,function(){J(ee,Ee)}):u?mt(new Error(Ee+" already exists")):kt()})}function J(ee,Ee){var Te=Uo.createReadStream(ee.name),he=Uo.createWriteStream(Ee,{mode:ee.mode});Te.on("error",mt),he.on("error",mt),l?l(Te,he,ee):he.on("open",function(){Te.pipe(he)}),he.once("close",function(){Uo.chmod(Ee,ee.mode,function(ht){if(ht)return mt(ht);f?Loe.utimesMillis(Ee,ee.atime,ee.mtime,function(Fi){return Fi?mt(Fi):kt()}):kt()})})}function ne(ee,Ee){Uo.unlink(ee,function(Te){return Te?mt(Te):Ee()})}function H(ee){var Ee=ee.name.replace(o,s.replace("$","$$$$"));pt(Ee,function(Te){if(Te)return oe(ee,Ee);ae(ee.name)})}function oe(ee,Ee){Uo.mkdir(Ee,ee.mode,function(Te){if(Te)return mt(Te);Uo.chmod(Ee,ee.mode,function(he){if(he)return mt(he);ae(ee.name)})})}function ae(ee){Uo.readdir(ee,function(Ee,Te){return Ee?mt(Ee):(Te.forEach(function(he){x(lC.join(ee,he))}),kt())})}function Y(ee){var Ee=ee.replace(o,s);Uo.readlink(ee,function(Te,he){if(Te)return mt(Te);Ie(he,Ee)})}function Ie(ee,Ee){d&&(ee=lC.resolve(i,ee)),pt(Ee,function(Te){if(Te)return Ke(ee,Ee);Uo.readlink(Ee,function(he,ht){return he?mt(he):(d&&(ht=lC.resolve(i,ht)),ht===ee?kt():ne(Ee,function(){Ke(ee,Ee)}))})})}function Ke(ee,Ee){Uo.symlink(ee,Ee,function(Te){return Te?mt(Te):kt()})}function pt(ee,Ee){Uo.lstat(ee,function(Te){return Te&&Te.code==="ENOENT"?Ee(!0):Ee(!1)})}function mt(ee){if(!E&&r!==void 0)return E=!0,r(ee)}function kt(ee){if(ee||I--,b++,g===b&&I===0&&r!==void 0)return r(null)}}A9.exports=Uoe});var LN=O((Uxe,M9)=>{"use strict";var FN=require("path");function N9(n){return n=FN.normalize(FN.resolve(n)).split(FN.sep),n.length>0?n[0]:null}var Woe=/[<>:"|?*]/;function Voe(n){let e=N9(n);return n=n.replace(e,""),Woe.test(n)}M9.exports={getRootPath:N9,invalidWin32Path:Voe}});var O9=O((Wxe,K9)=>{"use strict";var joe=Dn(),UN=require("path"),Joe=LN().invalidWin32Path,Boe=parseInt("0777",8);function WN(n,e,t,r){if(typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&Joe(n)){let s=new Error(n+" contains invalid WIN32 path characters.");return s.code="EINVAL",t(s)}let i=e.mode,o=e.fs||joe;i===void 0&&(i=Boe&~process.umask()),r||(r=null),t=t||function(){},n=UN.resolve(n),o.mkdir(n,i,s=>{if(!s)return r=r||n,t(null,r);switch(s.code){case"ENOENT":if(UN.dirname(n)===n)return t(s);WN(UN.dirname(n),e,(a,l)=>{a?t(a,l):WN(n,e,t,l)});break;default:o.stat(n,(a,l)=>{a||!l.isDirectory()?t(s,r):t(null,r)});break}})}K9.exports=WN});var L9=O((Vxe,F9)=>{"use strict";var $oe=Dn(),VN=require("path"),qoe=LN().invalidWin32Path,Hoe=parseInt("0777",8);function jN(n,e,t){(!e||typeof e!="object")&&(e={mode:e});let r=e.mode,i=e.fs||$oe;if(process.platform==="win32"&&qoe(n)){let o=new Error(n+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}r===void 0&&(r=Hoe&~process.umask()),t||(t=null),n=VN.resolve(n);try{i.mkdirSync(n,r),t=t||n}catch(o){switch(o.code){case"ENOENT":if(VN.dirname(n)===n)throw o;t=jN(VN.dirname(n),e,t),jN(n,e,t);break;default:let s;try{s=i.statSync(n)}catch{throw o}if(!s.isDirectory())throw o;break}}return t}F9.exports=jN});var Wo=O((jxe,U9)=>{"use strict";var Goe=fo().fromCallback,JN=Goe(O9()),BN=L9();U9.exports={mkdirs:JN,mkdirsSync:BN,mkdirp:JN,mkdirpSync:BN,ensureDir:JN,ensureDirSync:BN}});var Rc=O((Jxe,V9)=>{"use strict";var zoe=fo().fromPromise,W9=KN();function Qoe(n){return W9.access(n).then(()=>!0).catch(()=>!1)}V9.exports={pathExists:zoe(Qoe),pathExistsSync:W9.existsSync}});var B9=O((Bxe,J9)=>{"use strict";var Yoe=Dn(),cC=require("path"),j9=ON(),Xoe=Wo(),Zoe=Rc().pathExists;function ese(n,e,t,r){typeof t=="function"&&!r?(r=t,t={}):(typeof t=="function"||t instanceof RegExp)&&(t={filter:t}),r=r||function(){},t=t||{},t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`);let i=process.cwd(),o=cC.resolve(i,n),s=cC.resolve(i,e);if(o===s)return r(new Error("Source and destination must not be the same."));Yoe.lstat(n,(a,l)=>{if(a)return r(a);let c=null;if(l.isDirectory()){let u=e.split(cC.sep);u.pop(),c=u.join(cC.sep)}else c=cC.dirname(e);Zoe(c,(u,d)=>{if(u)return r(u);if(d)return j9(n,e,t,r);Xoe.mkdirs(c,f=>{if(f)return r(f);j9(n,e,t,r)})})})}J9.exports=ese});var q9=O(($xe,$9)=>{var tse=fo().fromCallback;$9.exports={copy:tse(B9())}});var $N=O((qxe,H9)=>{H9.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}});var Y9=O((Hxe,Q9)=>{"use strict";var El=Dn(),z9=64*1024,G9=$N()(z9);function rse(n,e,t){let r=t.overwrite,i=t.errorOnExist,o=t.preserveTimestamps;if(El.existsSync(e))if(r)El.unlinkSync(e);else{if(i)throw new Error(`${e} already exists`);return}let s=El.openSync(n,"r"),a=El.fstatSync(s),l=El.openSync(e,"w",a.mode),c=1,u=0;for(;c>0;)c=El.readSync(s,G9,0,z9,u),El.writeSync(l,G9,0,c),u+=c;o&&El.futimesSync(l,a.atime,a.mtime),El.closeSync(s),El.closeSync(l)}Q9.exports=rse});var tJ=O((Gxe,eJ)=>{"use strict";var pm=Dn(),qN=require("path"),nse=Y9(),X9=Wo();function Z9(n,e,t){(typeof t=="function"||t instanceof RegExp)&&(t={filter:t}),t=t||{},t.recursive=!!t.recursive,t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.dereference="dereference"in t?!!t.dereference:!1,t.preserveTimestamps="preserveTimestamps"in t?!!t.preserveTimestamps:!1,t.filter=t.filter||function(){return!0},t.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; see https://github.com/jprichardson/node-fs-extra/issues/269`);let r=t.recursive&&!t.dereference?pm.lstatSync(n):pm.statSync(n),i=qN.dirname(e),o=pm.existsSync(i),s=!1;if(t.filter instanceof RegExp?(console.warn("Warning: fs-extra: Passing a RegExp filter is deprecated, use a function"),s=t.filter.test(n)):typeof t.filter=="function"&&(s=t.filter(n,e)),r.isFile()&&s)o||X9.mkdirsSync(i),nse(n,e,{overwrite:t.overwrite,errorOnExist:t.errorOnExist,preserveTimestamps:t.preserveTimestamps});else if(r.isDirectory()&&s)pm.existsSync(e)||X9.mkdirsSync(e),pm.readdirSync(n).forEach(l=>{let c=t;c.recursive=!0,Z9(qN.join(n,l),qN.join(e,l),c)});else if(t.recursive&&r.isSymbolicLink()&&s){let a=pm.readlinkSync(n);pm.symlinkSync(a,e)}}eJ.exports=Z9});var HN=O((zxe,rJ)=>{rJ.exports={copySync:tJ()}});var dJ=O((Qxe,uJ)=>{"use strict";var nJ=Dn(),aJ=require("path"),rr=require("assert"),uC=process.platform==="win32";function lJ(n){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{n[t]=n[t]||nJ[t],t=t+"Sync",n[t]=n[t]||nJ[t]}),n.maxBusyTries=n.maxBusyTries||3}function GN(n,e,t){let r=0;typeof e=="function"&&(t=e,e={}),rr(n,"rimraf: missing path"),rr.equal(typeof n,"string","rimraf: path should be a string"),rr.equal(typeof t,"function","rimraf: callback function required"),rr(e,"rimraf: invalid options argument provided"),rr.equal(typeof e,"object","rimraf: options should be object"),lJ(e),iJ(n,e,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&riJ(n,e,i),s)}o.code==="ENOENT"&&(o=null)}t(o)})}function iJ(n,e,t){rr(n),rr(e),rr(typeof t=="function"),e.lstat(n,(r,i)=>{if(r&&r.code==="ENOENT")return t(null);if(r&&r.code==="EPERM"&&uC)return oJ(n,e,r,t);if(i&&i.isDirectory())return zk(n,e,r,t);e.unlink(n,o=>{if(o){if(o.code==="ENOENT")return t(null);if(o.code==="EPERM")return uC?oJ(n,e,o,t):zk(n,e,o,t);if(o.code==="EISDIR")return zk(n,e,o,t)}return t(o)})})}function oJ(n,e,t,r){rr(n),rr(e),rr(typeof r=="function"),t&&rr(t instanceof Error),e.chmod(n,438,i=>{i?r(i.code==="ENOENT"?null:t):e.stat(n,(o,s)=>{o?r(o.code==="ENOENT"?null:t):s.isDirectory()?zk(n,e,t,r):e.unlink(n,r)})})}function sJ(n,e,t){let r;rr(n),rr(e),t&&rr(t instanceof Error);try{e.chmodSync(n,438)}catch(i){if(i.code==="ENOENT")return;throw t}try{r=e.statSync(n)}catch(i){if(i.code==="ENOENT")return;throw t}r.isDirectory()?Qk(n,e,t):e.unlinkSync(n)}function zk(n,e,t,r){rr(n),rr(e),t&&rr(t instanceof Error),rr(typeof r=="function"),e.rmdir(n,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?ise(n,e,r):i&&i.code==="ENOTDIR"?r(t):r(i)})}function ise(n,e,t){rr(n),rr(e),rr(typeof t=="function"),e.readdir(n,(r,i)=>{if(r)return t(r);let o=i.length,s;if(o===0)return e.rmdir(n,t);i.forEach(a=>{GN(aJ.join(n,a),e,l=>{if(!s){if(l)return t(s=l);--o===0&&e.rmdir(n,t)}})})})}function cJ(n,e){let t;e=e||{},lJ(e),rr(n,"rimraf: missing path"),rr.equal(typeof n,"string","rimraf: path should be a string"),rr(e,"rimraf: missing options"),rr.equal(typeof e,"object","rimraf: options should be object");try{t=e.lstatSync(n)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&uC&&sJ(n,e,r)}try{t&&t.isDirectory()?Qk(n,e,null):e.unlinkSync(n)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return uC?sJ(n,e,r):Qk(n,e,r);if(r.code!=="EISDIR")throw r;Qk(n,e,r)}}function Qk(n,e,t){rr(n),rr(e),t&&rr(t instanceof Error);try{e.rmdirSync(n)}catch(r){if(r.code==="ENOTDIR")throw t;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")ose(n,e);else if(r.code!=="ENOENT")throw r}}function ose(n,e){rr(n),rr(e),e.readdirSync(n).forEach(i=>cJ(aJ.join(n,i),e));let t=uC?100:1,r=0;do{let i=!0;try{let o=e.rmdirSync(n,e);return i=!1,o}finally{if(++r{"use strict";var sse=fo().fromCallback,pJ=dJ();mJ.exports={remove:sse(pJ),removeSync:pJ.sync}});var vJ=O((Xxe,gJ)=>{var xg;try{xg=Dn()}catch{xg=require("fs")}function ase(n,e,t){t==null&&(t=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var r=e.fs||xg,i=!0;"throws"in e&&(i=e.throws),r.readFile(n,e,function(o,s){if(o)return t(o);s=hJ(s);var a;try{a=JSON.parse(s,e?e.reviver:null)}catch(l){return i?(l.message=n+": "+l.message,t(l)):t(null,null)}t(null,a)})}function lse(n,e){e=e||{},typeof e=="string"&&(e={encoding:e});var t=e.fs||xg,r=!0;"throws"in e&&(r=e.throws);try{var i=t.readFileSync(n,e);return i=hJ(i),JSON.parse(i,e.reviver)}catch(o){if(r)throw o.message=n+": "+o.message,o;return null}}function fJ(n,e){var t,r=` `;typeof e=="object"&&e!==null&&(e.spaces&&(t=e.spaces),e.EOL&&(r=e.EOL));var i=JSON.stringify(n,e?e.replacer:null,t);return i.replace(/\n/g,r)+r}function cse(n,e,t,r){r==null&&(r=t,t={}),t=t||{};var i=t.fs||xg,o="";try{o=fJ(e,t)}catch(s){r&&r(s,null);return}i.writeFile(n,o,t,r)}function use(n,e,t){t=t||{};var r=t.fs||xg,i=fJ(e,t);return r.writeFileSync(n,i,t)}function hJ(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n=n.replace(/^\uFEFF/,""),n}var dse={readFile:ase,readFileSync:lse,writeFile:cse,writeFileSync:use};gJ.exports=dse});var Xk=O((Zxe,bJ)=>{"use strict";var yJ=fo().fromCallback,Yk=vJ();bJ.exports={readJson:yJ(Yk.readFile),readJsonSync:Yk.readFileSync,writeJson:yJ(Yk.writeFile),writeJsonSync:Yk.writeFileSync}});var CJ=O((eDe,SJ)=>{"use strict";var pse=require("path"),mse=Wo(),fse=Rc().pathExists,IJ=Xk();function hse(n,e,t,r){typeof t=="function"&&(r=t,t={});let i=pse.dirname(n);fse(i,(o,s)=>{if(o)return r(o);if(s)return IJ.writeJson(n,e,t,r);mse.mkdirs(i,a=>{if(a)return r(a);IJ.writeJson(n,e,t,r)})})}SJ.exports=hse});var EJ=O((tDe,wJ)=>{"use strict";var gse=Dn(),vse=require("path"),yse=Wo(),bse=Xk();function Ise(n,e,t){let r=vse.dirname(n);gse.existsSync(r)||yse.mkdirsSync(r),bse.writeJsonSync(n,e,t)}wJ.exports=Ise});var kJ=O((rDe,PJ)=>{"use strict";var Sse=fo().fromCallback,Hi=Xk();Hi.outputJson=Sse(CJ());Hi.outputJsonSync=EJ();Hi.outputJSON=Hi.outputJson;Hi.outputJSONSync=Hi.outputJsonSync;Hi.writeJSON=Hi.writeJson;Hi.writeJSONSync=Hi.writeJsonSync;Hi.readJSON=Hi.readJson;Hi.readJSONSync=Hi.readJsonSync;PJ.exports=Hi});var TJ=O((nDe,_J)=>{"use strict";var Cse=fo().fromCallback,Pl=Dn(),wse=ON(),mm=require("path"),Zk=dC().remove,Ese=Wo().mkdirs;function zN(n,e,t,r){typeof t=="function"&&(r=t,t={});let i=t.overwrite||t.clobber||!1;kse(n,e,(s,a)=>{if(s)return r(s);if(a)return r(new Error(`Cannot move '${n}' to a subdirectory of itself, '${e}'.`));Ese(mm.dirname(e),l=>{if(l)return r(l);o()})});function o(){mm.resolve(n)===mm.resolve(e)?Pl.access(n,r):i?Pl.rename(n,e,s=>{if(!s)return r();if(s.code==="ENOTEMPTY"||s.code==="EEXIST"){Zk(e,a=>{if(a)return r(a);t.overwrite=!1,zN(n,e,t,r)});return}if(s.code==="EPERM"){setTimeout(()=>{Zk(e,a=>{if(a)return r(a);t.overwrite=!1,zN(n,e,t,r)})},200);return}if(s.code!=="EXDEV")return r(s);xJ(n,e,i,r)}):Pl.link(n,e,s=>s?s.code==="EXDEV"||s.code==="EISDIR"||s.code==="EPERM"||s.code==="ENOTSUP"?xJ(n,e,i,r):r(s):Pl.unlink(n,r))}}function xJ(n,e,t,r){Pl.stat(n,(i,o)=>{if(i)return r(i);o.isDirectory()?DJ(n,e,t,r):Pse(n,e,t,r)})}function Pse(n,e,t,r){let i=t?"w":"wx",o=Pl.createReadStream(n),s=Pl.createWriteStream(e,{flags:i});o.on("error",l=>{o.destroy(),s.destroy(),s.removeListener("close",a),Pl.unlink(e,()=>{l.code==="EISDIR"||l.code==="EPERM"?DJ(n,e,t,r):r(l)})}),s.on("error",l=>{o.destroy(),s.destroy(),s.removeListener("close",a),r(l)}),s.once("close",a),o.pipe(s);function a(){Pl.unlink(n,r)}}function DJ(n,e,t,r){let i={overwrite:!1};t?Zk(e,s=>{if(s)return r(s);o()}):o();function o(){wse(n,e,i,s=>{if(s)return r(s);Zk(n,r)})}}function kse(n,e,t){Pl.stat(n,(r,i)=>{if(r)return t(r);if(i.isDirectory()){let o=e.split(mm.dirname(n)+mm.sep)[1];if(o){let s=o.split(mm.sep)[0];return s?t(null,n!==e&&e.indexOf(n)>-1&&s===mm.basename(n)):t(null,!1)}return t(null,!1)}return t(null,!1)})}_J.exports={move:Cse(zN)}});var MJ=O((iDe,NJ)=>{"use strict";var ho=Dn(),fm=require("path"),xse=HN().copySync,QN=dC().removeSync,Dse=Wo().mkdirsSync,_se=$N();function AJ(n,e,t){t=t||{};let r=t.overwrite||t.clobber||!1;if(n=fm.resolve(n),e=fm.resolve(e),n===e)return ho.accessSync(n);if(Ase(n,e))throw new Error(`Cannot move '${n}' into itself '${e}'.`);Dse(fm.dirname(e)),i();function i(){if(r)try{return ho.renameSync(n,e)}catch(o){if(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")return QN(e),t.overwrite=!1,AJ(n,e,t);if(o.code!=="EXDEV")throw o;return RJ(n,e,r)}else try{return ho.linkSync(n,e),ho.unlinkSync(n)}catch(o){if(o.code==="EXDEV"||o.code==="EISDIR"||o.code==="EPERM"||o.code==="ENOTSUP")return RJ(n,e,r);throw o}}}function RJ(n,e,t){return ho.statSync(n).isDirectory()?Rse(n,e,t):Tse(n,e,t)}function Tse(n,e,t){let i=_se(65536),o=t?"w":"wx",s=ho.openSync(n,"r"),a=ho.fstatSync(s),l=ho.openSync(e,o,a.mode),c=1,u=0;for(;c>0;)c=ho.readSync(s,i,0,65536,u),ho.writeSync(l,i,0,c),u+=c;return ho.closeSync(s),ho.closeSync(l),ho.unlinkSync(n)}function Rse(n,e,t){let r={overwrite:!1};t&&QN(e),i();function i(){return xse(n,e,r),QN(n)}}function Ase(n,e){try{return ho.statSync(n).isDirectory()&&n!==e&&e.indexOf(n)>-1&&e.split(fm.dirname(n)+fm.sep)[1].split(fm.sep)[0]===fm.basename(n)}catch{return!1}}NJ.exports={moveSync:AJ}});var jJ=O((oDe,VJ)=>{"use strict";var Nse=fo().fromCallback,FJ=require("fs"),LJ=require("path"),UJ=Wo(),WJ=dC(),KJ=Nse(function(e,t){t=t||function(){},FJ.readdir(e,(r,i)=>{if(r)return UJ.mkdirs(e,t);i=i.map(s=>LJ.join(e,s)),o();function o(){let s=i.pop();if(!s)return t();WJ.remove(s,a=>{if(a)return t(a);o()})}})});function OJ(n){let e;try{e=FJ.readdirSync(n)}catch{return UJ.mkdirsSync(n)}e.forEach(t=>{t=LJ.join(n,t),WJ.removeSync(t)})}VJ.exports={emptyDirSync:OJ,emptydirSync:OJ,emptyDir:KJ,emptydir:KJ}});var qJ=O((sDe,$J)=>{"use strict";var Mse=fo().fromCallback,JJ=require("path"),pC=Dn(),BJ=Wo(),Kse=Rc().pathExists;function Ose(n,e){function t(){pC.writeFile(n,"",r=>{if(r)return e(r);e()})}pC.stat(n,(r,i)=>{if(!r&&i.isFile())return e();let o=JJ.dirname(n);Kse(o,(s,a)=>{if(s)return e(s);if(a)return t();BJ.mkdirs(o,l=>{if(l)return e(l);t()})})})}function Fse(n){let e;try{e=pC.statSync(n)}catch{}if(e&&e.isFile())return;let t=JJ.dirname(n);pC.existsSync(t)||BJ.mkdirsSync(t),pC.writeFileSync(n,"")}$J.exports={createFile:Mse(Ose),createFileSync:Fse}});var YJ=O((aDe,QJ)=>{"use strict";var Lse=fo().fromCallback,GJ=require("path"),hm=Dn(),zJ=Wo(),HJ=Rc().pathExists;function Use(n,e,t){function r(i,o){hm.link(i,o,s=>{if(s)return t(s);t(null)})}HJ(e,(i,o)=>{if(i)return t(i);if(o)return t(null);hm.lstat(n,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),t(s);let l=GJ.dirname(e);HJ(l,(c,u)=>{if(c)return t(c);if(u)return r(n,e);zJ.mkdirs(l,d=>{if(d)return t(d);r(n,e)})})})})}function Wse(n,e,t){if(hm.existsSync(e))return;try{hm.lstatSync(n)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=GJ.dirname(e);return hm.existsSync(i)||zJ.mkdirsSync(i),hm.linkSync(n,e)}QJ.exports={createLink:Lse(Use),createLinkSync:Wse}});var ZJ=O((lDe,XJ)=>{"use strict";var Sd=require("path"),mC=Dn(),Vse=Rc().pathExists;function jse(n,e,t){if(Sd.isAbsolute(n))return mC.lstat(n,(r,i)=>r?(r.message=r.message.replace("lstat","ensureSymlink"),t(r)):t(null,{toCwd:n,toDst:n}));{let r=Sd.dirname(e),i=Sd.join(r,n);return Vse(i,(o,s)=>o?t(o):s?t(null,{toCwd:i,toDst:n}):mC.lstat(n,(a,l)=>a?(a.message=a.message.replace("lstat","ensureSymlink"),t(a)):t(null,{toCwd:n,toDst:Sd.relative(r,n)})))}}function Jse(n,e){let t;if(Sd.isAbsolute(n)){if(t=mC.existsSync(n),!t)throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}else{let r=Sd.dirname(e),i=Sd.join(r,n);if(t=mC.existsSync(i),t)return{toCwd:i,toDst:n};if(t=mC.existsSync(n),!t)throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Sd.relative(r,n)}}}XJ.exports={symlinkPaths:jse,symlinkPathsSync:Jse}});var rB=O((cDe,tB)=>{"use strict";var eB=Dn();function Bse(n,e,t){if(t=typeof e=="function"?e:t,e=typeof e=="function"?!1:e,e)return t(null,e);eB.lstat(n,(r,i)=>{if(r)return t(null,"file");e=i&&i.isDirectory()?"dir":"file",t(null,e)})}function $se(n,e){let t;if(e)return e;try{t=eB.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}tB.exports={symlinkType:Bse,symlinkTypeSync:$se}});var cB=O((uDe,lB)=>{"use strict";var qse=fo().fromCallback,iB=require("path"),Dg=Dn(),oB=Wo(),Hse=oB.mkdirs,Gse=oB.mkdirsSync,sB=ZJ(),zse=sB.symlinkPaths,Qse=sB.symlinkPathsSync,aB=rB(),Yse=aB.symlinkType,Xse=aB.symlinkTypeSync,nB=Rc().pathExists;function Zse(n,e,t,r){r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,nB(e,(i,o)=>{if(i)return r(i);if(o)return r(null);zse(n,e,(s,a)=>{if(s)return r(s);n=a.toDst,Yse(a.toCwd,t,(l,c)=>{if(l)return r(l);let u=iB.dirname(e);nB(u,(d,f)=>{if(d)return r(d);if(f)return Dg.symlink(n,e,c,r);Hse(u,g=>{if(g)return r(g);Dg.symlink(n,e,c,r)})})})})})}function eae(n,e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,Dg.existsSync(e))return;let o=Qse(n,e);n=o.toDst,t=Xse(o.toCwd,t);let s=iB.dirname(e);return Dg.existsSync(s)||Gse(s),Dg.symlinkSync(n,e,t)}lB.exports={createSymlink:qse(Zse),createSymlinkSync:eae}});var dB=O((dDe,uB)=>{"use strict";var ex=qJ(),tx=YJ(),rx=cB();uB.exports={createFile:ex.createFile,createFileSync:ex.createFileSync,ensureFile:ex.createFile,ensureFileSync:ex.createFileSync,createLink:tx.createLink,createLinkSync:tx.createLinkSync,ensureLink:tx.createLink,ensureLinkSync:tx.createLinkSync,createSymlink:rx.createSymlink,createSymlinkSync:rx.createSymlinkSync,ensureSymlink:rx.createSymlink,ensureSymlinkSync:rx.createSymlinkSync}});var hB=O((pDe,fB)=>{"use strict";var tae=fo().fromCallback,gm=Dn(),pB=require("path"),mB=Wo(),rae=Rc().pathExists;function nae(n,e,t,r){typeof t=="function"&&(r=t,t="utf8");let i=pB.dirname(n);rae(i,(o,s)=>{if(o)return r(o);if(s)return gm.writeFile(n,e,t,r);mB.mkdirs(i,a=>{if(a)return r(a);gm.writeFile(n,e,t,r)})})}function iae(n,e,t){let r=pB.dirname(n);if(gm.existsSync(r))return gm.writeFileSync.apply(gm,arguments);mB.mkdirsSync(r),gm.writeFileSync.apply(gm,arguments)}fB.exports={outputFile:tae(nae),outputFileSync:iae}});var kl=O((mDe,gB)=>{"use strict";var Ds=y9(),Vo={};Ds(Vo,KN());Ds(Vo,q9());Ds(Vo,HN());Ds(Vo,Wo());Ds(Vo,dC());Ds(Vo,kJ());Ds(Vo,TJ());Ds(Vo,MJ());Ds(Vo,jJ());Ds(Vo,dB());Ds(Vo,hB());Ds(Vo,Rc());gB.exports=Vo});var gx=O((C0e,uM)=>{"use strict";function gae(n){var e=void 0;typeof n=="string"?e=[n]:e=n.raw;for(var t="",r=0;r{M3.exports=function(n,e){for(var t=[],r=0;r{"use strict";U3.exports=F3;function F3(n,e,t){n instanceof RegExp&&(n=O3(n,t)),e instanceof RegExp&&(e=O3(e,t));var r=L3(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}function O3(n,e){var t=e.match(n);return t?t[0]:null}F3.range=L3;function L3(n,e,t){var r,i,o,s,a,l=t.indexOf(n),c=t.indexOf(e,l+1),u=l;if(l>=0&&c>0){if(n===e)return[l,c];for(r=[],o=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(n,u+1)):r.length==1?a=[r.pop(),c]:(i=r.pop(),i=0?l:c;r.length&&(a=[o,s])}return a}});var G3=O((CMe,H3)=>{var Tae=K3(),V3=W3();H3.exports=Nae;var j3="\0SLASH"+Math.random()+"\0",J3="\0OPEN"+Math.random()+"\0",DM="\0CLOSE"+Math.random()+"\0",B3="\0COMMA"+Math.random()+"\0",$3="\0PERIOD"+Math.random()+"\0";function xM(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Rae(n){return n.split("\\\\").join(j3).split("\\{").join(J3).split("\\}").join(DM).split("\\,").join(B3).split("\\.").join($3)}function Aae(n){return n.split(j3).join("\\").split(J3).join("{").split(DM).join("}").split(B3).join(",").split($3).join(".")}function q3(n){if(!n)return[""];var e=[],t=V3("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,o=t.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var a=q3(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function Nae(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),rv(Rae(n),!0).map(Aae)):[]}function Mae(n){return"{"+n+"}"}function Kae(n){return/^-?0\d/.test(n)}function Oae(n,e){return n<=e}function Fae(n,e){return n>=e}function rv(n,e){var t=[],r=V3("{","}",n);if(!r||/\$$/.test(r.pre))return[n];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),s=i||o,a=r.body.indexOf(",")>=0;if(!s&&!a)return r.post.match(/,.*\}/)?(n=r.pre+"{"+r.body+DM+r.post,rv(n)):[n];var l;if(s)l=r.body.split(/\.\./);else if(l=q3(r.body),l.length===1&&(l=rv(l[0],!1).map(Mae),l.length===1)){var u=r.post.length?rv(r.post,!1):[""];return u.map(function(Ke){return r.pre+l[0]+Ke})}var c=r.pre,u=r.post.length?rv(r.post,!1):[""],d;if(s){var f=xM(l[0]),g=xM(l[1]),b=Math.max(l[0].length,l[1].length),I=l.length==3?Math.abs(xM(l[2])):1,E=Oae,x=g0){var H=new Array(ne+1).join("0");T<0?J="-"+H+J.slice(1):J=H+J}}d.push(J)}}else d=Tae(l,function(Ie){return rv(Ie,!1)});for(var oe=0;oe{Z3.exports=Jo;Jo.Minimatch=ni;var EC=function(){try{return require("path")}catch{}}()||{sep:"/"};Jo.sep=EC.sep;var RM=Jo.GLOBSTAR=ni.GLOBSTAR={},Lae=G3(),z3={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},_M="[^/]",TM=_M+"*?",Uae="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Wae="(?:(?!(?:\\/|^)\\.).)*?",Q3=Vae("().*{}+?[]^$\\!");function Vae(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var Y3=/\/+/;Jo.filter=jae;function jae(n,e){return e=e||{},function(t,r,i){return Jo(t,n,e)}}function Td(n,e){e=e||{};var t={};return Object.keys(n).forEach(function(r){t[r]=n[r]}),Object.keys(e).forEach(function(r){t[r]=e[r]}),t}Jo.defaults=function(n){if(!n||typeof n!="object"||!Object.keys(n).length)return Jo;var e=Jo,t=function(i,o,s){return e(i,o,Td(n,s))};return t.Minimatch=function(i,o){return new e.Minimatch(i,Td(n,o))},t.Minimatch.defaults=function(i){return e.defaults(Td(n,i)).Minimatch},t.filter=function(i,o){return e.filter(i,Td(n,o))},t.defaults=function(i){return e.defaults(Td(n,i))},t.makeRe=function(i,o){return e.makeRe(i,Td(n,o))},t.braceExpand=function(i,o){return e.braceExpand(i,Td(n,o))},t.match=function(r,i,o){return e.match(r,i,Td(n,o))},t};ni.defaults=function(n){return Jo.defaults(n).Minimatch};function Jo(n,e,t){return jx(e),t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:new ni(e,t).match(n)}function ni(n,e){if(!(this instanceof ni))return new ni(n,e);jx(n),e||(e={}),n=n.trim(),!e.allowWindowsEscape&&EC.sep!=="/"&&(n=n.split(EC.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}ni.prototype.debug=function(){};ni.prototype.make=Jae;function Jae(){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,t),t=this.globParts=t.map(function(r){return r.split(Y3)}),this.debug(this.pattern,t),t=t.map(function(r,i,o){return r.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(r){return r.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}ni.prototype.parseNegate=Bae;function Bae(){var n=this.pattern,e=!1,t=this.options,r=0;if(!t.nonegate){for(var i=0,o=n.length;i"u"?this.pattern:n,jx(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:Lae(n)}var $ae=1024*64,jx=function(n){if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>$ae)throw new TypeError("pattern is too long")};ni.prototype.parse=qae;var Vx={};function qae(n,e){jx(n);var t=this.options;if(n==="**")if(t.noglobstar)n="*";else return RM;if(n==="")return"";var r="",i=!!t.nocase,o=!1,s=[],a=[],l,c=!1,u=-1,d=-1,f=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function b(){if(l){switch(l){case"*":r+=TM,i=!0;break;case"?":r+=_M,i=!0;break;default:r+="\\"+l;break}g.debug("clearStateChar %j %j",l,r),l=!1}}for(var I=0,E=n.length,x;I-1;ae--){var Y=a[ae],Ie=r.slice(0,Y.reStart),Ke=r.slice(Y.reStart,Y.reEnd-8),pt=r.slice(Y.reEnd-8,Y.reEnd),mt=r.slice(Y.reEnd);pt+=mt;var kt=Ie.split("(").length-1,ee=mt;for(I=0;I"u"&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var r=this.options;EC.sep!=="/"&&(e=e.split(EC.sep).join("/")),e=e.split(Y3),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var o,s;for(s=e.length-1;s>=0&&(o=e[s],!o);s--);for(s=0;s>> no match, partial?`,n,u,e,d),u===s))}var g;if(typeof l=="string"?(g=c===l,this.debug("string match",l,c,g)):(g=c.match(l),this.debug("pattern match",l,c,g)),!g)return!1}if(i===s&&o===a)return!0;if(i===s)return t;if(o===a)return i===s-1&&n[i]==="";throw new Error("wtf?")};function Gae(n){return n.replace(/\\(.)/g,"$1")}function zae(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var a6=O(KM=>{var wm=require("path"),Ad=process.platform==="win32",Rd=require("fs"),Xae=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Zae(){var n;if(Xae){var e=new Error;n=t}else n=r;return n;function t(i){i&&(e.message=i.message,i=e,r(i))}function r(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var o="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function ele(n){return typeof n=="function"?n:Zae()}var pOe=wm.normalize;Ad?Lc=/(.*?)(?:[\/\\]+|$)/g:Lc=/(.*?)(?:[\/]+|$)/g;var Lc;Ad?_C=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:_C=/^[\/]*/;var _C;KM.realpathSync=function(e,t){if(e=wm.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=e,i={},o={},s,a,l,c;u();function u(){var E=_C.exec(e);s=E[0].length,a=E[0],l=E[0],c="",Ad&&!o[l]&&(Rd.lstatSync(l),o[l]=!0)}for(;s=e.length)return t&&(t[i]=e),r(null,e);Lc.lastIndex=a;var E=Lc.exec(e);return u=l,l+=E[0],c=u+E[1],a=Lc.lastIndex,s[c]||t&&t[c]===c?process.nextTick(f):t&&Object.prototype.hasOwnProperty.call(t,c)?I(t[c]):Rd.lstat(c,g)}function g(E,x){if(E)return r(E);if(!x.isSymbolicLink())return s[c]=!0,t&&(t[c]=c),process.nextTick(f);if(!Ad){var A=x.dev.toString(32)+":"+x.ino.toString(32);if(o.hasOwnProperty(A))return b(null,o[A],c)}Rd.stat(c,function(T){if(T)return r(T);Rd.readlink(c,function(J,ne){Ad||(o[A]=ne),b(J,ne)})})}function b(E,x,A){if(E)return r(E);var T=wm.resolve(u,x);t&&(t[A]=T),I(T)}function I(E){e=wm.resolve(E,e.slice(a)),d()}}});var UM=O((fOe,d6)=>{d6.exports=Nd;Nd.realpath=Nd;Nd.sync=LM;Nd.realpathSync=LM;Nd.monkeypatch=rle;Nd.unmonkeypatch=nle;var fv=require("fs"),OM=fv.realpath,FM=fv.realpathSync,tle=process.version,l6=/^v[0-5]\./.test(tle),c6=a6();function u6(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function Nd(n,e,t){if(l6)return OM(n,e,t);typeof e=="function"&&(t=e,e=null),OM(n,e,function(r,i){u6(r)?c6.realpath(n,e,t):t(r,i)})}function LM(n,e){if(l6)return FM(n,e);try{return FM(n,e)}catch(t){if(u6(t))return c6.realpathSync(n,e);throw t}}function rle(){fv.realpath=Nd,fv.realpathSync=LM}function nle(){fv.realpath=OM,fv.realpathSync=FM}});var p6=O((hOe,WM)=>{typeof Object.create=="function"?WM.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:WM.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}});var m6=O((gOe,jM)=>{try{if(VM=require("util"),typeof VM.inherits!="function")throw"";jM.exports=VM.inherits}catch{jM.exports=p6()}var VM});var $x=O((vOe,Bx)=>{"use strict";function f6(n){return n.charAt(0)==="/"}function h6(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),r=t[1]||"",i=!!(r&&r.charAt(1)!==":");return!!(t[2]||i)}Bx.exports=process.platform==="win32"?h6:f6;Bx.exports.posix=f6;Bx.exports.win32=h6});var BM=O(Md=>{Md.setopts=cle;Md.ownProp=g6;Md.makeAbs=TC;Md.finish=ule;Md.mark=dle;Md.isIgnored=y6;Md.childrenIgnored=ple;function g6(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var ile=require("fs"),hv=require("path"),ole=PC(),v6=$x(),JM=ole.Minimatch;function sle(n,e){return n.localeCompare(e,"en")}function ale(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(lle))}function lle(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new JM(t,{dot:!0})}return{matcher:new JM(n,{dot:!0}),gmatcher:e}}function cle(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||ile,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),ale(n,t),n.changedCwd=!1;var r=process.cwd();g6(t,"cwd")?(n.cwd=hv.resolve(t.cwd),n.changedCwd=n.cwd!==r):n.cwd=r,n.root=t.root||hv.resolve(n.cwd,"/"),n.root=hv.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=v6(n.cwd)?n.cwd:TC(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new JM(e,t),n.options=n.minimatch.options}function ule(n){for(var e=n.nounique,t=e?[]:Object.create(null),r=0,i=n.matches.length;r{C6.exports=S6;S6.GlobSync=Mn;var mle=UM(),b6=PC(),bOe=b6.Minimatch,IOe=HM().Glob,SOe=require("util"),$M=require("path"),I6=require("assert"),qx=$x(),Em=BM(),fle=Em.setopts,qM=Em.ownProp,hle=Em.childrenIgnored,gle=Em.isIgnored;function S6(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new Mn(n,e).found}function Mn(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Mn))return new Mn(n,e);if(fle(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var r=0;rthis.maxLength)return!1;if(!this.stat&&qM(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var r,i=this.statCache[e];if(!i){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{i=this.fs.statSync(e)}catch{i=o}else i=o}this.statCache[e]=i;var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};Mn.prototype._mark=function(n){return Em.mark(this,n)};Mn.prototype._makeAbs=function(n){return Em.makeAbs(this,n)}});var GM=O((wOe,P6)=>{P6.exports=E6;function E6(n,e){if(n&&e)return E6(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(r){t[r]=n[r]}),t;function t(){for(var r=new Array(arguments.length),i=0;i{var k6=GM();zM.exports=k6(Hx);zM.exports.strict=k6(x6);Hx.proto=Hx(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Hx(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return x6(this)},configurable:!0})});function Hx(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function x6(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var _6=O((POe,D6)=>{var vle=GM(),RC=Object.create(null),yle=QM();D6.exports=vle(ble);function ble(n,e){return RC[n]?(RC[n].push(e),null):(RC[n]=[e],Ile(n))}function Ile(n){return yle(function e(){var t=RC[n],r=t.length,i=Sle(arguments);try{for(var o=0;or?(t.splice(0,r),process.nextTick(function(){e.apply(null,i)})):delete RC[n]}})}function Sle(n){for(var e=n.length,t=[],r=0;r{R6.exports=Pm;var Cle=UM(),T6=PC(),kOe=T6.Minimatch,wle=m6(),Ele=require("events").EventEmitter,YM=require("path"),XM=require("assert"),AC=$x(),eK=w6(),km=BM(),Ple=km.setopts,ZM=km.ownProp,tK=_6(),xOe=require("util"),kle=km.childrenIgnored,xle=km.isIgnored,Dle=QM();function Pm(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return eK(n,e)}return new cr(n,e,t)}Pm.sync=eK;var _le=Pm.GlobSync=eK.GlobSync;Pm.glob=Pm;function Tle(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),r=t.length;r--;)n[t[r]]=e[t[r]];return n}Pm.hasMagic=function(n,e){var t=Tle({},e);t.noprocess=!0;var r=new cr(n,t),i=r.minimatch.set;if(!n)return!1;if(i.length>1)return!0;for(var o=0;othis.maxLength)return e();if(!this.stat&&ZM(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!r||i==="DIR")return e(null,i);if(r&&i==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return r&&a==="FILE"?e():e(null,a,s)}var l=this,c=tK("stat\0"+t,u);c&&l.fs.lstat(t,c);function u(d,f){if(f&&f.isSymbolicLink())return l.fs.stat(t,function(g,b){g?l._stat2(n,t,null,f,e):l._stat2(n,t,g,b,e)});l._stat2(n,t,d,f,e)}};cr.prototype._stat2=function(n,e,t,r,i){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,i();var o=n.slice(-1)==="/";if(this.statCache[e]=r,e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,!1,r);var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?i():i(null,s,r)}});var M6=O((_Oe,N6)=>{"use strict";var A6=process.platform==="win32",Ale=A6?/[^:]\\$/:/.\/$/;N6.exports=function(){var n;return A6?n=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp":n=process.env.TMPDIR||process.env.TMP||process.env.TEMP||"/tmp",Ale.test(n)&&(n=n.slice(0,-1)),n}});var G6=O((TOe,Uc)=>{var yo=require("fs"),rK=require("path"),K6=require("crypto"),Nle=M6(),NC=require("constants"),nK=Nle(),O6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",iK=/XXXXXX/,L6=3,U6=NC.O_CREAT|NC.O_EXCL|NC.O_RDWR,W6=448,V6=384,gv=[],j6=!1,oK=!1;function F6(n){var e=[],t=null;try{t=K6.randomBytes(n)}catch{t=K6.pseudoRandomBytes(n)}for(var r=0;r"u"}function vv(n,e){if(typeof n=="function"){var t=n;n=e||{},e=t}else typeof n>"u"&&(n={});return[n,e]}function J6(n){if(n.name)return rK.join(n.dir||nK,n.name);if(n.template)return n.template.replace(iK,F6(6));var e=[n.prefix||"tmp-",process.pid,F6(12),n.postfix||""].join("");return rK.join(n.dir||nK,e)}function sK(n,e){var t=vv(n,e),r=t[0],i=t[1],o=r.tries||L6;if(isNaN(o)||o<0)return i(new Error("Invalid tries"));if(r.template&&!r.template.match(iK))return i(new Error("Invalid template provided"));(function s(){var a=J6(r);yo.stat(a,function(l){if(!l)return o-- >0?s():i(new Error("Could not get a unique tmp filename, max tries reached "+a));i(null,a)})})()}function aK(n){var e=vv(n),t=e[0],r=t.tries||L6;if(isNaN(r)||r<0)throw new Error("Invalid tries");if(t.template&&!t.template.match(iK))throw new Error("Invalid template provided");do{var i=J6(t);try{yo.statSync(i)}catch{return i}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Kle(n,e){var t=vv(n,e),r=t[0],i=t[1];r.postfix=Mle(r.postfix)?".tmp":r.postfix,sK(r,function(s,a){if(s)return i(s);yo.open(a,U6,r.mode||V6,function(c,u){if(c)return i(c);i(null,a,u,B6(a,u,r))})})}function Ole(n){var e=vv(n),t=e[0];t.postfix=t.postfix||".tmp";var r=aK(t),i=yo.openSync(r,U6,t.mode||V6);return{name:r,fd:i,removeCallback:B6(r,i,t)}}function Fle(n){var e=[n];do{for(var t=e.pop(),r=!1,i=yo.readdirSync(t),o=0,s=i.length;o=0&&gv.splice(i,1),t=!0,n(e)}}}function H6(){if(!(oK&&!j6))for(var n=0,e=gv.length;n{var MC=require("node-fetch"),Vle=MC.default||MC,zx=function(n,e){return/^\/\//.test(n)&&(n="https:"+n),Vle.call(this,n,e)};zx.ponyfill=!0;z6.exports=xm=zx;xm.fetch=zx;xm.Headers=MC.Headers;xm.Request=MC.Request;xm.Response=MC.Response;xm.default=zx});var K7=O((y9e,M7)=>{var ece=require("crypto");M7.exports=function(){return ece.randomBytes(16)}});var L7=O((b9e,F7)=>{var O7=[];for(BC=0;BC<256;++BC)O7[BC]=(BC+256).toString(16).substr(1);var BC;function tce(n,e){var t=e||0,r=O7;return[r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]]].join("")}F7.exports=tce});var Io=O((I9e,U7)=>{var rce=K7(),nce=L7();function ice(n,e,t){var r=e&&t||0;typeof n=="string"&&(e=n==="binary"?new Array(16):null,n=null),n=n||{};var i=n.random||(n.rng||rce)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e)for(var o=0;o<16;++o)e[r+o]=i[o];return e||nce(i)}U7.exports=ice});var $7=O((wBe,B7)=>{"use strict";function Vm(n){if(!(this instanceof Vm))return new Vm(n);n=n||{},this.concurrency=n.concurrency||1/0,this.pending=0,this.jobs=[],this.cbs=[],this._done=ace.bind(this)}var sce=["push","unshift","splice"];sce.forEach(function(n){Vm.prototype[n]=function(){var e=Array.prototype[n].apply(this.jobs,arguments);return this._run(),e}});Object.defineProperty(Vm.prototype,"length",{get:function(){return this.pending+this.jobs.length}});Vm.prototype._run=function(){if(this.pending!==this.concurrency){if(this.jobs.length){var n=this.jobs.shift();this.pending++,n(this._done),this._run()}if(this.pending===0)for(;this.cbs.length!==0;){var e=this.cbs.pop();process.nextTick(e)}}};Vm.prototype.onDone=function(n){typeof n=="function"&&(this.cbs.push(n),this._run())};function ace(){this.pending--,this._run()}B7.exports=Vm});var jm=O((EBe,q7)=>{"use strict";q7.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}});var l$=O((PBe,a$)=>{var Q7=require("fs"),$c=require("path"),Y7=require("os"),X7=typeof __webpack_require__=="function"?__non_webpack_require__:require,lce=process.config&&process.config.variables||{},cce=!!process.env.PREBUILDS_ONLY,H7=process.versions.modules,bK=pce()?"electron":dce()?"node-webkit":"node",IK=process.env.npm_config_arch||Y7.arch(),SK=process.env.npm_config_platform||Y7.platform(),Z7=process.env.LIBC||(mce(SK)?"musl":"glibc"),CK=process.env.ARM_VERSION||(IK==="arm64"?"8":lce.arm_version)||"",e$=(process.versions.uv||"").split(".")[0];a$.exports=Ll;function Ll(n){return X7(Ll.resolve(n))}Ll.resolve=Ll.path=function(n){n=$c.resolve(n||".");try{var e=X7($c.join(n,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(n=process.env[e+"_PREBUILD"])}catch{}if(!cce){var t=G7($c.join(n,"build/Release"),z7);if(t)return t;var r=G7($c.join(n,"build/Debug"),z7);if(r)return r}var i=a(n);if(i)return i;var o=a($c.dirname(process.execPath));if(o)return o;var s=["platform="+SK,"arch="+IK,"runtime="+bK,"abi="+H7,"uv="+e$,CK?"armv="+CK:"","libc="+Z7,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+s+` loaded from: `+n+` `);function a(l){var c=wK($c.join(l,"prebuilds")).map(t$),u=c.filter(r$(SK,IK)).sort(n$)[0];if(u){var d=$c.join(l,"prebuilds",u.name),f=wK(d).map(i$),g=f.filter(o$(bK,H7)),b=g.sort(s$(bK))[0];if(b)return $c.join(d,b.file)}}};function wK(n){try{return Q7.readdirSync(n)}catch{return[]}}function G7(n,e){var t=wK(n).filter(e);return t[0]&&$c.join(n,t[0])}function z7(n){return/\.node$/.test(n)}function t$(n){var e=n.split("-");if(e.length===2){var t=e[0],r=e[1].split("+");if(t&&r.length&&r.every(Boolean))return{name:n,platform:t,architectures:r}}}function r$(n,e){return function(t){return t==null||t.platform!==n?!1:t.architectures.includes(e)}}function n$(n,e){return n.architectures.length-e.architectures.length}function i$(n){var e=n.split("."),t=e.pop(),r={file:n,specificity:0};if(t==="node"){for(var i=0;it.specificity?-1:1:0}}function dce(){return!!(process.versions&&process.versions.nw)}function pce(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function mce(n){return n==="linux"&&Q7.existsSync("/etc/alpine-release")}Ll.parseTags=i$;Ll.matchTags=o$;Ll.compareTags=s$;Ll.parseTuple=t$;Ll.matchTuple=r$;Ll.compareTuples=n$});var PK=O((kBe,EK)=>{typeof process.addon=="function"?EK.exports=process.addon.bind(process):EK.exports=l$()});var u$=O((xBe,c$)=>{"use strict";var fce=(n,e,t,r,i)=>{for(var o=0;o{let t=n.length;for(var r=0;r{"use strict";try{kK.exports=PK()(__dirname)}catch{kK.exports=u$()}});var wD=O((_Be,xK)=>{"use strict";var{EMPTY_BUFFER:gce}=jm();function p$(n,e){if(n.length===0)return gce;if(n.length===1)return n[0];let t=Buffer.allocUnsafe(e);for(var r=0,i=0;i{"use strict";var yce=$7(),HC=require("zlib"),g$=wD(),{kStatusCode:v$,NOOP:bce}=jm(),Ice=Buffer.from([0,0,255,255]),Sce=Buffer.from([0]),PD=Symbol("permessage-deflate"),qc=Symbol("total-length"),y$=Symbol("callback"),Bd=Symbol("buffers"),DK=Symbol("error"),ED,_K=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!ED){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;ED=new yce({concurrency:i})}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate&&(this._deflate.close(),this._deflate=null)}acceptAsServer(e){let t=this._options,r=e.find(i=>!(t.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>i.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!i.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),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{var i=t[r];if(i.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(i=i[0],r==="client_max_window_bits"){if(i!==!0){let o=+i;if(!Number.isInteger(o)||o<8||o>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=o}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else if(r==="server_max_window_bits"){let o=+i;if(!Number.isInteger(o)||o<8||o>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=o}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=i})}),e}decompress(e,t,r){ED.push(i=>{this._decompress(e,t,(o,s)=>{i(),r(o,s)})})}compress(e,t,r){ED.push(i=>{this._compress(e,t,(o,s)=>{i(),r(o,s)})})}_decompress(e,t,r){let i=this._isServer?"client":"server";if(!this._inflate){let o=`${i}_max_window_bits`,s=typeof this.params[o]!="number"?HC.Z_DEFAULT_WINDOWBITS:this.params[o];this._inflate=HC.createInflateRaw(Object.assign({},this._options.zlibInflateOptions,{windowBits:s})),this._inflate[PD]=this,this._inflate[qc]=0,this._inflate[Bd]=[],this._inflate.on("error",wce),this._inflate.on("data",b$)}this._inflate[y$]=r,this._inflate.write(e),t&&this._inflate.write(Ice),this._inflate.flush(()=>{let o=this._inflate[DK];if(o){this._inflate.close(),this._inflate=null,r(o);return}let s=g$.concat(this._inflate[Bd],this._inflate[qc]);t&&this.params[`${i}_no_context_takeover`]?(this._inflate.close(),this._inflate=null):(this._inflate[qc]=0,this._inflate[Bd]=[]),r(null,s)})}_compress(e,t,r){if(!e||e.length===0){process.nextTick(r,null,Sce);return}let i=this._isServer?"server":"client";if(!this._deflate){let o=`${i}_max_window_bits`,s=typeof this.params[o]!="number"?HC.Z_DEFAULT_WINDOWBITS:this.params[o];this._deflate=HC.createDeflateRaw(Object.assign({},this._options.zlibDeflateOptions,{windowBits:s})),this._deflate[qc]=0,this._deflate[Bd]=[],this._deflate.on("error",bce),this._deflate.on("data",Cce)}this._deflate.write(e),this._deflate.flush(HC.Z_SYNC_FLUSH,()=>{if(this._deflate){var o=g$.concat(this._deflate[Bd],this._deflate[qc]);t&&(o=o.slice(0,o.length-4)),t&&this.params[`${i}_no_context_takeover`]?(this._deflate.close(),this._deflate=null):(this._deflate[qc]=0,this._deflate[Bd]=[]),r(null,o)}})}};I$.exports=_K;function Cce(n){this[Bd].push(n),this[qc]+=n.length}function b$(n){if(this[qc]+=n.length,this[PD]._maxPayload<1||this[qc]<=this[PD]._maxPayload){this[Bd].push(n);return}this[DK]=new RangeError("Max payload size exceeded"),this[DK][v$]=1009,this.removeListener("data",b$),this.reset()}function wce(n){this[PD]._inflate=null,n[v$]=1007,this[y$](n)}});var C$=O((RBe,S$)=>{"use strict";var Yv=class{constructor(e,t){this.target=t,this.type=e}},TK=class extends Yv{constructor(e,t){super("message",t),this.data=e}},RK=class extends Yv{constructor(e,t,r){super("close",r),this.wasClean=r._closeFrameReceived&&r._closeFrameSent,this.reason=t,this.code=e}},AK=class extends Yv{constructor(e){super("open",e)}},NK=class extends Yv{constructor(e,t){super("error",t),this.message=e.message,this.error=e}},Ece={addEventListener(n,e){if(typeof e!="function")return;function t(s){e.call(this,new TK(s,this))}function r(s,a){e.call(this,new RK(s,a,this))}function i(s){e.call(this,new NK(s,this))}function o(){e.call(this,new AK(this))}n==="message"?(t._listener=e,this.on(n,t)):n==="close"?(r._listener=e,this.on(n,r)):n==="error"?(i._listener=e,this.on(n,i)):n==="open"?(o._listener=e,this.on(n,o)):this.on(n,e)},removeEventListener(n,e){let t=this.listeners(n);for(var r=0;r{"use strict";var zC=[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 Ul(n,e,t){Object.prototype.hasOwnProperty.call(n,e)?n[e].push(t):n[e]=[t]}function Pce(n){let e={};if(n===void 0||n==="")return e;for(var t={},r=!1,i=!1,o=!1,s,a,l=-1,c=-1,u=0;u{var t=n[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(i=>{var o=r[i];return Array.isArray(o)||(o=[o]),o.map(s=>s===!0?i:`${i}=${s}`).join("; ")})).join("; ")).join(", ")}).join(", ")}w$.exports={format:kce,parse:Pce}});var P$=O((NBe,E$)=>{"use strict";function xce(n){let e=n.length,t=0;for(;t=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||n[t]===224&&(n[t+1]&224)===128||n[t]===237&&(n[t+1]&224)===160)return!1;t+=3}else if((n[t]&248)===240){if(t+3>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||(n[t+3]&192)!==128||n[t]===240&&(n[t+1]&240)===128||n[t]===244&&n[t+1]>143||n[t]>244)return!1;t+=4}else return!1;return!0}E$.exports=xce});var k$=O((MBe,KK)=>{"use strict";try{KK.exports=PK()(__dirname)}catch{KK.exports=P$()}});var OK=O(kD=>{"use strict";try{let n=k$();kD.isValidUTF8=typeof n=="object"?n.Validation.isValidUTF8:n}catch{kD.isValidUTF8=()=>!0}kD.isValidStatusCode=n=>n>=1e3&&n<=1013&&n!==1004&&n!==1005&&n!==1006||n>=3e3&&n<=4999});var WK=O((OBe,A$)=>{"use strict";var{Writable:Dce}=require("stream"),x$=GC(),{BINARY_TYPES:_ce,EMPTY_BUFFER:Tce,kStatusCode:Rce,kWebSocket:Ace}=jm(),{concat:FK,toArrayBuffer:Nce,unmask:Mce}=wD(),{isValidStatusCode:Kce,isValidUTF8:D$}=OK(),QC=0,_$=1,T$=2,R$=3,LK=4,Oce=5,UK=class extends Dce{constructor(e,t,r){super(),this._binaryType=e||_ce[0],this[Ace]=void 0,this._extensions=t||{},this._maxPayload=r|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=QC,this._loop=!1}_write(e,t,r){if(this._opcode===8&&this._state==QC)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=r.length?this._buffers.shift().copy(t,t.length-e):(r.copy(t,t.length-e,0,e),this._buffers[0]=r.slice(e)),e-=r.length}while(e>0);return t}startLoop(e){var t;this._loop=!0;do switch(this._state){case QC:t=this.getInfo();break;case _$:t=this.getPayloadLength16();break;case T$:t=this.getPayloadLength64();break;case R$:this.getMask();break;case LK:t=this.getData(e);break;default:this._loop=!1;return}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=!1;return}let e=this.consume(2);if(e[0]&48)return this._loop=!1,si(RangeError,"RSV2 and RSV3 must be clear",!0,1002);let t=(e[0]&64)===64;if(t&&!this._extensions[x$.extensionName])return this._loop=!1,si(RangeError,"RSV1 must be clear",!0,1002);if(this._fin=(e[0]&128)===128,this._opcode=e[0]&15,this._payloadLength=e[1]&127,this._opcode===0){if(t)return this._loop=!1,si(RangeError,"RSV1 must be clear",!0,1002);if(!this._fragmented)return this._loop=!1,si(RangeError,"invalid opcode 0",!0,1002);this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented)return this._loop=!1,si(RangeError,`invalid opcode ${this._opcode}`,!0,1002);this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin)return this._loop=!1,si(RangeError,"FIN must be set",!0,1002);if(t)return this._loop=!1,si(RangeError,"RSV1 must be clear",!0,1002);if(this._payloadLength>125)return this._loop=!1,si(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002)}else return this._loop=!1,si(RangeError,`invalid opcode ${this._opcode}`,!0,1002);if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(e[1]&128)===128,this._payloadLength===126)this._state=_$;else if(this._payloadLength===127)this._state=T$;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=!1;return}return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=!1;return}let e=this.consume(8),t=e.readUInt32BE(0);return t>Math.pow(2,53-32)-1?(this._loop=!1,si(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009)):(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,si(RangeError,"Max payload size exceeded",!1,1009);this._masked?this._state=R$:this._state=LK}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=LK}getData(e){var t=Tce;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=Oce,this.decompress(t,e);return}return t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage()}decompress(e,t){this._extensions[x$.extensionName].decompress(e,this._fin,(i,o)=>{if(i)return t(i);if(o.length){if(this._messageLength+=o.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(si(RangeError,"Max payload size exceeded",!1,1009));this._fragments.push(o)}let s=this.dataMessage();if(s)return t(s);this.startLoop(t)})}dataMessage(){if(this._fin){let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){var e;this._binaryType==="nodebuffer"?e=FK(r,t):this._binaryType==="arraybuffer"?e=Nce(FK(r,t)):e=r,this.emit("message",e)}else{let i=FK(r,t);if(!D$(i))return this._loop=!1,si(Error,"invalid UTF-8 sequence",!0,1007);this.emit("message",i.toString())}}this._state=QC}controlMessage(e){if(this._opcode===8)if(this._loop=!1,e.length===0)this.emit("conclude",1005,""),this.end();else{if(e.length===1)return si(RangeError,"invalid payload length 1",!0,1002);{let t=e.readUInt16BE(0);if(!Kce(t))return si(RangeError,`invalid status code ${t}`,!0,1002);let r=e.slice(2);if(!D$(r))return si(Error,"invalid UTF-8 sequence",!0,1007);this.emit("conclude",t,r.toString()),this.end()}}else this._opcode===9?this.emit("ping",e):this.emit("pong",e);this._state=QC}};A$.exports=UK;function si(n,e,t,r){let i=new n(t?`Invalid WebSocket frame: ${e}`:e);return Error.captureStackTrace(i,si),i[Rce]=r,i}});var jK=O((FBe,K$)=>{"use strict";var{randomBytes:Fce}=require("crypto"),N$=GC(),{EMPTY_BUFFER:Lce}=jm(),{isValidStatusCode:Uce}=OK(),{mask:M$,toBuffer:Hc}=wD(),VK=class n{constructor(e,t){this._extensions=t||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let r=t.mask&&t.readOnly;var i=t.mask?6:2,o=e.length;e.length>=65536?(i+=8,o=127):e.length>125&&(i+=2,o=126);let s=Buffer.allocUnsafe(r?e.length+i:i);if(s[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(s[0]|=64),s[1]=o,o===126?s.writeUInt16BE(e.length,2):o===127&&(s.writeUInt32BE(0,2),s.writeUInt32BE(e.length,6)),!t.mask)return[s,e];let a=Fce(4);return s[1]|=128,s[i-4]=a[0],s[i-3]=a[1],s[i-2]=a[2],s[i-1]=a[3],r?(M$(e,a,s,i,e.length),[s]):(M$(e,a,e,0,e.length),[s,e])}close(e,t,r,i){var o;if(e===void 0)o=Lce;else{if(typeof e!="number"||!Uce(e))throw new TypeError("First argument must be a valid error code number");t===void 0||t===""?(o=Buffer.allocUnsafe(2),o.writeUInt16BE(e,0)):(o=Buffer.allocUnsafe(2+Buffer.byteLength(t)),o.writeUInt16BE(e,0),o.write(t,2))}this._deflating?this.enqueue([this.doClose,o,r,i]):this.doClose(o,r,i)}doClose(e,t,r){this.sendFrame(n.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:t,readOnly:!1}),r)}ping(e,t,r){let i=Hc(e);this._deflating?this.enqueue([this.doPing,i,t,Hc.readOnly,r]):this.doPing(i,t,Hc.readOnly,r)}doPing(e,t,r,i){this.sendFrame(n.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:t,readOnly:r}),i)}pong(e,t,r){let i=Hc(e);this._deflating?this.enqueue([this.doPong,i,t,Hc.readOnly,r]):this.doPong(i,t,Hc.readOnly,r)}doPong(e,t,r,i){this.sendFrame(n.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:t,readOnly:r}),i)}send(e,t,r){let i=Hc(e),o=this._extensions[N$.extensionName];var s=t.binary?2:1,a=t.compress;if(this._firstFragment?(this._firstFragment=!1,a&&o&&(a=i.length>=o._threshold),this._compress=a):(a=!1,s=0),t.fin&&(this._firstFragment=!0),o){let l={fin:t.fin,rsv1:a,opcode:s,mask:t.mask,readOnly:Hc.readOnly};this._deflating?this.enqueue([this.dispatch,i,this._compress,l,r]):this.dispatch(i,this._compress,l,r)}else this.sendFrame(n.frame(i,{fin:t.fin,rsv1:!1,opcode:s,mask:t.mask,readOnly:Hc.readOnly}),r)}dispatch(e,t,r,i){if(!t){this.sendFrame(n.frame(e,r),i);return}let o=this._extensions[N$.extensionName];this._deflating=!0,o.compress(e,r.fin,(s,a)=>{this._deflating=!1,r.readOnly=!1,this.sendFrame(n.frame(a,r),i),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[1].length,e[0].apply(this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};K$.exports=VK});var $K=O((LBe,q$)=>{"use strict";var Wce=require("events"),O$=require("crypto"),Vce=require("https"),jce=require("http"),Jce=require("net"),Bce=require("tls"),Xv=require("url"),$d=GC(),W$=C$(),F$=MK(),$ce=WK(),qce=jK(),{BINARY_TYPES:L$,EMPTY_BUFFER:JK,GUID:Hce,kStatusCode:Gce,kWebSocket:So,NOOP:V$}=jm(),xD=["CONNECTING","OPEN","CLOSING","CLOSED"],BK=[8,13],zce=30*1e3,Co=class n extends Wce{constructor(e,t,r){super(),this.readyState=n.CONNECTING,this.protocol="",this._binaryType=L$[0],this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._closeCode=1006,this._extensions={},this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._isServer=!1,this._redirects=0,Array.isArray(t)?t=t.join(", "):typeof t=="object"&&t!==null&&(r=t,t=void 0),j$(this,e,t,r)):this._isServer=!0}get CONNECTING(){return n.CONNECTING}get CLOSING(){return n.CLOSING}get CLOSED(){return n.CLOSED}get OPEN(){return n.OPEN}get binaryType(){return this._binaryType}set binaryType(e){L$.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?(this._socket.bufferSize||0)+this._sender._bufferedBytes:0}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,r){let i=new $ce(this._binaryType,this._extensions,r);this._sender=new qce(e,this._extensions),this._receiver=i,this._socket=e,i[So]=this,e[So]=this,i.on("conclude",Xce),i.on("drain",Zce),i.on("error",eue),i.on("message",tue),i.on("ping",rue),i.on("pong",nue),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",J$),e.on("data",DD),e.on("end",B$),e.on("error",$$),this.readyState=n.OPEN,this.emit("open")}emitClose(){if(this.readyState=n.CLOSED,!this._socket){this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[$d.extensionName]&&this._extensions[$d.extensionName].cleanup(),this._receiver.removeAllListeners(),this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){let r="WebSocket was closed before the connection was established";return Gc(this,this._req,r)}if(this.readyState===n.CLOSING){this._closeFrameSent&&this._closeFrameReceived&&this._socket.end();return}this.readyState=n.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,this._closeFrameReceived&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),zce)}}ping(e,t,r){if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),this.readyState!==n.OPEN){let i=new Error(`WebSocket is not open: readyState ${this.readyState} (${xD[this.readyState]})`);if(r)return r(i);throw i}typeof e=="number"&&(e=e.toString()),t===void 0&&(t=!this._isServer),this._sender.ping(e||JK,t,r)}pong(e,t,r){if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),this.readyState!==n.OPEN){let i=new Error(`WebSocket is not open: readyState ${this.readyState} (${xD[this.readyState]})`);if(r)return r(i);throw i}typeof e=="number"&&(e=e.toString()),t===void 0&&(t=!this._isServer),this._sender.pong(e||JK,t,r)}send(e,t,r){if(typeof t=="function"&&(r=t,t={}),this.readyState!==n.OPEN){let o=new Error(`WebSocket is not open: readyState ${this.readyState} (${xD[this.readyState]})`);if(r)return r(o);throw o}typeof e=="number"&&(e=e.toString());let i=Object.assign({binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0},t);this._extensions[$d.extensionName]||(i.compress=!1),this._sender.send(e||JK,i,r)}terminate(){if(this.readyState!==n.CLOSED){if(this.readyState===n.CONNECTING){let e="WebSocket was closed before the connection was established";return Gc(this,this._req,e)}this._socket&&(this.readyState=n.CLOSING,this._socket.destroy())}}};xD.forEach((n,e)=>{Co[n]=e});["open","error","close","message"].forEach(n=>{Object.defineProperty(Co.prototype,`on${n}`,{get(){let e=this.listeners(n);for(var t=0;t{Gc(n,g,"Opening handshake has timed out")}),g.on("error",b=>{n._req.aborted||(g=n._req=null,n.readyState=Co.CLOSING,n.emit("error",b),n.emitClose())}),g.on("response",b=>{let I=b.headers.location,E=b.statusCode;if(I&&i.followRedirects&&E>=300&&E<400){if(++n._redirects>i.maxRedirects){Gc(n,g,"Maximum redirects exceeded");return}g.abort();let x=Xv.URL?new Xv.URL(I,e):Xv.resolve(e,I);j$(n,x,t,r)}else n.emit("unexpected-response",g,b)||Gc(n,g,`Unexpected server response: ${b.statusCode}`)}),g.on("upgrade",(b,I,E)=>{if(n.emit("upgrade",b),n.readyState!==Co.CONNECTING)return;g=n._req=null;let x=O$.createHash("sha1").update(c+Hce).digest("base64");if(b.headers["sec-websocket-accept"]!==x){Gc(n,I,"Invalid Sec-WebSocket-Accept header");return}let A=b.headers["sec-websocket-protocol"],T=(t||"").split(/, */);var J;if(!t&&A?J="Server sent a subprotocol but none was requested":t&&!A?J="Server sent no subprotocol":A&&!T.includes(A)&&(J="Server sent an invalid subprotocol"),J){Gc(n,I,J);return}if(A&&(n.protocol=A),f)try{let ne=F$.parse(b.headers["sec-websocket-extensions"]);ne[$d.extensionName]&&(f.accept(ne[$d.extensionName]),n._extensions[$d.extensionName]=f)}catch{Gc(n,I,"Invalid Sec-WebSocket-Extensions header");return}n.setSocket(I,E,i.maxPayload)})}function Qce(n){return n.protocolVersion&&(n.path=n.socketPath),Jce.connect(n)}function Yce(n){return n.path=void 0,n.servername=n.servername||n.host,Bce.connect(n)}function Gc(n,e,t){n.readyState=Co.CLOSING;let r=new Error(t);Error.captureStackTrace(r,Gc),e.setHeader?(e.abort(),e.once("abort",n.emitClose.bind(n)),n.emit("error",r)):(e.destroy(r),e.once("error",n.emit.bind(n,"error")),e.once("close",n.emitClose.bind(n)))}function Xce(n,e){let t=this[So];t._socket.removeListener("data",DD),t._socket.resume(),t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=n,n===1005?t.close():t.close(n,e)}function Zce(){this[So]._socket.resume()}function eue(n){let e=this[So];e._socket.removeListener("data",DD),e.readyState=Co.CLOSING,e._closeCode=n[Gce],e.emit("error",n),e._socket.destroy()}function U$(){this[So].emitClose()}function tue(n){this[So].emit("message",n)}function rue(n){let e=this[So];e.pong(n,!e._isServer,V$),e.emit("ping",n)}function nue(n){this[So].emit("pong",n)}function J$(){let n=this[So];this.removeListener("close",J$),this.removeListener("end",B$),n.readyState=Co.CLOSING,n._socket.read(),n._receiver.end(),this.removeListener("data",DD),this[So]=void 0,clearTimeout(n._closeTimer),n._receiver._writableState.finished||n._receiver._writableState.errorEmitted?n.emitClose():(n._receiver.on("error",U$),n._receiver.on("finish",U$))}function DD(n){this[So]._receiver.write(n)||this.pause()}function B$(){let n=this[So];n.readyState=Co.CLOSING,n._receiver.end(),this.end()}function $$(){let n=this[So];this.removeListener("error",$$),this.on("error",V$),n.readyState=Co.CLOSING,this.destroy()}});var z$=O((UBe,G$)=>{"use strict";var iue=require("events"),oue=require("crypto"),TD=require("http"),Jm=GC(),H$=MK(),sue=$K(),{GUID:aue}=jm(),lue=/^[+/0-9A-Za-z]{22}==$/,qK=class extends iue{constructor(e,t){if(super(),e=Object.assign({maxPayload:100*1024*1024,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null},e),e.port==null&&!e.server&&!e.noServer)throw new TypeError('One of the "port", "server", or "noServer" options must be specified');e.port!=null?(this._server=TD.createServer((r,i)=>{let o=TD.STATUS_CODES[426];i.writeHead(426,{"Content-Length":o.length,"Content-Type":"text/plain"}),i.end(o)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server&&(this._removeListeners=cue(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(r,i,o)=>{this.handleUpgrade(r,i,o,s=>{this.emit("connection",s,r)})}})),e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(e&&this.once("close",e),this.clients)for(let r of this.clients)r.terminate();let t=this._server;if(t&&(this._removeListeners(),this._removeListeners=this._server=null,this.options.port!=null)){t.close(()=>this.emit("close"));return}process.nextTick(uue,this)}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,i){t.on("error",HK);let o=e.headers["sec-websocket-key"]!==void 0?e.headers["sec-websocket-key"].trim():!1,s=e.headers.upgrade,a=+e.headers["sec-websocket-version"],l={};if(e.method!=="GET"||s===void 0||s.toLowerCase()!=="websocket"||!o||!lue.test(o)||a!==8&&a!==13||!this.shouldHandle(e))return _D(t,400);if(this.options.perMessageDeflate){let c=new Jm(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let u=H$.parse(e.headers["sec-websocket-extensions"]);u[Jm.extensionName]&&(c.accept(u[Jm.extensionName]),l[Jm.extensionName]=c)}catch{return _D(t,400)}}if(this.options.verifyClient){let c={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.connection.authorized||e.connection.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(c,(u,d,f,g)=>{if(!u)return _D(t,d||401,f,g);this.completeUpgrade(o,l,e,t,r,i)});return}if(!this.options.verifyClient(c))return _D(t,401)}this.completeUpgrade(o,l,e,t,r,i)}completeUpgrade(e,t,r,i,o,s){if(!i.readable||!i.writable)return i.destroy();let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${oue.createHash("sha1").update(e+aue).digest("base64")}`],c=new sue(null);var u=r.headers["sec-websocket-protocol"];if(u&&(u=u.split(",").map(due),this.options.handleProtocols?u=this.options.handleProtocols(u,r):u=u[0],u&&(l.push(`Sec-WebSocket-Protocol: ${u}`),c.protocol=u)),t[Jm.extensionName]){let d=t[Jm.extensionName].params,f=H$.format({[Jm.extensionName]:[d]});l.push(`Sec-WebSocket-Extensions: ${f}`),c._extensions=t}this.emit("headers",l,r),i.write(l.concat(`\r `).join(`\r `)),i.removeListener("error",HK),c.setSocket(i,o,this.options.maxPayload),this.clients&&(this.clients.add(c),c.on("close",()=>this.clients.delete(c))),s(c)}};G$.exports=qK;function cue(n,e){for(let t of Object.keys(e))n.on(t,e[t]);return function(){for(let r of Object.keys(e))n.removeListener(r,e[r])}}function uue(n){n.emit("close")}function HK(){this.destroy()}function _D(n,e,t,r){n.writable&&(t=t||TD.STATUS_CODES[e],r=Object.assign({Connection:"close","Content-type":"text/html","Content-Length":Buffer.byteLength(t)},r),n.write(`HTTP/1.1 ${e} ${TD.STATUS_CODES[e]}\r `+Object.keys(r).map(i=>`${i}: ${r[i]}`).join(`\r `)+`\r \r `+t)),n.removeListener("error",HK),n.destroy()}function due(n){return n.trim()}});var Y$=O((WBe,Q$)=>{"use strict";var RD=$K();RD.Server=z$();RD.Receiver=WK();RD.Sender=jK();Q$.exports=RD});var Z$=O((VBe,X$)=>{"use strict";X$.exports=Y$()});var s8=O((OD,o8)=>{(function(n,e){typeof OD=="object"&&typeof o8<"u"?e(OD):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.lumino_algorithm={}))})(OD,function(n){"use strict";n.ArrayExt=void 0,function(F){function U(Z,le,W,V){W===void 0&&(W=0),V===void 0&&(V=-1);var Q=Z.length;if(Q===0)return-1;W<0?W=Math.max(0,W+Q):W=Math.min(W,Q-1),V<0?V=Math.max(0,V+Q):V=Math.min(V,Q-1);var Se;V0;){var mi=ir>>1,hc=Ae+mi;W(Z[hc],le)<0?(Ae=hc+1,ir-=mi+1):ir=mi}return Ae}F.lowerBound=Mt;function xt(Z,le,W,V,Q){V===void 0&&(V=0),Q===void 0&&(Q=-1);var Se=Z.length;if(Se===0)return 0;V<0?V=Math.max(0,V+Se):V=Math.min(V,Se-1),Q<0?Q=Math.max(0,Q+Se):Q=Math.min(Q,Se-1);for(var Ae=V,ir=Q-V+1;ir>0;){var mi=ir>>1,hc=Ae+mi;W(Z[hc],le)>0?ir=mi:(Ae=hc+1,ir-=mi+1)}return Ae}F.upperBound=xt;function yr(Z,le,W){if(Z===le)return!0;if(Z.length!==le.length)return!1;for(var V=0,Q=Z.length;V=Se&&(W=Q<0?Se-1:Se),V===void 0?V=Q<0?-1:Se:V<0?V=Math.max(V+Se,Q<0?-1:0):V>=Se&&(V=Q<0?Se-1:Se);var Ae;Q<0&&V>=W||Q>0&&W>=V?Ae=0:Q<0?Ae=Math.floor((V-W+1)/Q+1):Ae=Math.floor((V-W-1)/Q+1);for(var ir=[],mi=0;mi=V))){var Se=V-W+1;if(le>0?le=le%Se:le<0&&(le=(le%Se+Se)%Se),le!==0){var Ae=W+le;Xr(Z,W,Ae-1),Xr(Z,Ae,V),Xr(Z,W,V)}}}F.rotate=$;function X(Z,le,W,V){W===void 0&&(W=0),V===void 0&&(V=-1);var Q=Z.length;if(Q!==0){W<0?W=Math.max(0,W+Q):W=Math.min(W,Q-1),V<0?V=Math.max(0,V+Q):V=Math.min(V,Q-1);var Se;Vle;--Q)Z[Q]=Z[Q-1];Z[le]=W}F.insert=ue;function ve(Z,le){var W=Z.length;if(le<0&&(le+=W),!(le<0||le>=W)){for(var V=Z[le],Q=le+1;Q=W&&Ae<=V&&Z[Ae]===le||V=W)&&Z[Ae]===le?Se++:Se>0&&(Z[Ae-Se]=Z[Ae]);return Se>0&&(Z.length=Q-Se),Se}F.removeAllOf=bt;function wt(Z,le,W,V){W===void 0&&(W=0),V===void 0&&(V=-1);var Q,Se=Re(Z,le,W,V);return Se!==-1&&(Q=ve(Z,Se)),{index:Se,value:Q}}F.removeFirstWhere=wt;function Qe(Z,le,W,V){W===void 0&&(W=-1),V===void 0&&(V=0);var Q,Se=ze(Z,le,W,V);return Se!==-1&&(Q=ve(Z,Se)),{index:Se,value:Q}}F.removeLastWhere=Qe;function At(Z,le,W,V){W===void 0&&(W=0),V===void 0&&(V=-1);var Q=Z.length;if(Q===0)return 0;W<0?W=Math.max(0,W+Q):W=Math.min(W,Q-1),V<0?V=Math.max(0,V+Q):V=Math.min(V,Q-1);for(var Se=0,Ae=0;Ae=W&&Ae<=V&&le(Z[Ae],Ae)||V=W)&&le(Z[Ae],Ae)?Se++:Se>0&&(Z[Ae-Se]=Z[Ae]);return Se>0&&(Z.length=Q-Se),Se}F.removeAllWhere=At}(n.ArrayExt||(n.ArrayExt={}));function e(F){var U;return typeof F.iter=="function"?U=F.iter():U=new d(F),U}function t(F){return new f(F)}function r(F){return new g(F)}function i(F){return new b(F)}function o(F){return new I(F)}function s(F,U){for(var pe=0,Re=e(F),ze;(ze=Re.next())!==void 0;)if(U(ze,pe++)===!1)return}function a(F,U){for(var pe=0,Re=e(F),ze;(ze=Re.next())!==void 0;)if(!U(ze,pe++))return!1;return!0}function l(F,U){for(var pe=0,Re=e(F),ze;(ze=Re.next())!==void 0;)if(U(ze,pe++))return!0;return!1}function c(F){for(var U=0,pe=[],Re=e(F),ze;(ze=Re.next())!==void 0;)pe[U++]=ze;return pe}function u(F){for(var U=e(F),pe,Re={};(pe=U.next())!==void 0;)Re[pe[0]]=pe[1];return Re}var d=function(){function F(U){this._index=0,this._source=U}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._source);return U._index=this._index,U},F.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},F}(),f=function(){function F(U,pe){pe===void 0&&(pe=Object.keys(U)),this._index=0,this._source=U,this._keys=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._source,this._keys);return U._index=this._index,U},F.prototype.next=function(){if(!(this._index>=this._keys.length)){var U=this._keys[this._index++];return U in this._source?U:this.next()}},F}(),g=function(){function F(U,pe){pe===void 0&&(pe=Object.keys(U)),this._index=0,this._source=U,this._keys=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._source,this._keys);return U._index=this._index,U},F.prototype.next=function(){if(!(this._index>=this._keys.length)){var U=this._keys[this._index++];return U in this._source?this._source[U]:this.next()}},F}(),b=function(){function F(U,pe){pe===void 0&&(pe=Object.keys(U)),this._index=0,this._source=U,this._keys=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._source,this._keys);return U._index=this._index,U},F.prototype.next=function(){if(!(this._index>=this._keys.length)){var U=this._keys[this._index++];return U in this._source?[U,this._source[U]]:this.next()}},F}(),I=function(){function F(U){this._fn=U}return F.prototype.iter=function(){return this},F.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},F.prototype.next=function(){return this._fn.call(void 0)},F}();function E(){for(var F=[],U=0;U0&&(ze=Re);return ze}}function pt(F,U){var pe=e(F),Re=pe.next();if(Re!==void 0){for(var ze=Re,Yr=Re;(Re=pe.next())!==void 0;)U(Re,ze)<0?ze=Re:U(Re,Yr)>0&&(Yr=Re);return[ze,Yr]}}function mt(F,U){return new kt(e(F),U)}var kt=function(){function F(U,pe){this._index=0,this._source=U,this._fn=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._source.clone(),this._fn);return U._index=this._index,U},F.prototype.next=function(){var U=this._source.next();if(U!==void 0)return this._fn.call(void 0,U,this._index++)},F}();function ee(F,U,pe){return U===void 0?new Ee(0,F,1):pe===void 0?new Ee(F,U,1):new Ee(F,U,pe)}var Ee=function(){function F(U,pe,Re){this._index=0,this._start=U,this._stop=pe,this._step=Re,this._length=Te.rangeLength(U,pe,Re)}return F.prototype.iter=function(){return this},F.prototype.clone=function(){var U=new F(this._start,this._stop,this._step);return U._index=this._index,U},F.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},F}(),Te;(function(F){function U(pe,Re,ze){return ze===0?1/0:pe>Re&&ze>0||pe=this._source.length))return this._source[this._index--]},F}();function Fr(F){var U=[],pe=new Set,Re=new Map;return s(F,ze),Re.forEach(function(Wt,Mt){Yr(Mt)}),U;function ze(Wt){var Mt=Wt[0],xt=Wt[1],yr=Re.get(xt);yr?yr.push(Mt):Re.set(xt,[Mt])}function Yr(Wt){if(!pe.has(Wt)){pe.add(Wt);var Mt=Re.get(Wt);Mt&&Mt.forEach(Yr),U.push(Wt)}}}function zs(F,U){return new Ka(e(F),U)}var Ka=function(){function F(U,pe){this._source=U,this._step=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){return new F(this._source.clone(),this._step)},F.prototype.next=function(){for(var U=this._source.next(),pe=this._step-1;pe>0;--pe)this._source.next();return U},F}();n.StringExt=void 0,function(F){function U(Wt,Mt,xt){xt===void 0&&(xt=0);for(var yr=new Array(Mt.length),Lr=0,wr=xt,Xr=Mt.length;LrMt?1:0}F.cmp=Yr}(n.StringExt||(n.StringExt={}));function Nt(F,U){return new Li(e(F),U)}var Li=function(){function F(U,pe){this._source=U,this._count=pe}return F.prototype.iter=function(){return this},F.prototype.clone=function(){return new F(this._source.clone(),this._count)},F.prototype.next=function(){if(!(this._count<=0)){var U=this._source.next();if(U!==void 0)return this._count--,U}},F}();function zn(){for(var F=[],U=0;U{(function(n,e){typeof FD=="object"&&typeof a8<"u"?e(FD):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.lumino_properties={}))})(FD,function(n){"use strict";n.AttachedProperty=function(){function t(r){this._pid=e.nextPID(),this.name=r.name,this._create=r.create,this._coerce=r.coerce||null,this._compare=r.compare||null,this._changed=r.changed||null}return t.prototype.get=function(r){var i,o=e.ensureMap(r);return this._pid in o?i=o[this._pid]:i=o[this._pid]=this._createValue(r),i},t.prototype.set=function(r,i){var o,s=e.ensureMap(r);this._pid in s?o=s[this._pid]:o=s[this._pid]=this._createValue(r);var a=this._coerceValue(r,i);this._maybeNotify(r,o,s[this._pid]=a)},t.prototype.coerce=function(r){var i,o=e.ensureMap(r);this._pid in o?i=o[this._pid]:i=o[this._pid]=this._createValue(r);var s=this._coerceValue(r,i);this._maybeNotify(r,i,o[this._pid]=s)},t.prototype._createValue=function(r){var i=this._create;return i(r)},t.prototype._coerceValue=function(r,i){var o=this._coerce;return o?o(r,i):i},t.prototype._compareValue=function(r,i){var o=this._compare;return o?o(r,i):r===i},t.prototype._maybeNotify=function(r,i,o){var s=this._changed;s&&!this._compareValue(i,o)&&s(r,i,o)},t}(),function(t){function r(i){e.ownerData.delete(i)}t.clearData=r}(n.AttachedProperty||(n.AttachedProperty={}));var e;(function(t){t.ownerData=new WeakMap,t.nextPID=function(){var i=0;return function(){var o=Math.random(),s=(""+o).slice(2);return"pid-"+s+"-"+i++}}();function r(i){var o=t.ownerData.get(i);return o||(o=Object.create(null),t.ownerData.set(i,o),o)}t.ensureMap=r})(e||(e={})),Object.defineProperty(n,"__esModule",{value:!0})})});var UD=O((LD,c8)=>{(function(n,e){typeof LD=="object"&&typeof c8<"u"?e(LD,s8(),l8()):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm","@lumino/properties"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.lumino_signaling={},n.lumino_algorithm,n.lumino_properties))})(LD,function(n,e,t){"use strict";n.Signal=function(){function i(o){this._blockedCount=0,this.sender=o}return i.prototype.block=function(o){this._blockedCount++;try{o()}finally{this._blockedCount--}},i.prototype.connect=function(o,s){return r.connect(this,o,s)},i.prototype.disconnect=function(o,s){return r.disconnect(this,o,s)},i.prototype.emit=function(o){this._blockedCount||r.emit(this,o)},i}(),function(i){function o(g,b){var I=r.blockedProperty;I.set(g,I.get(g)+1);try{b()}finally{I.set(g,I.get(g)-1)}}i.blockAll=o;function s(g,b){r.disconnectBetween(g,b)}i.disconnectBetween=s;function a(g){r.disconnectSender(g)}i.disconnectSender=a;function l(g){r.disconnectReceiver(g)}i.disconnectReceiver=l;function c(g){r.disconnectAll(g)}i.disconnectAll=c;function u(g){r.disconnectAll(g)}i.clearData=u;function d(){return r.exceptionHandler}i.getExceptionHandler=d;function f(g){var b=r.exceptionHandler;return r.exceptionHandler=g,b}i.setExceptionHandler=f}(n.Signal||(n.Signal={}));var r;(function(i){i.exceptionHandler=function(H){console.error(H)};function o(H,oe,ae){ae=ae||void 0;var Y=f.get(H.sender);if(Y||(Y=[],f.set(H.sender,Y)),E(Y,H,oe,ae))return!1;var Ie=ae||oe,Ke=g.get(Ie);Ke||(Ke=[],g.set(Ie,Ke));var pt={signal:H,slot:oe,thisArg:ae};return Y.push(pt),Ke.push(pt),!0}i.connect=o;function s(H,oe,ae){ae=ae||void 0;var Y=f.get(H.sender);if(!Y||Y.length===0)return!1;var Ie=E(Y,H,oe,ae);if(!Ie)return!1;var Ke=ae||oe,pt=g.get(Ke);return Ie.signal=null,A(Y),A(pt),!0}i.disconnect=s;function a(H,oe){var ae=f.get(H);if(!(!ae||ae.length===0)){var Y=g.get(oe);!Y||Y.length===0||(e.each(Y,function(Ie){Ie.signal&&Ie.signal.sender===H&&(Ie.signal=null)}),A(ae),A(Y))}}i.disconnectBetween=a;function l(H){var oe=f.get(H);!oe||oe.length===0||(e.each(oe,function(ae){if(ae.signal){var Y=ae.thisArg||ae.slot;ae.signal=null,A(g.get(Y))}}),A(oe))}i.disconnectSender=l;function c(H){var oe=g.get(H);!oe||oe.length===0||(e.each(oe,function(ae){if(ae.signal){var Y=ae.signal.sender;ae.signal=null,A(f.get(Y))}}),A(oe))}i.disconnectReceiver=c;function u(H){l(H),c(H)}i.disconnectAll=u;function d(H,oe){if(!(i.blockedProperty.get(H.sender)>0)){var ae=f.get(H.sender);if(!(!ae||ae.length===0))for(var Y=0,Ie=ae.length;Y{"use strict";var Eue=require("child_process").spawn;function Pue(n){if(n){n=n.trim();var e=/your \d+x\d+ screen size is bogus\. expect trouble/gi;return n=n.replace(e,""),n.trim()}}function kue(n,e,t,r){typeof t=="function"&&(r=t,t=void 0);var i=!1,o=Eue(n,e,t),s="",a="";o.stdout.on("data",function(l){s+=l.toString()}),o.stderr.on("data",function(l){a+=l.toString()}),o.on("error",function(l){i||(i=!0,r(new Error(l)))}),o.on("close",function(l){if(!i){if(i=!0,a=Pue(a),a)return r(new Error(a));r(null,s,l)}})}E8.exports=kue});var k8=O((kze,P8)=>{"use strict";var xue=require("os"),Due=sO();function _ue(n){var e=["-A","-o","ppid,pid"];Due("ps",e,function(t,r,i){if(t)return n(t);if(i!==0)return n(new Error("pidtree ps command exited with code "+i));try{r=r.split(xue.EOL);for(var o=[],s=1;s{"use strict";var Tue=require("os"),Rue=sO();function Aue(n){var e=["PROCESS","get","ParentProcessId,ProcessId"],t={windowsHide:!0,windowsVerbatimArguments:!0};Rue("wmic",e,t,function(r,i,o){if(r){n(r);return}if(o!==0){n(new Error("pidtree wmic command exited with code "+o));return}try{i=i.split(Tue.EOL);for(var s=[],a=1;a{"use strict";var T8=require("os"),Nue={darwin:"ps",sunos:"ps",freebsd:"ps",netbsd:"ps",win:"wmic",linux:"ps",aix:"ps"},Mue={ps:()=>k8(),wmic:()=>D8()},aO=T8.platform();aO.startsWith("win")&&(aO="win");var _8=Nue[aO];function Kue(n){_8===void 0&&n(new Error(T8.platform()+" is not supported yet, please open an issue (https://github.com/simonepri/pidtree)"));var e=Mue[_8]();e(n)}R8.exports=Kue});var M8=O((_ze,N8)=>{"use strict";var Oue=A8();function Fue(n,e,t){if(typeof e=="function"&&(t=e,e={}),typeof e!="object"&&(e={}),n=parseInt(n,10),isNaN(n)||n<-1){t(new TypeError("The pid provided is invalid"));return}Oue(function(r,i){if(r){t(r);return}if(n===-1){for(var o=0;o0;){var c=i.pop();l[c[0]]?l[c[0]].push(c[1]):l[c[0]]=[c[1]]}for(var u=0,d=[s];u{"use strict";function Lue(n,e,t){return new Promise(function(r,i){n(e,t,function(o,s){if(o)return i(o);r(s)})})}String.prototype.startsWith||(String.prototype.startsWith=function(n){return this.substring(0,n.length)===n});var K8=M8();function Uue(n,e,t){if(typeof e=="function"&&(t=e,e=void 0),typeof t=="function"){K8(n,e,t);return}return Lue(K8,n,e)}O8.exports=Uue});var $8=O((Rze,B8)=>{var L8=Array.prototype.slice,U8=typeof Object.keys=="function"?Object.keys:function(n){var e=[];for(var t in n)e.push(t);return e},W8=B8.exports=function(n,e){return n===0&&e===0?Wue(n,e):n===e?!0:n instanceof Date&&e instanceof Date?n.getTime()===e.getTime():J8(n)?J8(e):typeof n!="object"&&typeof e!="object"?n==e:Vue(n,e)};function V8(n){return n==null}function j8(n){return Object.prototype.toString.call(n)=="[object Arguments]"}function J8(n){return typeof n=="number"&&n!==n}function Wue(n,e){return 1/n===1/e}function Vue(n,e){if(V8(n)||V8(e)||n.prototype!==e.prototype)return!1;if(j8(n))return j8(e)?(n=L8.call(n),e=L8.call(e),W8(n,e)):!1;try{var t=U8(n),r=U8(e),i,o}catch{return!1}if(t.length!=r.length)return!1;for(t.sort(),r.sort(),o=t.length-1;o>=0;o--)if(t[o]!=r[o])return!1;for(o=t.length-1;o>=0;o--)if(i=t[o],!W8(n[i],e[i]))return!1;return!0}});var G8=O((Aze,H8)=>{"use strict";var q8="[a-fA-F\\d:]",Xd=n=>n&&n.includeBoundaries?`(?:(?<=\\s|^)(?=${q8})|(?<=${q8})(?=\\s|$))`:"",va="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_n="[a-fA-F\\d]{1,4}",c_=` (?: (?:${_n}:){7}(?:${_n}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 (?:${_n}:){6}(?:${va}|:${_n}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 (?:${_n}:){5}(?::${va}|(?::${_n}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 (?:${_n}:){4}(?:(?::${_n}){0,1}:${va}|(?::${_n}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 (?:${_n}:){3}(?:(?::${_n}){0,2}:${va}|(?::${_n}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 (?:${_n}:){2}(?:(?::${_n}){0,3}:${va}|(?::${_n}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 (?:${_n}:){1}(?:(?::${_n}){0,4}:${va}|(?::${_n}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::${_n}){0,5}:${va}|(?::${_n}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 `.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),jue=new RegExp(`(?:^${va}$)|(?:^${c_}$)`),Jue=new RegExp(`^${va}$`),Bue=new RegExp(`^${c_}$`),lO=n=>n&&n.exact?jue:new RegExp(`(?:${Xd(n)}${va}${Xd(n)})|(?:${Xd(n)}${c_}${Xd(n)})`,"g");lO.v4=n=>n&&n.exact?Jue:new RegExp(`${Xd(n)}${va}${Xd(n)}`,"g");lO.v6=n=>n&&n.exact?Bue:new RegExp(`${Xd(n)}${c_}${Xd(n)}`,"g");H8.exports=lO});var z8=O((Nze,$ue)=>{$ue.exports={name:"is2",version:"2.0.7",description:"A type checking library where each exported function returns either true or false and does not throw. Also added tests.",license:"MIT",tags:["type","check","checker","checking","utilities","network","networking","credit","card","validation"],keywords:["type","check","checker","checking","utilities","network","networking","credit","card","validation"],author:"Enrico Marino ",maintainers:"Edmond Meinfelder , Chris Oyler ",homepage:"http://github.com/stdarg/is2",repository:{type:"git",url:"git@github.com:stdarg/is2.git"},bugs:{url:"http://github.com/stdarg/is/issues"},main:"./index.js",scripts:{test:"./node_modules/.bin/mocha -C --reporter list tests.js"},engines:{node:">=v0.10.0"},dependencies:{"deep-is":"^0.1.3","ip-regex":"^4.1.0","is-url":"^1.2.4"},devDependencies:{mocha:"6.1.4",mongodb:"3.2.4"}}});var Y8=O((Mze,Q8)=>{Q8.exports=zue;var que=/^(?:\w+:)?\/\/(\S+)$/,Hue=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Gue=/^[^\s\.]+\.\S{2,}$/;function zue(n){if(typeof n!="string")return!1;var e=n.match(que);if(!e)return!1;var t=e[1];return t?!!(Hue.test(t)||Gue.test(t)):!1}});var e5=O(Z8=>{"use strict";var X8={}.hasOwnProperty,ur={}.toString,C=Z8,Que=$8(),Yue=G8();C.version=z8().version;C.browser=function(){return!C.node()&&typeof window<"u"&&ur.call(window)==="[object global]"};C.defined=function(n){return typeof n<"u"};C.def=C.defined;C.nodejs=function(){return process&&process.hasOwnProperty("version")&&process.hasOwnProperty("versions")};C.node=C.nodejs;C.undefined=function(n){return n===void 0};C.udef=C.undef=C.undefined;C.array=function(n){return ur.call(n)==="[object Array]"};C.arr=C.ary=C.arry=C.array;C.arrayLike=function(n){return C.nullOrUndef(n)?!1:n!==void 0&&X8.call(n,"length")&&isFinite(n.length)};C.arrLike=C.arryLike=C.aryLike=C.arraylike=C.arrayLike;C.arguments=function(n){return ur.call(n)==="[object Arguments]"};C.args=C.arguments;C.boolean=function(n){return ur.call(n)==="[object Boolean]"};C.bool=C.boolean;C.buffer=function(n){return C.nodejs()&&Buffer&&Buffer.hasOwnProperty("isBuffer")&&Buffer.isBuffer(n)};C.buff=C.buf=C.buffer;C.date=function(n){return ur.call(n)==="[object Date]"};C.error=function(n){return ur.call(n)==="[object Error]"};C.err=C.error;C.false=function(n){return n===!1};C.function=function(n){return C.syncFunction(n)||C.asyncFunction(n)};C.fun=C.func=C.function;C.asyncFunction=function(n){return ur.call(n)==="[object AsyncFunction]"};C.asyncFun=C.asyncFunc=C.asyncFunction;C.syncFunction=function(n){return ur.call(n)==="[object Function]"};C.syncFun=C.syncFunc=C.syncFunction;C.null=function(n){return n===null};C.nullOrUndefined=function(n){return n===null||typeof n>"u"};C.nullOrUndef=C.nullOrUndefined;C.number=function(n){return ur.call(n)==="[object Number]"};C.num=C.number;C.object=function(n){return ur.call(n)==="[object Object]"};C.obj=C.object;C.regExp=function(n){return ur.call(n)==="[object RegExp]"};C.re=C.regexp=C.regExp;C.string=function(n){return ur.call(n)==="[object String]"};C.str=C.string;C.true=function(n){return n===!0};var Xue=new RegExp("[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}","i");C.uuid=function(n){return Xue.test(n)};C.equal=function(n,e){var t=ur.call(n);return typeof n!=typeof e||t!==ur.call(e)?!1:t==="[object Object]"||t==="[object Array]"?Que(n,e):t==="[object Function]"?n.prototype===e.prototype:t==="[object Date]"?n.getTime()===e.getTime():n===e};C.objEquals=C.eq=C.equal;var Zue={boolean:1,number:1,string:1,undefined:1};C.hosted=function(n,e){if(C.nullOrUndef(n))return!1;var t=typeof e[n];return t==="object"?!!e[n]:!Zue[t]};C.instanceOf=function(n,e){return C.nullOrUndef(n)||C.nullOrUndef(e)?!1:n instanceof e};C.instOf=C.instanceof=C.instanceOf;C.objectInstanceOf=function(n,e){try{return ur.call(n)==="[object Object]"&&n instanceof e}catch{return!1}};C.instOf=C.instanceOf=C.objInstOf=C.objectInstanceOf;C.type=function(n,e){return typeof n===e};C.a=C.type;C.empty=function(n){var e=ur.call(n);if(e==="[object Array]"||e==="[object Arguments]")return n.length===0;if(e==="[object Object]"){for(var t in n)if(X8.call(n,t))return!1;return!0}return e==="[object String]"?n==="":!1};C.emptyArguments=function(n){return ur.call(n)==="[object Arguments]"&&n.length===0};C.noArgs=C.emptyArgs=C.emptyArguments;C.emptyArray=function(n){return ur.call(n)==="[object Array]"&&n.length===0};C.emptyArry=C.emptyAry=C.emptyArray;C.emptyArrayLike=function(n){return n.length===0};C.emptyArrLike=C.emptyArrayLike;C.emptyString=function(n){return C.string(n)&&n.length===0};C.emptyStr=C.emptyString;C.nonEmptyArray=function(n){return ur.call(n)==="[object Array]"&&n.length>0};C.nonEmptyArr=C.nonEmptyArry=C.nonEmptyAry=C.nonEmptyArray;C.nonEmptyObject=function(n){return ur.call(n)==="[object Object]"&&Object.keys(n).length>0};C.nonEmptyObj=C.nonEmptyObject;C.emptyObject=function(n){return ur.call(n)==="[object Object]"&&Object.keys(n).length===0};C.emptyObj=C.emptyObject;C.nonEmptyString=function(n){return C.string(n)&&n.length>0};C.nonEmptyStr=C.nonEmptyString;C.even=function(n){return ur.call(n)==="[object Number]"&&n%2===0};C.decimal=function(n){return ur.call(n)==="[object Number]"&&n%1!==0};C.dec=C.decNum=C.decimal;C.integer=function(n){return ur.call(n)==="[object Number]"&&n%1===0};C.int=C.integer;C.notANumber=function(n){return!C.num(n)||n!==n};C.nan=C.notANum=C.notANumber;C.odd=function(n){return!C.decimal(n)&&ur.call(n)==="[object Number]"&&n%2!==0};C.oddNumber=C.oddNum=C.odd;C.positiveNumber=function(n){return ur.call(n)==="[object Number]"&&n>0};C.pos=C.positive=C.posNum=C.positiveNum=C.positiveNumber;C.negativeNumber=function(n){return ur.call(n)==="[object Number]"&&n<0};C.neg=C.negNum=C.negativeNum=C.negativeNumber;C.negativeInteger=function(n){return ur.call(n)==="[object Number]"&&n%1===0&&n<0};C.negativeInt=C.negInt=C.negativeInteger;C.positiveInteger=function(n){return ur.call(n)==="[object Number]"&&n%1===0&&n>0};C.posInt=C.positiveInt=C.positiveInteger;C.divisibleBy=function(n,e){return n===0?!1:ur.call(n)==="[object Number]"&&e!==0&&n%e===0};C.divBy=C.divisBy=C.divisibleBy;C.greaterOrEqualTo=function(n,e){return n>=e};C.greaterOrEqual=C.ge=C.greaterOrEqualTo;C.greaterThan=function(n,e){return n>e};C.gt=C.greaterThan;C.lessThanOrEqualTo=function(n,e){return n<=e};C.lessThanOrEq=C.lessThanOrEqual=C.le=C.lessThanOrEqualTo;C.lessThan=function(n,e){return n-1;)if(n-1;)if(n>e[t])return!1;return!0};C.min=C.minimum;C.within=function(n,e,t){return n>=e&&n<=t};C.withIn=C.within;C.prettyClose=function(n,e,t){return!C.number(n)||!C.number(e)||C.defined(t)&&!C.posInt(t)?!1:(C.undefined(t)&&(t=2),n.toFixed(t)===e.toFixed(t))};C.closish=C.near=C.prettyClose;C.dnsAddress=function(n){return!(!C.nonEmptyStr(n)||n.length>255||tde.test(n)||!ede.test(n))};C.dnsAddr=C.dns=C.dnsAddress;var ede=/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$/,tde=/^([0-9]|[0-9][0-9\-]{0,61}[0-9])(\.([0-9]|[0-9][0-9\-]{0,61}[0-9]))*$/;C.emailAddress=function(n){return C.nonEmptyStr(n)?rde.test(n):!1};C.email=C.emailAddr=C.emailAddress;var rde=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;C.ipv4Address=function(n){if(!C.nonEmptyStr(n)||n.length>15)return!1;var e=n.split(".");if(!C.array(e)||e.length!==4)return!1;for(var t=0;t255)return!1}return!0};C.ipv4=C.ipv4Addr=C.ipv4Address;C.ipv6Address=function(n){return C.nonEmptyStr(n)?Yue.v6({extract:!0}).test(n):!1};C.ipv6=C.ipv6Addr=C.ipv6Address;C.ipAddress=function(n){return C.nonEmptyStr(n)?C.ipv4Address(n)||C.ipv6Address(n):!1};C.ip=C.ipAddr=C.ipAddress;C.hostAddress=function(n){return C.nonEmptyStr(n)?C.dns(n)||C.ipv4(n)||C.ipv6(n):!1};C.host=C.hostIp=C.hostAddr=C.hostAddress;C.port=function(n){return!(!C.num(n)||C.negativeInt(n)||n>65535)};C.systemPort=function(n){return!!(C.port(n)&&n<1024)};C.sysPort=C.systemPort;C.userPort=function(n){return!!(C.port(n)&&n>1023)};C.creditCardNumber=function(n){if(!C.str(n))return!1;var e=n.split(""),t,r;for(t=e.length-1,r=1;t>-1;t--,r++)r%2===0&&(e[t]*=2);n=e.join("");var i=0;for(t=0;t19)return!1;var e=Math.floor(n.slice(0,2));return!(e!==62&&e!==88)};C.chinaUnion=C.chinaUnionPayCard=C.chinaUnionPayCardNumber;C.dinersClubCarteBlancheCardNumber=function(n){if(!C.str(n)||n.length!==14)return!1;var e=Math.floor(n.slice(0,3));return!(e<300||e>305||!C.creditCardNumber(n))};C.dinersClubCB=C.dinersClubCarteBlancheCard=C.dinersClubCarteBlancheCardNumber;C.dinersClubInternationalCardNumber=function(n){if(!C.str(n)||n.length!==14)return!1;var e=Math.floor(n.slice(0,3)),t=Math.floor(n.slice(0,2));return!((e<300||e>305)&&e!==309&&t!==36&&(t<38||t>39)||!C.creditCardNumber(n))};C.dinersClubInt=C.dinersClubInternationalCard=C.dinersClubInternationalCardNumber;C.dinersClubUSACanadaCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,2));return!(e!==54&&e!==55||!C.creditCardNumber(n))};C.dinersClub=C.dinersClubUSACanCard=C.dinersClubUSACanadaCardNumber;C.discoverCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,6)),t=Math.floor(n.slice(0,3));return!(n.slice(0,4)!=="6011"&&(e<622126||e>622925)&&(t<644||t>649)&&n.slice(0,2)!=="65"||!C.creditCardNumber(n))};C.discover=C.discoverCard=C.discoverCardNumber;C.instaPaymentCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,3));return!(e<637||e>639||!C.creditCardNumber(n))};C.instaPayment=C.instaPaymentCardNumber;C.jcbCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,4));return!(e<3528||e>3589||!C.creditCardNumber(n))};C.jcb=C.jcbCard=C.jcbCardNumber;C.laserCardNumber=function(n){if(!C.str(n)||n.length<16&&n.length>19)return!1;var e=Math.floor(n.slice(0,4)),t=[6304,6706,6771,6709];return!(t.indexOf(e)===-1||!C.creditCardNumber(n))};C.laser=C.laserCard=C.laserCardNumber;C.maestroCardNumber=function(n){if(!C.str(n)||n.length<12||n.length>19)return!1;var e=n.slice(0,4),t=["5018","5020","5038","5612","5893","6304","6759","6761","6762","6763","0604","6390"];return!(t.indexOf(e)===-1||!C.creditCardNumber(n))};C.maestro=C.maestroCard=C.maestroCardNumber;C.dankortCardNumber=function(n){return!(!C.str(n)||n.length!==16||n.slice(0,4)!=="5019"||!C.creditCardNumber(n))};C.dankort=C.dankortCard=C.dankortCardNumber;C.masterCardCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,2));return!(e<50||e>55||!C.creditCardNumber(n))};C.masterCard=C.masterCardCard=C.masterCardCardNumber;C.visaCardNumber=function(n){return!(!C.str(n)||n.length!==13&&n.length!==16||n.slice(0,1)!=="4"||!C.creditCardNumber(n))};C.visa=C.visaCard=C.visaCardNumber;C.visaElectronCardNumber=function(n){if(!C.str(n)||n.length!==16)return!1;var e=Math.floor(n.slice(0,4)),t=[4026,4405,4508,4844,4913,4917];return n.slice(0,6)!=="417500"&&t.indexOf(e)===-1||!C.creditCardNumber(n),!1};C.visaElectron=C.visaElectronCard=C.visaElectronCardNumber;var nde=/^[0-9a-fA-F]{24}$/;C.mongoId=C.objectId=C.objId=function(n){return!!n&&!Array.isArray(n)&&nde.test(String(n))};C.matching=C.match=C.inArgs=function(n){if(arguments.length<2)return!1;for(var e=!1,t=1;t{var Sy=1e3,Cy=Sy*60,wy=Cy*60,Ym=wy*24,ode=Ym*7,sde=Ym*365.25;t5.exports=function(n,e){e=e||{};var t=typeof n;if(t==="string"&&n.length>0)return ade(n);if(t==="number"&&isFinite(n))return e.long?cde(n):lde(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function ade(n){if(n=String(n),!(n.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(e){var t=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return t*sde;case"weeks":case"week":case"w":return t*ode;case"days":case"day":case"d":return t*Ym;case"hours":case"hour":case"hrs":case"hr":case"h":return t*wy;case"minutes":case"minute":case"mins":case"min":case"m":return t*Cy;case"seconds":case"second":case"secs":case"sec":case"s":return t*Sy;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function lde(n){var e=Math.abs(n);return e>=Ym?Math.round(n/Ym)+"d":e>=wy?Math.round(n/wy)+"h":e>=Cy?Math.round(n/Cy)+"m":e>=Sy?Math.round(n/Sy)+"s":n+"ms"}function cde(n){var e=Math.abs(n);return e>=Ym?u_(n,e,Ym,"day"):e>=wy?u_(n,e,wy,"hour"):e>=Cy?u_(n,e,Cy,"minute"):e>=Sy?u_(n,e,Sy,"second"):n+" ms"}function u_(n,e,t,r){var i=e>=t*1.5;return Math.round(n/t)+" "+r+(i?"s":"")}});var uO=O((Fze,r5)=>{function ude(n){t.debug=t,t.default=t,t.coerce=l,t.disable=o,t.enable=i,t.enabled=s,t.humanize=cO(),t.destroy=c,Object.keys(n).forEach(u=>{t[u]=n[u]}),t.names=[],t.skips=[],t.formatters={};function e(u){let d=0;for(let f=0;f{if(J==="%%")return"%";A++;let H=t.formatters[ne];if(typeof H=="function"){let oe=b[A];J=H.call(I,oe),b.splice(A,1),A--}return J}),t.formatArgs.call(I,b),(I.log||t.log).apply(I,b)}return g.namespace=u,g.useColors=t.useColors(),g.color=t.selectColor(u),g.extend=r,g.destroy=t.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f===null?t.enabled(u):f,set:b=>{f=b}}),typeof t.init=="function"&&t.init(g),g}function r(u,d){let f=t(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function i(u){t.save(u),t.names=[],t.skips=[];let d,f=(typeof u=="string"?u:"").split(/[\s,]+/),g=f.length;for(d=0;d"-"+d)].join(",");return t.enable(""),u}function s(u){if(u[u.length-1]==="*")return!0;let d,f;for(d=0,f=t.skips.length;d{Xo.formatArgs=pde;Xo.save=mde;Xo.load=fde;Xo.useColors=dde;Xo.storage=hde();Xo.destroy=(()=>{let n=!1;return()=>{n||(n=!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`."))}})();Xo.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"];function dde(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function pde(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+d_.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,r=0;n[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(t++,i==="%c"&&(r=t))}),n.splice(r,0,e)}Xo.log=console.debug||console.log||(()=>{});function mde(n){try{n?Xo.storage.setItem("debug",n):Xo.storage.removeItem("debug")}catch{}}function fde(){let n;try{n=Xo.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function hde(){try{return localStorage}catch{}}d_.exports=uO()(Xo);var{formatters:gde}=d_.exports;gde.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var o5=O((Lze,i5)=>{"use strict";i5.exports=(n,e)=>{e=e||process.argv;let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1?!0:r{"use strict";var vde=require("os"),ya=o5(),Ni=process.env,Ey;ya("no-color")||ya("no-colors")||ya("color=false")?Ey=!1:(ya("color")||ya("colors")||ya("color=true")||ya("color=always"))&&(Ey=!0);"FORCE_COLOR"in Ni&&(Ey=Ni.FORCE_COLOR.length===0||parseInt(Ni.FORCE_COLOR,10)!==0);function yde(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function bde(n){if(Ey===!1)return 0;if(ya("color=16m")||ya("color=full")||ya("color=truecolor"))return 3;if(ya("color=256"))return 2;if(n&&!n.isTTY&&Ey!==!0)return 0;let e=Ey?1:0;if(process.platform==="win32"){let t=vde.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Ni)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in Ni)||Ni.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ni)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ni.TEAMCITY_VERSION)?1:0;if(Ni.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ni){let t=parseInt((Ni.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ni.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ni.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ni.TERM)||"COLORTERM"in Ni?1:(Ni.TERM==="dumb",e)}function dO(n){let e=bde(n);return yde(e)}s5.exports={supportsColor:dO,stdout:dO(process.stdout),stderr:dO(process.stderr)}});var l5=O((li,m_)=>{var Ide=require("tty"),p_=require("util");li.init=xde;li.log=Ede;li.formatArgs=Cde;li.save=Pde;li.load=kde;li.useColors=Sde;li.destroy=p_.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");li.colors=[6,2,3,4,5,1];try{let n=pO();n&&(n.stderr||n).level>=2&&(li.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{}li.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),n[t]=r,n},{});function Sde(){return"colors"in li.inspectOpts?!!li.inspectOpts.colors:Ide.isatty(process.stderr.fd)}function Cde(n){let{namespace:e,useColors:t}=this;if(t){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${i};1m${e} \x1B[0m`;n[0]=o+n[0].split(` `).join(` `+o),n.push(i+"m+"+m_.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=wde()+e+" "+n[0]}function wde(){return li.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ede(...n){return process.stderr.write(p_.format(...n)+` `)}function Pde(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function kde(){return process.env.DEBUG}function xde(n){n.inspectOpts={};let e=Object.keys(li.inspectOpts);for(let t=0;te.trim()).join(" ")};a5.O=function(n){return this.inspectOpts.colors=this.useColors,p_.inspect(n,this.inspectOpts)}});var c5=O((Wze,mO)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mO.exports=n5():mO.exports=l5()});var g5=O(Xm=>{"use strict";Xm.check=f5;Xm.waitUntilFreeOnHost=_de;Xm.waitUntilFree=Tde;Xm.waitUntilUsedOnHost=h5;Xm.waitUntilUsed=Rde;Xm.waitForStatus=h_;var ba=e5(),Dde=require("net"),u5=require("util"),f_=c5()("tcp-port-used"),d5=2e3,p5=250;function m5(){var n,e,t=new Promise(function(r,i){n=r,e=i});return{resolve:n,reject:e,promise:t}}function Py(n,e,t,r,i){var o={};return o.port=n,o.host=e,o.inUse=t,o.retryTimeMs=r,o.timeOutMs=i,o}function f5(n,e){var t=m5(),r=!0,i,o;if(ba.obj(n)?o=n:o=Py(n,e),!ba.port(o.port))return f_("Error invalid port: "+u5.inspect(o.port)),t.reject(new Error("invalid port: "+u5.inspect(o.port))),t.promise;ba.nullOrUndefined(o.host)&&(f_("set host address to default 127.0.0.1"),o.host="127.0.0.1");function s(){i&&(i.removeAllListeners("connect"),i.removeAllListeners("error"),i.end(),i.destroy(),i.unref())}function a(){t.resolve(r),s()}function l(c){c.code!=="ECONNREFUSED"?t.reject(c):(r=!1,t.resolve(r)),s()}return i=new Dde.Socket,i.once("connect",a),i.once("error",l),i.connect({port:o.port,host:o.host},function(){}),t.promise}function h_(n,e,t,r,i){var o=m5(),s,a=!1,l,c;if(ba.obj(n)?c=n:c=Py(n,e,t,r,i),!ba.bool(c.inUse))return o.reject(new Error("inUse must be a boolean")),o.promise;ba.positiveInt(c.retryTimeMs)||(c.retryTimeMs=p5,f_("set retryTime to default "+p5+"ms")),ba.positiveInt(c.timeOutMs)||(c.timeOutMs=d5,f_("set timeOutMs to default "+d5+"ms"));function u(){s&&clearTimeout(s),l&&clearTimeout(l)}function d(){a=!0,u(),o.reject(new Error("timeout"))}s=setTimeout(d,c.timeOutMs);function f(){f5(c.port,c.host).then(function(g){if(!a)if(g===c.inUse){o.resolve(),u();return}else{l=setTimeout(function(){f()},c.retryTimeMs);return}},function(g){a||(o.reject(g),u())})}return f(),o.promise}function _de(n,e,t,r){var i;return ba.obj(n)?(i=n,i.inUse=!1):i=Py(n,e,!1,t,r),h_(i)}function Tde(n,e,t){var r;return ba.obj(n)?(r=n,r.host="127.0.0.1",r.inUse=!1):r=Py(n,"127.0.0.1",!1,e,t),h_(r)}function h5(n,e,t,r){var i;return ba.obj(n)?(i=n,i.inUse=!0):i=Py(n,e,!0,t,r),h_(i)}function Rde(n,e,t){var r;return ba.obj(n)?(r=n,r.host="127.0.0.1",r.inUse=!0):r=Py(n,"127.0.0.1",!0,e,t),h5(r)}});var w5=O((g_,$l)=>{(function(n,e){typeof g_=="object"&&typeof $l<"u"?e(g_):typeof define=="function"&&define.amd?define(["exports"],e):e(n.async=n.async||{})})(g_,function(n){"use strict";function e(S,P){P=P|0;for(var _=Math.max(S.length-P,0),K=Array(_),G=0;G<_;G++)K[G]=S[P+G];return K}var t=function(S){var P=e(arguments,1);return function(){var _=e(arguments);return S.apply(null,P.concat(_))}},r=function(S){return function(){var P=e(arguments),_=P.pop();S.call(this,P,_)}};function i(S){var P=typeof S;return S!=null&&(P=="object"||P=="function")}var o=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function a(S){setTimeout(S,0)}function l(S){return function(P){var _=e(arguments,1);S(function(){P.apply(null,_)})}}var c;o?c=setImmediate:s?c=process.nextTick:c=a;var u=l(c);function d(S){return r(function(P,_){var K;try{K=S.apply(this,P)}catch(G){return _(G)}i(K)&&typeof K.then=="function"?K.then(function(G){f(_,null,G)},function(G){f(_,G.message?G:new Error(G))}):_(null,K)})}function f(S,P,_){try{S(P,_)}catch(K){u(g,K)}}function g(S){throw S}var b=typeof Symbol=="function";function I(S){return b&&S[Symbol.toStringTag]==="AsyncFunction"}function E(S){return I(S)?d(S):S}function x(S){return function(P){var _=e(arguments,1),K=r(function(G,q){var te=this;return S(P,function(se,we){E(se).apply(te,G.concat(we))},q)});return _.length?K.apply(this,_):K}}var A=typeof global=="object"&&global&&global.Object===Object&&global,T=typeof self=="object"&&self&&self.Object===Object&&self,J=A||T||Function("return this")(),ne=J.Symbol,H=Object.prototype,oe=H.hasOwnProperty,ae=H.toString,Y=ne?ne.toStringTag:void 0;function Ie(S){var P=oe.call(S,Y),_=S[Y];try{S[Y]=void 0;var K=!0}catch{}var G=ae.call(S);return K&&(P?S[Y]=_:delete S[Y]),G}var Ke=Object.prototype,pt=Ke.toString;function mt(S){return pt.call(S)}var kt="[object Null]",ee="[object Undefined]",Ee=ne?ne.toStringTag:void 0;function Te(S){return S==null?S===void 0?ee:kt:Ee&&Ee in Object(S)?Ie(S):mt(S)}var he="[object AsyncFunction]",ht="[object Function]",Fi="[object GeneratorFunction]",nr="[object Proxy]";function pi(S){if(!i(S))return!1;var P=Te(S);return P==ht||P==Fi||P==he||P==nr}var Du=9007199254740991;function Fr(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=Du}function zs(S){return S!=null&&Fr(S.length)&&!pi(S)}var Ka={};function Nt(){}function Li(S){return function(){if(S!==null){var P=S;S=null,P.apply(this,arguments)}}}var zn=typeof Symbol=="function"&&Symbol.iterator,fc=function(S){return zn&&S[zn]&&S[zn]()};function F(S,P){for(var _=-1,K=Array(S);++_-1&&S%1==0&&S2&&(uR=e(arguments,1)),zf){var dR={};Vf(q,function(kG,xG){dR[xG]=kG}),dR[Jr]=uR,se=!0,we=Object.create(null),_(zf,dR)}else q[Jr]=uR,ls(Jr)});te++;var yc=E(en[en.length-1]);en.length>1?yc(q,Un):yc(Un)}}function EG(){for(var Jr,en=0;Pe.length;)Jr=Pe.pop(),en++,WI(PG(Jr),function(Un){--gt[Un]===0&&Pe.push(Un)});if(en!==G)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function PG(Jr){var en=[];return Vf(S,function(Un,yc){xt(Un)&&VI(Un,Jr,0)>=0&&en.push(yc)}),en}};function Fp(S,P){for(var _=-1,K=S==null?0:S.length,G=Array(K);++_G?0:G+P),_=_>G?G:_,_<0&&(_+=G),G=P>_?0:_-P>>>0,P>>>=0;for(var q=Array(G);++K=K?S:nL(S,P,_)}function oL(S,P){for(var _=S.length;_--&&VI(P,S[_],0)>-1;);return _}function sL(S,P){for(var _=-1,K=S.length;++_-1;);return _}function aL(S){return S.split("")}var lL="\\ud800-\\udfff",cL="\\u0300-\\u036f",uL="\\ufe20-\\ufe2f",dL="\\u20d0-\\u20ff",pL=cL+uL+dL,mL="\\ufe0e\\ufe0f",fL="\\u200d",hL=RegExp("["+fL+lL+pL+mL+"]");function gL(S){return hL.test(S)}var y1="\\ud800-\\udfff",vL="\\u0300-\\u036f",yL="\\ufe20-\\ufe2f",bL="\\u20d0-\\u20ff",IL=vL+yL+bL,SL="\\ufe0e\\ufe0f",CL="["+y1+"]",nE="["+IL+"]",iE="\\ud83c[\\udffb-\\udfff]",wL="(?:"+nE+"|"+iE+")",b1="[^"+y1+"]",I1="(?:\\ud83c[\\udde6-\\uddff]){2}",S1="[\\ud800-\\udbff][\\udc00-\\udfff]",EL="\\u200d",C1=wL+"?",w1="["+SL+"]?",PL="(?:"+EL+"(?:"+[b1,I1,S1].join("|")+")"+w1+C1+")*",kL=w1+C1+PL,xL="(?:"+[b1+nE+"?",nE,I1,S1,CL].join("|")+")",DL=RegExp(iE+"(?="+iE+")|"+xL+kL,"g");function _L(S){return S.match(DL)||[]}function E1(S){return gL(S)?_L(S):aL(S)}function TL(S){return S==null?"":rE(S)}var RL=/^\s+|\s+$/g;function AL(S,P,_){if(S=TL(S),S&&(_||P===void 0))return S.replace(RL,"");if(!S||!(P=rE(P)))return S;var K=E1(S),G=E1(P),q=sL(K,G),te=oL(K,G)+1;return iL(K,q,te).join("")}var NL=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ML=/,/,KL=/(=.+)?(\s*)$/,OL=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;function FL(S){return S=S.toString().replace(OL,""),S=S.match(NL)[2].replace(" ",""),S=S?S.split(ML):[],S=S.map(function(P){return AL(P.replace(KL,""))}),S}function P1(S,P){var _={};Vf(S,function(K,G){var q,te=I(K),se=!te&&K.length===1||te&&K.length===0;if(xt(K))q=K.slice(0,-1),K=K[K.length-1],_[G]=q.concat(q.length>0?we:K);else if(se)_[G]=K;else{if(q=FL(K),K.length===0&&!te&&q.length===0)throw new Error("autoInject task functions require explicit parameters.");te||q.pop(),_[G]=q.concat(we)}function we(Ge,Pe){var gt=Fp(q,function(Ur){return Ge[Ur]});gt.push(Pe),E(K).apply(null,gt)}}),tE(_,P)}function as(){this.head=this.tail=null,this.length=0}function k1(S,P){S.length=1,S.head=S.tail=P}as.prototype.removeLink=function(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S},as.prototype.empty=function(){for(;this.head;)this.shift();return this},as.prototype.insertAfter=function(S,P){P.prev=S,P.next=S.next,S.next?S.next.prev=P:this.tail=P,S.next=P,this.length+=1},as.prototype.insertBefore=function(S,P){P.prev=S.prev,P.next=S,S.prev?S.prev.next=P:this.head=P,S.prev=P,this.length+=1},as.prototype.unshift=function(S){this.head?this.insertBefore(this.head,S):k1(this,S)},as.prototype.push=function(S){this.tail?this.insertAfter(this.tail,S):k1(this,S)},as.prototype.shift=function(){return this.head&&this.removeLink(this.head)},as.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},as.prototype.toArray=function(){for(var S=Array(this.length),P=this.head,_=0;_0&&q.splice(Fa,1),ls.callback.apply(ls,arguments),Ur!=null&&Pe.error(Ur,ls.data)}G<=Pe.concurrency-Pe.buffer&&Pe.unsaturated(),Pe.idle()&&Pe.drain(),Pe.process()}}var Ge=!1,Pe={_tasks:new as,concurrency:P,payload:_,saturated:Nt,unsaturated:Nt,buffer:P/4,empty:Nt,drain:Nt,error:Nt,started:!1,paused:!1,push:function(gt,Ur){se(gt,!1,Ur)},kill:function(){Pe.drain=Nt,Pe._tasks.empty()},unshift:function(gt,Ur){se(gt,!0,Ur)},remove:function(gt){Pe._tasks.remove(gt)},process:function(){if(!Ge){for(Ge=!0;!Pe.paused&&G2&&(we=e(arguments,1)),K[q]=we,te(se)})},function(G){_(G,K)})}function Q1(S,P){cE(gc,S,P)}function Y1(S,P,_){cE(LI(P),S,_)}var uE=function(S,P){var _=E(S);return x1(function(K,G){_(K[0],G)},P,1)},X1=function(S,P){var _=uE(S,P);return _.push=function(K,G,q){if(q==null&&(q=Nt),typeof q!="function")throw new Error("task callback must be a function");if(_.started=!0,xt(K)||(K=[K]),K.length===0)return u(function(){_.drain()});G=G||0;for(var te=_._tasks.head;te&&G>=te.priority;)te=te.next;for(var se=0,we=K.length;sewe?1:0}}function lR(S,P,_){var K=E(S);return r(function(G,q){var te=!1,se;function we(){var Ge=S.name||"anonymous",Pe=new Error('Callback function "'+Ge+'" timed out.');Pe.code="ETIMEDOUT",_&&(Pe.info=_),te=!0,q(Pe)}G.push(function(){te||(q.apply(null,arguments),clearTimeout(se))}),se=setTimeout(we,P),K.apply(null,G)})}var VL=Math.ceil,jL=Math.max;function D(S,P,_,K){for(var G=-1,q=jL(VL((P-S)/(_||1)),0),te=Array(q);q--;)te[K?q:++G]=S,S+=_;return te}function L(S,P,_,K){var G=E(_);Op(D(0,S,1),P,G,K)}var $e=Ln(L,1/0),pE=Ln(L,1);function JL(S,P,_,K){arguments.length<=3&&(K=_,_=P,P=xt(S)?[]:{}),K=Li(K||Nt);var G=E(_);gc(S,function(q,te,se){G(P,q,te,se)},function(q){K(q,P)})}function BL(S,P){var _=null,K;P=P||Nt,$f(S,function(G,q){E(G)(function(te,se){arguments.length>2?K=e(arguments,1):K=se,_=te,q(!te)})},function(){P(_,K)})}function $L(S){return function(){return(S.unmemoized||S).apply(null,arguments)}}function cR(S,P,_){_=Qs(_||Nt);var K=E(P);if(!S())return _(null);var G=function(q){if(q)return _(q);if(S())return K(G);var te=e(arguments,1);_.apply(null,[null].concat(te))};K(G)}function qL(S,P,_){cR(function(){return!S.apply(this,arguments)},P,_)}var HL=function(S,P){if(P=Li(P||Nt),!xt(S))return P(new Error("First argument to waterfall must be an array of functions"));if(!S.length)return P();var _=0;function K(q){var te=E(S[_++]);q.push(Qs(G)),te.apply(null,q)}function G(q){if(q||_===S.length)return P.apply(null,arguments);K(e(arguments,1))}K([])},wG={apply:t,applyEach:f1,applyEachSeries:h1,asyncify:d,auto:tE,autoInject:P1,cargo:D1,compose:_1,concat:T1,concatLimit:jI,concatSeries:R1,constant:A1,detect:JI,detectLimit:Jf,detectSeries:BI,dir:K1,doDuring:O1,doUntil:F1,doWhilst:sE,during:L1,each:$I,eachLimit:Bf,eachOf:gc,eachOfLimit:_u,eachOfSeries:Lp,eachSeries:$f,ensureAsync:aE,every:HI,everyLimit:qf,everySeries:GI,filter:zI,filterLimit:Hf,filterSeries:QI,forever:V1,groupBy:j1,groupByLimit:YI,groupBySeries:J1,log:B1,map:UI,mapLimit:Op,mapSeries:eE,mapValues:$1,mapValuesLimit:XI,mapValuesSeries:q1,memoize:G1,nextTick:z1,parallel:Q1,parallelLimit:Y1,priorityQueue:X1,queue:uE,race:Z1,reduce:vc,reduceRight:eS,reflect:tS,reflectAll:eR,reject:rR,rejectLimit:dE,rejectSeries:nR,retry:rS,retryable:oR,seq:oE,series:sR,setImmediate:u,some:nS,someLimit:Gf,someSeries:iS,sortBy:aR,timeout:lR,times:$e,timesLimit:L,timesSeries:pE,transform:JL,tryEach:BL,unmemoize:$L,until:qL,waterfall:HL,whilst:cR,all:HI,allLimit:qf,allSeries:GI,any:nS,anyLimit:Gf,anySeries:iS,find:JI,findLimit:Jf,findSeries:BI,forEach:$I,forEachSeries:$f,forEachLimit:Bf,forEachOf:gc,forEachOfSeries:Lp,forEachOfLimit:_u,inject:vc,foldl:vc,foldr:eS,select:zI,selectLimit:Hf,selectSeries:QI,wrapSync:d};n.default=wG,n.apply=t,n.applyEach=f1,n.applyEachSeries=h1,n.asyncify=d,n.auto=tE,n.autoInject=P1,n.cargo=D1,n.compose=_1,n.concat=T1,n.concatLimit=jI,n.concatSeries=R1,n.constant=A1,n.detect=JI,n.detectLimit=Jf,n.detectSeries=BI,n.dir=K1,n.doDuring=O1,n.doUntil=F1,n.doWhilst=sE,n.during=L1,n.each=$I,n.eachLimit=Bf,n.eachOf=gc,n.eachOfLimit=_u,n.eachOfSeries=Lp,n.eachSeries=$f,n.ensureAsync=aE,n.every=HI,n.everyLimit=qf,n.everySeries=GI,n.filter=zI,n.filterLimit=Hf,n.filterSeries=QI,n.forever=V1,n.groupBy=j1,n.groupByLimit=YI,n.groupBySeries=J1,n.log=B1,n.map=UI,n.mapLimit=Op,n.mapSeries=eE,n.mapValues=$1,n.mapValuesLimit=XI,n.mapValuesSeries=q1,n.memoize=G1,n.nextTick=z1,n.parallel=Q1,n.parallelLimit=Y1,n.priorityQueue=X1,n.queue=uE,n.race=Z1,n.reduce=vc,n.reduceRight=eS,n.reflect=tS,n.reflectAll=eR,n.reject=rR,n.rejectLimit=dE,n.rejectSeries=nR,n.retry=rS,n.retryable=oR,n.seq=oE,n.series=sR,n.setImmediate=u,n.some=nS,n.someLimit=Gf,n.someSeries=iS,n.sortBy=aR,n.timeout=lR,n.times=$e,n.timesLimit=L,n.timesSeries=pE,n.transform=JL,n.tryEach=BL,n.unmemoize=$L,n.until=qL,n.waterfall=HL,n.whilst=cR,n.all=HI,n.allLimit=qf,n.allSeries=GI,n.any=nS,n.anyLimit=Gf,n.anySeries=iS,n.find=JI,n.findLimit=Jf,n.findSeries=BI,n.forEach=$I,n.forEachSeries=$f,n.forEachLimit=Bf,n.forEachOf=gc,n.forEachOfSeries=Lp,n.forEachOfLimit=_u,n.inject=vc,n.foldl=vc,n.foldr=eS,n.select=zI,n.selectLimit=Hf,n.selectSeries=QI,n.wrapSync=d,Object.defineProperty(n,"__esModule",{value:!0})})});var fO=O((gQe,E5)=>{"use strict";function Ade(n){t.debug=t,t.default=t,t.coerce=l,t.disable=s,t.enable=o,t.enabled=a,t.humanize=cO(),Object.keys(n).forEach(function(c){t[c]=n[c]}),t.instances=[],t.names=[],t.skips=[],t.formatters={};function e(c){for(var u=0,d=0;d"u"?":":u)+c)}function o(c){t.save(c),t.names=[],t.skips=[];var u,d=(typeof c=="string"?c:"").split(/[\s,]+/),f=d.length;for(u=0;u{"use strict";function v_(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v_=function(t){return typeof t}:v_=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v_(n)}Ws.log=Kde;Ws.formatArgs=Mde;Ws.save=Ode;Ws.load=Fde;Ws.useColors=Nde;Ws.storage=Lde();Ws.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"];function Nde(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Mde(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+y_.exports.humanize(this.diff),!!this.useColors){var e="color: "+this.color;n.splice(1,0,e,"color: inherit");var t=0,r=0;n[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(t++,i==="%c"&&(r=t))}),n.splice(r,0,e)}}function Kde(){var n;return(typeof console>"u"?"undefined":v_(console))==="object"&&console.log&&(n=console).log.apply(n,arguments)}function Ode(n){try{n?Ws.storage.setItem("debug",n):Ws.storage.removeItem("debug")}catch{}}function Fde(){var n;try{n=Ws.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function Lde(){try{return localStorage}catch{}}y_.exports=fO()(Ws);var Ude=y_.exports.formatters;Ude.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var x5=O((Mi,S_)=>{"use strict";var Wde=require("tty"),I_=require("util");Mi.init=Hde;Mi.log=Bde;Mi.formatArgs=jde;Mi.save=$de;Mi.load=qde;Mi.useColors=Vde;Mi.colors=[6,2,3,4,5,1];try{b_=pO(),b_&&(b_.stderr||b_).level>=2&&(Mi.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{}var b_;Mi.inspectOpts=Object.keys(process.env).filter(function(n){return/^debug_/i.test(n)}).reduce(function(n,e){var t=e.substring(6).toLowerCase().replace(/_([a-z])/g,function(i,o){return o.toUpperCase()}),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),n[t]=r,n},{});function Vde(){return"colors"in Mi.inspectOpts?!!Mi.inspectOpts.colors:Wde.isatty(process.stderr.fd)}function jde(n){var e=this.namespace,t=this.useColors;if(t){var r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),o=" ".concat(i,";1m").concat(e," \x1B[0m");n[0]=o+n[0].split(` `).join(` `+o),n.push(i+"m+"+S_.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=Jde()+e+" "+n[0]}function Jde(){return Mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Bde(){return process.stderr.write(I_.format.apply(I_,arguments)+` `)}function $de(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function qde(){return process.env.DEBUG}function Hde(n){n.inspectOpts={};for(var e=Object.keys(Mi.inspectOpts),t=0;t{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?hO.exports=P5():hO.exports=x5()});var A5=O((yQe,R5)=>{var lw=require("path"),_5=require("fs"),T5=parseInt("0777",8);R5.exports=_y.mkdirp=_y.mkdirP=_y;function _y(n,e,t,r){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var i=e.mode,o=e.fs||_5;i===void 0&&(i=T5),r||(r=null);var s=t||function(){};n=lw.resolve(n),o.mkdir(n,i,function(a){if(!a)return r=r||n,s(null,r);switch(a.code){case"ENOENT":if(lw.dirname(n)===n)return s(a);_y(lw.dirname(n),e,function(l,c){l?s(l,c):_y(n,e,s,c)});break;default:o.stat(n,function(l,c){l||!c.isDirectory()?s(a,r):s(null,r)});break}})}_y.sync=function n(e,t,r){(!t||typeof t!="object")&&(t={mode:t});var i=t.mode,o=t.fs||_5;i===void 0&&(i=T5),r||(r=null),e=lw.resolve(e);try{o.mkdirSync(e,i),r=r||e}catch(a){switch(a.code){case"ENOENT":r=n(lw.dirname(e),t,r),n(e,t,r);break;default:var s;try{s=o.statSync(e)}catch{throw a}if(!s.isDirectory())throw a;break}}return r}});var K5=O(vr=>{"use strict";var N5=require("fs"),Gde=require("os"),zde=require("net"),C_=require("path"),M5=w5(),yO=D5(),Qde=A5().mkdirp,gO=yO("portfinder:testPort"),cw=yO("portfinder:getPort"),Yde=yO("portfinder:defaultHosts"),vO={};vO.testPort=function(n,e){e||(e=n,n={}),n.server=n.server||zde.createServer(function(){}),gO("entered testPort(): trying",n.host,"port",n.port);function t(){gO("done w/ testPort(): OK",n.host,"port",n.port),n.server.removeListener("error",r),n.server.close(),e(null,n.port)}function r(i){if(gO("done w/ testPort(): failed",n.host,"w/ port",n.port,"with error",i.code),n.server.removeListener("listening",t),!(i.code=="EADDRINUSE"||i.code=="EACCES"))return e(i);var o=vr.nextPort(n.port);if(o>vr.highestPort)return e(new Error("No open ports available"));vO.testPort({port:o,host:n.host,server:n.server},e)}n.server.once("error",r),n.server.once("listening",t),n.host?n.server.listen(n.port,n.host):n.server.listen(n.port)};vr.basePort=8e3;vr.highestPort=65535;vr.basePath="/tmp/portfinder";vr.getPort=function(n,e){if(e||(e=n,n={}),n.port=Number(n.port)||Number(vr.basePort),n.host=n.host||null,n.stopPort=Number(n.stopPort)||Number(vr.highestPort),!n.startPort){if(n.startPort=Number(n.port),n.startPort<0)throw Error("Provided options.startPort("+n.startPort+") is less than 0, which are cannot be bound.");if(n.stopPort{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.encode=Ty.decode=void 0;var V5=require("crypto"),bO="",epe=5;function P_(n){return JSON.parse(n.toString())}function j5(n){return Object.assign({},{header:{},parent_header:{},metadata:{},content:{},idents:[],buffers:[]},n)}function J5(n){let e=n;switch(n){case"hmac-sha256":e="sha256";break}return e}function tpe(n,e,t="sha256"){var r=0;let i=[];for(r=0;r{"use strict";rq.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var _q=O((cst,Dq)=>{"use strict";var Spe=(n,e={})=>{let t=e.safe===!0||e.keepProtected===!0,r=!1,i=(o,s)=>{let a="",l,c;for(let u of o.nodes)switch(u.type){case"block":if(e.first&&r===!0){a+=i(u,o);break}if(e.preserveNewlines===!0){l=i(u,o),c=l.split(` `),a+=` `.repeat(c.length-1);break}if(t===!0&&u.protected===!0){a+=i(u,o);break}r=!0;break;case"line":if(e.first&&r===!0){a+=u.value;break}t===!0&&u.protected===!0&&(a+=u.value),r=!0;break;case"open":case"close":case"text":case"newline":default:{a+=u.value||"";break}}return a};return i(n)};Dq.exports=Spe});var Rq=O((ust,Tq)=>{"use strict";var nT=class{constructor(e){this.type=e.type,e.value&&(this.value=e.value),e.match&&(this.match=e.match),this.newline=e.newline||""}get protected(){return!!this.match&&this.match[1]==="!"}},DO=class extends nT{constructor(e){super(e),this.nodes=e.nodes||[]}push(e){this.nodes.push(e)}get protected(){return this.nodes.length>0&&this.nodes[0].protected===!0}};Tq.exports={Node:nT,Block:DO}});var Nq=O(Aq=>{"use strict";Aq.javascript={BLOCK_OPEN_REGEX:/^\/\*\*?(!?)/,BLOCK_CLOSE_REGEX:/^\*\/(\n?)/,LINE_REGEX:/^\/\/(!?).*/}});var Oq=O((pst,Kq)=>{"use strict";var{Node:ap,Block:Mq}=Rq(),Cpe=Nq(),_O={ESCAPED_CHAR_REGEX:/^\\./,QUOTED_STRING_REGEX:/^(['"`])((?:\\.|[^\1])+?)(\1)/,NEWLINE_REGEX:/^\r*\n/},wpe=(n,e={})=>{if(typeof n!="string")throw new TypeError("Expected input to be a string");let t=new Mq({type:"root",nodes:[]}),r=[t],i=(e.language||"javascript").toLowerCase(),o=Cpe[i];if(typeof o>"u")throw new Error(`Language "${i}" is not supported by strip-comments`);let{LINE_REGEX:s,BLOCK_OPEN_REGEX:a,BLOCK_CLOSE_REGEX:l}=o,c=t,u=n,d,f,g=[a,l].filter(Boolean),b=!1;g.every(T=>T.source==='^"""')&&(b=!0);let I=(T=u[0]||"")=>(u=u.slice(T.length),T),E=(T,J="text")=>{let ne=T.exec(u);if(ne)return I(ne[0]),{type:J,value:ne[0],match:ne}},x=T=>{if(f&&f.type==="text"&&T.type==="text"){f.value+=T.value;return}c.push(T),T.nodes&&(r.push(T),c=T),f=T},A=()=>{if(c.type==="root")throw new SyntaxError("Unclosed block comment");r.pop(),c=r[r.length-1]};for(;u!=="";){if(d=E(_O.ESCAPED_CHAR_REGEX,"text")){x(new ap(d));continue}if(c.type!=="block"&&(!f||!/\w$/.test(f.value))&&!(b&&u.startsWith('"""'))&&(d=E(_O.QUOTED_STRING_REGEX,"text"))){x(new ap(d));continue}if(d=E(_O.NEWLINE_REGEX,"newline")){x(new ap(d));continue}if(a&&e.block&&!(b&&c.type==="block")&&(d=E(a,"open"))){x(new Mq({type:"block"})),x(new ap(d));continue}if(l&&c.type==="block"&&e.block&&(d=E(l,"close"))){d.newline=d.match[1]||"",x(new ap(d)),A();continue}if(s&&c.type!=="block"&&e.line&&(d=E(s,"line"))){x(new ap(d));continue}if(d=E(/^[a-zABD-Z0-9\t ]+/,"text")){x(new ap(d));continue}x(new ap({type:"text",value:I(u[0])}))}return t};Kq.exports=wpe});var Lq=O((mst,Fq)=>{"use strict";var iT=_q(),fw=Oq(),oT=Fq.exports=(n,e)=>{let t={...e,block:!0,line:!0};return iT(fw(n,t),t)};oT.block=(n,e)=>{let t={...e,block:!0};return iT(fw(n,t),t)};oT.line=(n,e)=>{let t={...e,line:!0};return iT(fw(n,t),t)};oT.first=(n,e)=>{let t={...e,block:!0,line:!0,first:!0};return iT(fw(n,t),t)};oT.parse=fw});var PH=O((xwt,EH)=>{var Ype=typeof global=="object"&&global&&global.Object===Object&&global;EH.exports=Ype});var xH=O((Dwt,kH)=>{var Xpe=PH(),Zpe=typeof self=="object"&&self&&self.Object===Object&&self,eme=Xpe||Zpe||Function("return this")();kH.exports=eme});var e0=O((_wt,DH)=>{var tme=xH(),rme=tme.Symbol;DH.exports=rme});var TH=O((Twt,_H)=>{function nme(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t{var ime=Array.isArray;RH.exports=ime});var OH=O((Awt,KH)=>{var NH=e0(),MH=Object.prototype,ome=MH.hasOwnProperty,sme=MH.toString,Aw=NH?NH.toStringTag:void 0;function ame(n){var e=ome.call(n,Aw),t=n[Aw];try{n[Aw]=void 0;var r=!0}catch{}var i=sme.call(n);return r&&(e?n[Aw]=t:delete n[Aw]),i}KH.exports=ame});var LH=O((Nwt,FH)=>{var lme=Object.prototype,cme=lme.toString;function ume(n){return cme.call(n)}FH.exports=ume});var jH=O((Mwt,VH)=>{var UH=e0(),dme=OH(),pme=LH(),mme="[object Null]",fme="[object Undefined]",WH=UH?UH.toStringTag:void 0;function hme(n){return n==null?n===void 0?fme:mme:WH&&WH in Object(n)?dme(n):pme(n)}VH.exports=hme});var BH=O((Kwt,JH)=>{function gme(n){return n!=null&&typeof n=="object"}JH.exports=gme});var qH=O((Owt,$H)=>{var vme=jH(),yme=BH(),bme="[object Symbol]";function Ime(n){return typeof n=="symbol"||yme(n)&&vme(n)==bme}$H.exports=Ime});var XH=O((Fwt,YH)=>{var HH=e0(),Sme=TH(),Cme=AH(),wme=qH(),Eme=1/0,GH=HH?HH.prototype:void 0,zH=GH?GH.toString:void 0;function QH(n){if(typeof n=="string")return n;if(Cme(n))return Sme(n,QH)+"";if(wme(n))return zH?zH.call(n):"";var e=n+"";return e=="0"&&1/n==-Eme?"-0":e}YH.exports=QH});var e4=O((Lwt,ZH)=>{var Pme=XH();function kme(n){return n==null?"":Pme(n)}ZH.exports=kme});var n4=O((Uwt,r4)=>{var xme=e4(),t4=/[\\^$.*+?()[\]{}|]/g,Dme=RegExp(t4.source);function _me(n){return n=xme(n),n&&Dme.test(n)?n.replace(t4,"\\$&"):n}r4.exports=_me});var $fe={};zL($fe,{activate:()=>Ufe,deactivate:()=>Wfe});module.exports=YL($fe);Reflect.metadata===void 0&&ZL();var Yt=require("vscode");function Qf(){try{return(tU(),YL(eU)).isPreRelesVersionOfJupyterExtension===!0}catch{return!0}}var sS={isExiting:!1},mE="_builtin.JupyterServerSelectorForTesting",pR="_builtin.jupyterServerUrlProvider";var rU=!1;function nU(n){rU=n}function Wp(){return rU}var iU=!1;function oU(n){iU=n}function tn(){return iU}var ge="python",aS="markdown",bc="vscode-notebook-cell",MG={scheme:"untitled",language:ge},KG={scheme:"file",language:ge},fE={language:ge},OG={scheme:bc,language:ge},sU=[MG,KG,OG],hE="vscode-interactive-input",St="jupyter-notebook",ft="interactive";var La="GitHub.codespaces",Fe="ms-toolsai.jupyter",aU="ms-toolsai.vscode-jupyter-powertoys",Yf="ms-toolsai.jupyter-hub",lU="0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",Tu="STANDARD_OUTPUT_CHANNEL",lS;(t=>(t.PythonInteractiveHelpLink="https://aka.ms/pyaiinstall",t.JupyterDataRateHelpLink="https://aka.ms/AA5ggm0"))(lS||={});var Qn;(o=>(o.JupyterServerRemoteLaunchNameSeparator=` `,o.JupyterServerRemoteLaunchService=Fe,o.JupyterServerUriListMax=10,o.IntellisenseTimeout=2e3,o.IntellisenseResolveTimeout=5e3))(Qn||={});var hi=!1;var FG=!1;function Er(){return FG||cS()}var LG=!1;function cS(){return LG}var je;(I=>(I.GeneratedThemeName="ipython-theme",I.MatplotLibDefaultParams="_VSCode_defaultMatplotlib_Params",I.MatplotLibFigureFormats="_VSCode_matplotLib_FigureFormats",I.DefaultCodeCellMarker="# %%",I.DefaultCommTarget="jupyter.widget",I.ALL_VARIABLES="ALL_VARIABLES",I.KERNEL_VARIABLES="KERNEL_VARIABLES",I.DEBUGGER_VARIABLES="DEBUGGER_VARIABLES",I.PYTHON_VARIABLES_REQUESTER="PYTHON_VARIABLES_REQUESTER",I.MULTIPLEXING_DEBUGSERVICE="MULTIPLEXING_DEBUGSERVICE",I.RUN_BY_LINE_DEBUGSERVICE="RUN_BY_LINE_DEBUGSERVICE",I.REMOTE_URI="https://remote/",I.REMOTE_URI_ID_PARAM="id",I.REMOTE_URI_HANDLE_PARAM="uriHandle",I.REMOTE_URI_EXTENSION_ID_PARAM="extensionId"))(je||={});var Xf;(r=>(r.ImportIPython=`{0} from IPython import get_ipython {1}`,r.MatplotLibInit=`import matplotlib %matplotlib inline ${je.MatplotLibDefaultParams} = dict(matplotlib.rcParams) `,r.DisableJedi="%config Completer.use_jedi = False"))(Xf||={});var Zf="JUPYTER_OUTPUT_CHANNEL",mR="Default Light+",Yn="ms-python.python",eh="ms-toolsai.jupyter-renderers",Vp="ms-python.vscode-pylance",cU=["python","html","xml","javascript","markdown","latex","shellscript","bat","powershell","kusto","ruby","sql","perl","qsharp","raw"],uU=new Map([["bash","shellscript"],["c#","csharp"],["f#","fsharp"],["q#","qsharp"],["c++11","c++"],["c++12","c++"],["c++14","c++"]]),uS=["python","r","julia","c++","c#","f#","q#","powershell","java","scala","haskell","bash","cling","rust","sas","sos","ocaml"];var B;(ye=>(ye.RunAllCells="jupyter.runallcells",ye.RunAllCellsAbove="jupyter.runallcellsabove",ye.RunCellAndAllBelow="jupyter.runcellandallbelow",ye.RunAllCellsAbovePalette="jupyter.runallcellsabove.palette",ye.RunCellAndAllBelowPalette="jupyter.runcurrentcellandallbelow.palette",ye.RunToLine="jupyter.runtoline",ye.RunFromLine="jupyter.runfromline",ye.RunCell="jupyter.runcell",ye.RunCurrentCell="jupyter.runcurrentcell",ye.RunCurrentCellAdvance="jupyter.runcurrentcelladvance",ye.CreateNewInteractive="jupyter.createnewinteractive",ye.ImportNotebook="jupyter.importnotebook",ye.ImportNotebookFile="jupyter.importnotebookfile",ye.ExportFileAsNotebook="jupyter.exportfileasnotebook",ye.ExportFileAndOutputAsNotebook="jupyter.exportfileandoutputasnotebook",ye.InterruptKernel="jupyter.interruptkernel",ye.RestartKernel="jupyter.restartkernel",ye.RestartKernelAndRunAllCells="jupyter.restartkernelandrunallcells",ye.RestartKernelAndRunUpToSelectedCell="jupyter.restartkernelandrunuptoselectedcell",ye.NotebookEditorRemoveAllCells="jupyter.notebookeditor.removeallcells",ye.NotebookEditorRunAllCells="jupyter.notebookeditor.runallcells",ye.NotebookEditorRunSelectedCell="jupyter.notebookeditor.runselectedcell",ye.NotebookEditorAddCellBelow="jupyter.notebookeditor.addcellbelow",ye.ExpandAllCells="jupyter.expandallcells",ye.CollapseAllCells="jupyter.collapseallcells",ye.ExportOutputAsNotebook="jupyter.exportoutputasnotebook",ye.ExecSelectionInInteractiveWindow="jupyter.execSelectionInteractive",ye.RunFileInInteractiveWindows="jupyter.runFileInteractive",ye.DebugFileInInteractiveWindows="jupyter.debugFileInteractive",ye.AddCellBelow="jupyter.addcellbelow",ye.DebugCurrentCellPalette="jupyter.debugcurrentcell.palette",ye.DebugCell="jupyter.debugcell",ye.DebugStepOver="jupyter.debugstepover",ye.DebugContinue="jupyter.debugcontinue",ye.DebugStop="jupyter.debugstop",ye.RunCurrentCellAndAddBelow="jupyter.runcurrentcellandaddbelow",ye.InsertCellBelowPosition="jupyter.insertCellBelowPosition",ye.InsertCellBelow="jupyter.insertCellBelow",ye.InsertCellAbove="jupyter.insertCellAbove",ye.DeleteCells="jupyter.deleteCells",ye.SelectCell="jupyter.selectCell",ye.SelectCellContents="jupyter.selectCellContents",ye.ExtendSelectionByCellAbove="jupyter.extendSelectionByCellAbove",ye.ExtendSelectionByCellBelow="jupyter.extendSelectionByCellBelow",ye.MoveCellsUp="jupyter.moveCellsUp",ye.MoveCellsDown="jupyter.moveCellsDown",ye.ChangeCellToMarkdown="jupyter.changeCellToMarkdown",ye.ChangeCellToCode="jupyter.changeCellToCode",ye.GotoNextCellInFile="jupyter.gotoNextCellInFile",ye.GotoPrevCellInFile="jupyter.gotoPrevCellInFile",ye.ScrollToCell="jupyter.scrolltocell",ye.CreateNewNotebook="jupyter.createnewnotebook",ye.ViewJupyterOutput="jupyter.viewOutput",ye.ExportAsPythonScript="jupyter.exportAsPythonScript",ye.ExportToHTML="jupyter.exportToHTML",ye.ExportToPDF="jupyter.exportToPDF",ye.Export="jupyter.export",ye.NativeNotebookExport="jupyter.notebookeditor.export",ye.LatestExtension="jupyter.latestExtension",ye.EnableLoadingWidgetsFrom3rdPartySource="jupyter.enableLoadingWidgetScriptsFromThirdPartySource",ye.ShowDataViewer="jupyter.showDataViewer",ye.ShowJupyterDataViewer="jupyter.showJupyterDataViewer",ye.RefreshDataViewer="jupyter.refreshDataViewer",ye.ClearSavedJupyterUris="jupyter.clearSavedJupyterUris",ye.OpenVariableView="jupyter.openVariableView",ye.OpenOutlineView="jupyter.openOutlineView",ye.InteractiveClearAll="jupyter.interactive.clearAllCells",ye.InteractiveGoToCode="jupyter.interactive.goToCode",ye.InteractiveCopyCell="jupyter.interactive.copyCell",ye.InteractiveExportAsNotebook="jupyter.interactive.exportasnotebook",ye.InteractiveExportAs="jupyter.interactive.exportas",ye.RunByLine="jupyter.runByLine",ye.RunAndDebugCell="jupyter.runAndDebugCell",ye.RunByLineNext="jupyter.runByLineNext",ye.RunByLineStop="jupyter.runByLineStop",ye.ReplayPylanceLog="jupyter.replayPylanceLog",ye.ReplayPylanceLogStep="jupyter.replayPylanceLogStep",ye.InstallPythonExtensionViaKernelPicker="jupyter.installPythonExtensionViaKernelPicker",ye.InstallPythonViaKernelPicker="jupyter.installPythonViaKernelPicker",ye.ContinueEditSessionInCodespace="jupyter.continueEditSessionInCodespace"))(B||={});var Ru;(r=>(r.DefaultDesignLenses=[B.RunCurrentCell,B.RunAllCellsAbove,B.DebugCell],r.DefaultDebuggingLenses=[B.DebugContinue,B.DebugStop,B.DebugStepOver],r.DebuggerCommands=[B.DebugContinue,B.DebugStop,B.DebugStepOver]))(Ru||={});var mr;(ae=>(ae.HasCodeCells="jupyter.hascodecells",ae.IsInteractiveActive="jupyter.isinteractiveactive",ae.OwnsSelection="jupyter.ownsSelection",ae.HaveNativeCells="jupyter.havenativecells",ae.HaveNative="jupyter.havenative",ae.IsNativeActive="jupyter.isnativeactive",ae.IsInteractiveOrNativeActive="jupyter.isinteractiveornativeactive",ae.IsPythonOrNativeActive="jupyter.ispythonornativeactive",ae.IsPythonOrInteractiveActive="jupyter.ispythonorinteractiveeactive",ae.IsPythonOrInteractiveOrNativeActive="jupyter.ispythonorinteractiveornativeeactive",ae.CanRestartNotebookKernel="jupyter.notebookeditor.canrestartNotebookkernel",ae.CanInterruptNotebookKernel="jupyter.notebookeditor.canInterruptNotebookKernel",ae.CanRestartInteractiveWindowKernel="jupyter.interactive.canRestartNotebookKernel",ae.CanInterruptInteractiveWindowKernel="jupyter.interactive.canInterruptNotebookKernel",ae.RunByLineCells="jupyter.notebookeditor.runByLineCells",ae.RunByLineDocuments="jupyter.notebookeditor.runByLineDocuments",ae.DebugDocuments="jupyter.notebookeditor.debugDocuments",ae.IsPythonNotebook="jupyter.ispythonnotebook",ae.IsJupyterKernelSelected="jupyter.kernel.isjupyter",ae.IsDataViewerActive="jupyter.dataViewerActive",ae.HasNativeNotebookOrInteractiveWindowOpen="jupyter.hasNativeNotebookOrInteractiveWindowOpen",ae.ZmqAvailable="jupyter.zmqavailable",ae.ReplayLogLoaded="jupyter.replayLogLoaded",ae.KernelSource="jupyter.kernelSource"))(mr||={});var jp;(l=>(l.PythonCellMarker=/^(#\s*%%|#\s*\|#\s*In\[\d*?\]|#\s*In\[ \])/,l.PythonMarkdownCellMarker=/^(#\s*%%\s*\[markdown\]|#\s*\)/,l.UrlPatternRegEx="(?https?:\\/\\/)((\\(.+\\s+or\\s+(?.+)\\))|(?[^\\s]+))(?:.+)",l.HttpPattern=/https?:\/\//,l.ShapeSplitterRegEx=/.*,\s*(\d+).*/,l.SvgHeightRegex=/(\`${JSON.stringify(r)}`).join("-Arg-Separator-");return`KeyPrefix=${n}-Args=${t}`}var Jp=class{constructor(e,t=""){this.expiryDurationMs=e;this.cacheKey=t}get hasData(){let e=pS.get(this.cacheKey);return!!(e&&!e.expired)}get data(){return this.hasData?pS.get(this.cacheKey)?.data:void 0}set data(e){let t=new mS(this.expiryDurationMs,e);pS.set(this.cacheKey,t)}clear(){pS.delete(this.cacheKey)}};var fU=Symbol("MicrotaskDelay");async function gi(n){return new Promise(e=>{setTimeout(()=>e(n),n)})}async function vE(n,e,t){return new Promise(r=>{let i,o=setTimeout(()=>i(!1),e),s=setInterval(()=>{n().then(a=>{a&&i(!0)}).catch(a=>i(!1))},t);i=a=>{clearTimeout(o),clearInterval(s),r(a)}})}function fr(n,e,...t){let r=gE(e)?void 0:e;gE(e)&&t.push(e);let i,o=setTimeout(()=>i?.(r),n);return Promise.race([Promise.race(t).finally(()=>clearTimeout(o)),new Promise(s=>i=s)])}function nh(n,e,...t){let r,i=setTimeout(()=>r?.(e),n);return Promise.race([Promise.race(t).finally(()=>clearTimeout(i)),new Promise((o,s)=>r=s)])}function Au(n){return typeof n?.then=="function"&&typeof n?.catch=="function"}function gE(n){return typeof n?.then=="function"}var hR=class{constructor(e=null){this.scope=e;this._resolved=!1;this._rejected=!1;this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get value(){return this._value}resolve(e){this._value=e,this._resolve.apply(this.scope?this.scope:this,arguments),this._resolved=!0}reject(e){this._reject.apply(this.scope?this.scope:this,arguments),this._rejected=!0}get promise(){return this._promise}get resolved(){return this._resolved}get rejected(){return this._rejected}get completed(){return this._rejected||this._resolved}};function re(n=null){return new hR(n)}function us(n){let e=re();return n.then(e.resolve.bind(e)).catch(e.reject.bind(e)),e}var rh=class{constructor(){this.currentPromise=Promise.resolve(void 0)}async chain(e){let t=re(),r=this.currentPromise;return this.currentPromise=this.currentPromise.then(async()=>{try{let i=await e();t.resolve(i)}catch(i){throw t.reject(i),i}}),await r,t.promise}chainFinally(e){let t=re();return this.currentPromise=this.currentPromise.finally(()=>e().then(r=>t.resolve(r)).catch(r=>t.reject(r))),t.promise}};var UG=(n,e)=>{let t=!0,r=setTimeout(()=>{t=!1,e()},n);return{isTriggered:()=>t,dispose:()=>{clearTimeout(r),t=!1}}},WG=n=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,n())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},cs=class{constructor(e){this.defaultDelay=e;this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((i,o)=>{this.doResolve=i,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let i=this.task;return this.task=null,i()}}),this.completionPromise.catch(h));let r=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===fU?WG(r):UG(t,r),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new Error("Canceled")),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}};function h(){}function Xn(n){try{let e=n();Au(e)&&e.catch(h)}catch{}}function Nu(n){if(!n)return!0;let e=n;return typeof e.path=="string"&&typeof e.scheme=="string"}function fn(n){if(!n)return!1;let e=n;return typeof e.path=="string"&&typeof e.scheme=="string"}function gU(n){let e=fn(n)?n:n.uri;return e.scheme.includes(bc)||e.path.endsWith(".interactive")}function Mu(){return process.platform.toString()==="web"}function hU(n,e){return fn(e)?e.toString():e}function Ys(n,e){return n===e?!0:n&&!e||!n&&e?!1:JSON.stringify(n,hU)===JSON.stringify(e,hU)}var Ue=class{constructor(){this.started=Date.now()}get elapsedTime(){return Date.now()-this.started}reset(){this.started=Date.now()}};var vU=pU();function gR(n){return function(e,t,r){let i=r.value,s=`Cache_Method_Output_${"constructor"in e&&e.constructor.name?e.constructor.name:""}.${t}`;r.value=async function(...a){if(Er())return i.apply(this,a);let l=mU(s,a),c=vU.get(l);if(c&&!c.expired)return p.debug(`Cached data exists ${l}`),Promise.resolve(c.data);let u=i.apply(this,a);return u.then(d=>vU.set(l,new mS(n,d))).catch(h),u}}}function Br(n){return function(e,t,r){let i=r.value,o=`Jupyter Extension (Error in ${n||t}, method:${t}):`;r.value=function(...s){try{let a=i.apply(this,s);if(a&&typeof a.then=="function"&&typeof a.catch=="function")return a.catch(l=>{Er()||p.error(o,l)})}catch(a){if(Er())return;p.error(o,a)}}}}function VG(n,e,t){let r=new Ue;try{t&&n(void 0);let i=e();return Au(i)?i.then(o=>(n({elapsed:r.elapsedTime,returnValue:o}),o)).catch(o=>{n({elapsed:r.elapsedTime,err:o})}):n({elapsed:r.elapsedTime,returnValue:i}),i}catch(i){throw n({elapsed:r.elapsedTime,err:i}),i}}function yU(n,e){return function(t,r,i){let o=i.value;return i.value=function(...s){let a={kind:"Class",name:t&&t.constructor?t.constructor.name:"",args:s,methodName:r,target:t},l=this;return VG(c=>n(a,c),()=>o.apply(l,s),e)},i}}function ih(){return function(n,e,t){let r=t.value;return t.value=function(...i){if(!Er())throw new Error(`Function: ${e} can only be called from test code`);return r.apply(this,i)},t}}function vR(){return function(n,e,t){let r=t.value,i=`chainedPromiseFor_${e}`;return t.value=async function(...o){let s=this[i];s?s=s.then(()=>r.apply(this,o)):s=r.apply(this,o),this[i]=s;let a=s.then(l=>l).catch(l=>{throw this[i]=void 0,l});return a.catch(h),a},t}}function yR(n,e){if(Array.isArray(n))return n.map(t=>yR(t,e)).join(", ");if(n===void 0)return"undefined";if(n===null)return"null";try{return n&&n.path?``:JSON.stringify(n)}catch{return`<${e} cannot be serialized for logging>`}}function bR(n){if(!n)return"";try{return n.map((t,r)=>{let i=yR(t,"argument");return`Arg ${r+1}: ${i}`}).join(", ")}catch{return""}}function bU(n){return`Return Value: ${yR(n,"Return value")}`}function yE(){let n=new Date,e=String(n.getHours()).padStart(2,"0"),t=String(n.getMinutes()).padStart(2,"0"),r=String(n.getSeconds()).padStart(2,"0"),i=String(n.getMilliseconds()).padStart(3,"0");return`${e}:${t}:${r}.${i}`}function Oe(n,e={removeEmptyEntries:!0,trim:!0}){n=n||"";let t=n.split(/\r?\n/g);return e&&e.trim&&(t=t.map(r=>r.trim())),e&&e.removeEmptyEntries&&(t=t.filter(r=>r.length>0)),t}function fS(n){return n&&(n.indexOf(" ")>=0&&!n.startsWith('"')&&!n.endsWith('"')?`"${n}"`:n.toString())}function hS(n){return n&&fS(n).replace(/\\/g,"/")}function Bp(n){return n&&n.replace(/(^['"])|(['"]$)/g,"")}function gS(n,...e){return n.replace(/{(\d+)}/g,(t,r)=>e[r]===void 0?t:e[r])}function oh(n){return n?n.replace(/\$\([a-z0-9\-]+?\)/gi,"").trim():n||""}function sh(n){let e=n.split(` `),t=e.find(r=>r.trim().length>0&&!r.trim().startsWith("#"));if(t){let r=t.match(/^\s*/)[0];return e.map(i=>i.startsWith(r)?i.replace(r,""):i).join(` `)}return n}var DR=require("vscode");var IE="en",CE=!1,wE=!1,vS=!1,jG=!1,JG=!1,SR=!1,BG=!1,$G=!1,qG=!1,bE,SE=IE,HG,Ou,ds=typeof self=="object"?self:typeof global=="object"?global:{},Zi;typeof ds.vscode<"u"&&typeof ds.vscode.process<"u"?Zi=ds.vscode.process:typeof process<"u"&&(Zi=process);var IU=typeof Zi?.versions?.electron=="string",SU=IU&&Zi?.type==="renderer",vhe=SU&&Zi?.sandboxed;if(typeof navigator=="object"&&!SU)Ou=navigator.userAgent,CE=Ou.indexOf("Windows")>=0,wE=Ou.indexOf("Macintosh")>=0,$G=(Ou.indexOf("Macintosh")>=0||Ou.indexOf("iPad")>=0||Ou.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,vS=Ou.indexOf("Linux")>=0,SR=!0,bE=navigator.language,SE=bE;else if(typeof Zi=="object"){CE=Zi.platform==="win32",wE=Zi.platform==="darwin",vS=Zi.platform==="linux",jG=vS&&!!Zi.env.SNAP&&!!Zi.env.SNAP_REVISION,BG=IU,qG=!!Zi.env.CI||!!Zi.env.BUILD_ARTIFACTSTAGINGDIRECTORY,bE=IE,SE=IE;let n=Zi.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n),t=e.availableLanguages["*"];bE=e.locale,SE=t||IE,HG=e._translationsConfigFile}catch{}JG=!0}else console.error("Unable to resolve platform.");var IR=0;wE?IR=1:CE?IR=3:vS&&(IR=2);var yS=CE,CU=wE,wU=vS;var EE=SR,yhe=SR&&typeof ds.importScripts=="function";var Ua=Ou,Ku=SE,GG;(r=>{function n(){return Ku}r.value=n;function e(){return Ku.length===2?Ku==="en":Ku.length>=3?Ku[0]==="e"&&Ku[1]==="n"&&Ku[2]==="-":!1}r.isDefaultVariant=e;function t(){return Ku==="en"}r.isDefault=t})(GG||={});var bhe=(()=>{if(typeof ds.postMessage=="function"&&!ds.importScripts){let n=[];ds.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let r=0,i=n.length;r{let r=++e;n.push({id:r,callback:t}),ds.postMessage({vscodeScheduleAsyncWork:r},"*")}}return n=>setTimeout(n)})();var zG=!!(Ua&&Ua.indexOf("Chrome")>=0),Ihe=!!(Ua&&Ua.indexOf("Firefox")>=0),She=!!(!zG&&Ua&&Ua.indexOf("Safari")>=0),Che=!!(Ua&&Ua.indexOf("Edg/")>=0),whe=!!(Ua&&Ua.indexOf("Android")>=0);var $p;if(typeof ds.vscode<"u"&&typeof ds.vscode.process<"u"){let n=ds.vscode.process;$p={get platform(){return n.platform},get arch(){return n.arch},get env(){return n.env},cwd(){return n.cwd()}}}else typeof process<"u"?$p={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:$p={get platform(){return yS?"win32":CU?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var PE=$p.cwd,EU=$p.env,eo=$p.platform,xhe=$p.arch;var YG=65,XG=97,ZG=90,ez=122,Uu=46,Wn=47,to=92,Fu=58,tz=63,kE=class extends Error{constructor(t,r,i){let o;typeof r=="string"&&r.indexOf("not ")===0?(o="must not be",r=r.replace(/^not /,"")):o="must be";let s=t.indexOf(".")!==-1?"property":"argument",a=`The "${t}" ${s} ${o} of type ${r}`;a+=`. Received type ${typeof i}`;super(a);this.code="ERR_INVALID_ARG_TYPE"}};function ln(n,e){if(typeof n!="string")throw new kE(e,"string",n)}function Dt(n){return n===Wn||n===to}function CR(n){return n===Wn}function Lu(n){return n>=YG&&n<=ZG||n>=XG&&n<=ez}function xE(n,e,t,r){let i="",o=0,s=-1,a=0,l=0;for(let c=0;c<=n.length;++c){if(c2){let u=i.lastIndexOf(t);u===-1?(i="",o=0):(i=i.slice(0,u),o=i.length-1-i.lastIndexOf(t)),s=c,a=0;continue}else if(i.length!==0){i="",o=0,s=c,a=0;continue}}e&&(i+=i.length>0?`${t}..`:"..",o=2)}else i.length>0?i+=`${t}${n.slice(s+1,c)}`:i=n.slice(s+1,c),o=c-s-1;s=c,a=0}else l===Uu&&a!==-1?++a:a=-1}return i}function PU(n,e){if(e===null||typeof e!="object")throw new kE("pathObject","Object",e);let t=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${r}`:`${t}${n}${r}`:r}var In={resolve(...n){let e="",t="",r=!1;for(let i=n.length-1;i>=-1;i--){let o;if(i>=0){if(o=n[i],ln(o,"path"),o.length===0)continue}else e.length===0?o=PE():(o=EU[`=${e}`]||PE(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===to)&&(o=`${e}\\`));let s=o.length,a=0,l="",c=!1,u=o.charCodeAt(0);if(s===1)Dt(u)&&(a=1,c=!0);else if(Dt(u))if(c=!0,Dt(o.charCodeAt(1))){let d=2,f=d;for(;d2&&Dt(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,r=c,c&&e.length>0)break}return t=xE(t,!r,"\\",Dt),r?`${e}\\${t}`:`${e}${t}`||"."},normalize(n){ln(n,"path");let e=n.length;if(e===0)return".";let t=0,r,i=!1,o=n.charCodeAt(0);if(e===1)return CR(o)?"\\":n;if(Dt(o))if(i=!0,Dt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&Dt(n.charCodeAt(2))&&(i=!0,t=3));let s=t0&&Dt(n.charCodeAt(e-1))&&(s+="\\"),r===void 0?i?`\\${s}`:s:i?`${r}\\${s}`:`${r}${s}`},isAbsolute(n){ln(n,"path");let e=n.length;if(e===0)return!1;let t=n.charCodeAt(0);return Dt(t)||e>2&&Lu(t)&&n.charCodeAt(1)===Fu&&Dt(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=s:e+=`\\${s}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof t=="string"&&Dt(t.charCodeAt(0))){++i;let o=t.length;o>1&&Dt(t.charCodeAt(1))&&(++i,o>2&&(Dt(t.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return In.normalize(e)},relative(n,e){if(ln(n,"from"),ln(e,"to"),n===e)return"";let t=In.resolve(n),r=In.resolve(e);if(t===r||(n=t.toLowerCase(),e=r.toLowerCase(),n===e))return"";let i=0;for(;ii&&n.charCodeAt(o-1)===to;)o--;let s=o-i,a=0;for(;aa&&e.charCodeAt(l-1)===to;)l--;let c=l-a,u=su){if(e.charCodeAt(a+f)===to)return r.slice(a+f+1);if(f===2)return r.slice(a+f)}s>u&&(n.charCodeAt(i+f)===to?d=f:f===2&&(d=3)),d===-1&&(d=0)}let g="";for(f=i+d+1;f<=o;++f)(f===o||n.charCodeAt(f)===to)&&(g+=g.length===0?"..":"\\..");return a+=d,g.length>0?`${g}${r.slice(a,l)}`:(r.charCodeAt(a)===to&&++a,r.slice(a,l))},toNamespacedPath(n){if(typeof n!="string")return n;if(n.length===0)return"";let e=In.resolve(n);if(e.length<=2)return n;if(e.charCodeAt(0)===to){if(e.charCodeAt(1)===to){let t=e.charCodeAt(2);if(t!==tz&&t!==Uu)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Lu(e.charCodeAt(0))&&e.charCodeAt(1)===Fu&&e.charCodeAt(2)===to)return`\\\\?\\${e}`;return n},dirname(n){ln(n,"path");let e=n.length;if(e===0)return".";let t=-1,r=0,i=n.charCodeAt(0);if(e===1)return Dt(i)?n:".";if(Dt(i)){if(t=r=1,Dt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&Dt(n.charCodeAt(2))?3:2,r=t);let o=-1,s=!0;for(let a=e-1;a>=r;--a)if(Dt(n.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(t===-1)return".";o=t}return n.slice(0,o)},basename(n,e){e!==void 0&&ln(e,"ext"),ln(n,"path");let t=0,r=-1,i=!0,o;if(n.length>=2&&Lu(n.charCodeAt(0))&&n.charCodeAt(1)===Fu&&(t=2),e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let s=e.length-1,a=-1;for(o=n.length-1;o>=t;--o){let l=n.charCodeAt(o);if(Dt(l)){if(!i){t=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(l===e.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return t===r?r=a:r===-1&&(r=n.length),n.slice(t,r)}for(o=n.length-1;o>=t;--o)if(Dt(n.charCodeAt(o))){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)},extname(n){ln(n,"path");let e=0,t=-1,r=0,i=-1,o=!0,s=0;n.length>=2&&n.charCodeAt(1)===Fu&&Lu(n.charCodeAt(0))&&(e=r=2);for(let a=n.length-1;a>=e;--a){let l=n.charCodeAt(a);if(Dt(l)){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===Uu?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||i===-1||s===0||s===1&&t===i-1&&t===r+1?"":n.slice(t,i)},format:PU.bind(null,"\\"),parse(n){ln(n,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;let t=n.length,r=0,i=n.charCodeAt(0);if(t===1)return Dt(i)?(e.root=e.dir=n,e):(e.base=e.name=n,e);if(Dt(i)){if(r=1,Dt(n.charCodeAt(1))){let d=2,f=d;for(;d0&&(e.root=n.slice(0,r));let o=-1,s=r,a=-1,l=!0,c=n.length-1,u=0;for(;c>=r;--c){if(i=n.charCodeAt(c),Dt(i)){if(!l){s=c+1;break}continue}a===-1&&(l=!1,a=c+1),i===Uu?o===-1?o=c:u!==1&&(u=1):o!==-1&&(u=-1)}return a!==-1&&(o===-1||u===0||u===1&&o===a-1&&o===s+1?e.base=e.name=n.slice(s,a):(e.name=n.slice(s,o),e.base=n.slice(s,a),e.ext=n.slice(o,a))),s>0&&s!==r?e.dir=n.slice(0,s-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},hr={resolve(...n){let e="",t=!1;for(let r=n.length-1;r>=-1&&!t;r--){let i=r>=0?n[r]:PE();ln(i,"path"),i.length!==0&&(e=`${i}/${e}`,t=i.charCodeAt(0)===Wn)}return e=xE(e,!t,"/",CR),t?`/${e}`:e.length>0?e:"."},normalize(n){if(ln(n,"path"),n.length===0)return".";let e=n.charCodeAt(0)===Wn,t=n.charCodeAt(n.length-1)===Wn;return n=xE(n,!e,"/",CR),n.length===0?e?"/":t?"./":".":(t&&(n+="/"),e?`/${n}`:n)},isAbsolute(n){return ln(n,"path"),n.length>0&&n.charCodeAt(0)===Wn},join(...n){if(n.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":hr.normalize(e)},relative(n,e){if(ln(n,"from"),ln(e,"to"),n===e||(n=hr.resolve(n),e=hr.resolve(e),n===e))return"";let t=1,r=n.length,i=r-t,o=1,s=e.length-o,a=ia){if(e.charCodeAt(o+c)===Wn)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else i>a&&(n.charCodeAt(t+c)===Wn?l=c:c===0&&(l=0));let u="";for(c=t+l+1;c<=r;++c)(c===r||n.charCodeAt(c)===Wn)&&(u+=u.length===0?"..":"/..");return`${u}${e.slice(o+l)}`},toNamespacedPath(n){return n},dirname(n){if(ln(n,"path"),n.length===0)return".";let e=n.charCodeAt(0)===Wn,t=-1,r=!0;for(let i=n.length-1;i>=1;--i)if(n.charCodeAt(i)===Wn){if(!r){t=i;break}}else r=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename(n,e){e!==void 0&&ln(e,"ext"),ln(n,"path");let t=0,r=-1,i=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let s=e.length-1,a=-1;for(o=n.length-1;o>=0;--o){let l=n.charCodeAt(o);if(l===Wn){if(!i){t=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(l===e.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return t===r?r=a:r===-1&&(r=n.length),n.slice(t,r)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===Wn){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)},extname(n){ln(n,"path");let e=-1,t=0,r=-1,i=!0,o=0;for(let s=n.length-1;s>=0;--s){let a=n.charCodeAt(s);if(a===Wn){if(!i){t=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===Uu?e===-1?e=s:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||r===-1||o===0||o===1&&e===r-1&&e===t+1?"":n.slice(e,r)},format:PU.bind(null,"/"),parse(n){ln(n,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;let t=n.charCodeAt(0)===Wn,r;t?(e.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,l=n.length-1,c=0;for(;l>=r;--l){let u=n.charCodeAt(l);if(u===Wn){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),u===Uu?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(s!==-1){let u=o===0&&t?1:o;i===-1||c===0||c===1&&i===s-1&&i===o+1?e.base=e.name=n.slice(u,s):(e.name=n.slice(u,i),e.base=n.slice(u,s),e.ext=n.slice(i,s))}return o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};hr.win32=In.win32=In;hr.posix=In.posix=hr;var hn=eo==="win32"?In.normalize:hr.normalize,DE=eo==="win32"?In.isAbsolute:hr.isAbsolute,Le=eo==="win32"?In.join:hr.join,kU=eo==="win32"?In.resolve:hr.resolve,_E=eo==="win32"?In.relative:hr.relative,nt=eo==="win32"?In.dirname:hr.dirname,Ce=eo==="win32"?In.basename:hr.basename,Wi=eo==="win32"?In.extname:hr.extname,Dhe=eo==="win32"?In.format:hr.format,xU=eo==="win32"?In.parse:hr.parse,_he=eo==="win32"?In.toNamespacedPath:hr.toNamespacedPath,Tn=eo==="win32"?In.sep:hr.sep,Vn=eo==="win32"?In.delimiter:hr.delimiter;var IS=require("vscode");var rz=require("vscode");var TE=class{constructor(e){this.computeFn=e;this.lastCache=void 0;this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}};var bS=class n{constructor(e){this.executor=e;this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(e){return new n(()=>e(this.getValue()))}};function AU(n,e){return ne?1:0}function nz(n,e,t=0,r=n.length,i=0,o=e.length){for(;tc)return 1}let s=r-t,a=o-i;return sa?1:0}function NU(n,e,t=0,r=n.length,i=0,o=e.length){for(;t=128||c>=128)return nz(n.toLowerCase(),e.toLowerCase(),t,r,i,o);DU(l)&&(l-=32),DU(c)&&(c-=32);let u=l-c;if(u!==0)return u}let s=r-t,a=o-i;return sa?1:0}function DU(n){return n>=97&&n<=122}function MU(n,e){return n.length===e.length&&NU(n,e)===0}function KU(n,e){let t=e.length;return e.length>n.length?!1:NU(n,e,0,t)===0}var _U=class n{constructor(e){this.confusableDictionary=e}static{this.ambiguousCharacterData=new bS(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new TE(e=>{function t(u){let d=new Map;for(let f=0;f!u.startsWith("_")&&u in o);s.length===0&&(s=["_default"]);let a;for(let u of s){let d=t(o[u]);a=i(a,d)}let l=t(o._common),c=r(l,a);return new n(c)})}static getInstance(e){return n.cache.get(Array.from(e))}static{this._locales=new bS(()=>Object.keys(n.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")))}static getLocales(){return n._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},TU=class n{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(n.getRawData())),this._data}static isInvisibleCharacter(e){return n.getData().has(e)}static get codePoints(){return n.getData()}};function Wu(n){return n===47||n===92}function wR(n){return n.replace(/[\\/]/g,hr.sep)}function OU(n){return n.indexOf("/")===-1&&(n=wR(n)),/^[a-zA-Z]:(\/|$)/.test(n)&&(n="/"+n),n}function ER(n,e=hr.sep){if(!n)return"";let t=n.length,r=n.charCodeAt(0);if(Wu(r)){if(Wu(n.charCodeAt(1))&&!Wu(n.charCodeAt(2))){let o=3,s=o;for(;on.length)return!1;if(t){if(!KU(n,e))return!1;if(e.length===n.length)return!0;let o=e.length;return e.charAt(e.length-1)===r&&o--,n.charAt(o)===r}return e.charAt(e.length-1)!==r&&(e+=r),n.indexOf(e)===0}function iz(n){return n>=65&&n<=90||n>=97&&n<=122}var Wa;(ee=>(ee.inMemory="inmemory",ee.vscode="vscode",ee.internal="private",ee.walkThrough="walkThrough",ee.walkThroughSnippet="walkThroughSnippet",ee.http="http",ee.https="https",ee.file="file",ee.mailto="mailto",ee.untitled="untitled",ee.data="data",ee.command="command",ee.vscodeRemote="vscode-remote",ee.vscodeRemoteResource="vscode-remote-resource",ee.vscodeUserData="vscode-userdata",ee.vscodeCustomEditor="vscode-custom-editor",ee.vscodeNotebook="vscode-notebook",ee.vscodeNotebookCell="vscode-notebook-cell",ee.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",ee.vscodeNotebookCellOutput="vscode-notebook-cell-output",ee.vscodeInteractive="vscode-interactive",ee.vscodeInteractiveInput="vscode-interactive-input",ee.vscodeSettings="vscode-settings",ee.vscodeWorkspaceTrust="vscode-workspace-trust",ee.vscodeTerminal="vscode-terminal",ee.webviewPanel="webview-panel",ee.vscodeWebview="vscode-webview",ee.extension="extension",ee.vscodeFileResource="vscode-file",ee.tmp="tmp",ee.vsls="vsls"))(Wa||={});function Xs(n){return EE?n?.path||"":n?.fsPath||""}var SS=class{constructor(e){this._ignorePathCasing=e}compare(e,t,r=!1){return e===t?0:AU(this.getComparisonKey(e,r),this.getComparisonKey(t,r))}isEqual(e,t,r=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,r)===this.getComparisonKey(t,r)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,t,r=!1,i=yS?"\\":"/"){if(e.scheme===t.scheme){if(e.scheme===Wa.file)return PR(Xs(e),Xs(t),this._ignorePathCasing(e),i)&&e.query===t.query&&(r||e.fragment===t.fragment);if(FU(e.authority,t.authority))return PR(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(r||e.fragment===t.fragment)}return!1}joinPath(e,...t){return IS.Uri.joinPath(e,...t)}basenameOrAuthority(e){return un(e)||e.authority}basename(e,t){return hr.basename(e.path,t)}extname(e){return hr.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Wa.file?t=IS.Uri.file(nt(Xs(e))).path:(t=hr.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Wa.file?t=IS.Uri.file(hn(Xs(e))).path:t=hr.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!FU(e.authority,t.authority))return;if(e.scheme===Wa.file){let o=_E(Xs(e),Xs(t));return yS?wR(o):o}let r=e.path||"/",i=t.path||"/";if(this._ignorePathCasing(e)){let o=0;for(let s=Math.min(r.length,i.length);oER(r).length&&r[r.length-1]===t}else{let r=e.path;return r.length>1&&r.charCodeAt(r.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Tn){return LU(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Tn){let r=!1;if(e.scheme===Wa.file){let i=Xs(e);r=i!==void 0&&i.length===ER(i).length&&i[i.length-1]===t}else{t="/";let i=e.path;r=i.length===1&&i.charCodeAt(i.length-1)===47}return!r&&!LU(e,t)?e.with({path:e.path+"/"}):e}},Gt=new SS(()=>!1),Hhe=new SS(n=>n.scheme===Wa.file?!wU:!0),Ghe=new SS(n=>!0),vi=Gt.isEqual.bind(Gt),ah=Gt.isEqualOrParent.bind(Gt),cn=Gt.getComparisonKey.bind(Gt),zhe=Gt.basenameOrAuthority.bind(Gt),un=Gt.basename.bind(Gt),Vu=Gt.extname.bind(Gt),yi=Gt.dirname.bind(Gt),zt=Gt.joinPath.bind(Gt),Qhe=Gt.normalizePath.bind(Gt),kR=Gt.relativePath.bind(Gt),Yhe=Gt.resolvePath.bind(Gt),Xhe=Gt.isAbsolutePath.bind(Gt),FU=Gt.isEqualAuthority.bind(Gt),LU=Gt.hasTrailingPathSeparator.bind(Gt),Zhe=Gt.removeTrailingPathSeparator.bind(Gt),ege=Gt.addTrailingPathSeparator.bind(Gt),sz;(o=>{o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function i(s){let a=new Map;s.path.substring(s.path.indexOf(";")+1,s.path.lastIndexOf(";")).split(";").forEach(u=>{let[d,f]=u.split(":");d&&f&&a.set(d,f)});let c=s.path.substring(0,s.path.indexOf(";"));return c&&a.set(o.META_DATA_MIME,c),a}o.parseMetaData=i})(sz||={});function Rr(n=process.platform){return/^win/.test(n)?"Windows":/^darwin/.test(n)?"OSX":/^linux/.test(n)?"Linux":"Unknown"}function lh(n,e){return n.replace(/^~(?=$|\/|\\)/,e)}function az(){if(!Mu())return DR.Uri.file(require("os").homedir())}function ke(n){let e=Rr()==="Windows";if(n){let t=Xs(n);return t&&t.startsWith(Tn)&&t.length>1&&t[1]!==Tn&&e?t.slice(1):t||""}return""}function j(n,e=[],t){t=t||az();let r;typeof n=="string"&&(r=DR.Uri.file(n)),typeof n!="string"&&(r=n);let i=xR(r,void 0,t),o=e.find(l=>r&&ah(r,l.uri,!0));if(e.length>1&&o)return`${o.name}${Tn}${xR(r,o.uri,t)}`;let s=o?[xR(r,o.uri,t)]:[],a=i;return[i,...s].forEach(l=>{l.length{function n(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}E.is=n;let e=Object.freeze([]);function t(){return e}E.empty=t;function*r(x){yield x}E.single=r;function i(x){return n(x)?x:r(x)}E.wrap=i;function o(x){return x||e}E.from=o;function s(x){return!x||x[Symbol.iterator]().next().done===!0}E.isEmpty=s;function a(x){return x[Symbol.iterator]().next().value}E.first=a;function l(x,A){for(let T of x)if(A(T))return!0;return!1}E.some=l;function c(x,A){for(let T of x)if(A(T))return T}E.find=c;function*u(x,A){for(let T of x)A(T)&&(yield T)}E.filter=u;function*d(x,A){let T=0;for(let J of x)yield A(J,T++)}E.map=d;function*f(...x){for(let A of x)for(let T of A)yield T}E.concat=f;function g(x,A,T){let J=T;for(let ne of x)J=A(J,ne);return J}E.reduce=g;function*b(x,A,T=x.length){for(A<0&&(A+=x.length),T<0?T+=x.length:T>x.length&&(T=x.length);Athis.add(t)),Zs(this)}static{this.DISABLE_DISPOSED_WARNING=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{z(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?n.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}},Qt=class{constructor(...e){this._store=new Wr;this._isDisposed=!1;e.forEach(t=>this._store.add(t)),Zs(this)}get isDisposed(){return this._isDisposed}dispose(){this._store.dispose(),this._isDisposed=!0}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},jn=class extends Qt{constructor(){super();this._onDidDispose=new VU.EventEmitter,this.onDidDispose=this._onDidDispose.event}dispose(){super.dispose(),this._onDidDispose.fire(),this._onDidDispose.dispose()}};var WU=class{constructor(){this._store=new Map;this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{z(this._store.values())}finally{this._store.clear()}}has(e){return this._store.has(e)}get(e){return this._store.get(e)}set(e,t,r=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),r||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}};var RE=class{constructor(){this.references=new Map}acquire(e,...t){let r=this.references.get(e);r||(r={counter:0,object:this.createReferencedObject(e,...t)},this.references.set(e,r));let{object:i}=r,o=Ft(()=>{r&&--r.counter===0&&(this.destroyReferencedObject(e,r.object),this.references.delete(e))});return r.counter++,{object:i,dispose:o}}};var w=require("vscode");var Ze=require("vscode"),RR=60,AR=RR*60,CS=AR*24,BU=CS*7,$U=CS*30,qU=CS*365;function ch(n,e,t,r){typeof n!="number"&&(n=n.getTime());let i=Math.round((new Date().getTime()-n)/1e3);if(i<-30)return Ze.l10n.t("in {0}",ch(new Date().getTime()+i*1e3,!1));if(!r&&i<30)return Ze.l10n.t("now");let o;return i1e4&&(y2=!0),cP[n]=r),r}async function zZ(n,e){let t=new TextEncoder().encode(n),r=await uP.subtle.digest({name:e},t);return Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("")}function Bu(n){if(typeof n=="string")try{let[e,t,r]=`${n.trim()}...`.split(".").map(i=>parseInt(i,10));return isNaN(e)?"":isNaN(t)?e.toString():isNaN(r)?`${e}.${t}`:`${e}.${t}.${r}`}catch(e){return p.error(`Failed to parse version ${n}`,e),""}return n?`${n.major}.${n.minor}.${n.micro}`:""}async function at(n){return na(n,"SHA-256")}var dA=k(I2());var DS=require("vscode");function qr(n){let e=Pr(n);if(e){let l=[];typeof e.version?.major=="number"&&(l.push(e.version.major.toString()),typeof e.version.minor=="number"&&(l.push(e.version.minor.toString()),typeof e.version.micro=="number"&&l.push(e.version.micro.toString())));let c=l.length?l.join("."):"",u=e.environment?.name||(e.environment?un(e.environment?.folderUri):""),d=c?`Python ${c}`:"Python";return Vr(n)&&u?u:u?`${u} (${d})`:d}if(Object.keys(n).length===1&&n.id)return n.id;let t=Bu(Ji(n)||"").trim(),r=Vr(n),i=t?`Python ${t}`:"Python",o=Ro(n);if(r&&o)return o;let s=[];o&&s.push(o);let a=Ve(n);return a&&a!=="Unknown"&&s.push(a),[i,s.length?`(${s.join(": ")})`:""].join(" ").trim()}function Ro(n){let e=Pr(n),t=e?.environment?.name;return!t&&e?.environment?.folderUri&&Ve(n)==="Conda"&&(t=un(e?.environment?.folderUri)),t}var XZ=["Unknown","Conda","PipEnv","Poetry","Pyenv","Venv","VirtualEnv","VirtualEnvWrapper"];function Ve(n){let e=Pr(n);return e?ZZ(e):"Unknown"}function ZZ(n){if(n.environment?.type==="Conda")return"Conda";let e=[["Conda","Conda"],["Pyenv","Pyenv"],["Pipenv","PipEnv"],["Poetry","Poetry"],["VirtualEnvWrapper","VirtualEnvWrapper"],["VirtualEnv","VirtualEnv"],["Venv","Venv"]];for(let[t,r]of e)if(n.tools.includes(t))return r;if(n.environment?.type==="VirtualEnvironment")return"VirtualEnv";for(let t of XZ)if(n.tools.some(r=>r.toLowerCase()===t.toLowerCase()))return t;return"Unknown"}var oo;function S2(n){oo=n}function Vr(n){if(!n||!oo)return!1;let e=Pr(n);return e&&Ve(e)==="Conda"&&!e.executable.uri}function Pr(n){if(n){if(!oo)throw new Error("Python API not initialized");return oo.environments.known.find(e=>e.id===n.id)}}async function ia(n){if(!n?.id)return;if(oo){let r=oo.environments.known.find(i=>i.id===n.id);if(r?.executable?.sysPrefix)return r.executable.sysPrefix}let t=await(await dA.PythonExtension.api()).environments.resolveEnvironment(n.id).then(r=>r?.executable?.sysPrefix);return t||p.warn(`Unable to find sysPrefix for interpreter ${j(n.id)}`),t}function yh(n){if(!n?.id)return;if(!oo)throw new Error("Python API not initialized");return oo.environments.known.find(t=>t.id===n.id)?.executable?.sysPrefix}async function qu(n,e=!1){if(!n?.id)return;if(oo&&!e){let i=oo.environments.known.find(o=>o.id===n.id);if(i?.version)return i.version}let r=await(await dA.PythonExtension.api()).environments.resolveEnvironment(n.id);return r?.version||p.warn(`Unable to find Version for interpreter ${j(n.id)}`),r?.version}function Ji(n){if(!n?.id)return;if(!oo)throw new Error("Python API not initialized");return oo.environments.known.find(t=>t.id===n.id)?.version}function so(){return oo?oo.environments.known:[]}function wi(n){if(!n)return;let e,t=n.id;if(n.executable.uri)e=n.executable.uri;else if(Ve(n)==="Conda")e=Rr()==="Windows"?DS.Uri.joinPath(n.environment?.folderUri||DS.Uri.file(n.path),"python.exe"):DS.Uri.joinPath(n.environment?.folderUri||DS.Uri.file(n.path),"bin","python");else{p.warn(`Python environment ${j(n.id)} excluded as Uri is undefined`);return}return{id:t,uri:e}}function eee(n){return qr(n)}var de;(x=>(x.bannerLabelYes=w.l10n.t("Yes"),x.bannerLabelNo=w.l10n.t("No"),x.canceled=w.l10n.t("Canceled"),x.cancel=w.l10n.t("Cancel"),x.ok=w.l10n.t("Ok"),x.refresh=w.l10n.t("Refresh"),x.refreshing=w.l10n.t("Refreshing..."),x.install=w.l10n.t("Install"),x.loadingExtension=w.l10n.t("Jupyter Extension loading..."),x.handleExtensionActivationError=w.l10n.t("Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information."),x.doNotShowAgain=w.l10n.t("Do not show again"),x.reload=w.l10n.t("Reload"),x.moreInfo=w.l10n.t("More Info"),x.learnMore=w.l10n.t("Learn more"),x.and=w.l10n.t("and"),x.reportThisIssue=w.l10n.t("Report this issue"),x.clickHereForMoreInfoWithHtml=A=>w.l10n.t("Click here for more info.",A)))(de||={});var zp;(t=>(t.notInGroup=r=>w.l10n.t("User does not belong to experiment group '{0}'",r),t.inGroup=r=>w.l10n.t("User belongs to experiment group '{0}'",r)))(zp||={});var pA;(e=>e.jupyter=w.l10n.t("Jupyter"))(pA||={});var mA;(e=>e.currentWorkingDirectory="cwd:")(mA||={});var fA;(e=>e.bannerMessage=w.l10n.t("Would you like shift-enter to send code to the new Interactive Window experience?"))(fA||={});var hA;(e=>e.bannerMessage=w.l10n.t("Can you please take a minute to tell us about your notebooks experience in VS Code?"))(hA||={});var dP;(t=>(t.bannerLabelYes=w.l10n.t("Yes, take survey now"),t.bannerLabelNo=w.l10n.t("No, thanks")))(dP||={});var y;(D=>(D.warnWhenSelectingKernelWithUnSupportedPythonVersion=w.l10n.t("The version of Python associated with the selected kernel is no longer supported. Please consider selecting a different kernel."),D.installingPythonExtension=w.l10n.t("Installing Python extension and locating kernels."),D.pythonExtensionRequired=w.l10n.t("The Python Extension is required to perform that task. Click Yes to open Python Extension installation page."),D.rendererExtensionRequired=w.l10n.t("The Renderer Extension is required to view IPyWidgets. Click Yes to open Jupyter Notebook Renderer Extension installation page."),D.rendererExtension1015Required=w.l10n.t("The installed version of the Renderer Extension is outdated and requires and update to view IPyWidgets. Click Yes to open Jupyter Notebook Renderer Extension installation page."),D.pythonExtensionInstalled=w.l10n.t("Python Extension is now installed. Some features might not be available until a notebook or interactive window session is restarted."),D.unknownPackage=w.l10n.t("unknown"),D.interactiveWindowTitleFormat=L=>w.l10n.t("Interactive - {0}",L),D.interactiveWindowModeBannerTitle=w.l10n.t({message:"Do you want to open a new Interactive Window for this file? [More Information](command:workbench.action.openSettings?%5B%22jupyter.interactiveWindowMode%22%5D).",args:[],comment:'The string "command:workbench.action.openSettings?%5B%22jupyter.interactiveWindowMode%22%5D" should not be translated. It is a command that opens the settings page with the "jupyter.interactiveWindowMode" setting selected.'}),D.interactiveWindowModeBannerSwitchYes=w.l10n.t("Yes"),D.interactiveWindowModeBannerSwitchNo=w.l10n.t("No"),D.dataExplorerTitle=w.l10n.t("Data Viewer"),D.badWebPanelFormatString=L=>w.l10n.t({message:"

{0} is not a valid file name

",args:[L],comment:["Only translate the text within the HTML tags"]}),D.installingMissingDependencies=w.l10n.t("Installing missing dependencies"),D.validatingKernelDependencies=w.l10n.t("Validating kernel dependencies"),D.performingExport=w.l10n.t("Performing Export"),D.exportNotebookToPython=w.l10n.t("Exporting Notebook to Python"),D.sessionDisposed=w.l10n.t("Cannot execute code, session has been disposed. Please try restarting the Kernel."),D.passwordFailure=w.l10n.t("Failed to connect to password protected server. Check that password is correct."),D.incorrectPassword=w.l10n.t("Incorrect Password."),D.exportDialogFilter=w.l10n.t("Jupyter Notebooks"),D.exportDialogComplete=L=>w.l10n.t("Notebook written to {0}",L),D.exportDialogFailed=L=>w.l10n.t("Failed to export notebook. {0}",L),D.exportOpenQuestion1=w.l10n.t("Open in editor"),D.runCellLensCommandTitle=w.l10n.t("Run Cell"),D.importDialogTitle=w.l10n.t("Import Jupyter Notebook"),D.importDialogFilter="Jupyter Notebooks",D.notebookCheckForImportNo=w.l10n.t("Later"),D.libraryRequiredToLaunchJupyterNotInstalled=L=>w.l10n.t("Running cells requires {0} package.",L),D.librariesRequiredToLaunchJupyterNotInstalled=L=>w.l10n.t("Running cells requires {0} package.",L),D.libraryRequiredToLaunchJupyterNotInstalledInterpreter=(L,$e)=>w.l10n.t("Running cells with '{0}' requires the {1} package.",L,$e),D.libraryRequiredToLaunchJupyterKernelNotInstalledInterpreter=(L,$e)=>w.l10n.t("Running cells with '{0}' requires the {1} package.",L,$e),D.libraryRequiredToLaunchJupyterKernelNotInstalledInterpreterAndRequiresUpdate=(L,$e)=>w.l10n.t("Running cells with '{0}' requires the {1} package to be installed or requires an update.",L,$e),D.librariesRequiredToLaunchJupyterNotInstalledInterpreter=(L,$e)=>w.l10n.t("Running cells with '{0}' requires the {1} package.",L,$e),D.installPackageInstructions=(L,$e)=>w.l10n.t(`Run the following command to install '{0}' into the Python environment. Command: '{1}'`,L,$e),D.pythonCondaKernelsWithoutPython=w.l10n.t("The Python Runtime and IPyKernel will be automatically installed upon selecting this environment."),D.selectJupyterInterpreter=w.l10n.t("Select an Interpreter to start Jupyter"),D.jupyterInstall=w.l10n.t("Install"),D.currentlySelectedJupyterInterpreterForPlaceholder=L=>w.l10n.t("Selected Environment {0}",L),D.jupyterNotSupported=L=>w.l10n.t("Jupyter cannot be started. Error attempting to locate Jupyter: {0}",L),D.jupyterNotebookNotInstalledOrNotFound=L=>{if(L){let $e=eee(L);return w.l10n.t("Failed to start Jupyter Server as the packages 'jupyter' and 'notebook' could not be located in the Python environment '{0}'.",$e)}else return w.l10n.t("Failed to start Jupyter Server as the packages 'jupyter' and 'notebook' could not be located in the Python environment.")},D.jupyterNotSupportedBecauseOfEnvironment=(L,$e)=>w.l10n.t("Activating {0} to run Jupyter failed with {1}",L,$e),D.jupyterNbConvertNotSupported=w.l10n.t("Jupyter nbconvert is not installed"),D.jupyterLaunchTimedOut=w.l10n.t("The Jupyter notebook server failed to launch in time"),D.jupyterLaunchNoURL=w.l10n.t("Failed to find the URL of the launched Jupyter notebook server"),D.jupyterSelfCertFail=L=>w.l10n.t(`The security certificate used by server {0} was not issued by a trusted certificate authority.\r This may indicate an attempt to steal your information.\r Do you want to enable the Allow Unauthorized Remote Connection setting for this workspace to allow you to connect?`,L),D.jupyterExpiredCertFail=L=>w.l10n.t(`The security certificate used by server {0} has expired.\r This may indicate an attempt to steal your information.\r Do you want to enable the Allow Unauthorized Remote Connection setting for this workspace to allow you to connect?`,L),D.jupyterSelfCertFailErrorMessageOnly=w.l10n.t(`The security certificate used by server was not issued by a trusted certificate authority.\r This may indicate an attempt to steal your information.`),D.jupyterSelfCertExpiredErrorMessageOnly=w.l10n.t(`The security certificate used by server has expired.\r This may indicate an attempt to steal your information.`),D.jupyterSelfCertEnable=w.l10n.t("Yes, connect anyways"),D.jupyterSelfCertClose=w.l10n.t("No, close the connection"),D.pythonInteractiveHelpLink=w.l10n.t("See for help on installing Jupyter."),D.importingFormat=L=>w.l10n.t("Importing {0}",L),D.startingJupyter=w.l10n.t("Starting Jupyter Server"),D.connectingToKernel=L=>w.l10n.t("Connecting to kernel: {0}",L),D.connectingToJupyter=w.l10n.t("Connecting to Jupyter Server"),D.exportingFormat=L=>w.l10n.t("Exporting {0}",L),D.runAllCellsLensCommandTitle=w.l10n.t("Run All Cells"),D.runAllCellsAboveLensCommandTitle=w.l10n.t("Run Above"),D.runCellAndAllBelowLensCommandTitle=w.l10n.t("Run Below"),D.restartKernelMessage=w.l10n.t("Do you want to restart the Jupyter kernel? All variables will be lost."),D.restartKernelMessageYes=w.l10n.t("Restart"),D.restartKernelMessageDontAskAgain=w.l10n.t("Don't Ask Again"),D.automaticallyReconnectingToAKernelProgressMessage=L=>w.l10n.t("Reconnecting to the kernel {0}",L),D.restartingKernelStatus=L=>w.l10n.t("Restarting Kernel {0}",L),D.interruptingKernelFailed=w.l10n.t("Kernel interrupt failed. Jupyter Server is hung. Please reload VS Code."),D.sessionStartFailedWithKernel=L=>w.l10n.t({message:`Failed to start the Kernel '{0}'. View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.failedToStartJupyter=L=>w.l10n.t({message:`Failed to start Jupyter in the environment '{0}'. View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.failedToStartJupyterWithErrorInfo=(L,$e)=>w.l10n.t({message:`Failed to start Jupyter in the environment '{0}'. {1} View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L,$e],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.failedToStartJupyterDueToOutdatedTraitlets=(L,$e)=>w.l10n.t({message:`Failed to start Jupyter in the environment '{0}' possibly due to an outdated version of 'traitlets'. {1} Consider updating the 'traitlets' module to '5.1.1' or later. View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L,$e],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel',"Do not translate the text 'traitlets', that is a Python module name"]}),D.failedToStartKernel=w.l10n.t("Failed to start the Kernel."),D.failedToRestartKernel=w.l10n.t("Failed to restart the Kernel."),D.failedToInterruptKernel=w.l10n.t("Failed to interrupt the Kernel."),D.rawKernelStartFailedDueToTimeout=L=>w.l10n.t({message:`Unable to start Kernel '{0}' due to a connection timeout. View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.rawKernelStartFailedDueToTimeoutWaitingForPort=L=>w.l10n.t({message:`Unable to start Kernel '{0}' due to a timeout waiting for the ports to get used. View Jupyter [log](command:jupyter.viewOutput) for further details.`,args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.viewJupyterLogForFurtherInfo=w.l10n.t({message:"View Jupyter [log](command:jupyter.viewOutput) for further details.",comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.kernelDied=L=>w.l10n.t({message:"The kernel died. Error: {0}... View Jupyter [log](command:jupyter.viewOutput) for further details.",args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.kernelDiedWithoutError=L=>w.l10n.t({message:"The kernel '{0}' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.",args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel',"Do not translate the link https://aka.ms/vscodeJupyterKernelCrash"]}),D.failedToStartAnUntrustedKernelSpec=(L,$e)=>w.l10n.t({message:`The kernel '{0}' was not started as it is located in an insecure location '{1}'. Click [here](https://aka.ms/JupyterTrustedKernelPaths) for further details, optionally update the setting [jupyter.kernels.trusted](command:workbench.action.openSettings?["jupyter.kernels.trusted"]) to trust the kernel.`,args:[L,$e],comment:['Do not translate the text "jupyter.kernels.trusted", that is a setting in VS Code','Do not translate the text command:workbench.action.openSettings?["jupyter.kernels.trusted"], that is a command Id that will be used by VS Code to open the output panel',"Do not translate the link https://aka.ms/JupyterTrustedKernelPaths"]}),D.kernelDiedWithoutErrorAndAutoRestarting=L=>w.l10n.t({message:"The kernel '{0}' died and is being automatically restarted by Jupyter. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.",args:[L],comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel',"Do not translate the link https://aka.ms/vscodeJupyterKernelCrash"]}),D.kernelCrashedDueToCodeInCurrentOrPreviousCell=w.l10n.t({message:`The Kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.`,comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel',"Do not translate the link https://aka.ms/vscodeJupyterKernelCrash"]}),D.kernelDisconnected=L=>w.l10n.t("Unable to connect to the kernel '{0}', please verify the Jupyter Server connection. View Jupyter [log](command:jupyter.viewOutput) for further details.",L),D.cannotRunCellKernelIsDead=L=>w.l10n.t("Cannot run cells, as the kernel '{0}' is dead.",L),D.showJupyterLogs=w.l10n.t("Show Jupyter Logs."),D.restartKernel=w.l10n.t("Restart Kernel"),D.reloadRequired=w.l10n.t("Please reload the window for new settings to take effect."),D.restartedKernelHeader=L=>w.l10n.t("Restarted {0}",L),D.connectedKernelHeader=L=>w.l10n.t("Connected to {0}",L),D.restartingKernelCustomHeader=L=>w.l10n.t("_Restarting {0}..._",L),D.restartingKernelHeader=w.l10n.t("_Restarting kernel..._"),D.startingNewKernelHeader=w.l10n.t("_Connecting to kernel..._"),D.startingNewKernelCustomHeader=L=>w.l10n.t("_Connecting to {0}..._",L),D.noKernelConnected=w.l10n.t("No kernel connected"),D.jupyterSelectUriCommandLabel=w.l10n.t("Enter the URL of the running Jupyter Server..."),D.jupyterSelectUriInputTitle=w.l10n.t("Enter the URL of the running Jupyter Server"),D.jupyterSelectUriInputPlaceholder=w.l10n.t("Enter the url of the running Jupyter Server"),D.connectToToTheJupyterServer=L=>w.l10n.t("Connect to the Jupyter Server {0}",L),D.enterOrSelectRemoteJupyterPlaceholder=w.l10n.t("Enter a remote url, or select a remote server"),D.selectRemoteJupyterPlaceholder=w.l10n.t("Select a remote server"),D.jupyterServerLastConnectionForQuickPickDescription=L=>w.l10n.t("Last connected {0}",ch(L,!0,!1,!1)),D.jupyterServerNotUsedBeforeQuickPickSeparatorTitle=w.l10n.t("Jupyter Servers"),D.jupyterSelectURIInvalidURI=w.l10n.t("Invalid URL specified"),D.jupyterSelectURIMustBeHttpOrHttps=w.l10n.t("Invalid protocol in URL specified, only HTTP or HTTPS are supported."),D.jupyterSelectLiveRemoteKernelDescription=(L,$e)=>L?$e===0?w.l10n.t("Last activity {0}",ch(L,!0,!1,!1)):$e===1?w.l10n.t("Last activity {0}, 1 connection",ch(L,!0,!1,!1)):w.l10n.t("Last activity {0}, {1} connections",ch(L,!0,!1,!1),$e.toString()):$e===0?"":$e===1?w.l10n.t("1 connection"):w.l10n.t("{0} connections",$e.toString()),D.installJupyterHub=w.l10n.t("Install the JupyterHub extension to connect to JupyterHub servers."),D.useJupyterHubExtension=w.l10n.t("Select 'Existing JupyterHub Server...' from the Kernel Picker"),D.useJupyterHubExtensionDetail=w.l10n.t("Use this option when connecting to JupyterHub servers"),D.installJupyterHubDetail=w.l10n.t("Once installed, open the Kernel Picker and select 'Existing JupyterHub Server...'"),D.jupyterSelectUserAndPasswordTitle=w.l10n.t("Enter your user name and password to connect to Jupyter Hub"),D.jupyterRenameServer=w.l10n.t("Change Server Display Name (Leave Blank To Use URL)"),D.jupyterServerUriDisplayNameInputPlaceholder=w.l10n.t("Enter a display name"),D.jupyterSelectUserPrompt=w.l10n.t("Enter your user name"),D.jupyterSelectPasswordPrompt=w.l10n.t("Enter your password"),D.jupyterSelectPasswordTitle=w.l10n.t("Enter your password for the Jupyter Server"),D.pythonNotInstalled=w.l10n.t(`Python is not installed. Please download and install Python in order to execute cells in this notebook. Once installed please reload VS Code.`),D.pleaseReloadVSCodeOncePythonHasBeenInstalled=w.l10n.t("Upon installing Python please reload VS Code."),D.jupyterNotebookFailure=L=>w.l10n.t(`Jupyter notebook failed to launch. \r {0}`,L),D.remoteJupyterServerProvidedBy3rdPartyExtensionNoLongerValid=L=>w.l10n.t("The remote Jupyter Server contributed by the extension '{0}' is no longer available.",L),D.remoteJupyterConnectionFailedWithServerWithError=(L,$e)=>w.l10n.t("Failed to connect to the remote Jupyter Server '{0}'. Verify the server is running and reachable. ({1}).",L,$e),D.remoteJupyterConnectionFailedWithServer=L=>w.l10n.t("Failed to connect to the remote Jupyter Server '{0}'. Verify the server is running and reachable.",L),D.remoteJupyterConnectionFailedWithoutServerWithError=L=>w.l10n.t("Connection failure. Verify the server is running and reachable. ({0}).",L),D.remoteJupyterConnectionFailedWithoutServerWithErrorWeb=L=>w.l10n.t(`Connection failure. Verify the server is running and reachable from a browser. ({0}). When connecting from vscode.dev Jupyter servers must be started with specific options to connect. Click [here](https://aka.ms/vscjremoteweb) for more information.`,L),D.removeRemoteJupyterConnectionButtonText=w.l10n.t("Forget Connection"),D.jupyterNotebookRemoteConnectFailedWeb=L=>w.l10n.t(`Failed to connect to remote Jupyter Server.\r Check that the Jupyter Server URL can be reached from a browser.\r {0}. Click [here](https://aka.ms/vscjremoteweb) for more information.`,L),D.packageNotInstalledWindowsLongPathNotEnabledError=(L,$e)=>w.l10n.t(`Support for Windows Long Path has not been enabled, hence the package {0} could not be installed into the Python Environment '{1}'. Please ensure that support for Windows Long Path is enabled. See [here](https://pip.pypa.io/warnings/enable-long-paths) for more information.`,L,$e),D.changeRemoteJupyterConnectionButtonText=w.l10n.t("Manage Connections"),D.rawConnectionBrokenError=w.l10n.t("Direct kernel connection broken"),D.jupyterServerCrashed=L=>w.l10n.t(`Jupyter Server crashed. Unable to connect. \r Error code from Jupyter: {0}`,L.toString()),D.jupyterKernelSpecModuleNotFound=L=>w.l10n.t(`'Kernelspec' module not installed in the selected interpreter ({0}). Please re-install or update 'jupyter'.`,L),D.interruptKernelStatus=L=>w.l10n.t("Interrupting Kernel {0}",L),D.exportPythonQuickPickLabel=w.l10n.t("Python Script"),D.exportHTMLQuickPickLabel=w.l10n.t("HTML"),D.exportPDFQuickPickLabel=w.l10n.t("PDF"),D.restartKernelAfterInterruptMessage=L=>w.l10n.t("Interrupting the kernel '{0}' timed out. Do you want to restart the kernel instead? All variables will be lost.",L),D.documentMismatch=L=>w.l10n.t("Cannot run cells, duplicate documents for {0} found.",L),D.jupyterGetVariablesBadResults=w.l10n.t("Failed to fetch variable info from the Jupyter Server."),w.l10n.t("Failure to create an 'Interactive' window. Try reinstalling the Python Extension."),D.jupyterGetVariablesExecutionError=L=>w.l10n.t(`Failure during variable extraction: \r {0}`,L),D.selectKernel=w.l10n.t("Change Kernel"),D.selectDifferentKernel=w.l10n.t("Select a different Kernel"),D.kernelFilterPlaceholder=w.l10n.t("Choose the kernels that are available in the kernel picker."),D.recommendedItemCategoryInQuickPick=w.l10n.t("Recommended"),D.selectedKernelCategoryInQuickPick=w.l10n.t("Selected"),D.createPythonEnvironmentInQuickPick=w.l10n.t("Create Python Environment"),D.createPythonEnvironmentInQuickPickTooltip=w.l10n.t("Create an isolated Python Environment per workspace folder"),D.selectDifferentJupyterInterpreter=w.l10n.t("Change Interpreter"),D.pandasTooOldForViewingFormat=(L,$e)=>w.l10n.t({message:"Python package 'pandas' is version {0}. Version {1} or greater is required for viewing data.",args:[L,$e],comment:["Do not translate 'pandas' as that is a Python module name"]}),D.pandasRequiredForViewing=L=>w.l10n.t({message:"Python package 'pandas' version {0} (or above) is required for viewing data.",args:[L],comment:["Do not translate 'pandas' as that is a Python module name"]}),D.tooManyColumnsMessage=w.l10n.t("Variables with over a 1000 columns may take a long time to display. Are you sure you wish to continue?"),D.tooManyColumnsYes=w.l10n.t("Yes"),D.tooManyColumnsNo=w.l10n.t("No"),D.tooManyColumnsDontAskAgain=w.l10n.t("Don't Ask Again"),D.plotViewerTitle=w.l10n.t("Plots"),D.exportPlotTitle=w.l10n.t("Save plot image"),D.pdfFilter="PDF",D.pngFilter="PNG",D.svgFilter="SVG",D.exportImageFailed=L=>w.l10n.t("Error exporting image: {0}",L),D.jupyterDataRateExceeded=w.l10n.t({message:"Cannot view variable because data rate exceeded. Please restart your server with a higher data rate limit. For example, --NotebookApp.iopub_data_rate_limit=10000000000.0",comment:["Do not translate the text --NotebookApp.iopub_data_rate_limit=10000000000.0 as that is a command argument."]}),D.addCellBelowCommandTitle=w.l10n.t("Add cell"),D.debugCellCommandTitle=w.l10n.t("Debug Cell"),D.debugStepOverCommandTitle=w.l10n.t("Step over"),D.debugContinueCommandTitle=w.l10n.t("Continue"),D.debugStopCommandTitle=w.l10n.t("Stop"),D.runCurrentCellAndAddBelow=w.l10n.t("Run current cell and add empty cell below"),D.jupyterDebuggerNotInstalledError=L=>w.l10n.t("Pip module {0} is required for debugging cells. You will need to install it to debug cells.",L),D.jupyterDebuggerOutputParseError=L=>w.l10n.t("Unable to parse {0} output, please log an issue with https://github.com/microsoft/vscode-jupyter",L),D.cellStopOnErrorMessage=w.l10n.t("Cell was canceled due to an error in a previous cell."),D.scrollToCellTitleFormatMessage=L=>w.l10n.t("Go to [{0}]",L.toString()),D.instructionComments=L=>w.l10n.t(`# To add a new cell, type '{0}' # To add a new markdown cell, type '{0} [markdown]' `,L),D.exportButtonTitle=w.l10n.t("Export"),D.exportAsQuickPickPlaceholder=w.l10n.t("Export As..."),D.openExportedFileMessage=w.l10n.t("Would you like to open the exported file?"),D.openExportFileYes=w.l10n.t("Yes"),D.openExportFileNo=w.l10n.t("No"),D.exportFailedGeneralMessage=w.l10n.t({message:"Please check the 'Jupyter' [output](command:jupyter.viewOutput) panel for further details.",comment:['Do not translate the text "command:jupyter.viewOutput", that is a command Id that will be used by VS Code to open the output panel']}),D.exportToPDFDependencyMessage=w.l10n.t(`If you have not installed xelatex (TeX), you will need to do so before you can export to PDF. For further instructions, please see https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex. \r To avoid installing xelatex (TeX), you might want to try exporting to HTML and using your browser's "Print to PDF" feature.`),D.failedExportMessage=w.l10n.t("Export failed."),D.startingJupyterLogMessage=(L,$e)=>w.l10n.t("Starting Jupyter from {0} with arguments {1}",L,$e),D.waitingForJupyterSessionToBeIdle=w.l10n.t("Waiting for Jupyter Session to be idle"),D.gettingListOfKernelsForRemoteConnection=w.l10n.t("Fetching Kernels"),D.gettingListOfKernelSpecs=w.l10n.t("Fetching Kernel specs"),D.startingJupyterNotebook=w.l10n.t("Starting Jupyter Notebook"),D.registeringKernel=w.l10n.t("Registering Kernel"),D.jupyterCommandLineReloadQuestion=w.l10n.t("Please reload the window when changing the Jupyter command line."),D.jupyterCommandLineReloadAnswer=w.l10n.t("Reload"),D.createdNewKernel=(L,$e)=>w.l10n.t("{0}: Kernel started: {1}",L,$e),D.kernelInvalid=L=>w.l10n.t("Kernel {0} is not usable. Check the Jupyter output tab for more information.",L),D.removeRemoteJupyterServerEntryInQuickPick=w.l10n.t("Remove"),D.loadClassFailedWithNoInternet=(L,$e)=>w.l10n.t("Error loading {0}:{1}. Internet connection required for loading 3rd party widgets.",L,$e),D.useCDNForWidgetsNoInformation=w.l10n.t("Widgets require us to download supporting files from a 3rd party website."),D.enableCDNForWidgetsSetting=(L,$e)=>w.l10n.t("Widgets require us to download supporting files from a 3rd party website. (Error loading {0}:{1}).",L,$e),D.enableCDNForWidgetsButton=w.l10n.t("Enable Downloads"),D.unhandledMessage=(L,$e)=>w.l10n.t("Unhandled kernel message from a widget: {0} : {1}",L,$e),D.cdnWidgetScriptNotAccessibleWarningMessage=(L,$e)=>w.l10n.t("Unable to download widget '{0}' from 3rd party website {1}, due to network access. Expected behavior may be affected. Click [here](https://aka.ms/PVSCIPyWidgets) for more information.",L,$e),D.widgetScriptNotFoundOnCDNWidgetMightNotWork=(L,$e,pE)=>w.l10n.t("Unable to find widget '{0}' version '{1}' from configured widget sources {2}. Expected behavior may be affected. Click [here](https://aka.ms/PVSCIPyWidgets) for more information.",L,$e,pE),D.insecureSessionMessage=w.l10n.t("Connecting over HTTP without a token may be an insecure connection. Do you want to connect to a possibly insecure server?"),D.insecureSessionDenied=w.l10n.t("Denied connection to insecure server."),D.selectKernelForEditor=w.l10n.t("[Select a kernel](command:_notebook.selectKernel) to run cells."),D.needIpykernel6=w.l10n.t("Ipykernel setup required for this feature"),D.setup=w.l10n.t("Setup"),D.showDataViewerFail=w.l10n.t("Failed to create the Data Viewer. Check the Jupyter tab of the Output window for more info."),D.defaultNotebookName=w.l10n.t("default"),D.recommendExtensionForNotebookLanguage=(L,$e)=>w.l10n.t("The {0} extension is recommended for notebooks targeting the language '{1}'",L,$e),D.kernelWasNotStarted=w.l10n.t("Kernel was not started. A kernel session is needed to start debugging."),D.noNotebookToDebug=w.l10n.t("No active notebook document to debug."),D.cantStartDebugging=w.l10n.t("Can't start debugging."),D.restartNotSupported=w.l10n.t("Restarting is not supported in the interactive window."),D.importingIpynb=w.l10n.t("Importing notebook file"),D.exportingToFormat=L=>w.l10n.t("Exporting to {0}",L),D.kernelCategoryForJupyterSession=w.l10n.t("Jupyter Session"),D.kernelDefaultRemoteDisplayName=w.l10n.t("Remote"),D.kernelCategoryForJupyterKernel=w.l10n.t("Jupyter Kernel"),D.kernelCategoryForRemoteJupyterKernel=w.l10n.t("Jupyter Kernel"),D.kernelCategoryForConda=w.l10n.t("Conda Env"),D.kernelCategoryForCondaWithoutPython=w.l10n.t("Conda Env Without Python"),D.kernelCategoryForPoetry=w.l10n.t("Poetry Env"),D.kernelCategoryForPipEnv=w.l10n.t("Pipenv Env"),D.kernelCategoryForPyEnv=w.l10n.t("PyEnv Env"),D.kernelCategoryForGlobal=w.l10n.t("Global Env"),D.kernelCategoryForVirtual=w.l10n.t("Virtual Env"),D.fileSeemsToBeInterferingWithKernelStartup=L=>w.l10n.t("The file '{0}' seems to be overriding built in modules and interfering with the startup of the kernel. Consider renaming the file and starting the kernel again.",L),D.moduleSeemsToBeInterferingWithKernelStartup=L=>w.l10n.t("The module '{0}' seems to be overriding built in modules and interfering with the startup of the kernel. Consider renaming the folder and starting the kernel again.",L),D.pipCondaInstallHoverWarning=(L,$e)=>w.l10n.t("'!{0} install' could install packages into the wrong environment. [More info]({1})",L,$e),D.percentPipCondaInstallInsteadOfBang=L=>w.l10n.t({message:"Use '%{0} install' instead of '!{0} install'",args:[L],comment:['Do not translate the string within quotes, such as "%{0} install" and "!{0} install" as that is a Jupyter Shell Magic command']}),D.replacePipCondaInstallCodeAction=L=>w.l10n.t("Replace with '%{0} install'",L),D.failedToStartKernelDueToMissingModule=L=>w.l10n.t("The kernel failed to start due to the missing module '{0}'. Consider installing this module.",L),D.failedToStartKernelDueToImportFailure=L=>w.l10n.t("The kernel failed to start as the module '{0}' could not be imported.",L),D.failedToStartKernelDueToImportFailureFromFile=(L,$e)=>w.l10n.t("The kernel failed to start as '{0}' could not be imported from '{1}'.",L,$e),D.failedToStartKernelDueToUnknownDllLoadFailure=w.l10n.t("The kernel failed to start as a dll could not be loaded."),D.failedToStartKernelDueToDllLoadFailure=L=>w.l10n.t("The kernel failed to start as the dll '{0}' could not be loaded.",L),D.failedToStartKernelDueToWin32APIFailure=w.l10n.t("The kernel failed to start due to an error with the Win32api module. Consider (re) installing this module."),D.failedToStartKernelDueToPyZmqFailure=w.l10n.t({message:"The kernel failed to start due to an error with the 'pyzmq' module. Consider re-installing this module.",comment:['Do not translate the string "pyzmq" as that is a Python module.']}),D.failedToStartKernelDueToOldIPython=w.l10n.t("The kernel failed to start due to an outdated version of IPython. Consider updating this module to the latest version."),D.failedToStartKernelDueToOldIPyKernel=w.l10n.t("The kernel failed to start due to an outdated version of IPyKernel. Consider updating this module to the latest version."),D.failedToStartKernelDueToMissingPythonEnv=L=>w.l10n.t("The kernel failed to start as the Python Environment '{0}' is no longer available. Consider selecting another kernel or refreshing the list of Python Environments.",L),D.matplotlibWidgetInsteadOfOther=w.l10n.t("'%matplotlib' widget works best inside of VS Code"),D.matplotlibWidgetCodeActionTitle=w.l10n.t("More info"),D.allowExtensionToUseJupyterKernelApi=(L,$e)=>w.l10n.t("Do you want to give the extension '{0}' access to the Jupyter Kernels? Clicking '{1}' would allow this extension to execute code against the Jupyter Kernels.",L,$e),D.thanksForUsingJupyterKernelApiPleaseRegisterWithUs=L=>w.l10n.t("Thank you for trying the Jupyter API. Please file an issue on our repo to allow the extension {0} to use this API in production. This would prevent us from breaking your extension when updating the API (as it is still a work in progress).",L),D.activatingPythonEnvironment=L=>w.l10n.t("Activating Python Environment '{0}'",L),D.runningKernelStartupHooksFor=L=>w.l10n.t("Running Kernel startup hooks in '{0}'",L),D.cellAtFormat=(L,$e)=>w.l10n.t("{0} Cell {1}",L,$e),D.jupyterServerConsoleOutputChannel=w.l10n.t("Jupyter Server Console"),D.kernelConsoleOutputChannel=L=>w.l10n.t("{0} Kernel Console Output",L),D.webNotSupported=w.l10n.t("Operation not supported in web version of Jupyter Extension."),D.failedToInstallPythonExtension=w.l10n.t("Failed to install the Python Extension."),D.filesPossiblyOverridingPythonModulesMayHavePreventedKernelFromStarting=L=>w.l10n.t("Some of the following files found in the working directory may have prevented the Kernel from starting. Consider renaming them.",L),D.listOfFilesWithLinksThatMightNeedToBeRenamed=L=>w.l10n.t("File(s): {0} might need to be renamed.",L),D.failedToGetVersionOfPandas=w.l10n.t("Failed to get version of Pandas to use the Data Viewer."),D.failedToInstallPandas=w.l10n.t("Failed to install Pandas to use the Data Viewer."),D.localKernelSpecs=w.l10n.t("Jupyter Kernel..."),D.localPythonEnvironments=w.l10n.t("Python Environments..."),D.quickPickTitleForSelectionOfJupyterServer=w.l10n.t("Select a Jupyter Server"),D.UserJupyterServerUrlProviderDisplayName=w.l10n.t("Existing Jupyter Server..."),D.UserJupyterServerUrlProviderDetail=w.l10n.t("Connect to an existing Jupyter Server"),D.kernelPickerSelectKernelTitle=w.l10n.t("Select Kernel"),D.kernelPickerSelectLocalKernelSpecTitle=w.l10n.t("Select a Jupyter Kernel"),D.quickPickSelectPythonEnvironmentTitle=w.l10n.t("Select a Python Environment"),D.kernelPickerSelectKernelFromRemoteTitle=L=>w.l10n.t("Select a Kernel from {0}",L),D.kernelPickerSelectKernelFromRemoteTitleWithoutName=w.l10n.t("Select a Jupyter Kernel"),D.installPythonExtensionViaKernelPickerTitle=w.l10n.t("Install Python Extension"),D.installPythonExtensionViaKernelPickerToolTip=w.l10n.t("Python Extension is required to detect and use Python environments for the execution of code cells."),D.installPythonQuickPickTitle=w.l10n.t("Install Python"),D.installPythonQuickPickToolTip=w.l10n.t("Python Environments not detected. Upon installation reload VS Code or refresh the list of Kernels."),D.failedToFetchKernelSpecsRemoteErrorMessageForQuickPickLabel=w.l10n.t({message:"$(error) Unable to connect to the remote server",comment:"Do not translate the string $(error) as that is a VS Code icon."}),D.failedToFetchKernelSpecsRemoteErrorMessageForQuickPickDetail=w.l10n.t("Ensure the server is running and reachable."),D.dataViewerDeprecationMessage=w.l10n.t("The built-in data viewer will be deprecated soon. Please install other data viewing extensions to keep the ability to inspect data."),D.dataViewerDeprecationRecommendationActionMessage=w.l10n.t("See Recommended Extensions")))(y||={});var Kt;(he=>(he.collapseSingle=w.l10n.t("Collapse"),he.expandSingle=w.l10n.t("Expand"),he.noRowsInDataViewer=w.l10n.t("No rows match current filter"),he.sliceIndexError=w.l10n.t({message:"Index {0} out of range for axis {1} with {2} elements",comment:["Do not translate the strings {0}, {1} and {2} as they are variable names and will be replaced later"]}),he.sliceMismatchedAxesError=w.l10n.t({message:"Expected {0} axes, got {1} in slice expression",comment:["Do not translate the strings {0} and {2} as they are variable names and will be replaced later"]}),he.fetchingDataViewer=w.l10n.t("Fetching data ..."),he.dataViewerHideFilters=w.l10n.t("Hide filters"),he.dataViewerShowFilters=w.l10n.t("Show filters"),he.refreshDataViewer=w.l10n.t("Refresh data viewer"),he.sliceSummaryTitle=w.l10n.t("SLICING"),he.sliceData=w.l10n.t("Slice Data"),he.sliceSubmitButton=w.l10n.t("Apply"),he.sliceDropdownAxisLabel=w.l10n.t("Axis"),he.sliceDropdownIndexLabel=w.l10n.t("Index"),he.variableExplorerNameColumn=w.l10n.t("Name"),he.variableExplorerTypeColumn=w.l10n.t("Type"),he.variableExplorerCountColumn=w.l10n.t("Size"),he.variableExplorerValueColumn=w.l10n.t("Value"),he.collapseVariableExplorerLabel=w.l10n.t("Variables"),he.variableLoadingValue=w.l10n.t("Loading..."),he.showDataExplorerTooltip=w.l10n.t("Show variable snapshot in data viewer"),he.noRowsInVariableExplorer=w.l10n.t("No variables defined"),he.loadingRowsInVariableExplorer=w.l10n.t("Loading variables"),he.previousPlot=w.l10n.t("Previous"),he.nextPlot=w.l10n.t("Next"),he.panPlot=w.l10n.t("Pan"),he.zoomInPlot=w.l10n.t("Zoom in"),he.zoomOutPlot=w.l10n.t("Zoom out"),he.exportPlot=w.l10n.t("Export to different formats"),he.deletePlot=w.l10n.t("Remove"),he.selectedImageListLabel=w.l10n.t("Selected Image"),he.selectedImageLabel=w.l10n.t("Image"),he.errorOutputExceedsLinkToOpenFormatString=w.l10n.t({message:"Output exceeds the size limit. Open the full output data in a text editor",comment:['Do not translate the the Hyperlink text "size limit" and "in a text editor". However the text inside those tags can be translated']}),he.dvDeprecationWarning=w.l10n.t('The built-in data viewer will be deprecated and no longer usable starting with Visual Studio Code 1.92. Please install other data viewing extensions to continue inspecting data')))(Kt||={});var _S;(r=>(r.SHOW_DEPRECATED_FEATURE_PROMPT_FORMAT_ON_SAVE=w.l10n.t({message:"The setting 'python.formatting.formatOnSave' is deprecated, please use 'editor.formatOnSave'.",comment:['Do not translate the string "python.formatting.formatOnSave" as that is a setting in VS Code','Do not translate the string "editor.formatOnSave" as that is a setting in VS Code']}),r.SHOW_DEPRECATED_FEATURE_PROMPT_LINT_ON_TEXT_CHANGE=w.l10n.t({message:"The setting 'python.linting.lintOnTextChange' is deprecated, please enable 'python.linting.lintOnSave' and 'files.autoSave'.",comment:['Do not translate the string "python.linting.lintOnTextChange" as that is a setting in VS Code','Do not translate the string "python.linting.lintOnSave" as that is a setting in VS Code']}),r.SHOW_DEPRECATED_FEATURE_PROMPT_FOR_AUTO_COMPLETE_PRELOAD_MODULES=w.l10n.t({message:"The setting 'python.autoComplete.preloadModules' is deprecated, please consider using Pylance Language Server ('python.languageServer' setting).",comment:['Do not translate the string "python.autoComplete.preloadModules" as that is a setting in VS Code','Do not translate the string "python.languageServer" as that is a setting in VS Code']})))(_S||={});var bh;(r=>(r.noCondaOrPipInstaller=w.l10n.t("There is no Conda or Pip installer available in the selected environment."),r.noPipInstaller=w.l10n.t("There is no Pip installer available in the selected environment."),r.searchForHelp=w.l10n.t("Search for help")))(bh||={});var gA;(e=>e.installingModule=t=>w.l10n.t("Installing {0}",t))(gA||={});var w2=vA(),pP=class{constructor(e,t,r){this.channel=e;this.homeReplaceRegEx=t,this.userNameReplaceRegEx=r}format(e,t,...r){let i=e?`${yE()} [${e}] ${w2(t,...r)}`:w2(t,...r);return this.homeReplaceRegEx&&(i=i.replace(this.homeReplaceRegEx,"~")),this.userNameReplaceRegEx&&(i=i.replace(this.userNameReplaceRegEx,"")),i}error(e,...t){this.channel.appendLine(this.format("error",e,...t))}warn(e,...t){this.channel.appendLine(this.format("warn",e,...t))}info(e,...t){this.channel.appendLine(this.format("info",e,...t))}debug(e,...t){this.channel.appendLine(this.format("debug",e,...t))}trace(e,...t){this.channel.appendLine(this.format("trace",e,...t))}ci(e,...t){}};var E2=vA();function TS(n,e,...t){let i=[...t].length===0?E2(e):E2(e,...t);return n?`${n} ${yE()}: ${i}`:i}var mP=class{constructor(e){this.prefix=e}error(e,...t){console.error(TS("error",`${this.prefix||""} ${e}`,...t))}warn(e,...t){console.warn(TS("warn",`${this.prefix||""} ${e}`,...t))}info(e,...t){console.info(TS("info",`${this.prefix||""} ${e}`,...t))}debug(e,...t){console.log(TS("debug",`${this.prefix||""} ${e}`,...t))}trace(e,...t){console.trace(TS("trace",`${this.prefix||""} ${e}`,...t))}ci(e,...t){}};var hP="",D2=3,Hu=[],Gu=Yt.LogLevel.Info,p={error:(n,...e)=>tee(n,...e),warn:(n,...e)=>A2(n,...e),info:(n,...e)=>ree(n,...e),debug:(n,...e)=>nee(n,...e),trace:(n,...e)=>iee(n,...e),ci:(n,...e)=>{e&&Array.isArray(e)?x2(n,...e):x2(n)}};function _2(n){Gu=k2(),Zs(Yt.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("jupyter.logging")&&(Gu=k2())}));let e=Yt.window.createOutputChannel(pA.jupyter,"log");return P2(new pP(e,n?.userNameRegEx,n?.homePathRegEx)),P2(new mP(hi?void 0:"Jupyter Extension:")),e}function P2(n){return Hu.push(n),{dispose:()=>{Hu=Hu.filter(e=>e!==n)}}}function k2(){try{let{level:n}=Yt.workspace.getConfiguration("jupyter").get("logging",{level:"Info"});switch(n){case"debug":case"Debug":return Yt.LogLevel.Debug;case"warn":case"Warn":case"warning":case"Warning":return Yt.LogLevel.Warning;case"Off":case"off":return Yt.LogLevel.Off;case"Error":case"error":return Yt.LogLevel.Error;case"Trace":case"trace":return Yt.LogLevel.Trace;default:return Yt.LogLevel.Info}}catch(n){return console.error("Failed to get logging level from configuration",n),Yt.LogLevel.Info}}function T2(n){hP=n.toLowerCase()}function R2(...n){return Gu<=Yt.LogLevel.Debug?n:n.map(t=>{if(!(t instanceof Error)||!("isJupyterError"in t))return t;let r=[`${t.name}: ${t.message}`.trim()];if("kernelConnectionMetadata"in t&&t.kernelConnectionMetadata&&typeof t.kernelConnectionMetadata=="object"&&"id"in t.kernelConnectionMetadata&&(r.push(`Kernel Id = ${t.kernelConnectionMetadata.id}`),"interpreter"in t.kernelConnectionMetadata&&t.kernelConnectionMetadata.interpreter&&typeof t.kernelConnectionMetadata.interpreter=="object"&&"id"in t.kernelConnectionMetadata.interpreter&&typeof t.kernelConnectionMetadata.interpreter.id=="string"&&r.push(`Interpreter Id = ${j(t.kernelConnectionMetadata.interpreter.id)}`)),t.stack){let o=Oe(t.stack),s=o.find(a=>a.indexOf("at ")===0);o.length===1||(o.length===1?r.push(o[0]):o.length>1&&s?.length?r.push(s):r.push(o[0]))}let i=["stack","message","name","kernelConnectionMetadata","category","exitCode","isJupyterError"];return Object.keys(t).filter(o=>i.indexOf(o)===-1).forEach(o=>r.push(`${o} = ${String(t[o]).trim()}`)),r.filter(o=>o.trim().length).map((o,s)=>s===0?o:` > ${o}`).join(` `)})}function tee(n,...e){Gu<=Yt.LogLevel.Error&&(e=R2(...e),Hu.forEach(t=>t.error(n,...e)))}function A2(n,...e){Gu<=Yt.LogLevel.Warning&&(e=R2(...e),Hu.forEach(t=>t.warn(n,...e)))}function ree(n,...e){Gu<=Yt.LogLevel.Info&&Hu.forEach(t=>t.info(n,...e))}function nee(n,...e){Gu<=Yt.LogLevel.Debug&&Hu.forEach(t=>t.debug(n,...e))}function iee(n,...e){Gu<=Yt.LogLevel.Trace&&Hu.forEach(t=>t.trace(n,...e))}function x2(n,...e){if(hi)if(typeof n=="function"){let r=n(),i="",o=[];typeof r=="string"?i=r:(i=r.shift(),o=r),p.info(i,...o)}else p.info(n,...e)}function Zn(n,e=D2){return N2({message:n,opts:e,level:Yt.LogLevel.Debug})}function Sh(n){return N2({message:n,opts:D2,level:Yt.LogLevel.Error})}var Cc=new WeakMap;function wc(n){return(e,t,r)=>{Cc.has(e)||Cc.set(e,new Map);let i=Cc.get(e);i||Cc.set(e,i=new Map),i.has(t)||i.set(t,[]),i.get(t).push({parameterIndex:r,propertyOfParameterToLog:n})}}function zu(){return(n,e,t)=>{Cc.has(n)||Cc.set(n,new Map);let r=Cc.get(n);r||Cc.set(n,r=new Map),r.has(e)||r.set(e,[]),r.get(e).push({parameterIndex:t,ignore:!0})}}function N2(n){return yU((e,t)=>cee(n,t,e),(n.opts&4)>0)}function oee(n){let{kind:e,name:t,args:r}=n;return(!e||e==="")&&(e="Function"),(!t||t==="")&&(t=""),r||(r=[]),{kind:e,name:t,args:r,methodName:n.methodName||"",target:n.target||void 0}}function see(n){if(!n)return!1;let e=n;return typeof e.path=="string"&&typeof e.scheme=="string"}function yA(n){let e=hP?n.toLowerCase().indexOf(hP):-1;return e===-1?n:`~${n.substring(e+hP.length)}`}function aee(n,e,t,r){if(see(t))return yA(t.path);if(!t)return t;let o=Cc.get(n)?.get(e)?.find(a=>a.parameterIndex===r);if(!o)return typeof t=="string"?yA(t):t;if("ignore"in o&&o.ignore)return"";let s=t;return"propertyOfParameterToLog"in o&&o.propertyOfParameterToLog&&(s=t[o.propertyOfParameterToLog]),typeof s=="string"?yA(s):s}function lee(n,e,t){t=oee(t);let r=[n.message];return r.push(`${t.kind} name = ${t.name}`.trim()),e?(r.push(`completed in ${e.elapsed}ms`),r.push(`has a ${e.returnValue?"truthy":"falsy"} return value`)):r[r.length-1]=`${r[r.length-1]} (started execution)`,(n.opts&1)===1&&(n.level===Yt.LogLevel.Debug?r.push(bR(t.args.map((i,o)=>t?aee(t.target,t.methodName,i,o):i))):r.push(bR(t.args))),e&&(n.opts&2)===2&&r.push(bU(e.returnValue)),r.join(", ")}function cee(n,e,t){let r=lee(n,e,t);e?e.err===void 0?n.level&&n.level===Yt.LogLevel.Error||(n.level?fP(n.level,r):fP(Yt.LogLevel.Info,r)):fP(Yt.LogLevel.Error,r,e.err):n.level&&n.level!==Yt.LogLevel.Error&&fP(n.level,r)}function fP(n,e,...t){switch(n){case Yt.LogLevel.Error:p.error(e,...t);break;case Yt.LogLevel.Warning:A2(e,...t);break;case Yt.LogLevel.Info:p.info(e,...t);break;case Yt.LogLevel.Debug:case Yt.LogLevel.Trace:p.debug(e,...t);break;default:break}}var Ma=require("vscode");var cN=require("vscode");var M2=Symbol("IsDevMode"),Ao=Symbol("IOutputChannel"),K2=Symbol("IS_WINDOWS"),M=Symbol("IDisposableRegistry"),We=Symbol("IGlobalMemento"),lt=Symbol("IGlobalMemento"),ei=Symbol("IWorkspaceMemento");var il=Symbol("IPersistentStateFactory"),tye=Symbol("IRandom"),ie=Symbol("IConfigurationService"),et=Symbol("ExtensionContext"),oa=Symbol("IExtensions"),O2=Symbol("IJupyterExtensionBanner"),gP=Symbol("IFeaturesManager"),Ch=Symbol("ICryptoUtils"),No=Symbol("IAsyncDisposableRegistry");var gs=Symbol("IExperimentService"),wh=Symbol("IDataScienceCommandListener"),Eh=Symbol("IVariableScriptGenerator"),Ph=Symbol("IDataFrameScriptGenerator");var Sj=require("vscode");var F2=require("events"),RS=k(N());try{(0,RS.decorate)((0,RS.injectable)(),F2.EventEmitter)}catch(n){p.warn("Failed to decorate EventEmitter for DI (possibly already decorated by another Extension)",n)}var be=class{constructor(e){this.container=e;be._instance=this}static get instance(){return be._instance}get(e,t){return t?this.container.getNamed(e,t):this.container.get(e)}getAll(e,t){return t?this.container.getAllNamed(e,t):this.container.getAll(e)}tryGet(e,t){try{return t?this.container.getNamed(e,t):this.container.get(e)}catch{}}};be=v([(0,RS.injectable)()],be);var It=require("vscode");var Ht=Symbol("IPythonApi"),Be=Symbol("IPythonExtensionChecker");var Cs=k(N());var AS="Python Kernel Debug Adapter",NS="Python Interactive Window Debug Adapter";var bP=require("node-fetch"),OS=k(L2());var kh=require("vscode");var qe=class extends Error{constructor(t,r){super(r);this.category=t;this.isJupyterError=!0}},rn=class n extends qe{constructor(t,r,i){super(i||bA(r),t);this.originalException=r;r&&(this.stack=`${new Error("").stack} ${r.stack}`)}static from(t,r){return r instanceof qe?r:new n(t,r)}static unwrap(t){return t&&(t instanceof n&&t.originalException&&t.originalException instanceof qe&&(t=t.originalException),t)}};function bA(n){return n&&n instanceof qe?n.category:"unknown"}var vs=class extends qe{constructor(t,r,i){super("jupyterconnection",t+(r?` ${r}`:""));this.interpreter=i}};var dn=class extends qe{constructor(){super("sessionDisposed",y.sessionDisposed)}};var vP=class{static outputHasModuleNotInstalledError(e,t){return!!(t&&(t.indexOf(`No module named ${e}`)>0||t.indexOf(`No module named '${e}'`)>0))}};function xh(n=""){if(!n)return;let e=/\S+Error: /g,t=`${n.trim()}: `.split(` `).filter(s=>s.trim().length).reverse();if(t.length===0)return;let r=t[0],o=((r.match(e)?r:void 0)||"").split(":");return o.length&&o[0].endsWith("Error")?o[0]:void 0}function yP(n=""){let e=W2(n);return e?e[1]:void 0}function W2(n=""){if(!n)return;let e=n.trim().split(` `).map(t=>t.trim()).filter(t=>t.trim().length).reverse();if(e.length!==0&&e[0].includes("Error"))return[e.length>1?e[1]:"",e[0]]}function V2(n){if(!n)return;let t=(Array.isArray(n)?n[0]:n).split(` `).map(l=>l.trim().toLowerCase()).filter(l=>l.length).reverse().find(l=>l.startsWith("file ")&&l.includes(", line ")&&l.includes(".py")&&l.includes(".py"));if(!t)return;let i=(t.substring(0,t.lastIndexOf(".py"))+".py").replace(/\\/g,"/").split("/"),o=i.indexOf("site-packages"),s=o>=0&&i.length>o+1?i[o+1]:"",a=i.reverse();if(!(a.length<2))return{fileName:a[0],folderName:a[1],packageName:s}}function Qp(n,e,t,r="",i=[]){let o=e instanceof qe?e.stdErr||e.stack||"":e.toString(),s=W2(o),a=o.toLowerCase();if(e instanceof dn)return{reason:"sessionDisposed",message:y.sessionDisposed,moreInfoLink:"https://aka.ms/kernelDisposedCannotRunCell",telemetrySafeTags:["deadSession"]};if(a.includes("ImportError: No module named 'win32api'".toLowerCase()))return{reason:"importWin32apiFailure",message:y.failedToStartKernelDueToWin32APIFailure,moreInfoLink:"https://aka.ms/kernelFailuresWin32Api",telemetrySafeTags:["win32api"]};if(a.includes("ImportError: DLL load failed".toLowerCase())&&a.includes("win32api"))return{reason:"importWin32apiFailure",message:y.failedToStartKernelDueToWin32APIFailure,moreInfoLink:"https://aka.ms/kernelFailuresWin32Api",telemetrySafeTags:["dll.load.failed","win32api"]};if(a.includes("ImportError: DLL load failed".toLowerCase())){let u=s&&s[0].toLowerCase().startsWith("import")?s[0].substring(6).trim():void 0;return{reason:"dllLoadFailure",moduleName:u,message:u?y.failedToStartKernelDueToDllLoadFailure(u):y.failedToStartKernelDueToUnknownDllLoadFailure,moreInfoLink:"https://aka.ms/kernelFailuresDllLoad",telemetrySafeTags:["dll.load.failed"]}}if(a.includes("AssertionError: Couldn't find Class NSProcessInfo".toLowerCase()))return{reason:"oldIPythonFailure",message:y.failedToStartKernelDueToOldIPython,moreInfoLink:"https://aka.ms/kernelFailuresOldIPython",telemetrySafeTags:["oldipython"]};if(a.includes("NotImplementedError".toLowerCase())&&a.includes("asyncio".toLowerCase())&&a.includes("events.py".toLowerCase()))return{reason:"oldIPyKernelFailure",message:y.failedToStartKernelDueToOldIPyKernel,moreInfoLink:"https://aka.ms/kernelFailuresOldIPyKernel",telemetrySafeTags:["oldipykernel"]};{let u=[];if(a.includes("ImportError: cannot import name".toLowerCase())&&a.includes("from partially initialized module".toLowerCase())&&a.includes("zmq.backend.cython".toLowerCase())&&u.push("zmq.backend.cython"),a.includes("zmq".toLowerCase())&&a.includes("cython".toLowerCase())&&a.includes("__init__.py".toLowerCase())&&u.push("zmq.cython"),a.includes("zmq.error.ZMQError")&&u.push("zmq.error"),u.length)return{reason:"zmqModuleFailure",message:y.failedToStartKernelDueToPyZmqFailure,moreInfoLink:"https://aka.ms/kernelFailuresPyzmq",telemetrySafeTags:u}}if(s&&s[1].toLowerCase().startsWith("importerror")){let u=U2(s[1]);if(u&&r){let d=pee(u.moduleName,u.fileName,n,r);return d||{reason:"importFailure",moduleName:u.moduleName,fileName:u.fileName,message:u.fileName?y.failedToStartKernelDueToImportFailureFromFile(u.moduleName,u.fileName):y.failedToStartKernelDueToImportFailure(u.moduleName),moreInfoLink:u.fileName?"https://aka.ms/kernelFailuresModuleImportErrFromFile":"https://aka.ms/kernelFailuresModuleImportErr",telemetrySafeTags:["import.error"]}}}let l="No module named".toLowerCase(),c="is not a package".toLowerCase();if(a.includes(l)&&!c){let u=Oe(o).map(f=>f.trim()).filter(f=>f.length).find(f=>f.toLowerCase().includes(l)),d=u?u.substring(u.toLowerCase().indexOf(l)+l.length).trim():"";if(u)return{reason:"moduleNotFound",moduleName:d,message:y.failedToStartKernelDueToMissingModule(d),moreInfoLink:"https://aka.ms/kernelFailuresMissingModule",telemetrySafeTags:["module.notfound.error"]}}else if(a.includes(l)&&c){let u=Oe(o).map(I=>I.trim()).filter(I=>I.length).find(I=>I.toLowerCase().includes(l)),d=u?u.substring(u.toLowerCase().indexOf(l)+l.length).trim():"",f="",g="";d.split("'").length>2&&(f=d.split("'").slice(-2)[0]||"",f=f?`${f}.py`:"",g=f||"",d=d.split("'")[1]||d);let b=i.filter(I=>un(I).toLowerCase()==="__init__.py").map(I=>un(yi(I)));return d&&f&&d!==f&&i.some(I=>un(I).toLowerCase()===f.toLowerCase())?{reason:"overridingBuiltinModules",fileName:f,moduleName:d,message:y.fileSeemsToBeInterferingWithKernelStartup(f),moreInfoLink:"https://aka.ms/kernelFailuresOverridingBuiltInModules",telemetrySafeTags:["import.error","override.modules"]}:d&&b&&d!==g&&b.some(I=>I.toLowerCase()===g.toLowerCase())?{reason:"overridingBuiltinModules",folderName:g,moduleName:d,message:y.moduleSeemsToBeInterferingWithKernelStartup(g),moreInfoLink:"https://aka.ms/kernelFailuresOverridingBuiltInModules",telemetrySafeTags:["import.error","override.modules"]}:{reason:"moduleNotFound",moduleName:d,message:y.failedToStartKernelDueToMissingModule(d),moreInfoLink:"https://aka.ms/kernelFailuresMissingModule",telemetrySafeTags:["module.notfound.error"]}}else if(e instanceof qe&&e.category==="invalidkernel"&&i.length){let u=un(i[0]);return{reason:"overridingBuiltinModules",fileName:u,moduleName:un(i[0],".py"),message:y.fileSeemsToBeInterferingWithKernelStartup(u),moreInfoLink:"https://aka.ms/kernelFailuresOverridingBuiltInModules",telemetrySafeTags:["import.error","override.modules"]}}else if(s&&s[1].toLowerCase().startsWith("ModuleNotFoundError".toLowerCase())){let u=U2(s[1]);if(u)return{reason:"moduleNotFound",moduleName:u.moduleName,message:y.failedToStartKernelDueToMissingModule(u.moduleName),moreInfoLink:"https://aka.ms/kernelFailuresMissingModule",telemetrySafeTags:["module.notfound.error"]}}if(e instanceof vs){let u=Oe(o).map(E=>E.trim()).reverse().find(E=>E.toLowerCase().includes("error: ")),d="AttributeError: 'Namespace' object has no attribute '_flags'",f=["jupyter.startup.failure"],g,b="jupyterStartFailure",I=Oe(e.message,{removeEmptyEntries:!0,trim:!0}).reverse().find(E=>E.toLowerCase().includes("error: "));if(I=I||Oe(e.stdErr||"",{removeEmptyEntries:!0,trim:!0}).reverse().find(E=>E.toLowerCase().includes("error: ")),a.includes(d.toLowerCase())?(b="jupyterStartFailureOutdatedTraitlets",u=y.failedToStartJupyterDueToOutdatedTraitlets(t||"",I||""),f.push("outdated.traitlets"),g="https://aka.ms/kernelFailuresJupyterTrailtletsOutdated"):(u=I?y.failedToStartJupyterWithErrorInfo(t||"",I):y.failedToStartJupyter(t||""),g=void 0),u)return{reason:b,message:u,pythonError:I,moreInfoLink:g,telemetrySafeTags:f}}}function U2(n){n=n.replace(/"/g,"'");let e=n.match(/'[^\\']*(\\'[^\\']*)*'/g),t=n.match(/\((.*?)\)/g),r,i;return e&&e[0].length>2&&(r=e[0],r=r.substring(1,r.length-1)),t&&t[0].length>2&&(i=t[0],i=i.substring(1,i.length-1)),r?{moduleName:r,fileName:i}:void 0}function pee(n,e,t,r){if(r&&t.length!==0&&e&&!e.toLowerCase().startsWith(r)&&t.some(i=>e.toLowerCase().startsWith(i.uri.fsPath.toLowerCase())))return{reason:"overridingBuiltinModules",fileName:e,moduleName:n,message:y.fileSeemsToBeInterferingWithKernelStartup(j(kh.Uri.file(e),t||[])),moreInfoLink:"https://aka.ms/kernelFailuresOverridingBuiltInModules",telemetrySafeTags:["import.error","override.modules"]}}function Dh(n){if(!n)return;let e=/\[([^\[\]]*)\]\((.*?)\)/gm,t;for(;(t=e.exec(n))!==null;)t.length===3&&(n=n.replace(t[0],`${t[1]}`));let r=Oe(n,{removeEmptyEntries:!1,trim:!1}).map(i=>`\x1B[1;31m${i}`).join(` `);return new kh.NotebookCellOutput([kh.NotebookCellOutputItem.error({message:"",name:"",stack:r})])}var mee=[fee,hee];function j2(n){let e=[],t=Array.isArray(n)?n[0].toLowerCase():n.toLowerCase();mee.forEach(i=>i(t,e));let r=Qp([],t,void 0);return r?.telemetrySafeTags.length&&e.push(...r.telemetrySafeTags),Array.from(new Set(e)).join(",")}function fee(n,e=[]){n.includes("ChildProcess.exithandler".toLowerCase())&&e.push("childproc.exit")}function hee(n,e=[]){n.includes("KernelRestarter: restart failed".toLowerCase())&&e.push("KernelRestarter.failed")}function J2(){return(new Error().stack||"").split(` `).filter(n=>n.includes(Fe))}async function B2(n,e){n.failed=!0,n.failureCategory=n.failureCategory||bA(e);let t=!bP.FetchError&&e?.name==="TypeError"&&e?.message==="Failed to fetch",i=(t||bP.FetchError!==void 0)&&yee(e,t?TypeError:bP.FetchError);n.failureCategory==="unknown"&&i&&(n.failureCategory="fetcherror"),n.stackTrace=gee(e),typeof e=="string"&&(n.failureSubCategory="errorisstring");let o=e.stdErr?e.stdErr:e.stack||"";if(!o)return;n.failureSubCategory=n.failureSubCategory||j2(o);let s=V2(o);s&&([n.pythonErrorFile,n.pythonErrorFolder,n.pythonErrorPackage]=await Promise.all([Promise.resolve(n.pythonErrorFile||at(s.fileName)),Promise.resolve(n.pythonErrorFolder||at(s.folderName)),Promise.resolve(n.pythonErrorPackage||at(s.packageName))]))}function IA(n){if(n.stack&&Array.isArray(n.stack)){let e={...n,stack:n.stack.join(` `)};return OS.parse.call(OS,e)}return OS.parse.call(OS,n)}function gee(n){let e="";for(let t of IA(n)){let r=t.getFileName();if(r){let i=t.getLineNumber(),o=t.getColumnNumber();e+=` at ${vee(t)} ${r}:${i}:${o}`}else e+=` at `}return e.trim().replace(/\\/g,"/")}function vee(n){let e=[];return typeof n.getTypeName()=="string"&&n.getTypeName().length>0&&e.push(n.getTypeName()),typeof n.getMethodName()=="string"&&n.getMethodName().length>0&&e.push(n.getMethodName()),typeof n.getFunctionName()=="string"&&n.getFunctionName().length>0&&(e.length!==2||e.join(".")!==n.getFunctionName())&&e.push(n.getFunctionName()),e.join(".")}function yee(n,e){return e?n instanceof e||n instanceof rn&&n.originalException instanceof e:(console.error("Error type is not defined",n),!1)}var IP=require("vscode");function bee(){try{return require("vscode")===void 0?!1:H2()!==void 0}catch{return!1}}function CP(){return IP.workspace.getConfiguration("telemetry").inspect("enableTelemetry").globalValue===!1}function wP(n){return IP.workspace.onDidChangeConfiguration(e=>{if(!e.affectsConfiguration("telemetry"))return;let r=IP.workspace.getConfiguration("telemetry").inspect("enableTelemetry").globalValue===!1;n(r)})}var SP={};function _h(n,e){let t=n;cS()&&t.startsWith("ds_")||(e===void 0?delete SP[t]:SP[t]=e)}var SA;function H2(){if(SA)return SA;let n=require("@vscode/extension-telemetry").default;return SA=new n(lU)}function $2(n,e){let t={};return Object.getOwnPropertyNames(e).forEach(r=>{if(!(e[r]===void 0||e[r]===null))try{t[r]=typeof e[r]=="string"?e[r]:typeof e[r]=="object"?"object":e[r].toString()}catch(i){p.error(`Failed to serialize ${r} for ${n}`,i)}}),t}function R(n,e,t,r){!G2(n.toString())&&(Er()||!bee())||Iee(n,e,t,r)}function G2(n){return n==="DATASCIENCE.JUPYTER_NOTEBOOK_EDIT_PERFORMANCE"||n==="DATASCIENCE.JUPYTER_JUPYTER_NOTEBOOK_EXEC_PERFORMANCE"||n==="DATASCIENCE.JUPYTER_NOTEBOOK_EXEC_PERFORMANCE"}function Iee(n,e,t,r){let i=H2(),o={},s=n;r?(o={},Object.assign(o,SP),Object.assign(o,t||{}),B2(o,r).then(()=>{o=$2(s,o),i.sendTelemetryEvent(s,o,e)}).catch(h)):(t&&(o=$2(s,t)),Object.assign(o,SP),G2(s)?i.sendDangerousTelemetryEvent(s,o,e):i.sendTelemetryEvent(s,o,e))}var q2=new Set;function or(n,e){return function(t,r,i){let o=i.value;return i.value=function(...s){let a=e||{},l=new Ue,c=`${n.toString()}${JSON.stringify(a)}`,u=!q2.has(c);q2.add(c);let d=o.apply(this,s);return d&&typeof d.then=="function"&&typeof d.catch=="function"?d.then(f=>{let g={...a};return u&&(g.firstTime=u),R(n,l?{duration:l?.elapsedTime}:void 0,g),f}).catch(f=>{let g={...a};g.failed=!0,R(n,l?{duration:l?.elapsedTime}:{},g,f)}):R(n,l?{duration:l?.elapsedTime}:void 0,a),d},i}}function Hr(n,e){return function(t,r,i){let o=i.value;return i.value=function(...s){return R(n,void 0,e),o.apply(this,s)},i}}function See(){return{isInsiderExtension:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Whether this is the Insider version of the Jupyter extension or not. Common to all events."},isPythonExtensionInstalled:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Whether Python extension is installed or not. Common to all events."},rawKernelSupported:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Whether the raw kernel is supported or not. Common to all events."}}}function vt(){return{duration:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth",isMeasurement:!0}}}function ao(){return{resourceType:{classification:"PublicNonPersonalData",comment:"",purpose:"FeatureInsight"}}}function Ec(){return{failed:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},failureCategory:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},failureSubCategory:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonErrorFile:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonErrorFolder:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonErrorPackage:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},stackTrace:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"}}}function Ei(){return{properties:{actionSource:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},disableUI:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},userExecutedCell:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},resourceHash:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"},pythonEnvironmentVersion:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonEnvironmentType:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonEnvironmentPath:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},pythonEnvironmentPackages:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},kernelSessionId:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},kernelLanguage:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},kernelSpecHash:{classification:"EndUserPseudonymizedInformation",purpose:"FeatureInsight"},kernelId:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},kernelConnectionType:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},isUsingActiveInterpreter:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},capturedEnvVars:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},newKernelPicker:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"},...ao()}}}var Yye={...vt(),...Ec(),...See()};var Cee,wee,Eee,Pee,kee,xee,Dee,_ee,Tee,Ree,Aee,Nee,Mee,Kee,Oee,Fee,Lee,Uee,Wee,Vee,jee,Jee,Bee,$ee,qee,Hee,Gee,zee,Qee,Yee,Xee,Zee,ete,tte,rte,nte,ite,ote,ste,ate,lte,cte,ute,dte,pte,mte,fte,hte,gte,vte,yte,bte,Ite,Ste,Cte,wte,Ete,Pte,kte,xte,Dte,_te,Tte,Rte,Ate,Nte,Mte,Kte,Ote,Fte,Lte,Ute,Wte,Vte,jte,Jte,Bte,$te,qte,Hte,Gte,zte,Qte,Yte,Xte,Zte,ere,tre,rre,nre,ire,ore,sre,are,lre,cre,ure,dre,pre,mre,fre,hre,gre,vre,yre,bre,Ire,Sre,Cre,wre,Ere,Pre,kre,xre,Dre,_re,Tre,Rre,Are,Nre,Mre,Kre,Ore,Fre,Lre,Ure,Wre,Vre,jre,Jre,Bre,$re,qre,Hre,Gre,zre,Qre,Yre,Xre,Zre,ene,tne,rne,nne,ine,one,sne,ane,lne,cne,une,dne,pne,mne,fne,hne,gne,vne,yne,bne,Ine,Sne,z2=class{constructor(){this[Cee]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:{totalActivateTime:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},codeLoadingTime:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},workspaceFolderCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0}}};this[wee]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:vt()};this[Eee]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[Pee]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[kee]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{hashedNamev2:{classification:"SystemMetaData",purpose:"FeatureInsight"},when:{classification:"SystemMetaData",purpose:"FeatureInsight"},...ao()}};this[xee]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{firstTime:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}},measures:vt()};this[Dee]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{mimeType:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},when:{classification:"SystemMetaData",purpose:"FeatureInsight"},...ao()}};this[_ee]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{envType:{classification:"SystemMetaData",purpose:"FeatureInsight"},failed:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},reason:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},source:{classification:"SystemMetaData",purpose:"FeatureInsight"}},measures:vt()};this[Tee]={owner:"IanMatthewHuff",source:"User Action",feature:["DataFrameViewer","VariableViewer"]};this[Ree]={owner:"IanMatthewHuff",source:"N/A",feature:["DataFrameViewer","VariableViewer"]};this[Aee]={owner:"IanMatthewHuff",source:"User Action",feature:["DataFrameViewer","VariableViewer"]};this[Nee]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action",measures:vt()};this[Mee]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action",measures:vt()};this[Kee]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:{codeLensUpdateTime:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},maxCellCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0}}};this[Oee]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Fee]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Lee]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Uee]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Wee]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Vee]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"],properties:{...Ec(),failed:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},reason:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Reason for failure to fetch kernel specs"},sessionManagerReady:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},specsManagerReady:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},wasSessionManagerReady:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},wasSpecsManagerReady:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}},measures:vt()};this[jee]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{kernelSpecHash:{classification:"EndUserPseudonymizedInformation",purpose:"FeatureInsight"},serverIdHash:{classification:"SystemMetaData",purpose:"FeatureInsight"},providerExtensionId:{classification:"SystemMetaData",purpose:"FeatureInsight"},baseUrlHash:{classification:"SystemMetaData",purpose:"FeatureInsight"},kernelId:{classification:"SystemMetaData",purpose:"FeatureInsight"},kernelConnectionType:{classification:"SystemMetaData",purpose:"FeatureInsight"},kernelLanguage:{classification:"SystemMetaData",purpose:"FeatureInsight"},envType:{classification:"SystemMetaData",purpose:"FeatureInsight"},isArgv0SameAsInterpreter:{classification:"SystemMetaData",purpose:"FeatureInsight"},argv0:{classification:"SystemMetaData",purpose:"FeatureInsight"},argv:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Jee]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"],properties:{serverIdHash:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},baseUrlHash:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},failed:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"},isLocalHost:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"},isJupyterHub:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"},reason:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"}}};this[Bee]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[$ee]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[qee]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"],properties:Ei().properties,measures:{...vt()}};this[Hee]={owner:"IanMatthewHuff",feature:["Import-Export","InteractiveWindow"],source:"User Action"};this[Gee]={owner:"IanMatthewHuff",feature:["Import-Export","InteractiveWindow"],source:"User Action"};this[zee]={owner:"IanMatthewHuff",feature:["Import-Export","InteractiveWindow"],source:"User Action",properties:{format:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Qee]={owner:"IanMatthewHuff",feature:["Import-Export"],source:"N/A",properties:{format:{classification:"SystemMetaData",purpose:"FeatureInsight"},cancelled:{classification:"SystemMetaData",purpose:"FeatureInsight"},successful:{classification:"SystemMetaData",purpose:"FeatureInsight"},opened:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Yee]={owner:"IanMatthewHuff",feature:["Import-Export"],source:"User Action",properties:{scope:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Xee]={owner:"IanMatthewHuff",feature:["Import-Export"],source:"User Action",properties:{format:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Zee]={owner:"IanMatthewHuff",feature:["Import-Export"],source:"N/A",properties:{format:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[ete]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[tte]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[rte]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{failed:{classification:"SystemMetaData",purpose:"FeatureInsight"},info:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[nte]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[ite]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[ote]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[ste]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[ate]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:{nbformat:{classification:"PublicNonPersonalData",isMeasurement:!0,purpose:"FeatureInsight"},nbformat_minor:{classification:"PublicNonPersonalData",isMeasurement:!0,purpose:"FeatureInsight"}}};this[lte]={owner:"IanMatthewHuff",feature:["PlotViewer"],source:"User Action"};this[cte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[ute]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[dte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[pte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[mte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[fte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[hte]={owner:"amunger",feature:["InteractiveWindow"],source:"User Action"};this[gte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A"};this[vte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A"};this[yte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[bte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Ite]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Ste]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Cte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[wte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Ete]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Pte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[kte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[xte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Dte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[_te]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Tte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Rte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Ate]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",measures:vt()};this[Nte]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[Mte]={owner:"donjayamanne",feature:"N/A",source:"N/A"};this[Kte]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"]};this[Ote]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[Fte]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"]};this[Lte]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[Ute]={owner:"IanMatthewHuff",feature:["KernelPicker"],source:"User Action",properties:{action:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Wte]={owner:"donjayamanne",feature:["KernelPicker"],source:"User Action",properties:{action:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Vte]={owner:"donjayamanne",feature:["KernelPicker"],source:"User Action",properties:{action:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[jte]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{action:{classification:"SystemMetaData",purpose:"FeatureInsight"},isModulePresent:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},moduleName:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},pythonEnvType:{classification:"SystemMetaData",purpose:"FeatureInsight"},resourceHash:{classification:"SystemMetaData",purpose:"FeatureInsight"},...ao()},measures:vt()};this[Jte]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A"};this[Bte]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"User Action",measures:vt()};this[$te]={owner:"IanMatthewHuff",source:"N/A",feature:["DataFrameViewer"],measures:{rows:{classification:"PublicNonPersonalData",purpose:"FeatureInsight",isMeasurement:!0},columns:{classification:"PublicNonPersonalData",purpose:"FeatureInsight",isMeasurement:!0}}};this[qte]={owner:"IanMatthewHuff",source:"N/A",feature:["DataFrameViewer"],measures:{rowsTimer:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}}};this[Hte]={owner:"IanMatthewHuff",feature:["DataFrameViewer","VariableViewer"],source:"N/A"};this[Gte]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"User Action"};this[zte]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{failed:{classification:"SystemMetaData",purpose:"FeatureInsight"},fallbackTried:{classification:"SystemMetaData",purpose:"FeatureInsight"},alpine:{classification:"SystemMetaData",purpose:"FeatureInsight"},zmqarch:{classification:"SystemMetaData",purpose:"FeatureInsight"},libc:{classification:"SystemMetaData",purpose:"FeatureInsight"},armv:{classification:"SystemMetaData",purpose:"FeatureInsight"},distro_id:{classification:"SystemMetaData",purpose:"FeatureInsight"},distro_version_id:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Qte]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{failed:{classification:"SystemMetaData",purpose:"FeatureInsight"},fallbackTried:{classification:"SystemMetaData",purpose:"FeatureInsight"},alpine:{classification:"SystemMetaData",purpose:"FeatureInsight"},zmqarch:{classification:"SystemMetaData",purpose:"FeatureInsight"},libc:{classification:"SystemMetaData",purpose:"FeatureInsight"},armv:{classification:"SystemMetaData",purpose:"FeatureInsight"},distro_id:{classification:"SystemMetaData",purpose:"FeatureInsight"},distro_version_id:{classification:"SystemMetaData",purpose:"FeatureInsight"},errorMessage:{classification:"CallstackOrException",purpose:"FeatureInsight"},fallbackErrorMessage:{classification:"CallstackOrException",purpose:"FeatureInsight"},zmqBinaries:{classification:"CallstackOrException",purpose:"FeatureInsight"}}};this[Yte]={owner:"IanMatthewHuff",feature:["VariableViewer"],source:"N/A",measures:vt()};this[Xte]={owner:"IanMatthewHuff",feature:["VariableViewer"],source:"N/A",measures:{variableCount:{classification:"PublicNonPersonalData",purpose:"FeatureInsight",isMeasurement:!0}}};this[Zte]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"],properties:{kind:{classification:"SystemMetaData",purpose:"FeatureInsight"},language:{classification:"SystemMetaData",purpose:"FeatureInsight"},usesShell:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[ere]={owner:"donjayamanne",feature:"N/A",source:"N/A",tags:["KernelStartup"],properties:{...Ec(),...ao()},measures:{...vt()}};this[tre]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{kernelConnectionType:{classification:"SystemMetaData",purpose:"FeatureInsight"},pythonPathDefined:{classification:"SystemMetaData",purpose:"FeatureInsight"},pythonEnvFound:{classification:"SystemMetaData",purpose:"FeatureInsight"},language:{classification:"SystemMetaData",purpose:"FeatureInsight"},kernelSpecHash:{classification:"EndUserPseudonymizedInformation",purpose:"FeatureInsight"},argv0:{classification:"SystemMetaData",purpose:"FeatureInsight"},isCreatedByUs:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[rre]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A"};this[nre]={owner:"amunger",feature:["InteractiveWindow"],source:"N/A",properties:{hasKernel:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"If the kernel was known at the time of creation"},hasOwner:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"If the window was created for a text file"},mode:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Creation mode: multiple, perfile or single"},restored:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Was the window restored from a previous session"}},measures:{windowCount:{classification:"SystemMetaData",purpose:"FeatureInsight",comment:"Number of active interactive windows the user has open",isMeasurement:!0}}};this[ire]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{cdnSearched:{classification:"SystemMetaData",purpose:"FeatureInsight"},hashedName:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},source:{classification:"SystemMetaData",purpose:"FeatureInsight"},moduleName:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},modelName:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},moduleVersion:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[ore]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{type:{classification:"SystemMetaData",purpose:"FeatureInsight"}},measures:vt()};this[sre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A"};this[are]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{moduleHash:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},moduleVersion:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[lre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{timedout:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},isOnline:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},moduleHash:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},moduleVersion:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[cre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{moduleHash:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},moduleVersion:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[ure]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A"};this[dre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{selection:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[pre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A"};this[mre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],tags:["Widgets"],source:"N/A",properties:{msg_type:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"}}};this[fre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",tags:["KernelStartup"],measures:{...vt(),attempts:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0}},properties:{...Ei().properties,timedout:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}}};this[hre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",tags:["KernelStartup"],measures:vt()};this[gre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"User Action",tags:["Cell Execution"],measures:{...vt()},properties:{...Ei().properties,...Ec()}};this[vre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"User Action",tags:["Code Execution"],measures:vt(),properties:{...Ei().properties,...Ec(),extensionId:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[yre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"User Action",tags:["Cell Execution"],properties:{...Ei().properties,...Ec()}};this[bre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",tags:["KernelStartup"],properties:{...Ei().properties,...Ec()}};this[Ire]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:Ei().properties};this[Sre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"User Action",properties:{result:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},...ao(),...Ec(),...Ei().properties},measures:{...vt()}};this[Cre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"User Action",properties:{...ao(),...Ec(),...Ei().properties},measures:vt()};this[wre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{...ao(),...Ei().properties},measures:{reason:{classification:"SystemMetaData",isMeasurement:!0,purpose:"PerformanceAndHealth"}}};this[Ere]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{exitReason:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},...ao(),...Ei().properties},measures:{exitCode:{classification:"CallstackOrException",purpose:"PerformanceAndHealth",isMeasurement:!0}}};this[Pre]={owner:"donjayamanne",feature:["Notebook"],source:"N/A",properties:{...ao(),...Ei().properties,manuallySelectedKernel:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},wasAlreadyOpen:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}},measures:{...vt(),computeCwd:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},duration:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},envVars:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},executeCell:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},getConnection:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},interruptHandle:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},kernelIdle:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},kernelInfo:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},kernelReady:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},portUsage:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},postKernelStart:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},preExecuteCellTelemetry:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},pythonEnvVars:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},sessionTelemetry:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},spawn:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},startKernel:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},startupCode:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},updateConnection:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},codeCellCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},mdCellCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},codeCellCharLength:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},mdCellCharLength:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},outputCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},outputsByteSize:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},attachmentCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},attachmentCharLength:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0}}};this[kre]={owner:"donjayamanne",feature:["Notebook"],source:"N/A",properties:{...ao(),...Ei().properties,wasAlreadyOpen:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}},measures:{...vt(),callPythonApi:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},activatePython:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},discoverEnv:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},createController:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},selectController:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0}}};this[xre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{isRequestToShutdownRestartSession:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},stacktrace:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},...ao(),...Ei().properties}};this[Dre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{stacktrace:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},...ao(),...Ei().properties}};this[_re]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Tre]={owner:"donjayamanne",feature:["KernelPicker"],source:"N/A",measures:{kernelSpecCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},kernelInterpreterCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},kernelLiveCount:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0},localKernelSpecCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},remoteKernelSpecCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0}}};this[Rre]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{outputType:{classification:"PublicNonPersonalData",purpose:"PerformanceAndHealth"}}};this[Are]={owner:"IanMatthewHuff",feature:["InteractiveWindow"],tags:["IntelliSense"],source:"N/A",measures:vt(),properties:{isResultNull:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Nre]={owner:"IanMatthewHuff",feature:["VariableViewer"],source:"N/A",measures:vt()};this[Mre]={owner:"IanMatthewHuff",feature:["VariableViewer"],source:"N/A"};this[Kre]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A",measures:vt()};this[Ore]={owner:"IanMatthewHuff",feature:["PlotViewer"],source:"N/A",measures:vt()};this[Fre]={owner:"amunger",feature:"N/A",source:"N/A",properties:{command:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Lre]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"User Action",properties:{newState:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Ure]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A",measures:{numberOfDimensions:{classification:"SystemMetaData",purpose:"FeatureInsight",isMeasurement:!0}}};this[Wre]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"User Action",properties:{source:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Vre]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{failed:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},reason:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},dependenciesInstalled:{classification:"SystemMetaData",purpose:"FeatureInsight"},envType:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[jre]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{extensionId:{classification:"SystemMetaData",purpose:"FeatureInsight"},action:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Jre]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Bre]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[$re]={owner:"roblourens",feature:["Debugger"],properties:{status:{classification:"SystemMetaData",purpose:"FeatureInsight"}},source:"N/A"};this[qre]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Hre]={owner:"roblourens",feature:["Debugger"],source:"N/A"};this[Gre]={owner:"roblourens",feature:["Debugger"],source:"N/A"};this[zre]={owner:"roblourens",feature:["Debugger"],source:"User Action"};this[Qre]={owner:"roblourens",feature:["Debugger"],source:"N/A"};this[Yre]={owner:"roblourens",feature:["Debugger"],source:"N/A",properties:{reason:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[Xre]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:{...vt(),requestDuration:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},timesExceededTimeout:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0},completionItems:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",isMeasurement:!0}},properties:{kernelConnectionType:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelLanguage:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},monacoLanguage:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},cancelled:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},completed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelStatusAfterRequest:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelStatusBeforeRequest:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},requestSent:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[Zre]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{kernelConnectionType:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelLanguage:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[ene]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},pemUsed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[tne]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:{executionCount:{classification:"SystemMetaData",isMeasurement:!0,purpose:"FeatureInsight"}},properties:{extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},pemUsed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[rne]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{accessAllowed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},pemUsed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[nne]={owner:"donjayamanne",feature:"N/A",source:"N/A",measures:{executionCount:{classification:"SystemMetaData",isMeasurement:!0,purpose:"FeatureInsight"},cancelledAfter:{classification:"SystemMetaData",isMeasurement:!0,purpose:"FeatureInsight"},requestAcknowledgedAfter:{classification:"SystemMetaData",isMeasurement:!0,purpose:"FeatureInsight"},requestSentAfter:{classification:"SystemMetaData",isMeasurement:!0,purpose:"FeatureInsight"},...vt()},properties:{extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},kernelId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},cancelled:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},requestAcknowledged:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},requestSent:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},cancelledBeforeRequestAcknowledged:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},cancelledBeforeRequestSent:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},mimeTypes:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},failed:{classification:"PublicNonPersonalData",comment:"",purpose:"PerformanceAndHealth"}}};this[ine]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{clientExtId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},pemUsed:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}}};this[one]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},allowed:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[sne]={owner:"donjayamanne",feature:"N/A",source:"N/A",properties:{extensionId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"},providerId:{classification:"PublicNonPersonalData",purpose:"FeatureInsight"}},measures:vt()};this[ane]={owner:"IanMatthewHuff",feature:["VariableViewer"],source:"N/A"};this[lne]={owner:"roblourens",feature:["InteractiveWindow","Debugger"],source:"N/A"};this[cne]={owner:"donjayamanne",feature:["Notebook","InteractiveWindow"],source:"N/A",properties:{...Ei().properties,...ao()}};this[une]={owner:"donjayamanne",source:"N/A",feature:["KernelPicker"]};this[dne]={owner:"donjayamanne",source:"User Action",feature:["KernelPicker"]};this[pne]={owner:"amunger",feature:"N/A",source:"N/A",properties:{testName:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},testResult:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},perfWarmup:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},commitHash:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},timedCheckpoints:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"}}};this[mne]={owner:"donjayamanne",feature:["KernelPicker"],source:"N/A",measures:{matchedReason:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[fne]={owner:"donjayamanne",feature:["Notebook","Notebook"],tags:["Widgets"],source:"N/A",measures:{requireEntryPointCount:{classification:"SystemMetaData",isMeasurement:!0,purpose:"PerformanceAndHealth"}},properties:{failed:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},failure:{classification:"CallstackOrException",purpose:"PerformanceAndHealth"},patternUsedToRegisterRequireConfig:{classification:"SystemMetaData",purpose:"PerformanceAndHealth"},widgetFolderNameHash:{classification:"SystemMetaData",purpose:"FeatureInsight"}}};this[hne]={owner:"donjayamanne",feature:["Notebook","Notebook"],tags:["Widgets"],source:"N/A",measures:vt()};this[gne]={owner:"donjayamanne",feature:["DataFrameViewer"],source:"N/A"};this[vne]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[yne]={owner:"IanMatthewHuff",feature:["DataFrameViewer"],source:"N/A"};this[bne]={owner:"donjayamanne",feature:["Notebook","Notebook"],tags:["Widgets"],source:"N/A",measures:{...vt(),codeCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of code cells.",isMeasurement:!0},markdownCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of markdown cells.",isMeasurement:!0},preExecuteDuration:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total time spent in VS Code before starting execution.",isMeasurement:!0},executeDuration:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total time spent executing cells.",isMeasurement:!0},postExecuteDuration:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total time spent in VS Code after executing cells.",isMeasurement:!0}},properties:{outputType:{classification:"PublicNonPersonalData",purpose:"FeatureInsight",comment:"The kind of outputs generated in the notebook, text, html or images."}}};this[Ine]={owner:"donjayamanne",feature:["Notebook","Notebook"],tags:["Widgets"],source:"N/A",measures:{...vt(),codeCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of code cells.",isMeasurement:!0},markdownCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of markdown cells.",isMeasurement:!0}},properties:{outputType:{classification:"PublicNonPersonalData",purpose:"FeatureInsight",comment:"The kind of outputs generated in the notebook, text, html or images."}}};this[Sne]={owner:"donjayamanne",feature:["Notebook","Notebook"],tags:["Widgets"],source:"N/A",measures:{...vt(),codeCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of code cells.",isMeasurement:!0},markdownCellCount:{classification:"SystemMetaData",purpose:"PerformanceAndHealth",comment:"Total number of markdown cells.",isMeasurement:!0}}}}static{Cee="EXTENSION.LOAD",wee="DS_INTERNAL.EXPERIMENT_LOAD",Eee="ENVFILE_VARIABLE_SUBSTITUTION",Pee="ENVFILE_WORKSPACE",kee="HASHED_PACKAGE_NAME",xee="DS_INTERNAL.ACTIVE_INTERPRETER_LISTING_PERF",Dee="DS_INTERNAL.CELL_OUTPUT_MIME_TYPE",_ee="DS_INTERNAL.GET_ACTIVATED_ENV_VARIABLES",Tee="OPEN_DATAVIEWER_FROM_VARIABLE_WINDOW_REQUEST_EX",Ree="OPEN_DATAVIEWER_FROM_VARIABLE_WINDOW_ERROR_EX",Aee="OPEN_DATAVIEWER_FROM_VARIABLE_WINDOW_SUCCESS_EX",Nee="DATASCIENCE.ADD_CELL_BELOW",Mee="DS_INTERNAL.CODE_LENS_ACQ_TIME",Kee="DS_INTERNAL.DOCUMENT_WITH_CODE_CELLS",Oee="DATASCIENCE.DEBUG_CONTINUE",Fee="DATASCIENCE.DEBUG_CURRENT_CELL",Lee="DATASCIENCE.DEBUG_STEP_OVER",Uee="DATASCIENCE.DEBUG_STOP",Wee="DATASCIENCE.DEBUG_FILE_INTERACTIVE",Vee="DATASCIENCE.JUPYTER_KERNEL_SPEC_FETCH_FAILURE",jee="DS_INTERNAL.JUPYTER_KERNEL_SPEC",Jee="DATASCIENCE.ENTER_REMOTE_JUPYTER_URL",Bee="DATASCIENCE.DISABLE_INTERACTIVE_SHIFT_ENTER",$ee="DATASCIENCE.ENABLE_INTERACTIVE_SHIFT_ENTER",qee="DS_INTERNAL.PERCEIVED_JUPYTER_STARTUP_NOTEBOOK",Hee="DATASCIENCE.EXPORT_PYTHON_FILE",Gee="DATASCIENCE.EXPORT_PYTHON_FILE_AND_OUTPUT",zee="DATASCIENCE.CLICKED_EXPORT_NOTEBOOK_AS_QUICK_PICK",Qee="DATASCIENCE.EXPORT_NOTEBOOK_AS",Yee="DATASCIENCE.IMPORT_NOTEBOOK",Xee="DATASCIENCE.EXPORT_NOTEBOOK_AS_COMMAND",Zee="DATASCIENCE.EXPORT_NOTEBOOK_AS_FAILED",ete="DS_INTERNAL.GET_PASSWORD_FAILURE",tte="DS_INTERNAL.GET_PASSWORD_SUCCESS",rte="DS_INTERNAL.JUPYTER_HUB_PASSWORD",nte="DS_INTERNAL.SHOW_DATA_NO_PANDAS",ite="DS_INTERNAL.SHOW_DATA_PANDAS_TOO_OLD",ote="DS_INTERNAL.SHOW_DATA_PANDAS_OK",ste="DS_INTERNAL.SHOW_DATA_PANDAS_INSTALL_CANCELED",ate="DATASCIENCE.NATIVE.OPEN_NOTEBOOK_ALL",lte="DATASCIENCE.OPEN_PLOT_VIEWER",cte="DATASCIENCE.RUN_ALL_CELLS",ute="DATASCIENCE.RUN_SELECTION_OR_LINE",dte="DATASCIENCE.RUN_CURRENT_CELL",pte="DATASCIENCE.RUN_ALL_CELLS_ABOVE",mte="DATASCIENCE.RUN_CELL_AND_ALL_BELOW",fte="DATASCIENCE.RUN_CURRENT_CELL_AND_ADVANCE",hte="DATASCIENCE.RUN_FILE_INTERACTIVE",gte="DATASCIENCE.RUN_TO_LINE",vte="DATASCIENCE.RUN_FROM_LINE",yte="DATASCIENCE.RUN_INSERT_CELL_BELOW_POSITION",bte="DATASCIENCE.RUN_INSERT_CELL_BELOW",Ite="DATASCIENCE.RUN_INSERT_CELL_ABOVE",Ste="DATASCIENCE.RUN_DELETE_CELLS",Cte="DATASCIENCE.RUN_SELECT_CELL",wte="DATASCIENCE.RUN_SELECT_CELL_CONTENTS",Ete="DATASCIENCE.RUN_EXTEND_SELECTION_BY_CELL_ABOVE",Pte="DATASCIENCE.RUN_EXTEND_SELECTION_BY_CELL_BELOW",kte="DATASCIENCE.RUN_MOVE_CELLS_UP",xte="DATASCIENCE.RUN_MOVE_CELLS_DOWN",Dte="DATASCIENCE.RUN_CHANGE_CELL_TO_MARKDOWN",_te="DATASCIENCE.RUN_CHANGE_CELL_TO_CODE",Tte="DATASCIENCE.GOTO_NEXT_CELL_IN_FILE",Rte="DATASCIENCE.GOTO_PREV_CELL_IN_FILE",Ate="DATASCIENCE.RUN_CURRENT_CELL_AND_ADD_BELOW",Nte="DATASCIENCE.SELFCERTSMESSAGECLOSE",Mte="DATASCIENCE.SELFCERTSMESSAGEENABLED",Kte="DATASCIENCE.USER_INSTALLED_JUPYTER",Ote="DATASCIENCE.USER_INSTALLED_PANDAS",Fte="DATASCIENCE.USER_DID_NOT_INSTALL_JUPYTER",Lte="DATASCIENCE.USER_DID_NOT_INSTALL_PANDAS",Ute="DS_INTERNAL.PYTHON_NOT_INSTALLED",Wte="DS_INTERNAL.PYTHON_EXTENSION_NOT_INSTALLED",Vte="DS_INTERNAL.PYTHON_EXTENSION_INSTALLED_VIA_KERNEL_PICKER",jte="DS_INTERNAL.PYTHON_MODULE_INSTALL",Jte="DS_INTERNAL.SHIFTENTER_BANNER_SHOWN",Bte="DATASCIENCE.START_SHOW_DATA_EXPLORER",$te="DATASCIENCE.SHOW_DATA_EXPLORER",qte="DATASCIENCE.SHOW_DATA_EXPLORER_ROWS_LOADED",Hte="DATASCIENCE.FAILED_SHOW_DATA_EXPLORER",Gte="DATASCIENCE.REFRESH_DATA_VIEWER",zte="DS_INTERNAL.JUPYTER_ZMQ_SUPPORT",Qte="DS_INTERNAL.JUPYTER_ZMQ_SUPPORT_FAILURE",Yte="DS_INTERNAL.VARIABLE_EXPLORER_FETCH_TIME",Xte="DS_INTERNAL.VARIABLE_EXPLORER_VARIABLE_COUNT",Zte="DATASCIENCE.KERNEL_SPEC_LANGUAGE",ere="DS_INTERNAL.KERNEL_LAUNCHER_PERF",tre="GLOBAL_PYTHON_KERNELSPEC",rre="DS_INTERNAL.NEW_FILE_USED_IN_INTERACTIVE",nre="DS_INTERNAL.CREATED_INTERACTIVE_WINDOW",ire="DS_INTERNAL.IPYWIDGET_USED_BY_USER",ore="DS_INTERNAL.IPYWIDGET_DISCOVER_WIDGETS_NB_EXTENSIONS",sre="DS_INTERNAL.IPYWIDGET_DISCOVERY_ERRORED",are="DS_INTERNAL.IPYWIDGET_LOAD_SUCCESS",lre="DS_INTERNAL.IPYWIDGET_LOAD_FAILURE",cre="DS_INTERNAL.IPYWIDGET_WIDGET_VERSION_NOT_SUPPORTED_LOAD_FAILURE",ure="DS_INTERNAL.IPYWIDGET_PROMPT_TO_USE_CDN",dre="DS_INTERNAL.IPYWIDGET_PROMPT_TO_USE_CDN_SELECTION",pre="DS_INTERNAL.IPYWIDGET_RENDER_FAILURE",mre="DS_INTERNAL.IPYWIDGET_UNHANDLED_MESSAGE",fre="DS_INTERNAL.RAWKERNEL_INFO_RESPONSE",hre="DS_INTERNAL.RAWKERNEL_PROCESS_LAUNCH",gre="DATASCIENCE.EXECUTE_CELL",vre="DATASCIENCE.EXECUTE_CODE",yre="DATASCIENCE.RESUME_EXECUTE_CELL",bre="DATASCIENCE.NOTEBOOK_START",Ire="DS_INTERNAL.SWITCH_KERNEL",Sre="DATASCIENCE.NOTEBOOK_INTERRUPT",Cre="DATASCIENCE.NOTEBOOK_RESTART",wre="DS_INTERNAL.RAWKERNEL_SESSION_NO_IPYKERNEL",Ere="DS_INTERNAL.RAWKERNEL_SESSION_KERNEL_PROCESS_EXITED",Pre="DATASCIENCE.NOTEBOOK_FIRST_START_BREAKDOWN",kre="DATASCIENCE.NOTEBOOK_FIRST_KERNEL_AUTO_SELECTION_BREAKDOWN",xre="DS_INTERNAL.RAWKERNEL_SESSION_SHUTDOWN",Dre="DS_INTERNAL.RAWKERNEL_SESSION_DISPOSED",_re="DATASCIENCE.RUN_BY_LINE_VARIABLE_HOVER",Tre="DS_INTERNAL.KERNEL_COUNT",Rre="DS_INTERNAL.VSCNOTEBOOK_CELL_TRANSLATION_FAILED",Are="DS_INTERNAL.INTERACTIVE_FILE_TOOLTIPS_PERF",Nre="DS_INTERNAL.NATIVE_VARIABLE_VIEW_LOADED",Mre="DS_INTERNAL.NATIVE_VARIABLE_VIEW_MADE_VISIBLE",Kre="DATAVIEWER.WEBVIEW_LOADED",Ore="PLOTVIEWER.WEBVIEW_LOADED",Fre="DS_INTERNAL.COMMAND_EXECUTED",Lre="DATASCIENCE.DATA_VIEWER_SLICE_ENABLEMENT_STATE_CHANGED",Ure="DATASCIENCE.DATA_VIEWER_DATA_DIMENSIONALITY",Wre="DATASCIENCE.DATA_VIEWER_SLICE_OPERATION",Vre="DATASCIENCE.CREATE_PYTHON_ENVIRONMENT",jre="DATASCIENCE.RECOMMENT_EXTENSION",Jre="DATASCIENCE.DEBUGGING.CLICKED_ON_SETUP",Bre="DATASCIENCE.DEBUGGING.CLOSED_MODAL",$re="DATASCIENCE.DEBUGGING.IPYKERNEL6_STATUS",qre="DATASCIENCE.DEBUGGING.CLICKED_RUNBYLINE",Hre="DATASCIENCE.DEBUGGING.SUCCESSFULLY_STARTED_RUNBYLINE",Gre="DATASCIENCE.DEBUGGING.SUCCESSFULLY_STARTED_IW_JUPYTER",zre="DATASCIENCE.DEBUGGING.CLICKED_RUN_AND_DEBUG_CELL",Qre="DATASCIENCE.DEBUGGING.SUCCESSFULLY_STARTED_RUN_AND_DEBUG_CELL",Yre="DATASCIENCE.DEBUGGING.ENDED_SESSION",Xre="DATASCIENCE.JUPYTER_KERNEL_CODE_COMPLETION",Zre="DATASCIENCE.JUPYTER_KERNEL_CODE_COMPLETION_CANNOT_RESOLVE",ene="DATASCIENCE.JUPYTER_KERNEL_API_USAGE",tne="DATASCIENCE.JUPYTER_NEW_KERNEL_API_USAGE",rne="DATASCIENCE.JUPYTER_NEW_KERNELS_API_USAGE",nne="DATASCIENCE.JUPYTER_NEW_KERNEL_API_EXEC",ine="DATASCIENCE.JUPYTER_API_USAGE",one="DATASCIENCE.JUPYTER_KERNEL_API_ACCESS",sne="DATASCIENCE.JUPYTER_KERNEL_STARTUP_HOOK",ane="DATASCIENCE.PYTHON_VARIABLE_FETCHING_CODE_FAILURE",lne="DATASCIENCE.INTERACTIVE_WINDOW_DEBUG_SETUP_CODE_FAILURE",cne="DATASCIENCE.KERNEL_CRASH",une="DATASCIENCE.JUPYTER_KERNEL_HIDDEN_VIA_FILTER",dne="DATASCIENCE.JUPYTER_KERNEL_FILTER_USED",pne="DS_INTERNAL.RUNTEST",mne="DS_INTERNAL.PREFERRED_KERNEL_EXACT_MATCH",fne="DS_INTERNAL.IPYWIDGET_EXTENSIONJS_INFO",hne="DS_INTERNAL.IPYWIDGET_TIME_TO_COPY_NBEXTENSIONS_DIR",gne="DATASCIENCE.NO_ACTIVE_KERNEL_SESSION",vne="DATAVIEWER.USING_INTERPRETER",yne="DATAVIEWER.USING_KERNEL",bne="DATASCIENCE.JUPYTER_NOTEBOOK_EXEC_PERFORMANCE",Ine="DATASCIENCE.JUPYTER_JUPYTER_NOTEBOOK_EXEC_PERFORMANCE",Sne="DATASCIENCE.JUPYTER_NOTEBOOK_EDIT_PERFORMANCE"}};var Qu=require("vscode");function sl(n){let e=ol(n.uri);return at(e.path)}function Mo(n=Qu.Uri.file(""),e=Qu.Uri.file(""),t=Rr(),r=!1){let i=ol(n,t,t=="Windows"||r),o=ol(e,t,t=="Windows"||r);return i===o||vi(i,o,!0)}function ol(n=Qu.Uri.file(""),e=Rr(),t=!1){let r=ke(n);return t&&(r=r.toLowerCase()),r.endsWith("/bin/python")?["Linux","OSX"].includes(e)?r.endsWith("/bin/python")&&r.split("/").length>4?Qu.Uri.file(r.replace("/bin/python","/python")):Qu.Uri.file(r):Qu.Uri.file(r):Qu.Uri.file(r)}var Q2=require("vscode");var lo=class{constructor(){this.promises=new Set;this._onStateChange=new Q2.EventEmitter;this.onStateChange=this._onStateChange.event}get isComplete(){return this.promises.size===0}dispose(){this._onStateChange.dispose()}push(e){this.promises.add(e),this._onStateChange.fire(),e.finally(()=>{this.promises.delete(e),this.isComplete&&this._onStateChange.fire()}).catch(h)}};var EP=class extends rn{constructor(e){super("Python Extension failed to activate",e,"pythonExtension")}};var PP=class extends qe{constructor(){super("pythonExtension","Python Extension API not exported")}};var DV=k(Fh());var tm=require("vscode");var KP=class{};function bs(n,e=""){let t=n?tm.workspace.getWorkspaceFolder(n):tm.workspace.workspaceFolders?tm.workspace.workspaceFolders[0]:void 0;return t?hn(Rr()==="Windows"?t.uri.path.toUpperCase():t.uri.path):e}function ll(){return(Array.isArray(tm.workspace.workspaceFolders)&&tm.workspace.workspaceFolders.length>0?tm.workspace.workspaceFolders[0]:void 0)?.uri}var im=require("vscode");var mV=k(Fh());var rm=require("vscode");function sa(n){return(e,t=null,r)=>{let i=!1,o;return o=n(s=>{if(!i)return o?o.dispose():i=!0,e.call(t,s)},null,r),i&&o.dispose(),o}}function JS(n,e=null,t){return new Promise(r=>sa(n)(r,e,t))}var iie={output_type:"stream",name:"stdout",text:""},oie={output_type:"error",ename:"",evalue:"",traceback:[""]},sie={output_type:"display_data",data:{},metadata:{}},aie={output_type:"execute_result",execution_count:0,data:{},metadata:{}},Ebe={stream:new Set(Object.keys(iie)),error:new Set(Object.keys(oie)),display_data:new Set(Object.keys(sie)),execute_result:new Set(Object.keys(aie))};function $i(n){return n&&Vu(n).toLowerCase().endsWith("ipynb")?"notebook":"interactive"}function cl(n){return n=n.toLowerCase(),n.length===2&&n.endsWith("#")?`${n.substring(0,1)}sharp`:uU.get(n)||n}function Et(n){return typeof n=="string"?n===St||n===ft:n.notebookType===St||n.notebookType===ft}function co(n){let e=n.metadata;return JSON.parse(JSON.stringify(e?.metadata||{}))}function fV(n){let e=n.metadata;return{nbformat:e?.nbformat,nbformat_minor:e?.nbformat_minor}}async function hV(n,e){let t=new rm.WorkspaceEdit;t.set(n.uri,[rm.NotebookEdit.updateNotebookMetadata(VA({...n.metadata||{},metadata:e}))]),await rm.workspace.applyEdit(t)}function Lh(n){return rm.workspace.notebookDocuments.find(e=>Et(e)&&e.getCells().some(t=>t.document===n))}function Is(n){if(Array.isArray(n)){let e="";for(let t=0;t0){let t=e.split(` `);return t.map((r,i)=>ir.length>0)}return[]}function lie(n){let e=n;do n=e,e=n.replace(/[^\n]\x08/gm,"");while(e.length-1;){var e=n.match(/^(.*)\r+/m)[1],t=n.match(/\r+(.*)$/m)[1];t=t+e.slice(t.length,e.length),n=n.replace(/\r+.*$/m,"\r").replace(/^.*\r/m,t)}return n}function gV(n){return cie(lie(n))}var OP="'''",FP='"""';function nm(n,e,t){let r,i,o=0;for(let s of n){let a=s.trim(),l=a.startsWith(OP)?OP:a.startsWith(FP)?FP:void 0,c=a.includes(OP)?OP:a.includes(FP)?FP:void 0;if(i)i===c&&(i=void 0),t(s,o);else if(r)r===l&&(r=void 0),r&&e(s,o);else if(c&&!l){let u=a.indexOf(c);i=a.lastIndexOf(c)!==u?void 0:c,t(s,o)}else if(l){let u=a.indexOf(l,3);r=u>=0?void 0:l,a.length>3&&e(a.slice(3,u>=0?u:void 0),o)}else a.startsWith("#")?e(a.slice(1),o):t(s,o);o+=1}}function Wh(n,e=` `,t){return n.map((r,i)=>{let o=t?t(r):r;return i===n.length-1?`${o}`:`${o}${e}`})}function uie(n){let e=[];return nm(n,t=>e.push(t),t=>{}),e}function LP(n){return Wh(uie(n.slice(n.length>1?1:0)))}function vV(n){let e=n.length,t=-1;return n.forEach((r,i)=>{r.trim()&&(e=i,t<0&&(t=i))}),t>=0?n.slice(t,e+1):[]}function UP(n){let e=/^\s*(\d+)\.(\d+)\.(.+)\s*$/.exec(n);if(e&&e.length>2){let t=parseInt(e[1],10),r=parseInt(e[2],10),i=parseInt(e[3],10);return(0,mV.parse)(`${t}.${r}.${i}`,!0)??void 0}}function Yu(n){let e=JSON.parse(JSON.stringify(n.metadata||{}))||{metadata:{}};return e.metadata=e.metadata||{},e}function VA(n){return die(n)}function die(n){return Array.isArray(n)?n.map(VA):n!=null&&typeof n=="object"&&Object.keys(n).length>0?Object.keys(n).sort().reduce((e,t)=>(e[t]=VA(n[t]),e),{}):n}async function Ss(n,e=[]){let t=JS(n.onDidDispose,void 0,e);n.dispose(),await t}var WP=new Map,JA=new Map,jA;function yV(n){jA=n}function BA(n,e){if(!n.pythonEnvironmentPath)return;let t=re();pie({interpreterHash:n.pythonEnvironmentPath}).then(r=>{n.pythonEnvironmentPackages=r||n.pythonEnvironmentPackages,e&&(e.pythonEnvironmentPackages=r||e.pythonEnvironmentPackages)}).catch(()=>{}).finally(()=>{t.resolve()})}async function pie(n){if(!jA)return p.error("Python package provider is not initialized."),"{}";let e;if("interpreter"in n?e=n.interpreter:e=JA.get(n.interpreterHash),!e)return"{}";let t=await jA(e);return!t||t.size===0?"{}":JSON.stringify(Object.fromEntries(t))}async function bV(n){if(!n)return{};let e=WP.get(cn(n)),t=$i(n);if(!e&&t)return{resourceType:t,resourceHash:n?await at(n.toString()):void 0};if(!e)return{};let r=JSON.parse(JSON.stringify(e[0]));return BA(e[0],r),r}function Pt(n,e,t,r,i){bV(n).then(o=>{Object.assign(o,r||{}),R(e,t,o,i)}).catch(h)}var En=!1,Vh=new WeakMap,VP=new Map,jh,SV=0;function Pn(n){if(!n)return;if(fn(n)&&!VP.has(n.toString())){let t=im.workspace.notebookDocuments.find(r=>r.uri.toString()===n.toString());t&&VP.set(n.toString(),new WeakRef(t))}let e=fn(n)?VP.get(n.toString())?.deref():n;if(e)return Vh.get(e)?.tracker}function CV(n){let e=new Wr;return jh=n,SV=n.elapsedTime,im.workspace.notebookDocuments.forEach(t=>Vh.set(t,IV(t,!0,n))),e.add(im.workspace.onDidOpenNotebookDocument(t=>{!Vh.has(t)&&!En&&Vh.set(t,IV(t,!1,n))})),e.add(im.workspace.onDidCloseNotebookDocument(t=>{Vh.delete(t),VP.delete(t.uri.toString())})),e}function wV(n){Vh.get(n)?.tracker.kernelManuallySelected()}var jP={starAfter:-1,completedAfter:-1},$A=new Map,EV=new Map,mie=new Map,PV=Ft(()=>(jP.starAfter=jh?.elapsedTime,{stop:Ft(()=>{jP.completedAfter=jh.elapsedTime})}));function kV(n,e){$A.set(n,jh?.elapsedTime),mie.set(n,e||"")}function xV(n){n.executable.uri&&EV.set(n.id,jh?.elapsedTime)}function IV(n,e,t){let r=jh.elapsedTime,i=t.elapsedTime,o={openedAfter:i},s=c=>(c==="executeCell"&&(En=!0),o[`${c}StartedAfter`]=t.elapsedTime,{stop:Ft(()=>{o[`${c}CompletedAfter`]=t.elapsedTime})}),a={wasAlreadyOpen:e},l=()=>{};return{measures:o,info:a,tracker:{kernelSelected:Ft((c,u)=>{let d=$A.get(c);typeof d=="number"&&(a.wasAlreadyOpen?o.controllerCreatedAfter=$A.get(c):o.controllerCreatedAfter=r-d),o.interpreterDiscoveredAfter=EV.get(u||""),o.kernelSelectedAfter=t.elapsedTime,a.manuallySelectedKernel||gie(n,{wasAlreadyOpen:a.wasAlreadyOpen},{controllerCreatedAfter:o.controllerCreatedAfter,kernelSelectedAfter:o.kernelSelectedAfter,openedAfter:i,interpreterDiscoveredAfter:o.interpreterDiscoveredAfter})}),kernelManuallySelected:Ft(()=>a.manuallySelectedKernel=!0),cellExecutionCount:En?l:Ft(c=>o.executeCellCount=c),preExecuteCellTelemetry:En?l:Ft(()=>s("preExecuteCellTelemetry")),startKernel:En?l:Ft(()=>s("startKernel")),executeCell:En?l:Ft(()=>s("executeCell")),executeCellAcknowledged:En?l:Ft(()=>{o.executeCellAcknowledgedAfter=t.elapsedTime,fie(n,a,o)}),jupyterSessionTelemetry:En?l:Ft(()=>s("sessionTelemetry")),postKernelStartup:En?l:Ft(()=>s("postKernelStart")),computeCwd:En?l:Ft(()=>s("computeCwd")),getConnection:En?l:Ft(()=>s("getConnection")),updateConnection:En?l:Ft(()=>s("updateConnection")),kernelReady:En?l:Ft(()=>s("kernelReady")),portUsage:En?l:Ft(()=>s("portUsage")),spawn:En?l:Ft(()=>s("spawn")),pythonEnvVars:En?l:Ft(()=>s("pythonEnvVars")),envVars:En?l:Ft(()=>s("envVars")),interruptHandle:En?l:Ft(()=>s("interruptHandle")),kernelInfo:En?l:Ft(()=>s("kernelInfo")),kernelIdle:En?l:Ft(()=>s("kernelIdle"))}}}var fie=Ft(function(n,e,t){if(typeof t.preExecuteCellTelemetryStartedAfter!="number"||typeof t.preExecuteCellTelemetryCompletedAfter!="number"||typeof t.executeCellAcknowledgedAfter!="number"||typeof t.startKernelStartedAfter!="number"||typeof t.startKernelCompletedAfter!="number"||typeof t.executeCellStartedAfter!="number"||typeof t.sessionTelemetryStartedAfter!="number"||typeof t.sessionTelemetryCompletedAfter!="number"||typeof t.postKernelStartStartedAfter!="number"||typeof t.postKernelStartCompletedAfter!="number"||typeof t.kernelInfoStartedAfter!="number"||typeof t.kernelInfoCompletedAfter!="number"||typeof t.kernelIdleStartedAfter!="number"||typeof t.kernelIdleCompletedAfter!="number"||typeof t.computeCwdStartedAfter!="number"||typeof t.computeCwdCompletedAfter!="number"||typeof t.kernelReadyStartedAfter!="number"||typeof t.kernelReadyCompletedAfter!="number"||typeof t.getConnectionStartedAfter!="number"||typeof t.getConnectionCompletedAfter!="number"||typeof t.updateConnectionStartedAfter!="number"||typeof t.updateConnectionCompletedAfter!="number"||typeof t.portUsageStartedAfter!="number"||typeof t.portUsageCompletedAfter!="number"||typeof t.spawnStartedAfter!="number"||typeof t.spawnCompletedAfter!="number"||typeof t.pythonEnvVarsStartedAfter!="number"||typeof t.pythonEnvVarsCompletedAfter!="number"||typeof t.envVarsStartedAfter!="number"||typeof t.envVarsCompletedAfter!="number")return;let r={duration:0,preExecuteCellTelemetry:0,startKernel:0,executeCell:0};{let c=[{name:"preExecuteCellTelemetry",start:t.preExecuteCellTelemetryStartedAfter,end:t.preExecuteCellTelemetryCompletedAfter},{name:"startKernel",start:t.startKernelStartedAfter,end:t.startKernelCompletedAfter},{name:"executeCell",start:t.executeCellStartedAfter,end:t.executeCellAcknowledgedAfter}],u=t.executeCellAcknowledgedAfter-t.preExecuteCellTelemetryStartedAfter;r.duration=u,BS(r,c,u,t.openedAfter)}let i={sessionTelemetry:0,postKernelStart:0,computeCwd:0,getConnection:0,updateConnection:0,kernelReady:0,portUsage:0,spawn:0};{let c=[{name:"sessionTelemetry",start:t.sessionTelemetryStartedAfter,end:t.sessionTelemetryCompletedAfter},{name:"postKernelStart",start:t.postKernelStartStartedAfter,end:t.postKernelStartCompletedAfter},{name:"computeCwd",start:t.computeCwdStartedAfter,end:t.computeCwdCompletedAfter},{name:"getConnection",start:t.getConnectionStartedAfter,end:t.getConnectionCompletedAfter},{name:"updateConnection",start:t.updateConnectionStartedAfter,end:t.updateConnectionCompletedAfter},{name:"spawn",start:t.spawnStartedAfter,end:t.spawnCompletedAfter},{name:"portUsage",start:t.portUsageStartedAfter,end:t.portUsageCompletedAfter},{name:"kernelReady",start:t.kernelReadyStartedAfter,end:t.kernelReadyCompletedAfter}],u=t.startKernelCompletedAfter-t.startKernelStartedAfter;BS(i,c,u,t.openedAfter)}let o={startupCode:0,kernelInfo:0,kernelIdle:0};{let c=[{name:"startupCode",start:t.postKernelStartStartedAfter,end:t.kernelInfoStartedAfter},{name:"kernelInfo",start:t.kernelInfoStartedAfter,end:t.kernelInfoCompletedAfter},{name:"kernelIdle",start:t.kernelIdleStartedAfter,end:t.kernelIdleCompletedAfter}],u=t.postKernelStartCompletedAfter-t.postKernelStartStartedAfter;BS(o,c,u,t.openedAfter)}let s={pythonEnvVars:0,envVars:0,interruptHandle:0};{let c=[{name:"pythonEnvVars",start:t.pythonEnvVarsStartedAfter,end:t.pythonEnvVarsCompletedAfter},{name:"envVars",start:t.envVarsStartedAfter,end:t.envVarsCompletedAfter},{name:"interruptHandle",start:t.interruptHandleStartedAfter||0,end:t.interruptHandleCompletedAfter||0}],u=t.spawnCompletedAfter-t.spawnStartedAfter;BS(s,c,u,t.openedAfter)}let a=hie(n),l={...r,...i,...o,...s,...a};Pt(n.uri,"DATASCIENCE.NOTEBOOK_FIRST_START_BREAKDOWN",l,e)});function hie(n){let e={attachmentCharLength:0,attachmentCount:0,codeCellCharLength:0,codeCellCount:0,mdCellCharLength:0,mdCellCount:0,outputCount:0,outputsByteSize:0};return n.getCells().forEach(t=>{let r=t.document.lineAt(t.document.lineCount-1).range.end,i=t.document.offsetAt(r);if(t.kind===im.NotebookCellKind.Markup){e.mdCellCount+=1,e.mdCellCharLength+=i;try{let s=Yu(t).attachments||{};Object.keys(s).forEach(a=>{e.attachmentCount+=1;let l=s[a];typeof l=="object"&&Object.keys(l).forEach(c=>{let u=l[c];u&&typeof u=="string"&&(e.attachmentCharLength+=u.length)})})}catch(o){p.warn("Error parsing attachments in cell metadata",o)}}else e.codeCellCount+=1,e.codeCellCharLength+=i,e.outputCount+=t.outputs.length,e.outputsByteSize+=t.outputs.reduce((o,s)=>o+s.items.reduce((a,l)=>a+l.data.byteLength,0),0)}),e}var gie=Ft(function(n,e,t){if(t.pythonExtensionActivationStartedAfter=jP.starAfter,t.pythonExtensionActivationCompletedAfter=jP.completedAfter,typeof t.controllerCreatedAfter>"u"||typeof t.interpreterDiscoveredAfter>"u"||typeof t.pythonExtensionActivationCompletedAfter>"u"||typeof t.pythonExtensionActivationStartedAfter>"u")return;let r=[{name:"callPythonApi",start:SV,end:t.pythonExtensionActivationStartedAfter},{name:"activatePython",start:t.pythonExtensionActivationStartedAfter,end:t.pythonExtensionActivationCompletedAfter},{name:"discoverEnv",start:t.pythonExtensionActivationCompletedAfter,end:t.interpreterDiscoveredAfter},{name:"createController",start:t.interpreterDiscoveredAfter,end:t.controllerCreatedAfter},{name:"selectController",start:t.controllerCreatedAfter,end:t.kernelSelectedAfter}],i=t.kernelSelectedAfter-t.openedAfter,o={duration:i};BS(o,r,i,t.openedAfter),Pt(n.uri,"DATASCIENCE.NOTEBOOK_FIRST_KERNEL_AUTO_SELECTION_BREAKDOWN",o,e)});function BS(n,e,t,r){e.sort((i,o)=>i.start-o.start).forEach(i=>{typeof r=="number"&&r>=i.start&&r<=i.end?n[i.name]=(i.end-r)*100/t:typeof r=="number"&&r>i.end?n[i.name]=0:(typeof r=="number"&&r{this.extensionChecker.isPythonExtensionInstalled&&await this.registerHooks()},this,this.disposables),this.disposables.push(this.didActivatePython)}get onDidActivatePythonExtension(){return this.didActivatePython.event}get pythonExtensionHooked(){return this._pythonExtensionHooked.promise}get pythonExtensionVersion(){return this._pythonExtensionVersion}getApi(){return this.init().catch(h),this.api.promise}async getNewApi(){await this.init();let e=It.extensions.getExtension(Yn);return e?.packageJSON?.version&&(this._pythonExtensionVersion=new DV.SemVer(e?.packageJSON?.version)),e?.exports&&(S2(e.exports),e.exports.environments.known.forEach(t=>{xV(t)})),e?.exports}setApi(e){this.api.resolved||!It.workspace.isTrusted||this.api.resolve(e)}async init(){if(this.initialized)return;It.extensions.getExtension(Yn)?await this.registerHooks():await this.extensionChecker.showPythonExtensionInstallRequiredPrompt(),this.initialized=!0}async registerHooks(){if(this.hooksRegistered)return;let e=It.extensions.getExtension(Yn);if(!e)return;let t=!1;if(!e.isActive){let r=PV();try{let i=e.activate();i.then(()=>r.stop(),()=>r.stop()),await i,t=!0}catch(i){p.error("Failed activating the python extension: ",i),this.api.reject(new EP(i));return}}this.hooksRegistered||(this.hooksRegistered=!0,t&&this.didActivatePython.fire(),e.exports?.jupyter?e.exports.jupyter.registerHooks():(p.error("Python extension is not exporting the jupyter API"),this.api.reject(new PP)),this._pythonExtensionHooked.resolve())}};Jh=v([(0,Cs.injectable)(),m(0,(0,Cs.inject)(M)),m(1,(0,Cs.inject)(Be))],Jh);var Xu=class{constructor(e){this.disposables=e;this.pythonExtensionInstallationStatusChanged=new It.EventEmitter;It.extensions.onDidChange(this.extensionsChangeHandler.bind(this),this,this.disposables),this.previousInstallState=this.isPythonExtensionInstalled}get onPythonExtensionInstallationStatusChanged(){return this.pythonExtensionInstallationStatusChanged.event}get isPythonExtensionInstalled(){return It.extensions.getExtension(Yn)!==void 0}get isPythonExtensionActive(){return It.extensions.getExtension(Yn)?.isActive===!0}async directlyInstallPythonExtension(){return It.commands.executeCommand("workbench.extensions.installExtension",Yn,{context:{skipWalkthrough:!0}})}async showPythonExtensionInstallRequiredPrompt(){if(!It.workspace.isTrusted)return;Xu.promptDisplayed=!0;let e=de.bannerLabelYes;R("DS_INTERNAL.PYTHON_EXTENSION_NOT_INSTALLED",void 0,{action:"displayed"}),await It.window.showInformationMessage(y.pythonExtensionRequired,{modal:!0},e)===e?(R("DS_INTERNAL.PYTHON_EXTENSION_NOT_INSTALLED",void 0,{action:"download"}),await this.installPythonExtension()):R("DS_INTERNAL.PYTHON_EXTENSION_NOT_INSTALLED",void 0,{action:"dismissed"})}async installPythonExtension(){It.commands.executeCommand("extension.open",Yn).then(h,h)}async extensionsChangeHandler(){let e=this.isPythonExtensionInstalled;e!==this.previousInstallState&&(this.pythonExtensionInstallationStatusChanged.fire(e?"installed":"uninstalled"),this.previousInstallState=e)}};Xu=v([(0,Cs.injectable)(),m(0,(0,Cs.inject)(M))],Xu);var Bh=class{constructor(e,t,r,i){this.apiProvider=e;this.extensionChecker=t;this.disposables=r;this.context=i;this.didChangeInterpreter=new It.EventEmitter;this.didChangeInterpreters=new It.EventEmitter;this._onDidEnvironmentVariablesChange=new It.EventEmitter;this._onDidRemoveInterpreter=new It.EventEmitter;this.onDidRemoveInterpreter=this._onDidRemoveInterpreter.event;this.onDidEnvironmentVariablesChange=this._onDidEnvironmentVariablesChange.event;this._status="idle";this._onDidChangeStatus=new It.EventEmitter;this.onDidChangeStatus=this._onDidChangeStatus.event;this.refreshPromises=new lo;this.onResumeEnvDetection=new It.EventEmitter;this.workspaceCachedActiveInterpreter=new Set;this.lastLoggedResourceAndInterpreterId="";this.pythonEnvHashes=new Map;this.loggedEnvsWithoutInterpreterPath=new Set;this.pendingInterpreterChangeEventTriggers=new Map;this.pendingInterpretersChangeEventTriggers=new Map;this.extensionChecker.isPythonExtensionInstalled&&!this.extensionChecker.isPythonExtensionActive&&this.apiProvider.onDidActivatePythonExtension(()=>{this.hookupOnDidChangeInterpreterEvent()},this,this.disposables),It.workspace.onDidGrantWorkspaceTrust(()=>this.refreshInterpreters(!0),this,this.disposables),this.disposables.push(this._onDidChangeStatus),this.disposables.push(this.refreshPromises),this.disposables.push(this.onResumeEnvDetection),this.refreshPromises.onStateChange(()=>{this.status=this.refreshPromises.isComplete?"idle":"refreshing"})}get status(){return this._status}set status(e){this._status!==e&&(this._status=e,this._onDidChangeStatus.fire())}initialize(){this.hookupOnDidChangeInterpreterEvent()}async resolveEnvironment(e){return this.getApi().then(t=>{if(!t)return;let r=typeof e=="string"?t.environments.known.find(i=>i.id===e||i.path===e):e;return t.environments.resolveEnvironment(r||e)})}get onDidChangeInterpreter(){return this.hookupOnDidChangeInterpreterEvent(),this.didChangeInterpreter.event}get onDidChangeInterpreters(){return this.hookupOnDidChangeInterpreterEvent(),this.didChangeInterpreters.event}async refreshInterpreters(e=!1){let t=(async()=>{let r=await this.getApi();if(r)try{await r.environments.refreshEnvironments({forceRefresh:e}),this.hookupOnDidChangeInterpreterEvent(),p.debug("Refreshed Environments")}catch{p.error("Failed to refresh the list of interpreters")}})();this.refreshPromises.push(t),this.refreshPromises.push(t.then(()=>gi(1e3))),await t}async getActiveInterpreter(e){if(!It.workspace.isTrusted)return;let t=new Ue;this.hookupOnDidChangeInterpreterEvent(),!e&&It.workspace.workspaceFolders?.length===1&&(e=It.workspace.workspaceFolders[0].uri),It.workspace.workspaceFolders?.length&&(e=(e?It.workspace.getWorkspaceFolder(e)?.uri:void 0)||It.workspace.workspaceFolders[0].uri);let r=bs(e),i=this.getApi().then(async o=>{if(!o)return;let s=o.environments.getActiveEnvironmentPath(e),a=await o.environments.resolveEnvironment(s);return this.trackResolvedEnvironment(a)});return i.then(()=>{this.workspaceCachedActiveInterpreter.has(r)||(this.workspaceCachedActiveInterpreter.add(r),R("DS_INTERNAL.ACTIVE_INTERPRETER_LISTING_PERF",{duration:t.elapsedTime},{firstTime:!0}))}).catch(o=>{p.warn(`Failed to get active interpreter from Python for workspace ${r}`,o)}),(hi||[It.ExtensionMode.Development,It.ExtensionMode.Test].includes(this.context.extensionMode))&&i.then(o=>{let s=`${j(e)}'-${j(o?.id)}`;if(this.lastLoggedResourceAndInterpreterId===s)return;this.lastLoggedResourceAndInterpreterId=s;let a=Ji(o);p.trace(`Active Interpreter ${e?`for '${j(e)}' `:""}is ${j(o?.id)} (${o&&Ve(o)}, '${o?Ro(o):""}', ${a?.major}.${a?.minor}.${a?.micro})`)}).catch(h),i}getInterpreterHash(e){return this.pythonEnvHashes.get(e)}async getInterpreterDetails(e,t){if(!It.workspace.isTrusted)throw new Error("Unable to determine active Interpreter as Workspace is not trusted");this.hookupOnDidChangeInterpreterEvent();try{return await this.getApi().then(async r=>{if(!r||t?.isCancellationRequested)return;let i=r.environments.known.find(l=>fn(e)?Mo(l.executable.uri,e):typeof e=="string"?l.id===e:Mo(It.Uri.file(l.path),It.Uri.file(e.path))),o=fn(e)?j(e):typeof e=="string"?e:j(It.Uri.file(e.path));if(i){let l=await r.environments.resolveEnvironment(i),c=this.trackResolvedEnvironment(l);return p.ci(`Interpreter details for ${o} from Python is ${JSON.stringify(l)} and our mapping is ${JSON.stringify(c)}`),c}let s=o;if(this.loggedEnvsWithoutInterpreterPath.has(s)||(this.loggedEnvsWithoutInterpreterPath.add(s),p.warn(`No interpreter with path ${o} found in Python API, will convert Uri path to string as Id ${o}`)),t?.isCancellationRequested)return;let a=await r.environments.resolveEnvironment(fn(e)?e.fsPath:typeof e=="string"?e:e.path);return this.trackResolvedEnvironment(a)})}catch(r){p.warn(`Failed to get Python interpreter details from Python Extension API for ${typeof e=="string"?e:j(fn(e)?e:It.Uri.file(e.path))}`,r);return}}trackResolvedEnvironment(e){if(e){let t=wi(e);return t?(sl(t).then(r=>{this.pythonEnvHashes.set(t.id,r)}).catch(h),this.triggerEventIfAllowed("interpretersChangeEvent",t),t):void 0}}triggerEventIfAllowed(e,t){e==="interpreterChangeEvent"?this.pendingInterpreterChangeEventTriggers.set(t?.id||"",t):this.pendingInterpretersChangeEventTriggers.set(t?.id||"",t),this.triggerPendingEvents()}triggerPendingEvents(){this.pendingInterpreterChangeEventTriggers.forEach(t=>this.didChangeInterpreter.fire(t)),this.pendingInterpreterChangeEventTriggers.clear();let e=Array.from(this.pendingInterpretersChangeEventTriggers.values());if(e.length){let t=e.filter(r=>!!r);t.length!==e.length&&t.length===0?this.didChangeInterpreters.fire([]):this.didChangeInterpreters.fire(t)}this.pendingInterpretersChangeEventTriggers.clear()}async getApi(){if(this.extensionChecker.isPythonExtensionInstalled)return this.apiPromise||(this.apiPromise=this.apiProvider.getNewApi()),this.apiPromise}hookupOnDidChangeInterpreterEvent(){this.eventHandlerAdded||this.getApi().then(e=>{!this.eventHandlerAdded&&e&&(this.eventHandlerAdded=!0,e.environments.onDidEnvironmentVariablesChange(t=>{p.debug(`Detected changes to env file ${t.resource?.uri?.path} in PythonApi`),this._onDidEnvironmentVariablesChange.fire()},this,this.disposables),e.environments.onDidChangeActiveEnvironmentPath(()=>{p.trace("Detected change in Active Python environment via Python API"),this.workspaceCachedActiveInterpreter.clear(),this.triggerEventIfAllowed("interpreterChangeEvent",void 0)},this,this.disposables),e.environments.onDidChangeEnvironments(async t=>{if(p.trace(`Python API env change detected, ${t.type} => '${t.env.id}'`),t.type==="remove"){this.triggerEventIfAllowed("interpreterChangeEvent",void 0),this.triggerEventIfAllowed("interpretersChangeEvent",void 0),this._onDidRemoveInterpreter.fire({id:t.env.id});return}let r=wi(Pr(t.env));r&&(this.triggerEventIfAllowed("interpreterChangeEvent",r),this.triggerEventIfAllowed("interpretersChangeEvent",r))},this,this.disposables),this.didChangeInterpreters.fire(so().map(wi).filter(t=>!!t).map(t=>t)))}).catch(h)}};Bh=v([(0,Cs.injectable)(),m(0,(0,Cs.inject)(Ht)),m(1,(0,Cs.inject)(Be)),m(2,(0,Cs.inject)(M)),m(3,(0,Cs.inject)(et))],Bh);var $h=require("vscode");function JP(n,e){let t=n.length>0?`?token=${n}`:"";return`${e}${t}`}function BP(n,e,t){return n?t.createSystemVariables(e).resolve(n):e?nt(ke(e)):process.cwd()}async function $P(n,e){let t=y.jupyterSelfCertEnable,r=y.jupyterSelfCertClose,i=await $h.window.showErrorMessage(y.jupyterSelfCertFail(e),{modal:!0},t,r);return i===t?(R("DATASCIENCE.SELFCERTSMESSAGEENABLED"),await n.updateSetting("allowUnauthorizedRemoteConnection",!0,void 0,$h.ConfigurationTarget.Workspace),!0):(i===r&&R("DATASCIENCE.SELFCERTSMESSAGECLOSE"),!1)}async function qP(n,e){let t=y.jupyterSelfCertEnable,r=y.jupyterSelfCertClose,i=await $h.window.showErrorMessage(y.jupyterExpiredCertFail(e),{modal:!0},t,r);return i===t?(R("DATASCIENCE.SELFCERTSMESSAGEENABLED"),await n.updateSetting("allowUnauthorizedRemoteConnection",!0,void 0,$h.ConfigurationTarget.Workspace),!0):(i===r&&R("DATASCIENCE.SELFCERTSMESSAGECLOSE"),!1)}function qS(n,e,t,r,i,o,s){let a=e.baseUrl,l=e.token,c=new URL(e.baseUrl).hostname,u=e.authorizationHeader&&Object.keys(e?.authorizationHeader??{}).length>0?e.authorizationHeader:void 0,d=u?()=>u:void 0,f={baseUrl:a,appUrl:"",wsUrl:a.replace("http","ws"),fetch:e.fetch,WebSocket:e.WebSocket},g=t.getRequestInit();(!(l===""||l==="null")||d)&&(f={...f,token:l,appendToken:!0});let I=i.getSettings(void 0).allowUnauthorizedRemoteConnection;if(a.startsWith("https")&&I&&r){let A=r.createHttpRequestAgent();g={...g,agent:A}}let{ServerConnection:E}=require("@jupyterlab/services");return f={...f,init:g,WebSocket:e.WebSocket?t.wrapWebSocketCtor(e.WebSocket):t.getWebsocketCtor(void 0,I,d),fetch:e.fetch||t.getFetchMethod(),Request:t.getRequestCtor(void 0,I,d),Headers:t.getHeadersCtor()},{baseUrl:a,providerId:n.id,serverProviderHandle:n,token:l,hostName:c,displayName:e&&e.displayName?e.displayName:JP(l,a),dispose:()=>s?.dispose(),rootDirectory:o,getAuthHeader:d,settings:E.makeSettings(f)}}async function TV(n){let e=Ot(n);return na(e,"SHA-256")}var vie=new Set([Fe,"ms-toolsai.vscode-ai","GitHub.codespaces"].map(n=>n.toLowerCase()));function Ot(n){return vie.has(n.extensionId.toLowerCase())?`${je.REMOTE_URI}?${je.REMOTE_URI_ID_PARAM}=${n.id}&${je.REMOTE_URI_HANDLE_PARAM}=${encodeURI(n.handle)}`:`${je.REMOTE_URI}?${je.REMOTE_URI_ID_PARAM}=${n.id}&${je.REMOTE_URI_HANDLE_PARAM}=${encodeURI(n.handle)}&${je.REMOTE_URI_EXTENSION_ID_PARAM}=${encodeURI(n.extensionId)}`}async function HP(n){if(!Mu()&&n.interpreter?.uri){let e=n.interpreter.uri.fsPath,t=ol(n.interpreter.uri).fsPath,r=n.id.replace(e,t);return at(r)}return at(n.id)}var ws=class{static fromJSON(e){let t=Object.assign(e,{});switch(t.interpreter&&(t.interpreter=$S(t.interpreter,"")),e.kind){case"startUsingLocalKernelSpec":return Zu.create(t);case"connectToLiveRemoteKernel":return HS.create(t);case"startUsingRemoteKernelSpec":return GS.create(t);case"startUsingPythonInterpreter":return Ko.create(t);default:throw new Error(`Invalid object to be deserialized into a connection, kind = ${t.kind}`)}}},HS=class n{constructor(e){this.kind="connectToLiveRemoteKernel";this.kernelModel=e.kernelModel,this.interpreter=e.interpreter,this.baseUrl=e.baseUrl,this.id=e.id,this.serverProviderHandle=e.serverProviderHandle,zP(this)}static create(e){return new n(e)}updateModel(e){Object.assign(this.kernelModel,e)}getHashId(){return HP(this)}toJSON(){return{id:this.id,kind:this.kind,baseUrl:this.baseUrl,interpreter:om(this.interpreter),kernelModel:this.kernelModel,serverProviderHandle:this.serverProviderHandle}}static fromJSON(e){return ws.fromJSON(e)}},Zu=class n{constructor(e){this.kind="startUsingLocalKernelSpec";this.kernelSpec=e.kernelSpec,this.interpreter=e.interpreter,this.id=e.id,zP(this)}static create(e){return new n(e)}getHashId(){return HP(this)}toJSON(){return{id:this.id,kernelSpec:this.kernelSpec,interpreter:om(this.interpreter),kind:this.kind}}static fromJSON(e){return ws.fromJSON(e)}},GS=class n{constructor(e){this.kind="startUsingRemoteKernelSpec";this.interpreter=e.interpreter,this.kernelSpec=e.kernelSpec,this.baseUrl=e.baseUrl,this.id=e.id,this.serverProviderHandle=e.serverProviderHandle,zP(this)}static create(e){return new n(e)}getHashId(){return HP(this)}toJSON(){return{id:this.id,kernelSpec:this.kernelSpec,interpreter:om(this.interpreter),baseUrl:this.baseUrl,kind:this.kind,serverProviderHandle:this.serverProviderHandle}}static fromJSON(e){return ws.fromJSON(e)}},Ko=class n{constructor(e){this.kind="startUsingPythonInterpreter";this.kernelSpec=e.kernelSpec,this.interpreter=e.interpreter,this.id=e.id,zP(this)}static create(e){return new n(e)}getHashId(){return HP(this)}toJSON(){return{id:this.id,kernelSpec:this.kernelSpec,interpreter:om(this.interpreter),kind:this.kind}}updateInterpreter(e){Object.assign(this.interpreter,e)}static fromJSON(e){return ws.fromJSON(e)}};function ct(n){return n.kind==="startUsingLocalKernelSpec"||n.kind==="startUsingPythonInterpreter"}function _t(n){return!ct(n)}var De=Symbol("IKernelProvider"),sm=Symbol("IThirdPartyKernelProvider");var GP=Symbol("IJupyterServerConnector"),zS=Symbol("IKernelSessionFactory");var Es=Symbol("IKernelDependencyService"),kr=Symbol("IKernelFinder"),qh=Symbol("ITracebackFormatter");var kc=Symbol("IStartupCodeProviders"),RV=new Set;function zP(n){if(RV.has(n.id))return;RV.add(n.id);let e="kernelSpec"in n?n.kernelSpec:void 0,t=e?.language||(n.kind==="startUsingPythonInterpreter"?ge:void 0),r="",i="",o="interpreter"in n?n.interpreter:void 0,s="<#>",a;e&&Array.isArray(e.argv)&&e.argv.length>0&&(r=e.argv[0],a=r.toLowerCase()===o?.uri?.fsPath?.toLowerCase(),Ce(r)!==r&&(r=`

${Ce(r)}`),i=e.argv.map(g=>g.includes("/")||g.includes("\\")?`

${Ce(g)}`:g).join(s));let l="kernelSpec"in n&&n.kernelSpec.specFile?at(n.kernelSpec.specFile):Promise.resolve(""),c=at(n.id),u=_t(n)?at(Ot(n.serverProviderHandle)):Promise.resolve(""),d=_t(n)?n.serverProviderHandle.extensionId:Fe,f=_t(n)?at(n.baseUrl.toLowerCase()):Promise.resolve("");Promise.all([l,c,u,f]).then(([g,b,I,E])=>R("DS_INTERNAL.JUPYTER_KERNEL_SPEC",void 0,{kernelId:b,serverIdHash:I,kernelSpecHash:g,baseUrlHash:E,providerExtensionId:d,kernelConnectionType:n.kind,kernelLanguage:t,envType:o&&Ve(o),isArgv0SameAsInterpreter:a,argv0:r,argv:i})).catch(h)}var kn=require("vscode");var Oie=k(BV()),xc=require("vscode");var ed=class{constructor(e,t,r,i){this.specFile=t;this.interpreterPath=r;this.isRegisteredByVSC=i;this.name=e.name,this.argv=e.argv,this.language=e.language,this.executable=e.argv&&e.argv.length>0?e.argv[0]:"",this.display_name=e.display_name,this.metadata=e.metadata,this.env=e.env,this.interrupt_mode=e.interrupt_mode}};var An=require("vscode"),XV=k(zA());var QA=class{constructor(e,t,r,i=!1){this._impl=e;this.controllerId=t;this._endCallback=r;this.clearOutputOnStartWithTime=i;this._started=!1}get started(){return this._started}get cell(){return this._impl.cell}get token(){return this._impl.token}get executionOrder(){return this._impl.executionOrder}set executionOrder(e){e&&Pn(this._impl.cell.notebook)?.executeCellAcknowledged(),this._impl.executionOrder=e}startIfNecessary(){this.started||this._impl.start()}start(e){this.started||(this._started=!0,this._impl.start(e),this._startTime=e,this.clearOutputOnStartWithTime?(p.trace(`Start cell ${this.cell.index} execution @ ${e} (clear output)`),this._impl.clearOutput().then(h,h)):p.trace(`Start cell ${this.cell.index} execution @ ${e}`))}end(e,t){if(this._endCallback)try{this._impl.end(e,t,this.errorInfo),p.trace(`Cell ${this.cell.index} completed in ${((t||0)-(this._startTime||0))/1e3}s (start: ${this._startTime}, end: ${t})`)}finally{this._endCallback(),this._endCallback=void 0}}clearOutput(e){return this.startIfNecessary(),this._impl.clearOutput(e)}replaceOutput(e,t){return this.startIfNecessary(),this._impl.replaceOutput(e,t)}appendOutput(e,t){return this.startIfNecessary(),this._impl.appendOutput(e,t)}replaceOutputItems(e,t){return this.startIfNecessary(),this._impl.replaceOutputItems(e,t)}appendOutputItems(e,t){return this.startIfNecessary(),this._impl.appendOutputItems(e,t)}},Pi=class n{static{this._map=new WeakMap}static getOrCreate(e,t,r=!1){let i,o=e.document;if(i=this.get(e),!i)i=n.create(o,e,t,r);else if(i.controllerId!==t.id){let s=i;s.end(void 0),i=n.create(o,e,t,r),s.started&&i.start(new Date().getTime())}return i}static get(e){let t=e.document;return n._map.get(t)}static create(e,t,r,i=!1){let o=new QA(r.createNotebookCellExecution(t),r.id,()=>{n._map.delete(e)},i);return n._map.set(e,o),o}};function Hh(n){return typeof Buffer<"u"&&typeof Buffer.from=="function"?Buffer.from(n,"base64"):Uint8Array.from(atob(n),e=>e.charCodeAt(0))}var Tie=new TextDecoder;function YP(n){if(typeof Buffer<"u"&&typeof Buffer.from=="function")return Buffer.from(n).toString("base64");{let e=Tie.decode(n);return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(t,r){return String.fromCharCode(Number.parseInt("0x"+r))}))}}var GV=["application/vnd.*","application/vdom.*","application/geo+json","application/x-nteract-model-debug+json","text/html","application/javascript","image/gif","text/latex","text/markdown","image/png","image/svg+xml","image/jpeg","application/json","text/plain"];function zV(n){if(n.mime.startsWith("application/vnd."))try{return new TextDecoder().decode(n.data).length===0}catch{}return!1}function Rie(n){return n.sort((e,t)=>{let r=(s,a)=>(s.endsWith(".*")&&(s=s.substr(0,s.indexOf(".*"))),a.startsWith(s)),i=GV.findIndex(s=>r(s,e.mime)),o=GV.findIndex(s=>r(s,t.mime));return zV(e)&&(i=-1),zV(t)&&(o=-1),i=i==-1?100:i,o=o==-1?100:o,i-o})}var td=class n{static{this.cellStates=new WeakMap}static getCellState(e){return n.cellStates.get(e)?.state}static getCellStatus(e){return(n.cellStates.get(e)?.stateTransition||[]).join(", ")||""}static setCellState(e,t){let r=n.cellStates.get(e)?.start||new Ue,i=n.cellStates.get(e)?.stateTransition||[];i.push(`${t} ${i.length===0?"@ start":`After ${r.elapsedTime}ms`}`),n.cellStates.set(e,{stateTransition:i,state:t,start:r})}};function ut(n,e){let t=typeof e=="string"?()=>e:e;p.ci(()=>`Cell Index:${n.index}, of document ${un(n.notebook.uri)} with state:${td.getCellStatus(n)}, exec: ${n.executionSummary?.executionOrder}. ${t()}. called from ${J2()}`)}var zh=new Map;zh.set("display_data",ZP);zh.set("error",Kie);zh.set("execute_result",ZP);zh.set("stream",Aie);zh.set("update_display_data",ZP);function uo(n){let e=zh.get(n.output_type),t;return e?t=e(n):(p.warn(`Unable to translate cell from ${n.output_type} to NotebookCellData for VS Code.`),t=ZP(n)),t}function YA(n){let e={outputType:n.output_type};switch(n.transient&&(e.transient=n.transient),n.output_type){case"display_data":case"execute_result":case"update_display_data":{e.executionCount=n.execution_count,e.metadata=n.metadata?JSON.parse(JSON.stringify(n.metadata)):{};break}default:break}return e}function am(n){return n.metadata}function ZP(n){let e=YA(n);("image/svg+xml"in n.data||"image/png"in n.data)&&(e.__displayOpenPlotIcon=!0);let t=[];if(n.data)for(let r in n.data)t.push(Mie(r,n.data[r]));return new An.NotebookCellOutput(Rie(t),e)}function Aie(n){let e=Is(n.text),t=n.name==="stderr"?An.NotebookCellOutputItem.stderr:An.NotebookCellOutputItem.stdout;return new An.NotebookCellOutput([t(e)],YA(n))}function Nie(n){if(n.items.length>0)return n.items[0].mime==="application/vnd.code.notebook.stderr"?"stderr":"stdout"}function QV(n){let e=n.items[0];if(!e.data)return{output_type:"error",ename:"",evalue:"",traceback:[]};let t=n.metadata?.originalError,r=JSON.parse(new TextDecoder().decode(e.data));return{output_type:"error",ename:r.name,evalue:r.message,traceback:t?.traceback||Uh(r.stack||r.message||"")}}var Gh=new TextDecoder,ZV=["text/plain","text/markdown","application/vnd.code.notebook.stderr","application/vnd.code.notebook.stdout"];function XP(n,e){if(!e)return"";try{if(n==="application/vnd.code.notebook.error"){let t=Gh.decode(e);return JSON.parse(t)}else if(n.startsWith("text/")||ZV.includes(n)){let t=Gh.decode(e);return Uh(t)}else{if(n.startsWith("image/")&&n!=="image/svg+xml")return YP(e);if(n.toLowerCase().startsWith("application/vnd.holoviews_load.v")&&n.toLowerCase().endsWith("+json")){let t=Gh.decode(e);try{return t.length>0?JSON.parse(t):t}catch{return t}}else if(n.toLowerCase().includes("json")){let t=Gh.decode(e);return t.length>0?JSON.parse(t):t}else return Gh.decode(e)}}catch(t){return p.error(`Failed to convert ${n} output from a buffer ${typeof e}, ${e}`,t),""}}function Mie(n,e){if(!e)return An.NotebookCellOutputItem.text("",n);try{if((n.startsWith("text/")||ZV.includes(n))&&(Array.isArray(e)||typeof e=="string")){let t=Array.isArray(e)?Is(e):e;return An.NotebookCellOutputItem.text(t,n)}else return n.startsWith("image/")&&typeof e=="string"&&n!=="image/svg+xml"?new An.NotebookCellOutputItem(Hh(e),n):typeof e=="object"&&e!==null&&!Array.isArray(e)?An.NotebookCellOutputItem.text(JSON.stringify(e),n):(e=Array.isArray(e)?Is(e):e,An.NotebookCellOutputItem.text(e,n))}catch(t){return p.error(`Failed to convert ${n} output to a buffer ${typeof e}, ${e}`,t),An.NotebookCellOutputItem.text("")}}function YV(n){let e=[];n.items.filter(r=>r.mime==="application/vnd.code.notebook.stderr"||r.mime==="application/vnd.code.notebook.stdout").map(r=>Gh.decode(r.data)).forEach(r=>{let i=r.split(` `);e.length&&i.length&&i[0].length>0&&(e[e.length-1]=`${e[e.length-1]}${i.shift()}`);for(let o of i)e.push(o)});for(let r=0;r(i[o.mime]=XP(o.mime,o.data),i),{}),metadata:e?.metadata||{}};break}case"execute_result":{t={output_type:"execute_result",data:n.items.reduce((i,o)=>(i[o.mime]=XP(o.mime,o.data),i),{}),metadata:e?.metadata||{},execution_count:typeof e?.executionCount=="number"?e?.executionCount:null};break}case"update_display_data":{t={output_type:"update_display_data",data:n.items.reduce((i,o)=>(i[o.mime]=XP(o.mime,o.data),i),{}),metadata:e?.metadata||{}};break}default:{let i=n.items.length===1&&n.items.every(l=>l.mime==="application/vnd.code.notebook.error"),o=n.items.every(l=>l.mime==="application/vnd.code.notebook.stderr"||l.mime==="application/vnd.code.notebook.stdout");if(i)return QV(n);let s=e?.outputType||(o?"stream":"display_data");R("DS_INTERNAL.VSCNOTEBOOK_CELL_TRANSLATION_FAILED",void 0,{outputType:s});let a;s==="stream"?a=YV(n):s==="display_data"?a={data:{},metadata:{},output_type:"display_data"}:a={output_type:s},e?.metadata&&(a.metadata=e.metadata),n.items.length>0&&(a.data=n.items.reduce((l,c)=>(l[c.mime]=XP(c.mime,c.data),l),{})),t=a;break}}return t&&e&&e.transient&&(t.transient=e.transient),t}function Kie(n){return n=n||{output_type:"error",ename:"",evalue:"",traceback:[]},new An.NotebookCellOutput([An.NotebookCellOutputItem.error({name:n?.ename||"",message:n?.evalue||"",stack:(n?.traceback||[]).join(` `)})],{...YA(n),originalError:n})}async function ej(n,e,t){let r=!1,i;if(!n)return{changed:r,kernelId:i};n?.language_info?.name||(n.language_info=n.language_info||{name:""});let o;switch(e?.kind){case"connectToLiveRemoteKernel":o=e.kernelModel.language;break;case"startUsingRemoteKernelSpec":case"startUsingLocalKernelSpec":o=e.kernelSpec.language;break;case"startUsingPythonInterpreter":o=ge;break;default:break}if(n.language_info.name!==o&&o&&(n.language_info.name=o,r=!0),t&&"language_info"in t&&t.language_info)(0,XV.default)(n.language_info,t.language_info)||(n.language_info=JSON.parse(JSON.stringify(t.language_info)),r=!0);else{let a=dt(e),l=a?rj(e):void 0,c=await qu(l),u=c?`${c.major}.${c.minor}.${c.micro}`:"";l&&c&&n&&n.language_info&&n.language_info.version!==u?(n.language_info.version=u,r=!0):!l&&n?.language_info&&a&&(n.language_info=void 0,r=!0)}let s=e&&Qh(e)?e.kernelModel:e&&"kernelSpec"in e?e.kernelSpec:void 0;if(e?.kind==="startUsingPythonInterpreter"){let a=e.kernelSpec,l=a.display_name||Pr(e.interpreter)?.environment?.name||"",c="";switch(Nn(a)){case"registeredByOldVersionOfExt":case"registeredByNewVersionOfExt":c="python3";break;case"registeredByNewVersionOfExtForCustomKernelSpec":{c=(a.metadata?.vscode?.originalSpecFile?Ce(nt(a.metadata.vscode.originalSpecFile)):void 0)||a.name,l=a.metadata?.vscode?.originalDisplayName||l;break}default:c=a.name;break}n.kernelspec?.name!==c&&(r=!0,n.kernelspec={name:c,language:ge,display_name:l},"vscode"in n&&delete n.vscode,"interpreter"in n&&delete n.interpreter)}else if(s&&!n.kernelspec){let a=s.metadata?.vscode?.originalSpecFile?Ce(nt(s.metadata.vscode.originalSpecFile)):void 0;n.kernelspec={name:a||s.name||s.display_name||"",display_name:s.metadata?.vscode?.originalDisplayName||s.display_name||s.name||""},s.language&&(n.kernelspec.language=s.language),i=s.id,r=!0}else if(s&&n.kernelspec){let l=(s.metadata?.vscode?.originalSpecFile?Ce(nt(s.metadata.vscode.originalSpecFile)):void 0)||s.name||s.display_name||"",c=s.metadata?.vscode?.originalDisplayName||s.display_name||s.name||"",u=s.language||s.language||"";(n.kernelspec.name!==l||n.kernelspec.language!==u||n.kernelspec.display_name!==c||i!==s.id)&&(r=!0,n.kernelspec.name=l,n.kernelspec.display_name=c,n.kernelspec.language=u,i=s.id);try{delete n.kernelspec.metadata}catch{}}return{changed:r,kernelId:i}}async function rd(n,e,t,r){let i=Dh(t);if(!i){let a=Pi.get(n);r&&a?.started&&a.end(r?void 0:!1,n.executionSummary?.timing?.endTime);return}Pi.get(n)||(r=!0);let o=Pi.getOrCreate(n,e),s=o.executionOrder;o.started||(o.start(n.executionSummary?.timing?.startTime),o.executionOrder=n.executionSummary?.executionOrder||s),await o.appendOutput(i),o.end(r?void 0:!1,n.executionSummary?.timing?.endTime)}function tj(n,e){let t=/Cell\s+(?:\u001b\[.+?m)?In\s*\[(?\d+)\],\s*line (?\d+).*/,r=/Input\s+?(?:\u001b\[.+?m)?In\s*\[(?\d+)\][^<]*\d+)>.*/,i;for(let s of n){let a=t.exec(s)??r.exec(s);if(a&&a.groups){i=parseInt(a.groups.lineNumber);break}}let o;if(i&&i>0&&i<=e.document.lineCount){let s=e.document.lineAt(i-1),a=s.text.split("#")[0].trimEnd().length;o=new An.Range(new An.Position(s.lineNumber,s.firstNonWhitespaceCharacterIndex),new An.Position(s.lineNumber,a))}return o}function QS(n){if(n.hasOwnProperty("text/html")){let e=n["text/html"];typeof e=="string"&&e.includes('