@famibee/skynovel 1.47.0 → 1.47.2
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/app.js +3006 -3001
- package/dist/app.js.map +1 -1
- package/dist/appMain.d.ts.map +1 -1
- package/dist/appMain.js +1 -1
- package/dist/appMain.js.map +1 -1
- package/dist/sn/ReadState.d.ts +5 -5
- package/dist/sn/ReadState.d.ts.map +1 -1
- package/dist/web.js +207 -202
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/appMain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,EAAyB,MAAM,UAAU,CAAC;AAO5E,qBAAa,OAAO;;IAoBC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAvC,OAAO;
|
|
1
|
+
{"version":3,"file":"appMain.d.ts","sourceRoot":"","sources":["../../src/appMain.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,aAAa,EAAyB,MAAM,UAAU,CAAC;AAO5E,qBAAa,OAAO;;IAoBC,OAAO,CAAC,QAAQ,CAAC,EAAE;IAAvC,OAAO;IAmIP,YAAY;IAIZ,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa;CA8ChF"}
|
package/dist/appMain.js
CHANGED
|
@@ -12,5 +12,5 @@ GFS4: `),console.error(e)});if(!Se[Ue]){var sl=Zt[Ue]||[];Cc(Se,sl),Se.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 E=Array.isArray(u[l])?m:a;E[l]=u[l]}return[m,a]}function o(u,m=u.schema){const{gen:a,data:l,it:E}=u;if(Object.keys(m).length===0)return;const h=a.let("missing");for(const d in m){const y=m[d];if(y.length===0)continue;const v=(0,n.propertyInData)(a,l,d,E.opts.ownProperties);u.setParams({property:d,depsCount:y.length,deps:y.join(", ")}),E.allErrors?a.if(v,()=>{for(const f of y)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${v} && (${(0,n.checkMissingProp)(u,y,h)})`),(0,n.reportMissingProp)(u,h),a.else())}}e.validatePropertyDeps=o;function c(u,m=u.schema){const{gen:a,data:l,keyword:E,it:h}=u,d=a.name("valid");for(const y in m)(0,r.alwaysValidSchema)(h,m[y])||(a.if((0,n.propertyInData)(a,l,y,h.opts.ownProperties),()=>{const v=u.subschema({keyword:E,schemaProp:y},d);u.mergeValidEvaluated(v,d)},()=>a.var(d,!0)),u.ok(d))}e.validateSchemaDeps=c,e.default=i})(ff);var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const lf=re,By=fe,Ky={message:"property name must be valid",params:({params:e})=>(0,lf._)`{propertyName: ${e.propertyName}}`},Wy={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Ky,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,By.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,lf.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Oo.default=Wy;var ki={};Object.defineProperty(ki,"__esModule",{value:!0});const ii=ne,ht=re,Zy=Lt,si=fe,Xy={message:"must NOT have additional properties",params:({params:e})=>(0,ht._)`{additionalProperty: ${e.additionalProperty}}`},Jy={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Xy,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,si.alwaysValidSchema)(o,r))return;const m=(0,ii.allSchemaProperties)(n.properties),a=(0,ii.allSchemaProperties)(n.patternProperties);l(),e.ok((0,ht._)`${s} === ${Zy.default.errors}`);function l(){t.forIn("key",i,v=>{!m.length&&!a.length?d(v):t.if(E(v),()=>d(v))})}function E(v){let f;if(m.length>8){const $=(0,si.schemaRefOrVal)(o,n.properties,"properties");f=(0,ii.isOwnProperty)(t,$,v)}else m.length?f=(0,ht.or)(...m.map($=>(0,ht._)`${v} === ${$}`)):f=ht.nil;return a.length&&(f=(0,ht.or)(f,...a.map($=>(0,ht._)`${(0,ii.usePattern)(e,$)}.test(${v})`))),(0,ht.not)(f)}function h(v){t.code((0,ht._)`delete ${i}[${v}]`)}function d(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,si.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(y(v,f,!1),t.if((0,ht.not)(f),()=>{e.reset(),h(v)})):(y(v,f),c||t.if((0,ht.not)(f),()=>t.break()))}}function y(v,f,$){const S={keyword:"additionalProperties",dataProp:v,dataPropType:si.Type.Str};$===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,f)}}};ki.default=Jy;var To={};Object.defineProperty(To,"__esModule",{value:!0});const Yy=gt,Ma=ne,is=fe,ka=ki,Qy={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&&ka.default.code(new Yy.KeywordCxt(s,ka.default,"additionalProperties"));const o=(0,Ma.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=is.mergeEvaluated.props(t,(0,is.toHash)(o),s.props));const c=o.filter(l=>!(0,is.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,Ma.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)}}};To.default=Qy;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});const Ua=ne,oi=re,Va=fe,za=fe,e0={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,Ua.allSchemaProperties)(r),u=c.filter(y=>(0,Va.alwaysValidSchema)(s,r[y]));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 oi.Name)&&(s.props=(0,za.evaluatedPropsToName)(t,s.props));const{props:l}=s;E();function E(){for(const y of c)m&&h(y),s.allErrors?d(y):(t.var(a,!0),d(y),t.if(a))}function h(y){for(const v in m)new RegExp(y).test(v)&&(0,Va.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}function d(y){t.forIn("key",n,v=>{t.if((0,oi._)`${(0,Ua.usePattern)(e,y)}.test(${v})`,()=>{const f=u.includes(y);f||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:za.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,oi._)`${l}[${v}]`,!0):!f&&!s.allErrors&&t.if((0,oi.not)(a),()=>t.break())})})}}};Do.default=e0;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});const t0=fe,r0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,t0.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"}};Ro.default=r0;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});const n0=ne,i0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n0.validateUnion,error:{message:"must match a schema in anyOf"}};Co.default=i0;var Po={};Object.defineProperty(Po,"__esModule",{value:!0});const pi=re,s0=fe,o0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,pi._)`{passingSchemas: ${e.passing}}`},a0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:o0,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 E;(0,s0.alwaysValidSchema)(i,a)?t.var(u,!0):E=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,pi._)`${u} && ${o}`).assign(o,!1).assign(c,(0,pi._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),E&&e.mergeEvaluated(E,pi.Name)})})}}};Po.default=a0;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const c0=fe,u0={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,c0.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Ao.default=u0;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});const Ni=re,df=fe,f0={message:({params:e})=>(0,Ni.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ni._)`{failingKeyword: ${e.ifClause}}`},l0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:f0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,df.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=xa(n,"then"),s=xa(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,Ni.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 E=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(E,o),l?t.assign(l,(0,Ni._)`${a}`):e.setParams({ifClause:a})}}}};function xa(e,t){const r=e.schema[t];return r!==void 0&&!(0,df.alwaysValidSchema)(e,r)}bo.default=l0;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});const d0=fe,h0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,d0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Lo.default=h0;Object.defineProperty(So,"__esModule",{value:!0});const m0=en,p0=wo,y0=tn,v0=No,E0=Io,g0=ff,$0=Oo,_0=ki,S0=To,w0=Do,N0=Ro,I0=Co,O0=Po,T0=Ao,D0=bo,R0=Lo;function C0(e=!1){const t=[N0.default,I0.default,O0.default,T0.default,D0.default,R0.default,$0.default,_0.default,g0.default,S0.default,w0.default];return e?t.push(p0.default,v0.default):t.push(m0.default,y0.default),t.push(E0.default),t}So.default=C0;var Fo={},jo={};Object.defineProperty(jo,"__esModule",{value:!0});const De=re,P0={message:({schemaCode:e})=>(0,De.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,De._)`{format: ${e}}`},A0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:P0,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?E():h();function E(){const d=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),y=r.const("fDef",(0,De._)`${d}[${o}]`),v=r.let("fType"),f=r.let("format");r.if((0,De._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,De._)`${y}.type || "string"`).assign(f,(0,De._)`${y}.validate`),()=>r.assign(v,(0,De._)`"string"`).assign(f,y)),e.fail$data((0,De.or)($(),S()));function $(){return u.strictSchema===!1?De.nil:(0,De._)`${o} && !${f}`}function S(){const D=a.$async?(0,De._)`(${y}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,De._)`${f}(${n})`,V=(0,De._)`(typeof ${f} == "function" ? ${D} : ${f}.test(${n}))`;return(0,De._)`${f} && ${f} !== true && ${v} === ${t} && !${V}`}}function h(){const d=l.formats[s];if(!d){$();return}if(d===!0)return;const[y,v,f]=S(d);y===t&&e.pass(D());function $(){if(u.strictSchema===!1){l.logger.warn(V());return}throw new Error(V());function V(){return`unknown format "${s}" ignored in schema at path "${m}"`}}function S(V){const T=V instanceof RegExp?(0,De.regexpCode)(V):u.code.formats?(0,De._)`${u.code.formats}${(0,De.getProperty)(s)}`:void 0,P=r.scopeValue("formats",{key:s,ref:V,code:T});return typeof V=="object"&&!(V instanceof RegExp)?[V.type||"string",V.validate,(0,De._)`${P}.validate`]:["string",V,P]}function D(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!a.$async)throw new Error("async format in sync schema");return(0,De._)`await ${f}(${n})`}return typeof v=="function"?(0,De._)`${f}(${n})`:(0,De._)`${f}.test(${n})`}}}};jo.default=A0;Object.defineProperty(Fo,"__esModule",{value:!0});const b0=jo,L0=[b0.default];Fo.default=L0;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.contentVocabulary=Jr.metadataVocabulary=void 0;Jr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Jr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(oo,"__esModule",{value:!0});const F0=ao,j0=uo,M0=So,k0=Fo,Ga=Jr,U0=[F0.default,j0.default,(0,M0.default)(),k0.default,Ga.metadataVocabulary,Ga.contentVocabulary];oo.default=U0;var Mo={},hf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(hf);Object.defineProperty(Mo,"__esModule",{value:!0});const Fr=re,Ts=hf,Ha=tt,V0=fe,z0={message:({params:{discrError:e,tagName:t}})=>e===Ts.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Fr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},x0={keyword:"discriminator",type:"object",schemaType:"object",error:z0,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,Fr._)`${r}${(0,Fr.getProperty)(c)}`);t.if((0,Fr._)`typeof ${m} == "string"`,()=>a(),()=>e.error(!1,{discrError:Ts.DiscrError.Tag,tag:m,tagName:c})),e.ok(u);function a(){const h=E();t.if(!1);for(const d in h)t.elseIf((0,Fr._)`${m} === ${d}`),t.assign(u,l(h[d]));t.else(),e.error(!1,{discrError:Ts.DiscrError.Mapping,tag:m,tagName:c}),t.endIf()}function l(h){const d=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},d);return e.mergeEvaluated(y,Fr.Name),d}function E(){var h;const d={},y=f(i);let v=!0;for(let D=0;D<o.length;D++){let V=o[D];V!=null&&V.$ref&&!(0,V0.schemaHasRulesButRef)(V,s.self.RULES)&&(V=Ha.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,V==null?void 0:V.$ref),V instanceof Ha.SchemaEnv&&(V=V.schema));const T=(h=V==null?void 0:V.properties)===null||h===void 0?void 0:h[c];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||f(V)),$(T,D)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return d;function f({required:D}){return Array.isArray(D)&&D.includes(c)}function $(D,V){if(D.const)S(D.const,V);else if(D.enum)for(const T of D.enum)S(T,V);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function S(D,V){if(typeof D!="string"||D in d)throw new Error(`discriminator: "${c}" values must be unique strings`);d[D]=V}}}};Mo.default=x0;const G0="http://json-schema.org/draft-07/schema#",H0="http://json-schema.org/draft-07/schema#",q0="Core schema meta-schema",B0={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:[]}},K0=["object","boolean"],W0={$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:"#"}},Z0={$schema:G0,$id:H0,title:q0,definitions:B0,type:K0,properties:W0,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=Au,n=oo,i=Mo,s=Z0,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const d=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(d,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=gt;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}});var l=zn;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var E=xn;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return E.default}})})(_s,_s.exports);var mf=_s.exports,Ds={exports:{}},pf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(A,z){return{validate:A,compare:z}}e.fullFormats={date:t(s,o),time:t(u,m),"date-time":t(l,E),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"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:U,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:D},int64:{type:"number",validate:V},float:{type:"number",validate:T},double:{type:"number",validate:T},password:!0,binary:!0},e.fastFormats={...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,E),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(A){return A%4===0&&(A%100!==0||A%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(A){const z=n.exec(A);if(!z)return!1;const B=+z[1],K=+z[2],x=+z[3];return K>=1&&K<=12&&x>=1&&x<=(K===2&&r(B)?29:i[K])}function o(A,z){if(A&&z)return A>z?1:A<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(A,z){const B=c.exec(A);if(!B)return!1;const K=+B[1],x=+B[2],k=+B[3],H=B[5];return(K<=23&&x<=59&&k<=59||K===23&&x===59&&k===60)&&(!z||H!=="")}function m(A,z){if(!(A&&z))return;const B=c.exec(A),K=c.exec(z);if(B&&K)return A=B[1]+B[2]+B[3]+(B[4]||""),z=K[1]+K[2]+K[3]+(K[4]||""),A>z?1:A<z?-1:0}const a=/t|\s/i;function l(A){const z=A.split(a);return z.length===2&&s(z[0])&&u(z[1],!0)}function E(A,z){if(!(A&&z))return;const[B,K]=A.split(a),[x,k]=z.split(a),H=o(B,x);if(H!==void 0)return H||m(K,k)}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 y(A){return h.test(A)&&d.test(A)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(A){return v.lastIndex=0,v.test(A)}const $=-(2**31),S=2**31-1;function D(A){return Number.isInteger(A)&&A<=S&&A>=$}function V(A){return Number.isInteger(A)}function T(){return!0}const P=/[^\\]\\Z/;function U(A){if(P.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(pf);var yf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=mf,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:E}=c,{opts:h,self:d}=E;if(!h.validateFormats)return;const y=new t.KeywordCxt(E,d.RULES.all.format.definition,"format");y.$data?v():f();function v(){const S=u.scopeValue("formats",{ref:d.formats,code:h.code.formats}),D=u.const("fmt",r._`${S}[${y.schemaCode}]`);c.fail$data(r.or(r._`typeof ${D} != "object"`,r._`${D} instanceof RegExp`,r._`typeof ${D}.compare != "function"`,$(D)))}function f(){const S=y.schema,D=d.formats[S];if(!D||D===!0)return;if(typeof D!="object"||D instanceof RegExp||typeof D.compare!="function")throw new Error(`"${l}": format "${S}" does not define "compare" function`);const V=u.scopeValue("formats",{key:S,ref:D,code:h.code.formats?r._`${h.code.formats}${r.getProperty(S)}`:void 0});c.fail$data($(V))}function $(S){return r._`${S}.compare(${m}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(yf);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=pf,n=yf,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,E]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],h=a.formats||r.formatNames;return u(m,h,l,E),a.keywords&&n.default(m),m};c.get=(m,a="full")=>{const E=(a==="fast"?r.fastFormats:r.fullFormats)[m];if(!E)throw new Error(`Unknown format "${m}"`);return E};function u(m,a,l,E){var h,d;(h=(d=m.opts.code).formats)!==null&&h!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${E}`);for(const y of a)m.addFormat(y,l[y])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Ds,Ds.exports);var X0=Ds.exports;const J0=(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);!Y0(i,s)&&n||Object.defineProperty(e,r,s)},Y0=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)},Q0=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},ev=(e,t)=>`/* Wrapped ${e}*/
|
|
15
|
-
${t}`,tv=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),rv=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nv=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=ev.bind(null,n,t.toString());Object.defineProperty(i,"name",rv),Object.defineProperty(e,"toString",{...tv,value:i})},iv=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))J0(e,t,i,r);return Q0(e,t),nv(e,t,n),e};var sv=iv;const ov=sv;var av=(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 ov(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},Rs={exports:{}};const cv="2.0.0",uv=256,fv=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16,dv=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Ui={MAX_LENGTH:uv,MAX_SAFE_COMPONENT_LENGTH:lv,MAX_SAFE_INTEGER:fv,RELEASE_TYPES:dv,SEMVER_SPEC_VERSION:cv,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const hv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Vi=hv;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=Ui,n=Vi;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const E=c++;n(m,E,a),o[m]=E,s[E]=a,i[E]=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*$")})(Rs,Rs.exports);var Hn=Rs.exports;const mv=Object.freeze({loose:!0}),pv=Object.freeze({}),yv=e=>e?typeof e!="object"?mv:e:pv;var ko=yv;const qa=/^[0-9]+$/,vf=(e,t)=>{const r=qa.test(e),n=qa.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},vv=(e,t)=>vf(t,e);var Ef={compareIdentifiers:vf,rcompareIdentifiers:vv};const ai=Vi,{MAX_LENGTH:Ba,MAX_SAFE_INTEGER:ci}=Ui,{re:Ka,t:Wa}=Hn,Ev=ko,{compareIdentifiers:br}=Ef;let gv=class Rt{constructor(t,r){if(r=Ev(r),t instanceof Rt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Ba)throw new TypeError(`version is longer than ${Ba} characters`);ai("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ka[Wa.LOOSE]:Ka[Wa.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>ci||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ci||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ci||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<ci)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(ai("SemVer.compare",this.version,this.options,t),!(t instanceof Rt)){if(typeof t=="string"&&t===this.version)return 0;t=new Rt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Rt||(t=new Rt(t,this.options)),br(this.major,t.major)||br(this.minor,t.minor)||br(this.patch,t.patch)}comparePre(t){if(t instanceof Rt||(t=new Rt(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(ai("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 br(n,i)}while(++r)}compareBuild(t){t instanceof Rt||(t=new Rt(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(ai("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 br(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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":{const i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),br(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Je=gv;const Za=Je,$v=(e,t,r=!1)=>{if(e instanceof Za)return e;try{return new Za(e,t)}catch(n){if(!r)return null;throw n}};var rn=$v;const _v=rn,Sv=(e,t)=>{const r=_v(e,t);return r?r.version:null};var wv=Sv;const Nv=rn,Iv=(e,t)=>{const r=Nv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Ov=Iv;const Xa=Je,Tv=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Xa(e instanceof Xa?e.version:e,r).inc(t,n,i).version}catch{return null}};var Dv=Tv;const Ja=rn,Rv=(e,t)=>{const r=Ja(e,null,!0),n=Ja(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,c=s?n:r,u=!!o.prerelease.length,m=u?"pre":"";return r.major!==n.major?m+"major":r.minor!==n.minor?m+"minor":r.patch!==n.patch?m+"patch":u?"prerelease":c.patch?"patch":c.minor?"minor":"major"};var Cv=Rv;const Pv=Je,Av=(e,t)=>new Pv(e,t).major;var bv=Av;const Lv=Je,Fv=(e,t)=>new Lv(e,t).minor;var jv=Fv;const Mv=Je,kv=(e,t)=>new Mv(e,t).patch;var Uv=kv;const Vv=rn,zv=(e,t)=>{const r=Vv(e,t);return r&&r.prerelease.length?r.prerelease:null};var xv=zv;const Ya=Je,Gv=(e,t,r)=>new Ya(e,r).compare(new Ya(t,r));var $t=Gv;const Hv=$t,qv=(e,t,r)=>Hv(t,e,r);var Bv=qv;const Kv=$t,Wv=(e,t)=>Kv(e,t,!0);var Zv=Wv;const Qa=Je,Xv=(e,t,r)=>{const n=new Qa(e,r),i=new Qa(t,r);return n.compare(i)||n.compareBuild(i)};var Uo=Xv;const Jv=Uo,Yv=(e,t)=>e.sort((r,n)=>Jv(r,n,t));var Qv=Yv;const eE=Uo,tE=(e,t)=>e.sort((r,n)=>eE(n,r,t));var rE=tE;const nE=$t,iE=(e,t,r)=>nE(e,t,r)>0;var zi=iE;const sE=$t,oE=(e,t,r)=>sE(e,t,r)<0;var Vo=oE;const aE=$t,cE=(e,t,r)=>aE(e,t,r)===0;var gf=cE;const uE=$t,fE=(e,t,r)=>uE(e,t,r)!==0;var $f=fE;const lE=$t,dE=(e,t,r)=>lE(e,t,r)>=0;var zo=dE;const hE=$t,mE=(e,t,r)=>hE(e,t,r)<=0;var xo=mE;const pE=gf,yE=$f,vE=zi,EE=zo,gE=Vo,$E=xo,_E=(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 pE(e,r,n);case"!=":return yE(e,r,n);case">":return vE(e,r,n);case">=":return EE(e,r,n);case"<":return gE(e,r,n);case"<=":return $E(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var _f=_E;const SE=Je,wE=rn,{re:ui,t:fi}=Hn,NE=(e,t)=>{if(e instanceof SE)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(ui[fi.COERCE]);else{let n;for(;(n=ui[fi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),ui[fi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ui[fi.COERCERTL].lastIndex=-1}return r===null?null:wE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var IE=NE,ss,ec;function OE(){return ec||(ec=1,ss=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ss}var TE=le;le.Node=gr;le.create=le;function le(e){var t=this;if(t instanceof le||(t=new le),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}le.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};le.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++}};le.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++}};le.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)RE(this,arguments[e]);return this.length};le.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)CE(this,arguments[e]);return this.length};le.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}};le.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}};le.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};le.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};le.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};le.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};le.prototype.map=function(e,t){t=t||this;for(var r=new le,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};le.prototype.mapReverse=function(e,t){t=t||this;for(var r=new le,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};le.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};le.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};le.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};le.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};le.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 le;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};le.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 le;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};le.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=DE(this,i,r[n]);return s};le.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 DE(e,t,r){var n=t===e.head?new gr(r,null,t,e):new gr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function RE(e,t){e.tail=new gr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function CE(e,t){e.head=new gr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function gr(e,t,r,n){if(!(this instanceof gr))return new gr(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{OE()(le)}catch{}const PE=TE,dr=Symbol("max"),Mt=Symbol("length"),Lr=Symbol("lengthCalculator"),On=Symbol("allowStale"),hr=Symbol("maxAge"),jt=Symbol("dispose"),tc=Symbol("noDisposeOnSet"),be=Symbol("lruList"),mt=Symbol("cache"),Sf=Symbol("updateAgeOnGet"),os=()=>1;class AE{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[dr]=t.max||1/0;const r=t.length||os;if(this[Lr]=typeof r!="function"?os:r,this[On]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[hr]=t.maxAge||0,this[jt]=t.dispose,this[tc]=t.noDisposeOnSet||!1,this[Sf]=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[dr]=t||1/0,pn(this)}get max(){return this[dr]}set allowStale(t){this[On]=!!t}get allowStale(){return this[On]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[hr]=t,pn(this)}get maxAge(){return this[hr]}set lengthCalculator(t){typeof t!="function"&&(t=os),t!==this[Lr]&&(this[Lr]=t,this[Mt]=0,this[be].forEach(r=>{r.length=this[Lr](r.value,r.key),this[Mt]+=r.length})),pn(this)}get lengthCalculator(){return this[Lr]}get length(){return this[Mt]}get itemCount(){return this[be].length}rforEach(t,r){r=r||this;for(let n=this[be].tail;n!==null;){const i=n.prev;rc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[be].head;n!==null;){const i=n.next;rc(this,t,n,r),n=i}}keys(){return this[be].toArray().map(t=>t.key)}values(){return this[be].toArray().map(t=>t.value)}reset(){this[jt]&&this[be]&&this[be].length&&this[be].forEach(t=>this[jt](t.key,t.value)),this[mt]=new Map,this[be]=new PE,this[Mt]=0}dump(){return this[be].map(t=>Ii(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[be]}set(t,r,n){if(n=n||this[hr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Lr](r,t);if(this[mt].has(t)){if(s>this[dr])return zr(this,this[mt].get(t)),!1;const u=this[mt].get(t).value;return this[jt]&&(this[tc]||this[jt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Mt]+=s-u.length,u.length=s,this.get(t),pn(this),!0}const o=new bE(t,r,s,i,n);return o.length>this[dr]?(this[jt]&&this[jt](t,r),!1):(this[Mt]+=o.length,this[be].unshift(o),this[mt].set(t,this[be].head),pn(this),!0)}has(t){if(!this[mt].has(t))return!1;const r=this[mt].get(t).value;return!Ii(this,r)}get(t){return as(this,t,!0)}peek(t){return as(this,t,!1)}pop(){const t=this[be].tail;return t?(zr(this,t),t.value):null}del(t){zr(this,this[mt].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[mt].forEach((t,r)=>as(this,r,!1))}}const as=(e,t,r)=>{const n=e[mt].get(t);if(n){const i=n.value;if(Ii(e,i)){if(zr(e,n),!e[On])return}else r&&(e[Sf]&&(n.value.now=Date.now()),e[be].unshiftNode(n));return i.value}},Ii=(e,t)=>{if(!t||!t.maxAge&&!e[hr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[hr]&&r>e[hr]},pn=e=>{if(e[Mt]>e[dr])for(let t=e[be].tail;e[Mt]>e[dr]&&t!==null;){const r=t.prev;zr(e,t),t=r}},zr=(e,t)=>{if(t){const r=t.value;e[jt]&&e[jt](r.key,r.value),e[Mt]-=r.length,e[mt].delete(r.key),e[be].removeNode(t)}};class bE{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const rc=(e,t,r,n)=>{let i=r.value;Ii(e,i)&&(zr(e,r),e[On]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var LE=AE,cs,nc;function _t(){if(nc)return cs;nc=1;class e{constructor(k,H){if(H=n(H),k instanceof e)return k.loose===!!H.loose&&k.includePrerelease===!!H.includePrerelease?k:new e(k.raw,H);if(k instanceof i)return this.raw=k.value,this.set=[[k]],this.format(),this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=k,this.set=k.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${k}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(G=>!d(G[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const G of this.set)if(G.length===1&&y(G[0])){this.set=[G];break}}}this.format()}format(){return this.range=this.set.map(k=>k.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(k){k=k.trim();const q=((this.options.includePrerelease&&E)|(this.options.loose&&h))+":"+k,G=r.get(q);if(G)return G;const C=this.options.loose,F=C?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];k=k.replace(F,B(this.options.includePrerelease)),s("hyphen replace",k),k=k.replace(c[u.COMPARATORTRIM],m),s("comparator trim",k),k=k.replace(c[u.TILDETRIM],a),k=k.replace(c[u.CARETTRIM],l),k=k.split(/\s+/).join(" ");let O=k.split(" ").map(p=>f(p,this.options)).join(" ").split(/\s+/).map(p=>z(p,this.options));C&&(O=O.filter(p=>(s("loose invalid filter",p,this.options),!!p.match(c[u.COMPARATORLOOSE])))),s("range list",O);const w=new Map,b=O.map(p=>new i(p,this.options));for(const p of b){if(d(p))return[p];w.set(p.value,p)}w.size>1&&w.has("")&&w.delete("");const R=[...w.values()];return r.set(q,R),R}intersects(k,H){if(!(k instanceof e))throw new TypeError("a Range is required");return this.set.some(q=>v(q,H)&&k.set.some(G=>v(G,H)&&q.every(C=>G.every(F=>C.intersects(F,H)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new o(k,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(K(this.set[H],k,this.options))return!0;return!1}}cs=e;const t=LE,r=new t({max:1e3}),n=ko,i=xi(),s=Vi,o=Je,{re:c,t:u,comparatorTrimReplace:m,tildeTrimReplace:a,caretTrimReplace:l}=Hn,{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:h}=Ui,d=x=>x.value==="<0.0.0-0",y=x=>x.value==="",v=(x,k)=>{let H=!0;const q=x.slice();let G=q.pop();for(;H&&q.length;)H=q.every(C=>G.intersects(C,k)),G=q.pop();return H},f=(x,k)=>(s("comp",x,k),x=V(x,k),s("caret",x),x=S(x,k),s("tildes",x),x=P(x,k),s("xrange",x),x=A(x,k),s("stars",x),x),$=x=>!x||x.toLowerCase()==="x"||x==="*",S=(x,k)=>x.trim().split(/\s+/).map(H=>D(H,k)).join(" "),D=(x,k)=>{const H=k.loose?c[u.TILDELOOSE]:c[u.TILDE];return x.replace(H,(q,G,C,F,O)=>{s("tilde",x,q,G,C,F,O);let w;return $(G)?w="":$(C)?w=`>=${G}.0.0 <${+G+1}.0.0-0`:$(F)?w=`>=${G}.${C}.0 <${G}.${+C+1}.0-0`:O?(s("replaceTilde pr",O),w=`>=${G}.${C}.${F}-${O} <${G}.${+C+1}.0-0`):w=`>=${G}.${C}.${F} <${G}.${+C+1}.0-0`,s("tilde return",w),w})},V=(x,k)=>x.trim().split(/\s+/).map(H=>T(H,k)).join(" "),T=(x,k)=>{s("caret",x,k);const H=k.loose?c[u.CARETLOOSE]:c[u.CARET],q=k.includePrerelease?"-0":"";return x.replace(H,(G,C,F,O,w)=>{s("caret",x,G,C,F,O,w);let b;return $(C)?b="":$(F)?b=`>=${C}.0.0${q} <${+C+1}.0.0-0`:$(O)?C==="0"?b=`>=${C}.${F}.0${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.0${q} <${+C+1}.0.0-0`:w?(s("replaceCaret pr",w),C==="0"?F==="0"?b=`>=${C}.${F}.${O}-${w} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}-${w} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O}-${w} <${+C+1}.0.0-0`):(s("no pr"),C==="0"?F==="0"?b=`>=${C}.${F}.${O}${q} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O} <${+C+1}.0.0-0`),s("caret return",b),b})},P=(x,k)=>(s("replaceXRanges",x,k),x.split(/\s+/).map(H=>U(H,k)).join(" ")),U=(x,k)=>{x=x.trim();const H=k.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return x.replace(H,(q,G,C,F,O,w)=>{s("xRange",x,q,G,C,F,O,w);const b=$(C),R=b||$(F),p=R||$(O),_=p;return G==="="&&_&&(G=""),w=k.includePrerelease?"-0":"",b?G===">"||G==="<"?q="<0.0.0-0":q="*":G&&_?(R&&(F=0),O=0,G===">"?(G=">=",R?(C=+C+1,F=0,O=0):(F=+F+1,O=0)):G==="<="&&(G="<",R?C=+C+1:F=+F+1),G==="<"&&(w="-0"),q=`${G+C}.${F}.${O}${w}`):R?q=`>=${C}.0.0${w} <${+C+1}.0.0-0`:p&&(q=`>=${C}.${F}.0${w} <${C}.${+F+1}.0-0`),s("xRange return",q),q})},A=(x,k)=>(s("replaceStars",x,k),x.trim().replace(c[u.STAR],"")),z=(x,k)=>(s("replaceGTE0",x,k),x.trim().replace(c[k.includePrerelease?u.GTE0PRE:u.GTE0],"")),B=x=>(k,H,q,G,C,F,O,w,b,R,p,_,M)=>($(q)?H="":$(G)?H=`>=${q}.0.0${x?"-0":""}`:$(C)?H=`>=${q}.${G}.0${x?"-0":""}`:F?H=`>=${H}`:H=`>=${H}${x?"-0":""}`,$(b)?w="":$(R)?w=`<${+b+1}.0.0-0`:$(p)?w=`<${b}.${+R+1}.0-0`:_?w=`<=${b}.${R}.${p}-${_}`:x?w=`<${b}.${R}.${+p+1}-0`:w=`<=${w}`,`${H} ${w}`.trim()),K=(x,k,H)=>{for(let q=0;q<x.length;q++)if(!x[q].test(k))return!1;if(k.prerelease.length&&!H.includePrerelease){for(let q=0;q<x.length;q++)if(s(x[q].semver),x[q].semver!==i.ANY&&x[q].semver.prerelease.length>0){const G=x[q].semver;if(G.major===k.major&&G.minor===k.minor&&G.patch===k.patch)return!0}return!1}return!0};return cs}var us,ic;function xi(){if(ic)return us;ic=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],E=a.match(l);if(!E)throw new TypeError(`Invalid comparator: ${a}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new c(E[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(a.value,l).test(this.value):a.operator===""?a.value===""?!0:new u(this.value,l).test(a.semver):(l=r(l),l.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!l.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||s(this.semver,"<",a.semver,l)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||s(this.semver,">",a.semver,l)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}us=t;const r=ko,{re:n,t:i}=Hn,s=_f,o=Vi,c=Je,u=_t();return us}const FE=_t(),jE=(e,t,r)=>{try{t=new FE(t,r)}catch{return!1}return t.test(e)};var Gi=jE;const ME=_t(),kE=(e,t)=>new ME(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var UE=kE;const VE=Je,zE=_t(),xE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new zE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new VE(n,r))}),n};var GE=xE;const HE=Je,qE=_t(),BE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new qE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new HE(n,r))}),n};var KE=BE;const fs=Je,WE=_t(),sc=zi,ZE=(e,t)=>{e=new WE(e,t);let r=new fs("0.0.0");if(e.test(r)||(r=new fs("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 fs(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||sc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||sc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var XE=ZE;const JE=_t(),YE=(e,t)=>{try{return new JE(e,t).range||"*"}catch{return null}};var QE=YE;const eg=Je,wf=xi(),{ANY:tg}=wf,rg=_t(),ng=Gi,oc=zi,ac=Vo,ig=xo,sg=zo,og=(e,t,r,n)=>{e=new eg(e,n),t=new rg(t,n);let i,s,o,c,u;switch(r){case">":i=oc,s=ig,o=ac,c=">",u=">=";break;case"<":i=ac,s=sg,o=oc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ng(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,E=null;if(a.forEach(h=>{h.semver===tg&&(h=new wf(">=0.0.0")),l=l||h,E=E||h,i(h.semver,l.semver,n)?l=h:o(h.semver,E.semver,n)&&(E=h)}),l.operator===c||l.operator===u||(!E.operator||E.operator===c)&&s(e,E.semver))return!1;if(E.operator===u&&o(e,E.semver))return!1}return!0};var Go=og;const ag=Go,cg=(e,t,r)=>ag(e,t,">",r);var ug=cg;const fg=Go,lg=(e,t,r)=>fg(e,t,"<",r);var dg=lg;const cc=_t(),hg=(e,t,r)=>(e=new cc(e,r),t=new cc(t,r),e.intersects(t,r));var mg=hg;const pg=Gi,yg=$t;var vg=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>yg(a,l,r));for(const a of o)pg(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=_t(),Ho=xi(),{ANY:ls}=Ho,yn=Gi,qo=$t,Eg=(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=$g(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},gg=[new Ho(">=0.0.0-0")],fc=[new Ho(">=0.0.0")],$g=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ls){if(t.length===1&&t[0].semver===ls)return!0;r.includePrerelease?e=gg:e=fc}if(t.length===1&&t[0].semver===ls){if(r.includePrerelease)return!0;t=fc}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=lc(i,h,r):h.operator==="<"||h.operator==="<="?s=dc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=qo(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&&!yn(h,String(i),r)||s&&!yn(h,String(s),r))return null;for(const d of t)if(!yn(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,E=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(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator===">"||h.operator===">="){if(c=lc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!yn(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=dc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!yn(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||E||l)},lc=(e,t,r)=>{if(!e)return t;const n=qo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},dc=(e,t,r)=>{if(!e)return t;const n=qo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var _g=Eg;const ds=Hn,hc=Ui,Sg=Je,mc=Ef,wg=rn,Ng=wv,Ig=Ov,Og=Dv,Tg=Cv,Dg=bv,Rg=jv,Cg=Uv,Pg=xv,Ag=$t,bg=Bv,Lg=Zv,Fg=Uo,jg=Qv,Mg=rE,kg=zi,Ug=Vo,Vg=gf,zg=$f,xg=zo,Gg=xo,Hg=_f,qg=IE,Bg=xi(),Kg=_t(),Wg=Gi,Zg=UE,Xg=GE,Jg=KE,Yg=XE,Qg=QE,e$=Go,t$=ug,r$=dg,n$=mg,i$=vg,s$=_g;var o$={parse:wg,valid:Ng,clean:Ig,inc:Og,diff:Tg,major:Dg,minor:Rg,patch:Cg,prerelease:Pg,compare:Ag,rcompare:bg,compareLoose:Lg,compareBuild:Fg,sort:jg,rsort:Mg,gt:kg,lt:Ug,eq:Vg,neq:zg,gte:xg,lte:Gg,cmp:Hg,coerce:qg,Comparator:Bg,Range:Kg,satisfies:Wg,toComparators:Zg,maxSatisfying:Xg,minSatisfying:Jg,minVersion:Yg,validRange:Qg,outside:e$,gtr:t$,ltr:r$,intersects:n$,simplifyRange:i$,subset:s$,SemVer:Sg,re:ds.re,src:ds.src,tokens:ds.t,SEMVER_SPEC_VERSION:hc.SEMVER_SPEC_VERSION,RELEASE_TYPES:hc.RELEASE_TYPES,compareIdentifiers:mc.compareIdentifiers,rcompareIdentifiers:mc.rcompareIdentifiers},Hi={exports:{}},Bo={exports:{}};const Nf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Bo.exports=Nf;Bo.exports.default=Nf;var a$=Bo.exports;const c$=a$,Oi=new WeakMap,If=(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(Oi.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 c$(s,e),Oi.set(s,n),s};Hi.exports=If;Hi.exports.default=If;Hi.exports.callCount=e=>{if(!Oi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Oi.get(e)};var u$=Hi.exports;(function(e,t){var r=Zt&&Zt.__classPrivateFieldSet||function(G,C,F,O,w){if(O==="m")throw new TypeError("Private method is not writable");if(O==="a"&&!w)throw new TypeError("Private accessor was defined without a setter");if(typeof C=="function"?G!==C||!w:!C.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?w.call(G,F):w?w.value=F:C.set(G,F),F},n=Zt&&Zt.__classPrivateFieldGet||function(G,C,F,O){if(F==="a"&&!O)throw new TypeError("Private accessor was defined without a getter");if(typeof C=="function"?G!==C||!O:!C.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?O:F==="a"?O.call(G):O?O.value:C.get(G)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Ri,l=Yr,E=Ie,h=Tc,d=Oc,y=Hf,v=_h,f=Ah,$=jh,S=Pt,D=mf,V=X0,T=av,P=o$,U=u$,A="aes-256-cbc",z=()=>Object.create(null),B=G=>G!=null;let K="";try{delete require.cache[__filename],K=E.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const x=(G,C)=>{const F=new Set(["undefined","symbol","function"]),O=typeof C;if(F.has(O))throw new TypeError(`Setting a value of type \`${O}\` for key \`${G}\` is not allowed as it's not supported by JSON`)},k="__internal__",H=`${k}.migrations.version`;class q{constructor(C={}){var F;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=_=>JSON.parse(_),this._serialize=_=>JSON.stringify(_,void 0," ");const O={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...C},w=U(()=>{const _=f.sync({cwd:K}),M=_&&JSON.parse(l.readFileSync(_,"utf8"));return M??{}});if(!O.cwd){if(O.projectName||(O.projectName=w().name),!O.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");O.cwd=$(O.projectName,{suffix:O.projectSuffix}).config}if(r(this,u,O,"f"),O.schema){if(typeof O.schema!="object")throw new TypeError("The `schema` option must be an object.");const _=new D.default({allErrors:!0,useDefaults:!0});(0,V.default)(_);const M={type:"object",properties:O.schema};r(this,o,_.compile(M),"f");for(const[W,Z]of Object.entries(O.schema))Z!=null&&Z.default&&(n(this,m,"f")[W]=Z.default)}O.defaults&&r(this,m,{...n(this,m,"f"),...O.defaults},"f"),O.serialize&&(this._serialize=O.serialize),O.deserialize&&(this._deserialize=O.deserialize),this.events=new y.EventEmitter,r(this,c,O.encryptionKey,"f");const b=O.fileExtension?`.${O.fileExtension}`:"";this.path=E.resolve(O.cwd,`${(F=O.configName)!==null&&F!==void 0?F:"config"}${b}`);const R=this.store,p=Object.assign(z(),O.defaults,R);this._validate(p);try{d.deepEqual(R,p)}catch{this.store=p}if(O.watch&&this._watch(),O.migrations){if(O.projectVersion||(O.projectVersion=w().version),!O.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(O.migrations,O.projectVersion,O.beforeEachMigration)}}get(C,F){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(C,F);const{store:O}=this;return C in O?O[C]:F}set(C,F){if(typeof C!="string"&&typeof C!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof C}`);if(typeof C!="object"&&F===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(C))throw new TypeError(`Please don't use the ${k} key, as it's used to manage this module internal operations.`);const{store:O}=this,w=(b,R)=>{x(b,R),n(this,u,"f").accessPropertiesByDotNotation?v.set(O,b,R):O[b]=R};if(typeof C=="object"){const b=C;for(const[R,p]of Object.entries(b))w(R,p)}else w(C,F);this.store=O}has(C){return n(this,u,"f").accessPropertiesByDotNotation?v.has(this.store,C):C in this.store}reset(...C){for(const F of C)B(n(this,m,"f")[F])&&this.set(F,n(this,m,"f")[F])}delete(C){const{store:F}=this;n(this,u,"f").accessPropertiesByDotNotation?v.delete(F,C):delete F[C],this.store=F}clear(){this.store=z();for(const C of Object.keys(n(this,m,"f")))this.reset(C)}onDidChange(C,F){if(typeof C!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof C}`);if(typeof F!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof F}`);return this._handleChange(()=>this.get(C),F)}onDidAnyChange(C){if(typeof C!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof C}`);return this._handleChange(()=>this.store,C)}get size(){return Object.keys(this.store).length}get store(){try{const C=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),F=this._encryptData(C),O=this._deserialize(F);return this._validate(O),Object.assign(z(),O)}catch(C){if((C==null?void 0:C.code)==="ENOENT")return this._ensureDirectory(),z();if(n(this,u,"f").clearInvalidConfig&&C.name==="SyntaxError")return z();throw C}}set store(C){this._ensureDirectory(),this._validate(C),this._write(C),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[C,F]of Object.entries(this.store))yield[C,F]}_encryptData(C){if(!n(this,c,"f"))return C.toString();try{if(n(this,c,"f"))try{if(C.slice(16,17).toString()===":"){const F=C.slice(0,16),O=h.pbkdf2Sync(n(this,c,"f"),F.toString(),1e4,32,"sha512"),w=h.createDecipheriv(A,O,F);C=Buffer.concat([w.update(Buffer.from(C.slice(17))),w.final()]).toString("utf8")}else{const F=h.createDecipher(A,n(this,c,"f"));C=Buffer.concat([F.update(Buffer.from(C)),F.final()]).toString("utf8")}}catch{}}catch{}return C.toString()}_handleChange(C,F){let O=C();const w=()=>{const b=O,R=C();(0,a.isDeepStrictEqual)(R,b)||(O=R,F.call(this,R,b))};return this.events.on("change",w),()=>this.events.removeListener("change",w)}_validate(C){if(!n(this,o,"f")||n(this,o,"f").call(this,C)||!n(this,o,"f").errors)return;const O=n(this,o,"f").errors.map(({instancePath:w,message:b=""})=>`\`${w.slice(1)}\` ${b}`);throw new Error("Config schema violation: "+O.join("; "))}_ensureDirectory(){l.mkdirSync(E.dirname(this.path),{recursive:!0})}_write(C){let F=this._serialize(C);if(n(this,c,"f")){const O=h.randomBytes(16),w=h.pbkdf2Sync(n(this,c,"f"),O.toString(),1e4,32,"sha512"),b=h.createCipheriv(A,w,O);F=Buffer.concat([O,Buffer.from(":"),b.update(Buffer.from(F)),b.final()])}if(process.env.SNAP)l.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});else try{S.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode})}catch(O){if((O==null?void 0:O.code)==="EXDEV"){l.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});return}throw O}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(z()),process.platform==="win32"?l.watch(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(C,F,O){let w=this._get(H,"0.0.0");const b=Object.keys(C).filter(p=>this._shouldPerformMigration(p,w,F));let R={...this.store};for(const p of b)try{O&&O(this,{fromVersion:w,toVersion:p,finalVersion:F,versions:b});const _=C[p];_(this),this._set(H,p),w=p,R={...this.store}}catch(_){throw this.store=R,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${_}`)}(this._isVersionInRangeFormat(w)||!P.eq(w,F))&&this._set(H,F)}_containsReservedKey(C){return typeof C=="object"&&Object.keys(C)[0]===k?!0:typeof C!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!C.startsWith(`${k}.`):!1}_isVersionInRangeFormat(C){return P.clean(C)===null}_shouldPerformMigration(C,F,O){return this._isVersionInRangeFormat(C)?F!=="0.0.0"&&P.satisfies(F,C)?!1:P.satisfies(O,C):!(P.lte(C,F)||P.gt(C,O))}_get(C,F){return v.get(this.store,C,F)}_set(C,F){const{store:O}=this;v.set(O,C,F),this.store=O}}t.default=q,e.exports=q,e.exports.default=q})(gs,gs.exports);var f$=gs.exports;const pc=Ie,{app:yi,ipcMain:Cs,ipcRenderer:yc,shell:l$}=ce,d$=f$;let vc=!1;const Ec=()=>{if(!Cs||!yi)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:yi.getPath("userData"),appVersion:yi.getVersion()};return vc||(Cs.on("electron-store-get-data",t=>{t.returnValue=e}),vc=!0),e};class h$ extends d${constructor(t){let r,n;if(yc){const i=yc.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 Cs&&yi&&({defaultCwd:r,appVersion:n}=Ec());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=pc.isAbsolute(t.cwd)?t.cwd:pc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Ec()}openInEditor(){l$.openPath(this.path)}}var m$=h$;const gc=Rc(m$);var qn={exports:{}},Ko={},p$=Ko.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=p$("original-fs");if(Object.keys(e).length>0)return e}catch{}return Yr},Of={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},Tf={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 y$=Ko.require(),Ke=Ie,$c=Of,v$=Tf,E$=typeof process=="object"&&process.platform==="win32",_c=e=>e&&typeof e=="object",Wo=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t>>>=1;return t>>>0});function Ve(e){this.sep=Ke.sep,this.fs=y$,_c(e)&&_c(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var g$=Ve;Ve.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 v$.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};Ve.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=Ke.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};Ve.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=Ke.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,E){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)})})})})}):E?s.fs.write(E,t,0,t.length,0,function(){s.fs.close(E,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};Ve.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=Ke.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Ke.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};Ve.prototype.getAttributes=function(){};Ve.prototype.setAttributes=function(){};Ve.crc32update=function(e,t){return Wo[(e^t)&255]^e>>>8};Ve.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),Wo.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=Ve.crc32update(r,e[n++]);return~r>>>0};Ve.methodToString=function(e){switch(e){case $c.STORED:return"STORED ("+e+")";case $c.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Ve.canonical=function(e){if(!e)return"";var t=Ke.posix.normalize("/"+e.split("\\").join("/"));return Ke.join(".",t)};Ve.sanitize=function(e,t){e=Ke.resolve(Ke.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Ke.normalize(Ke.join(e,r.slice(n,i).join(Ke.sep)));if(s.indexOf(e)===0)return s}return Ke.normalize(Ke.join(e,Ke.basename(t)))};Ve.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};Ve.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};Ve.isWin=E$;Ve.crcTable=Wo;const Ti=Ko.require(),Df=Ie;Ti.existsSync=Ti.existsSync||Df.existsSync;var $$=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&&Ti.existsSync(t)?(n=Ti.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=Df.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," ")}}};qn.exports=g$;qn.exports.Constants=Of;qn.exports.Errors=Tf;qn.exports.FileAttr=$$;var Bn=qn.exports,qi={},En=Bn,X=En.Constants,_$=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,E=0,h=0,d=0;e|=En.isWin?2560:768,r|=X.FLG_EFS;var y={};function v(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 v(+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 X.STORED:this.version=10;case X.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){v(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 E},set inAttr(f){E=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 X.CENHDR+u+m+a},get realDataOffset(){return d+X.LOCHDR+y.fnameLen+y.extraLen},get dataHeader(){return y},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+X.LOCHDR);if($.readUInt32LE(0)!==X.LOCSIG)throw new Error(En.Errors.INVALID_LOC);y={version:$.readUInt16LE(X.LOCVER),flags:$.readUInt16LE(X.LOCFLG),method:$.readUInt16LE(X.LOCHOW),time:$.readUInt32LE(X.LOCTIM),crc:$.readUInt32LE(X.LOCCRC),compressedSize:$.readUInt32LE(X.LOCSIZ),size:$.readUInt32LE(X.LOCLEN),fnameLen:$.readUInt16LE(X.LOCNAM),extraLen:$.readUInt16LE(X.LOCEXT)}},loadFromBinary:function(f){if(f.length!==X.CENHDR||f.readUInt32LE(0)!==X.CENSIG)throw new Error(En.Errors.INVALID_CEN);e=f.readUInt16LE(X.CENVEM),t=f.readUInt16LE(X.CENVER),r=f.readUInt16LE(X.CENFLG),n=f.readUInt16LE(X.CENHOW),i=f.readUInt32LE(X.CENTIM),s=f.readUInt32LE(X.CENCRC),o=f.readUInt32LE(X.CENSIZ),c=f.readUInt32LE(X.CENLEN),u=f.readUInt16LE(X.CENNAM),m=f.readUInt16LE(X.CENEXT),a=f.readUInt16LE(X.CENCOM),l=f.readUInt16LE(X.CENDSK),E=f.readUInt16LE(X.CENATT),h=f.readUInt32LE(X.CENATX),d=f.readUInt32LE(X.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(X.LOCHDR);return f.writeUInt32LE(X.LOCSIG,0),f.writeUInt16LE(t,X.LOCVER),f.writeUInt16LE(r,X.LOCFLG),f.writeUInt16LE(n,X.LOCHOW),f.writeUInt32LE(i,X.LOCTIM),f.writeUInt32LE(s,X.LOCCRC),f.writeUInt32LE(o,X.LOCSIZ),f.writeUInt32LE(c,X.LOCLEN),f.writeUInt16LE(u,X.LOCNAM),f.writeUInt16LE(m,X.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(X.CENHDR+u+m+a);return f.writeUInt32LE(X.CENSIG,0),f.writeUInt16LE(e,X.CENVEM),f.writeUInt16LE(t,X.CENVER),f.writeUInt16LE(r,X.CENFLG),f.writeUInt16LE(n,X.CENHOW),f.writeUInt32LE(i,X.CENTIM),f.writeUInt32LE(s,X.CENCRC),f.writeUInt32LE(o,X.CENSIZ),f.writeUInt32LE(c,X.CENLEN),f.writeUInt16LE(u,X.CENNAM),f.writeUInt16LE(m,X.CENEXT),f.writeUInt16LE(a,X.CENCOM),f.writeUInt16LE(l,X.CENDSK),f.writeUInt16LE(E,X.CENATT),f.writeUInt32LE(h,X.CENATX),f.writeUInt32LE(d,X.CENOFF),f.fill(0,X.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:En.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:E,attr:h,offset:d,entryHeaderSize:f(X.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},jr=Bn,_e=jr.Constants,S$=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 _e.ENDHDR+i},loadFromBinary:function(s){if((s.length!==_e.ENDHDR||s.readUInt32LE(0)!==_e.ENDSIG)&&(s.length<_e.ZIP64HDR||s.readUInt32LE(0)!==_e.ZIP64SIG))throw new Error(jr.Errors.INVALID_END);s.readUInt32LE(0)===_e.ENDSIG?(e=s.readUInt16LE(_e.ENDSUB),t=s.readUInt16LE(_e.ENDTOT),r=s.readUInt32LE(_e.ENDSIZ),n=s.readUInt32LE(_e.ENDOFF),i=s.readUInt16LE(_e.ENDCOM)):(e=jr.readBigUInt64LE(s,_e.ZIP64SUB),t=jr.readBigUInt64LE(s,_e.ZIP64TOT),r=jr.readBigUInt64LE(s,_e.ZIP64SIZE),n=jr.readBigUInt64LE(s,_e.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(_e.ENDHDR+i);return s.writeUInt32LE(_e.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,_e.ENDSUB),s.writeUInt16LE(t,_e.ENDTOT),s.writeUInt32LE(r,_e.ENDSIZ),s.writeUInt32LE(n,_e.ENDOFF),s.writeUInt16LE(i,_e.ENDCOM),s.fill(" ",_e.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," ")}}};qi.EntryHeader=_$;qi.MainHeader=S$;var Bi={},w$=function(e){var t=Dc,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)}}},N$=function(e){var t=Dc;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:Sc}=Tc,I$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Rf=(e,t)=>Math.imul(e,t)>>>0,wc=(e,t)=>I$[(e^t)&255]^e>>>8,An=()=>typeof Sc=="function"?Sc(Buffer.alloc(12)):An.node();An.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 vi={genSalt:An};function Ki(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])}Ki.prototype.updateKeys=function(e){const t=this.keys;return t[0]=wc(t[0],e),t[1]+=t[0]&255,t[1]=Rf(t[1],134775813)+1,t[2]=wc(t[2],t[1]>>>24),e};Ki.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Rf(e,e^1)>>8&255};function O$(e){const t=new Ki(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 T$(e){const t=new Ki(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 D$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=O$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function R$(e){Buffer.isBuffer(e)&&e.length>=12?vi.genSalt=function(){return e.slice(0,12)}:e==="node"?vi.genSalt=An.node:vi.genSalt=An}function C$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=T$(r),s=vi.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 P$={decrypt:D$,encrypt:C$,_salter:R$};Bi.Deflater=w$;Bi.Inflater=N$;Bi.ZipCrypto=P$;var Ce=Bn,A$=qi,st=Ce.Constants,hs=Bi,Cf=function(e){var t=new A$.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&&Ce.crc32(d)!==t.dataHeader.crc)}function m(d,y,v){if(typeof y>"u"&&typeof d=="string"&&(v=d,d=void 0),i)return d&&y&&y(Buffer.alloc(0),Ce.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&y&&y(f),f;if(t.encripted){if(typeof v!="string"&&!Buffer.isBuffer(v))throw new Error("ADM-ZIP: Incompatible password parameter");f=hs.ZipCrypto.decrypt(f,t,v)}var $=Buffer.alloc(t.size);switch(t.method){case Ce.Constants.STORED:if(f.copy($),u($))return d&&y&&y($),$;throw d&&y&&y($,Ce.Errors.BAD_CRC),new Error(Ce.Errors.BAD_CRC);case Ce.Constants.DEFLATED:var S=new hs.Inflater(f);if(d)S.inflateAsync(function(D){D.copy(D,0),y&&(u(D)?y(D):y(D,Ce.Errors.BAD_CRC))});else{if(S.inflate($).copy($,0),!u($))throw new Error(Ce.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&y&&y(Buffer.alloc(0),Ce.Errors.UNKNOWN_METHOD),new Error(Ce.Errors.UNKNOWN_METHOD)}}function a(d,y){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&y&&y(c()),c();if(s.length&&!i){var v;switch(t.method){case Ce.Constants.STORED:return t.compressedSize=t.size,v=Buffer.alloc(s.length),s.copy(v),d&&y&&y(v),v;default:case Ce.Constants.DEFLATED:var f=new hs.Deflater(s);if(d)f.deflateAsync(function(S){v=Buffer.alloc(S.length),t.compressedSize=S.length,S.copy(v),y&&y(v)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&y)y(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,y){return(d.readUInt32LE(y+4)<<4)+d.readUInt32LE(y)}function E(d){for(var y=0,v,f,$;y<d.length;)v=d.readUInt16LE(y),y+=2,f=d.readUInt16LE(y),y+=2,$=d.slice(y,y+f),y+=f,st.ID_ZIP64===v&&h($)}function h(d){var y,v,f,$;d.length>=st.EF_ZIP64_SCOMP&&(y=l(d,st.EF_ZIP64_SUNCOMP),t.size===st.EF_ZIP64_OR_32&&(t.size=y)),d.length>=st.EF_ZIP64_RHO&&(v=l(d,st.EF_ZIP64_SCOMP),t.compressedSize===st.EF_ZIP64_OR_32&&(t.compressedSize=v)),d.length>=st.EF_ZIP64_DSN&&(f=l(d,st.EF_ZIP64_RHO),t.offset===st.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=st.EF_ZIP64_DSN+4&&($=d.readUInt32LE(st.EF_ZIP64_DSN),t.diskNumStart===st.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=Ce.toBuffer(d);var y=r[r.length-1];i=y===47||y===92,t.fileNameLength=r.length},get extra(){return o},set extra(d){o=d,t.extraLength=d.length,E(d)},get comment(){return n.toString()},set comment(d){n=Ce.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=Ce.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=Ce.Constants.DEFLATED,t.crc=Ce.crc32(d),t.changed=!0):t.method=Ce.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,y){t.changed?d(s):m(!0,d,y)},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(),y=Ce.Constants.CENHDR;return r.copy(d,y),y+=r.length,t.extraLength&&(o.copy(d,y),y+=t.extraLength),t.commentLength&&n.copy(d,y),d},toJSON:function(){const d=function(y){return"<"+(y&&y.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 Nc=Cf,b$=qi,Ge=Bn;var L$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new b$.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 y=s.offset;for(let v=0;v<d;v++){let f=y;const $=new Nc(e);$.header=e.slice(f,f+=Ge.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),y+=$.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 y=h,v=new Nc(e);v.header=e.slice(y,y+=Ge.Constants.CENHDR),v.entryName=e.slice(y,y+=v.header.fileNameLength),v.header.extraLength&&(v.extra=e.slice(y,y+=v.header.extraLength)),v.header.commentLength&&(v.comment=e.slice(y,y+v.header.commentLength)),h+=v.header.entryHeaderSize,r[d]=v,n[v.entryName]=v}}function l(h){var d=e.length-Ge.Constants.ENDHDR,y=Math.max(0,d-65535),v=y,f=e.length,$=-1,S=0;for(d;d>=v;d--)if(e[d]===80){if(e.readUInt32LE(d)===Ge.Constants.ENDSIG){$=d,S=d,f=d+Ge.Constants.ENDHDR,v=d-Ge.Constants.END64HDR;continue}if(e.readUInt32LE(d)===Ge.Constants.END64SIG){v=y;continue}if(e.readUInt32LE(d)===Ge.Constants.ZIP64SIG){$=d,f=d+Ge.readBigUInt64LE(e,d+Ge.Constants.ZIP64SIZE)+Ge.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Ge.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(S+Ge.Constants.ENDHDR)),h&&a()}function E(){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=Ge.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 y=this;this.getEntryChildren(d).forEach(function(v){v.entryName!==h&&y.deleteEntry(v.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=[],y=h.entryName,v=y.length;return r.forEach(function(f){f.entryName.substr(0,v)===y&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),E();const h=[],d=[];let y=0,v=0;s.size=0,s.offset=0;for(const S of r){const D=S.getCompressedData();S.header.offset=v;const V=S.header.dataHeaderToBinary(),T=S.rawEntryName.length,P=Buffer.alloc(T+S.extra.length);S.rawEntryName.copy(P,0),P.copy(S.extra,T);const U=V.length+P.length+D.length;v+=U,h.push(V),h.push(P),h.push(D);const A=S.packHeader();d.push(A),s.size+=A.length,y+=U+A.length}y+=s.mainHeaderSize,s.offset=v,v=0;const f=Buffer.alloc(y);for(const S of h)S.copy(f,v),v+=S.length;for(const S of d)S.copy(f,v),v+=S.length;const $=s.toBinary();return i&&i.copy($,Ge.Constants.ENDHDR),$.copy(f,v),f},toAsyncBuffer:function(h,d,y,v){try{o||a(),E();const f=[],$=[];let S=0,D=0;s.size=0,s.offset=0;const V=function(T){if(T.length){const P=T.pop(),U=P.entryName+P.extra.toString();y&&y(U),P.getCompressedDataAsync(function(A){v&&v(U),P.header.offset=D;const z=P.header.dataHeaderToBinary(),B=Buffer.alloc(U.length,U),K=z.length+B.length+A.length;D+=K,f.push(z),f.push(B),f.push(A);const x=P.packHeader();$.push(x),s.size+=x.length,S+=K+x.length,V(T)})}else{S+=s.mainHeaderSize,s.offset=D,D=0;const P=Buffer.alloc(S);f.forEach(function(A){A.copy(P,D),D+=A.length}),$.forEach(function(A){A.copy(P,D),D+=A.length});const U=s.toBinary();i&&i.copy(U,Ge.Constants.ENDHDR),U.copy(P,D),h(P)}};V(r)}catch(f){d(f)}}}};const Ae=Bn,Dt=Ie,F$=Cf,j$=L$,cr=(e,t)=>typeof e=="boolean"?e:t,ms=(e,t)=>typeof e=="string"?e:t,M$={noSort:!1,readEntries:!1,method:Ae.Constants.NONE,fs:null};var k$=function(e,t){let r=null;const n=Object.assign(Object.create(null),M$);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=Ae.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Ae(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Ae.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Ae.Errors.INVALID_FILENAME);const s=new j$(r,n),{canonical:o,sanitize:c}=Ae;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:E,sep:h}=Dt.posix;return l(".",E(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var E=u(a);return E&&E.getData(l)||null},readFileAsync:function(a,l){var E=u(a);E?E.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var E=u(a);if(E){var h=E.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,E){var h=u(a);h?h.getDataAsync(function(d,y){if(y){l(d,y);return}d&&d.length?l(d.toString(E||"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 E=u(a);E&&(E.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var E=u(a);E&&E.setData(l)},addLocalFile:function(a,l,E,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=E||d;const y=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,y)}else throw new Error(Ae.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,E,h){if(E instanceof RegExp?E=function(d){return function(y){return d.test(y)}}(E):typeof E!="function"&&(E=function(){return!0}),l=l?m(l):"",a=Dt.normalize(a),i.fs.existsSync(a)){const d=i.findFiles(a),y=this;d.length&&d.forEach(function(v){var f=Dt.relative(a,v).split("\\").join("/");if(E(f)){var $=i.fs.statSync(v);$.isFile()?y.addFile(l+f,i.fs.readFileSync(v),"",h||$):y.addFile(l+f+"/",Buffer.alloc(0),"",h||$)}})}else throw new Error(Ae.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,E,h){h instanceof RegExp?h=function(y){return function(v){return y.test(v)}}(h):typeof h!="function"&&(h=function(){return!0}),E=E?m(E):"",a=Dt.normalize(a);var d=this;i.fs.open(a,"r",function(y){if(y&&y.code==="ENOENT")l(void 0,Ae.Errors.FILE_NOT_FOUND.replace("%s",a));else if(y)l(void 0,y);else{var v=i.findFiles(a),f=-1,$=function(){if(f+=1,f<v.length){var S=v[f],D=Dt.relative(a,S).split("\\").join("/");D=D.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(D)?i.fs.stat(S,function(V,T){V&&l(void 0,V),T.isFile()?i.fs.readFile(S,function(P,U){P?l(void 0,P):(d.addFile(E+D,U,"",T),$())}):(d.addFile(E+D+"/",Buffer.alloc(0),"",T),$())}):process.nextTick(()=>{$()})}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((E,h)=>{const{filter:d,zipPath:y}=Object.assign({},l);this.addLocalFolderAsync(a,(v,f)=>{f&&h(f),v&&E(this)},y,d)})},addFile:function(a,l,E,h){let d=u(a);const y=d!=null;y||(d=new F$,d.entryName=a),d.comment=E||"";const v=typeof h=="object"&&h instanceof i.fs.Stats;v&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;let $=d.isDirectory?16384:32768;v?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0,d.attr=f,d.setData(l),y||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,E,h,d,y){h=cr(h,!1),d=cr(d,!1),E=cr(E,!0),y=ms(y,ms(d,void 0));var v=u(a);if(!v)throw new Error(Ae.Errors.NO_ENTRY);var f=o(v.entryName),$=c(l,y&&!v.isDirectory?y:E?f:Dt.basename(f));if(v.isDirectory){var S=s.getEntryChildren(v);return S.forEach(function(T){if(T.isDirectory)return;var P=T.getData();if(!P)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);var U=o(T.entryName),A=c(l,E?U:Dt.basename(U));const z=d?T.header.fileAttr:void 0;i.writeFileTo(A,P,h,z)}),!0}var D=v.getData();if(!D)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Ae.Errors.CANT_OVERRIDE);const V=d?a.header.fileAttr:void 0;return i.writeFileTo($,D,h,V),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var E=s.entries[l].getData(a);if(!E)return!1}catch{return!1}return!0},extractAllTo:function(a,l,E,h){if(l=cr(l,!1),h=ms(E,h),E=cr(E,!1),!s)throw new Error(Ae.Errors.NO_ZIP);s.entries.forEach(function(d){var y=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(y);return}var v=d.getData(h);if(!v)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);const f=E?d.header.fileAttr:void 0;i.writeFileTo(y,v,l,f);try{i.fs.utimesSync(y,d.header.time,d.header.time)}catch{throw new Error(Ae.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,E,h){if(l=cr(l,!1),typeof E=="function"&&!h&&(h=E),E=cr(E,!1),h||(h=function(S){throw new Error(S)}),!s){h(new Error(Ae.Errors.NO_ZIP));return}a=Dt.resolve(a);const d=S=>c(a,Dt.normalize(o(S.entryName.toString()))),y=(S,D)=>new Error(S+': "'+D+'"'),v=[],f=new Set;s.entries.forEach(S=>{S.isDirectory?v.push(S):f.add(S)});for(const S of v){const D=d(S),V=E?S.header.fileAttr:void 0;try{i.makeDir(D),V&&i.fs.chmodSync(D,V),i.fs.utimesSync(D,S.header.time,S.header.time)}catch{h(y("Unable to create folder",D))}}const $=()=>{f.size===0&&h()};for(const S of f.values()){const D=Dt.normalize(o(S.entryName.toString())),V=c(a,D);S.getDataAsync(function(T,P){if(P){h(new Error(P));return}if(!T)h(new Error(Ae.Errors.CANT_EXTRACT_FILE));else{const U=E?S.header.fileAttr:void 0;i.writeFileToAsync(V,T,l,U,function(A){if(!A){h(y("Unable to write file",V));return}i.fs.utimes(V,S.header.time,S.header.time,function(z){if(z){h(y("Unable to set times",V));return}f.delete(S),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var E=s.compressToBuffer();if(E){var h=i.writeFileTo(a,E,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:E,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,y)=>{!a&&n.filename&&(a=n.filename),a||y("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(v=>{const f=$=>$?d($):y("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,v,E,h,f)},y)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,E,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,E,h),null):s.compressToBuffer()}}};const Ic=Rc(k$);var bn,xr,Gr,Ln,mr,pr,Kt,Wt,Di,Hr,Fn,Ps,jn,yt,qr,Ei,Mn,kt;const pt=class{constructor(t,r){Fe(this,Fn);Fe(this,qr);Fe(this,bn,ce.screen.getPrimaryDisplay().size);Fe(this,xr,oe(this,bn).width);Fe(this,Gr,oe(this,bn).height);Fe(this,Ln,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});Fe(this,mr,0);Fe(this,pr,0);Fe(this,Kt,0);Fe(this,Wt,0);Fe(this,Di,process.platform==="win32");Fe(this,Hr,void 0);Fe(this,jn,!1);Fe(this,yt,!1);this.bw=t,oe(this,Ln).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Ln)),ce.ipcMain.handle("existsSync",(i,s)=>ft.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>ft.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>ft.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>ft.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>ft.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>ft.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>ft.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>ft.appendFile(s,o).catch(u=>c(u))),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=>{ft.ensureFileSync(s),ft.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 gc(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 Ic;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{ft.removeSync(o),ft.ensureDirSync(o),new Ic(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,Di)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{ze(this,yt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,mr),oe(this,pr)),t.setContentSize(oe(this,Kt),oe(this,Wt)+oe(pt,kt))),ze(this,yt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,xr),oe(this,Gr)-oe(pt,kt))}),t.on("leave-full-screen",()=>{Rr(this,qr,Ei).call(this,!1,oe(this,mr),oe(this,pr),oe(this,Kt),oe(this,Wt)+oe(pt,kt))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,Kt),oe(this,Wt)+oe(pt,kt))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Rr(this,qr,Ei).call(this,s,o,c,u,m)),t.on("move",()=>Rr(this,Fn,Ps).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{gc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];ze(pt,kt,o-c),ze(pt,Mn,new pt(s,r)),i=()=>oe(pt,Mn).openDevTools(),s.loadFile(t),s.once("ready-to-show",()=>s.show())}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let kr=pt;bn=new WeakMap,xr=new WeakMap,Gr=new WeakMap,Ln=new WeakMap,mr=new WeakMap,pr=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,Di=new WeakMap,Hr=new WeakMap,Fn=new WeakSet,Ps=function(){if(oe(this,Hr)||oe(this,yt))return;ze(this,yt,!0);const{x:t,y:r}=this.bw.getBounds();ze(this,Hr,setTimeout(()=>{if(ze(this,Hr,void 0),oe(this,jn)){ze(this,jn,!1);return}ze(this,yt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Rr(this,Fn,Ps).call(this);return}Rr(this,qr,Ei).call(this,!1,n.x,n.y,oe(this,Kt),oe(this,Wt))},1e3/60*10))},jn=new WeakMap,yt=new WeakMap,qr=new WeakSet,Ei=function(t,r,n,i,s){oe(this,yt)||(ze(this,yt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(oe(this,xr)-r)*.5,n=(oe(this,Gr)-n)*.5):((r<0||r>oe(this,xr))&&(r=0),(n<0||n>oe(this,Gr))&&(n=0)),(oe(this,mr)!==r||oe(this,pr)!==n)&&(ze(this,mr,r),ze(this,pr,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),ze(this,Kt,i),ze(this,Wt,s),this.bw.setContentSize(i,s+oe(pt,kt)),ze(this,yt,!1)))},Mn=new WeakMap,kt=new WeakMap,Fe(kr,Mn,void 0),Fe(kr,kt,0);module.exports=kr;exports.appMain=kr;
|
|
15
|
+
${t}`,tv=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),rv=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nv=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=ev.bind(null,n,t.toString());Object.defineProperty(i,"name",rv),Object.defineProperty(e,"toString",{...tv,value:i})},iv=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))J0(e,t,i,r);return Q0(e,t),nv(e,t,n),e};var sv=iv;const ov=sv;var av=(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 ov(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},Rs={exports:{}};const cv="2.0.0",uv=256,fv=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16,dv=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Ui={MAX_LENGTH:uv,MAX_SAFE_COMPONENT_LENGTH:lv,MAX_SAFE_INTEGER:fv,RELEASE_TYPES:dv,SEMVER_SPEC_VERSION:cv,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const hv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Vi=hv;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=Ui,n=Vi;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const E=c++;n(m,E,a),o[m]=E,s[E]=a,i[E]=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*$")})(Rs,Rs.exports);var Hn=Rs.exports;const mv=Object.freeze({loose:!0}),pv=Object.freeze({}),yv=e=>e?typeof e!="object"?mv:e:pv;var ko=yv;const qa=/^[0-9]+$/,vf=(e,t)=>{const r=qa.test(e),n=qa.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},vv=(e,t)=>vf(t,e);var Ef={compareIdentifiers:vf,rcompareIdentifiers:vv};const ai=Vi,{MAX_LENGTH:Ba,MAX_SAFE_INTEGER:ci}=Ui,{re:Ka,t:Wa}=Hn,Ev=ko,{compareIdentifiers:br}=Ef;let gv=class Rt{constructor(t,r){if(r=Ev(r),t instanceof Rt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Ba)throw new TypeError(`version is longer than ${Ba} characters`);ai("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ka[Wa.LOOSE]:Ka[Wa.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>ci||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ci||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ci||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<ci)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(ai("SemVer.compare",this.version,this.options,t),!(t instanceof Rt)){if(typeof t=="string"&&t===this.version)return 0;t=new Rt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Rt||(t=new Rt(t,this.options)),br(this.major,t.major)||br(this.minor,t.minor)||br(this.patch,t.patch)}comparePre(t){if(t instanceof Rt||(t=new Rt(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(ai("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 br(n,i)}while(++r)}compareBuild(t){t instanceof Rt||(t=new Rt(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(ai("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 br(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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":{const i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),br(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Je=gv;const Za=Je,$v=(e,t,r=!1)=>{if(e instanceof Za)return e;try{return new Za(e,t)}catch(n){if(!r)return null;throw n}};var rn=$v;const _v=rn,Sv=(e,t)=>{const r=_v(e,t);return r?r.version:null};var wv=Sv;const Nv=rn,Iv=(e,t)=>{const r=Nv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Ov=Iv;const Xa=Je,Tv=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Xa(e instanceof Xa?e.version:e,r).inc(t,n,i).version}catch{return null}};var Dv=Tv;const Ja=rn,Rv=(e,t)=>{const r=Ja(e,null,!0),n=Ja(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,c=s?n:r,u=!!o.prerelease.length,m=u?"pre":"";return r.major!==n.major?m+"major":r.minor!==n.minor?m+"minor":r.patch!==n.patch?m+"patch":u?"prerelease":c.patch?"patch":c.minor?"minor":"major"};var Cv=Rv;const Pv=Je,Av=(e,t)=>new Pv(e,t).major;var bv=Av;const Lv=Je,Fv=(e,t)=>new Lv(e,t).minor;var jv=Fv;const Mv=Je,kv=(e,t)=>new Mv(e,t).patch;var Uv=kv;const Vv=rn,zv=(e,t)=>{const r=Vv(e,t);return r&&r.prerelease.length?r.prerelease:null};var xv=zv;const Ya=Je,Gv=(e,t,r)=>new Ya(e,r).compare(new Ya(t,r));var $t=Gv;const Hv=$t,qv=(e,t,r)=>Hv(t,e,r);var Bv=qv;const Kv=$t,Wv=(e,t)=>Kv(e,t,!0);var Zv=Wv;const Qa=Je,Xv=(e,t,r)=>{const n=new Qa(e,r),i=new Qa(t,r);return n.compare(i)||n.compareBuild(i)};var Uo=Xv;const Jv=Uo,Yv=(e,t)=>e.sort((r,n)=>Jv(r,n,t));var Qv=Yv;const eE=Uo,tE=(e,t)=>e.sort((r,n)=>eE(n,r,t));var rE=tE;const nE=$t,iE=(e,t,r)=>nE(e,t,r)>0;var zi=iE;const sE=$t,oE=(e,t,r)=>sE(e,t,r)<0;var Vo=oE;const aE=$t,cE=(e,t,r)=>aE(e,t,r)===0;var gf=cE;const uE=$t,fE=(e,t,r)=>uE(e,t,r)!==0;var $f=fE;const lE=$t,dE=(e,t,r)=>lE(e,t,r)>=0;var zo=dE;const hE=$t,mE=(e,t,r)=>hE(e,t,r)<=0;var xo=mE;const pE=gf,yE=$f,vE=zi,EE=zo,gE=Vo,$E=xo,_E=(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 pE(e,r,n);case"!=":return yE(e,r,n);case">":return vE(e,r,n);case">=":return EE(e,r,n);case"<":return gE(e,r,n);case"<=":return $E(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var _f=_E;const SE=Je,wE=rn,{re:ui,t:fi}=Hn,NE=(e,t)=>{if(e instanceof SE)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(ui[fi.COERCE]);else{let n;for(;(n=ui[fi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),ui[fi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ui[fi.COERCERTL].lastIndex=-1}return r===null?null:wE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var IE=NE,ss,ec;function OE(){return ec||(ec=1,ss=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ss}var TE=le;le.Node=gr;le.create=le;function le(e){var t=this;if(t instanceof le||(t=new le),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}le.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};le.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++}};le.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++}};le.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)RE(this,arguments[e]);return this.length};le.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)CE(this,arguments[e]);return this.length};le.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}};le.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}};le.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};le.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};le.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};le.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};le.prototype.map=function(e,t){t=t||this;for(var r=new le,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};le.prototype.mapReverse=function(e,t){t=t||this;for(var r=new le,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};le.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};le.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};le.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};le.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};le.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 le;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};le.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 le;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};le.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=DE(this,i,r[n]);return s};le.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 DE(e,t,r){var n=t===e.head?new gr(r,null,t,e):new gr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function RE(e,t){e.tail=new gr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function CE(e,t){e.head=new gr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function gr(e,t,r,n){if(!(this instanceof gr))return new gr(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{OE()(le)}catch{}const PE=TE,dr=Symbol("max"),Mt=Symbol("length"),Lr=Symbol("lengthCalculator"),On=Symbol("allowStale"),hr=Symbol("maxAge"),jt=Symbol("dispose"),tc=Symbol("noDisposeOnSet"),be=Symbol("lruList"),mt=Symbol("cache"),Sf=Symbol("updateAgeOnGet"),os=()=>1;class AE{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[dr]=t.max||1/0;const r=t.length||os;if(this[Lr]=typeof r!="function"?os:r,this[On]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[hr]=t.maxAge||0,this[jt]=t.dispose,this[tc]=t.noDisposeOnSet||!1,this[Sf]=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[dr]=t||1/0,pn(this)}get max(){return this[dr]}set allowStale(t){this[On]=!!t}get allowStale(){return this[On]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[hr]=t,pn(this)}get maxAge(){return this[hr]}set lengthCalculator(t){typeof t!="function"&&(t=os),t!==this[Lr]&&(this[Lr]=t,this[Mt]=0,this[be].forEach(r=>{r.length=this[Lr](r.value,r.key),this[Mt]+=r.length})),pn(this)}get lengthCalculator(){return this[Lr]}get length(){return this[Mt]}get itemCount(){return this[be].length}rforEach(t,r){r=r||this;for(let n=this[be].tail;n!==null;){const i=n.prev;rc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[be].head;n!==null;){const i=n.next;rc(this,t,n,r),n=i}}keys(){return this[be].toArray().map(t=>t.key)}values(){return this[be].toArray().map(t=>t.value)}reset(){this[jt]&&this[be]&&this[be].length&&this[be].forEach(t=>this[jt](t.key,t.value)),this[mt]=new Map,this[be]=new PE,this[Mt]=0}dump(){return this[be].map(t=>Ii(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[be]}set(t,r,n){if(n=n||this[hr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Lr](r,t);if(this[mt].has(t)){if(s>this[dr])return zr(this,this[mt].get(t)),!1;const u=this[mt].get(t).value;return this[jt]&&(this[tc]||this[jt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Mt]+=s-u.length,u.length=s,this.get(t),pn(this),!0}const o=new bE(t,r,s,i,n);return o.length>this[dr]?(this[jt]&&this[jt](t,r),!1):(this[Mt]+=o.length,this[be].unshift(o),this[mt].set(t,this[be].head),pn(this),!0)}has(t){if(!this[mt].has(t))return!1;const r=this[mt].get(t).value;return!Ii(this,r)}get(t){return as(this,t,!0)}peek(t){return as(this,t,!1)}pop(){const t=this[be].tail;return t?(zr(this,t),t.value):null}del(t){zr(this,this[mt].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[mt].forEach((t,r)=>as(this,r,!1))}}const as=(e,t,r)=>{const n=e[mt].get(t);if(n){const i=n.value;if(Ii(e,i)){if(zr(e,n),!e[On])return}else r&&(e[Sf]&&(n.value.now=Date.now()),e[be].unshiftNode(n));return i.value}},Ii=(e,t)=>{if(!t||!t.maxAge&&!e[hr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[hr]&&r>e[hr]},pn=e=>{if(e[Mt]>e[dr])for(let t=e[be].tail;e[Mt]>e[dr]&&t!==null;){const r=t.prev;zr(e,t),t=r}},zr=(e,t)=>{if(t){const r=t.value;e[jt]&&e[jt](r.key,r.value),e[Mt]-=r.length,e[mt].delete(r.key),e[be].removeNode(t)}};class bE{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const rc=(e,t,r,n)=>{let i=r.value;Ii(e,i)&&(zr(e,r),e[On]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var LE=AE,cs,nc;function _t(){if(nc)return cs;nc=1;class e{constructor(k,H){if(H=n(H),k instanceof e)return k.loose===!!H.loose&&k.includePrerelease===!!H.includePrerelease?k:new e(k.raw,H);if(k instanceof i)return this.raw=k.value,this.set=[[k]],this.format(),this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=k,this.set=k.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${k}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(G=>!d(G[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const G of this.set)if(G.length===1&&y(G[0])){this.set=[G];break}}}this.format()}format(){return this.range=this.set.map(k=>k.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(k){k=k.trim();const q=((this.options.includePrerelease&&E)|(this.options.loose&&h))+":"+k,G=r.get(q);if(G)return G;const C=this.options.loose,F=C?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];k=k.replace(F,B(this.options.includePrerelease)),s("hyphen replace",k),k=k.replace(c[u.COMPARATORTRIM],m),s("comparator trim",k),k=k.replace(c[u.TILDETRIM],a),k=k.replace(c[u.CARETTRIM],l),k=k.split(/\s+/).join(" ");let O=k.split(" ").map(p=>f(p,this.options)).join(" ").split(/\s+/).map(p=>z(p,this.options));C&&(O=O.filter(p=>(s("loose invalid filter",p,this.options),!!p.match(c[u.COMPARATORLOOSE])))),s("range list",O);const w=new Map,b=O.map(p=>new i(p,this.options));for(const p of b){if(d(p))return[p];w.set(p.value,p)}w.size>1&&w.has("")&&w.delete("");const R=[...w.values()];return r.set(q,R),R}intersects(k,H){if(!(k instanceof e))throw new TypeError("a Range is required");return this.set.some(q=>v(q,H)&&k.set.some(G=>v(G,H)&&q.every(C=>G.every(F=>C.intersects(F,H)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new o(k,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(K(this.set[H],k,this.options))return!0;return!1}}cs=e;const t=LE,r=new t({max:1e3}),n=ko,i=xi(),s=Vi,o=Je,{re:c,t:u,comparatorTrimReplace:m,tildeTrimReplace:a,caretTrimReplace:l}=Hn,{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:h}=Ui,d=x=>x.value==="<0.0.0-0",y=x=>x.value==="",v=(x,k)=>{let H=!0;const q=x.slice();let G=q.pop();for(;H&&q.length;)H=q.every(C=>G.intersects(C,k)),G=q.pop();return H},f=(x,k)=>(s("comp",x,k),x=V(x,k),s("caret",x),x=S(x,k),s("tildes",x),x=P(x,k),s("xrange",x),x=A(x,k),s("stars",x),x),$=x=>!x||x.toLowerCase()==="x"||x==="*",S=(x,k)=>x.trim().split(/\s+/).map(H=>D(H,k)).join(" "),D=(x,k)=>{const H=k.loose?c[u.TILDELOOSE]:c[u.TILDE];return x.replace(H,(q,G,C,F,O)=>{s("tilde",x,q,G,C,F,O);let w;return $(G)?w="":$(C)?w=`>=${G}.0.0 <${+G+1}.0.0-0`:$(F)?w=`>=${G}.${C}.0 <${G}.${+C+1}.0-0`:O?(s("replaceTilde pr",O),w=`>=${G}.${C}.${F}-${O} <${G}.${+C+1}.0-0`):w=`>=${G}.${C}.${F} <${G}.${+C+1}.0-0`,s("tilde return",w),w})},V=(x,k)=>x.trim().split(/\s+/).map(H=>T(H,k)).join(" "),T=(x,k)=>{s("caret",x,k);const H=k.loose?c[u.CARETLOOSE]:c[u.CARET],q=k.includePrerelease?"-0":"";return x.replace(H,(G,C,F,O,w)=>{s("caret",x,G,C,F,O,w);let b;return $(C)?b="":$(F)?b=`>=${C}.0.0${q} <${+C+1}.0.0-0`:$(O)?C==="0"?b=`>=${C}.${F}.0${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.0${q} <${+C+1}.0.0-0`:w?(s("replaceCaret pr",w),C==="0"?F==="0"?b=`>=${C}.${F}.${O}-${w} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}-${w} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O}-${w} <${+C+1}.0.0-0`):(s("no pr"),C==="0"?F==="0"?b=`>=${C}.${F}.${O}${q} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O} <${+C+1}.0.0-0`),s("caret return",b),b})},P=(x,k)=>(s("replaceXRanges",x,k),x.split(/\s+/).map(H=>U(H,k)).join(" ")),U=(x,k)=>{x=x.trim();const H=k.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return x.replace(H,(q,G,C,F,O,w)=>{s("xRange",x,q,G,C,F,O,w);const b=$(C),R=b||$(F),p=R||$(O),_=p;return G==="="&&_&&(G=""),w=k.includePrerelease?"-0":"",b?G===">"||G==="<"?q="<0.0.0-0":q="*":G&&_?(R&&(F=0),O=0,G===">"?(G=">=",R?(C=+C+1,F=0,O=0):(F=+F+1,O=0)):G==="<="&&(G="<",R?C=+C+1:F=+F+1),G==="<"&&(w="-0"),q=`${G+C}.${F}.${O}${w}`):R?q=`>=${C}.0.0${w} <${+C+1}.0.0-0`:p&&(q=`>=${C}.${F}.0${w} <${C}.${+F+1}.0-0`),s("xRange return",q),q})},A=(x,k)=>(s("replaceStars",x,k),x.trim().replace(c[u.STAR],"")),z=(x,k)=>(s("replaceGTE0",x,k),x.trim().replace(c[k.includePrerelease?u.GTE0PRE:u.GTE0],"")),B=x=>(k,H,q,G,C,F,O,w,b,R,p,_,M)=>($(q)?H="":$(G)?H=`>=${q}.0.0${x?"-0":""}`:$(C)?H=`>=${q}.${G}.0${x?"-0":""}`:F?H=`>=${H}`:H=`>=${H}${x?"-0":""}`,$(b)?w="":$(R)?w=`<${+b+1}.0.0-0`:$(p)?w=`<${b}.${+R+1}.0-0`:_?w=`<=${b}.${R}.${p}-${_}`:x?w=`<${b}.${R}.${+p+1}-0`:w=`<=${w}`,`${H} ${w}`.trim()),K=(x,k,H)=>{for(let q=0;q<x.length;q++)if(!x[q].test(k))return!1;if(k.prerelease.length&&!H.includePrerelease){for(let q=0;q<x.length;q++)if(s(x[q].semver),x[q].semver!==i.ANY&&x[q].semver.prerelease.length>0){const G=x[q].semver;if(G.major===k.major&&G.minor===k.minor&&G.patch===k.patch)return!0}return!1}return!0};return cs}var us,ic;function xi(){if(ic)return us;ic=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],E=a.match(l);if(!E)throw new TypeError(`Invalid comparator: ${a}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new c(E[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(a.value,l).test(this.value):a.operator===""?a.value===""?!0:new u(this.value,l).test(a.semver):(l=r(l),l.includePrerelease&&(this.value==="<0.0.0-0"||a.value==="<0.0.0-0")||!l.includePrerelease&&(this.value.startsWith("<0.0.0")||a.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&a.operator.startsWith(">")||this.operator.startsWith("<")&&a.operator.startsWith("<")||this.semver.version===a.semver.version&&this.operator.includes("=")&&a.operator.includes("=")||s(this.semver,"<",a.semver,l)&&this.operator.startsWith(">")&&a.operator.startsWith("<")||s(this.semver,">",a.semver,l)&&this.operator.startsWith("<")&&a.operator.startsWith(">")))}}us=t;const r=ko,{re:n,t:i}=Hn,s=_f,o=Vi,c=Je,u=_t();return us}const FE=_t(),jE=(e,t,r)=>{try{t=new FE(t,r)}catch{return!1}return t.test(e)};var Gi=jE;const ME=_t(),kE=(e,t)=>new ME(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var UE=kE;const VE=Je,zE=_t(),xE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new zE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new VE(n,r))}),n};var GE=xE;const HE=Je,qE=_t(),BE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new qE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new HE(n,r))}),n};var KE=BE;const fs=Je,WE=_t(),sc=zi,ZE=(e,t)=>{e=new WE(e,t);let r=new fs("0.0.0");if(e.test(r)||(r=new fs("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 fs(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||sc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||sc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var XE=ZE;const JE=_t(),YE=(e,t)=>{try{return new JE(e,t).range||"*"}catch{return null}};var QE=YE;const eg=Je,wf=xi(),{ANY:tg}=wf,rg=_t(),ng=Gi,oc=zi,ac=Vo,ig=xo,sg=zo,og=(e,t,r,n)=>{e=new eg(e,n),t=new rg(t,n);let i,s,o,c,u;switch(r){case">":i=oc,s=ig,o=ac,c=">",u=">=";break;case"<":i=ac,s=sg,o=oc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ng(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,E=null;if(a.forEach(h=>{h.semver===tg&&(h=new wf(">=0.0.0")),l=l||h,E=E||h,i(h.semver,l.semver,n)?l=h:o(h.semver,E.semver,n)&&(E=h)}),l.operator===c||l.operator===u||(!E.operator||E.operator===c)&&s(e,E.semver))return!1;if(E.operator===u&&o(e,E.semver))return!1}return!0};var Go=og;const ag=Go,cg=(e,t,r)=>ag(e,t,">",r);var ug=cg;const fg=Go,lg=(e,t,r)=>fg(e,t,"<",r);var dg=lg;const cc=_t(),hg=(e,t,r)=>(e=new cc(e,r),t=new cc(t,r),e.intersects(t,r));var mg=hg;const pg=Gi,yg=$t;var vg=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>yg(a,l,r));for(const a of o)pg(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=_t(),Ho=xi(),{ANY:ls}=Ho,yn=Gi,qo=$t,Eg=(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=$g(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},gg=[new Ho(">=0.0.0-0")],fc=[new Ho(">=0.0.0")],$g=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ls){if(t.length===1&&t[0].semver===ls)return!0;r.includePrerelease?e=gg:e=fc}if(t.length===1&&t[0].semver===ls){if(r.includePrerelease)return!0;t=fc}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=lc(i,h,r):h.operator==="<"||h.operator==="<="?s=dc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=qo(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&&!yn(h,String(i),r)||s&&!yn(h,String(s),r))return null;for(const d of t)if(!yn(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,E=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(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator===">"||h.operator===">="){if(c=lc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!yn(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=dc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!yn(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||E||l)},lc=(e,t,r)=>{if(!e)return t;const n=qo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},dc=(e,t,r)=>{if(!e)return t;const n=qo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var _g=Eg;const ds=Hn,hc=Ui,Sg=Je,mc=Ef,wg=rn,Ng=wv,Ig=Ov,Og=Dv,Tg=Cv,Dg=bv,Rg=jv,Cg=Uv,Pg=xv,Ag=$t,bg=Bv,Lg=Zv,Fg=Uo,jg=Qv,Mg=rE,kg=zi,Ug=Vo,Vg=gf,zg=$f,xg=zo,Gg=xo,Hg=_f,qg=IE,Bg=xi(),Kg=_t(),Wg=Gi,Zg=UE,Xg=GE,Jg=KE,Yg=XE,Qg=QE,e$=Go,t$=ug,r$=dg,n$=mg,i$=vg,s$=_g;var o$={parse:wg,valid:Ng,clean:Ig,inc:Og,diff:Tg,major:Dg,minor:Rg,patch:Cg,prerelease:Pg,compare:Ag,rcompare:bg,compareLoose:Lg,compareBuild:Fg,sort:jg,rsort:Mg,gt:kg,lt:Ug,eq:Vg,neq:zg,gte:xg,lte:Gg,cmp:Hg,coerce:qg,Comparator:Bg,Range:Kg,satisfies:Wg,toComparators:Zg,maxSatisfying:Xg,minSatisfying:Jg,minVersion:Yg,validRange:Qg,outside:e$,gtr:t$,ltr:r$,intersects:n$,simplifyRange:i$,subset:s$,SemVer:Sg,re:ds.re,src:ds.src,tokens:ds.t,SEMVER_SPEC_VERSION:hc.SEMVER_SPEC_VERSION,RELEASE_TYPES:hc.RELEASE_TYPES,compareIdentifiers:mc.compareIdentifiers,rcompareIdentifiers:mc.rcompareIdentifiers},Hi={exports:{}},Bo={exports:{}};const Nf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Bo.exports=Nf;Bo.exports.default=Nf;var a$=Bo.exports;const c$=a$,Oi=new WeakMap,If=(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(Oi.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 c$(s,e),Oi.set(s,n),s};Hi.exports=If;Hi.exports.default=If;Hi.exports.callCount=e=>{if(!Oi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Oi.get(e)};var u$=Hi.exports;(function(e,t){var r=Zt&&Zt.__classPrivateFieldSet||function(G,C,F,O,w){if(O==="m")throw new TypeError("Private method is not writable");if(O==="a"&&!w)throw new TypeError("Private accessor was defined without a setter");if(typeof C=="function"?G!==C||!w:!C.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?w.call(G,F):w?w.value=F:C.set(G,F),F},n=Zt&&Zt.__classPrivateFieldGet||function(G,C,F,O){if(F==="a"&&!O)throw new TypeError("Private accessor was defined without a getter");if(typeof C=="function"?G!==C||!O:!C.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?O:F==="a"?O.call(G):O?O.value:C.get(G)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Ri,l=Yr,E=Ie,h=Tc,d=Oc,y=Hf,v=_h,f=Ah,$=jh,S=Pt,D=mf,V=X0,T=av,P=o$,U=u$,A="aes-256-cbc",z=()=>Object.create(null),B=G=>G!=null;let K="";try{delete require.cache[__filename],K=E.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const x=(G,C)=>{const F=new Set(["undefined","symbol","function"]),O=typeof C;if(F.has(O))throw new TypeError(`Setting a value of type \`${O}\` for key \`${G}\` is not allowed as it's not supported by JSON`)},k="__internal__",H=`${k}.migrations.version`;class q{constructor(C={}){var F;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=_=>JSON.parse(_),this._serialize=_=>JSON.stringify(_,void 0," ");const O={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...C},w=U(()=>{const _=f.sync({cwd:K}),M=_&&JSON.parse(l.readFileSync(_,"utf8"));return M??{}});if(!O.cwd){if(O.projectName||(O.projectName=w().name),!O.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");O.cwd=$(O.projectName,{suffix:O.projectSuffix}).config}if(r(this,u,O,"f"),O.schema){if(typeof O.schema!="object")throw new TypeError("The `schema` option must be an object.");const _=new D.default({allErrors:!0,useDefaults:!0});(0,V.default)(_);const M={type:"object",properties:O.schema};r(this,o,_.compile(M),"f");for(const[W,Z]of Object.entries(O.schema))Z!=null&&Z.default&&(n(this,m,"f")[W]=Z.default)}O.defaults&&r(this,m,{...n(this,m,"f"),...O.defaults},"f"),O.serialize&&(this._serialize=O.serialize),O.deserialize&&(this._deserialize=O.deserialize),this.events=new y.EventEmitter,r(this,c,O.encryptionKey,"f");const b=O.fileExtension?`.${O.fileExtension}`:"";this.path=E.resolve(O.cwd,`${(F=O.configName)!==null&&F!==void 0?F:"config"}${b}`);const R=this.store,p=Object.assign(z(),O.defaults,R);this._validate(p);try{d.deepEqual(R,p)}catch{this.store=p}if(O.watch&&this._watch(),O.migrations){if(O.projectVersion||(O.projectVersion=w().version),!O.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(O.migrations,O.projectVersion,O.beforeEachMigration)}}get(C,F){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(C,F);const{store:O}=this;return C in O?O[C]:F}set(C,F){if(typeof C!="string"&&typeof C!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof C}`);if(typeof C!="object"&&F===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(C))throw new TypeError(`Please don't use the ${k} key, as it's used to manage this module internal operations.`);const{store:O}=this,w=(b,R)=>{x(b,R),n(this,u,"f").accessPropertiesByDotNotation?v.set(O,b,R):O[b]=R};if(typeof C=="object"){const b=C;for(const[R,p]of Object.entries(b))w(R,p)}else w(C,F);this.store=O}has(C){return n(this,u,"f").accessPropertiesByDotNotation?v.has(this.store,C):C in this.store}reset(...C){for(const F of C)B(n(this,m,"f")[F])&&this.set(F,n(this,m,"f")[F])}delete(C){const{store:F}=this;n(this,u,"f").accessPropertiesByDotNotation?v.delete(F,C):delete F[C],this.store=F}clear(){this.store=z();for(const C of Object.keys(n(this,m,"f")))this.reset(C)}onDidChange(C,F){if(typeof C!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof C}`);if(typeof F!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof F}`);return this._handleChange(()=>this.get(C),F)}onDidAnyChange(C){if(typeof C!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof C}`);return this._handleChange(()=>this.store,C)}get size(){return Object.keys(this.store).length}get store(){try{const C=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),F=this._encryptData(C),O=this._deserialize(F);return this._validate(O),Object.assign(z(),O)}catch(C){if((C==null?void 0:C.code)==="ENOENT")return this._ensureDirectory(),z();if(n(this,u,"f").clearInvalidConfig&&C.name==="SyntaxError")return z();throw C}}set store(C){this._ensureDirectory(),this._validate(C),this._write(C),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[C,F]of Object.entries(this.store))yield[C,F]}_encryptData(C){if(!n(this,c,"f"))return C.toString();try{if(n(this,c,"f"))try{if(C.slice(16,17).toString()===":"){const F=C.slice(0,16),O=h.pbkdf2Sync(n(this,c,"f"),F.toString(),1e4,32,"sha512"),w=h.createDecipheriv(A,O,F);C=Buffer.concat([w.update(Buffer.from(C.slice(17))),w.final()]).toString("utf8")}else{const F=h.createDecipher(A,n(this,c,"f"));C=Buffer.concat([F.update(Buffer.from(C)),F.final()]).toString("utf8")}}catch{}}catch{}return C.toString()}_handleChange(C,F){let O=C();const w=()=>{const b=O,R=C();(0,a.isDeepStrictEqual)(R,b)||(O=R,F.call(this,R,b))};return this.events.on("change",w),()=>this.events.removeListener("change",w)}_validate(C){if(!n(this,o,"f")||n(this,o,"f").call(this,C)||!n(this,o,"f").errors)return;const O=n(this,o,"f").errors.map(({instancePath:w,message:b=""})=>`\`${w.slice(1)}\` ${b}`);throw new Error("Config schema violation: "+O.join("; "))}_ensureDirectory(){l.mkdirSync(E.dirname(this.path),{recursive:!0})}_write(C){let F=this._serialize(C);if(n(this,c,"f")){const O=h.randomBytes(16),w=h.pbkdf2Sync(n(this,c,"f"),O.toString(),1e4,32,"sha512"),b=h.createCipheriv(A,w,O);F=Buffer.concat([O,Buffer.from(":"),b.update(Buffer.from(F)),b.final()])}if(process.env.SNAP)l.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});else try{S.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode})}catch(O){if((O==null?void 0:O.code)==="EXDEV"){l.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});return}throw O}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(z()),process.platform==="win32"?l.watch(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(C,F,O){let w=this._get(H,"0.0.0");const b=Object.keys(C).filter(p=>this._shouldPerformMigration(p,w,F));let R={...this.store};for(const p of b)try{O&&O(this,{fromVersion:w,toVersion:p,finalVersion:F,versions:b});const _=C[p];_(this),this._set(H,p),w=p,R={...this.store}}catch(_){throw this.store=R,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${_}`)}(this._isVersionInRangeFormat(w)||!P.eq(w,F))&&this._set(H,F)}_containsReservedKey(C){return typeof C=="object"&&Object.keys(C)[0]===k?!0:typeof C!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!C.startsWith(`${k}.`):!1}_isVersionInRangeFormat(C){return P.clean(C)===null}_shouldPerformMigration(C,F,O){return this._isVersionInRangeFormat(C)?F!=="0.0.0"&&P.satisfies(F,C)?!1:P.satisfies(O,C):!(P.lte(C,F)||P.gt(C,O))}_get(C,F){return v.get(this.store,C,F)}_set(C,F){const{store:O}=this;v.set(O,C,F),this.store=O}}t.default=q,e.exports=q,e.exports.default=q})(gs,gs.exports);var f$=gs.exports;const pc=Ie,{app:yi,ipcMain:Cs,ipcRenderer:yc,shell:l$}=ce,d$=f$;let vc=!1;const Ec=()=>{if(!Cs||!yi)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:yi.getPath("userData"),appVersion:yi.getVersion()};return vc||(Cs.on("electron-store-get-data",t=>{t.returnValue=e}),vc=!0),e};class h$ extends d${constructor(t){let r,n;if(yc){const i=yc.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 Cs&&yi&&({defaultCwd:r,appVersion:n}=Ec());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=pc.isAbsolute(t.cwd)?t.cwd:pc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Ec()}openInEditor(){l$.openPath(this.path)}}var m$=h$;const gc=Rc(m$);var qn={exports:{}},Ko={},p$=Ko.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=p$("original-fs");if(Object.keys(e).length>0)return e}catch{}return Yr},Of={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},Tf={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 y$=Ko.require(),Ke=Ie,$c=Of,v$=Tf,E$=typeof process=="object"&&process.platform==="win32",_c=e=>e&&typeof e=="object",Wo=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t>>>=1;return t>>>0});function Ve(e){this.sep=Ke.sep,this.fs=y$,_c(e)&&_c(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var g$=Ve;Ve.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 v$.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};Ve.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=Ke.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};Ve.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=Ke.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,E){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)})})})})}):E?s.fs.write(E,t,0,t.length,0,function(){s.fs.close(E,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};Ve.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=Ke.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Ke.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};Ve.prototype.getAttributes=function(){};Ve.prototype.setAttributes=function(){};Ve.crc32update=function(e,t){return Wo[(e^t)&255]^e>>>8};Ve.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),Wo.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=Ve.crc32update(r,e[n++]);return~r>>>0};Ve.methodToString=function(e){switch(e){case $c.STORED:return"STORED ("+e+")";case $c.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Ve.canonical=function(e){if(!e)return"";var t=Ke.posix.normalize("/"+e.split("\\").join("/"));return Ke.join(".",t)};Ve.sanitize=function(e,t){e=Ke.resolve(Ke.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Ke.normalize(Ke.join(e,r.slice(n,i).join(Ke.sep)));if(s.indexOf(e)===0)return s}return Ke.normalize(Ke.join(e,Ke.basename(t)))};Ve.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};Ve.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};Ve.isWin=E$;Ve.crcTable=Wo;const Ti=Ko.require(),Df=Ie;Ti.existsSync=Ti.existsSync||Df.existsSync;var $$=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&&Ti.existsSync(t)?(n=Ti.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=Df.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," ")}}};qn.exports=g$;qn.exports.Constants=Of;qn.exports.Errors=Tf;qn.exports.FileAttr=$$;var Bn=qn.exports,qi={},En=Bn,X=En.Constants,_$=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,E=0,h=0,d=0;e|=En.isWin?2560:768,r|=X.FLG_EFS;var y={};function v(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 v(+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 X.STORED:this.version=10;case X.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){v(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 E},set inAttr(f){E=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 X.CENHDR+u+m+a},get realDataOffset(){return d+X.LOCHDR+y.fnameLen+y.extraLen},get dataHeader(){return y},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+X.LOCHDR);if($.readUInt32LE(0)!==X.LOCSIG)throw new Error(En.Errors.INVALID_LOC);y={version:$.readUInt16LE(X.LOCVER),flags:$.readUInt16LE(X.LOCFLG),method:$.readUInt16LE(X.LOCHOW),time:$.readUInt32LE(X.LOCTIM),crc:$.readUInt32LE(X.LOCCRC),compressedSize:$.readUInt32LE(X.LOCSIZ),size:$.readUInt32LE(X.LOCLEN),fnameLen:$.readUInt16LE(X.LOCNAM),extraLen:$.readUInt16LE(X.LOCEXT)}},loadFromBinary:function(f){if(f.length!==X.CENHDR||f.readUInt32LE(0)!==X.CENSIG)throw new Error(En.Errors.INVALID_CEN);e=f.readUInt16LE(X.CENVEM),t=f.readUInt16LE(X.CENVER),r=f.readUInt16LE(X.CENFLG),n=f.readUInt16LE(X.CENHOW),i=f.readUInt32LE(X.CENTIM),s=f.readUInt32LE(X.CENCRC),o=f.readUInt32LE(X.CENSIZ),c=f.readUInt32LE(X.CENLEN),u=f.readUInt16LE(X.CENNAM),m=f.readUInt16LE(X.CENEXT),a=f.readUInt16LE(X.CENCOM),l=f.readUInt16LE(X.CENDSK),E=f.readUInt16LE(X.CENATT),h=f.readUInt32LE(X.CENATX),d=f.readUInt32LE(X.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(X.LOCHDR);return f.writeUInt32LE(X.LOCSIG,0),f.writeUInt16LE(t,X.LOCVER),f.writeUInt16LE(r,X.LOCFLG),f.writeUInt16LE(n,X.LOCHOW),f.writeUInt32LE(i,X.LOCTIM),f.writeUInt32LE(s,X.LOCCRC),f.writeUInt32LE(o,X.LOCSIZ),f.writeUInt32LE(c,X.LOCLEN),f.writeUInt16LE(u,X.LOCNAM),f.writeUInt16LE(m,X.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(X.CENHDR+u+m+a);return f.writeUInt32LE(X.CENSIG,0),f.writeUInt16LE(e,X.CENVEM),f.writeUInt16LE(t,X.CENVER),f.writeUInt16LE(r,X.CENFLG),f.writeUInt16LE(n,X.CENHOW),f.writeUInt32LE(i,X.CENTIM),f.writeUInt32LE(s,X.CENCRC),f.writeUInt32LE(o,X.CENSIZ),f.writeUInt32LE(c,X.CENLEN),f.writeUInt16LE(u,X.CENNAM),f.writeUInt16LE(m,X.CENEXT),f.writeUInt16LE(a,X.CENCOM),f.writeUInt16LE(l,X.CENDSK),f.writeUInt16LE(E,X.CENATT),f.writeUInt32LE(h,X.CENATX),f.writeUInt32LE(d,X.CENOFF),f.fill(0,X.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:En.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:E,attr:h,offset:d,entryHeaderSize:f(X.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},jr=Bn,_e=jr.Constants,S$=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 _e.ENDHDR+i},loadFromBinary:function(s){if((s.length!==_e.ENDHDR||s.readUInt32LE(0)!==_e.ENDSIG)&&(s.length<_e.ZIP64HDR||s.readUInt32LE(0)!==_e.ZIP64SIG))throw new Error(jr.Errors.INVALID_END);s.readUInt32LE(0)===_e.ENDSIG?(e=s.readUInt16LE(_e.ENDSUB),t=s.readUInt16LE(_e.ENDTOT),r=s.readUInt32LE(_e.ENDSIZ),n=s.readUInt32LE(_e.ENDOFF),i=s.readUInt16LE(_e.ENDCOM)):(e=jr.readBigUInt64LE(s,_e.ZIP64SUB),t=jr.readBigUInt64LE(s,_e.ZIP64TOT),r=jr.readBigUInt64LE(s,_e.ZIP64SIZE),n=jr.readBigUInt64LE(s,_e.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(_e.ENDHDR+i);return s.writeUInt32LE(_e.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,_e.ENDSUB),s.writeUInt16LE(t,_e.ENDTOT),s.writeUInt32LE(r,_e.ENDSIZ),s.writeUInt32LE(n,_e.ENDOFF),s.writeUInt16LE(i,_e.ENDCOM),s.fill(" ",_e.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," ")}}};qi.EntryHeader=_$;qi.MainHeader=S$;var Bi={},w$=function(e){var t=Dc,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)}}},N$=function(e){var t=Dc;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:Sc}=Tc,I$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Rf=(e,t)=>Math.imul(e,t)>>>0,wc=(e,t)=>I$[(e^t)&255]^e>>>8,An=()=>typeof Sc=="function"?Sc(Buffer.alloc(12)):An.node();An.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 vi={genSalt:An};function Ki(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])}Ki.prototype.updateKeys=function(e){const t=this.keys;return t[0]=wc(t[0],e),t[1]+=t[0]&255,t[1]=Rf(t[1],134775813)+1,t[2]=wc(t[2],t[1]>>>24),e};Ki.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Rf(e,e^1)>>8&255};function O$(e){const t=new Ki(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 T$(e){const t=new Ki(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 D$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=O$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function R$(e){Buffer.isBuffer(e)&&e.length>=12?vi.genSalt=function(){return e.slice(0,12)}:e==="node"?vi.genSalt=An.node:vi.genSalt=An}function C$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=T$(r),s=vi.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 P$={decrypt:D$,encrypt:C$,_salter:R$};Bi.Deflater=w$;Bi.Inflater=N$;Bi.ZipCrypto=P$;var Ce=Bn,A$=qi,st=Ce.Constants,hs=Bi,Cf=function(e){var t=new A$.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&&Ce.crc32(d)!==t.dataHeader.crc)}function m(d,y,v){if(typeof y>"u"&&typeof d=="string"&&(v=d,d=void 0),i)return d&&y&&y(Buffer.alloc(0),Ce.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&y&&y(f),f;if(t.encripted){if(typeof v!="string"&&!Buffer.isBuffer(v))throw new Error("ADM-ZIP: Incompatible password parameter");f=hs.ZipCrypto.decrypt(f,t,v)}var $=Buffer.alloc(t.size);switch(t.method){case Ce.Constants.STORED:if(f.copy($),u($))return d&&y&&y($),$;throw d&&y&&y($,Ce.Errors.BAD_CRC),new Error(Ce.Errors.BAD_CRC);case Ce.Constants.DEFLATED:var S=new hs.Inflater(f);if(d)S.inflateAsync(function(D){D.copy(D,0),y&&(u(D)?y(D):y(D,Ce.Errors.BAD_CRC))});else{if(S.inflate($).copy($,0),!u($))throw new Error(Ce.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&y&&y(Buffer.alloc(0),Ce.Errors.UNKNOWN_METHOD),new Error(Ce.Errors.UNKNOWN_METHOD)}}function a(d,y){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&y&&y(c()),c();if(s.length&&!i){var v;switch(t.method){case Ce.Constants.STORED:return t.compressedSize=t.size,v=Buffer.alloc(s.length),s.copy(v),d&&y&&y(v),v;default:case Ce.Constants.DEFLATED:var f=new hs.Deflater(s);if(d)f.deflateAsync(function(S){v=Buffer.alloc(S.length),t.compressedSize=S.length,S.copy(v),y&&y(v)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&y)y(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,y){return(d.readUInt32LE(y+4)<<4)+d.readUInt32LE(y)}function E(d){for(var y=0,v,f,$;y<d.length;)v=d.readUInt16LE(y),y+=2,f=d.readUInt16LE(y),y+=2,$=d.slice(y,y+f),y+=f,st.ID_ZIP64===v&&h($)}function h(d){var y,v,f,$;d.length>=st.EF_ZIP64_SCOMP&&(y=l(d,st.EF_ZIP64_SUNCOMP),t.size===st.EF_ZIP64_OR_32&&(t.size=y)),d.length>=st.EF_ZIP64_RHO&&(v=l(d,st.EF_ZIP64_SCOMP),t.compressedSize===st.EF_ZIP64_OR_32&&(t.compressedSize=v)),d.length>=st.EF_ZIP64_DSN&&(f=l(d,st.EF_ZIP64_RHO),t.offset===st.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=st.EF_ZIP64_DSN+4&&($=d.readUInt32LE(st.EF_ZIP64_DSN),t.diskNumStart===st.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=Ce.toBuffer(d);var y=r[r.length-1];i=y===47||y===92,t.fileNameLength=r.length},get extra(){return o},set extra(d){o=d,t.extraLength=d.length,E(d)},get comment(){return n.toString()},set comment(d){n=Ce.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=Ce.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=Ce.Constants.DEFLATED,t.crc=Ce.crc32(d),t.changed=!0):t.method=Ce.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,y){t.changed?d(s):m(!0,d,y)},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(),y=Ce.Constants.CENHDR;return r.copy(d,y),y+=r.length,t.extraLength&&(o.copy(d,y),y+=t.extraLength),t.commentLength&&n.copy(d,y),d},toJSON:function(){const d=function(y){return"<"+(y&&y.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 Nc=Cf,b$=qi,Ge=Bn;var L$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new b$.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 y=s.offset;for(let v=0;v<d;v++){let f=y;const $=new Nc(e);$.header=e.slice(f,f+=Ge.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),y+=$.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 y=h,v=new Nc(e);v.header=e.slice(y,y+=Ge.Constants.CENHDR),v.entryName=e.slice(y,y+=v.header.fileNameLength),v.header.extraLength&&(v.extra=e.slice(y,y+=v.header.extraLength)),v.header.commentLength&&(v.comment=e.slice(y,y+v.header.commentLength)),h+=v.header.entryHeaderSize,r[d]=v,n[v.entryName]=v}}function l(h){var d=e.length-Ge.Constants.ENDHDR,y=Math.max(0,d-65535),v=y,f=e.length,$=-1,S=0;for(d;d>=v;d--)if(e[d]===80){if(e.readUInt32LE(d)===Ge.Constants.ENDSIG){$=d,S=d,f=d+Ge.Constants.ENDHDR,v=d-Ge.Constants.END64HDR;continue}if(e.readUInt32LE(d)===Ge.Constants.END64SIG){v=y;continue}if(e.readUInt32LE(d)===Ge.Constants.ZIP64SIG){$=d,f=d+Ge.readBigUInt64LE(e,d+Ge.Constants.ZIP64SIZE)+Ge.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Ge.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(S+Ge.Constants.ENDHDR)),h&&a()}function E(){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=Ge.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 y=this;this.getEntryChildren(d).forEach(function(v){v.entryName!==h&&y.deleteEntry(v.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=[],y=h.entryName,v=y.length;return r.forEach(function(f){f.entryName.substr(0,v)===y&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),E();const h=[],d=[];let y=0,v=0;s.size=0,s.offset=0;for(const S of r){const D=S.getCompressedData();S.header.offset=v;const V=S.header.dataHeaderToBinary(),T=S.rawEntryName.length,P=Buffer.alloc(T+S.extra.length);S.rawEntryName.copy(P,0),P.copy(S.extra,T);const U=V.length+P.length+D.length;v+=U,h.push(V),h.push(P),h.push(D);const A=S.packHeader();d.push(A),s.size+=A.length,y+=U+A.length}y+=s.mainHeaderSize,s.offset=v,v=0;const f=Buffer.alloc(y);for(const S of h)S.copy(f,v),v+=S.length;for(const S of d)S.copy(f,v),v+=S.length;const $=s.toBinary();return i&&i.copy($,Ge.Constants.ENDHDR),$.copy(f,v),f},toAsyncBuffer:function(h,d,y,v){try{o||a(),E();const f=[],$=[];let S=0,D=0;s.size=0,s.offset=0;const V=function(T){if(T.length){const P=T.pop(),U=P.entryName+P.extra.toString();y&&y(U),P.getCompressedDataAsync(function(A){v&&v(U),P.header.offset=D;const z=P.header.dataHeaderToBinary(),B=Buffer.alloc(U.length,U),K=z.length+B.length+A.length;D+=K,f.push(z),f.push(B),f.push(A);const x=P.packHeader();$.push(x),s.size+=x.length,S+=K+x.length,V(T)})}else{S+=s.mainHeaderSize,s.offset=D,D=0;const P=Buffer.alloc(S);f.forEach(function(A){A.copy(P,D),D+=A.length}),$.forEach(function(A){A.copy(P,D),D+=A.length});const U=s.toBinary();i&&i.copy(U,Ge.Constants.ENDHDR),U.copy(P,D),h(P)}};V(r)}catch(f){d(f)}}}};const Ae=Bn,Dt=Ie,F$=Cf,j$=L$,cr=(e,t)=>typeof e=="boolean"?e:t,ms=(e,t)=>typeof e=="string"?e:t,M$={noSort:!1,readEntries:!1,method:Ae.Constants.NONE,fs:null};var k$=function(e,t){let r=null;const n=Object.assign(Object.create(null),M$);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=Ae.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Ae(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Ae.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Ae.Errors.INVALID_FILENAME);const s=new j$(r,n),{canonical:o,sanitize:c}=Ae;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:E,sep:h}=Dt.posix;return l(".",E(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var E=u(a);return E&&E.getData(l)||null},readFileAsync:function(a,l){var E=u(a);E?E.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var E=u(a);if(E){var h=E.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,E){var h=u(a);h?h.getDataAsync(function(d,y){if(y){l(d,y);return}d&&d.length?l(d.toString(E||"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 E=u(a);E&&(E.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var E=u(a);E&&E.setData(l)},addLocalFile:function(a,l,E,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=E||d;const y=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,y)}else throw new Error(Ae.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,E,h){if(E instanceof RegExp?E=function(d){return function(y){return d.test(y)}}(E):typeof E!="function"&&(E=function(){return!0}),l=l?m(l):"",a=Dt.normalize(a),i.fs.existsSync(a)){const d=i.findFiles(a),y=this;d.length&&d.forEach(function(v){var f=Dt.relative(a,v).split("\\").join("/");if(E(f)){var $=i.fs.statSync(v);$.isFile()?y.addFile(l+f,i.fs.readFileSync(v),"",h||$):y.addFile(l+f+"/",Buffer.alloc(0),"",h||$)}})}else throw new Error(Ae.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,E,h){h instanceof RegExp?h=function(y){return function(v){return y.test(v)}}(h):typeof h!="function"&&(h=function(){return!0}),E=E?m(E):"",a=Dt.normalize(a);var d=this;i.fs.open(a,"r",function(y){if(y&&y.code==="ENOENT")l(void 0,Ae.Errors.FILE_NOT_FOUND.replace("%s",a));else if(y)l(void 0,y);else{var v=i.findFiles(a),f=-1,$=function(){if(f+=1,f<v.length){var S=v[f],D=Dt.relative(a,S).split("\\").join("/");D=D.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(D)?i.fs.stat(S,function(V,T){V&&l(void 0,V),T.isFile()?i.fs.readFile(S,function(P,U){P?l(void 0,P):(d.addFile(E+D,U,"",T),$())}):(d.addFile(E+D+"/",Buffer.alloc(0),"",T),$())}):process.nextTick(()=>{$()})}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((E,h)=>{const{filter:d,zipPath:y}=Object.assign({},l);this.addLocalFolderAsync(a,(v,f)=>{f&&h(f),v&&E(this)},y,d)})},addFile:function(a,l,E,h){let d=u(a);const y=d!=null;y||(d=new F$,d.entryName=a),d.comment=E||"";const v=typeof h=="object"&&h instanceof i.fs.Stats;v&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;let $=d.isDirectory?16384:32768;v?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0,d.attr=f,d.setData(l),y||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,E,h,d,y){h=cr(h,!1),d=cr(d,!1),E=cr(E,!0),y=ms(y,ms(d,void 0));var v=u(a);if(!v)throw new Error(Ae.Errors.NO_ENTRY);var f=o(v.entryName),$=c(l,y&&!v.isDirectory?y:E?f:Dt.basename(f));if(v.isDirectory){var S=s.getEntryChildren(v);return S.forEach(function(T){if(T.isDirectory)return;var P=T.getData();if(!P)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);var U=o(T.entryName),A=c(l,E?U:Dt.basename(U));const z=d?T.header.fileAttr:void 0;i.writeFileTo(A,P,h,z)}),!0}var D=v.getData();if(!D)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Ae.Errors.CANT_OVERRIDE);const V=d?a.header.fileAttr:void 0;return i.writeFileTo($,D,h,V),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var E=s.entries[l].getData(a);if(!E)return!1}catch{return!1}return!0},extractAllTo:function(a,l,E,h){if(l=cr(l,!1),h=ms(E,h),E=cr(E,!1),!s)throw new Error(Ae.Errors.NO_ZIP);s.entries.forEach(function(d){var y=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(y);return}var v=d.getData(h);if(!v)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);const f=E?d.header.fileAttr:void 0;i.writeFileTo(y,v,l,f);try{i.fs.utimesSync(y,d.header.time,d.header.time)}catch{throw new Error(Ae.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,E,h){if(l=cr(l,!1),typeof E=="function"&&!h&&(h=E),E=cr(E,!1),h||(h=function(S){throw new Error(S)}),!s){h(new Error(Ae.Errors.NO_ZIP));return}a=Dt.resolve(a);const d=S=>c(a,Dt.normalize(o(S.entryName.toString()))),y=(S,D)=>new Error(S+': "'+D+'"'),v=[],f=new Set;s.entries.forEach(S=>{S.isDirectory?v.push(S):f.add(S)});for(const S of v){const D=d(S),V=E?S.header.fileAttr:void 0;try{i.makeDir(D),V&&i.fs.chmodSync(D,V),i.fs.utimesSync(D,S.header.time,S.header.time)}catch{h(y("Unable to create folder",D))}}const $=()=>{f.size===0&&h()};for(const S of f.values()){const D=Dt.normalize(o(S.entryName.toString())),V=c(a,D);S.getDataAsync(function(T,P){if(P){h(new Error(P));return}if(!T)h(new Error(Ae.Errors.CANT_EXTRACT_FILE));else{const U=E?S.header.fileAttr:void 0;i.writeFileToAsync(V,T,l,U,function(A){if(!A){h(y("Unable to write file",V));return}i.fs.utimes(V,S.header.time,S.header.time,function(z){if(z){h(y("Unable to set times",V));return}f.delete(S),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var E=s.compressToBuffer();if(E){var h=i.writeFileTo(a,E,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:E,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,y)=>{!a&&n.filename&&(a=n.filename),a||y("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(v=>{const f=$=>$?d($):y("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,v,E,h,f)},y)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,E,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,E,h),null):s.compressToBuffer()}}};const Ic=Rc(k$);var bn,xr,Gr,Ln,mr,pr,Kt,Wt,Di,Hr,Fn,Ps,jn,yt,qr,Ei,Mn,kt;const pt=class{constructor(t,r){Fe(this,Fn);Fe(this,qr);Fe(this,bn,ce.screen.getPrimaryDisplay().size);Fe(this,xr,oe(this,bn).width);Fe(this,Gr,oe(this,bn).height);Fe(this,Ln,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});Fe(this,mr,0);Fe(this,pr,0);Fe(this,Kt,0);Fe(this,Wt,0);Fe(this,Di,process.platform==="win32");Fe(this,Hr,void 0);Fe(this,jn,!1);Fe(this,yt,!1);this.bw=t,oe(this,Ln).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Ln)),ce.ipcMain.handle("existsSync",(i,s)=>ft.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>ft.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>ft.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>ft.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>ft.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>ft.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>ft.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>ft.appendFile(s,o).catch(u=>c(u))),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=>{ft.ensureFileSync(s),ft.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 gc(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 Ic;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{ft.removeSync(o),ft.ensureDirSync(o),new Ic(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,Di)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{ze(this,yt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,mr),oe(this,pr)),t.setContentSize(oe(this,Kt),oe(this,Wt)+oe(pt,kt))),ze(this,yt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,xr),oe(this,Gr)-oe(pt,kt))}),t.on("leave-full-screen",()=>{Rr(this,qr,Ei).call(this,!1,oe(this,mr),oe(this,pr),oe(this,Kt),oe(this,Wt)+oe(pt,kt))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,Kt),oe(this,Wt)+oe(pt,kt))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Rr(this,qr,Ei).call(this,s,o,c,u,m)),t.on("move",()=>Rr(this,Fn,Ps).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{gc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];ze(pt,kt,o-c),ze(pt,Mn,new pt(s,r)),i=()=>oe(pt,Mn).openDevTools(),s.loadFile(t),s.once("ready-to-show",()=>s.show())}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let kr=pt;bn=new WeakMap,xr=new WeakMap,Gr=new WeakMap,Ln=new WeakMap,mr=new WeakMap,pr=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,Di=new WeakMap,Hr=new WeakMap,Fn=new WeakSet,Ps=function(){if(oe(this,Hr)||oe(this,yt))return;ze(this,yt,!0);const{x:t,y:r}=this.bw.getBounds();ze(this,Hr,setTimeout(()=>{if(ze(this,Hr,void 0),oe(this,jn)){ze(this,jn,!1);return}ze(this,yt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Rr(this,Fn,Ps).call(this);return}Rr(this,qr,Ei).call(this,!1,n.x,n.y,oe(this,Kt),oe(this,Wt))},1e3/60*10))},jn=new WeakMap,yt=new WeakMap,qr=new WeakSet,Ei=function(t,r,n,i,s){oe(this,yt)||(ze(this,yt,!0),!this.bw.simpleFullScreen&&(t?(r=(oe(this,xr)-i)*.5,n=(oe(this,Gr)-s)*.5):((r<0||r>oe(this,xr))&&(r=0),(n<0||n>oe(this,Gr))&&(n=0)),(oe(this,mr)!==r||oe(this,pr)!==n)&&(ze(this,mr,r),ze(this,pr,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),ze(this,Kt,i),ze(this,Wt,s),this.bw.setContentSize(i,s+oe(pt,kt)),ze(this,yt,!1)))},Mn=new WeakMap,kt=new WeakMap,Fe(kr,Mn,void 0),Fe(kr,kt,0);module.exports=kr;exports.appMain=kr;
|
|
16
16
|
//# sourceMappingURL=appMain.js.map
|