@famibee/skynovel 1.30.0 → 1.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/appMain.js CHANGED
@@ -12,5 +12,5 @@ GFS4: `),console.error(e)});if(!Ne[Ve]){var Bl=ir[Ve]||[];tu(Ne,Bl),Ne.close=fun
12
12
  missingProperty: ${l},
13
13
  depsCount: ${m},
14
14
  deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[m,a]=s(u);o(u,m),c(u,a)}};function s({schema:u}){const m={},a={};for(const l in u){if(l==="__proto__")continue;const v=Array.isArray(u[l])?m:a;v[l]=u[l]}return[m,a]}function o(u,m=u.schema){const{gen:a,data:l,it:v}=u;if(Object.keys(m).length===0)return;const h=a.let("missing");for(const d in m){const p=m[d];if(p.length===0)continue;const E=(0,n.propertyInData)(a,l,d,v.opts.ownProperties);u.setParams({property:d,depsCount:p.length,deps:p.join(", ")}),v.allErrors?a.if(E,()=>{for(const f of p)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${E} && (${(0,n.checkMissingProp)(u,p,h)})`),(0,n.reportMissingProp)(u,h),a.else())}}e.validatePropertyDeps=o;function c(u,m=u.schema){const{gen:a,data:l,keyword:v,it:h}=u,d=a.name("valid");for(const p in m)(0,r.alwaysValidSchema)(h,m[p])||(a.if((0,n.propertyInData)(a,l,p,h.opts.ownProperties),()=>{const E=u.subschema({keyword:v,schemaProp:p},d);u.mergeValidEvaluated(E,d)},()=>a.var(d,!0)),u.ok(d))}e.validateSchemaDeps=c,e.default=i})(kf);var qo={};Object.defineProperty(qo,"__esModule",{value:!0});const Uf=re,T0=le,D0={message:"property name must be valid",params:({params:e})=>(0,Uf._)`{propertyName: ${e.propertyName}}`},R0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D0,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,T0.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,Uf.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};qo.default=R0;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});const di=ne,$t=re,C0=Vt,hi=le,P0={message:"must NOT have additional properties",params:({params:e})=>(0,$t._)`{additionalProperty: ${e.additionalProperty}}`},A0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:P0,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,hi.alwaysValidSchema)(o,r))return;const m=(0,di.allSchemaProperties)(n.properties),a=(0,di.allSchemaProperties)(n.patternProperties);l(),e.ok((0,$t._)`${s} === ${C0.default.errors}`);function l(){t.forIn("key",i,E=>{!m.length&&!a.length?d(E):t.if(v(E),()=>d(E))})}function v(E){let f;if(m.length>8){const $=(0,hi.schemaRefOrVal)(o,n.properties,"properties");f=(0,di.isOwnProperty)(t,$,E)}else m.length?f=(0,$t.or)(...m.map($=>(0,$t._)`${E} === ${$}`)):f=$t.nil;return a.length&&(f=(0,$t.or)(f,...a.map($=>(0,$t._)`${(0,di.usePattern)(e,$)}.test(${E})`))),(0,$t.not)(f)}function h(E){t.code((0,$t._)`delete ${i}[${E}]`)}function d(E){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,hi.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(p(E,f,!1),t.if((0,$t.not)(f),()=>{e.reset(),h(E)})):(p(E,f),c||t.if((0,$t.not)(f),()=>t.break()))}}function p(E,f,$){const _={keyword:"additionalProperties",dataProp:E,dataPropType:hi.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};ts.default=A0;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});const b0=Tt,ac=ne,Ss=le,cc=ts,L0={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&cc.default.code(new b0.KeywordCxt(s,cc.default,"additionalProperties"));const o=(0,ac.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Ss.mergeEvaluated.props(t,(0,Ss.toHash)(o),s.props));const c=o.filter(l=>!(0,Ss.alwaysValidSchema)(s,r[l]));if(c.length===0)return;const u=t.name("valid");for(const l of c)m(l)?a(l):(t.if((0,ac.propertyInData)(t,i,l,s.opts.ownProperties)),a(l),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(l),e.ok(u);function m(l){return s.opts.useDefaults&&!s.compositeRule&&r[l].default!==void 0}function a(l){e.subschema({keyword:"properties",schemaProp:l,dataProp:l},u)}}};Go.default=L0;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});const uc=ne,mi=re,fc=le,lc=le,F0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:o}=s,c=(0,uc.allSchemaProperties)(r),u=c.filter(p=>(0,fc.alwaysValidSchema)(s,r[p]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const m=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof mi.Name)&&(s.props=(0,lc.evaluatedPropsToName)(t,s.props));const{props:l}=s;v();function v(){for(const p of c)m&&h(p),s.allErrors?d(p):(t.var(a,!0),d(p),t.if(a))}function h(p){for(const E in m)new RegExp(p).test(E)&&(0,fc.checkStrictMode)(s,`property ${E} matches pattern ${p} (use allowMatchingProperties)`)}function d(p){t.forIn("key",n,E=>{t.if((0,mi._)`${(0,uc.usePattern)(e,p)}.test(${E})`,()=>{const f=u.includes(p);f||e.subschema({keyword:"patternProperties",schemaProp:p,dataProp:E,dataPropType:lc.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,mi._)`${l}[${E}]`,!0):!f&&!s.allErrors&&t.if((0,mi.not)(a),()=>t.break())})})}}};Bo.default=F0;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});const j0=le,M0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,j0.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ho.default=M0;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const k0=ne,U0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k0.validateUnion,error:{message:"must match a schema in anyOf"}};Ko.default=U0;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});const Ii=re,z0=le,x0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ii._)`{passingSchemas: ${e.passing}}`},V0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:x0,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(m),e.result(o,()=>e.reset(),()=>e.error(!0));function m(){s.forEach((a,l)=>{let v;(0,z0.alwaysValidSchema)(i,a)?t.var(u,!0):v=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,Ii._)`${u} && ${o}`).assign(o,!1).assign(c,(0,Ii._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),v&&e.mergeEvaluated(v,Ii.Name)})})}}};Wo.default=V0;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});const q0=le,G0={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((s,o)=>{if((0,q0.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Xo.default=G0;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});const ki=re,zf=le,B0={message:({params:e})=>(0,ki.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,ki._)`{failingKeyword: ${e.ifClause}}`},H0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:B0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,zf.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=dc(n,"then"),s=dc(n,"else");if(!i&&!s)return;const o=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){const a=t.let("ifClause");e.setParams({ifClause:a}),t.if(c,m("then",a),m("else",a))}else i?t.if(c,m("then")):t.if((0,ki.not)(c),m("else"));e.pass(o,()=>e.error(!0));function u(){const a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(a)}function m(a,l){return()=>{const v=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(v,o),l?t.assign(l,(0,ki._)`${a}`):e.setParams({ifClause:a})}}}};function dc(e,t){const r=e.schema[t];return r!==void 0&&!(0,zf.alwaysValidSchema)(e,r)}Zo.default=H0;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});const K0=le,W0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,K0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Jo.default=W0;Object.defineProperty(Uo,"__esModule",{value:!0});const X0=ln,Z0=zo,J0=dn,Y0=xo,Q0=Vo,eE=kf,tE=qo,rE=ts,nE=Go,iE=Bo,sE=Ho,oE=Ko,aE=Wo,cE=Xo,uE=Zo,fE=Jo;function lE(e=!1){const t=[sE.default,oE.default,aE.default,cE.default,uE.default,fE.default,tE.default,rE.default,eE.default,nE.default,iE.default];return e?t.push(Z0.default,Y0.default):t.push(X0.default,J0.default),t.push(Q0.default),t}Uo.default=lE;var Yo={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});const Pe=re,dE={message:({schemaCode:e})=>(0,Pe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Pe._)`{format: ${e}}`},hE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:dE,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:m,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?v():h();function v(){const d=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),p=r.const("fDef",(0,Pe._)`${d}[${o}]`),E=r.let("fType"),f=r.let("format");r.if((0,Pe._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>r.assign(E,(0,Pe._)`${p}.type || "string"`).assign(f,(0,Pe._)`${p}.validate`),()=>r.assign(E,(0,Pe._)`"string"`).assign(f,p)),e.fail$data((0,Pe.or)($(),_()));function $(){return u.strictSchema===!1?Pe.nil:(0,Pe._)`${o} && !${f}`}function _(){const T=a.$async?(0,Pe._)`(${p}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Pe._)`${f}(${n})`,k=(0,Pe._)`(typeof ${f} == "function" ? ${T} : ${f}.test(${n}))`;return(0,Pe._)`${f} && ${f} !== true && ${E} === ${t} && !${k}`}}function h(){const d=l.formats[s];if(!d){$();return}if(d===!0)return;const[p,E,f]=_(d);p===t&&e.pass(T());function $(){if(u.strictSchema===!1){l.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${s}" ignored in schema at path "${m}"`}}function _(k){const O=k instanceof RegExp?(0,Pe.regexpCode)(k):u.code.formats?(0,Pe._)`${u.code.formats}${(0,Pe.getProperty)(s)}`:void 0,D=r.scopeValue("formats",{key:s,ref:k,code:O});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,Pe._)`${D}.validate`]:["string",k,D]}function T(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Pe._)`await ${f}(${n})`}return typeof E=="function"?(0,Pe._)`${f}(${n})`:(0,Pe._)`${f}.test(${n})`}}}};Qo.default=hE;Object.defineProperty(Yo,"__esModule",{value:!0});const mE=Qo,pE=[mE.default];Yo.default=pE;var cn={};Object.defineProperty(cn,"__esModule",{value:!0});cn.contentVocabulary=cn.metadataVocabulary=void 0;cn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];cn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(No,"__esModule",{value:!0});const yE=Io,EE=To,vE=Uo,gE=Yo,hc=cn,$E=[yE.default,EE.default,(0,vE.default)(),gE.default,hc.metadataVocabulary,hc.contentVocabulary];No.default=$E;var ea={},xf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(xf);Object.defineProperty(ea,"__esModule",{value:!0});const Br=re,xs=xf,mc=at,_E=le,SE={message:({params:{discrError:e,tagName:t}})=>e===xs.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Br._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},wE={keyword:"discriminator",type:"object",schemaType:"object",error:SE,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),m=t.const("tag",(0,Br._)`${r}${(0,Br.getProperty)(c)}`);t.if((0,Br._)`typeof ${m} == "string"`,()=>a(),()=>e.error(!1,{discrError:xs.DiscrError.Tag,tag:m,tagName:c})),e.ok(u);function a(){const h=v();t.if(!1);for(const d in h)t.elseIf((0,Br._)`${m} === ${d}`),t.assign(u,l(h[d]));t.else(),e.error(!1,{discrError:xs.DiscrError.Mapping,tag:m,tagName:c}),t.endIf()}function l(h){const d=t.name("valid"),p=e.subschema({keyword:"oneOf",schemaProp:h},d);return e.mergeEvaluated(p,Br.Name),d}function v(){var h;const d={},p=f(i);let E=!0;for(let T=0;T<o.length;T++){let k=o[T];(k==null?void 0:k.$ref)&&!(0,_E.schemaHasRulesButRef)(k,s.self.RULES)&&(k=mc.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,k==null?void 0:k.$ref),k instanceof mc.SchemaEnv&&(k=k.schema));const O=(h=k==null?void 0:k.properties)===null||h===void 0?void 0:h[c];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);E=E&&(p||f(k)),$(O,T)}if(!E)throw new Error(`discriminator: "${c}" must be required`);return d;function f({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,k){if(T.const)_(T.const,k);else if(T.enum)for(const O of T.enum)_(O,k);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(T,k){if(typeof T!="string"||T in d)throw new Error(`discriminator: "${c}" values must be unique strings`);d[T]=k}}}};ea.default=wE;const NE="http://json-schema.org/draft-07/schema#",IE="http://json-schema.org/draft-07/schema#",OE="Core schema meta-schema",TE={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},DE=["object","boolean"],RE={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}};var CE={$schema:NE,$id:IE,title:OE,definitions:TE,type:DE,properties:RE,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=cf,n=No,i=ea,s=CE,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(v,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var m=Tt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var a=re;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}})})(bi,bi.exports);var Vs={exports:{}},Vf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,U){return{validate:P,compare:U}}e.fullFormats={date:t(s,o),time:t(u,m),"date-time":t(l,v),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:f,int32:{type:"number",validate:T},int64:{type:"number",validate:k},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats=Et(te({},e.fullFormats),{date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i}),e.formatNames=Object.keys(e.fullFormats);function r(P){return P%4===0&&(P%100!==0||P%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(P){const U=n.exec(P);if(!U)return!1;const x=+U[1],V=+U[2],Y=+U[3];return V>=1&&V<=12&&Y>=1&&Y<=(V===2&&r(x)?29:i[V])}function o(P,U){if(!!(P&&U))return P>U?1:P<U?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(P,U){const x=c.exec(P);if(!x)return!1;const V=+x[1],Y=+x[2],Z=+x[3],ee=x[5];return(V<=23&&Y<=59&&Z<=59||V===23&&Y===59&&Z===60)&&(!U||ee!=="")}function m(P,U){if(!(P&&U))return;const x=c.exec(P),V=c.exec(U);if(!!(x&&V))return P=x[1]+x[2]+x[3]+(x[4]||""),U=V[1]+V[2]+V[3]+(V[4]||""),P>U?1:P<U?-1:0}const a=/t|\s/i;function l(P){const U=P.split(a);return U.length===2&&s(U[0])&&u(U[1],!0)}function v(P,U){if(!(P&&U))return;const[x,V]=P.split(a),[Y,Z]=U.split(a),ee=o(x,Y);if(ee!==void 0)return ee||m(V,Z)}const h=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p(P){return h.test(P)&&d.test(P)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(P){return E.lastIndex=0,E.test(P)}const $=-(2**31),_=2**31-1;function T(P){return Number.isInteger(P)&&P<=_&&P>=$}function k(P){return Number.isInteger(P)}function O(){return!0}const D=/[^\\]\\Z/;function M(P){if(D.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}})(Vf);var qf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=bi.exports,r=re,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:u})=>r.str`should be ${i[c].okStr} ${u}`,params:({keyword:c,schemaCode:u})=>r._`{comparison: ${i[c].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:u,data:m,schemaCode:a,keyword:l,it:v}=c,{opts:h,self:d}=v;if(!h.validateFormats)return;const p=new t.KeywordCxt(v,d.RULES.all.format.definition,"format");p.$data?E():f();function E(){const _=u.scopeValue("formats",{ref:d.formats,code:h.code.formats}),T=u.const("fmt",r._`${_}[${p.schemaCode}]`);c.fail$data(r.or(r._`typeof ${T} != "object"`,r._`${T} instanceof RegExp`,r._`typeof ${T}.compare != "function"`,$(T)))}function f(){const _=p.schema,T=d.formats[_];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const k=u.scopeValue("formats",{key:_,ref:T,code:h.code.formats?r._`${h.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(k))}function $(_){return r._`${_}.compare(${m}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(qf);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Vf,n=qf,i=re,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(m,a={keywords:!0})=>{if(Array.isArray(a))return u(m,a,r.fullFormats,s),m;const[l,v]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],h=a.formats||r.formatNames;return u(m,h,l,v),a.keywords&&n.default(m),m};c.get=(m,a="full")=>{const v=(a==="fast"?r.fastFormats:r.fullFormats)[m];if(!v)throw new Error(`Unknown format "${m}"`);return v};function u(m,a,l,v){var h,d;(h=(d=m.opts.code).formats)!==null&&h!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${v}`);for(const p of a)m.addFormat(p,l[p])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Vs,Vs.exports);const PE=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!AE(i,s)&&n||Object.defineProperty(e,r,s)},AE=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},bE=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},LE=(e,t)=>`/* Wrapped ${e}*/
15
- ${t}`,FE=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jE=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ME=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=LE.bind(null,n,t.toString());Object.defineProperty(i,"name",jE),Object.defineProperty(e,"toString",Et(te({},FE),{value:i}))},kE=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))PE(e,t,i,r);return bE(e,t),ME(e,t,n),e};var UE=kE;const zE=UE;var xE=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const c=function(...u){const m=this,a=()=>{s=void 0,i&&(o=e.apply(m,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(m,u)),o};return zE(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},lr={exports:{}};const VE="2.0.0",qE=256,GE=Number.MAX_SAFE_INTEGER||9007199254740991,BE=16;var rs={SEMVER_SPEC_VERSION:VE,MAX_LENGTH:qE,MAX_SAFE_INTEGER:GE,MAX_SAFE_COMPONENT_LENGTH:BE};const HE=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ns=HE;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=rs,n=ns;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const v=c++;n(m,v,a),o[m]=v,s[v]=a,i[v]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lr,lr.exports);const KE=["includePrerelease","loose","rtl"],WE=e=>e?typeof e!="object"?{loose:!0}:KE.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var is=WE;const pc=/^[0-9]+$/,Gf=(e,t)=>{const r=pc.test(e),n=pc.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},XE=(e,t)=>Gf(t,e);var qs={compareIdentifiers:Gf,rcompareIdentifiers:XE};const pi=ns,{MAX_LENGTH:yc,MAX_SAFE_INTEGER:yi}=rs,{re:Ec,t:vc}=lr.exports,ZE=is,{compareIdentifiers:qr}=qs;class _t{constructor(t,r){if(r=ZE(r),t instanceof _t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>yc)throw new TypeError(`version is longer than ${yc} characters`);pi("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ec[vc.LOOSE]:Ec[vc.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>yi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yi||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<yi)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pi("SemVer.compare",this.version,this.options,t),!(t instanceof _t)){if(typeof t=="string"&&t===this.version)return 0;t=new _t(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof _t||(t=new _t(t,this.options)),qr(this.major,t.major)||qr(this.minor,t.minor)||qr(this.patch,t.patch)}comparePre(t){if(t instanceof _t||(t=new _t(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(qr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var rt=_t;const{MAX_LENGTH:JE}=rs,{re:gc,t:$c}=lr.exports,_c=rt,YE=is,QE=(e,t)=>{if(t=YE(t),e instanceof _c)return e;if(typeof e!="string"||e.length>JE||!(t.loose?gc[$c.LOOSE]:gc[$c.FULL]).test(e))return null;try{return new _c(e,t)}catch{return null}};var hn=QE;const ev=hn,tv=(e,t)=>{const r=ev(e,t);return r?r.version:null};var rv=tv;const nv=hn,iv=(e,t)=>{const r=nv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var sv=iv;const Sc=rt,ov=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Sc(e instanceof Sc?e.version:e,r).inc(t,n).version}catch{return null}};var av=ov;const wc=rt,cv=(e,t,r)=>new wc(e,r).compare(new wc(t,r));var Rt=cv;const uv=Rt,fv=(e,t,r)=>uv(e,t,r)===0;var ta=fv;const Nc=hn,lv=ta,dv=(e,t)=>{if(lv(e,t))return null;{const r=Nc(e),n=Nc(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var hv=dv;const mv=rt,pv=(e,t)=>new mv(e,t).major;var yv=pv;const Ev=rt,vv=(e,t)=>new Ev(e,t).minor;var gv=vv;const $v=rt,_v=(e,t)=>new $v(e,t).patch;var Sv=_v;const wv=hn,Nv=(e,t)=>{const r=wv(e,t);return r&&r.prerelease.length?r.prerelease:null};var Iv=Nv;const Ov=Rt,Tv=(e,t,r)=>Ov(t,e,r);var Dv=Tv;const Rv=Rt,Cv=(e,t)=>Rv(e,t,!0);var Pv=Cv;const Ic=rt,Av=(e,t,r)=>{const n=new Ic(e,r),i=new Ic(t,r);return n.compare(i)||n.compareBuild(i)};var ra=Av;const bv=ra,Lv=(e,t)=>e.sort((r,n)=>bv(r,n,t));var Fv=Lv;const jv=ra,Mv=(e,t)=>e.sort((r,n)=>jv(n,r,t));var kv=Mv;const Uv=Rt,zv=(e,t,r)=>Uv(e,t,r)>0;var ss=zv;const xv=Rt,Vv=(e,t,r)=>xv(e,t,r)<0;var na=Vv;const qv=Rt,Gv=(e,t,r)=>qv(e,t,r)!==0;var Bf=Gv;const Bv=Rt,Hv=(e,t,r)=>Bv(e,t,r)>=0;var ia=Hv;const Kv=Rt,Wv=(e,t,r)=>Kv(e,t,r)<=0;var sa=Wv;const Xv=ta,Zv=Bf,Jv=ss,Yv=ia,Qv=na,eg=sa,tg=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Xv(e,r,n);case"!=":return Zv(e,r,n);case">":return Jv(e,r,n);case">=":return Yv(e,r,n);case"<":return Qv(e,r,n);case"<=":return eg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Hf=tg;const rg=rt,ng=hn,{re:Ei,t:vi}=lr.exports,ig=(e,t)=>{if(e instanceof rg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(Ei[vi.COERCE]);else{let n;for(;(n=Ei[vi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Ei[vi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ei[vi.COERCERTL].lastIndex=-1}return r===null?null:ng(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var sg=ig,og=de;de.Node=Rr;de.create=de;function de(e){var t=this;if(t instanceof de||(t=new de),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}de.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};de.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};de.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};de.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)cg(this,arguments[e]);return this.length};de.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ug(this,arguments[e]);return this.length};de.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};de.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};de.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};de.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};de.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};de.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};de.prototype.map=function(e,t){t=t||this;for(var r=new de,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};de.prototype.mapReverse=function(e,t){t=t||this;for(var r=new de,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};de.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};de.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};de.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};de.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};de.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};de.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};de.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=ag(this,i,r[n]);return s};de.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function ag(e,t,r){var n=t===e.head?new Rr(r,null,t,e):new Rr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function cg(e,t){e.tail=new Rr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ug(e,t){e.head=new Rr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Rr(e,t,r,n){if(!(this instanceof Rr))return new Rr(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{require("./iterator.js")(de)}catch{}const fg=og,Sr=Symbol("max"),Bt=Symbol("length"),Gr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),wr=Symbol("maxAge"),Gt=Symbol("dispose"),Oc=Symbol("noDisposeOnSet"),je=Symbol("lruList"),St=Symbol("cache"),Kf=Symbol("updateAgeOnGet"),ws=()=>1;class lg{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Sr]=t.max||1/0;const r=t.length||ws;if(this[Gr]=typeof r!="function"?ws:r,this[Mn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[wr]=t.maxAge||0,this[Gt]=t.dispose,this[Oc]=t.noDisposeOnSet||!1,this[Kf]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Sr]=t||1/0,In(this)}get max(){return this[Sr]}set allowStale(t){this[Mn]=!!t}get allowStale(){return this[Mn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[wr]=t,In(this)}get maxAge(){return this[wr]}set lengthCalculator(t){typeof t!="function"&&(t=ws),t!==this[Gr]&&(this[Gr]=t,this[Bt]=0,this[je].forEach(r=>{r.length=this[Gr](r.value,r.key),this[Bt]+=r.length})),In(this)}get lengthCalculator(){return this[Gr]}get length(){return this[Bt]}get itemCount(){return this[je].length}rforEach(t,r){r=r||this;for(let n=this[je].tail;n!==null;){const i=n.prev;Tc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[je].head;n!==null;){const i=n.next;Tc(this,t,n,r),n=i}}keys(){return this[je].toArray().map(t=>t.key)}values(){return this[je].toArray().map(t=>t.value)}reset(){this[Gt]&&this[je]&&this[je].length&&this[je].forEach(t=>this[Gt](t.key,t.value)),this[St]=new Map,this[je]=new fg,this[Bt]=0}dump(){return this[je].map(t=>Ui(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[je]}set(t,r,n){if(n=n||this[wr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Gr](r,t);if(this[St].has(t)){if(s>this[Sr])return Jr(this,this[St].get(t)),!1;const u=this[St].get(t).value;return this[Gt]&&(this[Oc]||this[Gt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Bt]+=s-u.length,u.length=s,this.get(t),In(this),!0}const o=new dg(t,r,s,i,n);return o.length>this[Sr]?(this[Gt]&&this[Gt](t,r),!1):(this[Bt]+=o.length,this[je].unshift(o),this[St].set(t,this[je].head),In(this),!0)}has(t){if(!this[St].has(t))return!1;const r=this[St].get(t).value;return!Ui(this,r)}get(t){return Ns(this,t,!0)}peek(t){return Ns(this,t,!1)}pop(){const t=this[je].tail;return t?(Jr(this,t),t.value):null}del(t){Jr(this,this[St].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[St].forEach((t,r)=>Ns(this,r,!1))}}const Ns=(e,t,r)=>{const n=e[St].get(t);if(n){const i=n.value;if(Ui(e,i)){if(Jr(e,n),!e[Mn])return}else r&&(e[Kf]&&(n.value.now=Date.now()),e[je].unshiftNode(n));return i.value}},Ui=(e,t)=>{if(!t||!t.maxAge&&!e[wr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[wr]&&r>e[wr]},In=e=>{if(e[Bt]>e[Sr])for(let t=e[je].tail;e[Bt]>e[Sr]&&t!==null;){const r=t.prev;Jr(e,t),t=r}},Jr=(e,t)=>{if(t){const r=t.value;e[Gt]&&e[Gt](r.key,r.value),e[Bt]-=r.length,e[St].delete(r.key),e[je].removeNode(t)}};class dg{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Tc=(e,t,r,n)=>{let i=r.value;Ui(e,i)&&(Jr(e,r),e[Mn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var hg=lg;class kn{constructor(t,r){if(r=pg(r),t instanceof kn)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new kn(t.raw,r);if(t instanceof Gs)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(i=>!Rc(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const i of this.set)if(i.length===1&&$g(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${t}`,i=Dc.get(n);if(i)return i;const s=this.options.loose,o=s?ot[Ye.HYPHENRANGELOOSE]:ot[Ye.HYPHENRANGE];t=t.replace(o,Cg(this.options.includePrerelease)),Oe("hyphen replace",t),t=t.replace(ot[Ye.COMPARATORTRIM],Eg),Oe("comparator trim",t),t=t.replace(ot[Ye.TILDETRIM],vg),t=t.replace(ot[Ye.CARETTRIM],gg),t=t.split(/\s+/).join(" ");let c=t.split(" ").map(l=>_g(l,this.options)).join(" ").split(/\s+/).map(l=>Rg(l,this.options));s&&(c=c.filter(l=>(Oe("loose invalid filter",l,this.options),!!l.match(ot[Ye.COMPARATORLOOSE])))),Oe("range list",c);const u=new Map,m=c.map(l=>new Gs(l,this.options));for(const l of m){if(Rc(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");const a=[...u.values()];return Dc.set(n,a),a}intersects(t,r){if(!(t instanceof kn))throw new TypeError("a Range is required");return this.set.some(n=>Cc(n,r)&&t.set.some(i=>Cc(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new yg(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Pg(this.set[r],t,this.options))return!0;return!1}}var Ct=kn;const mg=hg,Dc=new mg({max:1e3}),pg=is,Gs=os,Oe=ns,yg=rt,{re:ot,t:Ye,comparatorTrimReplace:Eg,tildeTrimReplace:vg,caretTrimReplace:gg}=lr.exports,Rc=e=>e.value==="<0.0.0-0",$g=e=>e.value==="",Cc=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},_g=(e,t)=>(Oe("comp",e,t),e=Ng(e,t),Oe("caret",e),e=Sg(e,t),Oe("tildes",e),e=Og(e,t),Oe("xrange",e),e=Dg(e,t),Oe("stars",e),e),Qe=e=>!e||e.toLowerCase()==="x"||e==="*",Sg=(e,t)=>e.trim().split(/\s+/).map(r=>wg(r,t)).join(" "),wg=(e,t)=>{const r=t.loose?ot[Ye.TILDELOOSE]:ot[Ye.TILDE];return e.replace(r,(n,i,s,o,c)=>{Oe("tilde",e,n,i,s,o,c);let u;return Qe(i)?u="":Qe(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Qe(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Oe("replaceTilde pr",c),u=`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Oe("tilde return",u),u})},Ng=(e,t)=>e.trim().split(/\s+/).map(r=>Ig(r,t)).join(" "),Ig=(e,t)=>{Oe("caret",e,t);const r=t.loose?ot[Ye.CARETLOOSE]:ot[Ye.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,c,u)=>{Oe("caret",e,i,s,o,c,u);let m;return Qe(s)?m="":Qe(o)?m=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Qe(c)?s==="0"?m=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Oe("replaceCaret pr",u),s==="0"?o==="0"?m=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(Oe("no pr"),s==="0"?o==="0"?m=`>=${s}.${o}.${c}${n} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),Oe("caret return",m),m})},Og=(e,t)=>(Oe("replaceXRanges",e,t),e.split(/\s+/).map(r=>Tg(r,t)).join(" ")),Tg=(e,t)=>{e=e.trim();const r=t.loose?ot[Ye.XRANGELOOSE]:ot[Ye.XRANGE];return e.replace(r,(n,i,s,o,c,u)=>{Oe("xRange",e,n,i,s,o,c,u);const m=Qe(s),a=m||Qe(o),l=a||Qe(c),v=l;return i==="="&&v&&(i=""),u=t.includePrerelease?"-0":"",m?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&v?(a&&(o=0),c=0,i===">"?(i=">=",a?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",a?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):a?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Oe("xRange return",n),n})},Dg=(e,t)=>(Oe("replaceStars",e,t),e.trim().replace(ot[Ye.STAR],"")),Rg=(e,t)=>(Oe("replaceGTE0",e,t),e.trim().replace(ot[t.includePrerelease?Ye.GTE0PRE:Ye.GTE0],"")),Cg=e=>(t,r,n,i,s,o,c,u,m,a,l,v,h)=>(Qe(n)?r="":Qe(i)?r=`>=${n}.0.0${e?"-0":""}`:Qe(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Qe(m)?u="":Qe(a)?u=`<${+m+1}.0.0-0`:Qe(l)?u=`<${m}.${+a+1}.0-0`:v?u=`<=${m}.${a}.${l}-${v}`:e?u=`<${m}.${a}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Pg=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Oe(e[n].semver),e[n].semver!==Gs.ANY&&e[n].semver.prerelease.length>0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},On=Symbol("SemVer ANY");class zi{static get ANY(){return On}constructor(t,r){if(r=Ag(r),t instanceof zi){if(t.loose===!!r.loose)return t;t=t.value}Os("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===On?this.value="":this.value=this.operator+this.semver.version,Os("comp",this)}parse(t){const r=this.options.loose?Pc[Ac.COMPARATORLOOSE]:Pc[Ac.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new bc(n[2],this.options.loose):this.semver=On}toString(){return this.value}test(t){if(Os("Comparator.test",t,this.options.loose),this.semver===On||t===On)return!0;if(typeof t=="string")try{t=new bc(t,this.options)}catch{return!1}return Is(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof zi))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Lc(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new Lc(this.value,r).test(t.semver);const n=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<"),s=this.semver.version===t.semver.version,o=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),c=Is(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),u=Is(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&o||c||u}}var os=zi;const Ag=is,{re:Pc,t:Ac}=lr.exports,Is=Hf,Os=ns,bc=rt,Lc=Ct,bg=Ct,Lg=(e,t,r)=>{try{t=new bg(t,r)}catch{return!1}return t.test(e)};var as=Lg;const Fg=Ct,jg=(e,t)=>new Fg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Mg=jg;const kg=rt,Ug=Ct,zg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Ug(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new kg(n,r))}),n};var xg=zg;const Vg=rt,qg=Ct,Gg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new qg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Vg(n,r))}),n};var Bg=Gg;const Ts=rt,Hg=Ct,Fc=ss,Kg=(e,t)=>{e=new Hg(e,t);let r=new Ts("0.0.0");if(e.test(r)||(r=new Ts("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new Ts(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Fc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Fc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Wg=Kg;const Xg=Ct,Zg=(e,t)=>{try{return new Xg(e,t).range||"*"}catch{return null}};var Jg=Zg;const Yg=rt,Wf=os,{ANY:Qg}=Wf,e$=Ct,t$=as,jc=ss,Mc=na,r$=sa,n$=ia,i$=(e,t,r,n)=>{e=new Yg(e,n),t=new e$(t,n);let i,s,o,c,u;switch(r){case">":i=jc,s=r$,o=Mc,c=">",u=">=";break;case"<":i=Mc,s=n$,o=jc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(t$(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,v=null;if(a.forEach(h=>{h.semver===Qg&&(h=new Wf(">=0.0.0")),l=l||h,v=v||h,i(h.semver,l.semver,n)?l=h:o(h.semver,v.semver,n)&&(v=h)}),l.operator===c||l.operator===u||(!v.operator||v.operator===c)&&s(e,v.semver))return!1;if(v.operator===u&&o(e,v.semver))return!1}return!0};var oa=i$;const s$=oa,o$=(e,t,r)=>s$(e,t,">",r);var a$=o$;const c$=oa,u$=(e,t,r)=>c$(e,t,"<",r);var f$=u$;const kc=Ct,l$=(e,t,r)=>(e=new kc(e,r),t=new kc(t,r),e.intersects(t));var d$=l$;const h$=as,m$=Rt;var p$=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>m$(a,l,r));for(const a of o)h$(a,t,r)?(s=a,i||(i=a)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[a,l]of n)a===l?c.push(a):!l&&a===o[0]?c.push("*"):l?a===o[0]?c.push(`<=${l}`):c.push(`${a} - ${l}`):c.push(`>=${a}`);const u=c.join(" || "),m=typeof t.raw=="string"?t.raw:String(t);return u.length<m.length?u:t};const Uc=Ct,Oi=os,{ANY:Ds}=Oi,Tn=as,aa=Rt,y$=(e,t,r={})=>{if(e===t)return!0;e=new Uc(e,r),t=new Uc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=E$(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},E$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ds){if(t.length===1&&t[0].semver===Ds)return!0;r.includePrerelease?e=[new Oi(">=0.0.0-0")]:e=[new Oi(">=0.0.0")]}if(t.length===1&&t[0].semver===Ds){if(r.includePrerelease)return!0;t=[new Oi(">=0.0.0")]}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=zc(i,h,r):h.operator==="<"||h.operator==="<="?s=xc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=aa(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const h of n){if(i&&!Tn(h,String(i),r)||s&&!Tn(h,String(s),r))return null;for(const d of t)if(!Tn(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,v=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const h of t){if(a=a||h.operator===">"||h.operator===">=",m=m||h.operator==="<"||h.operator==="<=",i){if(v&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===v.major&&h.semver.minor===v.minor&&h.semver.patch===v.patch&&(v=!1),h.operator===">"||h.operator===">="){if(c=zc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!Tn(i.semver,String(h),r))return!1}if(s){if(l&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===l.major&&h.semver.minor===l.minor&&h.semver.patch===l.patch&&(l=!1),h.operator==="<"||h.operator==="<="){if(u=xc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!Tn(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&m&&!s&&o!==0||s&&a&&!i&&o!==0||v||l)},zc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},xc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var v$=y$;const Rs=lr.exports;var g$={re:Rs.re,src:Rs.src,tokens:Rs.t,SEMVER_SPEC_VERSION:rs.SEMVER_SPEC_VERSION,SemVer:rt,compareIdentifiers:qs.compareIdentifiers,rcompareIdentifiers:qs.rcompareIdentifiers,parse:hn,valid:rv,clean:sv,inc:av,diff:hv,major:yv,minor:gv,patch:Sv,prerelease:Iv,compare:Rt,rcompare:Dv,compareLoose:Pv,compareBuild:ra,sort:Fv,rsort:kv,gt:ss,lt:na,eq:ta,neq:Bf,gte:ia,lte:sa,cmp:Hf,coerce:sg,Comparator:os,Range:Ct,satisfies:as,toComparators:Mg,maxSatisfying:xg,minSatisfying:Bg,minVersion:Wg,validRange:Jg,outside:oa,gtr:a$,ltr:f$,intersects:d$,simplifyRange:p$,subset:v$},cs={exports:{}},ca={exports:{}};const Xf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};ca.exports=Xf;ca.exports.default=Xf;const $$=ca.exports,xi=new WeakMap,Zf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(xi.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return $$(s,e),xi.set(s,n),s};cs.exports=Zf;cs.exports.default=Zf;cs.exports.callCount=e=>{if(!xi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return xi.get(e)};(function(e,t){var r=ir&&ir.__classPrivateFieldSet||function(X,j,z,R,I){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?X!==j||!I:!j.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?I.call(X,z):I?I.value=z:j.set(X,z),z},n=ir&&ir.__classPrivateFieldGet||function(X,j,z,R){if(z==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?X!==j||!R:!j.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?R:z==="a"?R.call(X):R?R.value:j.get(X)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Gi.default,l=un.default,v=Te.default,h=Qc.default,d=Ks.default,p=Cl.default,E=dm,f=no.exports,$=uo.exports,_=Ut,T=bi.exports,k=Vs.exports,O=xE,D=g$,M=cs.exports,P="aes-256-cbc",U=()=>Object.create(null),x=X=>X!=null;let V="";try{delete require.cache[__filename],V=v.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const Y=(X,j)=>{const z=new Set(["undefined","symbol","function"]),R=typeof j;if(z.has(R))throw new TypeError(`Setting a value of type \`${R}\` for key \`${X}\` is not allowed as it's not supported by JSON`)},Z="__internal__",ee=`${Z}.migrations.version`;class ue{constructor(j={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const R=te({configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438},j),I=M(()=>{const S=f.sync({cwd:V}),L=S&&JSON.parse(l.readFileSync(S,"utf8"));return L!=null?L:{}});if(!R.cwd){if(R.projectName||(R.projectName=I().name),!R.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");R.cwd=$(R.projectName,{suffix:R.projectSuffix}).config}if(r(this,u,R,"f"),R.schema){if(typeof R.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new T.default({allErrors:!0,useDefaults:!0});(0,k.default)(S);const L={type:"object",properties:R.schema};r(this,o,S.compile(L),"f");for(const[q,G]of Object.entries(R.schema))G!=null&&G.default&&(n(this,m,"f")[q]=G.default)}R.defaults&&r(this,m,te(te({},n(this,m,"f")),R.defaults),"f"),R.serialize&&(this._serialize=R.serialize),R.deserialize&&(this._deserialize=R.deserialize),this.events=new p.EventEmitter,r(this,c,R.encryptionKey,"f");const F=R.fileExtension?`.${R.fileExtension}`:"";this.path=v.resolve(R.cwd,`${(z=R.configName)!==null&&z!==void 0?z:"config"}${F}`);const C=this.store,y=Object.assign(U(),R.defaults,C);this._validate(y);try{d.deepEqual(C,y)}catch{this.store=y}if(R.watch&&this._watch(),R.migrations){if(R.projectVersion||(R.projectVersion=I().version),!R.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(R.migrations,R.projectVersion)}}get(j,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(j,z);const{store:R}=this;return j in R?R[j]:z}set(j,z){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${Z} key, as it's used to manage this module internal operations.`);const{store:R}=this,I=(F,C)=>{Y(F,C),n(this,u,"f").accessPropertiesByDotNotation?E.set(R,F,C):R[F]=C};if(typeof j=="object"){const F=j;for(const[C,y]of Object.entries(F))I(C,y)}else I(j,z);this.store=R}has(j){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,j):j in this.store}reset(...j){for(const z of j)x(n(this,m,"f")[z])&&this.set(z,n(this,m,"f")[z])}delete(j){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,j):delete z[j],this.store=z}clear(){this.store=U();for(const j of Object.keys(n(this,m,"f")))this.reset(j)}onDidChange(j,z){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(j),z)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(j),R=this._deserialize(z);return this._validate(R),Object.assign(U(),R)}catch(j){if((j==null?void 0:j.code)==="ENOENT")return this._ensureDirectory(),U();if(n(this,u,"f").clearInvalidConfig&&j.name==="SyntaxError")return U();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[j,z]of Object.entries(this.store))yield[j,z]}_encryptData(j){if(!n(this,c,"f"))return j.toString();try{if(n(this,c,"f"))try{if(j.slice(16,17).toString()===":"){const z=j.slice(0,16),R=h.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=h.createDecipheriv(P,R,z);j=Buffer.concat([I.update(Buffer.from(j.slice(17))),I.final()]).toString("utf8")}else{const z=h.createDecipher(P,n(this,c,"f"));j=Buffer.concat([z.update(Buffer.from(j)),z.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,z){let R=j();const I=()=>{const F=R,C=j();(0,a.isDeepStrictEqual)(C,F)||(R=C,z.call(this,C,F))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(j){if(!n(this,o,"f")||n(this,o,"f").call(this,j)||!n(this,o,"f").errors)return;const R=n(this,o,"f").errors.map(({instancePath:I,message:F=""})=>`\`${I.slice(1)}\` ${F}`);throw new Error("Config schema violation: "+R.join("; "))}_ensureDirectory(){l.mkdirSync(v.dirname(this.path),{recursive:!0})}_write(j){let z=this._serialize(j);if(n(this,c,"f")){const R=h.randomBytes(16),I=h.pbkdf2Sync(n(this,c,"f"),R.toString(),1e4,32,"sha512"),F=h.createCipheriv(P,I,R);z=Buffer.concat([R,Buffer.from(":"),F.update(Buffer.from(z)),F.final()])}if({}.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(R){if((R==null?void 0:R.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw R}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(U()),process.platform==="win32"?l.watch(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,z){let R=this._get(ee,"0.0.0");const I=Object.keys(j).filter(C=>this._shouldPerformMigration(C,R,z));let F=te({},this.store);for(const C of I)try{j[C](this),this._set(ee,C),R=C,F=te({},this.store)}catch(y){throw this.store=F,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${y}`)}(this._isVersionInRangeFormat(R)||!D.eq(R,z))&&this._set(ee,z)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===Z?!0:typeof j!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!j.startsWith(`${Z}.`):!1}_isVersionInRangeFormat(j){return D.clean(j)===null}_shouldPerformMigration(j,z,R){return this._isVersionInRangeFormat(j)?z!=="0.0.0"&&D.satisfies(z,j)?!1:D.satisfies(R,j):!(D.lte(j,z)||D.gt(j,R))}_get(j,z){return E.get(this.store,j,z)}_set(j,z){const{store:R}=this;E.set(R,j,z),this.store=R}}t.default=ue,e.exports=ue,e.exports.default=ue})(Ls,Ls.exports);const Vc=Te.default,{app:Ti,ipcMain:Bs,ipcRenderer:qc,shell:_$}=Tl.default,S$=Ls.exports;let Gc=!1;const Bc=()=>{if(!Bs||!Ti)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:Ti.getPath("userData"),appVersion:Ti.getVersion()};return Gc||(Bs.on("electron-store-get-data",t=>{t.returnValue=e}),Gc=!0),e};class w$ extends S${constructor(t){let r,n;if(qc){const i=qc.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else Bs&&Ti&&({defaultCwd:r,appVersion:n}=Bc());t=te({name:"config"},t),t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=Vc.isAbsolute(t.cwd)?t.cwd:Vc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Bc()}openInEditor(){_$.openPath(this.path)}}var Hc=w$,Xt={exports:{}},ua={},N$=ua.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=N$("original-fs");if(Object.keys(e).length>0)return e}catch{}return un.default},Jf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const I$=ua.require(),Je=Te.default,Kc=Jf,O$=typeof process=="object"&&process.platform==="win32",Wc=e=>e&&typeof e=="object",fa=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function qe(e){this.sep=Je.sep,this.fs=I$,Wc(e)&&Wc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var T$=qe;qe.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Errors.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};qe.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=Je.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var c;try{c=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),c=i.fs.openSync(e,"w",438)}if(c)try{i.fs.writeSync(c,t,0,t.length,0)}finally{i.fs.closeSync(c)}return i.fs.chmodSync(e,n||438),!0};qe.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(c,u){if(o&&u.isDirectory())return i(!1);var m=Je.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,v){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(h,d){s.fs.write(d,t,0,t.length,0,function(){s.fs.close(d,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):v?s.fs.write(v,t,0,t.length,0,function(){s.fs.close(v,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};qe.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(c){var u=Je.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Je.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};qe.prototype.getAttributes=function(){};qe.prototype.setAttributes=function(){};qe.crc32update=function(e,t){return fa[(e^t)&255]^e>>>8};qe.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),fa.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=qe.crc32update(r,e[n++]);return~r>>>0};qe.methodToString=function(e){switch(e){case Kc.STORED:return"STORED ("+e+")";case Kc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};qe.canonical=function(e){if(!e)return"";var t=Je.posix.normalize("/"+e.split("\\").join("/"));return Je.join(".",t)};qe.sanitize=function(e,t){e=Je.resolve(Je.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Je.normalize(Je.join(e,r.slice(n,i).join(Je.sep)));if(s.indexOf(e)===0)return s}return Je.normalize(Je.join(e,Je.basename(t)))};qe.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};qe.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};qe.isWin=O$;qe.crcTable=fa;var D$={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Vi=ua.require(),Yf=Te.default;Vi.existsSync=Vi.existsSync||Yf.existsSync;var R$=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&Vi.existsSync(t)?(n=Vi.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=Yf.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};Xt.exports=T$;Xt.exports.Constants=Jf;Xt.exports.Errors=D$;Xt.exports.FileAttr=R$;var us={},Rn=Xt.exports,B=Rn.Constants,C$=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,m=0,a=0,l=0,v=0,h=0,d=0;e|=Rn.isWin?2560:768,r|=B.FLG_EFS;var p={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case B.STORED:this.version=10;case B.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return m},set extraLength(f){m=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return v},set inAttr(f){v=Math.max(0,f)>>>0},get attr(){return h},set attr(f){h=Math.max(0,f)>>>0},get fileAttr(){return h?(h>>>0|0)>>16&4095:0},get offset(){return d},set offset(f){d=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return B.CENHDR+u+m+a},get realDataOffset(){return d+B.LOCHDR+p.fnameLen+p.extraLen},get dataHeader(){return p},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+B.LOCHDR);if($.readUInt32LE(0)!==B.LOCSIG)throw new Error(Rn.Errors.INVALID_LOC);p={version:$.readUInt16LE(B.LOCVER),flags:$.readUInt16LE(B.LOCFLG),method:$.readUInt16LE(B.LOCHOW),time:$.readUInt32LE(B.LOCTIM),crc:$.readUInt32LE(B.LOCCRC),compressedSize:$.readUInt32LE(B.LOCSIZ),size:$.readUInt32LE(B.LOCLEN),fnameLen:$.readUInt16LE(B.LOCNAM),extraLen:$.readUInt16LE(B.LOCEXT)}},loadFromBinary:function(f){if(f.length!==B.CENHDR||f.readUInt32LE(0)!==B.CENSIG)throw new Error(Rn.Errors.INVALID_CEN);e=f.readUInt16LE(B.CENVEM),t=f.readUInt16LE(B.CENVER),r=f.readUInt16LE(B.CENFLG),n=f.readUInt16LE(B.CENHOW),i=f.readUInt32LE(B.CENTIM),s=f.readUInt32LE(B.CENCRC),o=f.readUInt32LE(B.CENSIZ),c=f.readUInt32LE(B.CENLEN),u=f.readUInt16LE(B.CENNAM),m=f.readUInt16LE(B.CENEXT),a=f.readUInt16LE(B.CENCOM),l=f.readUInt16LE(B.CENDSK),v=f.readUInt16LE(B.CENATT),h=f.readUInt32LE(B.CENATX),d=f.readUInt32LE(B.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(B.LOCHDR);return f.writeUInt32LE(B.LOCSIG,0),f.writeUInt16LE(t,B.LOCVER),f.writeUInt16LE(r,B.LOCFLG),f.writeUInt16LE(n,B.LOCHOW),f.writeUInt32LE(i,B.LOCTIM),f.writeUInt32LE(s,B.LOCCRC),f.writeUInt32LE(o,B.LOCSIZ),f.writeUInt32LE(c,B.LOCLEN),f.writeUInt16LE(u,B.LOCNAM),f.writeUInt16LE(m,B.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(B.CENHDR+u+m+a);return f.writeUInt32LE(B.CENSIG,0),f.writeUInt16LE(e,B.CENVEM),f.writeUInt16LE(t,B.CENVER),f.writeUInt16LE(r,B.CENFLG),f.writeUInt16LE(n,B.CENHOW),f.writeUInt32LE(i,B.CENTIM),f.writeUInt32LE(s,B.CENCRC),f.writeUInt32LE(o,B.CENSIZ),f.writeUInt32LE(c,B.CENLEN),f.writeUInt16LE(u,B.CENNAM),f.writeUInt16LE(m,B.CENEXT),f.writeUInt16LE(a,B.CENCOM),f.writeUInt16LE(l,B.CENDSK),f.writeUInt16LE(v,B.CENATT),f.writeUInt32LE(h,B.CENATX),f.writeUInt32LE(d,B.CENOFF),f.fill(0,B.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:Rn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(m),commentLength:f(a),diskNumStart:l,inAttr:v,attr:h,offset:d,entryHeaderSize:f(B.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Hr=Xt.exports,we=Hr.Constants,P$=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return we.ENDHDR+i},loadFromBinary:function(s){if((s.length!==we.ENDHDR||s.readUInt32LE(0)!==we.ENDSIG)&&(s.length<we.ZIP64HDR||s.readUInt32LE(0)!==we.ZIP64SIG))throw new Error(Hr.Errors.INVALID_END);s.readUInt32LE(0)===we.ENDSIG?(e=s.readUInt16LE(we.ENDSUB),t=s.readUInt16LE(we.ENDTOT),r=s.readUInt32LE(we.ENDSIZ),n=s.readUInt32LE(we.ENDOFF),i=s.readUInt16LE(we.ENDCOM)):(e=Hr.readBigUInt64LE(s,we.ZIP64SUB),t=Hr.readBigUInt64LE(s,we.ZIP64TOT),r=Hr.readBigUInt64LE(s,we.ZIP64SIZ),n=Hr.readBigUInt64LE(s,we.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(we.ENDHDR+i);return s.writeUInt32LE(we.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,we.ENDSUB),s.writeUInt16LE(t,we.ENDTOT),s.writeUInt32LE(r,we.ENDSIZ),s.writeUInt32LE(n,we.ENDOFF),s.writeUInt16LE(i,we.ENDCOM),s.fill(" ",we.ENDHDR),s},toJSON:function(){const s=function(o,c){let u=o.toString(16).toUpperCase();for(;u.length<c;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};us.EntryHeader=C$;us.MainHeader=P$;var fs={},A$=function(e){var t=eu.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var m=0;m<s.length;m++){var a=s[m];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},b$=function(e){var t=eu.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var m=i[u];m.copy(o,c),c+=m.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:Xc}=Qc.default,L$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Qf=(e,t)=>Math.imul(e,t)>>>0,Zc=(e,t)=>L$[(e^t)&255]^e>>>8,Bn=()=>typeof Xc=="function"?Xc(Buffer.alloc(12)):Bn.node();Bn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const Di={genSalt:Bn};function ls(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}ls.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Zc(t[0],e),t[1]+=t[0]&255,t[1]=Qf(t[1],134775813)+1,t[2]=Zc(t[2],t[1]>>>24),e};ls.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Qf(e,e^1)>>8&255};function F$(e){const t=new ls(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function j$(e){const t=new ls(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function M$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=F$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function k$(e){Buffer.isBuffer(e)&&e.length>=12?Di.genSalt=function(){return e.slice(0,12)}:e==="node"?Di.genSalt=Bn.node:Di.genSalt=Bn}function U$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=j$(r),s=Di.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var z$={decrypt:M$,encrypt:U$,_salter:k$};fs.Deflater=A$;fs.Inflater=b$;fs.ZipCrypto=z$;var be=Xt.exports,x$=us,lt=be.Constants,Cs=fs,el=function(e){var t=new x$.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function c(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(d){return!((t.flags&8)!==8&&be.crc32(d)!==t.dataHeader.crc)}function m(d,p,E){if(typeof p=="undefined"&&typeof d=="string"&&(E=d,d=void 0),i)return d&&p&&p(Buffer.alloc(0),be.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&p&&p(f),f;if(t.encripted){if(typeof E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=Cs.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case be.Constants.STORED:if(f.copy($),u($))return d&&p&&p($),$;throw d&&p&&p($,be.Errors.BAD_CRC),new Error(be.Errors.BAD_CRC);case be.Constants.DEFLATED:var _=new Cs.Inflater(f);if(d)_.inflateAsync(function(T){T.copy(T,0),p&&(u(T)?p(T):p(T,be.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(be.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&p&&p(Buffer.alloc(0),be.Errors.UNKNOWN_METHOD),new Error(be.Errors.UNKNOWN_METHOD)}}function a(d,p){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&p&&p(c()),c();if(s.length&&!i){var E;switch(t.method){case be.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),d&&p&&p(E),E;default:case be.Constants.DEFLATED:var f=new Cs.Deflater(s);if(d)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),p&&p(E)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&p)p(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,p){return(d.readUInt32LE(p+4)<<4)+d.readUInt32LE(p)}function v(d){for(var p=0,E,f,$;p<d.length;)E=d.readUInt16LE(p),p+=2,f=d.readUInt16LE(p),p+=2,$=d.slice(p,p+f),p+=f,lt.ID_ZIP64===E&&h($)}function h(d){var p,E,f,$;d.length>=lt.EF_ZIP64_SCOMP&&(p=l(d,lt.EF_ZIP64_SUNCOMP),t.size===lt.EF_ZIP64_OR_32&&(t.size=p)),d.length>=lt.EF_ZIP64_RHO&&(E=l(d,lt.EF_ZIP64_SCOMP),t.compressedSize===lt.EF_ZIP64_OR_32&&(t.compressedSize=E)),d.length>=lt.EF_ZIP64_DSN&&(f=l(d,lt.EF_ZIP64_RHO),t.offset===lt.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=lt.EF_ZIP64_DSN+4&&($=d.readUInt32LE(lt.EF_ZIP64_DSN),t.diskNumStart===lt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=be.toBuffer(d);var p=r[r.length-1];i=p===47||p===92,t.fileNameLength=r.length},get extra(){return o},set extra(d){o=d,t.extraLength=d.length,v(d)},get comment(){return n.toString()},set comment(d){n=be.toBuffer(d),t.commentLength=n.length},get name(){var d=r.toString();return i?d.substr(d.length-1).split("/").pop():d.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(d){a(!0,d)},setData:function(d){s=be.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=be.Constants.DEFLATED,t.crc=be.crc32(d),t.changed=!0):t.method=be.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,p){t.changed?d(s):m(!0,d,p)},set attr(d){t.attr=d},get attr(){return t.attr},set header(d){t.loadFromBinary(d)},get header(){return t},packHeader:function(){var d=t.entryHeaderToBinary(),p=be.Constants.CENHDR;return r.copy(d,p),p+=r.length,t.extraLength&&(o.copy(d,p),p+=t.extraLength),t.commentLength&&n.copy(d,p),d},toJSON:function(){const d=function(p){return"<"+(p&&p.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:d(e),data:d(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const Jc=el,V$=us,He=Xt.exports;var q$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new V$.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function m(h){const d=s.diskEntries;let p=s.offset;for(let E=0;E<d;E++){let f=p;const $=new Jc(e);$.header=e.slice(f,f+=He.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),p+=$.header.entryHeaderSize,h($)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var h=s.offset,d=0;d<r.length;d++){var p=h,E=new Jc(e);E.header=e.slice(p,p+=He.Constants.CENHDR),E.entryName=e.slice(p,p+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(p,p+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(p,p+E.header.commentLength)),h+=E.header.entryHeaderSize,r[d]=E,n[E.entryName]=E}}function l(h){var d=e.length-He.Constants.ENDHDR,p=Math.max(0,d-65535),E=p,f=e.length,$=-1,_=0;for(d;d>=E;d--)if(e[d]===80){if(e.readUInt32LE(d)===He.Constants.ENDSIG){$=d,_=d,f=d+He.Constants.ENDHDR,E=d-He.Constants.END64HDR;continue}if(e.readUInt32LE(d)===He.Constants.END64SIG){E=p;continue}if(e.readUInt32LE(d)===He.Constants.ZIP64SIG){$=d,f=d+He.readBigUInt64LE(e,d+He.Constants.ZIP64SIZE)+He.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(He.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+He.Constants.ENDHDR)),h&&a()}function v(){r.length>1&&!u&&r.sort((h,d)=>h.entryName.toLowerCase().localeCompare(d.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(h){i=He.toBuffer(h),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(h){if(!o){m(h);return}r.forEach(h)},getEntry:function(h){return o||a(),n[h]||null},setEntry:function(h){o||a(),r.push(h),n[h.entryName]=h,s.totalEntries=r.length},deleteEntry:function(h){o||a();var d=n[h];if(d&&d.isDirectory){var p=this;this.getEntryChildren(d).forEach(function(E){E.entryName!==h&&p.deleteEntry(E.entryName)})}r.splice(r.indexOf(d),1),delete n[h],s.totalEntries=r.length},getEntryChildren:function(h){if(o||a(),h&&h.isDirectory){const d=[],p=h.entryName,E=p.length;return r.forEach(function(f){f.entryName.substr(0,E)===p&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),v();const h=[],d=[];let p=0,E=0;s.size=0,s.offset=0;for(const _ of r){const T=_.getCompressedData();_.header.offset=E;const k=_.header.dataHeaderToBinary(),O=_.rawEntryName.length,D=Buffer.alloc(O+_.extra.length);_.rawEntryName.copy(D,0),D.copy(_.extra,O);const M=k.length+D.length+T.length;E+=M,h.push(k),h.push(D),h.push(T);const P=_.packHeader();d.push(P),s.size+=P.length,p+=M+P.length}p+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(p);for(const _ of h)_.copy(f,E),E+=_.length;for(const _ of d)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,He.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(h,d,p,E){try{o||a(),v();const f=[],$=[];let _=0,T=0;s.size=0,s.offset=0;const k=function(O){if(O.length){const D=O.pop(),M=D.entryName+D.extra.toString();p&&p(M),D.getCompressedDataAsync(function(P){E&&E(M),D.header.offset=T;const U=D.header.dataHeaderToBinary(),x=Buffer.alloc(M.length,M),V=U.length+x.length+P.length;T+=V,f.push(U),f.push(x),f.push(P);const Y=D.packHeader();$.push(Y),s.size+=Y.length,_+=V+Y.length,k(O)})}else{_+=s.mainHeaderSize,s.offset=T,T=0;const D=Buffer.alloc(_);f.forEach(function(P){P.copy(D,T),T+=P.length}),$.forEach(function(P){P.copy(D,T),T+=P.length});const M=s.toBinary();i&&i.copy(M,He.Constants.ENDHDR),M.copy(D,T),h(D)}};k(r)}catch(f){d(f)}}}};const Le=Xt.exports,Mt=Te.default,G$=el,B$=q$,vr=(e,t)=>typeof e=="boolean"?e:t,Ps=(e,t)=>typeof e=="string"?e:t,H$={noSort:!1,readEntries:!1,method:Le.Constants.NONE,fs:null};var Yc=function(e,t){let r=null;const n=Object.assign(Object.create(null),H$);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Le.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Le(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Le.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Le.Errors.INVALID_FILENAME);const s=new B$(r,n),{canonical:o,sanitize:c}=Le;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName!="undefined"&&typeof a.header!="undefined"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:v,sep:h}=Mt.posix;return l(".",v(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var v=u(a);return v&&v.getData(l)||null},readFileAsync:function(a,l){var v=u(a);v?v.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var v=u(a);if(v){var h=v.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,v){var h=u(a);h?h.getDataAsync(function(d,p){if(p){l(d,p);return}d&&d.length?l(d.toString(v||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var v=u(a);v&&(v.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var v=u(a);v&&v.setData(l)},addLocalFile:function(a,l,v,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=v||d;const p=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,p)}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,v){if(v instanceof RegExp?v=function(h){return function(d){return h.test(d)}}(v):typeof v!="function"&&(v=function(){return!0}),l=l?m(l):"",a=Mt.normalize(a),i.fs.existsSync(a)){const h=i.findFiles(a),d=this;h.length&&h.forEach(function(p){var E=Mt.relative(a,p).split("\\").join("/");if(v(E)){var f=i.fs.statSync(p);f.isFile()?d.addFile(l+E,i.fs.readFileSync(p),"",f):d.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,v,h){h instanceof RegExp?h=function(p){return function(E){return p.test(E)}}(h):typeof h!="function"&&(h=function(){return!0}),v=v?m(v):"",a=Mt.normalize(a);var d=this;i.fs.open(a,"r",function(p){if(p&&p.code==="ENOENT")l(void 0,Le.Errors.FILE_NOT_FOUND.replace("%s",a));else if(p)l(void 0,p);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],T=Mt.relative(a,_).split("\\").join("/");T=T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(T)?i.fs.stat(_,function(k,O){k&&l(void 0,k),O.isFile()?i.fs.readFile(_,function(D,M){D?l(void 0,D):(d.addFile(v+T,M,"",O),$())}):(d.addFile(v+T+"/",Buffer.alloc(0),"",O),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((v,h)=>{const{filter:d,zipPath:p}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&h(f),E&&v(this)},p,d)})},addFile:function(a,l,v,h){let d=u(a);const p=d!=null;p||(d=new G$,d.entryName=a),d.comment=v||"";const E=typeof h=="object"&&h instanceof i.fs.Stats;E&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;if(!Le.isWin){let $=d.isDirectory?16384:32768;E?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0}d.attr=f,d.setData(l),p||s.setEntry(d)},getEntries:function(){return s?s.entries:[]},getEntry:function(a){return u(a)},getEntryCount:function(){return s.getEntryCount()},forEach:function(a){return s.forEach(a)},extractEntryTo:function(a,l,v,h,d,p){h=vr(h,!1),d=vr(d,!1),v=vr(v,!0),p=Ps(p,Ps(d,void 0));var E=u(a);if(!E)throw new Error(Le.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,p&&!E.isDirectory?p:v?f:Mt.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(O){if(O.isDirectory)return;var D=O.getData();if(!D)throw new Error(Le.Errors.CANT_EXTRACT_FILE);var M=o(O.entryName),P=c(l,v?M:Mt.basename(M));const U=d?O.header.fileAttr:void 0;i.writeFileTo(P,D,h,U)}),!0}var T=E.getData();if(!T)throw new Error(Le.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Le.Errors.CANT_OVERRIDE);const k=d?a.header.fileAttr:void 0;return i.writeFileTo($,T,h,k),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var v=s.entries[l].getData(a);if(!v)return!1}catch{return!1}return!0},extractAllTo:function(a,l,v,h){if(l=vr(l,!1),h=Ps(v,h),v=vr(v,!1),!s)throw new Error(Le.Errors.NO_ZIP);s.entries.forEach(function(d){var p=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(p);return}var E=d.getData(h);if(!E)throw new Error(Le.Errors.CANT_EXTRACT_FILE);const f=v?d.header.fileAttr:void 0;i.writeFileTo(p,E,l,f);try{i.fs.utimesSync(p,d.header.time,d.header.time)}catch{throw new Error(Le.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,v,h){if(h||(h=function(){}),l=vr(l,!1),typeof v=="function"&&!h&&(h=v),v=vr(v,!1),!s){h(new Error(Le.Errors.NO_ZIP));return}a=Mt.resolve(a);const d=_=>c(a,Mt.normalize(o(_.entryName.toString()))),p=(_,T)=>new Error(_+': "'+T+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const T=d(_),k=v?_.header.fileAttr:void 0;try{i.makeDir(T),k&&i.fs.chmodSync(T,k),i.fs.utimesSync(T,_.header.time,_.header.time)}catch{h(p("Unable to create folder",T))}}const $=()=>{f.size===0&&h()};for(const _ of f.values()){const T=Mt.normalize(o(_.entryName.toString())),k=c(a,T);_.getDataAsync(function(O,D){if(D){h(new Error(D));return}if(!O)h(new Error(Le.Errors.CANT_EXTRACT_FILE));else{const M=v?_.header.fileAttr:void 0;i.writeFileToAsync(k,O,l,M,function(P){if(!P){h(p("Unable to write file",k));return}i.fs.utimes(k,_.header.time,_.header.time,function(U){if(U){h(p("Unable to set times",k));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var v=s.compressToBuffer();if(v){var h=i.writeFileTo(a,v,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:v,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,p)=>{!a&&n.filename&&(a=n.filename),a||p("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?d($):p("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,v,h,f)},p)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,v,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,v,h),null):s.compressToBuffer()}}},Hn,Yr,Qr,Kn,Nr,Ir,rr,nr,qi,en,Wn,Hs,Xn,Nt,tn,Ri,Zn,Ht;const wt=class{constructor(t,r){ke(this,Wn);ke(this,tn);ke(this,Hn,ce.screen.getPrimaryDisplay().size);ke(this,Yr,oe(this,Hn).width);ke(this,Qr,oe(this,Hn).height);ke(this,Kn,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:te({},process.env),platform:process.platform,arch:process.arch});ke(this,Nr,0);ke(this,Ir,0);ke(this,rr,0);ke(this,nr,0);ke(this,qi,process.platform==="win32");ke(this,en,void 0);ke(this,Xn,!1);ke(this,Nt,!1);this.bw=t,oe(this,Kn).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Kn)),ce.ipcMain.handle("existsSync",(i,s)=>vt.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>vt.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>vt.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>vt.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>vt.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>vt.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>vt.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>vt.appendFile(s,o,c)),ce.ipcMain.handle("win_close",()=>t.close()),ce.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),ce.ipcMain.handle("showMessageBox",(i,s)=>ce.dialog.showMessageBox(s)),ce.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>vt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),ce.ipcMain.handle("navigate_to",(i,s)=>ce.shell.openExternal(s)),ce.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),ce.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;ce.ipcMain.handle("Store",(i,s)=>{n=new Hc(s)}),ce.ipcMain.handle("flush",(i,s)=>{n.store=s}),ce.ipcMain.handle("Store_isEmpty",()=>n.size===0),ce.ipcMain.handle("Store_get",()=>n.store),ce.ipcMain.handle("zip",(i,s,o)=>{const c=new Yc;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{vt.removeSync(o),vt.ensureDirSync(o),new Yc(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,qi)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Ge(this,Nt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,Nr),oe(this,Ir)),t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))),Ge(this,Nt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,Yr),oe(this,Qr)-oe(wt,Ht))}),t.on("leave-full-screen",()=>{Ur(this,tn,Ri).call(this,!1,oe(this,Nr),oe(this,Ir),oe(this,rr),oe(this,nr)+oe(wt,Ht))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Ur(this,tn,Ri).call(this,s,o,c,u,m)),t.on("move",()=>Ur(this,Wn,Hs).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Hc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.BrowserWindow(Et(te({},n),{fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}})),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];Ge(wt,Ht,o-c),Ge(wt,Zn,new wt(s,r)),i=()=>oe(wt,Zn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Wr=wt;Hn=new WeakMap,Yr=new WeakMap,Qr=new WeakMap,Kn=new WeakMap,Nr=new WeakMap,Ir=new WeakMap,rr=new WeakMap,nr=new WeakMap,qi=new WeakMap,en=new WeakMap,Wn=new WeakSet,Hs=function(){if(oe(this,en)||oe(this,Nt))return;Ge(this,Nt,!0);const{x:t,y:r}=this.bw.getBounds();Ge(this,en,setTimeout(()=>{if(Ge(this,en,void 0),oe(this,Xn)){Ge(this,Xn,!1);return}Ge(this,Nt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Ur(this,Wn,Hs).call(this);return}Ur(this,tn,Ri).call(this,!1,n.x,n.y,oe(this,rr),oe(this,nr))},1e3/60*10))},Xn=new WeakMap,Nt=new WeakMap,tn=new WeakSet,Ri=function(t,r,n,i,s){oe(this,Nt)||(Ge(this,Nt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(oe(this,Yr)-r)*.5,n=(oe(this,Qr)-n)*.5):((r<0||r>oe(this,Yr))&&(r=0),(n<0||n>oe(this,Qr))&&(n=0)),(oe(this,Nr)!==r||oe(this,Ir)!==n)&&(Ge(this,Nr,r),Ge(this,Ir,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Ge(this,rr,i),Ge(this,nr,s),this.bw.setContentSize(i,s+oe(wt,Ht)),Ge(this,Nt,!1)))},Zn=new WeakMap,Ht=new WeakMap,ke(Wr,Zn,void 0),ke(Wr,Ht,0);module.exports=Wr;exports.appMain=Wr;
15
+ ${t}`,FE=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jE=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ME=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=LE.bind(null,n,t.toString());Object.defineProperty(i,"name",jE),Object.defineProperty(e,"toString",Et(te({},FE),{value:i}))},kE=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))PE(e,t,i,r);return bE(e,t),ME(e,t,n),e};var UE=kE;const zE=UE;var xE=(e,t)=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const c=function(...u){const m=this,a=()=>{s=void 0,i&&(o=e.apply(m,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(m,u)),o};return zE(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},lr={exports:{}};const VE="2.0.0",qE=256,GE=Number.MAX_SAFE_INTEGER||9007199254740991,BE=16;var rs={SEMVER_SPEC_VERSION:VE,MAX_LENGTH:qE,MAX_SAFE_INTEGER:GE,MAX_SAFE_COMPONENT_LENGTH:BE};const HE=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ns=HE;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=rs,n=ns;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const v=c++;n(m,v,a),o[m]=v,s[v]=a,i[v]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lr,lr.exports);const KE=["includePrerelease","loose","rtl"],WE=e=>e?typeof e!="object"?{loose:!0}:KE.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var is=WE;const pc=/^[0-9]+$/,Gf=(e,t)=>{const r=pc.test(e),n=pc.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},XE=(e,t)=>Gf(t,e);var qs={compareIdentifiers:Gf,rcompareIdentifiers:XE};const pi=ns,{MAX_LENGTH:yc,MAX_SAFE_INTEGER:yi}=rs,{re:Ec,t:vc}=lr.exports,ZE=is,{compareIdentifiers:qr}=qs;class _t{constructor(t,r){if(r=ZE(r),t instanceof _t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>yc)throw new TypeError(`version is longer than ${yc} characters`);pi("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ec[vc.LOOSE]:Ec[vc.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>yi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yi||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<yi)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pi("SemVer.compare",this.version,this.options,t),!(t instanceof _t)){if(typeof t=="string"&&t===this.version)return 0;t=new _t(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof _t||(t=new _t(t,this.options)),qr(this.major,t.major)||qr(this.minor,t.minor)||qr(this.patch,t.patch)}comparePre(t){if(t instanceof _t||(t=new _t(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(qr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var rt=_t;const{MAX_LENGTH:JE}=rs,{re:gc,t:$c}=lr.exports,_c=rt,YE=is,QE=(e,t)=>{if(t=YE(t),e instanceof _c)return e;if(typeof e!="string"||e.length>JE||!(t.loose?gc[$c.LOOSE]:gc[$c.FULL]).test(e))return null;try{return new _c(e,t)}catch{return null}};var hn=QE;const ev=hn,tv=(e,t)=>{const r=ev(e,t);return r?r.version:null};var rv=tv;const nv=hn,iv=(e,t)=>{const r=nv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var sv=iv;const Sc=rt,ov=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Sc(e instanceof Sc?e.version:e,r).inc(t,n).version}catch{return null}};var av=ov;const wc=rt,cv=(e,t,r)=>new wc(e,r).compare(new wc(t,r));var Rt=cv;const uv=Rt,fv=(e,t,r)=>uv(e,t,r)===0;var ta=fv;const Nc=hn,lv=ta,dv=(e,t)=>{if(lv(e,t))return null;{const r=Nc(e),n=Nc(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var hv=dv;const mv=rt,pv=(e,t)=>new mv(e,t).major;var yv=pv;const Ev=rt,vv=(e,t)=>new Ev(e,t).minor;var gv=vv;const $v=rt,_v=(e,t)=>new $v(e,t).patch;var Sv=_v;const wv=hn,Nv=(e,t)=>{const r=wv(e,t);return r&&r.prerelease.length?r.prerelease:null};var Iv=Nv;const Ov=Rt,Tv=(e,t,r)=>Ov(t,e,r);var Dv=Tv;const Rv=Rt,Cv=(e,t)=>Rv(e,t,!0);var Pv=Cv;const Ic=rt,Av=(e,t,r)=>{const n=new Ic(e,r),i=new Ic(t,r);return n.compare(i)||n.compareBuild(i)};var ra=Av;const bv=ra,Lv=(e,t)=>e.sort((r,n)=>bv(r,n,t));var Fv=Lv;const jv=ra,Mv=(e,t)=>e.sort((r,n)=>jv(n,r,t));var kv=Mv;const Uv=Rt,zv=(e,t,r)=>Uv(e,t,r)>0;var ss=zv;const xv=Rt,Vv=(e,t,r)=>xv(e,t,r)<0;var na=Vv;const qv=Rt,Gv=(e,t,r)=>qv(e,t,r)!==0;var Bf=Gv;const Bv=Rt,Hv=(e,t,r)=>Bv(e,t,r)>=0;var ia=Hv;const Kv=Rt,Wv=(e,t,r)=>Kv(e,t,r)<=0;var sa=Wv;const Xv=ta,Zv=Bf,Jv=ss,Yv=ia,Qv=na,eg=sa,tg=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Xv(e,r,n);case"!=":return Zv(e,r,n);case">":return Jv(e,r,n);case">=":return Yv(e,r,n);case"<":return Qv(e,r,n);case"<=":return eg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Hf=tg;const rg=rt,ng=hn,{re:Ei,t:vi}=lr.exports,ig=(e,t)=>{if(e instanceof rg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(Ei[vi.COERCE]);else{let n;for(;(n=Ei[vi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Ei[vi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ei[vi.COERCERTL].lastIndex=-1}return r===null?null:ng(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var sg=ig,og=de;de.Node=Rr;de.create=de;function de(e){var t=this;if(t instanceof de||(t=new de),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}de.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};de.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};de.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};de.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)cg(this,arguments[e]);return this.length};de.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ug(this,arguments[e]);return this.length};de.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};de.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};de.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};de.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};de.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};de.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};de.prototype.map=function(e,t){t=t||this;for(var r=new de,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};de.prototype.mapReverse=function(e,t){t=t||this;for(var r=new de,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};de.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};de.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};de.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};de.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};de.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};de.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};de.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=ag(this,i,r[n]);return s};de.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function ag(e,t,r){var n=t===e.head?new Rr(r,null,t,e):new Rr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function cg(e,t){e.tail=new Rr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ug(e,t){e.head=new Rr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Rr(e,t,r,n){if(!(this instanceof Rr))return new Rr(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{require("./iterator.js")(de)}catch{}const fg=og,Sr=Symbol("max"),Bt=Symbol("length"),Gr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),wr=Symbol("maxAge"),Gt=Symbol("dispose"),Oc=Symbol("noDisposeOnSet"),je=Symbol("lruList"),St=Symbol("cache"),Kf=Symbol("updateAgeOnGet"),ws=()=>1;class lg{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Sr]=t.max||1/0;const r=t.length||ws;if(this[Gr]=typeof r!="function"?ws:r,this[Mn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[wr]=t.maxAge||0,this[Gt]=t.dispose,this[Oc]=t.noDisposeOnSet||!1,this[Kf]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Sr]=t||1/0,In(this)}get max(){return this[Sr]}set allowStale(t){this[Mn]=!!t}get allowStale(){return this[Mn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[wr]=t,In(this)}get maxAge(){return this[wr]}set lengthCalculator(t){typeof t!="function"&&(t=ws),t!==this[Gr]&&(this[Gr]=t,this[Bt]=0,this[je].forEach(r=>{r.length=this[Gr](r.value,r.key),this[Bt]+=r.length})),In(this)}get lengthCalculator(){return this[Gr]}get length(){return this[Bt]}get itemCount(){return this[je].length}rforEach(t,r){r=r||this;for(let n=this[je].tail;n!==null;){const i=n.prev;Tc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[je].head;n!==null;){const i=n.next;Tc(this,t,n,r),n=i}}keys(){return this[je].toArray().map(t=>t.key)}values(){return this[je].toArray().map(t=>t.value)}reset(){this[Gt]&&this[je]&&this[je].length&&this[je].forEach(t=>this[Gt](t.key,t.value)),this[St]=new Map,this[je]=new fg,this[Bt]=0}dump(){return this[je].map(t=>Ui(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[je]}set(t,r,n){if(n=n||this[wr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Gr](r,t);if(this[St].has(t)){if(s>this[Sr])return Jr(this,this[St].get(t)),!1;const u=this[St].get(t).value;return this[Gt]&&(this[Oc]||this[Gt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Bt]+=s-u.length,u.length=s,this.get(t),In(this),!0}const o=new dg(t,r,s,i,n);return o.length>this[Sr]?(this[Gt]&&this[Gt](t,r),!1):(this[Bt]+=o.length,this[je].unshift(o),this[St].set(t,this[je].head),In(this),!0)}has(t){if(!this[St].has(t))return!1;const r=this[St].get(t).value;return!Ui(this,r)}get(t){return Ns(this,t,!0)}peek(t){return Ns(this,t,!1)}pop(){const t=this[je].tail;return t?(Jr(this,t),t.value):null}del(t){Jr(this,this[St].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[St].forEach((t,r)=>Ns(this,r,!1))}}const Ns=(e,t,r)=>{const n=e[St].get(t);if(n){const i=n.value;if(Ui(e,i)){if(Jr(e,n),!e[Mn])return}else r&&(e[Kf]&&(n.value.now=Date.now()),e[je].unshiftNode(n));return i.value}},Ui=(e,t)=>{if(!t||!t.maxAge&&!e[wr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[wr]&&r>e[wr]},In=e=>{if(e[Bt]>e[Sr])for(let t=e[je].tail;e[Bt]>e[Sr]&&t!==null;){const r=t.prev;Jr(e,t),t=r}},Jr=(e,t)=>{if(t){const r=t.value;e[Gt]&&e[Gt](r.key,r.value),e[Bt]-=r.length,e[St].delete(r.key),e[je].removeNode(t)}};class dg{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Tc=(e,t,r,n)=>{let i=r.value;Ui(e,i)&&(Jr(e,r),e[Mn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var hg=lg;class kn{constructor(t,r){if(r=pg(r),t instanceof kn)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new kn(t.raw,r);if(t instanceof Gs)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(i=>!Rc(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const i of this.set)if(i.length===1&&$g(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${t}`,i=Dc.get(n);if(i)return i;const s=this.options.loose,o=s?ot[Ye.HYPHENRANGELOOSE]:ot[Ye.HYPHENRANGE];t=t.replace(o,Cg(this.options.includePrerelease)),Oe("hyphen replace",t),t=t.replace(ot[Ye.COMPARATORTRIM],Eg),Oe("comparator trim",t),t=t.replace(ot[Ye.TILDETRIM],vg),t=t.replace(ot[Ye.CARETTRIM],gg),t=t.split(/\s+/).join(" ");let c=t.split(" ").map(l=>_g(l,this.options)).join(" ").split(/\s+/).map(l=>Rg(l,this.options));s&&(c=c.filter(l=>(Oe("loose invalid filter",l,this.options),!!l.match(ot[Ye.COMPARATORLOOSE])))),Oe("range list",c);const u=new Map,m=c.map(l=>new Gs(l,this.options));for(const l of m){if(Rc(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");const a=[...u.values()];return Dc.set(n,a),a}intersects(t,r){if(!(t instanceof kn))throw new TypeError("a Range is required");return this.set.some(n=>Cc(n,r)&&t.set.some(i=>Cc(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new yg(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Pg(this.set[r],t,this.options))return!0;return!1}}var Ct=kn;const mg=hg,Dc=new mg({max:1e3}),pg=is,Gs=os,Oe=ns,yg=rt,{re:ot,t:Ye,comparatorTrimReplace:Eg,tildeTrimReplace:vg,caretTrimReplace:gg}=lr.exports,Rc=e=>e.value==="<0.0.0-0",$g=e=>e.value==="",Cc=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},_g=(e,t)=>(Oe("comp",e,t),e=Ng(e,t),Oe("caret",e),e=Sg(e,t),Oe("tildes",e),e=Og(e,t),Oe("xrange",e),e=Dg(e,t),Oe("stars",e),e),Qe=e=>!e||e.toLowerCase()==="x"||e==="*",Sg=(e,t)=>e.trim().split(/\s+/).map(r=>wg(r,t)).join(" "),wg=(e,t)=>{const r=t.loose?ot[Ye.TILDELOOSE]:ot[Ye.TILDE];return e.replace(r,(n,i,s,o,c)=>{Oe("tilde",e,n,i,s,o,c);let u;return Qe(i)?u="":Qe(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Qe(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Oe("replaceTilde pr",c),u=`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Oe("tilde return",u),u})},Ng=(e,t)=>e.trim().split(/\s+/).map(r=>Ig(r,t)).join(" "),Ig=(e,t)=>{Oe("caret",e,t);const r=t.loose?ot[Ye.CARETLOOSE]:ot[Ye.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,c,u)=>{Oe("caret",e,i,s,o,c,u);let m;return Qe(s)?m="":Qe(o)?m=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Qe(c)?s==="0"?m=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Oe("replaceCaret pr",u),s==="0"?o==="0"?m=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(Oe("no pr"),s==="0"?o==="0"?m=`>=${s}.${o}.${c}${n} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),Oe("caret return",m),m})},Og=(e,t)=>(Oe("replaceXRanges",e,t),e.split(/\s+/).map(r=>Tg(r,t)).join(" ")),Tg=(e,t)=>{e=e.trim();const r=t.loose?ot[Ye.XRANGELOOSE]:ot[Ye.XRANGE];return e.replace(r,(n,i,s,o,c,u)=>{Oe("xRange",e,n,i,s,o,c,u);const m=Qe(s),a=m||Qe(o),l=a||Qe(c),v=l;return i==="="&&v&&(i=""),u=t.includePrerelease?"-0":"",m?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&v?(a&&(o=0),c=0,i===">"?(i=">=",a?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",a?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):a?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Oe("xRange return",n),n})},Dg=(e,t)=>(Oe("replaceStars",e,t),e.trim().replace(ot[Ye.STAR],"")),Rg=(e,t)=>(Oe("replaceGTE0",e,t),e.trim().replace(ot[t.includePrerelease?Ye.GTE0PRE:Ye.GTE0],"")),Cg=e=>(t,r,n,i,s,o,c,u,m,a,l,v,h)=>(Qe(n)?r="":Qe(i)?r=`>=${n}.0.0${e?"-0":""}`:Qe(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Qe(m)?u="":Qe(a)?u=`<${+m+1}.0.0-0`:Qe(l)?u=`<${m}.${+a+1}.0-0`:v?u=`<=${m}.${a}.${l}-${v}`:e?u=`<${m}.${a}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Pg=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Oe(e[n].semver),e[n].semver!==Gs.ANY&&e[n].semver.prerelease.length>0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},On=Symbol("SemVer ANY");class zi{static get ANY(){return On}constructor(t,r){if(r=Ag(r),t instanceof zi){if(t.loose===!!r.loose)return t;t=t.value}Os("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===On?this.value="":this.value=this.operator+this.semver.version,Os("comp",this)}parse(t){const r=this.options.loose?Pc[Ac.COMPARATORLOOSE]:Pc[Ac.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new bc(n[2],this.options.loose):this.semver=On}toString(){return this.value}test(t){if(Os("Comparator.test",t,this.options.loose),this.semver===On||t===On)return!0;if(typeof t=="string")try{t=new bc(t,this.options)}catch{return!1}return Is(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof zi))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Lc(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new Lc(this.value,r).test(t.semver);const n=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<"),s=this.semver.version===t.semver.version,o=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),c=Is(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),u=Is(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&o||c||u}}var os=zi;const Ag=is,{re:Pc,t:Ac}=lr.exports,Is=Hf,Os=ns,bc=rt,Lc=Ct,bg=Ct,Lg=(e,t,r)=>{try{t=new bg(t,r)}catch{return!1}return t.test(e)};var as=Lg;const Fg=Ct,jg=(e,t)=>new Fg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Mg=jg;const kg=rt,Ug=Ct,zg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Ug(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new kg(n,r))}),n};var xg=zg;const Vg=rt,qg=Ct,Gg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new qg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Vg(n,r))}),n};var Bg=Gg;const Ts=rt,Hg=Ct,Fc=ss,Kg=(e,t)=>{e=new Hg(e,t);let r=new Ts("0.0.0");if(e.test(r)||(r=new Ts("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new Ts(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Fc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Fc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Wg=Kg;const Xg=Ct,Zg=(e,t)=>{try{return new Xg(e,t).range||"*"}catch{return null}};var Jg=Zg;const Yg=rt,Wf=os,{ANY:Qg}=Wf,e$=Ct,t$=as,jc=ss,Mc=na,r$=sa,n$=ia,i$=(e,t,r,n)=>{e=new Yg(e,n),t=new e$(t,n);let i,s,o,c,u;switch(r){case">":i=jc,s=r$,o=Mc,c=">",u=">=";break;case"<":i=Mc,s=n$,o=jc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(t$(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,v=null;if(a.forEach(h=>{h.semver===Qg&&(h=new Wf(">=0.0.0")),l=l||h,v=v||h,i(h.semver,l.semver,n)?l=h:o(h.semver,v.semver,n)&&(v=h)}),l.operator===c||l.operator===u||(!v.operator||v.operator===c)&&s(e,v.semver))return!1;if(v.operator===u&&o(e,v.semver))return!1}return!0};var oa=i$;const s$=oa,o$=(e,t,r)=>s$(e,t,">",r);var a$=o$;const c$=oa,u$=(e,t,r)=>c$(e,t,"<",r);var f$=u$;const kc=Ct,l$=(e,t,r)=>(e=new kc(e,r),t=new kc(t,r),e.intersects(t));var d$=l$;const h$=as,m$=Rt;var p$=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>m$(a,l,r));for(const a of o)h$(a,t,r)?(s=a,i||(i=a)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[a,l]of n)a===l?c.push(a):!l&&a===o[0]?c.push("*"):l?a===o[0]?c.push(`<=${l}`):c.push(`${a} - ${l}`):c.push(`>=${a}`);const u=c.join(" || "),m=typeof t.raw=="string"?t.raw:String(t);return u.length<m.length?u:t};const Uc=Ct,Oi=os,{ANY:Ds}=Oi,Tn=as,aa=Rt,y$=(e,t,r)=>{if(e===t)return!0;e=new Uc(e,r),t=new Uc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=E$(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},E$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ds){if(t.length===1&&t[0].semver===Ds)return!0;r.includePrerelease?e=[new Oi(">=0.0.0-0")]:e=[new Oi(">=0.0.0")]}if(t.length===1&&t[0].semver===Ds){if(r.includePrerelease)return!0;t=[new Oi(">=0.0.0")]}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=zc(i,h,r):h.operator==="<"||h.operator==="<="?s=xc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=aa(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const h of n){if(i&&!Tn(h,String(i),r)||s&&!Tn(h,String(s),r))return null;for(const d of t)if(!Tn(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,v=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const h of t){if(a=a||h.operator===">"||h.operator===">=",m=m||h.operator==="<"||h.operator==="<=",i){if(v&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===v.major&&h.semver.minor===v.minor&&h.semver.patch===v.patch&&(v=!1),h.operator===">"||h.operator===">="){if(c=zc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!Tn(i.semver,String(h),r))return!1}if(s){if(l&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===l.major&&h.semver.minor===l.minor&&h.semver.patch===l.patch&&(l=!1),h.operator==="<"||h.operator==="<="){if(u=xc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!Tn(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&m&&!s&&o!==0||s&&a&&!i&&o!==0||v||l)},zc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},xc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var v$=y$;const Rs=lr.exports;var g$={re:Rs.re,src:Rs.src,tokens:Rs.t,SEMVER_SPEC_VERSION:rs.SEMVER_SPEC_VERSION,SemVer:rt,compareIdentifiers:qs.compareIdentifiers,rcompareIdentifiers:qs.rcompareIdentifiers,parse:hn,valid:rv,clean:sv,inc:av,diff:hv,major:yv,minor:gv,patch:Sv,prerelease:Iv,compare:Rt,rcompare:Dv,compareLoose:Pv,compareBuild:ra,sort:Fv,rsort:kv,gt:ss,lt:na,eq:ta,neq:Bf,gte:ia,lte:sa,cmp:Hf,coerce:sg,Comparator:os,Range:Ct,satisfies:as,toComparators:Mg,maxSatisfying:xg,minSatisfying:Bg,minVersion:Wg,validRange:Jg,outside:oa,gtr:a$,ltr:f$,intersects:d$,simplifyRange:p$,subset:v$},cs={exports:{}},ca={exports:{}};const Xf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};ca.exports=Xf;ca.exports.default=Xf;const $$=ca.exports,xi=new WeakMap,Zf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(xi.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return $$(s,e),xi.set(s,n),s};cs.exports=Zf;cs.exports.default=Zf;cs.exports.callCount=e=>{if(!xi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return xi.get(e)};(function(e,t){var r=ir&&ir.__classPrivateFieldSet||function(X,j,z,R,I){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?X!==j||!I:!j.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?I.call(X,z):I?I.value=z:j.set(X,z),z},n=ir&&ir.__classPrivateFieldGet||function(X,j,z,R){if(z==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?X!==j||!R:!j.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?R:z==="a"?R.call(X):R?R.value:j.get(X)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Gi.default,l=un.default,v=Te.default,h=Qc.default,d=Ks.default,p=Cl.default,E=dm,f=no.exports,$=uo.exports,_=Ut,T=bi.exports,k=Vs.exports,O=xE,D=g$,M=cs.exports,P="aes-256-cbc",U=()=>Object.create(null),x=X=>X!=null;let V="";try{delete require.cache[__filename],V=v.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const Y=(X,j)=>{const z=new Set(["undefined","symbol","function"]),R=typeof j;if(z.has(R))throw new TypeError(`Setting a value of type \`${R}\` for key \`${X}\` is not allowed as it's not supported by JSON`)},Z="__internal__",ee=`${Z}.migrations.version`;class ue{constructor(j={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const R=te({configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438},j),I=M(()=>{const S=f.sync({cwd:V}),L=S&&JSON.parse(l.readFileSync(S,"utf8"));return L!=null?L:{}});if(!R.cwd){if(R.projectName||(R.projectName=I().name),!R.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");R.cwd=$(R.projectName,{suffix:R.projectSuffix}).config}if(r(this,u,R,"f"),R.schema){if(typeof R.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new T.default({allErrors:!0,useDefaults:!0});(0,k.default)(S);const L={type:"object",properties:R.schema};r(this,o,S.compile(L),"f");for(const[q,G]of Object.entries(R.schema))G!=null&&G.default&&(n(this,m,"f")[q]=G.default)}R.defaults&&r(this,m,te(te({},n(this,m,"f")),R.defaults),"f"),R.serialize&&(this._serialize=R.serialize),R.deserialize&&(this._deserialize=R.deserialize),this.events=new p.EventEmitter,r(this,c,R.encryptionKey,"f");const F=R.fileExtension?`.${R.fileExtension}`:"";this.path=v.resolve(R.cwd,`${(z=R.configName)!==null&&z!==void 0?z:"config"}${F}`);const C=this.store,y=Object.assign(U(),R.defaults,C);this._validate(y);try{d.deepEqual(C,y)}catch{this.store=y}if(R.watch&&this._watch(),R.migrations){if(R.projectVersion||(R.projectVersion=I().version),!R.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(R.migrations,R.projectVersion)}}get(j,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(j,z);const{store:R}=this;return j in R?R[j]:z}set(j,z){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${Z} key, as it's used to manage this module internal operations.`);const{store:R}=this,I=(F,C)=>{Y(F,C),n(this,u,"f").accessPropertiesByDotNotation?E.set(R,F,C):R[F]=C};if(typeof j=="object"){const F=j;for(const[C,y]of Object.entries(F))I(C,y)}else I(j,z);this.store=R}has(j){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,j):j in this.store}reset(...j){for(const z of j)x(n(this,m,"f")[z])&&this.set(z,n(this,m,"f")[z])}delete(j){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,j):delete z[j],this.store=z}clear(){this.store=U();for(const j of Object.keys(n(this,m,"f")))this.reset(j)}onDidChange(j,z){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(j),z)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(j),R=this._deserialize(z);return this._validate(R),Object.assign(U(),R)}catch(j){if((j==null?void 0:j.code)==="ENOENT")return this._ensureDirectory(),U();if(n(this,u,"f").clearInvalidConfig&&j.name==="SyntaxError")return U();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[j,z]of Object.entries(this.store))yield[j,z]}_encryptData(j){if(!n(this,c,"f"))return j.toString();try{if(n(this,c,"f"))try{if(j.slice(16,17).toString()===":"){const z=j.slice(0,16),R=h.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=h.createDecipheriv(P,R,z);j=Buffer.concat([I.update(Buffer.from(j.slice(17))),I.final()]).toString("utf8")}else{const z=h.createDecipher(P,n(this,c,"f"));j=Buffer.concat([z.update(Buffer.from(j)),z.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,z){let R=j();const I=()=>{const F=R,C=j();(0,a.isDeepStrictEqual)(C,F)||(R=C,z.call(this,C,F))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(j){if(!n(this,o,"f")||n(this,o,"f").call(this,j)||!n(this,o,"f").errors)return;const R=n(this,o,"f").errors.map(({instancePath:I,message:F=""})=>`\`${I.slice(1)}\` ${F}`);throw new Error("Config schema violation: "+R.join("; "))}_ensureDirectory(){l.mkdirSync(v.dirname(this.path),{recursive:!0})}_write(j){let z=this._serialize(j);if(n(this,c,"f")){const R=h.randomBytes(16),I=h.pbkdf2Sync(n(this,c,"f"),R.toString(),1e4,32,"sha512"),F=h.createCipheriv(P,I,R);z=Buffer.concat([R,Buffer.from(":"),F.update(Buffer.from(z)),F.final()])}if({}.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(R){if((R==null?void 0:R.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw R}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(U()),process.platform==="win32"?l.watch(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,z){let R=this._get(ee,"0.0.0");const I=Object.keys(j).filter(C=>this._shouldPerformMigration(C,R,z));let F=te({},this.store);for(const C of I)try{j[C](this),this._set(ee,C),R=C,F=te({},this.store)}catch(y){throw this.store=F,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${y}`)}(this._isVersionInRangeFormat(R)||!D.eq(R,z))&&this._set(ee,z)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===Z?!0:typeof j!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!j.startsWith(`${Z}.`):!1}_isVersionInRangeFormat(j){return D.clean(j)===null}_shouldPerformMigration(j,z,R){return this._isVersionInRangeFormat(j)?z!=="0.0.0"&&D.satisfies(z,j)?!1:D.satisfies(R,j):!(D.lte(j,z)||D.gt(j,R))}_get(j,z){return E.get(this.store,j,z)}_set(j,z){const{store:R}=this;E.set(R,j,z),this.store=R}}t.default=ue,e.exports=ue,e.exports.default=ue})(Ls,Ls.exports);const Vc=Te.default,{app:Ti,ipcMain:Bs,ipcRenderer:qc,shell:_$}=Tl.default,S$=Ls.exports;let Gc=!1;const Bc=()=>{if(!Bs||!Ti)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:Ti.getPath("userData"),appVersion:Ti.getVersion()};return Gc||(Bs.on("electron-store-get-data",t=>{t.returnValue=e}),Gc=!0),e};class w$ extends S${constructor(t){let r,n;if(qc){const i=qc.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else Bs&&Ti&&({defaultCwd:r,appVersion:n}=Bc());t=te({name:"config"},t),t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=Vc.isAbsolute(t.cwd)?t.cwd:Vc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Bc()}openInEditor(){_$.openPath(this.path)}}var Hc=w$,Xt={exports:{}},ua={},N$=ua.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=N$("original-fs");if(Object.keys(e).length>0)return e}catch{}return un.default},Jf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const I$=ua.require(),Je=Te.default,Kc=Jf,O$=typeof process=="object"&&process.platform==="win32",Wc=e=>e&&typeof e=="object",fa=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function qe(e){this.sep=Je.sep,this.fs=I$,Wc(e)&&Wc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var T$=qe;qe.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Errors.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};qe.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=Je.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var c;try{c=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),c=i.fs.openSync(e,"w",438)}if(c)try{i.fs.writeSync(c,t,0,t.length,0)}finally{i.fs.closeSync(c)}return i.fs.chmodSync(e,n||438),!0};qe.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(c,u){if(o&&u.isDirectory())return i(!1);var m=Je.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,v){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(h,d){s.fs.write(d,t,0,t.length,0,function(){s.fs.close(d,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):v?s.fs.write(v,t,0,t.length,0,function(){s.fs.close(v,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};qe.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(c){var u=Je.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Je.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};qe.prototype.getAttributes=function(){};qe.prototype.setAttributes=function(){};qe.crc32update=function(e,t){return fa[(e^t)&255]^e>>>8};qe.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),fa.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=qe.crc32update(r,e[n++]);return~r>>>0};qe.methodToString=function(e){switch(e){case Kc.STORED:return"STORED ("+e+")";case Kc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};qe.canonical=function(e){if(!e)return"";var t=Je.posix.normalize("/"+e.split("\\").join("/"));return Je.join(".",t)};qe.sanitize=function(e,t){e=Je.resolve(Je.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Je.normalize(Je.join(e,r.slice(n,i).join(Je.sep)));if(s.indexOf(e)===0)return s}return Je.normalize(Je.join(e,Je.basename(t)))};qe.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};qe.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};qe.isWin=O$;qe.crcTable=fa;var D$={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Vi=ua.require(),Yf=Te.default;Vi.existsSync=Vi.existsSync||Yf.existsSync;var R$=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&Vi.existsSync(t)?(n=Vi.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=Yf.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};Xt.exports=T$;Xt.exports.Constants=Jf;Xt.exports.Errors=D$;Xt.exports.FileAttr=R$;var us={},Rn=Xt.exports,B=Rn.Constants,C$=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,m=0,a=0,l=0,v=0,h=0,d=0;e|=Rn.isWin?2560:768,r|=B.FLG_EFS;var p={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case B.STORED:this.version=10;case B.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return m},set extraLength(f){m=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return v},set inAttr(f){v=Math.max(0,f)>>>0},get attr(){return h},set attr(f){h=Math.max(0,f)>>>0},get fileAttr(){return h?(h>>>0|0)>>16&4095:0},get offset(){return d},set offset(f){d=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return B.CENHDR+u+m+a},get realDataOffset(){return d+B.LOCHDR+p.fnameLen+p.extraLen},get dataHeader(){return p},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+B.LOCHDR);if($.readUInt32LE(0)!==B.LOCSIG)throw new Error(Rn.Errors.INVALID_LOC);p={version:$.readUInt16LE(B.LOCVER),flags:$.readUInt16LE(B.LOCFLG),method:$.readUInt16LE(B.LOCHOW),time:$.readUInt32LE(B.LOCTIM),crc:$.readUInt32LE(B.LOCCRC),compressedSize:$.readUInt32LE(B.LOCSIZ),size:$.readUInt32LE(B.LOCLEN),fnameLen:$.readUInt16LE(B.LOCNAM),extraLen:$.readUInt16LE(B.LOCEXT)}},loadFromBinary:function(f){if(f.length!==B.CENHDR||f.readUInt32LE(0)!==B.CENSIG)throw new Error(Rn.Errors.INVALID_CEN);e=f.readUInt16LE(B.CENVEM),t=f.readUInt16LE(B.CENVER),r=f.readUInt16LE(B.CENFLG),n=f.readUInt16LE(B.CENHOW),i=f.readUInt32LE(B.CENTIM),s=f.readUInt32LE(B.CENCRC),o=f.readUInt32LE(B.CENSIZ),c=f.readUInt32LE(B.CENLEN),u=f.readUInt16LE(B.CENNAM),m=f.readUInt16LE(B.CENEXT),a=f.readUInt16LE(B.CENCOM),l=f.readUInt16LE(B.CENDSK),v=f.readUInt16LE(B.CENATT),h=f.readUInt32LE(B.CENATX),d=f.readUInt32LE(B.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(B.LOCHDR);return f.writeUInt32LE(B.LOCSIG,0),f.writeUInt16LE(t,B.LOCVER),f.writeUInt16LE(r,B.LOCFLG),f.writeUInt16LE(n,B.LOCHOW),f.writeUInt32LE(i,B.LOCTIM),f.writeUInt32LE(s,B.LOCCRC),f.writeUInt32LE(o,B.LOCSIZ),f.writeUInt32LE(c,B.LOCLEN),f.writeUInt16LE(u,B.LOCNAM),f.writeUInt16LE(m,B.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(B.CENHDR+u+m+a);return f.writeUInt32LE(B.CENSIG,0),f.writeUInt16LE(e,B.CENVEM),f.writeUInt16LE(t,B.CENVER),f.writeUInt16LE(r,B.CENFLG),f.writeUInt16LE(n,B.CENHOW),f.writeUInt32LE(i,B.CENTIM),f.writeUInt32LE(s,B.CENCRC),f.writeUInt32LE(o,B.CENSIZ),f.writeUInt32LE(c,B.CENLEN),f.writeUInt16LE(u,B.CENNAM),f.writeUInt16LE(m,B.CENEXT),f.writeUInt16LE(a,B.CENCOM),f.writeUInt16LE(l,B.CENDSK),f.writeUInt16LE(v,B.CENATT),f.writeUInt32LE(h,B.CENATX),f.writeUInt32LE(d,B.CENOFF),f.fill(0,B.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:Rn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(m),commentLength:f(a),diskNumStart:l,inAttr:v,attr:h,offset:d,entryHeaderSize:f(B.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Hr=Xt.exports,we=Hr.Constants,P$=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return we.ENDHDR+i},loadFromBinary:function(s){if((s.length!==we.ENDHDR||s.readUInt32LE(0)!==we.ENDSIG)&&(s.length<we.ZIP64HDR||s.readUInt32LE(0)!==we.ZIP64SIG))throw new Error(Hr.Errors.INVALID_END);s.readUInt32LE(0)===we.ENDSIG?(e=s.readUInt16LE(we.ENDSUB),t=s.readUInt16LE(we.ENDTOT),r=s.readUInt32LE(we.ENDSIZ),n=s.readUInt32LE(we.ENDOFF),i=s.readUInt16LE(we.ENDCOM)):(e=Hr.readBigUInt64LE(s,we.ZIP64SUB),t=Hr.readBigUInt64LE(s,we.ZIP64TOT),r=Hr.readBigUInt64LE(s,we.ZIP64SIZ),n=Hr.readBigUInt64LE(s,we.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(we.ENDHDR+i);return s.writeUInt32LE(we.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,we.ENDSUB),s.writeUInt16LE(t,we.ENDTOT),s.writeUInt32LE(r,we.ENDSIZ),s.writeUInt32LE(n,we.ENDOFF),s.writeUInt16LE(i,we.ENDCOM),s.fill(" ",we.ENDHDR),s},toJSON:function(){const s=function(o,c){let u=o.toString(16).toUpperCase();for(;u.length<c;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};us.EntryHeader=C$;us.MainHeader=P$;var fs={},A$=function(e){var t=eu.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var m=0;m<s.length;m++){var a=s[m];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},b$=function(e){var t=eu.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var m=i[u];m.copy(o,c),c+=m.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:Xc}=Qc.default,L$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Qf=(e,t)=>Math.imul(e,t)>>>0,Zc=(e,t)=>L$[(e^t)&255]^e>>>8,Bn=()=>typeof Xc=="function"?Xc(Buffer.alloc(12)):Bn.node();Bn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const Di={genSalt:Bn};function ls(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}ls.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Zc(t[0],e),t[1]+=t[0]&255,t[1]=Qf(t[1],134775813)+1,t[2]=Zc(t[2],t[1]>>>24),e};ls.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Qf(e,e^1)>>8&255};function F$(e){const t=new ls(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function j$(e){const t=new ls(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function M$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=F$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function k$(e){Buffer.isBuffer(e)&&e.length>=12?Di.genSalt=function(){return e.slice(0,12)}:e==="node"?Di.genSalt=Bn.node:Di.genSalt=Bn}function U$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=j$(r),s=Di.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var z$={decrypt:M$,encrypt:U$,_salter:k$};fs.Deflater=A$;fs.Inflater=b$;fs.ZipCrypto=z$;var be=Xt.exports,x$=us,lt=be.Constants,Cs=fs,el=function(e){var t=new x$.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function c(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(d){return!((t.flags&8)!==8&&be.crc32(d)!==t.dataHeader.crc)}function m(d,p,E){if(typeof p=="undefined"&&typeof d=="string"&&(E=d,d=void 0),i)return d&&p&&p(Buffer.alloc(0),be.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&p&&p(f),f;if(t.encripted){if(typeof E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=Cs.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case be.Constants.STORED:if(f.copy($),u($))return d&&p&&p($),$;throw d&&p&&p($,be.Errors.BAD_CRC),new Error(be.Errors.BAD_CRC);case be.Constants.DEFLATED:var _=new Cs.Inflater(f);if(d)_.inflateAsync(function(T){T.copy(T,0),p&&(u(T)?p(T):p(T,be.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(be.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&p&&p(Buffer.alloc(0),be.Errors.UNKNOWN_METHOD),new Error(be.Errors.UNKNOWN_METHOD)}}function a(d,p){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&p&&p(c()),c();if(s.length&&!i){var E;switch(t.method){case be.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),d&&p&&p(E),E;default:case be.Constants.DEFLATED:var f=new Cs.Deflater(s);if(d)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),p&&p(E)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&p)p(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,p){return(d.readUInt32LE(p+4)<<4)+d.readUInt32LE(p)}function v(d){for(var p=0,E,f,$;p<d.length;)E=d.readUInt16LE(p),p+=2,f=d.readUInt16LE(p),p+=2,$=d.slice(p,p+f),p+=f,lt.ID_ZIP64===E&&h($)}function h(d){var p,E,f,$;d.length>=lt.EF_ZIP64_SCOMP&&(p=l(d,lt.EF_ZIP64_SUNCOMP),t.size===lt.EF_ZIP64_OR_32&&(t.size=p)),d.length>=lt.EF_ZIP64_RHO&&(E=l(d,lt.EF_ZIP64_SCOMP),t.compressedSize===lt.EF_ZIP64_OR_32&&(t.compressedSize=E)),d.length>=lt.EF_ZIP64_DSN&&(f=l(d,lt.EF_ZIP64_RHO),t.offset===lt.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=lt.EF_ZIP64_DSN+4&&($=d.readUInt32LE(lt.EF_ZIP64_DSN),t.diskNumStart===lt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=be.toBuffer(d);var p=r[r.length-1];i=p===47||p===92,t.fileNameLength=r.length},get extra(){return o},set extra(d){o=d,t.extraLength=d.length,v(d)},get comment(){return n.toString()},set comment(d){n=be.toBuffer(d),t.commentLength=n.length},get name(){var d=r.toString();return i?d.substr(d.length-1).split("/").pop():d.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(d){a(!0,d)},setData:function(d){s=be.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=be.Constants.DEFLATED,t.crc=be.crc32(d),t.changed=!0):t.method=be.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,p){t.changed?d(s):m(!0,d,p)},set attr(d){t.attr=d},get attr(){return t.attr},set header(d){t.loadFromBinary(d)},get header(){return t},packHeader:function(){var d=t.entryHeaderToBinary(),p=be.Constants.CENHDR;return r.copy(d,p),p+=r.length,t.extraLength&&(o.copy(d,p),p+=t.extraLength),t.commentLength&&n.copy(d,p),d},toJSON:function(){const d=function(p){return"<"+(p&&p.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:d(e),data:d(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const Jc=el,V$=us,He=Xt.exports;var q$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new V$.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function m(h){const d=s.diskEntries;let p=s.offset;for(let E=0;E<d;E++){let f=p;const $=new Jc(e);$.header=e.slice(f,f+=He.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),p+=$.header.entryHeaderSize,h($)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var h=s.offset,d=0;d<r.length;d++){var p=h,E=new Jc(e);E.header=e.slice(p,p+=He.Constants.CENHDR),E.entryName=e.slice(p,p+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(p,p+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(p,p+E.header.commentLength)),h+=E.header.entryHeaderSize,r[d]=E,n[E.entryName]=E}}function l(h){var d=e.length-He.Constants.ENDHDR,p=Math.max(0,d-65535),E=p,f=e.length,$=-1,_=0;for(d;d>=E;d--)if(e[d]===80){if(e.readUInt32LE(d)===He.Constants.ENDSIG){$=d,_=d,f=d+He.Constants.ENDHDR,E=d-He.Constants.END64HDR;continue}if(e.readUInt32LE(d)===He.Constants.END64SIG){E=p;continue}if(e.readUInt32LE(d)===He.Constants.ZIP64SIG){$=d,f=d+He.readBigUInt64LE(e,d+He.Constants.ZIP64SIZE)+He.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(He.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+He.Constants.ENDHDR)),h&&a()}function v(){r.length>1&&!u&&r.sort((h,d)=>h.entryName.toLowerCase().localeCompare(d.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(h){i=He.toBuffer(h),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(h){if(!o){m(h);return}r.forEach(h)},getEntry:function(h){return o||a(),n[h]||null},setEntry:function(h){o||a(),r.push(h),n[h.entryName]=h,s.totalEntries=r.length},deleteEntry:function(h){o||a();var d=n[h];if(d&&d.isDirectory){var p=this;this.getEntryChildren(d).forEach(function(E){E.entryName!==h&&p.deleteEntry(E.entryName)})}r.splice(r.indexOf(d),1),delete n[h],s.totalEntries=r.length},getEntryChildren:function(h){if(o||a(),h&&h.isDirectory){const d=[],p=h.entryName,E=p.length;return r.forEach(function(f){f.entryName.substr(0,E)===p&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),v();const h=[],d=[];let p=0,E=0;s.size=0,s.offset=0;for(const _ of r){const T=_.getCompressedData();_.header.offset=E;const k=_.header.dataHeaderToBinary(),O=_.rawEntryName.length,D=Buffer.alloc(O+_.extra.length);_.rawEntryName.copy(D,0),D.copy(_.extra,O);const M=k.length+D.length+T.length;E+=M,h.push(k),h.push(D),h.push(T);const P=_.packHeader();d.push(P),s.size+=P.length,p+=M+P.length}p+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(p);for(const _ of h)_.copy(f,E),E+=_.length;for(const _ of d)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,He.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(h,d,p,E){try{o||a(),v();const f=[],$=[];let _=0,T=0;s.size=0,s.offset=0;const k=function(O){if(O.length){const D=O.pop(),M=D.entryName+D.extra.toString();p&&p(M),D.getCompressedDataAsync(function(P){E&&E(M),D.header.offset=T;const U=D.header.dataHeaderToBinary(),x=Buffer.alloc(M.length,M),V=U.length+x.length+P.length;T+=V,f.push(U),f.push(x),f.push(P);const Y=D.packHeader();$.push(Y),s.size+=Y.length,_+=V+Y.length,k(O)})}else{_+=s.mainHeaderSize,s.offset=T,T=0;const D=Buffer.alloc(_);f.forEach(function(P){P.copy(D,T),T+=P.length}),$.forEach(function(P){P.copy(D,T),T+=P.length});const M=s.toBinary();i&&i.copy(M,He.Constants.ENDHDR),M.copy(D,T),h(D)}};k(r)}catch(f){d(f)}}}};const Le=Xt.exports,Mt=Te.default,G$=el,B$=q$,vr=(e,t)=>typeof e=="boolean"?e:t,Ps=(e,t)=>typeof e=="string"?e:t,H$={noSort:!1,readEntries:!1,method:Le.Constants.NONE,fs:null};var Yc=function(e,t){let r=null;const n=Object.assign(Object.create(null),H$);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Le.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Le(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Le.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Le.Errors.INVALID_FILENAME);const s=new B$(r,n),{canonical:o,sanitize:c}=Le;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName!="undefined"&&typeof a.header!="undefined"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:v,sep:h}=Mt.posix;return l(".",v(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var v=u(a);return v&&v.getData(l)||null},readFileAsync:function(a,l){var v=u(a);v?v.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var v=u(a);if(v){var h=v.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,v){var h=u(a);h?h.getDataAsync(function(d,p){if(p){l(d,p);return}d&&d.length?l(d.toString(v||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var v=u(a);v&&(v.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var v=u(a);v&&v.setData(l)},addLocalFile:function(a,l,v,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=v||d;const p=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,p)}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,v){if(v instanceof RegExp?v=function(h){return function(d){return h.test(d)}}(v):typeof v!="function"&&(v=function(){return!0}),l=l?m(l):"",a=Mt.normalize(a),i.fs.existsSync(a)){const h=i.findFiles(a),d=this;h.length&&h.forEach(function(p){var E=Mt.relative(a,p).split("\\").join("/");if(v(E)){var f=i.fs.statSync(p);f.isFile()?d.addFile(l+E,i.fs.readFileSync(p),"",f):d.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,v,h){h instanceof RegExp?h=function(p){return function(E){return p.test(E)}}(h):typeof h!="function"&&(h=function(){return!0}),v=v?m(v):"",a=Mt.normalize(a);var d=this;i.fs.open(a,"r",function(p){if(p&&p.code==="ENOENT")l(void 0,Le.Errors.FILE_NOT_FOUND.replace("%s",a));else if(p)l(void 0,p);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],T=Mt.relative(a,_).split("\\").join("/");T=T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(T)?i.fs.stat(_,function(k,O){k&&l(void 0,k),O.isFile()?i.fs.readFile(_,function(D,M){D?l(void 0,D):(d.addFile(v+T,M,"",O),$())}):(d.addFile(v+T+"/",Buffer.alloc(0),"",O),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((v,h)=>{const{filter:d,zipPath:p}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&h(f),E&&v(this)},p,d)})},addFile:function(a,l,v,h){let d=u(a);const p=d!=null;p||(d=new G$,d.entryName=a),d.comment=v||"";const E=typeof h=="object"&&h instanceof i.fs.Stats;E&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;if(!Le.isWin){let $=d.isDirectory?16384:32768;E?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0}d.attr=f,d.setData(l),p||s.setEntry(d)},getEntries:function(){return s?s.entries:[]},getEntry:function(a){return u(a)},getEntryCount:function(){return s.getEntryCount()},forEach:function(a){return s.forEach(a)},extractEntryTo:function(a,l,v,h,d,p){h=vr(h,!1),d=vr(d,!1),v=vr(v,!0),p=Ps(p,Ps(d,void 0));var E=u(a);if(!E)throw new Error(Le.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,p&&!E.isDirectory?p:v?f:Mt.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(O){if(O.isDirectory)return;var D=O.getData();if(!D)throw new Error(Le.Errors.CANT_EXTRACT_FILE);var M=o(O.entryName),P=c(l,v?M:Mt.basename(M));const U=d?O.header.fileAttr:void 0;i.writeFileTo(P,D,h,U)}),!0}var T=E.getData();if(!T)throw new Error(Le.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Le.Errors.CANT_OVERRIDE);const k=d?a.header.fileAttr:void 0;return i.writeFileTo($,T,h,k),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var v=s.entries[l].getData(a);if(!v)return!1}catch{return!1}return!0},extractAllTo:function(a,l,v,h){if(l=vr(l,!1),h=Ps(v,h),v=vr(v,!1),!s)throw new Error(Le.Errors.NO_ZIP);s.entries.forEach(function(d){var p=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(p);return}var E=d.getData(h);if(!E)throw new Error(Le.Errors.CANT_EXTRACT_FILE);const f=v?d.header.fileAttr:void 0;i.writeFileTo(p,E,l,f);try{i.fs.utimesSync(p,d.header.time,d.header.time)}catch{throw new Error(Le.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,v,h){if(h||(h=function(){}),l=vr(l,!1),typeof v=="function"&&!h&&(h=v),v=vr(v,!1),!s){h(new Error(Le.Errors.NO_ZIP));return}a=Mt.resolve(a);const d=_=>c(a,Mt.normalize(o(_.entryName.toString()))),p=(_,T)=>new Error(_+': "'+T+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const T=d(_),k=v?_.header.fileAttr:void 0;try{i.makeDir(T),k&&i.fs.chmodSync(T,k),i.fs.utimesSync(T,_.header.time,_.header.time)}catch{h(p("Unable to create folder",T))}}const $=()=>{f.size===0&&h()};for(const _ of f.values()){const T=Mt.normalize(o(_.entryName.toString())),k=c(a,T);_.getDataAsync(function(O,D){if(D){h(new Error(D));return}if(!O)h(new Error(Le.Errors.CANT_EXTRACT_FILE));else{const M=v?_.header.fileAttr:void 0;i.writeFileToAsync(k,O,l,M,function(P){if(!P){h(p("Unable to write file",k));return}i.fs.utimes(k,_.header.time,_.header.time,function(U){if(U){h(p("Unable to set times",k));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var v=s.compressToBuffer();if(v){var h=i.writeFileTo(a,v,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:v,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,p)=>{!a&&n.filename&&(a=n.filename),a||p("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?d($):p("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,v,h,f)},p)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,v,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,v,h),null):s.compressToBuffer()}}},Hn,Yr,Qr,Kn,Nr,Ir,rr,nr,qi,en,Wn,Hs,Xn,Nt,tn,Ri,Zn,Ht;const wt=class{constructor(t,r){ke(this,Wn);ke(this,tn);ke(this,Hn,ce.screen.getPrimaryDisplay().size);ke(this,Yr,oe(this,Hn).width);ke(this,Qr,oe(this,Hn).height);ke(this,Kn,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:te({},process.env),platform:process.platform,arch:process.arch});ke(this,Nr,0);ke(this,Ir,0);ke(this,rr,0);ke(this,nr,0);ke(this,qi,process.platform==="win32");ke(this,en,void 0);ke(this,Xn,!1);ke(this,Nt,!1);this.bw=t,oe(this,Kn).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Kn)),ce.ipcMain.handle("existsSync",(i,s)=>vt.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>vt.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>vt.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>vt.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>vt.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>vt.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>vt.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>vt.appendFile(s,o,c)),ce.ipcMain.handle("win_close",()=>t.close()),ce.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),ce.ipcMain.handle("showMessageBox",(i,s)=>ce.dialog.showMessageBox(s)),ce.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>vt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),ce.ipcMain.handle("navigate_to",(i,s)=>ce.shell.openExternal(s)),ce.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),ce.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;ce.ipcMain.handle("Store",(i,s)=>{n=new Hc(s)}),ce.ipcMain.handle("flush",(i,s)=>{n.store=s}),ce.ipcMain.handle("Store_isEmpty",()=>n.size===0),ce.ipcMain.handle("Store_get",()=>n.store),ce.ipcMain.handle("zip",(i,s,o)=>{const c=new Yc;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{vt.removeSync(o),vt.ensureDirSync(o),new Yc(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,qi)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Ge(this,Nt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,Nr),oe(this,Ir)),t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))),Ge(this,Nt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,Yr),oe(this,Qr)-oe(wt,Ht))}),t.on("leave-full-screen",()=>{Ur(this,tn,Ri).call(this,!1,oe(this,Nr),oe(this,Ir),oe(this,rr),oe(this,nr)+oe(wt,Ht))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Ur(this,tn,Ri).call(this,s,o,c,u,m)),t.on("move",()=>Ur(this,Wn,Hs).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Hc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.BrowserWindow(Et(te({},n),{fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}})),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];Ge(wt,Ht,o-c),Ge(wt,Zn,new wt(s,r)),i=()=>oe(wt,Zn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Wr=wt;Hn=new WeakMap,Yr=new WeakMap,Qr=new WeakMap,Kn=new WeakMap,Nr=new WeakMap,Ir=new WeakMap,rr=new WeakMap,nr=new WeakMap,qi=new WeakMap,en=new WeakMap,Wn=new WeakSet,Hs=function(){if(oe(this,en)||oe(this,Nt))return;Ge(this,Nt,!0);const{x:t,y:r}=this.bw.getBounds();Ge(this,en,setTimeout(()=>{if(Ge(this,en,void 0),oe(this,Xn)){Ge(this,Xn,!1);return}Ge(this,Nt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Ur(this,Wn,Hs).call(this);return}Ur(this,tn,Ri).call(this,!1,n.x,n.y,oe(this,rr),oe(this,nr))},1e3/60*10))},Xn=new WeakMap,Nt=new WeakMap,tn=new WeakSet,Ri=function(t,r,n,i,s){oe(this,Nt)||(Ge(this,Nt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(oe(this,Yr)-r)*.5,n=(oe(this,Qr)-n)*.5):((r<0||r>oe(this,Yr))&&(r=0),(n<0||n>oe(this,Qr))&&(n=0)),(oe(this,Nr)!==r||oe(this,Ir)!==n)&&(Ge(this,Nr,r),Ge(this,Ir,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Ge(this,rr,i),Ge(this,nr,s),this.bw.setContentSize(i,s+oe(wt,Ht)),Ge(this,Nt,!1)))},Zn=new WeakMap,Ht=new WeakMap,ke(Wr,Zn,void 0),ke(Wr,Ht,0);module.exports=Wr;exports.appMain=Wr;
16
16
  //# sourceMappingURL=appMain.js.map