@famibee/skynovel 1.30.1 → 1.30.4
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 +3396 -1534
- package/dist/app.js.map +1 -1
- package/dist/appMain.js +9 -9
- package/dist/appMain.js.map +1 -1
- package/dist/sn/LayerMng.d.ts.map +1 -1
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/sn/TxtStage.d.ts.map +1 -1
- package/dist/web.js +3396 -1534
- package/dist/web.js.map +1 -1
- package/package.json +15 -15
package/dist/appMain.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
GFS4: `),console.error(e)});if(!Ne[Ve]){var Bl=ir[Ve]||[];tu(Ne,Bl),Ne.close=function(e){function t(r,n){return e.call(Ne,r,function(i){i||Ta(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Ci,{value:e}),t}(Ne.close),Ne.closeSync=function(e){function t(r){e.apply(Ne,arguments),Ta()}return Object.defineProperty(t,Ci,{value:e}),t}(Ne.closeSync),/\bgfs4\b/i.test({}.NODE_DEBUG||"")&&process.on("exit",function(){Or(Ne[Ve]),Ks.default.equal(Ne[Ve].length,0)})}ir[Ve]||tu(ir,Ne[Ve]);var ut=Ws(ql(Ne));({}).TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(ut=Ws(Ne),Ne.__patched=!0);function Ws(e){xl(e),e.gracefulify=Ws,e.createReadStream=k,e.createWriteStream=O;var t=e.readFile;e.readFile=r;function r(P,U,x){return typeof U=="function"&&(x=U,U=null),V(P,U,x);function V(Y,Z,ee,ue){return t(Y,Z,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?zr([V,[Y,Z,ee],X,ue||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ue,X,j){return n(Z,ee,ue,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?zr([Y,[Z,ee,ue,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ue,X,j){return s(Z,ee,ue,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?zr([Y,[Z,ee,ue,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(P,U,x,V){return typeof x=="function"&&(V=x,x=0),Y(P,U,x,V);function Y(Z,ee,ue,X,j){return c(Z,ee,ue,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?zr([Y,[Z,ee,ue,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var m=e.readdir;e.readdir=l;var a=/^v[0-5]\./;function l(P,U,x){typeof U=="function"&&(x=U,U=null);var V=a.test(process.version)?function(ee,ue,X,j){return m(ee,Y(ee,ue,X,j))}:function(ee,ue,X,j){return m(ee,ue,Y(ee,ue,X,j))};return V(P,U,x);function Y(Z,ee,ue,X){return function(j,z){j&&(j.code==="EMFILE"||j.code==="ENFILE")?zr([V,[Z,ee,ue],j,X||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof ue=="function"&&ue.call(this,j,z))}}}if(process.version.substr(0,4)==="v0.8"){var v=Vl(e);f=v.ReadStream,_=v.WriteStream}var h=e.ReadStream;h&&(f.prototype=Object.create(h.prototype),f.prototype.open=$);var d=e.WriteStream;d&&(_.prototype=Object.create(d.prototype),_.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(P){f=P},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(P){_=P},enumerable:!0,configurable:!0});var p=f;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(P){p=P},enumerable:!0,configurable:!0});var E=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(P){E=P},enumerable:!0,configurable:!0});function f(P,U){return this instanceof f?(h.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function $(){var P=this;M(P.path,P.flags,P.mode,function(U,x){U?(P.autoClose&&P.destroy(),P.emit("error",U)):(P.fd=x,P.emit("open",x),P.read())})}function _(P,U){return this instanceof _?(d.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function T(){var P=this;M(P.path,P.flags,P.mode,function(U,x){U?(P.destroy(),P.emit("error",U)):(P.fd=x,P.emit("open",x))})}function k(P,U){return new e.ReadStream(P,U)}function O(P,U){return new e.WriteStream(P,U)}var D=e.open;e.open=M;function M(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ue,X,j){return D(Z,ee,ue,function(z,R){z&&(z.code==="EMFILE"||z.code==="ENFILE")?zr([Y,[Z,ee,ue,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return e}function zr(e){Or("ENQUEUE",e[0].name,e[1]),Ne[Ve].push(e),Xs()}var oi;function Ta(){for(var e=Date.now(),t=0;t<Ne[Ve].length;++t)Ne[Ve][t].length>2&&(Ne[Ve][t][3]=e,Ne[Ve][t][4]=e);Xs()}function Xs(){if(clearTimeout(oi),oi=void 0,Ne[Ve].length!==0){var e=Ne[Ve].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Or("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Or("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-s,u=Math.max(s-i,1),m=Math.min(u*1.2,100);c>=m?(Or("RETRY",t.name,r),t.apply(null,r.concat([i]))):Ne[Ve].push(e)}oi===void 0&&(oi=setTimeout(Xs,0))}}(function(e){const t=tt.fromCallback,r=ut,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.assign(e,r),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(o=>r.exists(i,o))},e.read=function(i,s,o,c,u,m){return typeof m=="function"?r.read(i,s,o,c,u,m):new Promise((a,l)=>{r.read(i,s,o,c,u,(v,h,d)=>{if(v)return l(v);a({bytesRead:h,buffer:d})})})},e.write=function(i,s,...o){return typeof o[o.length-1]=="function"?r.write(i,s,...o):new Promise((c,u)=>{r.write(i,s,...o,(m,a,l)=>{if(m)return u(m);c({bytesWritten:a,buffer:l})})})},typeof r.writev=="function"&&(e.writev=function(i,s,...o){return typeof o[o.length-1]=="function"?r.writev(i,s,...o):new Promise((c,u)=>{r.writev(i,s,...o,(m,a,l)=>{if(m)return u(m);c({bytesWritten:a,buffers:l})})})}),typeof r.realpath.native=="function"?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")})(Cr);var Zs={},ru={};const Hl=Te.default;ru.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Hl.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const nu=Cr,{checkPath:iu}=ru,su=e=>{const t={mode:511};return typeof e=="number"?e:te(te({},t),e).mode};Zs.makeDir=async(e,t)=>(iu(e),nu.mkdir(e,{mode:su(t),recursive:!0}));Zs.makeDirSync=(e,t)=>(iu(e),nu.mkdirSync(e,{mode:su(t),recursive:!0}));const Kl=tt.fromPromise,{makeDir:Wl,makeDirSync:ms}=Zs,ps=Kl(Wl);var xt={mkdirs:ps,mkdirsSync:ms,mkdirp:ps,mkdirpSync:ms,ensureDir:ps,ensureDirSync:ms};const Xl=tt.fromPromise,ou=Cr;function Zl(e){return ou.access(e).then(()=>!0).catch(()=>!1)}var Pr={pathExists:Xl(Zl),pathExistsSync:ou.existsSync};const Xr=ut;function Jl(e,t,r,n){Xr.open(e,"r+",(i,s)=>{if(i)return n(i);Xr.futimes(s,t,r,o=>{Xr.close(s,c=>{n&&n(o||c)})})})}function Yl(e,t,r){const n=Xr.openSync(e,"r+");return Xr.futimesSync(n,t,r),Xr.closeSync(n)}var au={utimesMillis:Jl,utimesMillisSync:Yl};const rn=Cr,Me=Te.default,Ql=Gi.default;function ed(e,t,r){const n=r.dereference?i=>rn.stat(i,{bigint:!0}):i=>rn.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function td(e,t,r){let n;const i=r.dereference?o=>rn.statSync(o,{bigint:!0}):o=>rn.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function rd(e,t,r,n,i){Ql.callbackify(ed)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:c,destStat:u}=o;if(u){if(Jn(c,u)){const m=Me.basename(e),a=Me.basename(t);return r==="move"&&m!==a&&m.toLowerCase()===a.toLowerCase()?i(null,{srcStat:c,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&Js(e,t)?i(new Error(Bi(e,t,r))):i(null,{srcStat:c,destStat:u})})}function nd(e,t,r,n){const{srcStat:i,destStat:s}=td(e,t,n);if(s){if(Jn(i,s)){const o=Me.basename(e),c=Me.basename(t);if(r==="move"&&o!==c&&o.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Js(e,t))throw new Error(Bi(e,t,r));return{srcStat:i,destStat:s}}function cu(e,t,r,n,i){const s=Me.resolve(Me.dirname(e)),o=Me.resolve(Me.dirname(r));if(o===s||o===Me.parse(o).root)return i();rn.stat(o,{bigint:!0},(c,u)=>c?c.code==="ENOENT"?i():i(c):Jn(t,u)?i(new Error(Bi(e,r,n))):cu(e,t,o,n,i))}function uu(e,t,r,n){const i=Me.resolve(Me.dirname(e)),s=Me.resolve(Me.dirname(r));if(s===i||s===Me.parse(s).root)return;let o;try{o=rn.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Jn(t,o))throw new Error(Bi(e,r,n));return uu(e,t,s,n)}function Jn(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Js(e,t){const r=Me.resolve(e).split(Me.sep).filter(i=>i),n=Me.resolve(t).split(Me.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Bi(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var fn={checkPaths:rd,checkPathsSync:nd,checkParentPaths:cu,checkParentPathsSync:uu,isSrcSubdir:Js,areIdentical:Jn};const ct=ut,Un=Te.default,id=xt.mkdirs,sd=Pr.pathExists,od=au.utimesMillis,zn=fn;function ad(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
1
|
+
"use strict";var ls=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var se=(e,t,r)=>(ls(e,t,"read from private field"),r?r.call(e):t.get(e)),Me=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},qe=(e,t,r,n)=>(ls(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Mr=(e,t,r)=>(ls(e,t,"access private method"),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ae=require("electron"),cl=require("fs"),ul=require("constants"),fl=require("stream"),ll=require("util"),dl=require("assert"),hl=require("path"),ml=require("crypto"),pl=require("events"),yl=require("os"),El=require("zlib");function Ot(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var vl=Ot(ae),an=Ot(cl),gl=Ot(ul),$l=Ot(fl),Vi=Ot(ll),Bs=Ot(dl),Oe=Ot(hl),Xc=Ot(ml),_l=Ot(pl),Sl=Ot(yl),Zc=Ot(El),rr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Dr={},et={};et.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};et.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})};var Xt=gl.default,wl=process.cwd,Ei=null,Nl={}.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ei||(Ei=wl.call(process)),Ei};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var _a=process.chdir;process.chdir=function(e){Ei=null,_a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_a)}var Il=Ol;function Ol(e){Xt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,l,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,l,v,h){h&&process.nextTick(h)},e.lchownSync=function(){}),Nl==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function l(v,h,d){var y=Date.now(),E=0;a(v,h,function f($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(h,function(_,T){_&&_.code==="ENOENT"?a(v,h,f):d($)})},E),E<100&&(E+=10);return}d&&d($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.rename)),e.read=typeof e.read!="function"?e.read:function(a){function l(v,h,d,y,E,f){var $;if(f&&typeof f=="function"){var _=0;$=function(T,k,O){if(T&&T.code==="EAGAIN"&&_<10)return _++,a.call(e,v,h,d,y,E,$);f.apply(this,arguments)}}return a.call(e,v,h,d,y,E,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(a){return function(l,v,h,d,y){for(var E=0;;)try{return a.call(e,l,v,h,d,y)}catch(f){if(f.code==="EAGAIN"&&E<10){E++;continue}throw f}}}(e.readSync);function t(a){a.lchmod=function(l,v,h){a.open(l,Xt.O_WRONLY|Xt.O_SYMLINK,v,function(d,y){if(d){h&&h(d);return}a.fchmod(y,v,function(E){a.close(y,function(f){h&&h(E||f)})})})},a.lchmodSync=function(l,v){var h=a.openSync(l,Xt.O_WRONLY|Xt.O_SYMLINK,v),d=!0,y;try{y=a.fchmodSync(h,v),d=!1}finally{if(d)try{a.closeSync(h)}catch{}else a.closeSync(h)}return y}}function r(a){Xt.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(l,v,h,d){a.open(l,Xt.O_SYMLINK,function(y,E){if(y){d&&d(y);return}a.futimes(E,v,h,function(f){a.close(E,function($){d&&d(f||$)})})})},a.lutimesSync=function(l,v,h){var d=a.openSync(l,Xt.O_SYMLINK),y,E=!0;try{y=a.futimesSync(d,v,h),E=!1}finally{if(E)try{a.closeSync(d)}catch{}else a.closeSync(d)}return y}):a.futimes&&(a.lutimes=function(l,v,h,d){d&&process.nextTick(d)},a.lutimesSync=function(){})}function n(a){return a&&function(l,v,h){return a.call(e,l,v,function(d){m(d)&&(d=null),h&&h.apply(this,arguments)})}}function i(a){return a&&function(l,v){try{return a.call(e,l,v)}catch(h){if(!m(h))throw h}}}function s(a){return a&&function(l,v,h,d){return a.call(e,l,v,h,function(y){m(y)&&(y=null),d&&d.apply(this,arguments)})}}function o(a){return a&&function(l,v,h){try{return a.call(e,l,v,h)}catch(d){if(!m(d))throw d}}}function c(a){return a&&function(l,v,h){typeof v=="function"&&(h=v,v=null);function d(y,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),h&&h.apply(this,arguments)}return v?a.call(e,l,v,d):a.call(e,l,d)}}function u(a){return a&&function(l,v){var h=v?a.call(e,l,v):a.call(e,l);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function m(a){if(!a||a.code==="ENOSYS")return!0;var l=!process.getuid||process.getuid()!==0;return!!(l&&(a.code==="EINVAL"||a.code==="EPERM"))}}var Sa=$l.default.Stream,Tl=Dl;function Dl(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Sa.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,u=o.length;c<u;c++){var m=o[c];this[m]=i[m]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(a,l){if(a){s.emit("error",a),s.readable=!1;return}s.fd=l,s.emit("open",l),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Sa.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}var Rl=Pl,Cl=Object.getPrototypeOf||function(e){return e.__proto__};function Pl(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Cl(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var we=an.default,Al=Il,bl=Tl,Ll=Rl,ni=Vi.default,xe,Di;typeof Symbol=="function"&&typeof Symbol.for=="function"?(xe=Symbol.for("graceful-fs.queue"),Di=Symbol.for("graceful-fs.previous")):(xe="___graceful-fs.queue",Di="___graceful-fs.previous");function Fl(){}function Jc(e,t){Object.defineProperty(e,xe,{get:function(){return t}})}var Nr=Fl;ni.debuglog?Nr=ni.debuglog("gfs4"):/\bgfs4\b/i.test({}.NODE_DEBUG||"")&&(Nr=function(){var e=ni.format.apply(ni,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
2
|
+
GFS4: `),console.error(e)});if(!we[xe]){var jl=rr[xe]||[];Jc(we,jl),we.close=function(e){function t(r,n){return e.call(we,r,function(i){i||wa(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Di,{value:e}),t}(we.close),we.closeSync=function(e){function t(r){e.apply(we,arguments),wa()}return Object.defineProperty(t,Di,{value:e}),t}(we.closeSync),/\bgfs4\b/i.test({}.NODE_DEBUG||"")&&process.on("exit",function(){Nr(we[xe]),Bs.default.equal(we[xe].length,0)})}rr[xe]||Jc(rr,we[xe]);var ct=Hs(Ll(we));({}).TEST_GRACEFUL_FS_GLOBAL_PATCH&&!we.__patched&&(ct=Hs(we),we.__patched=!0);function Hs(e){Al(e),e.gracefulify=Hs,e.createReadStream=k,e.createWriteStream=O;var t=e.readFile;e.readFile=r;function r(P,U,x){return typeof U=="function"&&(x=U,U=null),V(P,U,x);function V(Y,Z,ee,ce){return t(Y,Z,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?kr([V,[Y,Z,ee],X,ce||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ce,X,j){return n(Z,ee,ce,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?kr([Y,[Z,ee,ce,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ce,X,j){return s(Z,ee,ce,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?kr([Y,[Z,ee,ce,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(P,U,x,V){return typeof x=="function"&&(V=x,x=0),Y(P,U,x,V);function Y(Z,ee,ce,X,j){return c(Z,ee,ce,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?kr([Y,[Z,ee,ce,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var m=e.readdir;e.readdir=l;var a=/^v[0-5]\./;function l(P,U,x){typeof U=="function"&&(x=U,U=null);var V=a.test(process.version)?function(ee,ce,X,j){return m(ee,Y(ee,ce,X,j))}:function(ee,ce,X,j){return m(ee,ce,Y(ee,ce,X,j))};return V(P,U,x);function Y(Z,ee,ce,X){return function(j,z){j&&(j.code==="EMFILE"||j.code==="ENFILE")?kr([V,[Z,ee,ce],j,X||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof ce=="function"&&ce.call(this,j,z))}}}if(process.version.substr(0,4)==="v0.8"){var v=bl(e);f=v.ReadStream,_=v.WriteStream}var h=e.ReadStream;h&&(f.prototype=Object.create(h.prototype),f.prototype.open=$);var d=e.WriteStream;d&&(_.prototype=Object.create(d.prototype),_.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(P){f=P},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(P){_=P},enumerable:!0,configurable:!0});var y=f;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(P){y=P},enumerable:!0,configurable:!0});var E=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(P){E=P},enumerable:!0,configurable:!0});function f(P,U){return this instanceof f?(h.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function $(){var P=this;M(P.path,P.flags,P.mode,function(U,x){U?(P.autoClose&&P.destroy(),P.emit("error",U)):(P.fd=x,P.emit("open",x),P.read())})}function _(P,U){return this instanceof _?(d.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function T(){var P=this;M(P.path,P.flags,P.mode,function(U,x){U?(P.destroy(),P.emit("error",U)):(P.fd=x,P.emit("open",x))})}function k(P,U){return new e.ReadStream(P,U)}function O(P,U){return new e.WriteStream(P,U)}var D=e.open;e.open=M;function M(P,U,x,V){return typeof x=="function"&&(V=x,x=null),Y(P,U,x,V);function Y(Z,ee,ce,X,j){return D(Z,ee,ce,function(z,R){z&&(z.code==="EMFILE"||z.code==="ENFILE")?kr([Y,[Z,ee,ce,X],z,j||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return e}function kr(e){Nr("ENQUEUE",e[0].name,e[1]),we[xe].push(e),Ks()}var ii;function wa(){for(var e=Date.now(),t=0;t<we[xe].length;++t)we[xe][t].length>2&&(we[xe][t][3]=e,we[xe][t][4]=e);Ks()}function Ks(){if(clearTimeout(ii),ii=void 0,we[xe].length!==0){var e=we[xe].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Nr("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Nr("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-s,u=Math.max(s-i,1),m=Math.min(u*1.2,100);c>=m?(Nr("RETRY",t.name,r),t.apply(null,r.concat([i]))):we[xe].push(e)}ii===void 0&&(ii=setTimeout(Ks,0))}}(function(e){const t=et.fromCallback,r=ct,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.assign(e,r),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(o=>r.exists(i,o))},e.read=function(i,s,o,c,u,m){return typeof m=="function"?r.read(i,s,o,c,u,m):new Promise((a,l)=>{r.read(i,s,o,c,u,(v,h,d)=>{if(v)return l(v);a({bytesRead:h,buffer:d})})})},e.write=function(i,s,...o){return typeof o[o.length-1]=="function"?r.write(i,s,...o):new Promise((c,u)=>{r.write(i,s,...o,(m,a,l)=>{if(m)return u(m);c({bytesWritten:a,buffer:l})})})},typeof r.writev=="function"&&(e.writev=function(i,s,...o){return typeof o[o.length-1]=="function"?r.writev(i,s,...o):new Promise((c,u)=>{r.writev(i,s,...o,(m,a,l)=>{if(m)return u(m);c({bytesWritten:a,buffers:l})})})}),typeof r.realpath.native=="function"?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")})(Dr);var Ws={},Yc={};const Ml=Oe.default;Yc.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ml.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const Qc=Dr,{checkPath:eu}=Yc,tu=e=>{const t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Ws.makeDir=async(e,t)=>(eu(e),Qc.mkdir(e,{mode:tu(t),recursive:!0}));Ws.makeDirSync=(e,t)=>(eu(e),Qc.mkdirSync(e,{mode:tu(t),recursive:!0}));const kl=et.fromPromise,{makeDir:Ul,makeDirSync:ds}=Ws,hs=kl(Ul);var Ut={mkdirs:hs,mkdirsSync:ds,mkdirp:hs,mkdirpSync:ds,ensureDir:hs,ensureDirSync:ds};const zl=et.fromPromise,ru=Dr;function xl(e){return ru.access(e).then(()=>!0).catch(()=>!1)}var Rr={pathExists:zl(xl),pathExistsSync:ru.existsSync};const Kr=ct;function Vl(e,t,r,n){Kr.open(e,"r+",(i,s)=>{if(i)return n(i);Kr.futimes(s,t,r,o=>{Kr.close(s,c=>{n&&n(o||c)})})})}function ql(e,t,r){const n=Kr.openSync(e,"r+");return Kr.futimesSync(n,t,r),Kr.closeSync(n)}var nu={utimesMillis:Vl,utimesMillisSync:ql};const en=Dr,je=Oe.default,Gl=Vi.default;function Bl(e,t,r){const n=r.dereference?i=>en.stat(i,{bigint:!0}):i=>en.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function Hl(e,t,r){let n;const i=r.dereference?o=>en.statSync(o,{bigint:!0}):o=>en.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function Kl(e,t,r,n,i){Gl.callbackify(Bl)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:c,destStat:u}=o;if(u){if(Xn(c,u)){const m=je.basename(e),a=je.basename(t);return r==="move"&&m!==a&&m.toLowerCase()===a.toLowerCase()?i(null,{srcStat:c,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&Xs(e,t)?i(new Error(qi(e,t,r))):i(null,{srcStat:c,destStat:u})})}function Wl(e,t,r,n){const{srcStat:i,destStat:s}=Hl(e,t,n);if(s){if(Xn(i,s)){const o=je.basename(e),c=je.basename(t);if(r==="move"&&o!==c&&o.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Xs(e,t))throw new Error(qi(e,t,r));return{srcStat:i,destStat:s}}function iu(e,t,r,n,i){const s=je.resolve(je.dirname(e)),o=je.resolve(je.dirname(r));if(o===s||o===je.parse(o).root)return i();en.stat(o,{bigint:!0},(c,u)=>c?c.code==="ENOENT"?i():i(c):Xn(t,u)?i(new Error(qi(e,r,n))):iu(e,t,o,n,i))}function su(e,t,r,n){const i=je.resolve(je.dirname(e)),s=je.resolve(je.dirname(r));if(s===i||s===je.parse(s).root)return;let o;try{o=en.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Xn(t,o))throw new Error(qi(e,r,n));return su(e,t,s,n)}function Xn(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Xs(e,t){const r=je.resolve(e).split(je.sep).filter(i=>i),n=je.resolve(t).split(je.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function qi(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var cn={checkPaths:Kl,checkPathsSync:Wl,checkParentPaths:iu,checkParentPathsSync:su,isSrcSubdir:Xs,areIdentical:Xn};const at=ct,Mn=Oe.default,Xl=Ut.mkdirs,Zl=Rr.pathExists,Jl=nu.utimesMillis,kn=cn;function Yl(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
3
3
|
|
|
4
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),
|
|
4
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),kn.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:c}=s;kn.checkParentPaths(e,o,t,"copy",u=>u?n(u):r.filter?ou(Na,c,e,t,r,n):Na(c,e,t,r,n))})}function Na(e,t,r,n,i){const s=Mn.dirname(r);Zl(s,(o,c)=>{if(o)return i(o);if(c)return Ri(e,t,r,n,i);Xl(s,u=>u?i(u):Ri(e,t,r,n,i))})}function ou(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function Ql(e,t,r,n,i){return n.filter?ou(Ri,e,t,r,n,i):Ri(e,t,r,n,i)}function Ri(e,t,r,n,i){(n.dereference?at.stat:at.lstat)(t,(o,c)=>o?i(o):c.isDirectory()?od(c,e,t,r,n,i):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?ed(c,e,t,r,n,i):c.isSymbolicLink()?ud(e,t,r,n,i):c.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):c.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function ed(e,t,r,n,i,s){return t?td(e,r,n,i,s):au(e,r,n,i,s)}function td(e,t,r,n,i){if(n.overwrite)at.unlink(r,s=>s?i(s):au(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function au(e,t,r,n,i){at.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?rd(e.mode,t,r,i):Gi(r,e.mode,i))}function rd(e,t,r,n){return nd(e)?id(r,e,i=>i?n(i):Ia(e,t,r,n)):Ia(e,t,r,n)}function nd(e){return(e&128)===0}function id(e,t,r){return Gi(e,t|128,r)}function Ia(e,t,r,n){sd(t,r,i=>i?n(i):Gi(r,e,n))}function Gi(e,t,r){return at.chmod(e,t,r)}function sd(e,t,r){at.stat(e,(n,i)=>n?r(n):Jl(t,i.atime,i.mtime,r))}function od(e,t,r,n,i,s){return t?cu(r,n,i,s):ad(e.mode,r,n,i,s)}function ad(e,t,r,n,i){at.mkdir(r,s=>{if(s)return i(s);cu(t,r,n,o=>o?i(o):Gi(r,e,i))})}function cu(e,t,r,n){at.readdir(e,(i,s)=>i?n(i):uu(s,e,t,r,n))}function uu(e,t,r,n,i){const s=e.pop();return s?cd(e,s,t,r,n,i):i()}function cd(e,t,r,n,i,s){const o=Mn.join(r,t),c=Mn.join(n,t);kn.checkPaths(o,c,"copy",i,(u,m)=>{if(u)return s(u);const{destStat:a}=m;Ql(a,o,c,i,l=>l?s(l):uu(e,r,n,i,s))})}function ud(e,t,r,n,i){at.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Mn.resolve(process.cwd(),o)),e)at.readlink(r,(c,u)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?at.symlink(o,r,i):i(c):(n.dereference&&(u=Mn.resolve(process.cwd(),u)),kn.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&kn.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):fd(o,r,i)));else return at.symlink(o,r,i)})}function fd(e,t,r){at.unlink(t,n=>n?r(n):at.symlink(e,t,r))}var ld=Yl;const He=ct,Un=Oe.default,dd=Ut.mkdirsSync,hd=nu.utimesMillisSync,zn=cn;function md(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
5
5
|
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=
|
|
7
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function Sh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var to={stringify:_h,stripBom:Sh};let nn;try{nn=require("graceful-fs")}catch{nn=un.default}const Wi=tt,{stringify:ju,stripBom:Mu}=to;async function wh(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||nn,n="throws"in t?t.throws:!0;let i=await Wi.fromCallback(r.readFile)(e,t);i=Mu(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}const Nh=Wi.fromPromise(wh);function Ih(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||nn,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Mu(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Oh(e,t,r={}){const n=r.fs||nn,i=ju(t,r);await Wi.fromCallback(n.writeFile)(e,i,r)}const Th=Wi.fromPromise(Oh);function Dh(e,t,r={}){const n=r.fs||nn,i=ju(t,r);return n.writeFileSync(e,i,r)}const Rh={readFile:Nh,readFileSync:Ih,writeFile:Th,writeFileSync:Dh};var Ch=Rh;const ai=Ch;var Ph={readJson:ai.readFile,readJsonSync:ai.readFileSync,writeJson:ai.writeFile,writeJsonSync:ai.writeFileSync};const Ah=tt.fromCallback,Pn=ut,ku=Te.default,Uu=xt,bh=Pr.pathExists;function Lh(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=ku.dirname(e);bh(i,(s,o)=>{if(s)return n(s);if(o)return Pn.writeFile(e,t,r,n);Uu.mkdirs(i,c=>{if(c)return n(c);Pn.writeFile(e,t,r,n)})})}function Fh(e,...t){const r=ku.dirname(e);if(Pn.existsSync(r))return Pn.writeFileSync(e,...t);Uu.mkdirsSync(r),Pn.writeFileSync(e,...t)}var ro={outputFile:Ah(Lh),outputFileSync:Fh};const{stringify:jh}=to,{outputFile:Mh}=ro;async function kh(e,t,r={}){const n=jh(t,r);await Mh(e,n,r)}var Uh=kh;const{stringify:zh}=to,{outputFileSync:xh}=ro;function Vh(e,t,r){const n=zh(t,r);xh(e,n,r)}var qh=Vh;const Gh=tt.fromPromise,et=Ph;et.outputJson=Gh(Uh);et.outputJsonSync=qh;et.outputJSON=et.outputJson;et.outputJSONSync=et.outputJsonSync;et.writeJSON=et.writeJson;et.writeJSONSync=et.writeJsonSync;et.readJSON=et.readJson;et.readJSONSync=et.readJsonSync;var Bh=et;const Hh=ut,As=Te.default,Kh=Qs.copy,zu=Ki.remove,Wh=xt.mkdirp,Xh=Pr.pathExists,qa=fn;function Zh(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;qa.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;qa.checkParentPaths(e,c,t,"move",m=>{if(m)return n(m);if(Jh(t))return Ga(e,t,i,u,n);Wh(As.dirname(t),a=>a?n(a):Ga(e,t,i,u,n))})})}function Jh(e){const t=As.dirname(e);return As.parse(t).root===t}function Ga(e,t,r,n,i){if(n)return ys(e,t,r,i);if(r)return zu(t,s=>s?i(s):ys(e,t,r,i));Xh(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):ys(e,t,r,i))}function ys(e,t,r,n){Hh.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Yh(e,t,r,n):n())}function Yh(e,t,r,n){Kh(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):zu(e,n))}var Qh=Zh;const xu=ut,bs=Te.default,em=Qs.copySync,Vu=Ki.removeSync,tm=xt.mkdirpSync,Ba=fn;function rm(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=Ba.checkPathsSync(e,t,"move",r);return Ba.checkParentPathsSync(e,i,t,"move"),nm(t)||tm(bs.dirname(t)),im(e,t,n,s)}function nm(e){const t=bs.dirname(e);return bs.parse(t).root===t}function im(e,t,r,n){if(n)return Es(e,t,r);if(r)return Vu(t),Es(e,t,r);if(xu.existsSync(t))throw new Error("dest already exists.");return Es(e,t,r)}function Es(e,t,r){try{xu.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return sm(e,t,r)}}function sm(e,t,r){return em(e,t,{overwrite:r,errorOnExist:!0}),Vu(e)}var om=rm;const am=tt.fromCallback;var cm={move:am(Qh),moveSync:om},vt=te(te(te(te(te(te(te(te(te(te({},Cr),Qs),Hd),$h),Bh),xt),cm),ro),Pr),Ki),Ls={exports:{}},um=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const yr=um,fm=new Set(["__proto__","prototype","constructor"]),lm=e=>!e.some(t=>fm.has(t));function ci(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let i=t[n];for(;i[i.length-1]==="\\"&&t[n+1]!==void 0;)i=i.slice(0,-1)+".",i+=t[++n];r.push(i)}return lm(r)?r:[]}var dm={get(e,t,r){if(!yr(e)||typeof t!="string")return r===void 0?e:r;const n=ci(t);if(n.length!==0){for(let i=0;i<n.length;i++)if(e=e[n[i]],e==null){if(i!==n.length-1)return r;break}return e===void 0?r:e}},set(e,t,r){if(!yr(e)||typeof t!="string")return e;const n=e,i=ci(t);for(let s=0;s<i.length;s++){const o=i[s];yr(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!yr(e)||typeof t!="string")return!1;const r=ci(t);for(let n=0;n<r.length;n++){const i=r[n];if(n===r.length-1)return delete e[i],!0;if(e=e[i],!yr(e))return!1}},has(e,t){if(!yr(e)||typeof t!="string")return!1;const r=ci(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(yr(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},no={exports:{}},io={exports:{}},so={exports:{}},oo={exports:{}};const qu=un.default;oo.exports=e=>new Promise(t=>{qu.access(e,r=>{t(!r)})});oo.exports.sync=e=>{try{return qu.accessSync(e),!0}catch{return!1}};var ao={exports:{}},co={exports:{}};const Gu=(e,...t)=>new Promise(r=>{r(e(...t))});co.exports=Gu;co.exports.default=Gu;const hm=co.exports,Bu=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},i=(c,u,...m)=>{r++;const a=hm(c,...m);u(a),a.then(n,n)},s=(c,u,...m)=>{r<e?i(c,u,...m):t.push(i.bind(null,c,u,...m))},o=(c,...u)=>new Promise(m=>s(c,m,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};ao.exports=Bu;ao.exports.default=Bu;const Ha=ao.exports;class Hu extends Error{constructor(t){super(),this.value=t}}const mm=(e,t)=>Promise.resolve(e).then(t),pm=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new Hu(t[0])));var ym=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=Ha(r.concurrency),i=[...e].map(o=>[o,n(mm,o,t)]),s=Ha(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(pm,o))).then(()=>{}).catch(o=>o instanceof Hu?o.value:Promise.reject(o))};const Ku=Te.default,Wu=oo.exports,Em=ym;so.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),Em(e,r=>Wu(Ku.resolve(t.cwd,r)),t));so.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(Wu.sync(Ku.resolve(t.cwd,r)))return r};const ar=Te.default,Xu=so.exports;io.exports=(e,t={})=>{const r=ar.resolve(t.cwd||""),{root:n}=ar.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){Xu(i,{cwd:c}).then(u=>{u?s(ar.join(c,u)):c===n?s(null):o(ar.dirname(c))})})(r)})};io.exports.sync=(e,t={})=>{let r=ar.resolve(t.cwd||"");const{root:n}=ar.parse(r),i=[].concat(e);for(;;){const s=Xu.sync(i,{cwd:r});if(s)return ar.join(r,s);if(r===n)return null;r=ar.dirname(r)}};const Zu=io.exports;no.exports=async({cwd:e}={})=>Zu("package.json",{cwd:e});no.exports.sync=({cwd:e}={})=>Zu.sync("package.json",{cwd:e});var uo={exports:{}};const Ie=Te.default,Ju=Pl.default,tr=Ju.homedir(),fo=Ju.tmpdir(),{env:Kr}=process,vm=e=>{const t=Ie.join(tr,"Library");return{data:Ie.join(t,"Application Support",e),config:Ie.join(t,"Preferences",e),cache:Ie.join(t,"Caches",e),log:Ie.join(t,"Logs",e),temp:Ie.join(fo,e)}},gm=e=>{const t=Kr.APPDATA||Ie.join(tr,"AppData","Roaming"),r=Kr.LOCALAPPDATA||Ie.join(tr,"AppData","Local");return{data:Ie.join(r,e,"Data"),config:Ie.join(t,e,"Config"),cache:Ie.join(r,e,"Cache"),log:Ie.join(r,e,"Log"),temp:Ie.join(fo,e)}},$m=e=>{const t=Ie.basename(tr);return{data:Ie.join(Kr.XDG_DATA_HOME||Ie.join(tr,".local","share"),e),config:Ie.join(Kr.XDG_CONFIG_HOME||Ie.join(tr,".config"),e),cache:Ie.join(Kr.XDG_CACHE_HOME||Ie.join(tr,".cache"),e),log:Ie.join(Kr.XDG_STATE_HOME||Ie.join(tr,".local","state"),e),temp:Ie.join(fo,t,e)}},Yu=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?vm(e):process.platform==="win32"?gm(e):$m(e)};uo.exports=Yu;uo.exports.default=Yu;var Ut={},me={};Object.defineProperty(me,"__esModule",{value:!0});me.NOOP=me.LIMIT_FILES_DESCRIPTORS=me.LIMIT_BASENAME_LENGTH=me.IS_USER_ROOT=me.IS_POSIX=me.DEFAULT_TIMEOUT_SYNC=me.DEFAULT_TIMEOUT_ASYNC=me.DEFAULT_WRITE_OPTIONS=me.DEFAULT_READ_OPTIONS=me.DEFAULT_FOLDER_MODE=me.DEFAULT_FILE_MODE=me.DEFAULT_ENCODING=void 0;const _m="utf8";me.DEFAULT_ENCODING=_m;const Sm=438;me.DEFAULT_FILE_MODE=Sm;const wm=511;me.DEFAULT_FOLDER_MODE=wm;const Nm={};me.DEFAULT_READ_OPTIONS=Nm;const Im={};me.DEFAULT_WRITE_OPTIONS=Im;const Om=5e3;me.DEFAULT_TIMEOUT_ASYNC=Om;const Tm=100;me.DEFAULT_TIMEOUT_SYNC=Tm;const Dm=!!process.getuid;me.IS_POSIX=Dm;const Rm=process.getuid?!process.getuid():!1;me.IS_USER_ROOT=Rm;const Cm=128;me.LIMIT_BASENAME_LENGTH=Cm;const Pm=1e4;me.LIMIT_FILES_DESCRIPTORS=Pm;const Am=()=>{};me.NOOP=Am;var Xi={},sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.attemptifySync=sn.attemptifyAsync=void 0;const Qu=me,bm=(e,t=Qu.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};sn.attemptifyAsync=bm;const Lm=(e,t=Qu.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};sn.attemptifySync=Lm;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});const Fm=me,ef={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Fm.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM")},isRetriableError:e=>{const{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!ef.isChangeErrorOk(e))throw e}};lo.default=ef;var on={},ho={};Object.defineProperty(ho,"__esModule",{value:!0});const jm=me,ve={interval:25,intervalId:void 0,limit:jm.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{ve.intervalId||(ve.intervalId=setInterval(ve.tick,ve.interval))},reset:()=>{!ve.intervalId||(clearInterval(ve.intervalId),delete ve.intervalId)},add:e=>{ve.queueWaiting.add(e),ve.queueActive.size<ve.limit/2?ve.tick():ve.init()},remove:e=>{ve.queueWaiting.delete(e),ve.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>ve.remove(r),r=()=>e(t);ve.add(r)}),tick:()=>{if(!(ve.queueActive.size>=ve.limit)){if(!ve.queueWaiting.size)return ve.reset();for(const e of ve.queueWaiting){if(ve.queueActive.size>=ve.limit)break;ve.queueWaiting.delete(e),ve.queueActive.add(e),e()}}}};ho.default=ve;Object.defineProperty(on,"__esModule",{value:!0});on.retryifySync=on.retryifyAsync=void 0;const Mm=ho,km=(e,t)=>function(r){return function n(){return Mm.default.schedule().then(i=>e.apply(void 0,arguments).then(s=>(i(),s),s=>{if(i(),Date.now()>=r)throw s;if(t(s)){const o=Math.round(100+400*Math.random());return new Promise(u=>setTimeout(u,o)).then(()=>n.apply(void 0,arguments))}throw s}))}};on.retryifyAsync=km;const Um=(e,t)=>function(r){return function n(){try{return e.apply(void 0,arguments)}catch(i){if(Date.now()>r)throw i;if(t(i))return n.apply(void 0,arguments);throw i}}};on.retryifySync=Um;Object.defineProperty(Xi,"__esModule",{value:!0});const pe=un.default,We=Gi.default,Xe=sn,Fe=lo,it=on,zm={chmodAttempt:Xe.attemptifyAsync(We.promisify(pe.chmod),Fe.default.onChangeError),chownAttempt:Xe.attemptifyAsync(We.promisify(pe.chown),Fe.default.onChangeError),closeAttempt:Xe.attemptifyAsync(We.promisify(pe.close)),fsyncAttempt:Xe.attemptifyAsync(We.promisify(pe.fsync)),mkdirAttempt:Xe.attemptifyAsync(We.promisify(pe.mkdir)),realpathAttempt:Xe.attemptifyAsync(We.promisify(pe.realpath)),statAttempt:Xe.attemptifyAsync(We.promisify(pe.stat)),unlinkAttempt:Xe.attemptifyAsync(We.promisify(pe.unlink)),closeRetry:it.retryifyAsync(We.promisify(pe.close),Fe.default.isRetriableError),fsyncRetry:it.retryifyAsync(We.promisify(pe.fsync),Fe.default.isRetriableError),openRetry:it.retryifyAsync(We.promisify(pe.open),Fe.default.isRetriableError),readFileRetry:it.retryifyAsync(We.promisify(pe.readFile),Fe.default.isRetriableError),renameRetry:it.retryifyAsync(We.promisify(pe.rename),Fe.default.isRetriableError),statRetry:it.retryifyAsync(We.promisify(pe.stat),Fe.default.isRetriableError),writeRetry:it.retryifyAsync(We.promisify(pe.write),Fe.default.isRetriableError),chmodSyncAttempt:Xe.attemptifySync(pe.chmodSync,Fe.default.onChangeError),chownSyncAttempt:Xe.attemptifySync(pe.chownSync,Fe.default.onChangeError),closeSyncAttempt:Xe.attemptifySync(pe.closeSync),mkdirSyncAttempt:Xe.attemptifySync(pe.mkdirSync),realpathSyncAttempt:Xe.attemptifySync(pe.realpathSync),statSyncAttempt:Xe.attemptifySync(pe.statSync),unlinkSyncAttempt:Xe.attemptifySync(pe.unlinkSync),closeSyncRetry:it.retryifySync(pe.closeSync,Fe.default.isRetriableError),fsyncSyncRetry:it.retryifySync(pe.fsyncSync,Fe.default.isRetriableError),openSyncRetry:it.retryifySync(pe.openSync,Fe.default.isRetriableError),readFileSyncRetry:it.retryifySync(pe.readFileSync,Fe.default.isRetriableError),renameSyncRetry:it.retryifySync(pe.renameSync,Fe.default.isRetriableError),statSyncRetry:it.retryifySync(pe.statSync,Fe.default.isRetriableError),writeSyncRetry:it.retryifySync(pe.writeSync,Fe.default.isRetriableError)};Xi.default=zm;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});const xm={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e=="undefined"};mo.default=xm;var po={};Object.defineProperty(po,"__esModule",{value:!0});const ui={},Fs={next:e=>{const t=ui[e];if(!t)return;t.shift();const r=t[0];r?r(()=>Fs.next(e)):delete ui[e]},schedule:e=>new Promise(t=>{let r=ui[e];r||(r=ui[e]=[]),r.push(t),!(r.length>1)&&t(()=>Fs.next(e))})};po.default=Fs;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});const Vm=Te.default,Ka=me,Wa=Xi,dt={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",i=`.${n}${r}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{const n=dt.truncate(t(e));return n in dt.store?dt.get(e,t,r):(dt.store[n]=r,[n,()=>delete dt.store[n]])},purge:e=>{!dt.store[e]||(delete dt.store[e],Wa.default.unlinkAttempt(e))},purgeSync:e=>{!dt.store[e]||(delete dt.store[e],Wa.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in dt.store)dt.purgeSync(e)},truncate:e=>{const t=Vm.basename(e);if(t.length<=Ka.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-Ka.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",dt.purgeSyncAll);yo.default=dt;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.writeFileSync=Ut.writeFile=Ut.readFileSync=Ut.readFile=void 0;const tf=Te.default,ze=me,he=Xi,ht=mo,qm=po,cr=yo;function rf(e,t=ze.DEFAULT_READ_OPTIONS){var r;if(ht.default.isString(t))return rf(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:ze.DEFAULT_TIMEOUT_ASYNC);return he.default.readFileRetry(n)(e,t)}Ut.readFile=rf;function nf(e,t=ze.DEFAULT_READ_OPTIONS){var r;if(ht.default.isString(t))return nf(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:ze.DEFAULT_TIMEOUT_SYNC);return he.default.readFileSyncRetry(n)(e,t)}Ut.readFileSync=nf;const sf=(e,t,r,n)=>{if(ht.default.isFunction(r))return sf(e,t,ze.DEFAULT_WRITE_OPTIONS,r);const i=of(e,t,r);return n&&i.then(n,n),i};Ut.writeFile=sf;const of=async(e,t,r=ze.DEFAULT_WRITE_OPTIONS)=>{var n;if(ht.default.isString(r))return of(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:ze.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,m=null;try{r.schedule&&(s=await r.schedule(e)),o=await qm.default.schedule(e),e=await he.default.realpathAttempt(e)||e,[u,c]=cr.default.get(e,r.tmpCreate||cr.default.create,r.tmpPurge!==!1);const a=ze.IS_POSIX&&ht.default.isUndefined(r.chown),l=ht.default.isUndefined(r.mode);if(a||l){const h=await he.default.statAttempt(e);h&&(r=te({},r),a&&(r.chown={uid:h.uid,gid:h.gid}),l&&(r.mode=h.mode))}const v=tf.dirname(e);await he.default.mkdirAttempt(v,{mode:ze.DEFAULT_FOLDER_MODE,recursive:!0}),m=await he.default.openRetry(i)(u,"w",r.mode||ze.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),ht.default.isString(t)?await he.default.writeRetry(i)(m,t,0,r.encoding||ze.DEFAULT_ENCODING):ht.default.isUndefined(t)||await he.default.writeRetry(i)(m,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await he.default.fsyncRetry(i)(m):he.default.fsyncAttempt(m)),await he.default.closeRetry(i)(m),m=null,r.chown&&await he.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await he.default.chmodAttempt(u,r.mode);try{await he.default.renameRetry(i)(u,e)}catch(h){if(h.code!=="ENAMETOOLONG")throw h;await he.default.renameRetry(i)(u,cr.default.truncate(e))}c(),u=null}finally{m&&await he.default.closeAttempt(m),u&&cr.default.purge(u),s&&s(),o&&o()}},af=(e,t,r=ze.DEFAULT_WRITE_OPTIONS)=>{var n;if(ht.default.isString(r))return af(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:ze.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=he.default.realpathSyncAttempt(e)||e,[o,s]=cr.default.get(e,r.tmpCreate||cr.default.create,r.tmpPurge!==!1);const u=ze.IS_POSIX&&ht.default.isUndefined(r.chown),m=ht.default.isUndefined(r.mode);if(u||m){const l=he.default.statSyncAttempt(e);l&&(r=te({},r),u&&(r.chown={uid:l.uid,gid:l.gid}),m&&(r.mode=l.mode))}const a=tf.dirname(e);he.default.mkdirSyncAttempt(a,{mode:ze.DEFAULT_FOLDER_MODE,recursive:!0}),c=he.default.openSyncRetry(i)(o,"w",r.mode||ze.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),ht.default.isString(t)?he.default.writeSyncRetry(i)(c,t,0,r.encoding||ze.DEFAULT_ENCODING):ht.default.isUndefined(t)||he.default.writeSyncRetry(i)(c,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?he.default.fsyncSyncRetry(i)(c):he.default.fsyncAttempt(c)),he.default.closeSyncRetry(i)(c),c=null,r.chown&&he.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&he.default.chmodSyncAttempt(o,r.mode);try{he.default.renameSyncRetry(i)(o,e)}catch(l){if(l.code!=="ENAMETOOLONG")throw l;he.default.renameSyncRetry(i)(o,cr.default.truncate(e))}s(),o=null}finally{c&&he.default.closeSyncAttempt(c),o&&cr.default.purge(o)}};Ut.writeFileSync=af;var bi={exports:{}},cf={},Tt={},an={},Yn={},re={},Gn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor($){if(super(),!e.IDENTIFIER.test($))throw new Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor($){super(),this._items=typeof $=="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((_,T)=>`${_}${T}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((_,T)=>(T instanceof r&&(_[T.str]=(_[T.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(f,...$){const _=[f[0]];let T=0;for(;T<$.length;)c(_,$[T]),_.push(f[++T]);return new n(_)}e._=i;const s=new n("+");function o(f,...$){const _=[h(f[0])];let T=0;for(;T<$.length;)_.push(s),c(_,$[T]),_.push(s,h(f[++T]));return u(_),new n(_)}e.str=o;function c(f,$){$ instanceof n?f.push(...$._items):$ instanceof r?f.push($):f.push(l($))}e.addCodeArg=c;function u(f){let $=1;for(;$<f.length-1;){if(f[$]===s){const _=m(f[$-1],f[$+1]);if(_!==void 0){f.splice($-1,3,_);continue}f[$++]="+"}$++}}function m(f,$){if($==='""')return f;if(f==='""')return $;if(typeof f=="string")return $ instanceof r||f[f.length-1]!=='"'?void 0:typeof $!="string"?`${f.slice(0,-1)}${$}"`:$[0]==='"'?f.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(f instanceof r))return`"${f}${$.slice(1)}`}function a(f,$){return $.emptyStr()?f:f.emptyStr()?$:o`${f}${$}`}e.strConcat=a;function l(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:h(Array.isArray(f)?f.join(","):f)}function v(f){return new n(h(f))}e.stringify=v;function h(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function d(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):i`[${f}]`}e.getProperty=d;function p(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new n(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=p;function E(f){return new n(f.toString())}e.regexpCode=E})(Gn);var js={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Gn;class r extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:m,parent:a}={}){this._names={},this._prefixes=m,this._parent=a}toName(m){return m instanceof t.Name?m:this.name(m)}name(m){return new t.Name(this._newName(m))}_newName(m){const a=this._names[m]||this._nameGroup(m);return`${m}${a.index++}`}_nameGroup(m){var a,l;if(((l=(a=this._parent)===null||a===void 0?void 0:a._prefixes)===null||l===void 0?void 0:l.has(m))||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}e.Scope=i;class s extends t.Name{constructor(m,a){super(a),this.prefix=m}setValue(m,{property:a,itemIndex:l}){this.value=m,this.scopePath=(0,t._)`.${new t.Name(a)}[${l}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class c extends i{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts=Et(te({},m),{_n:m.lines?o:t.nil})}get(){return this._scope}name(m){return new s(m,this._newName(m))}value(m,a){var l;if(a.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const v=this.toName(m),{prefix:h}=v,d=(l=a.key)!==null&&l!==void 0?l:a.ref;let p=this._values[h];if(p){const $=p.get(d);if($)return $}else p=this._values[h]=new Map;p.set(d,v);const E=this._scope[h]||(this._scope[h]=[]),f=E.length;return E[f]=a.ref,v.setValue(a,{property:h,itemIndex:f}),v}getValue(m,a){const l=this._values[m];if(!!l)return l.get(a)}scopeRefs(m,a=this._values){return this._reduceValues(a,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,t._)`${m}${l.scopePath}`})}scopeCode(m=this._values,a,l){return this._reduceValues(m,v=>{if(v.value===void 0)throw new Error(`CodeGen: name "${v}" has no value`);return v.value.code},a,l)}_reduceValues(m,a,l={},v){let h=t.nil;for(const d in m){const p=m[d];if(!p)continue;const E=l[d]=l[d]||new Map;p.forEach(f=>{if(E.has(f))return;E.set(f,n.Started);let $=a(f);if($){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${_} ${f} = ${$};${this.opts._n}`}else if($=v==null?void 0:v(f))h=(0,t._)`${h}${$}${this.opts._n}`;else throw new r(f);E.set(f,n.Completed)})}return h}}e.ValueScope=c})(js);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Gn,r=js;var n=Gn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=js;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(y,S){return this}}class o extends s{constructor(y,S,L){super(),this.varKind=y,this.name=S,this.rhs=L}render({es5:y,_n:S}){const L=y?r.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${q};`+S}optimizeNames(y,S){if(!!y[this.name.str])return this.rhs&&(this.rhs=Z(this.rhs,y,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(y,S,L){super(),this.lhs=y,this.rhs=S,this.sideEffects=L}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,S){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=Z(this.rhs,y,S),this}get names(){const y=this.lhs instanceof t.Name?{}:te({},this.lhs.names);return Y(y,this.rhs)}}class u extends c{constructor(y,S,L,q){super(y,L,q),this.op=S}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class m extends s{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class a extends s{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class l extends s{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class v extends s{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,S){return this.code=Z(this.code,y,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((S,L)=>S+L.render(y),"")}optimizeNodes(){const{nodes:y}=this;let S=y.length;for(;S--;){const L=y[S].optimizeNodes();Array.isArray(L)?y.splice(S,1,...L):L?y[S]=L:y.splice(S,1)}return y.length>0?this:void 0}optimizeNames(y,S){const{nodes:L}=this;let q=L.length;for(;q--;){const G=L[q];G.optimizeNames(y,S)||(ee(y,G.names),L.splice(q,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((y,S)=>V(y,S.names),{})}}class d extends h{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class p extends h{}class E extends d{}E.kind="else";class f extends d{constructor(y,S){super(S),this.condition=y}render(y){let S=`if(${this.condition})`+super.render(y);return this.else&&(S+="else "+this.else.render(y)),S}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let S=this.else;if(S){const L=S.optimizeNodes();S=this.else=Array.isArray(L)?new E(L):L}if(S)return y===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(ue(y),S instanceof f?[S]:S.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,S){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(y,S),!!(super.optimizeNames(y,S)||this.else))return this.condition=Z(this.condition,y,S),this}get names(){const y=super.names;return Y(y,this.condition),this.else&&V(y,this.else.names),y}}f.kind="if";class $ extends d{}$.kind="for";class _ extends ${constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,S){if(!!super.optimizeNames(y,S))return this.iteration=Z(this.iteration,y,S),this}get names(){return V(super.names,this.iteration.names)}}class T extends ${constructor(y,S,L,q){super(),this.varKind=y,this.name=S,this.from=L,this.to=q}render(y){const S=y.es5?r.varKinds.var:this.varKind,{name:L,from:q,to:G}=this;return`for(${S} ${L}=${q}; ${L}<${G}; ${L}++)`+super.render(y)}get names(){const y=Y(super.names,this.from);return Y(y,this.to)}}class k extends ${constructor(y,S,L,q){super(),this.loop=y,this.varKind=S,this.name=L,this.iterable=q}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,S){if(!!super.optimizeNames(y,S))return this.iterable=Z(this.iterable,y,S),this}get names(){return V(super.names,this.iterable.names)}}class O extends d{constructor(y,S,L){super(),this.name=y,this.args=S,this.async=L}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}O.kind="func";class D extends h{render(y){return"return "+super.render(y)}}D.kind="return";class M extends d{render(y){let S="try"+super.render(y);return this.catch&&(S+=this.catch.render(y)),this.finally&&(S+=this.finally.render(y)),S}optimizeNodes(){var y,S;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(y,S){var L,q;return super.optimizeNames(y,S),(L=this.catch)===null||L===void 0||L.optimizeNames(y,S),(q=this.finally)===null||q===void 0||q.optimizeNames(y,S),this}get names(){const y=super.names;return this.catch&&V(y,this.catch.names),this.finally&&V(y,this.finally.names),y}}class P extends d{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}P.kind="catch";class U extends d{render(y){return"finally"+super.render(y)}}U.kind="finally";class x{constructor(y,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Et(te({},S),{_n:S.lines?`
|
|
8
|
-
`:""}),this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,S){const L=this._extScope.value(y,S);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(y,S){return this._extScope.getValue(y,S)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,S,L,q){const G=this._scope.toName(S);return L!==void 0&&q&&(this._constants[G.str]=L),this._leafNode(new o(y,G,L)),G}const(y,S,L){return this._def(r.varKinds.const,y,S,L)}let(y,S,L){return this._def(r.varKinds.let,y,S,L)}var(y,S,L){return this._def(r.varKinds.var,y,S,L)}assign(y,S,L){return this._leafNode(new c(y,S,L))}add(y,S){return this._leafNode(new u(y,e.operators.ADD,S))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new v(y)),this}object(...y){const S=["{"];for(const[L,q]of y)S.length>1&&S.push(","),S.push(L),(L!==q||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,q));return S.push("}"),new t._Code(S)}if(y,S,L){if(this._blockNode(new f(y)),S&&L)this.code(S).else().code(L).endIf();else if(S)this.code(S).endIf();else if(L)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new f(y))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(f,E)}_for(y,S){return this._blockNode(y),S&&this.code(S).endFor(),this}for(y,S){return this._for(new _(y),S)}forRange(y,S,L,q,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(y);return this._for(new T(G,ie,S,L),()=>q(ie))}forOf(y,S,L,q=r.varKinds.const){const G=this._scope.toName(y);if(this.opts.es5){const ie=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${ie}.length`,ae=>{this.var(G,(0,t._)`${ie}[${ae}]`),L(G)})}return this._for(new k("of",q,G,S),()=>L(G))}forIn(y,S,L,q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${S})`,L);const G=this._scope.toName(y);return this._for(new k("in",q,G,S),()=>L(G))}endFor(){return this._endBlockNode($)}label(y){return this._leafNode(new m(y))}break(y){return this._leafNode(new a(y))}return(y){const S=new D;if(this._blockNode(S),this.code(y),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(y,S,L){if(!S&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new M;if(this._blockNode(q),this.code(y),S){const G=this.name("e");this._currNode=q.catch=new P(G),S(G)}return L&&(this._currNode=q.finally=new U,this.code(L)),this._endBlockNode(P,U)}throw(y){return this._leafNode(new l(y))}block(y,S){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(S),this}endBlock(y){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-S;if(L<0||y!==void 0&&L!==y)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${y} expected`);return this._nodes.length=S,this}func(y,S=t.nil,L,q){return this._blockNode(new O(y,S,L)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,S){const L=this._currNode;if(L instanceof y||S&&L instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${y.kind}/${S.kind}`:y.kind}"`)}_elseNode(y){const S=this._currNode;if(!(S instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const S=this._nodes;S[S.length-1]=y}}e.CodeGen=x;function V(C,y){for(const S in y)C[S]=(C[S]||0)+(y[S]||0);return C}function Y(C,y){return y instanceof t._CodeOrName?V(C,y.names):C}function Z(C,y,S){if(C instanceof t.Name)return L(C);if(!q(C))return C;return new t._Code(C._items.reduce((G,ie)=>(ie instanceof t.Name&&(ie=L(ie)),ie instanceof t._Code?G.push(...ie._items):G.push(ie),G),[]));function L(G){const ie=S[G.str];return ie===void 0||y[G.str]!==1?G:(delete y[G.str],ie)}function q(G){return G instanceof t._Code&&G._items.some(ie=>ie instanceof t.Name&&y[ie.str]===1&&S[ie.str]!==void 0)}}function ee(C,y){for(const S in y)C[S]=(C[S]||0)-(y[S]||0)}function ue(C){return typeof C=="boolean"||typeof C=="number"||C===null?!C:(0,t._)`!${F(C)}`}e.not=ue;const X=I(e.operators.AND);function j(...C){return C.reduce(X)}e.and=j;const z=I(e.operators.OR);function R(...C){return C.reduce(z)}e.or=R;function I(C){return(y,S)=>y===t.nil?S:S===t.nil?y:(0,t._)`${F(y)} ${C} ${F(S)}`}function F(C){return C instanceof t.Name?C:(0,t._)`(${C})`}})(re);var le={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=re,r=Gn;function n(O){const D={};for(const M of O)D[M]=!0;return D}e.toHash=n;function i(O,D){return typeof D=="boolean"?D:Object.keys(D).length===0?!0:(s(O,D),!o(D,O.self.RULES.all))}e.alwaysValidSchema=i;function s(O,D=O.schema){const{opts:M,self:P}=O;if(!M.strictSchema||typeof D=="boolean")return;const U=P.RULES.keywords;for(const x in D)U[x]||k(O,`unknown keyword: "${x}"`)}e.checkUnknownRules=s;function o(O,D){if(typeof O=="boolean")return!O;for(const M in O)if(D[M])return!0;return!1}e.schemaHasRules=o;function c(O,D){if(typeof O=="boolean")return!O;for(const M in O)if(M!=="$ref"&&D.all[M])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:O,schemaPath:D},M,P,U){if(!U){if(typeof M=="number"||typeof M=="boolean")return M;if(typeof M=="string")return(0,t._)`${M}`}return(0,t._)`${O}${D}${(0,t.getProperty)(P)}`}e.schemaRefOrVal=u;function m(O){return v(decodeURIComponent(O))}e.unescapeFragment=m;function a(O){return encodeURIComponent(l(O))}e.escapeFragment=a;function l(O){return typeof O=="number"?`${O}`:O.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function v(O){return O.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=v;function h(O,D){if(Array.isArray(O))for(const M of O)D(M);else D(O)}e.eachItem=h;function d({mergeNames:O,mergeToName:D,mergeValues:M,resultToName:P}){return(U,x,V,Y)=>{const Z=V===void 0?x:V instanceof t.Name?(x instanceof t.Name?O(U,x,V):D(U,x,V),V):x instanceof t.Name?(D(U,V,x),x):M(x,V);return Y===t.Name&&!(Z instanceof t.Name)?P(U,Z):Z}}e.mergeEvaluated={props:d({mergeNames:(O,D,M)=>O.if((0,t._)`${M} !== true && ${D} !== undefined`,()=>{O.if((0,t._)`${D} === true`,()=>O.assign(M,!0),()=>O.assign(M,(0,t._)`${M} || {}`).code((0,t._)`Object.assign(${M}, ${D})`))}),mergeToName:(O,D,M)=>O.if((0,t._)`${M} !== true`,()=>{D===!0?O.assign(M,!0):(O.assign(M,(0,t._)`${M} || {}`),E(O,M,D))}),mergeValues:(O,D)=>O===!0?!0:te(te({},O),D),resultToName:p}),items:d({mergeNames:(O,D,M)=>O.if((0,t._)`${M} !== true && ${D} !== undefined`,()=>O.assign(M,(0,t._)`${D} === true ? true : ${M} > ${D} ? ${M} : ${D}`)),mergeToName:(O,D,M)=>O.if((0,t._)`${M} !== true`,()=>O.assign(M,D===!0?!0:(0,t._)`${M} > ${D} ? ${M} : ${D}`)),mergeValues:(O,D)=>O===!0?!0:Math.max(O,D),resultToName:(O,D)=>O.var("items",D)})};function p(O,D){if(D===!0)return O.var("props",!0);const M=O.var("props",(0,t._)`{}`);return D!==void 0&&E(O,M,D),M}e.evaluatedPropsToName=p;function E(O,D,M){Object.keys(M).forEach(P=>O.assign((0,t._)`${D}${(0,t.getProperty)(P)}`,!0))}e.setEvaluated=E;const f={};function $(O,D){return O.scopeValue("func",{ref:D,code:f[D.code]||(f[D.code]=new r._Code(D.code))})}e.useFunc=$;var _;(function(O){O[O.Num=0]="Num",O[O.Str=1]="Str"})(_=e.Type||(e.Type={}));function T(O,D,M){if(O instanceof t.Name){const P=D===_.Num;return M?P?(0,t._)`"[" + ${O} + "]"`:(0,t._)`"['" + ${O} + "']"`:P?(0,t._)`"/" + ${O}`:(0,t._)`"/" + ${O}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return M?(0,t.getProperty)(O).toString():"/"+l(O)}e.getErrorPath=T;function k(O,D,M=O.opts.strictSchema){if(!!M){if(D=`strict mode: ${D}`,M===!0)throw new Error(D);O.self.logger.warn(D)}}e.checkStrictMode=k})(le);var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});const Be=re,Gm={data:new Be.Name("data"),valCxt:new Be.Name("valCxt"),instancePath:new Be.Name("instancePath"),parentData:new Be.Name("parentData"),parentDataProperty:new Be.Name("parentDataProperty"),rootData:new Be.Name("rootData"),dynamicAnchors:new Be.Name("dynamicAnchors"),vErrors:new Be.Name("vErrors"),errors:new Be.Name("errors"),this:new Be.Name("this"),self:new Be.Name("self"),scope:new Be.Name("scope"),json:new Be.Name("json"),jsonPos:new Be.Name("jsonPos"),jsonLen:new Be.Name("jsonLen"),jsonPart:new Be.Name("jsonPart")};Vt.default=Gm;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=re,r=le,n=Vt;e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:f})=>f?(0,t.str)`"${E}" keyword must be ${f} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,f=e.keywordError,$,_){const{it:T}=E,{gen:k,compositeRule:O,allErrors:D}=T,M=l(E,f,$);(_!=null?_:O||D)?u(k,M):m(T,(0,t._)`[${M}]`)}e.reportError=i;function s(E,f=e.keywordError,$){const{it:_}=E,{gen:T,compositeRule:k,allErrors:O}=_,D=l(E,f,$);u(T,D),k||O||m(_,n.default.vErrors)}e.reportExtraError=s;function o(E,f){E.assign(n.default.errors,f),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(f,()=>E.assign((0,t._)`${n.default.vErrors}.length`,f),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:E,keyword:f,schemaValue:$,data:_,errsCount:T,it:k}){if(T===void 0)throw new Error("ajv implementation error");const O=E.name("err");E.forRange("i",T,n.default.errors,D=>{E.const(O,(0,t._)`${n.default.vErrors}[${D}]`),E.if((0,t._)`${O}.instancePath === undefined`,()=>E.assign((0,t._)`${O}.instancePath`,(0,t.strConcat)(n.default.instancePath,k.errorPath))),E.assign((0,t._)`${O}.schemaPath`,(0,t.str)`${k.errSchemaPath}/${f}`),k.opts.verbose&&(E.assign((0,t._)`${O}.schema`,$),E.assign((0,t._)`${O}.data`,_))})}e.extendErrors=c;function u(E,f){const $=E.const("err",f);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),E.code((0,t._)`${n.default.errors}++`)}function m(E,f){const{gen:$,validateName:_,schemaEnv:T}=E;T.$async?$.throw((0,t._)`new ${E.ValidationError}(${f})`):($.assign((0,t._)`${_}.errors`,f),$.return(!1))}const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function l(E,f,$){const{createErrors:_}=E.it;return _===!1?(0,t._)`{}`:v(E,f,$)}function v(E,f,$={}){const{gen:_,it:T}=E,k=[h(T,$),d(E,$)];return p(E,f,k),_.object(...k)}function h({errorPath:E},{instancePath:f}){const $=f?(0,t.str)`${E}${(0,r.getErrorPath)(f,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function d({keyword:E,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:_}){let T=_?f:(0,t.str)`${f}/${E}`;return $&&(T=(0,t.str)`${T}${(0,r.getErrorPath)($,r.Type.Str)}`),[a.schemaPath,T]}function p(E,{params:f,message:$},_){const{keyword:T,data:k,schemaValue:O,it:D}=E,{opts:M,propertyName:P,topSchemaRef:U,schemaPath:x}=D;_.push([a.keyword,T],[a.params,typeof f=="function"?f(E):f||(0,t._)`{}`]),M.messages&&_.push([a.message,typeof $=="function"?$(E):$]),M.verbose&&_.push([a.schema,O],[a.parentSchema,(0,t._)`${U}${x}`],[n.default.data,k]),P&&_.push([a.propertyName,P])}})(Yn);Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;const Bm=Yn,Hm=re,Km=Vt,Wm={message:"boolean schema is false"};function Xm(e){const{gen:t,schema:r,validateName:n}=e;r===!1?uf(e,!1):typeof r=="object"&&r.$async===!0?t.return(Km.default.data):(t.assign((0,Hm._)`${n}.errors`,null),t.return(!0))}an.topBoolOrEmptySchema=Xm;function Zm(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),uf(e)):r.var(t,!0)}an.boolOrEmptySchema=Zm;function uf(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Bm.reportError)(i,Wm,void 0,t)}var Qn={},Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getRules=Tr.isJSONType=void 0;const Jm=["string","number","integer","boolean","null","object","array"],Ym=new Set(Jm);function Qm(e){return typeof e=="string"&&Ym.has(e)}Tr.isJSONType=Qm;function ep(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Et(te({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Tr.getRules=ep;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.shouldUseRule=Kt.shouldUseGroup=Kt.schemaHasRulesForType=void 0;function tp({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&ff(e,n)}Kt.schemaHasRulesForType=tp;function ff(e,t){return t.rules.some(r=>lf(e,r))}Kt.shouldUseGroup=ff;function lf(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Kt.shouldUseRule=lf;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Tr,r=Kt,n=Yn,i=re,s=le;var o;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c(_){const T=u(_.type);if(T.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&T.push("null")}return T}e.getSchemaTypes=c;function u(_){const T=Array.isArray(_)?_:_?[_]:[];if(T.every(t.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}e.getJSONTypes=u;function m(_,T){const{gen:k,data:O,opts:D}=_,M=l(T,D.coerceTypes),P=T.length>0&&!(M.length===0&&T.length===1&&(0,r.schemaHasRulesForType)(_,T[0]));if(P){const U=p(T,O,D.strictNumbers,o.Wrong);k.if(U,()=>{M.length?v(_,T,M):f(_)})}return P}e.coerceAndCheckDataType=m;const a=new Set(["string","number","integer","boolean","null"]);function l(_,T){return T?_.filter(k=>a.has(k)||T==="array"&&k==="array"):[]}function v(_,T,k){const{gen:O,data:D,opts:M}=_,P=O.let("dataType",(0,i._)`typeof ${D}`),U=O.let("coerced",(0,i._)`undefined`);M.coerceTypes==="array"&&O.if((0,i._)`${P} == 'object' && Array.isArray(${D}) && ${D}.length == 1`,()=>O.assign(D,(0,i._)`${D}[0]`).assign(P,(0,i._)`typeof ${D}`).if(p(T,D,M.strictNumbers),()=>O.assign(U,D))),O.if((0,i._)`${U} !== undefined`);for(const V of k)(a.has(V)||V==="array"&&M.coerceTypes==="array")&&x(V);O.else(),f(_),O.endIf(),O.if((0,i._)`${U} !== undefined`,()=>{O.assign(D,U),h(_,U)});function x(V){switch(V){case"string":O.elseIf((0,i._)`${P} == "number" || ${P} == "boolean"`).assign(U,(0,i._)`"" + ${D}`).elseIf((0,i._)`${D} === null`).assign(U,(0,i._)`""`);return;case"number":O.elseIf((0,i._)`${P} == "boolean" || ${D} === null
|
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=zn.checkPathsSync(e,t,"copy",r);return zn.checkParentPathsSync(e,n,t,"copy"),pd(i,e,t,r)}function pd(e,t,r,n){if(n.filter&&!n.filter(t,r))return;const i=Un.dirname(r);return He.existsSync(i)||dd(i),fu(e,t,r,n)}function yd(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return fu(e,t,r,n)}function fu(e,t,r,n){const s=(n.dereference?He.statSync:He.lstatSync)(t);if(s.isDirectory())return wd(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Ed(s,e,t,r,n);if(s.isSymbolicLink())return Od(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function Ed(e,t,r,n,i){return t?vd(e,r,n,i):lu(e,r,n,i)}function vd(e,t,r,n){if(n.overwrite)return He.unlinkSync(r),lu(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function lu(e,t,r,n){return He.copyFileSync(t,r),n.preserveTimestamps&&gd(e.mode,t,r),Zs(r,e.mode)}function gd(e,t,r){return $d(e)&&_d(r,e),Sd(t,r)}function $d(e){return(e&128)===0}function _d(e,t){return Zs(e,t|128)}function Zs(e,t){return He.chmodSync(e,t)}function Sd(e,t){const r=He.statSync(e);return hd(t,r.atime,r.mtime)}function wd(e,t,r,n,i){return t?du(r,n,i):Nd(e.mode,r,n,i)}function Nd(e,t,r,n){return He.mkdirSync(r),du(t,r,n),Zs(r,e)}function du(e,t,r){He.readdirSync(e).forEach(n=>Id(n,e,t,r))}function Id(e,t,r,n){const i=Un.join(t,e),s=Un.join(r,e),{destStat:o}=zn.checkPathsSync(i,s,"copy",n);return yd(o,i,s,n)}function Od(e,t,r,n){let i=He.readlinkSync(t);if(n.dereference&&(i=Un.resolve(process.cwd(),i)),e){let s;try{s=He.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return He.symlinkSync(i,r);throw o}if(n.dereference&&(s=Un.resolve(process.cwd(),s)),zn.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(He.statSync(r).isDirectory()&&zn.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Td(i,r)}else return He.symlinkSync(i,r)}function Td(e,t){return He.unlinkSync(t),He.symlinkSync(e,t)}var Dd=md;const Rd=et.fromCallback;var Js={copy:Rd(ld),copySync:Dd};const Oa=ct,hu=Oe.default,pe=Bs.default,xn=process.platform==="win32";function mu(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Oa[r],r=r+"Sync",e[r]=e[r]||Oa[r]}),e.maxBusyTries=e.maxBusyTries||3}function Ys(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),pe(e,"rimraf: missing path"),pe.strictEqual(typeof e,"string","rimraf: path should be a string"),pe.strictEqual(typeof r,"function","rimraf: callback function required"),pe(t,"rimraf: invalid options argument provided"),pe.strictEqual(typeof t,"object","rimraf: options should be object"),mu(t),Ta(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;const o=n*100;return setTimeout(()=>Ta(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Ta(e,t,r){pe(e),pe(t),pe(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&xn)return Da(e,t,n,r);if(i&&i.isDirectory())return vi(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return xn?Da(e,t,s,r):vi(e,t,s,r);if(s.code==="EISDIR")return vi(e,t,s,r)}return r(s)})})}function Da(e,t,r,n){pe(e),pe(t),pe(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?vi(e,t,r,n):t.unlink(e,n)})})}function Ra(e,t,r){let n;pe(e),pe(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?gi(e,t,r):t.unlinkSync(e)}function vi(e,t,r,n){pe(e),pe(t),pe(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Cd(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Cd(e,t,r){pe(e),pe(t),pe(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(c=>{Ys(hu.join(e,c),t,u=>{if(!o){if(u)return r(o=u);--s===0&&t.rmdir(e,r)}})})})}function pu(e,t){let r;t=t||{},mu(t),pe(e,"rimraf: missing path"),pe.strictEqual(typeof e,"string","rimraf: path should be a string"),pe(t,"rimraf: missing options"),pe.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&xn&&Ra(e,t,n)}try{r&&r.isDirectory()?gi(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return xn?Ra(e,t,n):gi(e,t,n);if(n.code!=="EISDIR")throw n;gi(e,t,n)}}function gi(e,t,r){pe(e),pe(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Pd(e,t);else if(n.code!=="ENOENT")throw n}}function Pd(e,t){if(pe(e),pe(t),t.readdirSync(e).forEach(r=>pu(hu.join(e,r),t)),xn){const r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}var Ad=Ys;Ys.sync=pu;const Ci=ct,bd=et.fromCallback,yu=Ad;function Ld(e,t){if(Ci.rm)return Ci.rm(e,{recursive:!0,force:!0},t);yu(e,t)}function Fd(e){if(Ci.rmSync)return Ci.rmSync(e,{recursive:!0,force:!0});yu.sync(e)}var Bi={remove:bd(Ld),removeSync:Fd};const jd=et.fromPromise,Eu=Dr,vu=Oe.default,gu=Ut,$u=Bi,Ca=jd(async function(t){let r;try{r=await Eu.readdir(t)}catch{return gu.mkdirs(t)}return Promise.all(r.map(n=>$u.remove(vu.join(t,n))))});function Pa(e){let t;try{t=Eu.readdirSync(e)}catch{return gu.mkdirsSync(e)}t.forEach(r=>{r=vu.join(e,r),$u.removeSync(r)})}var Md={emptyDirSync:Pa,emptydirSync:Pa,emptyDir:Ca,emptydir:Ca};const kd=et.fromCallback,_u=Oe.default,nr=ct,Su=Ut;function Ud(e,t){function r(){nr.writeFile(e,"",n=>{if(n)return t(n);t()})}nr.stat(e,(n,i)=>{if(!n&&i.isFile())return t();const s=_u.dirname(e);nr.stat(s,(o,c)=>{if(o)return o.code==="ENOENT"?Su.mkdirs(s,u=>{if(u)return t(u);r()}):t(o);c.isDirectory()?r():nr.readdir(s,u=>{if(u)return t(u)})})})}function zd(e){let t;try{t=nr.statSync(e)}catch{}if(t&&t.isFile())return;const r=_u.dirname(e);try{nr.statSync(r).isDirectory()||nr.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Su.mkdirsSync(r);else throw n}nr.writeFileSync(e,"")}var xd={createFile:kd(Ud),createFileSync:zd};const Vd=et.fromCallback,wu=Oe.default,Yt=ct,Nu=Ut,qd=Rr.pathExists,{areIdentical:Iu}=cn;function Gd(e,t,r){function n(i,s){Yt.link(i,s,o=>{if(o)return r(o);r(null)})}Yt.lstat(t,(i,s)=>{Yt.lstat(e,(o,c)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&Iu(c,s))return r(null);const u=wu.dirname(t);qd(u,(m,a)=>{if(m)return r(m);if(a)return n(e,t);Nu.mkdirs(u,l=>{if(l)return r(l);n(e,t)})})})})}function Bd(e,t){let r;try{r=Yt.lstatSync(t)}catch{}try{const s=Yt.lstatSync(e);if(r&&Iu(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}const n=wu.dirname(t);return Yt.existsSync(n)||Nu.mkdirsSync(n),Yt.linkSync(e,t)}var Hd={createLink:Vd(Gd),createLinkSync:Bd};const ir=Oe.default,Dn=ct,Kd=Rr.pathExists;function Wd(e,t,r){if(ir.isAbsolute(e))return Dn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{const n=ir.dirname(t),i=ir.join(n,e);return Kd(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Dn.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:ir.relative(n,e)})))}}function Xd(e,t){let r;if(ir.isAbsolute(e)){if(r=Dn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=ir.dirname(t),i=ir.join(n,e);if(r=Dn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Dn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:ir.relative(n,e)}}}var Zd={symlinkPaths:Wd,symlinkPathsSync:Xd};const Ou=ct;function Jd(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Ou.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Yd(e,t){let r;if(t)return t;try{r=Ou.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}var Qd={symlinkType:Jd,symlinkTypeSync:Yd};const eh=et.fromCallback,Tu=Oe.default,wt=Dr,Du=Ut,th=Du.mkdirs,rh=Du.mkdirsSync,Ru=Zd,nh=Ru.symlinkPaths,ih=Ru.symlinkPathsSync,Cu=Qd,sh=Cu.symlinkType,oh=Cu.symlinkTypeSync,ah=Rr.pathExists,{areIdentical:Pu}=cn;function ch(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,wt.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([wt.stat(e),wt.stat(t)]).then(([o,c])=>{if(Pu(o,c))return n(null);Aa(e,t,r,n)}):Aa(e,t,r,n)})}function Aa(e,t,r,n){nh(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,sh(s.toCwd,r,(o,c)=>{if(o)return n(o);const u=Tu.dirname(t);ah(u,(m,a)=>{if(m)return n(m);if(a)return wt.symlink(e,t,c,n);th(u,l=>{if(l)return n(l);wt.symlink(e,t,c,n)})})})})}function uh(e,t,r){let n;try{n=wt.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const c=wt.statSync(e),u=wt.statSync(t);if(Pu(c,u))return}const i=ih(e,t);e=i.toDst,r=oh(i.toCwd,r);const s=Tu.dirname(t);return wt.existsSync(s)||rh(s),wt.symlinkSync(e,t,r)}var fh={createSymlink:eh(ch),createSymlinkSync:uh};const{createFile:ba,createFileSync:La}=xd,{createLink:Fa,createLinkSync:ja}=Hd,{createSymlink:Ma,createSymlinkSync:ka}=fh;var lh={createFile:ba,createFileSync:La,ensureFile:ba,ensureFileSync:La,createLink:Fa,createLinkSync:ja,ensureLink:Fa,ensureLinkSync:ja,createSymlink:Ma,createSymlinkSync:ka,ensureSymlink:Ma,ensureSymlinkSync:ka};function dh(e,{EOL:t=`
|
|
7
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function hh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var Qs={stringify:dh,stripBom:hh};let tn;try{tn=require("graceful-fs")}catch{tn=an.default}const Hi=et,{stringify:Au,stripBom:bu}=Qs;async function mh(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||tn,n="throws"in t?t.throws:!0;let i=await Hi.fromCallback(r.readFile)(e,t);i=bu(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}const ph=Hi.fromPromise(mh);function yh(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||tn,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=bu(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Eh(e,t,r={}){const n=r.fs||tn,i=Au(t,r);await Hi.fromCallback(n.writeFile)(e,i,r)}const vh=Hi.fromPromise(Eh);function gh(e,t,r={}){const n=r.fs||tn,i=Au(t,r);return n.writeFileSync(e,i,r)}const $h={readFile:ph,readFileSync:yh,writeFile:vh,writeFileSync:gh};var _h=$h;const si=_h;var Sh={readJson:si.readFile,readJsonSync:si.readFileSync,writeJson:si.writeFile,writeJsonSync:si.writeFileSync};const wh=et.fromCallback,Rn=ct,Lu=Oe.default,Fu=Ut,Nh=Rr.pathExists;function Ih(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=Lu.dirname(e);Nh(i,(s,o)=>{if(s)return n(s);if(o)return Rn.writeFile(e,t,r,n);Fu.mkdirs(i,c=>{if(c)return n(c);Rn.writeFile(e,t,r,n)})})}function Oh(e,...t){const r=Lu.dirname(e);if(Rn.existsSync(r))return Rn.writeFileSync(e,...t);Fu.mkdirsSync(r),Rn.writeFileSync(e,...t)}var eo={outputFile:wh(Ih),outputFileSync:Oh};const{stringify:Th}=Qs,{outputFile:Dh}=eo;async function Rh(e,t,r={}){const n=Th(t,r);await Dh(e,n,r)}var Ch=Rh;const{stringify:Ph}=Qs,{outputFileSync:Ah}=eo;function bh(e,t,r){const n=Ph(t,r);Ah(e,n,r)}var Lh=bh;const Fh=et.fromPromise,Qe=Sh;Qe.outputJson=Fh(Ch);Qe.outputJsonSync=Lh;Qe.outputJSON=Qe.outputJson;Qe.outputJSONSync=Qe.outputJsonSync;Qe.writeJSON=Qe.writeJson;Qe.writeJSONSync=Qe.writeJsonSync;Qe.readJSON=Qe.readJson;Qe.readJSONSync=Qe.readJsonSync;var jh=Qe;const Mh=ct,Cs=Oe.default,kh=Js.copy,ju=Bi.remove,Uh=Ut.mkdirp,zh=Rr.pathExists,Ua=cn;function xh(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;Ua.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;Ua.checkParentPaths(e,c,t,"move",m=>{if(m)return n(m);if(Vh(t))return za(e,t,i,u,n);Uh(Cs.dirname(t),a=>a?n(a):za(e,t,i,u,n))})})}function Vh(e){const t=Cs.dirname(e);return Cs.parse(t).root===t}function za(e,t,r,n,i){if(n)return ms(e,t,r,i);if(r)return ju(t,s=>s?i(s):ms(e,t,r,i));zh(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):ms(e,t,r,i))}function ms(e,t,r,n){Mh.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):qh(e,t,r,n):n())}function qh(e,t,r,n){kh(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):ju(e,n))}var Gh=xh;const Mu=ct,Ps=Oe.default,Bh=Js.copySync,ku=Bi.removeSync,Hh=Ut.mkdirpSync,xa=cn;function Kh(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=xa.checkPathsSync(e,t,"move",r);return xa.checkParentPathsSync(e,i,t,"move"),Wh(t)||Hh(Ps.dirname(t)),Xh(e,t,n,s)}function Wh(e){const t=Ps.dirname(e);return Ps.parse(t).root===t}function Xh(e,t,r,n){if(n)return ps(e,t,r);if(r)return ku(t),ps(e,t,r);if(Mu.existsSync(t))throw new Error("dest already exists.");return ps(e,t,r)}function ps(e,t,r){try{Mu.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Zh(e,t,r)}}function Zh(e,t,r){return Bh(e,t,{overwrite:r,errorOnExist:!0}),ku(e)}var Jh=Kh;const Yh=et.fromCallback;var Qh={move:Yh(Gh),moveSync:Jh},yt={...Dr,...Js,...Md,...lh,...jh,...Ut,...Qh,...eo,...Rr,...Bi},As={exports:{}},em=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const mr=em,tm=new Set(["__proto__","prototype","constructor"]),rm=e=>!e.some(t=>tm.has(t));function oi(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let i=t[n];for(;i[i.length-1]==="\\"&&t[n+1]!==void 0;)i=i.slice(0,-1)+".",i+=t[++n];r.push(i)}return rm(r)?r:[]}var nm={get(e,t,r){if(!mr(e)||typeof t!="string")return r===void 0?e:r;const n=oi(t);if(n.length!==0){for(let i=0;i<n.length;i++)if(e=e[n[i]],e==null){if(i!==n.length-1)return r;break}return e===void 0?r:e}},set(e,t,r){if(!mr(e)||typeof t!="string")return e;const n=e,i=oi(t);for(let s=0;s<i.length;s++){const o=i[s];mr(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!mr(e)||typeof t!="string")return!1;const r=oi(t);for(let n=0;n<r.length;n++){const i=r[n];if(n===r.length-1)return delete e[i],!0;if(e=e[i],!mr(e))return!1}},has(e,t){if(!mr(e)||typeof t!="string")return!1;const r=oi(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(mr(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},to={exports:{}},ro={exports:{}},no={exports:{}},io={exports:{}};const Uu=an.default;io.exports=e=>new Promise(t=>{Uu.access(e,r=>{t(!r)})});io.exports.sync=e=>{try{return Uu.accessSync(e),!0}catch{return!1}};var so={exports:{}},oo={exports:{}};const zu=(e,...t)=>new Promise(r=>{r(e(...t))});oo.exports=zu;oo.exports.default=zu;const im=oo.exports,xu=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},i=(c,u,...m)=>{r++;const a=im(c,...m);u(a),a.then(n,n)},s=(c,u,...m)=>{r<e?i(c,u,...m):t.push(i.bind(null,c,u,...m))},o=(c,...u)=>new Promise(m=>s(c,m,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};so.exports=xu;so.exports.default=xu;const Va=so.exports;class Vu extends Error{constructor(t){super(),this.value=t}}const sm=(e,t)=>Promise.resolve(e).then(t),om=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new Vu(t[0])));var am=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=Va(r.concurrency),i=[...e].map(o=>[o,n(sm,o,t)]),s=Va(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(om,o))).then(()=>{}).catch(o=>o instanceof Vu?o.value:Promise.reject(o))};const qu=Oe.default,Gu=io.exports,cm=am;no.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),cm(e,r=>Gu(qu.resolve(t.cwd,r)),t));no.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(Gu.sync(qu.resolve(t.cwd,r)))return r};const sr=Oe.default,Bu=no.exports;ro.exports=(e,t={})=>{const r=sr.resolve(t.cwd||""),{root:n}=sr.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){Bu(i,{cwd:c}).then(u=>{u?s(sr.join(c,u)):c===n?s(null):o(sr.dirname(c))})})(r)})};ro.exports.sync=(e,t={})=>{let r=sr.resolve(t.cwd||"");const{root:n}=sr.parse(r),i=[].concat(e);for(;;){const s=Bu.sync(i,{cwd:r});if(s)return sr.join(r,s);if(r===n)return null;r=sr.dirname(r)}};const Hu=ro.exports;to.exports=async({cwd:e}={})=>Hu("package.json",{cwd:e});to.exports.sync=({cwd:e}={})=>Hu.sync("package.json",{cwd:e});var ao={exports:{}};const Ne=Oe.default,Ku=Sl.default,Qt=Ku.homedir(),co=Ku.tmpdir(),{env:Br}=process,um=e=>{const t=Ne.join(Qt,"Library");return{data:Ne.join(t,"Application Support",e),config:Ne.join(t,"Preferences",e),cache:Ne.join(t,"Caches",e),log:Ne.join(t,"Logs",e),temp:Ne.join(co,e)}},fm=e=>{const t=Br.APPDATA||Ne.join(Qt,"AppData","Roaming"),r=Br.LOCALAPPDATA||Ne.join(Qt,"AppData","Local");return{data:Ne.join(r,e,"Data"),config:Ne.join(t,e,"Config"),cache:Ne.join(r,e,"Cache"),log:Ne.join(r,e,"Log"),temp:Ne.join(co,e)}},lm=e=>{const t=Ne.basename(Qt);return{data:Ne.join(Br.XDG_DATA_HOME||Ne.join(Qt,".local","share"),e),config:Ne.join(Br.XDG_CONFIG_HOME||Ne.join(Qt,".config"),e),cache:Ne.join(Br.XDG_CACHE_HOME||Ne.join(Qt,".cache"),e),log:Ne.join(Br.XDG_STATE_HOME||Ne.join(Qt,".local","state"),e),temp:Ne.join(co,t,e)}},Wu=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?um(e):process.platform==="win32"?fm(e):lm(e)};ao.exports=Wu;ao.exports.default=Wu;var Mt={},he={};Object.defineProperty(he,"__esModule",{value:!0});he.NOOP=he.LIMIT_FILES_DESCRIPTORS=he.LIMIT_BASENAME_LENGTH=he.IS_USER_ROOT=he.IS_POSIX=he.DEFAULT_TIMEOUT_SYNC=he.DEFAULT_TIMEOUT_ASYNC=he.DEFAULT_WRITE_OPTIONS=he.DEFAULT_READ_OPTIONS=he.DEFAULT_FOLDER_MODE=he.DEFAULT_FILE_MODE=he.DEFAULT_ENCODING=void 0;const dm="utf8";he.DEFAULT_ENCODING=dm;const hm=438;he.DEFAULT_FILE_MODE=hm;const mm=511;he.DEFAULT_FOLDER_MODE=mm;const pm={};he.DEFAULT_READ_OPTIONS=pm;const ym={};he.DEFAULT_WRITE_OPTIONS=ym;const Em=5e3;he.DEFAULT_TIMEOUT_ASYNC=Em;const vm=100;he.DEFAULT_TIMEOUT_SYNC=vm;const gm=!!process.getuid;he.IS_POSIX=gm;const $m=process.getuid?!process.getuid():!1;he.IS_USER_ROOT=$m;const _m=128;he.LIMIT_BASENAME_LENGTH=_m;const Sm=1e4;he.LIMIT_FILES_DESCRIPTORS=Sm;const wm=()=>{};he.NOOP=wm;var Ki={},rn={};Object.defineProperty(rn,"__esModule",{value:!0});rn.attemptifySync=rn.attemptifyAsync=void 0;const Xu=he,Nm=(e,t=Xu.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};rn.attemptifyAsync=Nm;const Im=(e,t=Xu.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};rn.attemptifySync=Im;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});const Om=he,Zu={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Om.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM")},isRetriableError:e=>{const{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!Zu.isChangeErrorOk(e))throw e}};uo.default=Zu;var nn={},fo={};Object.defineProperty(fo,"__esModule",{value:!0});const Tm=he,Ee={interval:25,intervalId:void 0,limit:Tm.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{Ee.intervalId||(Ee.intervalId=setInterval(Ee.tick,Ee.interval))},reset:()=>{!Ee.intervalId||(clearInterval(Ee.intervalId),delete Ee.intervalId)},add:e=>{Ee.queueWaiting.add(e),Ee.queueActive.size<Ee.limit/2?Ee.tick():Ee.init()},remove:e=>{Ee.queueWaiting.delete(e),Ee.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>Ee.remove(r),r=()=>e(t);Ee.add(r)}),tick:()=>{if(!(Ee.queueActive.size>=Ee.limit)){if(!Ee.queueWaiting.size)return Ee.reset();for(const e of Ee.queueWaiting){if(Ee.queueActive.size>=Ee.limit)break;Ee.queueWaiting.delete(e),Ee.queueActive.add(e),e()}}}};fo.default=Ee;Object.defineProperty(nn,"__esModule",{value:!0});nn.retryifySync=nn.retryifyAsync=void 0;const Dm=fo,Rm=(e,t)=>function(r){return function n(){return Dm.default.schedule().then(i=>e.apply(void 0,arguments).then(s=>(i(),s),s=>{if(i(),Date.now()>=r)throw s;if(t(s)){const o=Math.round(100+400*Math.random());return new Promise(u=>setTimeout(u,o)).then(()=>n.apply(void 0,arguments))}throw s}))}};nn.retryifyAsync=Rm;const Cm=(e,t)=>function(r){return function n(){try{return e.apply(void 0,arguments)}catch(i){if(Date.now()>r)throw i;if(t(i))return n.apply(void 0,arguments);throw i}}};nn.retryifySync=Cm;Object.defineProperty(Ki,"__esModule",{value:!0});const me=an.default,Ke=Vi.default,We=rn,Le=uo,nt=nn,Pm={chmodAttempt:We.attemptifyAsync(Ke.promisify(me.chmod),Le.default.onChangeError),chownAttempt:We.attemptifyAsync(Ke.promisify(me.chown),Le.default.onChangeError),closeAttempt:We.attemptifyAsync(Ke.promisify(me.close)),fsyncAttempt:We.attemptifyAsync(Ke.promisify(me.fsync)),mkdirAttempt:We.attemptifyAsync(Ke.promisify(me.mkdir)),realpathAttempt:We.attemptifyAsync(Ke.promisify(me.realpath)),statAttempt:We.attemptifyAsync(Ke.promisify(me.stat)),unlinkAttempt:We.attemptifyAsync(Ke.promisify(me.unlink)),closeRetry:nt.retryifyAsync(Ke.promisify(me.close),Le.default.isRetriableError),fsyncRetry:nt.retryifyAsync(Ke.promisify(me.fsync),Le.default.isRetriableError),openRetry:nt.retryifyAsync(Ke.promisify(me.open),Le.default.isRetriableError),readFileRetry:nt.retryifyAsync(Ke.promisify(me.readFile),Le.default.isRetriableError),renameRetry:nt.retryifyAsync(Ke.promisify(me.rename),Le.default.isRetriableError),statRetry:nt.retryifyAsync(Ke.promisify(me.stat),Le.default.isRetriableError),writeRetry:nt.retryifyAsync(Ke.promisify(me.write),Le.default.isRetriableError),chmodSyncAttempt:We.attemptifySync(me.chmodSync,Le.default.onChangeError),chownSyncAttempt:We.attemptifySync(me.chownSync,Le.default.onChangeError),closeSyncAttempt:We.attemptifySync(me.closeSync),mkdirSyncAttempt:We.attemptifySync(me.mkdirSync),realpathSyncAttempt:We.attemptifySync(me.realpathSync),statSyncAttempt:We.attemptifySync(me.statSync),unlinkSyncAttempt:We.attemptifySync(me.unlinkSync),closeSyncRetry:nt.retryifySync(me.closeSync,Le.default.isRetriableError),fsyncSyncRetry:nt.retryifySync(me.fsyncSync,Le.default.isRetriableError),openSyncRetry:nt.retryifySync(me.openSync,Le.default.isRetriableError),readFileSyncRetry:nt.retryifySync(me.readFileSync,Le.default.isRetriableError),renameSyncRetry:nt.retryifySync(me.renameSync,Le.default.isRetriableError),statSyncRetry:nt.retryifySync(me.statSync,Le.default.isRetriableError),writeSyncRetry:nt.retryifySync(me.writeSync,Le.default.isRetriableError)};Ki.default=Pm;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});const Am={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e=="undefined"};lo.default=Am;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});const ai={},bs={next:e=>{const t=ai[e];if(!t)return;t.shift();const r=t[0];r?r(()=>bs.next(e)):delete ai[e]},schedule:e=>new Promise(t=>{let r=ai[e];r||(r=ai[e]=[]),r.push(t),!(r.length>1)&&t(()=>bs.next(e))})};ho.default=bs;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});const bm=Oe.default,qa=he,Ga=Ki,lt={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",i=`.${n}${r}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{const n=lt.truncate(t(e));return n in lt.store?lt.get(e,t,r):(lt.store[n]=r,[n,()=>delete lt.store[n]])},purge:e=>{!lt.store[e]||(delete lt.store[e],Ga.default.unlinkAttempt(e))},purgeSync:e=>{!lt.store[e]||(delete lt.store[e],Ga.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in lt.store)lt.purgeSync(e)},truncate:e=>{const t=bm.basename(e);if(t.length<=qa.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-qa.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",lt.purgeSyncAll);mo.default=lt;Object.defineProperty(Mt,"__esModule",{value:!0});Mt.writeFileSync=Mt.writeFile=Mt.readFileSync=Mt.readFile=void 0;const Ju=Oe.default,Ue=he,de=Ki,dt=lo,Lm=ho,or=mo;function Yu(e,t=Ue.DEFAULT_READ_OPTIONS){var r;if(dt.default.isString(t))return Yu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Ue.DEFAULT_TIMEOUT_ASYNC);return de.default.readFileRetry(n)(e,t)}Mt.readFile=Yu;function Qu(e,t=Ue.DEFAULT_READ_OPTIONS){var r;if(dt.default.isString(t))return Qu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Ue.DEFAULT_TIMEOUT_SYNC);return de.default.readFileSyncRetry(n)(e,t)}Mt.readFileSync=Qu;const ef=(e,t,r,n)=>{if(dt.default.isFunction(r))return ef(e,t,Ue.DEFAULT_WRITE_OPTIONS,r);const i=tf(e,t,r);return n&&i.then(n,n),i};Mt.writeFile=ef;const tf=async(e,t,r=Ue.DEFAULT_WRITE_OPTIONS)=>{var n;if(dt.default.isString(r))return tf(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Ue.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,m=null;try{r.schedule&&(s=await r.schedule(e)),o=await Lm.default.schedule(e),e=await de.default.realpathAttempt(e)||e,[u,c]=or.default.get(e,r.tmpCreate||or.default.create,r.tmpPurge!==!1);const a=Ue.IS_POSIX&&dt.default.isUndefined(r.chown),l=dt.default.isUndefined(r.mode);if(a||l){const h=await de.default.statAttempt(e);h&&(r={...r},a&&(r.chown={uid:h.uid,gid:h.gid}),l&&(r.mode=h.mode))}const v=Ju.dirname(e);await de.default.mkdirAttempt(v,{mode:Ue.DEFAULT_FOLDER_MODE,recursive:!0}),m=await de.default.openRetry(i)(u,"w",r.mode||Ue.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),dt.default.isString(t)?await de.default.writeRetry(i)(m,t,0,r.encoding||Ue.DEFAULT_ENCODING):dt.default.isUndefined(t)||await de.default.writeRetry(i)(m,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await de.default.fsyncRetry(i)(m):de.default.fsyncAttempt(m)),await de.default.closeRetry(i)(m),m=null,r.chown&&await de.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await de.default.chmodAttempt(u,r.mode);try{await de.default.renameRetry(i)(u,e)}catch(h){if(h.code!=="ENAMETOOLONG")throw h;await de.default.renameRetry(i)(u,or.default.truncate(e))}c(),u=null}finally{m&&await de.default.closeAttempt(m),u&&or.default.purge(u),s&&s(),o&&o()}},rf=(e,t,r=Ue.DEFAULT_WRITE_OPTIONS)=>{var n;if(dt.default.isString(r))return rf(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Ue.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=de.default.realpathSyncAttempt(e)||e,[o,s]=or.default.get(e,r.tmpCreate||or.default.create,r.tmpPurge!==!1);const u=Ue.IS_POSIX&&dt.default.isUndefined(r.chown),m=dt.default.isUndefined(r.mode);if(u||m){const l=de.default.statSyncAttempt(e);l&&(r={...r},u&&(r.chown={uid:l.uid,gid:l.gid}),m&&(r.mode=l.mode))}const a=Ju.dirname(e);de.default.mkdirSyncAttempt(a,{mode:Ue.DEFAULT_FOLDER_MODE,recursive:!0}),c=de.default.openSyncRetry(i)(o,"w",r.mode||Ue.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),dt.default.isString(t)?de.default.writeSyncRetry(i)(c,t,0,r.encoding||Ue.DEFAULT_ENCODING):dt.default.isUndefined(t)||de.default.writeSyncRetry(i)(c,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?de.default.fsyncSyncRetry(i)(c):de.default.fsyncAttempt(c)),de.default.closeSyncRetry(i)(c),c=null,r.chown&&de.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&de.default.chmodSyncAttempt(o,r.mode);try{de.default.renameSyncRetry(i)(o,e)}catch(l){if(l.code!=="ENAMETOOLONG")throw l;de.default.renameSyncRetry(i)(o,or.default.truncate(e))}s(),o=null}finally{c&&de.default.closeSyncAttempt(c),o&&or.default.purge(o)}};Mt.writeFileSync=rf;var Pi={exports:{}},nf={},It={},sn={},Zn={},te={},Vn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor($){if(super(),!e.IDENTIFIER.test($))throw new Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor($){super(),this._items=typeof $=="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((_,T)=>`${_}${T}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((_,T)=>(T instanceof r&&(_[T.str]=(_[T.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(f,...$){const _=[f[0]];let T=0;for(;T<$.length;)c(_,$[T]),_.push(f[++T]);return new n(_)}e._=i;const s=new n("+");function o(f,...$){const _=[h(f[0])];let T=0;for(;T<$.length;)_.push(s),c(_,$[T]),_.push(s,h(f[++T]));return u(_),new n(_)}e.str=o;function c(f,$){$ instanceof n?f.push(...$._items):$ instanceof r?f.push($):f.push(l($))}e.addCodeArg=c;function u(f){let $=1;for(;$<f.length-1;){if(f[$]===s){const _=m(f[$-1],f[$+1]);if(_!==void 0){f.splice($-1,3,_);continue}f[$++]="+"}$++}}function m(f,$){if($==='""')return f;if(f==='""')return $;if(typeof f=="string")return $ instanceof r||f[f.length-1]!=='"'?void 0:typeof $!="string"?`${f.slice(0,-1)}${$}"`:$[0]==='"'?f.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(f instanceof r))return`"${f}${$.slice(1)}`}function a(f,$){return $.emptyStr()?f:f.emptyStr()?$:o`${f}${$}`}e.strConcat=a;function l(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:h(Array.isArray(f)?f.join(","):f)}function v(f){return new n(h(f))}e.stringify=v;function h(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function d(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):i`[${f}]`}e.getProperty=d;function y(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new n(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=y;function E(f){return new n(f.toString())}e.regexpCode=E})(Vn);var Ls={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Vn;class r extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:m,parent:a}={}){this._names={},this._prefixes=m,this._parent=a}toName(m){return m instanceof t.Name?m:this.name(m)}name(m){return new t.Name(this._newName(m))}_newName(m){const a=this._names[m]||this._nameGroup(m);return`${m}${a.index++}`}_nameGroup(m){var a,l;if(((l=(a=this._parent)===null||a===void 0?void 0:a._prefixes)===null||l===void 0?void 0:l.has(m))||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}e.Scope=i;class s extends t.Name{constructor(m,a){super(a),this.prefix=m}setValue(m,{property:a,itemIndex:l}){this.value=m,this.scopePath=(0,t._)`.${new t.Name(a)}[${l}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class c extends i{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts={...m,_n:m.lines?o:t.nil}}get(){return this._scope}name(m){return new s(m,this._newName(m))}value(m,a){var l;if(a.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const v=this.toName(m),{prefix:h}=v,d=(l=a.key)!==null&&l!==void 0?l:a.ref;let y=this._values[h];if(y){const $=y.get(d);if($)return $}else y=this._values[h]=new Map;y.set(d,v);const E=this._scope[h]||(this._scope[h]=[]),f=E.length;return E[f]=a.ref,v.setValue(a,{property:h,itemIndex:f}),v}getValue(m,a){const l=this._values[m];if(!!l)return l.get(a)}scopeRefs(m,a=this._values){return this._reduceValues(a,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,t._)`${m}${l.scopePath}`})}scopeCode(m=this._values,a,l){return this._reduceValues(m,v=>{if(v.value===void 0)throw new Error(`CodeGen: name "${v}" has no value`);return v.value.code},a,l)}_reduceValues(m,a,l={},v){let h=t.nil;for(const d in m){const y=m[d];if(!y)continue;const E=l[d]=l[d]||new Map;y.forEach(f=>{if(E.has(f))return;E.set(f,n.Started);let $=a(f);if($){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${_} ${f} = ${$};${this.opts._n}`}else if($=v==null?void 0:v(f))h=(0,t._)`${h}${$}${this.opts._n}`;else throw new r(f);E.set(f,n.Completed)})}return h}}e.ValueScope=c})(Ls);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Vn,r=Ls;var n=Vn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=Ls;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(p,S){return this}}class o extends s{constructor(p,S,L){super(),this.varKind=p,this.name=S,this.rhs=L}render({es5:p,_n:S}){const L=p?r.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${q};`+S}optimizeNames(p,S){if(!!p[this.name.str])return this.rhs&&(this.rhs=Z(this.rhs,p,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(p,S,L){super(),this.lhs=p,this.rhs=S,this.sideEffects=L}render({_n:p}){return`${this.lhs} = ${this.rhs};`+p}optimizeNames(p,S){if(!(this.lhs instanceof t.Name&&!p[this.lhs.str]&&!this.sideEffects))return this.rhs=Z(this.rhs,p,S),this}get names(){const p=this.lhs instanceof t.Name?{}:{...this.lhs.names};return Y(p,this.rhs)}}class u extends c{constructor(p,S,L,q){super(p,L,q),this.op=S}render({_n:p}){return`${this.lhs} ${this.op}= ${this.rhs};`+p}}class m extends s{constructor(p){super(),this.label=p,this.names={}}render({_n:p}){return`${this.label}:`+p}}class a extends s{constructor(p){super(),this.label=p,this.names={}}render({_n:p}){return`break${this.label?` ${this.label}`:""};`+p}}class l extends s{constructor(p){super(),this.error=p}render({_n:p}){return`throw ${this.error};`+p}get names(){return this.error.names}}class v extends s{constructor(p){super(),this.code=p}render({_n:p}){return`${this.code};`+p}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(p,S){return this.code=Z(this.code,p,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(p=[]){super(),this.nodes=p}render(p){return this.nodes.reduce((S,L)=>S+L.render(p),"")}optimizeNodes(){const{nodes:p}=this;let S=p.length;for(;S--;){const L=p[S].optimizeNodes();Array.isArray(L)?p.splice(S,1,...L):L?p[S]=L:p.splice(S,1)}return p.length>0?this:void 0}optimizeNames(p,S){const{nodes:L}=this;let q=L.length;for(;q--;){const G=L[q];G.optimizeNames(p,S)||(ee(p,G.names),L.splice(q,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((p,S)=>V(p,S.names),{})}}class d extends h{render(p){return"{"+p._n+super.render(p)+"}"+p._n}}class y extends h{}class E extends d{}E.kind="else";class f extends d{constructor(p,S){super(S),this.condition=p}render(p){let S=`if(${this.condition})`+super.render(p);return this.else&&(S+="else "+this.else.render(p)),S}optimizeNodes(){super.optimizeNodes();const p=this.condition;if(p===!0)return this.nodes;let S=this.else;if(S){const L=S.optimizeNodes();S=this.else=Array.isArray(L)?new E(L):L}if(S)return p===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(ce(p),S instanceof f?[S]:S.nodes);if(!(p===!1||!this.nodes.length))return this}optimizeNames(p,S){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(p,S),!!(super.optimizeNames(p,S)||this.else))return this.condition=Z(this.condition,p,S),this}get names(){const p=super.names;return Y(p,this.condition),this.else&&V(p,this.else.names),p}}f.kind="if";class $ extends d{}$.kind="for";class _ extends ${constructor(p){super(),this.iteration=p}render(p){return`for(${this.iteration})`+super.render(p)}optimizeNames(p,S){if(!!super.optimizeNames(p,S))return this.iteration=Z(this.iteration,p,S),this}get names(){return V(super.names,this.iteration.names)}}class T extends ${constructor(p,S,L,q){super(),this.varKind=p,this.name=S,this.from=L,this.to=q}render(p){const S=p.es5?r.varKinds.var:this.varKind,{name:L,from:q,to:G}=this;return`for(${S} ${L}=${q}; ${L}<${G}; ${L}++)`+super.render(p)}get names(){const p=Y(super.names,this.from);return Y(p,this.to)}}class k extends ${constructor(p,S,L,q){super(),this.loop=p,this.varKind=S,this.name=L,this.iterable=q}render(p){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(p)}optimizeNames(p,S){if(!!super.optimizeNames(p,S))return this.iterable=Z(this.iterable,p,S),this}get names(){return V(super.names,this.iterable.names)}}class O extends d{constructor(p,S,L){super(),this.name=p,this.args=S,this.async=L}render(p){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(p)}}O.kind="func";class D extends h{render(p){return"return "+super.render(p)}}D.kind="return";class M extends d{render(p){let S="try"+super.render(p);return this.catch&&(S+=this.catch.render(p)),this.finally&&(S+=this.finally.render(p)),S}optimizeNodes(){var p,S;return super.optimizeNodes(),(p=this.catch)===null||p===void 0||p.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(p,S){var L,q;return super.optimizeNames(p,S),(L=this.catch)===null||L===void 0||L.optimizeNames(p,S),(q=this.finally)===null||q===void 0||q.optimizeNames(p,S),this}get names(){const p=super.names;return this.catch&&V(p,this.catch.names),this.finally&&V(p,this.finally.names),p}}class P extends d{constructor(p){super(),this.error=p}render(p){return`catch(${this.error})`+super.render(p)}}P.kind="catch";class U extends d{render(p){return"finally"+super.render(p)}}U.kind="finally";class x{constructor(p,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
8
|
+
`:""},this._extScope=p,this._scope=new r.Scope({parent:p}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(p){return this._scope.name(p)}scopeName(p){return this._extScope.name(p)}scopeValue(p,S){const L=this._extScope.value(p,S);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(p,S){return this._extScope.getValue(p,S)}scopeRefs(p){return this._extScope.scopeRefs(p,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(p,S,L,q){const G=this._scope.toName(S);return L!==void 0&&q&&(this._constants[G.str]=L),this._leafNode(new o(p,G,L)),G}const(p,S,L){return this._def(r.varKinds.const,p,S,L)}let(p,S,L){return this._def(r.varKinds.let,p,S,L)}var(p,S,L){return this._def(r.varKinds.var,p,S,L)}assign(p,S,L){return this._leafNode(new c(p,S,L))}add(p,S){return this._leafNode(new u(p,e.operators.ADD,S))}code(p){return typeof p=="function"?p():p!==t.nil&&this._leafNode(new v(p)),this}object(...p){const S=["{"];for(const[L,q]of p)S.length>1&&S.push(","),S.push(L),(L!==q||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,q));return S.push("}"),new t._Code(S)}if(p,S,L){if(this._blockNode(new f(p)),S&&L)this.code(S).else().code(L).endIf();else if(S)this.code(S).endIf();else if(L)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(p){return this._elseNode(new f(p))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(f,E)}_for(p,S){return this._blockNode(p),S&&this.code(S).endFor(),this}for(p,S){return this._for(new _(p),S)}forRange(p,S,L,q,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const ne=this._scope.toName(p);return this._for(new T(G,ne,S,L),()=>q(ne))}forOf(p,S,L,q=r.varKinds.const){const G=this._scope.toName(p);if(this.opts.es5){const ne=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${ne}.length`,oe=>{this.var(G,(0,t._)`${ne}[${oe}]`),L(G)})}return this._for(new k("of",q,G,S),()=>L(G))}forIn(p,S,L,q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(p,(0,t._)`Object.keys(${S})`,L);const G=this._scope.toName(p);return this._for(new k("in",q,G,S),()=>L(G))}endFor(){return this._endBlockNode($)}label(p){return this._leafNode(new m(p))}break(p){return this._leafNode(new a(p))}return(p){const S=new D;if(this._blockNode(S),this.code(p),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(p,S,L){if(!S&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new M;if(this._blockNode(q),this.code(p),S){const G=this.name("e");this._currNode=q.catch=new P(G),S(G)}return L&&(this._currNode=q.finally=new U,this.code(L)),this._endBlockNode(P,U)}throw(p){return this._leafNode(new l(p))}block(p,S){return this._blockStarts.push(this._nodes.length),p&&this.code(p).endBlock(S),this}endBlock(p){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-S;if(L<0||p!==void 0&&L!==p)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${p} expected`);return this._nodes.length=S,this}func(p,S=t.nil,L,q){return this._blockNode(new O(p,S,L)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(p=1){for(;p-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(p){return this._currNode.nodes.push(p),this}_blockNode(p){this._currNode.nodes.push(p),this._nodes.push(p)}_endBlockNode(p,S){const L=this._currNode;if(L instanceof p||S&&L instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${p.kind}/${S.kind}`:p.kind}"`)}_elseNode(p){const S=this._currNode;if(!(S instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=p,this}get _root(){return this._nodes[0]}get _currNode(){const p=this._nodes;return p[p.length-1]}set _currNode(p){const S=this._nodes;S[S.length-1]=p}}e.CodeGen=x;function V(C,p){for(const S in p)C[S]=(C[S]||0)+(p[S]||0);return C}function Y(C,p){return p instanceof t._CodeOrName?V(C,p.names):C}function Z(C,p,S){if(C instanceof t.Name)return L(C);if(!q(C))return C;return new t._Code(C._items.reduce((G,ne)=>(ne instanceof t.Name&&(ne=L(ne)),ne instanceof t._Code?G.push(...ne._items):G.push(ne),G),[]));function L(G){const ne=S[G.str];return ne===void 0||p[G.str]!==1?G:(delete p[G.str],ne)}function q(G){return G instanceof t._Code&&G._items.some(ne=>ne instanceof t.Name&&p[ne.str]===1&&S[ne.str]!==void 0)}}function ee(C,p){for(const S in p)C[S]=(C[S]||0)-(p[S]||0)}function ce(C){return typeof C=="boolean"||typeof C=="number"||C===null?!C:(0,t._)`!${F(C)}`}e.not=ce;const X=I(e.operators.AND);function j(...C){return C.reduce(X)}e.and=j;const z=I(e.operators.OR);function R(...C){return C.reduce(z)}e.or=R;function I(C){return(p,S)=>p===t.nil?S:S===t.nil?p:(0,t._)`${F(p)} ${C} ${F(S)}`}function F(C){return C instanceof t.Name?C:(0,t._)`(${C})`}})(te);var fe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=te,r=Vn;function n(O){const D={};for(const M of O)D[M]=!0;return D}e.toHash=n;function i(O,D){return typeof D=="boolean"?D:Object.keys(D).length===0?!0:(s(O,D),!o(D,O.self.RULES.all))}e.alwaysValidSchema=i;function s(O,D=O.schema){const{opts:M,self:P}=O;if(!M.strictSchema||typeof D=="boolean")return;const U=P.RULES.keywords;for(const x in D)U[x]||k(O,`unknown keyword: "${x}"`)}e.checkUnknownRules=s;function o(O,D){if(typeof O=="boolean")return!O;for(const M in O)if(D[M])return!0;return!1}e.schemaHasRules=o;function c(O,D){if(typeof O=="boolean")return!O;for(const M in O)if(M!=="$ref"&&D.all[M])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:O,schemaPath:D},M,P,U){if(!U){if(typeof M=="number"||typeof M=="boolean")return M;if(typeof M=="string")return(0,t._)`${M}`}return(0,t._)`${O}${D}${(0,t.getProperty)(P)}`}e.schemaRefOrVal=u;function m(O){return v(decodeURIComponent(O))}e.unescapeFragment=m;function a(O){return encodeURIComponent(l(O))}e.escapeFragment=a;function l(O){return typeof O=="number"?`${O}`:O.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function v(O){return O.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=v;function h(O,D){if(Array.isArray(O))for(const M of O)D(M);else D(O)}e.eachItem=h;function d({mergeNames:O,mergeToName:D,mergeValues:M,resultToName:P}){return(U,x,V,Y)=>{const Z=V===void 0?x:V instanceof t.Name?(x instanceof t.Name?O(U,x,V):D(U,x,V),V):x instanceof t.Name?(D(U,V,x),x):M(x,V);return Y===t.Name&&!(Z instanceof t.Name)?P(U,Z):Z}}e.mergeEvaluated={props:d({mergeNames:(O,D,M)=>O.if((0,t._)`${M} !== true && ${D} !== undefined`,()=>{O.if((0,t._)`${D} === true`,()=>O.assign(M,!0),()=>O.assign(M,(0,t._)`${M} || {}`).code((0,t._)`Object.assign(${M}, ${D})`))}),mergeToName:(O,D,M)=>O.if((0,t._)`${M} !== true`,()=>{D===!0?O.assign(M,!0):(O.assign(M,(0,t._)`${M} || {}`),E(O,M,D))}),mergeValues:(O,D)=>O===!0?!0:{...O,...D},resultToName:y}),items:d({mergeNames:(O,D,M)=>O.if((0,t._)`${M} !== true && ${D} !== undefined`,()=>O.assign(M,(0,t._)`${D} === true ? true : ${M} > ${D} ? ${M} : ${D}`)),mergeToName:(O,D,M)=>O.if((0,t._)`${M} !== true`,()=>O.assign(M,D===!0?!0:(0,t._)`${M} > ${D} ? ${M} : ${D}`)),mergeValues:(O,D)=>O===!0?!0:Math.max(O,D),resultToName:(O,D)=>O.var("items",D)})};function y(O,D){if(D===!0)return O.var("props",!0);const M=O.var("props",(0,t._)`{}`);return D!==void 0&&E(O,M,D),M}e.evaluatedPropsToName=y;function E(O,D,M){Object.keys(M).forEach(P=>O.assign((0,t._)`${D}${(0,t.getProperty)(P)}`,!0))}e.setEvaluated=E;const f={};function $(O,D){return O.scopeValue("func",{ref:D,code:f[D.code]||(f[D.code]=new r._Code(D.code))})}e.useFunc=$;var _;(function(O){O[O.Num=0]="Num",O[O.Str=1]="Str"})(_=e.Type||(e.Type={}));function T(O,D,M){if(O instanceof t.Name){const P=D===_.Num;return M?P?(0,t._)`"[" + ${O} + "]"`:(0,t._)`"['" + ${O} + "']"`:P?(0,t._)`"/" + ${O}`:(0,t._)`"/" + ${O}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return M?(0,t.getProperty)(O).toString():"/"+l(O)}e.getErrorPath=T;function k(O,D,M=O.opts.strictSchema){if(!!M){if(D=`strict mode: ${D}`,M===!0)throw new Error(D);O.self.logger.warn(D)}}e.checkStrictMode=k})(fe);var zt={};Object.defineProperty(zt,"__esModule",{value:!0});const Ge=te,Fm={data:new Ge.Name("data"),valCxt:new Ge.Name("valCxt"),instancePath:new Ge.Name("instancePath"),parentData:new Ge.Name("parentData"),parentDataProperty:new Ge.Name("parentDataProperty"),rootData:new Ge.Name("rootData"),dynamicAnchors:new Ge.Name("dynamicAnchors"),vErrors:new Ge.Name("vErrors"),errors:new Ge.Name("errors"),this:new Ge.Name("this"),self:new Ge.Name("self"),scope:new Ge.Name("scope"),json:new Ge.Name("json"),jsonPos:new Ge.Name("jsonPos"),jsonLen:new Ge.Name("jsonLen"),jsonPart:new Ge.Name("jsonPart")};zt.default=Fm;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=te,r=fe,n=zt;e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:f})=>f?(0,t.str)`"${E}" keyword must be ${f} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,f=e.keywordError,$,_){const{it:T}=E,{gen:k,compositeRule:O,allErrors:D}=T,M=l(E,f,$);(_!=null?_:O||D)?u(k,M):m(T,(0,t._)`[${M}]`)}e.reportError=i;function s(E,f=e.keywordError,$){const{it:_}=E,{gen:T,compositeRule:k,allErrors:O}=_,D=l(E,f,$);u(T,D),k||O||m(_,n.default.vErrors)}e.reportExtraError=s;function o(E,f){E.assign(n.default.errors,f),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(f,()=>E.assign((0,t._)`${n.default.vErrors}.length`,f),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:E,keyword:f,schemaValue:$,data:_,errsCount:T,it:k}){if(T===void 0)throw new Error("ajv implementation error");const O=E.name("err");E.forRange("i",T,n.default.errors,D=>{E.const(O,(0,t._)`${n.default.vErrors}[${D}]`),E.if((0,t._)`${O}.instancePath === undefined`,()=>E.assign((0,t._)`${O}.instancePath`,(0,t.strConcat)(n.default.instancePath,k.errorPath))),E.assign((0,t._)`${O}.schemaPath`,(0,t.str)`${k.errSchemaPath}/${f}`),k.opts.verbose&&(E.assign((0,t._)`${O}.schema`,$),E.assign((0,t._)`${O}.data`,_))})}e.extendErrors=c;function u(E,f){const $=E.const("err",f);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),E.code((0,t._)`${n.default.errors}++`)}function m(E,f){const{gen:$,validateName:_,schemaEnv:T}=E;T.$async?$.throw((0,t._)`new ${E.ValidationError}(${f})`):($.assign((0,t._)`${_}.errors`,f),$.return(!1))}const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function l(E,f,$){const{createErrors:_}=E.it;return _===!1?(0,t._)`{}`:v(E,f,$)}function v(E,f,$={}){const{gen:_,it:T}=E,k=[h(T,$),d(E,$)];return y(E,f,k),_.object(...k)}function h({errorPath:E},{instancePath:f}){const $=f?(0,t.str)`${E}${(0,r.getErrorPath)(f,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function d({keyword:E,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:_}){let T=_?f:(0,t.str)`${f}/${E}`;return $&&(T=(0,t.str)`${T}${(0,r.getErrorPath)($,r.Type.Str)}`),[a.schemaPath,T]}function y(E,{params:f,message:$},_){const{keyword:T,data:k,schemaValue:O,it:D}=E,{opts:M,propertyName:P,topSchemaRef:U,schemaPath:x}=D;_.push([a.keyword,T],[a.params,typeof f=="function"?f(E):f||(0,t._)`{}`]),M.messages&&_.push([a.message,typeof $=="function"?$(E):$]),M.verbose&&_.push([a.schema,O],[a.parentSchema,(0,t._)`${U}${x}`],[n.default.data,k]),P&&_.push([a.propertyName,P])}})(Zn);Object.defineProperty(sn,"__esModule",{value:!0});sn.boolOrEmptySchema=sn.topBoolOrEmptySchema=void 0;const jm=Zn,Mm=te,km=zt,Um={message:"boolean schema is false"};function zm(e){const{gen:t,schema:r,validateName:n}=e;r===!1?sf(e,!1):typeof r=="object"&&r.$async===!0?t.return(km.default.data):(t.assign((0,Mm._)`${n}.errors`,null),t.return(!0))}sn.topBoolOrEmptySchema=zm;function xm(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),sf(e)):r.var(t,!0)}sn.boolOrEmptySchema=xm;function sf(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,jm.reportError)(i,Um,void 0,t)}var Jn={},Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getRules=Ir.isJSONType=void 0;const Vm=["string","number","integer","boolean","null","object","array"],qm=new Set(Vm);function Gm(e){return typeof e=="string"&&qm.has(e)}Ir.isJSONType=Gm;function Bm(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ir.getRules=Bm;var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.shouldUseRule=Bt.shouldUseGroup=Bt.schemaHasRulesForType=void 0;function Hm({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&of(e,n)}Bt.schemaHasRulesForType=Hm;function of(e,t){return t.rules.some(r=>af(e,r))}Bt.shouldUseGroup=of;function af(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Bt.shouldUseRule=af;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Ir,r=Bt,n=Zn,i=te,s=fe;var o;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c(_){const T=u(_.type);if(T.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&T.push("null")}return T}e.getSchemaTypes=c;function u(_){const T=Array.isArray(_)?_:_?[_]:[];if(T.every(t.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}e.getJSONTypes=u;function m(_,T){const{gen:k,data:O,opts:D}=_,M=l(T,D.coerceTypes),P=T.length>0&&!(M.length===0&&T.length===1&&(0,r.schemaHasRulesForType)(_,T[0]));if(P){const U=y(T,O,D.strictNumbers,o.Wrong);k.if(U,()=>{M.length?v(_,T,M):f(_)})}return P}e.coerceAndCheckDataType=m;const a=new Set(["string","number","integer","boolean","null"]);function l(_,T){return T?_.filter(k=>a.has(k)||T==="array"&&k==="array"):[]}function v(_,T,k){const{gen:O,data:D,opts:M}=_,P=O.let("dataType",(0,i._)`typeof ${D}`),U=O.let("coerced",(0,i._)`undefined`);M.coerceTypes==="array"&&O.if((0,i._)`${P} == 'object' && Array.isArray(${D}) && ${D}.length == 1`,()=>O.assign(D,(0,i._)`${D}[0]`).assign(P,(0,i._)`typeof ${D}`).if(y(T,D,M.strictNumbers),()=>O.assign(U,D))),O.if((0,i._)`${U} !== undefined`);for(const V of k)(a.has(V)||V==="array"&&M.coerceTypes==="array")&&x(V);O.else(),f(_),O.endIf(),O.if((0,i._)`${U} !== undefined`,()=>{O.assign(D,U),h(_,U)});function x(V){switch(V){case"string":O.elseIf((0,i._)`${P} == "number" || ${P} == "boolean"`).assign(U,(0,i._)`"" + ${D}`).elseIf((0,i._)`${D} === null`).assign(U,(0,i._)`""`);return;case"number":O.elseIf((0,i._)`${P} == "boolean" || ${D} === null
|
|
9
9
|
|| (${P} == "string" && ${D} && ${D} == +${D})`).assign(U,(0,i._)`+${D}`);return;case"integer":O.elseIf((0,i._)`${P} === "boolean" || ${D} === null
|
|
10
10
|
|| (${P} === "string" && ${D} && ${D} == +${D} && !(${D} % 1))`).assign(U,(0,i._)`+${D}`);return;case"boolean":O.elseIf((0,i._)`${D} === "false" || ${D} === 0 || ${D} === null`).assign(U,!1).elseIf((0,i._)`${D} === "true" || ${D} === 1`).assign(U,!0);return;case"null":O.elseIf((0,i._)`${D} === "" || ${D} === 0 || ${D} === false`),O.assign(U,null);return;case"array":O.elseIf((0,i._)`${P} === "string" || ${P} === "number"
|
|
11
|
-
|| ${P} === "boolean" || ${D} === null`).assign(U,(0,i._)`[${D}]`)}}}function h({gen:_,parentData:T,parentDataProperty:k},O){_.if((0,i._)`${T} !== undefined`,()=>_.assign((0,i._)`${T}[${k}]`,O))}function d(_,T,k,O=o.Correct){const D=O===o.Correct?i.operators.EQ:i.operators.NEQ;let M;switch(_){case"null":return(0,i._)`${T} ${D} null`;case"array":M=(0,i._)`Array.isArray(${T})`;break;case"object":M=(0,i._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":M=P((0,i._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":M=P();break;default:return(0,i._)`typeof ${T} ${D} ${_}`}return O===o.Correct?M:(0,i.not)(M);function P(U=i.nil){return(0,i.and)((0,i._)`typeof ${T} == "number"`,U,k?(0,i._)`isFinite(${T})`:i.nil)}}e.checkDataType=d;function p(_,T,k,O){if(_.length===1)return d(_[0],T,k,O);let D;const M=(0,s.toHash)(_);if(M.array&&M.object){const P=(0,i._)`typeof ${T} != "object"`;D=M.null?P:(0,i._)`!${T} || ${P}`,delete M.null,delete M.array,delete M.object}else D=i.nil;M.number&&delete M.integer;for(const P in M)D=(0,i.and)(D,d(P,T,k,O));return D}e.checkDataTypes=p;const E={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:T})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${T}}`};function f(_){const T=$(_);(0,n.reportError)(T,E)}e.reportTypeError=f;function $(_){const{gen:T,data:k,schema:O}=_,D=(0,s.schemaRefOrVal)(_,O,"type");return{gen:T,keyword:"type",data:k,schema:O.type,schemaCode:D,schemaValue:D,parentSchema:O,params:{},it:_}}})(Qn);var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.assignDefaults=void 0;const xr=re,rp=le;function np(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)Xa(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Xa(e,s,i.default))}Zi.assignDefaults=np;function Xa(e,t,r){const{gen:n,compositeRule:i,data:s,opts:o}=e;if(r===void 0)return;const c=(0,xr._)`${s}${(0,xr.getProperty)(t)}`;if(i){(0,rp.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,xr._)`${c} === undefined`;o.useDefaults==="empty"&&(u=(0,xr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,xr._)`${c} = ${(0,xr.stringify)(r)}`)}var zt={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.validateUnion=ne.validateArray=ne.usePattern=ne.callValidateCode=ne.schemaProperties=ne.allSchemaProperties=ne.noPropertyInData=ne.propertyInData=ne.isOwnProperty=ne.hasPropFunc=ne.reportMissingProp=ne.checkMissingProp=ne.checkReportMissingProp=void 0;const $e=re,Eo=le,Yt=Vt,ip=le;function sp(e,t){const{gen:r,data:n,it:i}=e;r.if(go(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,$e._)`${t}`},!0),e.error()})}ne.checkReportMissingProp=sp;function op({gen:e,data:t,it:{opts:r}},n,i){return(0,$e.or)(...n.map(s=>(0,$e.and)(go(e,t,s,r.ownProperties),(0,$e._)`${i} = ${s}`)))}ne.checkMissingProp=op;function ap(e,t){e.setParams({missingProperty:t},!0),e.error()}ne.reportMissingProp=ap;function df(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,$e._)`Object.prototype.hasOwnProperty`})}ne.hasPropFunc=df;function vo(e,t,r){return(0,$e._)`${df(e)}.call(${t}, ${r})`}ne.isOwnProperty=vo;function cp(e,t,r,n){const i=(0,$e._)`${t}${(0,$e.getProperty)(r)} !== undefined`;return n?(0,$e._)`${i} && ${vo(e,t,r)}`:i}ne.propertyInData=cp;function go(e,t,r,n){const i=(0,$e._)`${t}${(0,$e.getProperty)(r)} === undefined`;return n?(0,$e.or)(i,(0,$e.not)(vo(e,t,r))):i}ne.noPropertyInData=go;function hf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ne.allSchemaProperties=hf;function up(e,t){return hf(t).filter(r=>!(0,Eo.alwaysValidSchema)(e,t[r]))}ne.schemaProperties=up;function fp({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},c,u,m){const a=m?(0,$e._)`${e}, ${t}, ${n}${i}`:t,l=[[Yt.default.instancePath,(0,$e.strConcat)(Yt.default.instancePath,s)],[Yt.default.parentData,o.parentData],[Yt.default.parentDataProperty,o.parentDataProperty],[Yt.default.rootData,Yt.default.rootData]];o.opts.dynamicRef&&l.push([Yt.default.dynamicAnchors,Yt.default.dynamicAnchors]);const v=(0,$e._)`${a}, ${r.object(...l)}`;return u!==$e.nil?(0,$e._)`${c}.call(${u}, ${v})`:(0,$e._)`${c}(${v})`}ne.callValidateCode=fp;const lp=(0,$e._)`new RegExp`;function dp({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,$e._)`${i.code==="new RegExp"?lp:(0,ip.useFunc)(e,i)}(${r}, ${n})`})}ne.usePattern=dp;function hp(e){const{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){const c=t.let("valid",!0);return o(()=>t.assign(c,!1)),c}return t.var(s,!0),o(()=>t.break()),s;function o(c){const u=t.const("len",(0,$e._)`${r}.length`);t.forRange("i",0,u,m=>{e.subschema({keyword:n,dataProp:m,dataPropType:Eo.Type.Num},s),t.if((0,$e.not)(s),c)})}}ne.validateArray=hp;function mp(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Eo.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,m)=>{const a=e.subschema({keyword:n,schemaProp:m,compositeRule:!0},c);t.assign(o,(0,$e._)`${o} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,$e.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ne.validateUnion=mp;Object.defineProperty(zt,"__esModule",{value:!0});zt.validateKeywordUsage=zt.validSchemaType=zt.funcKeywordCode=zt.macroKeywordCode=void 0;const Ze=re,gr=Vt,pp=ne,yp=Yn;function Ep(e,t){const{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=e,c=t.macro.call(o.self,i,s,o),u=mf(r,n,c);o.opts.validateSchema!==!1&&o.self.validateSchema(c,!0);const m=r.name("valid");e.subschema({schema:c,schemaPath:Ze.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},m),e.pass(m,()=>e.error(!0))}zt.macroKeywordCode=Ep;function vp(e,t){var r;const{gen:n,keyword:i,schema:s,parentSchema:o,$data:c,it:u}=e;$p(u,t);const m=!c&&t.compile?t.compile.call(u.self,s,o,u):t.validate,a=mf(n,i,m),l=n.let("valid");e.block$data(l,v),e.ok((r=t.valid)!==null&&r!==void 0?r:l);function v(){if(t.errors===!1)p(),t.modifying&&Za(e),E(()=>e.error());else{const f=t.async?h():d();t.modifying&&Za(e),E(()=>gp(e,f))}}function h(){const f=n.let("ruleErrs",null);return n.try(()=>p((0,Ze._)`await `),$=>n.assign(l,!1).if((0,Ze._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(f,(0,Ze._)`${$}.errors`),()=>n.throw($))),f}function d(){const f=(0,Ze._)`${a}.errors`;return n.assign(f,null),p(Ze.nil),f}function p(f=t.async?(0,Ze._)`await `:Ze.nil){const $=u.opts.passContext?gr.default.this:gr.default.self,_=!("compile"in t&&!c||t.schema===!1);n.assign(l,(0,Ze._)`${f}${(0,pp.callValidateCode)(e,a,$,_)}`,t.modifying)}function E(f){var $;n.if((0,Ze.not)(($=t.valid)!==null&&$!==void 0?$:l),f)}}zt.funcKeywordCode=vp;function Za(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ze._)`${n.parentData}[${n.parentDataProperty}]`))}function gp(e,t){const{gen:r}=e;r.if((0,Ze._)`Array.isArray(${t})`,()=>{r.assign(gr.default.vErrors,(0,Ze._)`${gr.default.vErrors} === null ? ${t} : ${gr.default.vErrors}.concat(${t})`).assign(gr.default.errors,(0,Ze._)`${gr.default.vErrors}.length`),(0,yp.extendErrors)(e)},()=>e.error())}function $p({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function mf(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ze.stringify)(r)})}function _p(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e=="undefined")}zt.validSchemaType=_p;function Sp({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");const o=i.dependencies;if(o!=null&&o.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}zt.validateKeywordUsage=Sp;var fr={};Object.defineProperty(fr,"__esModule",{value:!0});fr.extendSubschemaMode=fr.extendSubschemaData=fr.getSubschema=void 0;const kt=re,pf=le;function wp(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,kt._)`${e.schemaPath}${(0,kt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,kt._)`${e.schemaPath}${(0,kt.getProperty)(t)}${(0,kt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,pf.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}fr.getSubschema=wp;function Np(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(r!==void 0){const{errorPath:m,dataPathArr:a,opts:l}=t,v=c.let("data",(0,kt._)`${t.data}${(0,kt.getProperty)(r)}`,!0);u(v),e.errorPath=(0,kt.str)`${m}${(0,pf.getErrorPath)(r,n,l.jsPropertySyntax)}`,e.parentDataProperty=(0,kt._)`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(i!==void 0){const m=i instanceof kt.Name?i:c.let("data",i,!0);u(m),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function u(m){e.data=m,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,m]}}fr.extendSubschemaData=Np;function Ip(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}fr.extendSubschemaMode=Ip;var xe={},yf=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},Ef={exports:{}},ur=Ef.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Si(t,n,i,e,"",e)};ur.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ur.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ur.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ur.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Si(e,t,r,n,i,s,o,c,u,m){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,c,u,m);for(var a in n){var l=n[a];if(Array.isArray(l)){if(a in ur.arrayKeywords)for(var v=0;v<l.length;v++)Si(e,t,r,l[v],i+"/"+a+"/"+v,s,i,a,n,v)}else if(a in ur.propsKeywords){if(l&&typeof l=="object")for(var h in l)Si(e,t,r,l[h],i+"/"+a+"/"+Op(h),s,i,a,n,h)}else(a in ur.keywords||e.allKeys&&!(a in ur.skipKeywords))&&Si(e,t,r,l,i+"/"+a,s,i,a,n)}r(n,i,s,o,c,u,m)}}function Op(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(xe,"__esModule",{value:!0});xe.getSchemaRefs=xe.resolveUrl=xe.normalizeId=xe._getFullPath=xe.getFullPath=xe.inlineRef=void 0;const Tp=le,Dp=yf,Rp=Ef.exports,Cp=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Pp(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ms(e):t?vf(e)<=t:!1}xe.inlineRef=Pp;const Ap=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ms(e){for(const t in e){if(Ap.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Ms)||typeof r=="object"&&Ms(r))return!0}return!1}function vf(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!Cp.has(r)&&(typeof e[r]=="object"&&(0,Tp.eachItem)(e[r],n=>t+=vf(n)),t===1/0))return 1/0}return t}function gf(e,t="",r){r!==!1&&(t=Zr(t));const n=e.parse(t);return $f(e,n)}xe.getFullPath=gf;function $f(e,t){return e.serialize(t).split("#")[0]+"#"}xe._getFullPath=$f;const bp=/#\/?$/;function Zr(e){return e?e.replace(bp,""):""}xe.normalizeId=Zr;function Lp(e,t,r){return r=Zr(r),e.resolve(t,r)}xe.resolveUrl=Lp;const Fp=/^[a-z_][-a-z0-9._]*$/i;function jp(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Zr(e[r]||t),s={"":i},o=gf(n,i,!1),c={},u=new Set;return Rp(e,{allKeys:!0},(l,v,h,d)=>{if(d===void 0)return;const p=o+v;let E=s[d];typeof l[r]=="string"&&(E=f.call(this,l[r])),$.call(this,l.$anchor),$.call(this,l.$dynamicAnchor),s[v]=E;function f(_){const T=this.opts.uriResolver.resolve;if(_=Zr(E?T(E,_):_),u.has(_))throw a(_);u.add(_);let k=this.refs[_];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?m(l,k.schema,_):_!==Zr(p)&&(_[0]==="#"?(m(l,c[_],_),c[_]=l):this.refs[_]=p),_}function $(_){if(typeof _=="string"){if(!Fp.test(_))throw new Error(`invalid anchor "${_}"`);f.call(this,`#${_}`)}}}),c;function m(l,v,h){if(v!==void 0&&!Dp(l,v))throw a(h)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}xe.getSchemaRefs=jp;Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getData=Tt.KeywordCxt=Tt.validateFunctionCode=void 0;const _f=an,Ja=Qn,$o=Kt,Li=Qn,Mp=Zi,An=zt,vs=fr,H=re,J=Vt,kp=xe,Wt=le,wn=Yn;function Up(e){if(Nf(e)&&(If(e),wf(e))){Vp(e);return}Sf(e,()=>(0,_f.topBoolOrEmptySchema)(e))}Tt.validateFunctionCode=Up;function Sf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,H._)`${J.default.data}, ${J.default.valCxt}`,n.$async,()=>{e.code((0,H._)`"use strict"; ${Ya(r,i)}`),xp(e,i),e.code(s)}):e.func(t,(0,H._)`${J.default.data}, ${zp(i)}`,n.$async,()=>e.code(Ya(r,i)).code(s))}function zp(e){return(0,H._)`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${e.dynamicRef?(0,H._)`, ${J.default.dynamicAnchors}={}`:H.nil}}={}`}function xp(e,t){e.if(J.default.valCxt,()=>{e.var(J.default.instancePath,(0,H._)`${J.default.valCxt}.${J.default.instancePath}`),e.var(J.default.parentData,(0,H._)`${J.default.valCxt}.${J.default.parentData}`),e.var(J.default.parentDataProperty,(0,H._)`${J.default.valCxt}.${J.default.parentDataProperty}`),e.var(J.default.rootData,(0,H._)`${J.default.valCxt}.${J.default.rootData}`),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,H._)`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{e.var(J.default.instancePath,(0,H._)`""`),e.var(J.default.parentData,(0,H._)`undefined`),e.var(J.default.parentDataProperty,(0,H._)`undefined`),e.var(J.default.rootData,J.default.data),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,H._)`{}`)})}function Vp(e){const{schema:t,opts:r,gen:n}=e;Sf(e,()=>{r.$comment&&t.$comment&&Tf(e),Kp(e),n.let(J.default.vErrors,null),n.let(J.default.errors,0),r.unevaluated&&qp(e),Of(e),Zp(e)})}function qp(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,H._)`${r}.evaluated`),t.if((0,H._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,H._)`${e.evaluated}.props`,(0,H._)`undefined`)),t.if((0,H._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,H._)`${e.evaluated}.items`,(0,H._)`undefined`))}function Ya(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,H._)`/*# sourceURL=${r} */`:H.nil}function Gp(e,t){if(Nf(e)&&(If(e),wf(e))){Bp(e,t);return}(0,_f.boolOrEmptySchema)(e,t)}function wf({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Nf(e){return typeof e.schema!="boolean"}function Bp(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Tf(e),Wp(e),Xp(e);const s=n.const("_errs",J.default.errors);Of(e,s),n.var(t,(0,H._)`${s} === ${J.default.errors}`)}function If(e){(0,Wt.checkUnknownRules)(e),Hp(e)}function Of(e,t){if(e.opts.jtd)return Qa(e,[],!1,t);const r=(0,Ja.getSchemaTypes)(e.schema),n=(0,Ja.coerceAndCheckDataType)(e,r);Qa(e,r,!n,t)}function Hp(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Wt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Kp(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Wt.checkStrictMode)(e,"default is ignored in the schema root")}function Wp(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,kp.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Xp(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Tf({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const s=r.$comment;if(i.$comment===!0)e.code((0,H._)`${J.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,H.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,H._)`${J.default.self}.opts.$comment(${s}, ${o}, ${c}.schema)`)}}function Zp(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,H._)`${J.default.errors} === 0`,()=>t.return(J.default.data),()=>t.throw((0,H._)`new ${i}(${J.default.vErrors})`)):(t.assign((0,H._)`${n}.errors`,J.default.vErrors),s.unevaluated&&Jp(e),t.return((0,H._)`${J.default.errors} === 0`))}function Jp({gen:e,evaluated:t,props:r,items:n}){r instanceof H.Name&&e.assign((0,H._)`${t}.props`,r),n instanceof H.Name&&e.assign((0,H._)`${t}.items`,n)}function Qa(e,t,r,n){const{gen:i,schema:s,data:o,allErrors:c,opts:u,self:m}=e,{RULES:a}=m;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Wt.schemaHasRulesButRef)(s,a))){i.block(()=>Rf(e,"$ref",a.all.$ref.definition));return}u.jtd||Yp(e,t),i.block(()=>{for(const v of a.rules)l(v);l(a.post)});function l(v){!(0,$o.shouldUseGroup)(s,v)||(v.type?(i.if((0,Li.checkDataType)(v.type,o,u.strictNumbers)),ec(e,v),t.length===1&&t[0]===v.type&&r&&(i.else(),(0,Li.reportTypeError)(e)),i.endIf()):ec(e,v),c||i.if((0,H._)`${J.default.errors} === ${n||0}`))}}function ec(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Mp.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,$o.shouldUseRule)(n,s)&&Rf(e,s.keyword,s.definition,t.type)})}function Yp(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Qp(e,t),e.opts.allowUnionTypes||ey(e,t),ty(e,e.dataTypes))}function Qp(e,t){if(!!t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{tc(e.dataTypes,r)||_o(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>tc(t,r))}}function ey(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&_o(e,"use allowUnionTypes to allow union type keyword")}function ty(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,$o.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>ry(t,o))&&_o(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function ry(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function tc(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function _o(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,Wt.checkStrictMode)(e,t,e.opts.strictTypes)}class Df{constructor(t,r,n){if((0,An.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Wt.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Cf(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,An.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",J.default.errors))}result(t,r,n){this.failResult((0,H.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,H.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,H._)`${r} !== undefined && (${(0,H.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?wn.reportExtraError:wn.reportError)(this,this.def.error,r)}$dataError(){(0,wn.reportError)(this,this.def.$dataError||wn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,wn.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=H.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=H.nil,r=H.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,H.or)((0,H._)`${i} === undefined`,r)),t!==H.nil&&n.assign(t,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==H.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,H.or)(o(),c());function o(){if(n.length){if(!(r instanceof H.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,H._)`${(0,Li.checkDataTypes)(u,r,s.opts.strictNumbers,Li.DataType.Wrong)}`}return H.nil}function c(){if(i.validateSchema){const u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,H._)`!${u}(${r})`}return H.nil}}subschema(t,r){const n=(0,vs.getSubschema)(this.it,t);(0,vs.extendSubschemaData)(n,this.it,t),(0,vs.extendSubschemaMode)(n,t);const i=Et(te(te({},this.it),n),{items:void 0,props:void 0});return Gp(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&t.props!==void 0&&(n.props=Wt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Wt.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,H.Name)),!0}}Tt.KeywordCxt=Df;function Rf(e,t,r,n){const i=new Df(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,An.funcKeywordCode)(i,r):"macro"in r?(0,An.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,An.funcKeywordCode)(i,r)}const ny=/^\/(?:[^~]|~0|~1)*$/,iy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Cf(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return J.default.rootData;if(e[0]==="/"){if(!ny.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=J.default.rootData}else{const m=iy.exec(e);if(!m)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+m[1];if(i=m[2],i==="#"){if(a>=t)throw new Error(u("property/index",a));return n[t-a]}if(a>t)throw new Error(u("data",a));if(s=r[t-a],!i)return s}let o=s;const c=i.split("/");for(const m of c)m&&(s=(0,H._)`${s}${(0,H.getProperty)((0,Wt.unescapeJsonPointer)(m))}`,o=(0,H._)`${o} && ${s}`);return o;function u(m,a){return`Cannot access ${m} ${a} levels up, current level is ${t}`}}Tt.getData=Cf;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class sy extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Ji.default=sy;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});const gs=xe;class oy extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,gs.resolveUrl)(t,r,n),this.missingSchema=(0,gs.normalizeId)((0,gs.getFullPath)(t,this.missingRef))}}Yi.default=oy;var at={};Object.defineProperty(at,"__esModule",{value:!0});at.resolveSchema=at.getCompilingSchema=at.resolveRef=at.compileSchema=at.SchemaEnv=void 0;const gt=re,ay=Ji,Er=Vt,Ot=xe,rc=le,cy=Tt;class Qi{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Ot.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}at.SchemaEnv=Qi;function So(e){const t=Pf.call(this,e);if(t)return t;const r=(0,Ot.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new gt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let c;e.$async&&(c=o.scopeValue("Error",{ref:ay.default,code:(0,gt._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const m={gen:o,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[gt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,gt.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gt._)`""`,opts:this.opts,self:this};let a;try{this._compilations.add(e),(0,cy.validateFunctionCode)(m),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(Er.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const h=new Function(`${Er.default.self}`,`${Er.default.scope}`,a)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:d,items:p}=m;h.evaluated={props:d instanceof gt.Name?void 0:d,items:p instanceof gt.Name?void 0:p,dynamicProps:d instanceof gt.Name,dynamicItems:p instanceof gt.Name},h.source&&(h.source.evaluated=(0,gt.stringify)(h.evaluated))}return e.validate=h,e}catch(l){throw delete e.validate,delete e.validateName,a&&this.logger.error("Error compiling schema, function code:",a),l}finally{this._compilations.delete(e)}}at.compileSchema=So;function uy(e,t,r){var n;r=(0,Ot.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=dy.call(this,e,r);if(s===void 0){const o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;o&&(s=new Qi({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=fy.call(this,s)}at.resolveRef=uy;function fy(e){return(0,Ot.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:So.call(this,e)}function Pf(e){for(const t of this._compilations)if(ly(t,e))return t}at.getCompilingSchema=Pf;function ly(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function dy(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||es.call(this,e,t)}function es(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Ot._getFullPath)(this.opts.uriResolver,r);let i=(0,Ot.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return $s.call(this,r,e);const s=(0,Ot.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=es.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:$s.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||So.call(this,o),s===(0,Ot.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,m=c[u];return m&&(i=(0,Ot.resolveUrl)(this.opts.uriResolver,i,m)),new Qi({schema:c,schemaId:u,root:e,baseId:i})}return $s.call(this,r,o)}}at.resolveSchema=es;const hy=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $s(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,rc.unescapeFragment)(c)];if(u===void 0)return;r=u;const m=typeof r=="object"&&r[this.opts.schemaId];!hy.has(c)&&m&&(t=(0,Ot.resolveUrl)(this.opts.uriResolver,t,m))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,rc.schemaHasRulesButRef)(r,this.RULES)){const c=(0,Ot.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=es.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Qi({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const my="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",py="Meta-schema for $data reference (JSON AnySchema extension proposal)",yy="object",Ey=["$data"],vy={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},gy=!1;var $y={$id:my,description:py,type:yy,required:Ey,properties:vy,additionalProperties:gy},wo={},ks={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(ir,function(r){function n(){for(var w=arguments.length,g=Array(w),N=0;N<w;N++)g[N]=arguments[N];if(g.length>1){g[0]=g[0].slice(0,-1);for(var b=g.length-1,A=1;A<b;++A)g[A]=g[A].slice(1,-1);return g[b]=g[b].slice(1),g.join("")}else return g[0]}function i(w){return"(?:"+w+")"}function s(w){return w===void 0?"undefined":w===null?"null":Object.prototype.toString.call(w).split(" ").pop().split("]").shift().toLowerCase()}function o(w){return w.toUpperCase()}function c(w){return w!=null?w instanceof Array?w:typeof w.length!="number"||w.split||w.setInterval||w.call?[w]:Array.prototype.slice.call(w):[]}function u(w,g){var N=w;if(g)for(var b in g)N[b]=g[b];return N}function m(w){var g="[A-Za-z]",N="[0-9]",b=n(N,"[A-Fa-f]"),A=i(i("%[EFef]"+b+"%"+b+b+"%"+b+b)+"|"+i("%[89A-Fa-f]"+b+"%"+b+b)+"|"+i("%"+b+b)),K="[\\:\\/\\?\\#\\[\\]\\@]",W="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",fe=n(K,W),ge=w?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Re=w?"[\\uE000-\\uF8FF]":"[]",se=n(g,N,"[\\-\\.\\_\\~]",ge);i(g+n(g,N,"[\\+\\-\\.]")+"*"),i(i(A+"|"+n(se,W,"[\\:]"))+"*");var Ee=i(i("25[0-5]")+"|"+i("2[0-4]"+N)+"|"+i("1"+N+N)+"|"+i("0?[1-9]"+N)+"|0?0?"+N),Ce=i(Ee+"\\."+Ee+"\\."+Ee+"\\."+Ee),Q=i(b+"{1,4}"),_e=i(i(Q+"\\:"+Q)+"|"+Ce),Ae=i(i(Q+"\\:")+"{6}"+_e),Se=i("\\:\\:"+i(Q+"\\:")+"{5}"+_e),Zt=i(i(Q)+"?\\:\\:"+i(Q+"\\:")+"{4}"+_e),Lt=i(i(i(Q+"\\:")+"{0,1}"+Q)+"?\\:\\:"+i(Q+"\\:")+"{3}"+_e),Ft=i(i(i(Q+"\\:")+"{0,2}"+Q)+"?\\:\\:"+i(Q+"\\:")+"{2}"+_e),kr=i(i(i(Q+"\\:")+"{0,3}"+Q)+"?\\:\\:"+Q+"\\:"+_e),mr=i(i(i(Q+"\\:")+"{0,4}"+Q)+"?\\:\\:"+_e),pt=i(i(i(Q+"\\:")+"{0,5}"+Q)+"?\\:\\:"+Q),jt=i(i(i(Q+"\\:")+"{0,6}"+Q)+"?\\:\\:"),pr=i([Ae,Se,Zt,Lt,Ft,kr,mr,pt,jt].join("|")),qt=i(i(se+"|"+A)+"+");i("[vV]"+b+"+\\."+n(se,W,"[\\:]")+"+"),i(i(A+"|"+n(se,W))+"*");var _n=i(A+"|"+n(se,W,"[\\:\\@]"));return i(i(A+"|"+n(se,W,"[\\@]"))+"+"),i(i(_n+"|"+n("[\\/\\?]",Re))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,N,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",se,W),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",se,W),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",se,W),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",se,W),"g"),NOT_QUERY:new RegExp(n("[^\\%]",se,W,"[\\:\\@\\/\\?]",Re),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",se,W,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",se,W),"g"),UNRESERVED:new RegExp(se,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",se,fe),"g"),PCT_ENCODED:new RegExp(A,"g"),IPV4ADDRESS:new RegExp("^("+Ce+")$"),IPV6ADDRESS:new RegExp("^\\[?("+pr+")"+i(i("\\%25|\\%(?!"+b+"{2})")+"("+qt+")")+"?\\]?$")}}var a=m(!1),l=m(!0),v=function(){function w(g,N){var b=[],A=!0,K=!1,W=void 0;try{for(var fe=g[Symbol.iterator](),ge;!(A=(ge=fe.next()).done)&&(b.push(ge.value),!(N&&b.length===N));A=!0);}catch(Re){K=!0,W=Re}finally{try{!A&&fe.return&&fe.return()}finally{if(K)throw W}}return b}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return w(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(w){if(Array.isArray(w)){for(var g=0,N=Array(w.length);g<w.length;g++)N[g]=w[g];return N}else return Array.from(w)},d=2147483647,p=36,E=1,f=26,$=38,_=700,T=72,k=128,O="-",D=/^xn--/,M=/[^\0-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=p-E,V=Math.floor,Y=String.fromCharCode;function Z(w){throw new RangeError(U[w])}function ee(w,g){for(var N=[],b=w.length;b--;)N[b]=g(w[b]);return N}function ue(w,g){var N=w.split("@"),b="";N.length>1&&(b=N[0]+"@",w=N[1]),w=w.replace(P,".");var A=w.split("."),K=ee(A,g).join(".");return b+K}function X(w){for(var g=[],N=0,b=w.length;N<b;){var A=w.charCodeAt(N++);if(A>=55296&&A<=56319&&N<b){var K=w.charCodeAt(N++);(K&64512)==56320?g.push(((A&1023)<<10)+(K&1023)+65536):(g.push(A),N--)}else g.push(A)}return g}var j=function(g){return String.fromCodePoint.apply(String,h(g))},z=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:p},R=function(g,N){return g+22+75*(g<26)-((N!=0)<<5)},I=function(g,N,b){var A=0;for(g=b?V(g/_):g>>1,g+=V(g/N);g>x*f>>1;A+=p)g=V(g/x);return V(A+(x+1)*g/(g+$))},F=function(g){var N=[],b=g.length,A=0,K=k,W=T,fe=g.lastIndexOf(O);fe<0&&(fe=0);for(var ge=0;ge<fe;++ge)g.charCodeAt(ge)>=128&&Z("not-basic"),N.push(g.charCodeAt(ge));for(var Re=fe>0?fe+1:0;Re<b;){for(var se=A,Ee=1,Ce=p;;Ce+=p){Re>=b&&Z("invalid-input");var Q=z(g.charCodeAt(Re++));(Q>=p||Q>V((d-A)/Ee))&&Z("overflow"),A+=Q*Ee;var _e=Ce<=W?E:Ce>=W+f?f:Ce-W;if(Q<_e)break;var Ae=p-_e;Ee>V(d/Ae)&&Z("overflow"),Ee*=Ae}var Se=N.length+1;W=I(A-se,Se,se==0),V(A/Se)>d-K&&Z("overflow"),K+=V(A/Se),A%=Se,N.splice(A++,0,K)}return String.fromCodePoint.apply(String,N)},C=function(g){var N=[];g=X(g);var b=g.length,A=k,K=0,W=T,fe=!0,ge=!1,Re=void 0;try{for(var se=g[Symbol.iterator](),Ee;!(fe=(Ee=se.next()).done);fe=!0){var Ce=Ee.value;Ce<128&&N.push(Y(Ce))}}catch(Sn){ge=!0,Re=Sn}finally{try{!fe&&se.return&&se.return()}finally{if(ge)throw Re}}var Q=N.length,_e=Q;for(Q&&N.push(O);_e<b;){var Ae=d,Se=!0,Zt=!1,Lt=void 0;try{for(var Ft=g[Symbol.iterator](),kr;!(Se=(kr=Ft.next()).done);Se=!0){var mr=kr.value;mr>=A&&mr<Ae&&(Ae=mr)}}catch(Sn){Zt=!0,Lt=Sn}finally{try{!Se&&Ft.return&&Ft.return()}finally{if(Zt)throw Lt}}var pt=_e+1;Ae-A>V((d-K)/pt)&&Z("overflow"),K+=(Ae-A)*pt,A=Ae;var jt=!0,pr=!1,qt=void 0;try{for(var _n=g[Symbol.iterator](),ga;!(jt=(ga=_n.next()).done);jt=!0){var $a=ga.value;if($a<A&&++K>d&&Z("overflow"),$a==A){for(var ri=K,ni=p;;ni+=p){var ii=ni<=W?E:ni>=W+f?f:ni-W;if(ri<ii)break;var _a=ri-ii,Sa=p-ii;N.push(Y(R(ii+_a%Sa,0))),ri=V(_a/Sa)}N.push(Y(R(ri,0))),W=I(K,pt,_e==Q),K=0,++_e}}}catch(Sn){pr=!0,qt=Sn}finally{try{!jt&&_n.return&&_n.return()}finally{if(pr)throw qt}}++K,++A}return N.join("")},y=function(g){return ue(g,function(N){return D.test(N)?F(N.slice(4).toLowerCase()):N})},S=function(g){return ue(g,function(N){return M.test(N)?"xn--"+C(N):N})},L={version:"2.1.0",ucs2:{decode:X,encode:j},decode:F,encode:C,toASCII:S,toUnicode:y},q={};function G(w){var g=w.charCodeAt(0),N=void 0;return g<16?N="%0"+g.toString(16).toUpperCase():g<128?N="%"+g.toString(16).toUpperCase():g<2048?N="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():N="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),N}function ie(w){for(var g="",N=0,b=w.length;N<b;){var A=parseInt(w.substr(N+1,2),16);if(A<128)g+=String.fromCharCode(A),N+=3;else if(A>=194&&A<224){if(b-N>=6){var K=parseInt(w.substr(N+4,2),16);g+=String.fromCharCode((A&31)<<6|K&63)}else g+=w.substr(N,6);N+=6}else if(A>=224){if(b-N>=9){var W=parseInt(w.substr(N+4,2),16),fe=parseInt(w.substr(N+7,2),16);g+=String.fromCharCode((A&15)<<12|(W&63)<<6|fe&63)}else g+=w.substr(N,9);N+=9}else g+=w.substr(N,3),N+=3}return g}function ae(w,g){function N(b){var A=ie(b);return A.match(g.UNRESERVED)?A:b}return w.scheme&&(w.scheme=String(w.scheme).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_SCHEME,"")),w.userinfo!==void 0&&(w.userinfo=String(w.userinfo).replace(g.PCT_ENCODED,N).replace(g.NOT_USERINFO,G).replace(g.PCT_ENCODED,o)),w.host!==void 0&&(w.host=String(w.host).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_HOST,G).replace(g.PCT_ENCODED,o)),w.path!==void 0&&(w.path=String(w.path).replace(g.PCT_ENCODED,N).replace(w.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,G).replace(g.PCT_ENCODED,o)),w.query!==void 0&&(w.query=String(w.query).replace(g.PCT_ENCODED,N).replace(g.NOT_QUERY,G).replace(g.PCT_ENCODED,o)),w.fragment!==void 0&&(w.fragment=String(w.fragment).replace(g.PCT_ENCODED,N).replace(g.NOT_FRAGMENT,G).replace(g.PCT_ENCODED,o)),w}function De(w){return w.replace(/^0*(.*)/,"$1")||"0"}function Pt(w,g){var N=w.match(g.IPV4ADDRESS)||[],b=v(N,2),A=b[1];return A?A.split(".").map(De).join("."):w}function Ar(w,g){var N=w.match(g.IPV6ADDRESS)||[],b=v(N,3),A=b[1],K=b[2];if(A){for(var W=A.toLowerCase().split("::").reverse(),fe=v(W,2),ge=fe[0],Re=fe[1],se=Re?Re.split(":").map(De):[],Ee=ge.split(":").map(De),Ce=g.IPV4ADDRESS.test(Ee[Ee.length-1]),Q=Ce?7:8,_e=Ee.length-Q,Ae=Array(Q),Se=0;Se<Q;++Se)Ae[Se]=se[Se]||Ee[_e+Se]||"";Ce&&(Ae[Q-1]=Pt(Ae[Q-1],g));var Zt=Ae.reduce(function(pt,jt,pr){if(!jt||jt==="0"){var qt=pt[pt.length-1];qt&&qt.index+qt.length===pr?qt.length++:pt.push({index:pr,length:1})}return pt},[]),Lt=Zt.sort(function(pt,jt){return jt.length-pt.length})[0],Ft=void 0;if(Lt&&Lt.length>1){var kr=Ae.slice(0,Lt.index),mr=Ae.slice(Lt.index+Lt.length);Ft=kr.join(":")+"::"+mr.join(":")}else Ft=Ae.join(":");return K&&(Ft+="%"+K),Ft}else return w}var mn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pn="".match(/(){0}/)[1]===void 0;function ft(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},b=g.iri!==!1?l:a;g.reference==="suffix"&&(w=(g.scheme?g.scheme+":":"")+"//"+w);var A=w.match(mn);if(A){pn?(N.scheme=A[1],N.userinfo=A[3],N.host=A[4],N.port=parseInt(A[5],10),N.path=A[6]||"",N.query=A[7],N.fragment=A[8],isNaN(N.port)&&(N.port=A[5])):(N.scheme=A[1]||void 0,N.userinfo=w.indexOf("@")!==-1?A[3]:void 0,N.host=w.indexOf("//")!==-1?A[4]:void 0,N.port=parseInt(A[5],10),N.path=A[6]||"",N.query=w.indexOf("?")!==-1?A[7]:void 0,N.fragment=w.indexOf("#")!==-1?A[8]:void 0,isNaN(N.port)&&(N.port=w.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?A[4]:void 0)),N.host&&(N.host=Ar(Pt(N.host,b),b)),N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&!N.path&&N.query===void 0?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==N.reference&&(N.error=N.error||"URI is not a "+g.reference+" reference.");var K=q[(g.scheme||N.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!K||!K.unicodeSupport)){if(N.host&&(g.domainHost||K&&K.domainHost))try{N.host=L.toASCII(N.host.replace(b.PCT_ENCODED,ie).toLowerCase())}catch(W){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+W}ae(N,a)}else ae(N,b);K&&K.parse&&K.parse(N,g)}else N.error=N.error||"URI can not be parsed.";return N}function yn(w,g){var N=g.iri!==!1?l:a,b=[];return w.userinfo!==void 0&&(b.push(w.userinfo),b.push("@")),w.host!==void 0&&b.push(Ar(Pt(String(w.host),N),N).replace(N.IPV6ADDRESS,function(A,K,W){return"["+K+(W?"%25"+W:"")+"]"})),(typeof w.port=="number"||typeof w.port=="string")&&(b.push(":"),b.push(String(w.port))),b.length?b.join(""):void 0}var br=/^\.\.?\//,Lr=/^\/\.(\/|$)/,Fr=/^\/\.\.(\/|$)/,En=/^\/?(?:.|\n)*?(?=\/|$)/;function At(w){for(var g=[];w.length;)if(w.match(br))w=w.replace(br,"");else if(w.match(Lr))w=w.replace(Lr,"/");else if(w.match(Fr))w=w.replace(Fr,"/"),g.pop();else if(w==="."||w==="..")w="";else{var N=w.match(En);if(N){var b=N[0];w=w.slice(b.length),g.push(b)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function nt(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=g.iri?l:a,b=[],A=q[(g.scheme||w.scheme||"").toLowerCase()];if(A&&A.serialize&&A.serialize(w,g),w.host&&!N.IPV6ADDRESS.test(w.host)){if(g.domainHost||A&&A.domainHost)try{w.host=g.iri?L.toUnicode(w.host):L.toASCII(w.host.replace(N.PCT_ENCODED,ie).toLowerCase())}catch(fe){w.error=w.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+fe}}ae(w,N),g.reference!=="suffix"&&w.scheme&&(b.push(w.scheme),b.push(":"));var K=yn(w,g);if(K!==void 0&&(g.reference!=="suffix"&&b.push("//"),b.push(K),w.path&&w.path.charAt(0)!=="/"&&b.push("/")),w.path!==void 0){var W=w.path;!g.absolutePath&&(!A||!A.absolutePath)&&(W=At(W)),K===void 0&&(W=W.replace(/^\/\//,"/%2F")),b.push(W)}return w.query!==void 0&&(b.push("?"),b.push(w.query)),w.fragment!==void 0&&(b.push("#"),b.push(w.fragment)),b.join("")}function jr(w,g){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments[3],A={};return b||(w=ft(nt(w,N),N),g=ft(nt(g,N),N)),N=N||{},!N.tolerant&&g.scheme?(A.scheme=g.scheme,A.userinfo=g.userinfo,A.host=g.host,A.port=g.port,A.path=At(g.path||""),A.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(A.userinfo=g.userinfo,A.host=g.host,A.port=g.port,A.path=At(g.path||""),A.query=g.query):(g.path?(g.path.charAt(0)==="/"?A.path=At(g.path):((w.userinfo!==void 0||w.host!==void 0||w.port!==void 0)&&!w.path?A.path="/"+g.path:w.path?A.path=w.path.slice(0,w.path.lastIndexOf("/")+1)+g.path:A.path=g.path,A.path=At(A.path)),A.query=g.query):(A.path=w.path,g.query!==void 0?A.query=g.query:A.query=w.query),A.userinfo=w.userinfo,A.host=w.host,A.port=w.port),A.scheme=w.scheme),A.fragment=g.fragment,A}function vn(w,g,N){var b=u({scheme:"null"},N);return nt(jr(ft(w,b),ft(g,b),b,!0),b)}function dr(w,g){return typeof w=="string"?w=nt(ft(w,g),g):s(w)==="object"&&(w=ft(nt(w,g),g)),w}function gn(w,g,N){return typeof w=="string"?w=nt(ft(w,N),N):s(w)==="object"&&(w=nt(w,N)),typeof g=="string"?g=nt(ft(g,N),N):s(g)==="object"&&(g=nt(g,N)),w===g}function ti(w,g){return w&&w.toString().replace(!g||!g.iri?a.ESCAPE:l.ESCAPE,G)}function mt(w,g){return w&&w.toString().replace(!g||!g.iri?a.PCT_ENCODED:l.PCT_ENCODED,ie)}var hr={scheme:"http",domainHost:!0,parse:function(g,N){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,N){var b=String(g.scheme).toLowerCase()==="https";return(g.port===(b?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},la={scheme:"https",domainHost:hr.domainHost,parse:hr.parse,serialize:hr.serialize};function da(w){return typeof w.secure=="boolean"?w.secure:String(w.scheme).toLowerCase()==="wss"}var $n={scheme:"ws",domainHost:!0,parse:function(g,N){var b=g;return b.secure=da(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b},serialize:function(g,N){if((g.port===(da(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var b=g.resourceName.split("?"),A=v(b,2),K=A[0],W=A[1];g.path=K&&K!=="/"?K:void 0,g.query=W,g.resourceName=void 0}return g.fragment=void 0,g}},ha={scheme:"wss",domainHost:$n.domainHost,parse:$n.parse,serialize:$n.serialize},tl={},ma="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",bt="[0-9A-Fa-f]",rl=i(i("%[EFef]"+bt+"%"+bt+bt+"%"+bt+bt)+"|"+i("%[89A-Fa-f]"+bt+"%"+bt+bt)+"|"+i("%"+bt+bt)),nl="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",il="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",sl=n(il,'[\\"\\\\]'),ol="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",al=new RegExp(ma,"g"),Mr=new RegExp(rl,"g"),cl=new RegExp(n("[^]",nl,"[\\.]",'[\\"]',sl),"g"),pa=new RegExp(n("[^]",ma,ol),"g"),ul=pa;function ds(w){var g=ie(w);return g.match(al)?g:w}var ya={scheme:"mailto",parse:function(g,N){var b=g,A=b.to=b.path?b.path.split(","):[];if(b.path=void 0,b.query){for(var K=!1,W={},fe=b.query.split("&"),ge=0,Re=fe.length;ge<Re;++ge){var se=fe[ge].split("=");switch(se[0]){case"to":for(var Ee=se[1].split(","),Ce=0,Q=Ee.length;Ce<Q;++Ce)A.push(Ee[Ce]);break;case"subject":b.subject=mt(se[1],N);break;case"body":b.body=mt(se[1],N);break;default:K=!0,W[mt(se[0],N)]=mt(se[1],N);break}}K&&(b.headers=W)}b.query=void 0;for(var _e=0,Ae=A.length;_e<Ae;++_e){var Se=A[_e].split("@");if(Se[0]=mt(Se[0]),N.unicodeSupport)Se[1]=mt(Se[1],N).toLowerCase();else try{Se[1]=L.toASCII(mt(Se[1],N).toLowerCase())}catch(Zt){b.error=b.error||"Email address's domain name can not be converted to ASCII via punycode: "+Zt}A[_e]=Se.join("@")}return b},serialize:function(g,N){var b=g,A=c(g.to);if(A){for(var K=0,W=A.length;K<W;++K){var fe=String(A[K]),ge=fe.lastIndexOf("@"),Re=fe.slice(0,ge).replace(Mr,ds).replace(Mr,o).replace(cl,G),se=fe.slice(ge+1);try{se=N.iri?L.toUnicode(se):L.toASCII(mt(se,N).toLowerCase())}catch(_e){b.error=b.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+_e}A[K]=Re+"@"+se}b.path=A.join(",")}var Ee=g.headers=g.headers||{};g.subject&&(Ee.subject=g.subject),g.body&&(Ee.body=g.body);var Ce=[];for(var Q in Ee)Ee[Q]!==tl[Q]&&Ce.push(Q.replace(Mr,ds).replace(Mr,o).replace(pa,G)+"="+Ee[Q].replace(Mr,ds).replace(Mr,o).replace(ul,G));return Ce.length&&(b.query=Ce.join("&")),b}},fl=/^([^\:]+)\:(.*)/,Ea={scheme:"urn",parse:function(g,N){var b=g.path&&g.path.match(fl),A=g;if(b){var K=N.scheme||A.scheme||"urn",W=b[1].toLowerCase(),fe=b[2],ge=K+":"+(N.nid||W),Re=q[ge];A.nid=W,A.nss=fe,A.path=void 0,Re&&(A=Re.parse(A,N))}else A.error=A.error||"URN can not be parsed.";return A},serialize:function(g,N){var b=N.scheme||g.scheme||"urn",A=g.nid,K=b+":"+(N.nid||A),W=q[K];W&&(g=W.serialize(g,N));var fe=g,ge=g.nss;return fe.path=(A||N.nid)+":"+ge,fe}},ll=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,va={scheme:"urn:uuid",parse:function(g,N){var b=g;return b.uuid=b.nss,b.nss=void 0,!N.tolerant&&(!b.uuid||!b.uuid.match(ll))&&(b.error=b.error||"UUID is not valid."),b},serialize:function(g,N){var b=g;return b.nss=(g.uuid||"").toLowerCase(),b}};q[hr.scheme]=hr,q[la.scheme]=la,q[$n.scheme]=$n,q[ha.scheme]=ha,q[ya.scheme]=ya,q[Ea.scheme]=Ea,q[va.scheme]=va,r.SCHEMES=q,r.pctEncChar=G,r.pctDecChars=ie,r.parse=ft,r.removeDotSegments=At,r.serialize=nt,r.resolveComponents=jr,r.resolve=vn,r.normalize=dr,r.equal=gn,r.escapeComponent=ti,r.unescapeComponent=mt,Object.defineProperty(r,"__esModule",{value:!0})})})(ks,ks.exports);Object.defineProperty(wo,"__esModule",{value:!0});const Af=ks.exports;Af.code='require("ajv/dist/runtime/uri").default';wo.default=Af;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Tt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=re;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Ji,i=Yi,s=Tr,o=at,c=re,u=xe,m=Qn,a=le,l=$y,v=wo,h=(R,I)=>new RegExp(R,I);h.code="new RegExp";const d=["removeAdditional","useDefaults","coerceTypes"],p=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function _(R){var I,F,C,y,S,L,q,G,ie,ae,De,Pt,Ar,mn,pn,ft,yn,br,Lr,Fr,En,At,nt,jr,vn;const dr=R.strict,gn=(I=R.code)===null||I===void 0?void 0:I.optimize,ti=gn===!0||gn===void 0?1:gn||0,mt=(C=(F=R.code)===null||F===void 0?void 0:F.regExp)!==null&&C!==void 0?C:h,hr=(y=R.uriResolver)!==null&&y!==void 0?y:v.default;return{strictSchema:(L=(S=R.strictSchema)!==null&&S!==void 0?S:dr)!==null&&L!==void 0?L:!0,strictNumbers:(G=(q=R.strictNumbers)!==null&&q!==void 0?q:dr)!==null&&G!==void 0?G:!0,strictTypes:(ae=(ie=R.strictTypes)!==null&&ie!==void 0?ie:dr)!==null&&ae!==void 0?ae:"log",strictTuples:(Pt=(De=R.strictTuples)!==null&&De!==void 0?De:dr)!==null&&Pt!==void 0?Pt:"log",strictRequired:(mn=(Ar=R.strictRequired)!==null&&Ar!==void 0?Ar:dr)!==null&&mn!==void 0?mn:!1,code:R.code?Et(te({},R.code),{optimize:ti,regExp:mt}):{optimize:ti,regExp:mt},loopRequired:(pn=R.loopRequired)!==null&&pn!==void 0?pn:$,loopEnum:(ft=R.loopEnum)!==null&&ft!==void 0?ft:$,meta:(yn=R.meta)!==null&&yn!==void 0?yn:!0,messages:(br=R.messages)!==null&&br!==void 0?br:!0,inlineRefs:(Lr=R.inlineRefs)!==null&&Lr!==void 0?Lr:!0,schemaId:(Fr=R.schemaId)!==null&&Fr!==void 0?Fr:"$id",addUsedSchema:(En=R.addUsedSchema)!==null&&En!==void 0?En:!0,validateSchema:(At=R.validateSchema)!==null&&At!==void 0?At:!0,validateFormats:(nt=R.validateFormats)!==null&&nt!==void 0?nt:!0,unicodeRegExp:(jr=R.unicodeRegExp)!==null&&jr!==void 0?jr:!0,int32range:(vn=R.int32range)!==null&&vn!==void 0?vn:!0,uriResolver:hr}}class T{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts=te(te({},I),_(I));const{es5:F,lines:C}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:p,es5:F,lines:C}),this.logger=V(I.logger);const y=I.validateFormats;I.validateFormats=!1,this.RULES=(0,s.getRules)(),k.call(this,E,I,"NOT SUPPORTED"),k.call(this,f,I,"DEPRECATED","warn"),this._metaOpts=U.call(this),I.formats&&M.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&P.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),D.call(this),I.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:F,schemaId:C}=this.opts;let y=l;C==="id"&&(y=te({},l),y.id=y.$id,delete y.$id),F&&I&&this.addMetaSchema(y,y[C],!1)}defaultMeta(){const{meta:I,schemaId:F}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[F]||I:void 0}validate(I,F){let C;if(typeof I=="string"){if(C=this.getSchema(I),!C)throw new Error(`no schema with key or ref "${I}"`)}else C=this.compile(I);const y=C(F);return"$async"in C||(this.errors=C.errors),y}compile(I,F){const C=this._addSchema(I,F);return C.validate||this._compileSchemaEnv(C)}compileAsync(I,F){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:C}=this.opts;return y.call(this,I,F);async function y(ae,De){await S.call(this,ae.$schema);const Pt=this._addSchema(ae,De);return Pt.validate||L.call(this,Pt)}async function S(ae){ae&&!this.getSchema(ae)&&await y.call(this,{$ref:ae},!0)}async function L(ae){try{return this._compileSchemaEnv(ae)}catch(De){if(!(De instanceof i.default))throw De;return q.call(this,De),await G.call(this,De.missingSchema),L.call(this,ae)}}function q({missingSchema:ae,missingRef:De}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${De} cannot be resolved`)}async function G(ae){const De=await ie.call(this,ae);this.refs[ae]||await S.call(this,De.$schema),this.refs[ae]||this.addSchema(De,ae,F)}async function ie(ae){const De=this._loading[ae];if(De)return De;try{return await(this._loading[ae]=C(ae))}finally{delete this._loading[ae]}}}addSchema(I,F,C,y=this.opts.validateSchema){if(Array.isArray(I)){for(const L of I)this.addSchema(L,void 0,C,y);return this}let S;if(typeof I=="object"){const{schemaId:L}=this.opts;if(S=I[L],S!==void 0&&typeof S!="string")throw new Error(`schema ${L} must be string`)}return F=(0,u.normalizeId)(F||S),this._checkUnique(F),this.schemas[F]=this._addSchema(I,C,F,y,!0),this}addMetaSchema(I,F,C=this.opts.validateSchema){return this.addSchema(I,F,!0,C),this}validateSchema(I,F){if(typeof I=="boolean")return!0;let C;if(C=I.$schema,C!==void 0&&typeof C!="string")throw new Error("$schema must be a string");if(C=C||this.opts.defaultMeta||this.defaultMeta(),!C)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate(C,I);if(!y&&F){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return y}getSchema(I){let F;for(;typeof(F=O.call(this,I))=="string";)I=F;if(F===void 0){const{schemaId:C}=this.opts,y=new o.SchemaEnv({schema:{},schemaId:C});if(F=o.resolveSchema.call(this,y,I),!F)return;this.refs[I]=F}return F.validate||this._compileSchemaEnv(F)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const F=O.call(this,I);return typeof F=="object"&&this._cache.delete(F.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const F=I;this._cache.delete(F);let C=I[this.opts.schemaId];return C&&(C=(0,u.normalizeId)(C),delete this.schemas[C],delete this.refs[C]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const F of I)this.addKeyword(F);return this}addKeyword(I,F){let C;if(typeof I=="string")C=I,typeof F=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=C);else if(typeof I=="object"&&F===void 0){if(F=I,C=F.keyword,Array.isArray(C)&&!C.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Z.call(this,C,F),!F)return(0,a.eachItem)(C,S=>ee.call(this,S)),this;X.call(this,F);const y=Et(te({},F),{type:(0,m.getJSONTypes)(F.type),schemaType:(0,m.getJSONTypes)(F.schemaType)});return(0,a.eachItem)(C,y.type.length===0?S=>ee.call(this,S,y):S=>y.type.forEach(L=>ee.call(this,S,y,L))),this}getKeyword(I){const F=this.RULES.all[I];return typeof F=="object"?F.definition:!!F}removeKeyword(I){const{RULES:F}=this;delete F.keywords[I],delete F.all[I];for(const C of F.rules){const y=C.rules.findIndex(S=>S.keyword===I);y>=0&&C.rules.splice(y,1)}return this}addFormat(I,F){return typeof F=="string"&&(F=new RegExp(F)),this.formats[I]=F,this}errorsText(I=this.errors,{separator:F=", ",dataVar:C="data"}={}){return!I||I.length===0?"No errors":I.map(y=>`${C}${y.instancePath} ${y.message}`).reduce((y,S)=>y+F+S)}$dataMetaSchema(I,F){const C=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const y of F){const S=y.split("/").slice(1);let L=I;for(const q of S)L=L[q];for(const q in C){const G=C[q];if(typeof G!="object")continue;const{$data:ie}=G.definition,ae=L[q];ie&&ae&&(L[q]=z(ae))}}return I}_removeAllSchemas(I,F){for(const C in I){const y=I[C];(!F||F.test(C))&&(typeof y=="string"?delete I[C]:y&&!y.meta&&(this._cache.delete(y.schema),delete I[C]))}}_addSchema(I,F,C,y=this.opts.validateSchema,S=this.opts.addUsedSchema){let L;const{schemaId:q}=this.opts;if(typeof I=="object")L=I[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let G=this._cache.get(I);if(G!==void 0)return G;C=(0,u.normalizeId)(L||C);const ie=u.getSchemaRefs.call(this,I,C);return G=new o.SchemaEnv({schema:I,schemaId:q,meta:F,baseId:C,localRefs:ie}),this._cache.set(G.schema,G),S&&!C.startsWith("#")&&(C&&this._checkUnique(C),this.refs[C]=G),y&&this.validateSchema(I,!0),G}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):o.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const F=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,I)}finally{this.opts=F}}}e.default=T,T.ValidationError=n.default,T.MissingRefError=i.default;function k(R,I,F,C="error"){for(const y in R){const S=y;S in I&&this.logger[C](`${F}: option ${y}. ${R[S]}`)}}function O(R){return R=(0,u.normalizeId)(R),this.schemas[R]||this.refs[R]}function D(){const R=this.opts.schemas;if(!!R)if(Array.isArray(R))this.addSchema(R);else for(const I in R)this.addSchema(R[I],I)}function M(){for(const R in this.opts.formats){const I=this.opts.formats[R];I&&this.addFormat(R,I)}}function P(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in R){const F=R[I];F.keyword||(F.keyword=I),this.addKeyword(F)}}function U(){const R=te({},this.opts);for(const I of d)delete R[I];return R}const x={log(){},warn(){},error(){}};function V(R){if(R===!1)return x;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const Y=/^[a-z_$][a-z0-9_$:-]*$/i;function Z(R,I){const{RULES:F}=this;if((0,a.eachItem)(R,C=>{if(F.keywords[C])throw new Error(`Keyword ${C} is already defined`);if(!Y.test(C))throw new Error(`Keyword ${C} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function ee(R,I,F){var C;const y=I==null?void 0:I.post;if(F&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let L=y?S.post:S.rules.find(({type:G})=>G===F);if(L||(L={type:F,rules:[]},S.rules.push(L)),S.keywords[R]=!0,!I)return;const q={keyword:R,definition:Et(te({},I),{type:(0,m.getJSONTypes)(I.type),schemaType:(0,m.getJSONTypes)(I.schemaType)})};I.before?ue.call(this,L,q,I.before):L.rules.push(q),S.all[R]=q,(C=I.implements)===null||C===void 0||C.forEach(G=>this.addKeyword(G))}function ue(R,I,F){const C=R.rules.findIndex(y=>y.keyword===F);C>=0?R.rules.splice(C,0,I):(R.rules.push(I),this.logger.warn(`rule ${F} is not defined`))}function X(R){let{metaSchema:I}=R;I!==void 0&&(R.$data&&this.opts.$data&&(I=z(I)),R.validateSchema=this.compile(I,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z(R){return{anyOf:[R,j]}}})(cf);var No={},Io={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const _y={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Oo.default=_y;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.callRef=Dr.getValidate=void 0;const Sy=Yi,nc=ne,st=re,Vr=Vt,ic=at,fi=le,wy={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:c,self:u}=n,{root:m}=s;if((r==="#"||r==="#/")&&i===m.baseId)return l();const a=ic.resolveRef.call(u,m,i,r);if(a===void 0)throw new Sy.default(n.opts.uriResolver,i,r);if(a instanceof ic.SchemaEnv)return v(a);return h(a);function l(){if(s===m)return wi(e,o,s,s.$async);const d=t.scopeValue("root",{ref:m});return wi(e,(0,st._)`${d}.validate`,m,m.$async)}function v(d){const p=bf(e,d);wi(e,p,d,d.$async)}function h(d){const p=t.scopeValue("schema",c.code.source===!0?{ref:d,code:(0,st.stringify)(d)}:{ref:d}),E=t.name("valid"),f=e.subschema({schema:d,dataTypes:[],schemaPath:st.nil,topSchemaRef:p,errSchemaPath:r},E);e.mergeEvaluated(f),e.ok(E)}}};function bf(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,st._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Dr.getValidate=bf;function wi(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,m=u.passContext?Vr.default.this:st.nil;n?a():l();function a(){if(!c.$async)throw new Error("async schema referenced by sync schema");const d=i.let("valid");i.try(()=>{i.code((0,st._)`await ${(0,nc.callValidateCode)(e,t,m)}`),h(t),o||i.assign(d,!0)},p=>{i.if((0,st._)`!(${p} instanceof ${s.ValidationError})`,()=>i.throw(p)),v(p),o||i.assign(d,!1)}),e.ok(d)}function l(){e.result((0,nc.callValidateCode)(e,t,m),()=>h(t),()=>v(t))}function v(d){const p=(0,st._)`${d}.errors`;i.assign(Vr.default.vErrors,(0,st._)`${Vr.default.vErrors} === null ? ${p} : ${Vr.default.vErrors}.concat(${p})`),i.assign(Vr.default.errors,(0,st._)`${Vr.default.vErrors}.length`)}function h(d){var p;if(!s.opts.unevaluated)return;const E=(p=r==null?void 0:r.validate)===null||p===void 0?void 0:p.evaluated;if(s.props!==!0)if(E&&!E.dynamicProps)E.props!==void 0&&(s.props=fi.mergeEvaluated.props(i,E.props,s.props));else{const f=i.var("props",(0,st._)`${d}.evaluated.props`);s.props=fi.mergeEvaluated.props(i,f,s.props,st.Name)}if(s.items!==!0)if(E&&!E.dynamicItems)E.items!==void 0&&(s.items=fi.mergeEvaluated.items(i,E.items,s.items));else{const f=i.var("items",(0,st._)`${d}.evaluated.items`);s.items=fi.mergeEvaluated.items(i,f,s.items,st.Name)}}}Dr.callRef=wi;Dr.default=wy;Object.defineProperty(Io,"__esModule",{value:!0});const Ny=Oo,Iy=Dr,Oy=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ny.default,Iy.default];Io.default=Oy;var To={},Do={};Object.defineProperty(Do,"__esModule",{value:!0});const Fi=re,Qt=Fi.operators,ji={maximum:{okStr:"<=",ok:Qt.LTE,fail:Qt.GT},minimum:{okStr:">=",ok:Qt.GTE,fail:Qt.LT},exclusiveMaximum:{okStr:"<",ok:Qt.LT,fail:Qt.GTE},exclusiveMinimum:{okStr:">",ok:Qt.GT,fail:Qt.LTE}},Ty={message:({keyword:e,schemaCode:t})=>(0,Fi.str)`must be ${ji[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Fi._)`{comparison: ${ji[e].okStr}, limit: ${t}}`},Dy={keyword:Object.keys(ji),type:"number",schemaType:"number",$data:!0,error:Ty,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Fi._)`${r} ${ji[t].fail} ${n} || isNaN(${r})`)}};Do.default=Dy;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});const bn=re,Ry={message:({schemaCode:e})=>(0,bn.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,bn._)`{multipleOf: ${e}}`},Cy={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Ry,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,bn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,bn._)`${o} !== parseInt(${o})`;e.fail$data((0,bn._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};Ro.default=Cy;var Co={},Po={};Object.defineProperty(Po,"__esModule",{value:!0});function Lf(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}Po.default=Lf;Lf.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Co,"__esModule",{value:!0});const $r=re,Py=le,Ay=Po,by={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,$r.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,$r._)`{limit: ${e}}`},Ly={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:by,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?$r.operators.GT:$r.operators.LT,o=i.opts.unicode===!1?(0,$r._)`${r}.length`:(0,$r._)`${(0,Py.useFunc)(e.gen,Ay.default)}(${r})`;e.fail$data((0,$r._)`${o} ${s} ${n}`)}};Co.default=Ly;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const Fy=ne,Mi=re,jy={message:({schemaCode:e})=>(0,Mi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Mi._)`{pattern: ${e}}`},My={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:jy,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,Mi._)`(new RegExp(${i}, ${o}))`:(0,Fy.usePattern)(e,n);e.fail$data((0,Mi._)`!${c}.test(${t})`)}};Ao.default=My;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});const Ln=re,ky={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Ln.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ln._)`{limit: ${e}}`},Uy={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ky,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ln.operators.GT:Ln.operators.LT;e.fail$data((0,Ln._)`Object.keys(${r}).length ${i} ${n}`)}};bo.default=Uy;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});const Nn=ne,Fn=re,zy=le,xy={message:({params:{missingProperty:e}})=>(0,Fn.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Fn._)`{missingProperty: ${e}}`},Vy={keyword:"required",type:"object",schemaType:"array",$data:!0,error:xy,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:o}=e,{opts:c}=o;if(!s&&r.length===0)return;const u=r.length>=c.loopRequired;if(o.allErrors?m():a(),c.strictRequired){const h=e.parentSchema.properties,{definedProperties:d}=e.it;for(const p of r)if((h==null?void 0:h[p])===void 0&&!d.has(p)){const E=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${p}" is not defined at "${E}" (strictRequired)`;(0,zy.checkStrictMode)(o,f,o.opts.strictRequired)}}function m(){if(u||s)e.block$data(Fn.nil,l);else for(const h of r)(0,Nn.checkReportMissingProp)(e,h)}function a(){const h=t.let("missing");if(u||s){const d=t.let("valid",!0);e.block$data(d,()=>v(h,d)),e.ok(d)}else t.if((0,Nn.checkMissingProp)(e,r,h)),(0,Nn.reportMissingProp)(e,h),t.else()}function l(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Nn.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}function v(h,d){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(d,(0,Nn.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Fn.not)(d),()=>{e.error(),t.break()})},Fn.nil)}}};Lo.default=Vy;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});const jn=re,qy={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,jn.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,jn._)`{limit: ${e}}`},Gy={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qy,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?jn.operators.GT:jn.operators.LT;e.fail$data((0,jn._)`${r}.length ${i} ${n}`)}};Fo.default=Gy;var jo={},ei={};Object.defineProperty(ei,"__esModule",{value:!0});const Ff=yf;Ff.code='require("ajv/dist/runtime/equal").default';ei.default=Ff;Object.defineProperty(jo,"__esModule",{value:!0});const _s=Qn,Ue=re,By=le,Hy=ei,Ky={message:({params:{i:e,j:t}})=>(0,Ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ue._)`{i: ${e}, j: ${t}}`},Wy={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ky,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:c}=e;if(!n&&!i)return;const u=t.let("valid"),m=s.items?(0,_s.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,Ue._)`${o} === false`),e.ok(u);function a(){const d=t.let("i",(0,Ue._)`${r}.length`),p=t.let("j");e.setParams({i:d,j:p}),t.assign(u,!0),t.if((0,Ue._)`${d} > 1`,()=>(l()?v:h)(d,p))}function l(){return m.length>0&&!m.some(d=>d==="object"||d==="array")}function v(d,p){const E=t.name("item"),f=(0,_s.checkDataTypes)(m,E,c.opts.strictNumbers,_s.DataType.Wrong),$=t.const("indices",(0,Ue._)`{}`);t.for((0,Ue._)`;${d}--;`,()=>{t.let(E,(0,Ue._)`${r}[${d}]`),t.if(f,(0,Ue._)`continue`),m.length>1&&t.if((0,Ue._)`typeof ${E} == "string"`,(0,Ue._)`${E} += "_"`),t.if((0,Ue._)`typeof ${$}[${E}] == "number"`,()=>{t.assign(p,(0,Ue._)`${$}[${E}]`),e.error(),t.assign(u,!1).break()}).code((0,Ue._)`${$}[${E}] = ${d}`)})}function h(d,p){const E=(0,By.useFunc)(t,Hy.default),f=t.name("outer");t.label(f).for((0,Ue._)`;${d}--;`,()=>t.for((0,Ue._)`${p} = ${d}; ${p}--;`,()=>t.if((0,Ue._)`${E}(${r}[${d}], ${r}[${p}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};jo.default=Wy;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});const Us=re,Xy=le,Zy=ei,Jy={message:"must be equal to constant",params:({schemaCode:e})=>(0,Us._)`{allowedValue: ${e}}`},Yy={keyword:"const",$data:!0,error:Jy,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Us._)`!${(0,Xy.useFunc)(t,Zy.default)}(${r}, ${i})`):e.fail((0,Us._)`${s} !== ${r}`)}};Mo.default=Yy;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});const Dn=re,Qy=le,e0=ei,t0={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Dn._)`{allowedValues: ${e}}`},r0={keyword:"enum",schemaType:"array",$data:!0,error:t0,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const c=i.length>=o.opts.loopEnum;let u;const m=()=>u!=null?u:u=(0,Qy.useFunc)(t,e0.default);let a;if(c||n)a=t.let("valid"),e.block$data(a,l);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",s);a=(0,Dn.or)(...i.map((d,p)=>v(h,p)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,h=>t.if((0,Dn._)`${m()}(${r}, ${h})`,()=>t.assign(a,!0).break()))}function v(h,d){const p=i[d];return typeof p=="object"&&p!==null?(0,Dn._)`${m()}(${r}, ${h}[${d}])`:(0,Dn._)`${r} === ${p}`}}};ko.default=r0;Object.defineProperty(To,"__esModule",{value:!0});const n0=Do,i0=Ro,s0=Co,o0=Ao,a0=bo,c0=Lo,u0=Fo,f0=jo,l0=Mo,d0=ko,h0=[n0.default,i0.default,s0.default,o0.default,a0.default,c0.default,u0.default,f0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l0.default,d0.default];To.default=h0;var Uo={},ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.validateAdditionalItems=void 0;const _r=re,zs=le,m0={message:({params:{len:e}})=>(0,_r.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_r._)`{limit: ${e}}`},p0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:m0,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,zs.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}jf(e,n)}};function jf(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,_r._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,_r._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,zs.alwaysValidSchema)(o,n)){const m=r.var("valid",(0,_r._)`${c} <= ${t.length}`);r.if((0,_r.not)(m),()=>u(m)),e.ok(m)}function u(m){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:zs.Type.Num},m),o.allErrors||r.if((0,_r.not)(m),()=>r.break())})}}ln.validateAdditionalItems=jf;ln.default=p0;var zo={},dn={};Object.defineProperty(dn,"__esModule",{value:!0});dn.validateTuple=void 0;const sc=re,Ni=le,y0=ne,E0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Mf(e,"additionalItems",t);r.items=!0,!(0,Ni.alwaysValidSchema)(r,t)&&e.ok((0,y0.validateArray)(e))}};function Mf(e,t,r=e.schema){const{gen:n,parentSchema:i,data:s,keyword:o,it:c}=e;a(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Ni.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),m=n.const("len",(0,sc._)`${s}.length`);r.forEach((l,v)=>{(0,Ni.alwaysValidSchema)(c,l)||(n.if((0,sc._)`${m} > ${v}`,()=>e.subschema({keyword:o,schemaProp:v,dataProp:v},u)),e.ok(u))});function a(l){const{opts:v,errSchemaPath:h}=c,d=r.length,p=d===l.minItems&&(d===l.maxItems||l[t]===!1);if(v.strictTuples&&!p){const E=`"${o}" is ${d}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ni.checkStrictMode)(c,E,v.strictTuples)}}}dn.validateTuple=Mf;dn.default=E0;Object.defineProperty(zo,"__esModule",{value:!0});const v0=dn,g0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,v0.validateTuple)(e,"items")};zo.default=g0;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});const oc=re,$0=le,_0=ne,S0=ln,w0={message:({params:{len:e}})=>(0,oc.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,oc._)`{limit: ${e}}`},N0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:w0,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,$0.alwaysValidSchema)(n,t)&&(i?(0,S0.validateAdditionalItems)(e,i):e.ok((0,_0.validateArray)(e)))}};xo.default=N0;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});const yt=re,li=le,I0={message:({params:{min:e,max:t}})=>t===void 0?(0,yt.str)`must contain at least ${e} valid item(s)`:(0,yt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,yt._)`{minContains: ${e}}`:(0,yt._)`{minContains: ${e}, maxContains: ${t}}`},O0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:I0,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,c;const{minContains:u,maxContains:m}=n;s.opts.next?(o=u===void 0?1:u,c=m):o=1;const a=t.const("len",(0,yt._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,li.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,li.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,li.alwaysValidSchema)(s,r)){let p=(0,yt._)`${a} >= ${o}`;c!==void 0&&(p=(0,yt._)`${p} && ${a} <= ${c}`),e.pass(p);return}s.items=!0;const l=t.name("valid");c===void 0&&o===1?h(l,()=>t.if(l,()=>t.break())):o===0?(t.let(l,!0),c!==void 0&&t.if((0,yt._)`${i}.length > 0`,v)):(t.let(l,!1),v()),e.result(l,()=>e.reset());function v(){const p=t.name("_valid"),E=t.let("count",0);h(p,()=>t.if(p,()=>d(E)))}function h(p,E){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:li.Type.Num,compositeRule:!0},p),E()})}function d(p){t.code((0,yt._)`${p}++`),c===void 0?t.if((0,yt._)`${p} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,yt._)`${p} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,yt._)`${p} >= ${o}`,()=>t.assign(l,!0)))}}};Vo.default=O0;var kf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=re,r=le,n=ne;e.error={message:({params:{property:u,depsCount:m,deps:a}})=>{const l=m===1?"property":"properties";return(0,t.str)`must have ${l} ${a} when property ${u} is present`},params:({params:{property:u,depsCount:m,deps:a,missingProperty:l}})=>(0,t._)`{property: ${u},
|
|
11
|
+
|| ${P} === "boolean" || ${D} === null`).assign(U,(0,i._)`[${D}]`)}}}function h({gen:_,parentData:T,parentDataProperty:k},O){_.if((0,i._)`${T} !== undefined`,()=>_.assign((0,i._)`${T}[${k}]`,O))}function d(_,T,k,O=o.Correct){const D=O===o.Correct?i.operators.EQ:i.operators.NEQ;let M;switch(_){case"null":return(0,i._)`${T} ${D} null`;case"array":M=(0,i._)`Array.isArray(${T})`;break;case"object":M=(0,i._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":M=P((0,i._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":M=P();break;default:return(0,i._)`typeof ${T} ${D} ${_}`}return O===o.Correct?M:(0,i.not)(M);function P(U=i.nil){return(0,i.and)((0,i._)`typeof ${T} == "number"`,U,k?(0,i._)`isFinite(${T})`:i.nil)}}e.checkDataType=d;function y(_,T,k,O){if(_.length===1)return d(_[0],T,k,O);let D;const M=(0,s.toHash)(_);if(M.array&&M.object){const P=(0,i._)`typeof ${T} != "object"`;D=M.null?P:(0,i._)`!${T} || ${P}`,delete M.null,delete M.array,delete M.object}else D=i.nil;M.number&&delete M.integer;for(const P in M)D=(0,i.and)(D,d(P,T,k,O));return D}e.checkDataTypes=y;const E={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:T})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${T}}`};function f(_){const T=$(_);(0,n.reportError)(T,E)}e.reportTypeError=f;function $(_){const{gen:T,data:k,schema:O}=_,D=(0,s.schemaRefOrVal)(_,O,"type");return{gen:T,keyword:"type",data:k,schema:O.type,schemaCode:D,schemaValue:D,parentSchema:O,params:{},it:_}}})(Jn);var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.assignDefaults=void 0;const Ur=te,Km=fe;function Wm(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)Ba(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Ba(e,s,i.default))}Wi.assignDefaults=Wm;function Ba(e,t,r){const{gen:n,compositeRule:i,data:s,opts:o}=e;if(r===void 0)return;const c=(0,Ur._)`${s}${(0,Ur.getProperty)(t)}`;if(i){(0,Km.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Ur._)`${c} === undefined`;o.useDefaults==="empty"&&(u=(0,Ur._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Ur._)`${c} = ${(0,Ur.stringify)(r)}`)}var kt={},re={};Object.defineProperty(re,"__esModule",{value:!0});re.validateUnion=re.validateArray=re.usePattern=re.callValidateCode=re.schemaProperties=re.allSchemaProperties=re.noPropertyInData=re.propertyInData=re.isOwnProperty=re.hasPropFunc=re.reportMissingProp=re.checkMissingProp=re.checkReportMissingProp=void 0;const ge=te,po=fe,Zt=zt,Xm=fe;function Zm(e,t){const{gen:r,data:n,it:i}=e;r.if(Eo(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ge._)`${t}`},!0),e.error()})}re.checkReportMissingProp=Zm;function Jm({gen:e,data:t,it:{opts:r}},n,i){return(0,ge.or)(...n.map(s=>(0,ge.and)(Eo(e,t,s,r.ownProperties),(0,ge._)`${i} = ${s}`)))}re.checkMissingProp=Jm;function Ym(e,t){e.setParams({missingProperty:t},!0),e.error()}re.reportMissingProp=Ym;function cf(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ge._)`Object.prototype.hasOwnProperty`})}re.hasPropFunc=cf;function yo(e,t,r){return(0,ge._)`${cf(e)}.call(${t}, ${r})`}re.isOwnProperty=yo;function Qm(e,t,r,n){const i=(0,ge._)`${t}${(0,ge.getProperty)(r)} !== undefined`;return n?(0,ge._)`${i} && ${yo(e,t,r)}`:i}re.propertyInData=Qm;function Eo(e,t,r,n){const i=(0,ge._)`${t}${(0,ge.getProperty)(r)} === undefined`;return n?(0,ge.or)(i,(0,ge.not)(yo(e,t,r))):i}re.noPropertyInData=Eo;function uf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}re.allSchemaProperties=uf;function ep(e,t){return uf(t).filter(r=>!(0,po.alwaysValidSchema)(e,t[r]))}re.schemaProperties=ep;function tp({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},c,u,m){const a=m?(0,ge._)`${e}, ${t}, ${n}${i}`:t,l=[[Zt.default.instancePath,(0,ge.strConcat)(Zt.default.instancePath,s)],[Zt.default.parentData,o.parentData],[Zt.default.parentDataProperty,o.parentDataProperty],[Zt.default.rootData,Zt.default.rootData]];o.opts.dynamicRef&&l.push([Zt.default.dynamicAnchors,Zt.default.dynamicAnchors]);const v=(0,ge._)`${a}, ${r.object(...l)}`;return u!==ge.nil?(0,ge._)`${c}.call(${u}, ${v})`:(0,ge._)`${c}(${v})`}re.callValidateCode=tp;const rp=(0,ge._)`new RegExp`;function np({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ge._)`${i.code==="new RegExp"?rp:(0,Xm.useFunc)(e,i)}(${r}, ${n})`})}re.usePattern=np;function ip(e){const{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){const c=t.let("valid",!0);return o(()=>t.assign(c,!1)),c}return t.var(s,!0),o(()=>t.break()),s;function o(c){const u=t.const("len",(0,ge._)`${r}.length`);t.forRange("i",0,u,m=>{e.subschema({keyword:n,dataProp:m,dataPropType:po.Type.Num},s),t.if((0,ge.not)(s),c)})}}re.validateArray=ip;function sp(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,po.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,m)=>{const a=e.subschema({keyword:n,schemaProp:m,compositeRule:!0},c);t.assign(o,(0,ge._)`${o} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,ge.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}re.validateUnion=sp;Object.defineProperty(kt,"__esModule",{value:!0});kt.validateKeywordUsage=kt.validSchemaType=kt.funcKeywordCode=kt.macroKeywordCode=void 0;const Xe=te,Er=zt,op=re,ap=Zn;function cp(e,t){const{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=e,c=t.macro.call(o.self,i,s,o),u=ff(r,n,c);o.opts.validateSchema!==!1&&o.self.validateSchema(c,!0);const m=r.name("valid");e.subschema({schema:c,schemaPath:Xe.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},m),e.pass(m,()=>e.error(!0))}kt.macroKeywordCode=cp;function up(e,t){var r;const{gen:n,keyword:i,schema:s,parentSchema:o,$data:c,it:u}=e;lp(u,t);const m=!c&&t.compile?t.compile.call(u.self,s,o,u):t.validate,a=ff(n,i,m),l=n.let("valid");e.block$data(l,v),e.ok((r=t.valid)!==null&&r!==void 0?r:l);function v(){if(t.errors===!1)y(),t.modifying&&Ha(e),E(()=>e.error());else{const f=t.async?h():d();t.modifying&&Ha(e),E(()=>fp(e,f))}}function h(){const f=n.let("ruleErrs",null);return n.try(()=>y((0,Xe._)`await `),$=>n.assign(l,!1).if((0,Xe._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(f,(0,Xe._)`${$}.errors`),()=>n.throw($))),f}function d(){const f=(0,Xe._)`${a}.errors`;return n.assign(f,null),y(Xe.nil),f}function y(f=t.async?(0,Xe._)`await `:Xe.nil){const $=u.opts.passContext?Er.default.this:Er.default.self,_=!("compile"in t&&!c||t.schema===!1);n.assign(l,(0,Xe._)`${f}${(0,op.callValidateCode)(e,a,$,_)}`,t.modifying)}function E(f){var $;n.if((0,Xe.not)(($=t.valid)!==null&&$!==void 0?$:l),f)}}kt.funcKeywordCode=up;function Ha(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Xe._)`${n.parentData}[${n.parentDataProperty}]`))}function fp(e,t){const{gen:r}=e;r.if((0,Xe._)`Array.isArray(${t})`,()=>{r.assign(Er.default.vErrors,(0,Xe._)`${Er.default.vErrors} === null ? ${t} : ${Er.default.vErrors}.concat(${t})`).assign(Er.default.errors,(0,Xe._)`${Er.default.vErrors}.length`),(0,ap.extendErrors)(e)},()=>e.error())}function lp({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function ff(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Xe.stringify)(r)})}function dp(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e=="undefined")}kt.validSchemaType=dp;function hp({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");const o=i.dependencies;if(o!=null&&o.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}kt.validateKeywordUsage=hp;var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.extendSubschemaMode=cr.extendSubschemaData=cr.getSubschema=void 0;const jt=te,lf=fe;function mp(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,jt._)`${e.schemaPath}${(0,jt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,jt._)`${e.schemaPath}${(0,jt.getProperty)(t)}${(0,jt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,lf.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}cr.getSubschema=mp;function pp(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(r!==void 0){const{errorPath:m,dataPathArr:a,opts:l}=t,v=c.let("data",(0,jt._)`${t.data}${(0,jt.getProperty)(r)}`,!0);u(v),e.errorPath=(0,jt.str)`${m}${(0,lf.getErrorPath)(r,n,l.jsPropertySyntax)}`,e.parentDataProperty=(0,jt._)`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(i!==void 0){const m=i instanceof jt.Name?i:c.let("data",i,!0);u(m),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function u(m){e.data=m,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,m]}}cr.extendSubschemaData=pp;function yp(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}cr.extendSubschemaMode=yp;var ze={},df=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},hf={exports:{}},ar=hf.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};$i(t,n,i,e,"",e)};ar.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ar.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ar.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ar.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $i(e,t,r,n,i,s,o,c,u,m){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,c,u,m);for(var a in n){var l=n[a];if(Array.isArray(l)){if(a in ar.arrayKeywords)for(var v=0;v<l.length;v++)$i(e,t,r,l[v],i+"/"+a+"/"+v,s,i,a,n,v)}else if(a in ar.propsKeywords){if(l&&typeof l=="object")for(var h in l)$i(e,t,r,l[h],i+"/"+a+"/"+Ep(h),s,i,a,n,h)}else(a in ar.keywords||e.allKeys&&!(a in ar.skipKeywords))&&$i(e,t,r,l,i+"/"+a,s,i,a,n)}r(n,i,s,o,c,u,m)}}function Ep(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(ze,"__esModule",{value:!0});ze.getSchemaRefs=ze.resolveUrl=ze.normalizeId=ze._getFullPath=ze.getFullPath=ze.inlineRef=void 0;const vp=fe,gp=df,$p=hf.exports,_p=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Sp(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Fs(e):t?mf(e)<=t:!1}ze.inlineRef=Sp;const wp=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fs(e){for(const t in e){if(wp.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Fs)||typeof r=="object"&&Fs(r))return!0}return!1}function mf(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!_p.has(r)&&(typeof e[r]=="object"&&(0,vp.eachItem)(e[r],n=>t+=mf(n)),t===1/0))return 1/0}return t}function pf(e,t="",r){r!==!1&&(t=Wr(t));const n=e.parse(t);return yf(e,n)}ze.getFullPath=pf;function yf(e,t){return e.serialize(t).split("#")[0]+"#"}ze._getFullPath=yf;const Np=/#\/?$/;function Wr(e){return e?e.replace(Np,""):""}ze.normalizeId=Wr;function Ip(e,t,r){return r=Wr(r),e.resolve(t,r)}ze.resolveUrl=Ip;const Op=/^[a-z_][-a-z0-9._]*$/i;function Tp(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Wr(e[r]||t),s={"":i},o=pf(n,i,!1),c={},u=new Set;return $p(e,{allKeys:!0},(l,v,h,d)=>{if(d===void 0)return;const y=o+v;let E=s[d];typeof l[r]=="string"&&(E=f.call(this,l[r])),$.call(this,l.$anchor),$.call(this,l.$dynamicAnchor),s[v]=E;function f(_){const T=this.opts.uriResolver.resolve;if(_=Wr(E?T(E,_):_),u.has(_))throw a(_);u.add(_);let k=this.refs[_];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?m(l,k.schema,_):_!==Wr(y)&&(_[0]==="#"?(m(l,c[_],_),c[_]=l):this.refs[_]=y),_}function $(_){if(typeof _=="string"){if(!Op.test(_))throw new Error(`invalid anchor "${_}"`);f.call(this,`#${_}`)}}}),c;function m(l,v,h){if(v!==void 0&&!gp(l,v))throw a(h)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}ze.getSchemaRefs=Tp;Object.defineProperty(It,"__esModule",{value:!0});It.getData=It.KeywordCxt=It.validateFunctionCode=void 0;const Ef=sn,Ka=Jn,vo=Bt,Ai=Jn,Dp=Wi,Cn=kt,ys=cr,H=te,J=zt,Rp=ze,Ht=fe,_n=Zn;function Cp(e){if($f(e)&&(_f(e),gf(e))){bp(e);return}vf(e,()=>(0,Ef.topBoolOrEmptySchema)(e))}It.validateFunctionCode=Cp;function vf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,H._)`${J.default.data}, ${J.default.valCxt}`,n.$async,()=>{e.code((0,H._)`"use strict"; ${Wa(r,i)}`),Ap(e,i),e.code(s)}):e.func(t,(0,H._)`${J.default.data}, ${Pp(i)}`,n.$async,()=>e.code(Wa(r,i)).code(s))}function Pp(e){return(0,H._)`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${e.dynamicRef?(0,H._)`, ${J.default.dynamicAnchors}={}`:H.nil}}={}`}function Ap(e,t){e.if(J.default.valCxt,()=>{e.var(J.default.instancePath,(0,H._)`${J.default.valCxt}.${J.default.instancePath}`),e.var(J.default.parentData,(0,H._)`${J.default.valCxt}.${J.default.parentData}`),e.var(J.default.parentDataProperty,(0,H._)`${J.default.valCxt}.${J.default.parentDataProperty}`),e.var(J.default.rootData,(0,H._)`${J.default.valCxt}.${J.default.rootData}`),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,H._)`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{e.var(J.default.instancePath,(0,H._)`""`),e.var(J.default.parentData,(0,H._)`undefined`),e.var(J.default.parentDataProperty,(0,H._)`undefined`),e.var(J.default.rootData,J.default.data),t.dynamicRef&&e.var(J.default.dynamicAnchors,(0,H._)`{}`)})}function bp(e){const{schema:t,opts:r,gen:n}=e;vf(e,()=>{r.$comment&&t.$comment&&wf(e),kp(e),n.let(J.default.vErrors,null),n.let(J.default.errors,0),r.unevaluated&&Lp(e),Sf(e),xp(e)})}function Lp(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,H._)`${r}.evaluated`),t.if((0,H._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,H._)`${e.evaluated}.props`,(0,H._)`undefined`)),t.if((0,H._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,H._)`${e.evaluated}.items`,(0,H._)`undefined`))}function Wa(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,H._)`/*# sourceURL=${r} */`:H.nil}function Fp(e,t){if($f(e)&&(_f(e),gf(e))){jp(e,t);return}(0,Ef.boolOrEmptySchema)(e,t)}function gf({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function $f(e){return typeof e.schema!="boolean"}function jp(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&wf(e),Up(e),zp(e);const s=n.const("_errs",J.default.errors);Sf(e,s),n.var(t,(0,H._)`${s} === ${J.default.errors}`)}function _f(e){(0,Ht.checkUnknownRules)(e),Mp(e)}function Sf(e,t){if(e.opts.jtd)return Xa(e,[],!1,t);const r=(0,Ka.getSchemaTypes)(e.schema),n=(0,Ka.coerceAndCheckDataType)(e,r);Xa(e,r,!n,t)}function Mp(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ht.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function kp(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ht.checkStrictMode)(e,"default is ignored in the schema root")}function Up(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Rp.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function zp(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function wf({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const s=r.$comment;if(i.$comment===!0)e.code((0,H._)`${J.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,H.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,H._)`${J.default.self}.opts.$comment(${s}, ${o}, ${c}.schema)`)}}function xp(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,H._)`${J.default.errors} === 0`,()=>t.return(J.default.data),()=>t.throw((0,H._)`new ${i}(${J.default.vErrors})`)):(t.assign((0,H._)`${n}.errors`,J.default.vErrors),s.unevaluated&&Vp(e),t.return((0,H._)`${J.default.errors} === 0`))}function Vp({gen:e,evaluated:t,props:r,items:n}){r instanceof H.Name&&e.assign((0,H._)`${t}.props`,r),n instanceof H.Name&&e.assign((0,H._)`${t}.items`,n)}function Xa(e,t,r,n){const{gen:i,schema:s,data:o,allErrors:c,opts:u,self:m}=e,{RULES:a}=m;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ht.schemaHasRulesButRef)(s,a))){i.block(()=>If(e,"$ref",a.all.$ref.definition));return}u.jtd||qp(e,t),i.block(()=>{for(const v of a.rules)l(v);l(a.post)});function l(v){!(0,vo.shouldUseGroup)(s,v)||(v.type?(i.if((0,Ai.checkDataType)(v.type,o,u.strictNumbers)),Za(e,v),t.length===1&&t[0]===v.type&&r&&(i.else(),(0,Ai.reportTypeError)(e)),i.endIf()):Za(e,v),c||i.if((0,H._)`${J.default.errors} === ${n||0}`))}}function Za(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Dp.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,vo.shouldUseRule)(n,s)&&If(e,s.keyword,s.definition,t.type)})}function qp(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Gp(e,t),e.opts.allowUnionTypes||Bp(e,t),Hp(e,e.dataTypes))}function Gp(e,t){if(!!t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Ja(e.dataTypes,r)||go(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>Ja(t,r))}}function Bp(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&go(e,"use allowUnionTypes to allow union type keyword")}function Hp(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,vo.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>Kp(t,o))&&go(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function Kp(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Ja(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function go(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,Ht.checkStrictMode)(e,t,e.opts.strictTypes)}class Nf{constructor(t,r,n){if((0,Cn.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ht.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Of(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Cn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",J.default.errors))}result(t,r,n){this.failResult((0,H.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,H.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,H._)`${r} !== undefined && (${(0,H.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?_n.reportExtraError:_n.reportError)(this,this.def.error,r)}$dataError(){(0,_n.reportError)(this,this.def.$dataError||_n.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,_n.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=H.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=H.nil,r=H.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,H.or)((0,H._)`${i} === undefined`,r)),t!==H.nil&&n.assign(t,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==H.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,H.or)(o(),c());function o(){if(n.length){if(!(r instanceof H.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,H._)`${(0,Ai.checkDataTypes)(u,r,s.opts.strictNumbers,Ai.DataType.Wrong)}`}return H.nil}function c(){if(i.validateSchema){const u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,H._)`!${u}(${r})`}return H.nil}}subschema(t,r){const n=(0,ys.getSubschema)(this.it,t);(0,ys.extendSubschemaData)(n,this.it,t),(0,ys.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return Fp(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&t.props!==void 0&&(n.props=Ht.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ht.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,H.Name)),!0}}It.KeywordCxt=Nf;function If(e,t,r,n){const i=new Nf(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Cn.funcKeywordCode)(i,r):"macro"in r?(0,Cn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Cn.funcKeywordCode)(i,r)}const Wp=/^\/(?:[^~]|~0|~1)*$/,Xp=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Of(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return J.default.rootData;if(e[0]==="/"){if(!Wp.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=J.default.rootData}else{const m=Xp.exec(e);if(!m)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+m[1];if(i=m[2],i==="#"){if(a>=t)throw new Error(u("property/index",a));return n[t-a]}if(a>t)throw new Error(u("data",a));if(s=r[t-a],!i)return s}let o=s;const c=i.split("/");for(const m of c)m&&(s=(0,H._)`${s}${(0,H.getProperty)((0,Ht.unescapeJsonPointer)(m))}`,o=(0,H._)`${o} && ${s}`);return o;function u(m,a){return`Cannot access ${m} ${a} levels up, current level is ${t}`}}It.getData=Of;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});class Zp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Xi.default=Zp;var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});const Es=ze;class Jp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Es.resolveUrl)(t,r,n),this.missingSchema=(0,Es.normalizeId)((0,Es.getFullPath)(t,this.missingRef))}}Zi.default=Jp;var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.resolveSchema=ot.getCompilingSchema=ot.resolveRef=ot.compileSchema=ot.SchemaEnv=void 0;const Et=te,Yp=Xi,pr=zt,Nt=ze,Ya=fe,Qp=It;class Ji{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Nt.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}ot.SchemaEnv=Ji;function $o(e){const t=Tf.call(this,e);if(t)return t;const r=(0,Nt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new Et.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let c;e.$async&&(c=o.scopeValue("Error",{ref:Yp.default,code:(0,Et._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const m={gen:o,allErrors:this.opts.allErrors,data:pr.default.data,parentData:pr.default.parentData,parentDataProperty:pr.default.parentDataProperty,dataNames:[pr.default.data],dataPathArr:[Et.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Et.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Et.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Et._)`""`,opts:this.opts,self:this};let a;try{this._compilations.add(e),(0,Qp.validateFunctionCode)(m),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(pr.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const h=new Function(`${pr.default.self}`,`${pr.default.scope}`,a)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:d,items:y}=m;h.evaluated={props:d instanceof Et.Name?void 0:d,items:y instanceof Et.Name?void 0:y,dynamicProps:d instanceof Et.Name,dynamicItems:y instanceof Et.Name},h.source&&(h.source.evaluated=(0,Et.stringify)(h.evaluated))}return e.validate=h,e}catch(l){throw delete e.validate,delete e.validateName,a&&this.logger.error("Error compiling schema, function code:",a),l}finally{this._compilations.delete(e)}}ot.compileSchema=$o;function ey(e,t,r){var n;r=(0,Nt.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=ny.call(this,e,r);if(s===void 0){const o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;o&&(s=new Ji({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=ty.call(this,s)}ot.resolveRef=ey;function ty(e){return(0,Nt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:$o.call(this,e)}function Tf(e){for(const t of this._compilations)if(ry(t,e))return t}ot.getCompilingSchema=Tf;function ry(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function ny(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Yi.call(this,e,t)}function Yi(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Nt._getFullPath)(this.opts.uriResolver,r);let i=(0,Nt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return vs.call(this,r,e);const s=(0,Nt.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=Yi.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:vs.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||$o.call(this,o),s===(0,Nt.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,m=c[u];return m&&(i=(0,Nt.resolveUrl)(this.opts.uriResolver,i,m)),new Ji({schema:c,schemaId:u,root:e,baseId:i})}return vs.call(this,r,o)}}ot.resolveSchema=Yi;const iy=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vs(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,Ya.unescapeFragment)(c)];if(u===void 0)return;r=u;const m=typeof r=="object"&&r[this.opts.schemaId];!iy.has(c)&&m&&(t=(0,Nt.resolveUrl)(this.opts.uriResolver,t,m))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Ya.schemaHasRulesButRef)(r,this.RULES)){const c=(0,Nt.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Yi.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Ji({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const sy="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",oy="Meta-schema for $data reference (JSON AnySchema extension proposal)",ay="object",cy=["$data"],uy={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},fy=!1;var ly={$id:sy,description:oy,type:ay,required:cy,properties:uy,additionalProperties:fy},_o={},js={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(rr,function(r){function n(){for(var w=arguments.length,g=Array(w),N=0;N<w;N++)g[N]=arguments[N];if(g.length>1){g[0]=g[0].slice(0,-1);for(var b=g.length-1,A=1;A<b;++A)g[A]=g[A].slice(1,-1);return g[b]=g[b].slice(1),g.join("")}else return g[0]}function i(w){return"(?:"+w+")"}function s(w){return w===void 0?"undefined":w===null?"null":Object.prototype.toString.call(w).split(" ").pop().split("]").shift().toLowerCase()}function o(w){return w.toUpperCase()}function c(w){return w!=null?w instanceof Array?w:typeof w.length!="number"||w.split||w.setInterval||w.call?[w]:Array.prototype.slice.call(w):[]}function u(w,g){var N=w;if(g)for(var b in g)N[b]=g[b];return N}function m(w){var g="[A-Za-z]",N="[0-9]",b=n(N,"[A-Fa-f]"),A=i(i("%[EFef]"+b+"%"+b+b+"%"+b+b)+"|"+i("%[89A-Fa-f]"+b+"%"+b+b)+"|"+i("%"+b+b)),K="[\\:\\/\\?\\#\\[\\]\\@]",W="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ue=n(K,W),ve=w?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",De=w?"[\\uE000-\\uF8FF]":"[]",ie=n(g,N,"[\\-\\.\\_\\~]",ve);i(g+n(g,N,"[\\+\\-\\.]")+"*"),i(i(A+"|"+n(ie,W,"[\\:]"))+"*");var ye=i(i("25[0-5]")+"|"+i("2[0-4]"+N)+"|"+i("1"+N+N)+"|"+i("0?[1-9]"+N)+"|0?0?"+N),Re=i(ye+"\\."+ye+"\\."+ye+"\\."+ye),Q=i(b+"{1,4}"),$e=i(i(Q+"\\:"+Q)+"|"+Re),Pe=i(i(Q+"\\:")+"{6}"+$e),_e=i("\\:\\:"+i(Q+"\\:")+"{5}"+$e),Wt=i(i(Q)+"?\\:\\:"+i(Q+"\\:")+"{4}"+$e),At=i(i(i(Q+"\\:")+"{0,1}"+Q)+"?\\:\\:"+i(Q+"\\:")+"{3}"+$e),bt=i(i(i(Q+"\\:")+"{0,2}"+Q)+"?\\:\\:"+i(Q+"\\:")+"{2}"+$e),jr=i(i(i(Q+"\\:")+"{0,3}"+Q)+"?\\:\\:"+Q+"\\:"+$e),dr=i(i(i(Q+"\\:")+"{0,4}"+Q)+"?\\:\\:"+$e),mt=i(i(i(Q+"\\:")+"{0,5}"+Q)+"?\\:\\:"+Q),Lt=i(i(i(Q+"\\:")+"{0,6}"+Q)+"?\\:\\:"),hr=i([Pe,_e,Wt,At,bt,jr,dr,mt,Lt].join("|")),xt=i(i(ie+"|"+A)+"+");i("[vV]"+b+"+\\."+n(ie,W,"[\\:]")+"+"),i(i(A+"|"+n(ie,W))+"*");var gn=i(A+"|"+n(ie,W,"[\\:\\@]"));return i(i(A+"|"+n(ie,W,"[\\@]"))+"+"),i(i(gn+"|"+n("[\\/\\?]",De))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,N,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",ie,W),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",ie,W),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",ie,W),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",ie,W),"g"),NOT_QUERY:new RegExp(n("[^\\%]",ie,W,"[\\:\\@\\/\\?]",De),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",ie,W,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",ie,W),"g"),UNRESERVED:new RegExp(ie,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",ie,ue),"g"),PCT_ENCODED:new RegExp(A,"g"),IPV4ADDRESS:new RegExp("^("+Re+")$"),IPV6ADDRESS:new RegExp("^\\[?("+hr+")"+i(i("\\%25|\\%(?!"+b+"{2})")+"("+xt+")")+"?\\]?$")}}var a=m(!1),l=m(!0),v=function(){function w(g,N){var b=[],A=!0,K=!1,W=void 0;try{for(var ue=g[Symbol.iterator](),ve;!(A=(ve=ue.next()).done)&&(b.push(ve.value),!(N&&b.length===N));A=!0);}catch(De){K=!0,W=De}finally{try{!A&&ue.return&&ue.return()}finally{if(K)throw W}}return b}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return w(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(w){if(Array.isArray(w)){for(var g=0,N=Array(w.length);g<w.length;g++)N[g]=w[g];return N}else return Array.from(w)},d=2147483647,y=36,E=1,f=26,$=38,_=700,T=72,k=128,O="-",D=/^xn--/,M=/[^\0-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=y-E,V=Math.floor,Y=String.fromCharCode;function Z(w){throw new RangeError(U[w])}function ee(w,g){for(var N=[],b=w.length;b--;)N[b]=g(w[b]);return N}function ce(w,g){var N=w.split("@"),b="";N.length>1&&(b=N[0]+"@",w=N[1]),w=w.replace(P,".");var A=w.split("."),K=ee(A,g).join(".");return b+K}function X(w){for(var g=[],N=0,b=w.length;N<b;){var A=w.charCodeAt(N++);if(A>=55296&&A<=56319&&N<b){var K=w.charCodeAt(N++);(K&64512)==56320?g.push(((A&1023)<<10)+(K&1023)+65536):(g.push(A),N--)}else g.push(A)}return g}var j=function(g){return String.fromCodePoint.apply(String,h(g))},z=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:y},R=function(g,N){return g+22+75*(g<26)-((N!=0)<<5)},I=function(g,N,b){var A=0;for(g=b?V(g/_):g>>1,g+=V(g/N);g>x*f>>1;A+=y)g=V(g/x);return V(A+(x+1)*g/(g+$))},F=function(g){var N=[],b=g.length,A=0,K=k,W=T,ue=g.lastIndexOf(O);ue<0&&(ue=0);for(var ve=0;ve<ue;++ve)g.charCodeAt(ve)>=128&&Z("not-basic"),N.push(g.charCodeAt(ve));for(var De=ue>0?ue+1:0;De<b;){for(var ie=A,ye=1,Re=y;;Re+=y){De>=b&&Z("invalid-input");var Q=z(g.charCodeAt(De++));(Q>=y||Q>V((d-A)/ye))&&Z("overflow"),A+=Q*ye;var $e=Re<=W?E:Re>=W+f?f:Re-W;if(Q<$e)break;var Pe=y-$e;ye>V(d/Pe)&&Z("overflow"),ye*=Pe}var _e=N.length+1;W=I(A-ie,_e,ie==0),V(A/_e)>d-K&&Z("overflow"),K+=V(A/_e),A%=_e,N.splice(A++,0,K)}return String.fromCodePoint.apply(String,N)},C=function(g){var N=[];g=X(g);var b=g.length,A=k,K=0,W=T,ue=!0,ve=!1,De=void 0;try{for(var ie=g[Symbol.iterator](),ye;!(ue=(ye=ie.next()).done);ue=!0){var Re=ye.value;Re<128&&N.push(Y(Re))}}catch($n){ve=!0,De=$n}finally{try{!ue&&ie.return&&ie.return()}finally{if(ve)throw De}}var Q=N.length,$e=Q;for(Q&&N.push(O);$e<b;){var Pe=d,_e=!0,Wt=!1,At=void 0;try{for(var bt=g[Symbol.iterator](),jr;!(_e=(jr=bt.next()).done);_e=!0){var dr=jr.value;dr>=A&&dr<Pe&&(Pe=dr)}}catch($n){Wt=!0,At=$n}finally{try{!_e&&bt.return&&bt.return()}finally{if(Wt)throw At}}var mt=$e+1;Pe-A>V((d-K)/mt)&&Z("overflow"),K+=(Pe-A)*mt,A=Pe;var Lt=!0,hr=!1,xt=void 0;try{for(var gn=g[Symbol.iterator](),Ea;!(Lt=(Ea=gn.next()).done);Lt=!0){var va=Ea.value;if(va<A&&++K>d&&Z("overflow"),va==A){for(var ei=K,ti=y;;ti+=y){var ri=ti<=W?E:ti>=W+f?f:ti-W;if(ei<ri)break;var ga=ei-ri,$a=y-ri;N.push(Y(R(ri+ga%$a,0))),ei=V(ga/$a)}N.push(Y(R(ei,0))),W=I(K,mt,$e==Q),K=0,++$e}}}catch($n){hr=!0,xt=$n}finally{try{!Lt&&gn.return&&gn.return()}finally{if(hr)throw xt}}++K,++A}return N.join("")},p=function(g){return ce(g,function(N){return D.test(N)?F(N.slice(4).toLowerCase()):N})},S=function(g){return ce(g,function(N){return M.test(N)?"xn--"+C(N):N})},L={version:"2.1.0",ucs2:{decode:X,encode:j},decode:F,encode:C,toASCII:S,toUnicode:p},q={};function G(w){var g=w.charCodeAt(0),N=void 0;return g<16?N="%0"+g.toString(16).toUpperCase():g<128?N="%"+g.toString(16).toUpperCase():g<2048?N="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():N="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),N}function ne(w){for(var g="",N=0,b=w.length;N<b;){var A=parseInt(w.substr(N+1,2),16);if(A<128)g+=String.fromCharCode(A),N+=3;else if(A>=194&&A<224){if(b-N>=6){var K=parseInt(w.substr(N+4,2),16);g+=String.fromCharCode((A&31)<<6|K&63)}else g+=w.substr(N,6);N+=6}else if(A>=224){if(b-N>=9){var W=parseInt(w.substr(N+4,2),16),ue=parseInt(w.substr(N+7,2),16);g+=String.fromCharCode((A&15)<<12|(W&63)<<6|ue&63)}else g+=w.substr(N,9);N+=9}else g+=w.substr(N,3),N+=3}return g}function oe(w,g){function N(b){var A=ne(b);return A.match(g.UNRESERVED)?A:b}return w.scheme&&(w.scheme=String(w.scheme).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_SCHEME,"")),w.userinfo!==void 0&&(w.userinfo=String(w.userinfo).replace(g.PCT_ENCODED,N).replace(g.NOT_USERINFO,G).replace(g.PCT_ENCODED,o)),w.host!==void 0&&(w.host=String(w.host).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_HOST,G).replace(g.PCT_ENCODED,o)),w.path!==void 0&&(w.path=String(w.path).replace(g.PCT_ENCODED,N).replace(w.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,G).replace(g.PCT_ENCODED,o)),w.query!==void 0&&(w.query=String(w.query).replace(g.PCT_ENCODED,N).replace(g.NOT_QUERY,G).replace(g.PCT_ENCODED,o)),w.fragment!==void 0&&(w.fragment=String(w.fragment).replace(g.PCT_ENCODED,N).replace(g.NOT_FRAGMENT,G).replace(g.PCT_ENCODED,o)),w}function Te(w){return w.replace(/^0*(.*)/,"$1")||"0"}function Rt(w,g){var N=w.match(g.IPV4ADDRESS)||[],b=v(N,2),A=b[1];return A?A.split(".").map(Te).join("."):w}function Cr(w,g){var N=w.match(g.IPV6ADDRESS)||[],b=v(N,3),A=b[1],K=b[2];if(A){for(var W=A.toLowerCase().split("::").reverse(),ue=v(W,2),ve=ue[0],De=ue[1],ie=De?De.split(":").map(Te):[],ye=ve.split(":").map(Te),Re=g.IPV4ADDRESS.test(ye[ye.length-1]),Q=Re?7:8,$e=ye.length-Q,Pe=Array(Q),_e=0;_e<Q;++_e)Pe[_e]=ie[_e]||ye[$e+_e]||"";Re&&(Pe[Q-1]=Rt(Pe[Q-1],g));var Wt=Pe.reduce(function(mt,Lt,hr){if(!Lt||Lt==="0"){var xt=mt[mt.length-1];xt&&xt.index+xt.length===hr?xt.length++:mt.push({index:hr,length:1})}return mt},[]),At=Wt.sort(function(mt,Lt){return Lt.length-mt.length})[0],bt=void 0;if(At&&At.length>1){var jr=Pe.slice(0,At.index),dr=Pe.slice(At.index+At.length);bt=jr.join(":")+"::"+dr.join(":")}else bt=Pe.join(":");return K&&(bt+="%"+K),bt}else return w}var dn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,hn="".match(/(){0}/)[1]===void 0;function ut(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},b=g.iri!==!1?l:a;g.reference==="suffix"&&(w=(g.scheme?g.scheme+":":"")+"//"+w);var A=w.match(dn);if(A){hn?(N.scheme=A[1],N.userinfo=A[3],N.host=A[4],N.port=parseInt(A[5],10),N.path=A[6]||"",N.query=A[7],N.fragment=A[8],isNaN(N.port)&&(N.port=A[5])):(N.scheme=A[1]||void 0,N.userinfo=w.indexOf("@")!==-1?A[3]:void 0,N.host=w.indexOf("//")!==-1?A[4]:void 0,N.port=parseInt(A[5],10),N.path=A[6]||"",N.query=w.indexOf("?")!==-1?A[7]:void 0,N.fragment=w.indexOf("#")!==-1?A[8]:void 0,isNaN(N.port)&&(N.port=w.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?A[4]:void 0)),N.host&&(N.host=Cr(Rt(N.host,b),b)),N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&!N.path&&N.query===void 0?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==N.reference&&(N.error=N.error||"URI is not a "+g.reference+" reference.");var K=q[(g.scheme||N.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!K||!K.unicodeSupport)){if(N.host&&(g.domainHost||K&&K.domainHost))try{N.host=L.toASCII(N.host.replace(b.PCT_ENCODED,ne).toLowerCase())}catch(W){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+W}oe(N,a)}else oe(N,b);K&&K.parse&&K.parse(N,g)}else N.error=N.error||"URI can not be parsed.";return N}function mn(w,g){var N=g.iri!==!1?l:a,b=[];return w.userinfo!==void 0&&(b.push(w.userinfo),b.push("@")),w.host!==void 0&&b.push(Cr(Rt(String(w.host),N),N).replace(N.IPV6ADDRESS,function(A,K,W){return"["+K+(W?"%25"+W:"")+"]"})),(typeof w.port=="number"||typeof w.port=="string")&&(b.push(":"),b.push(String(w.port))),b.length?b.join(""):void 0}var Pr=/^\.\.?\//,Ar=/^\/\.(\/|$)/,br=/^\/\.\.(\/|$)/,pn=/^\/?(?:.|\n)*?(?=\/|$)/;function Ct(w){for(var g=[];w.length;)if(w.match(Pr))w=w.replace(Pr,"");else if(w.match(Ar))w=w.replace(Ar,"/");else if(w.match(br))w=w.replace(br,"/"),g.pop();else if(w==="."||w==="..")w="";else{var N=w.match(pn);if(N){var b=N[0];w=w.slice(b.length),g.push(b)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function rt(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=g.iri?l:a,b=[],A=q[(g.scheme||w.scheme||"").toLowerCase()];if(A&&A.serialize&&A.serialize(w,g),w.host&&!N.IPV6ADDRESS.test(w.host)){if(g.domainHost||A&&A.domainHost)try{w.host=g.iri?L.toUnicode(w.host):L.toASCII(w.host.replace(N.PCT_ENCODED,ne).toLowerCase())}catch(ue){w.error=w.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+ue}}oe(w,N),g.reference!=="suffix"&&w.scheme&&(b.push(w.scheme),b.push(":"));var K=mn(w,g);if(K!==void 0&&(g.reference!=="suffix"&&b.push("//"),b.push(K),w.path&&w.path.charAt(0)!=="/"&&b.push("/")),w.path!==void 0){var W=w.path;!g.absolutePath&&(!A||!A.absolutePath)&&(W=Ct(W)),K===void 0&&(W=W.replace(/^\/\//,"/%2F")),b.push(W)}return w.query!==void 0&&(b.push("?"),b.push(w.query)),w.fragment!==void 0&&(b.push("#"),b.push(w.fragment)),b.join("")}function Lr(w,g){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments[3],A={};return b||(w=ut(rt(w,N),N),g=ut(rt(g,N),N)),N=N||{},!N.tolerant&&g.scheme?(A.scheme=g.scheme,A.userinfo=g.userinfo,A.host=g.host,A.port=g.port,A.path=Ct(g.path||""),A.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(A.userinfo=g.userinfo,A.host=g.host,A.port=g.port,A.path=Ct(g.path||""),A.query=g.query):(g.path?(g.path.charAt(0)==="/"?A.path=Ct(g.path):((w.userinfo!==void 0||w.host!==void 0||w.port!==void 0)&&!w.path?A.path="/"+g.path:w.path?A.path=w.path.slice(0,w.path.lastIndexOf("/")+1)+g.path:A.path=g.path,A.path=Ct(A.path)),A.query=g.query):(A.path=w.path,g.query!==void 0?A.query=g.query:A.query=w.query),A.userinfo=w.userinfo,A.host=w.host,A.port=w.port),A.scheme=w.scheme),A.fragment=g.fragment,A}function yn(w,g,N){var b=u({scheme:"null"},N);return rt(Lr(ut(w,b),ut(g,b),b,!0),b)}function fr(w,g){return typeof w=="string"?w=rt(ut(w,g),g):s(w)==="object"&&(w=ut(rt(w,g),g)),w}function En(w,g,N){return typeof w=="string"?w=rt(ut(w,N),N):s(w)==="object"&&(w=rt(w,N)),typeof g=="string"?g=rt(ut(g,N),N):s(g)==="object"&&(g=rt(g,N)),w===g}function Qn(w,g){return w&&w.toString().replace(!g||!g.iri?a.ESCAPE:l.ESCAPE,G)}function ht(w,g){return w&&w.toString().replace(!g||!g.iri?a.PCT_ENCODED:l.PCT_ENCODED,ne)}var lr={scheme:"http",domainHost:!0,parse:function(g,N){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,N){var b=String(g.scheme).toLowerCase()==="https";return(g.port===(b?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},ua={scheme:"https",domainHost:lr.domainHost,parse:lr.parse,serialize:lr.serialize};function fa(w){return typeof w.secure=="boolean"?w.secure:String(w.scheme).toLowerCase()==="wss"}var vn={scheme:"ws",domainHost:!0,parse:function(g,N){var b=g;return b.secure=fa(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b},serialize:function(g,N){if((g.port===(fa(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var b=g.resourceName.split("?"),A=v(b,2),K=A[0],W=A[1];g.path=K&&K!=="/"?K:void 0,g.query=W,g.resourceName=void 0}return g.fragment=void 0,g}},la={scheme:"wss",domainHost:vn.domainHost,parse:vn.parse,serialize:vn.serialize},Jf={},da="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Pt="[0-9A-Fa-f]",Yf=i(i("%[EFef]"+Pt+"%"+Pt+Pt+"%"+Pt+Pt)+"|"+i("%[89A-Fa-f]"+Pt+"%"+Pt+Pt)+"|"+i("%"+Pt+Pt)),Qf="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",el="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",tl=n(el,'[\\"\\\\]'),rl="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",nl=new RegExp(da,"g"),Fr=new RegExp(Yf,"g"),il=new RegExp(n("[^]",Qf,"[\\.]",'[\\"]',tl),"g"),ha=new RegExp(n("[^]",da,rl),"g"),sl=ha;function fs(w){var g=ne(w);return g.match(nl)?g:w}var ma={scheme:"mailto",parse:function(g,N){var b=g,A=b.to=b.path?b.path.split(","):[];if(b.path=void 0,b.query){for(var K=!1,W={},ue=b.query.split("&"),ve=0,De=ue.length;ve<De;++ve){var ie=ue[ve].split("=");switch(ie[0]){case"to":for(var ye=ie[1].split(","),Re=0,Q=ye.length;Re<Q;++Re)A.push(ye[Re]);break;case"subject":b.subject=ht(ie[1],N);break;case"body":b.body=ht(ie[1],N);break;default:K=!0,W[ht(ie[0],N)]=ht(ie[1],N);break}}K&&(b.headers=W)}b.query=void 0;for(var $e=0,Pe=A.length;$e<Pe;++$e){var _e=A[$e].split("@");if(_e[0]=ht(_e[0]),N.unicodeSupport)_e[1]=ht(_e[1],N).toLowerCase();else try{_e[1]=L.toASCII(ht(_e[1],N).toLowerCase())}catch(Wt){b.error=b.error||"Email address's domain name can not be converted to ASCII via punycode: "+Wt}A[$e]=_e.join("@")}return b},serialize:function(g,N){var b=g,A=c(g.to);if(A){for(var K=0,W=A.length;K<W;++K){var ue=String(A[K]),ve=ue.lastIndexOf("@"),De=ue.slice(0,ve).replace(Fr,fs).replace(Fr,o).replace(il,G),ie=ue.slice(ve+1);try{ie=N.iri?L.toUnicode(ie):L.toASCII(ht(ie,N).toLowerCase())}catch($e){b.error=b.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+$e}A[K]=De+"@"+ie}b.path=A.join(",")}var ye=g.headers=g.headers||{};g.subject&&(ye.subject=g.subject),g.body&&(ye.body=g.body);var Re=[];for(var Q in ye)ye[Q]!==Jf[Q]&&Re.push(Q.replace(Fr,fs).replace(Fr,o).replace(ha,G)+"="+ye[Q].replace(Fr,fs).replace(Fr,o).replace(sl,G));return Re.length&&(b.query=Re.join("&")),b}},ol=/^([^\:]+)\:(.*)/,pa={scheme:"urn",parse:function(g,N){var b=g.path&&g.path.match(ol),A=g;if(b){var K=N.scheme||A.scheme||"urn",W=b[1].toLowerCase(),ue=b[2],ve=K+":"+(N.nid||W),De=q[ve];A.nid=W,A.nss=ue,A.path=void 0,De&&(A=De.parse(A,N))}else A.error=A.error||"URN can not be parsed.";return A},serialize:function(g,N){var b=N.scheme||g.scheme||"urn",A=g.nid,K=b+":"+(N.nid||A),W=q[K];W&&(g=W.serialize(g,N));var ue=g,ve=g.nss;return ue.path=(A||N.nid)+":"+ve,ue}},al=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ya={scheme:"urn:uuid",parse:function(g,N){var b=g;return b.uuid=b.nss,b.nss=void 0,!N.tolerant&&(!b.uuid||!b.uuid.match(al))&&(b.error=b.error||"UUID is not valid."),b},serialize:function(g,N){var b=g;return b.nss=(g.uuid||"").toLowerCase(),b}};q[lr.scheme]=lr,q[ua.scheme]=ua,q[vn.scheme]=vn,q[la.scheme]=la,q[ma.scheme]=ma,q[pa.scheme]=pa,q[ya.scheme]=ya,r.SCHEMES=q,r.pctEncChar=G,r.pctDecChars=ne,r.parse=ut,r.removeDotSegments=Ct,r.serialize=rt,r.resolveComponents=Lr,r.resolve=yn,r.normalize=fr,r.equal=En,r.escapeComponent=Qn,r.unescapeComponent=ht,Object.defineProperty(r,"__esModule",{value:!0})})})(js,js.exports);Object.defineProperty(_o,"__esModule",{value:!0});const Df=js.exports;Df.code='require("ajv/dist/runtime/uri").default';_o.default=Df;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=It;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=te;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Xi,i=Zi,s=Ir,o=ot,c=te,u=ze,m=Jn,a=fe,l=ly,v=_o,h=(R,I)=>new RegExp(R,I);h.code="new RegExp";const d=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function _(R){var I,F,C,p,S,L,q,G,ne,oe,Te,Rt,Cr,dn,hn,ut,mn,Pr,Ar,br,pn,Ct,rt,Lr,yn;const fr=R.strict,En=(I=R.code)===null||I===void 0?void 0:I.optimize,Qn=En===!0||En===void 0?1:En||0,ht=(C=(F=R.code)===null||F===void 0?void 0:F.regExp)!==null&&C!==void 0?C:h,lr=(p=R.uriResolver)!==null&&p!==void 0?p:v.default;return{strictSchema:(L=(S=R.strictSchema)!==null&&S!==void 0?S:fr)!==null&&L!==void 0?L:!0,strictNumbers:(G=(q=R.strictNumbers)!==null&&q!==void 0?q:fr)!==null&&G!==void 0?G:!0,strictTypes:(oe=(ne=R.strictTypes)!==null&&ne!==void 0?ne:fr)!==null&&oe!==void 0?oe:"log",strictTuples:(Rt=(Te=R.strictTuples)!==null&&Te!==void 0?Te:fr)!==null&&Rt!==void 0?Rt:"log",strictRequired:(dn=(Cr=R.strictRequired)!==null&&Cr!==void 0?Cr:fr)!==null&&dn!==void 0?dn:!1,code:R.code?{...R.code,optimize:Qn,regExp:ht}:{optimize:Qn,regExp:ht},loopRequired:(hn=R.loopRequired)!==null&&hn!==void 0?hn:$,loopEnum:(ut=R.loopEnum)!==null&&ut!==void 0?ut:$,meta:(mn=R.meta)!==null&&mn!==void 0?mn:!0,messages:(Pr=R.messages)!==null&&Pr!==void 0?Pr:!0,inlineRefs:(Ar=R.inlineRefs)!==null&&Ar!==void 0?Ar:!0,schemaId:(br=R.schemaId)!==null&&br!==void 0?br:"$id",addUsedSchema:(pn=R.addUsedSchema)!==null&&pn!==void 0?pn:!0,validateSchema:(Ct=R.validateSchema)!==null&&Ct!==void 0?Ct:!0,validateFormats:(rt=R.validateFormats)!==null&&rt!==void 0?rt:!0,unicodeRegExp:(Lr=R.unicodeRegExp)!==null&&Lr!==void 0?Lr:!0,int32range:(yn=R.int32range)!==null&&yn!==void 0?yn:!0,uriResolver:lr}}class T{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,..._(I)};const{es5:F,lines:C}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:y,es5:F,lines:C}),this.logger=V(I.logger);const p=I.validateFormats;I.validateFormats=!1,this.RULES=(0,s.getRules)(),k.call(this,E,I,"NOT SUPPORTED"),k.call(this,f,I,"DEPRECATED","warn"),this._metaOpts=U.call(this),I.formats&&M.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&P.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),D.call(this),I.validateFormats=p}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:F,schemaId:C}=this.opts;let p=l;C==="id"&&(p={...l},p.id=p.$id,delete p.$id),F&&I&&this.addMetaSchema(p,p[C],!1)}defaultMeta(){const{meta:I,schemaId:F}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[F]||I:void 0}validate(I,F){let C;if(typeof I=="string"){if(C=this.getSchema(I),!C)throw new Error(`no schema with key or ref "${I}"`)}else C=this.compile(I);const p=C(F);return"$async"in C||(this.errors=C.errors),p}compile(I,F){const C=this._addSchema(I,F);return C.validate||this._compileSchemaEnv(C)}compileAsync(I,F){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:C}=this.opts;return p.call(this,I,F);async function p(oe,Te){await S.call(this,oe.$schema);const Rt=this._addSchema(oe,Te);return Rt.validate||L.call(this,Rt)}async function S(oe){oe&&!this.getSchema(oe)&&await p.call(this,{$ref:oe},!0)}async function L(oe){try{return this._compileSchemaEnv(oe)}catch(Te){if(!(Te instanceof i.default))throw Te;return q.call(this,Te),await G.call(this,Te.missingSchema),L.call(this,oe)}}function q({missingSchema:oe,missingRef:Te}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${Te} cannot be resolved`)}async function G(oe){const Te=await ne.call(this,oe);this.refs[oe]||await S.call(this,Te.$schema),this.refs[oe]||this.addSchema(Te,oe,F)}async function ne(oe){const Te=this._loading[oe];if(Te)return Te;try{return await(this._loading[oe]=C(oe))}finally{delete this._loading[oe]}}}addSchema(I,F,C,p=this.opts.validateSchema){if(Array.isArray(I)){for(const L of I)this.addSchema(L,void 0,C,p);return this}let S;if(typeof I=="object"){const{schemaId:L}=this.opts;if(S=I[L],S!==void 0&&typeof S!="string")throw new Error(`schema ${L} must be string`)}return F=(0,u.normalizeId)(F||S),this._checkUnique(F),this.schemas[F]=this._addSchema(I,C,F,p,!0),this}addMetaSchema(I,F,C=this.opts.validateSchema){return this.addSchema(I,F,!0,C),this}validateSchema(I,F){if(typeof I=="boolean")return!0;let C;if(C=I.$schema,C!==void 0&&typeof C!="string")throw new Error("$schema must be a string");if(C=C||this.opts.defaultMeta||this.defaultMeta(),!C)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const p=this.validate(C,I);if(!p&&F){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return p}getSchema(I){let F;for(;typeof(F=O.call(this,I))=="string";)I=F;if(F===void 0){const{schemaId:C}=this.opts,p=new o.SchemaEnv({schema:{},schemaId:C});if(F=o.resolveSchema.call(this,p,I),!F)return;this.refs[I]=F}return F.validate||this._compileSchemaEnv(F)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const F=O.call(this,I);return typeof F=="object"&&this._cache.delete(F.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const F=I;this._cache.delete(F);let C=I[this.opts.schemaId];return C&&(C=(0,u.normalizeId)(C),delete this.schemas[C],delete this.refs[C]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const F of I)this.addKeyword(F);return this}addKeyword(I,F){let C;if(typeof I=="string")C=I,typeof F=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=C);else if(typeof I=="object"&&F===void 0){if(F=I,C=F.keyword,Array.isArray(C)&&!C.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Z.call(this,C,F),!F)return(0,a.eachItem)(C,S=>ee.call(this,S)),this;X.call(this,F);const p={...F,type:(0,m.getJSONTypes)(F.type),schemaType:(0,m.getJSONTypes)(F.schemaType)};return(0,a.eachItem)(C,p.type.length===0?S=>ee.call(this,S,p):S=>p.type.forEach(L=>ee.call(this,S,p,L))),this}getKeyword(I){const F=this.RULES.all[I];return typeof F=="object"?F.definition:!!F}removeKeyword(I){const{RULES:F}=this;delete F.keywords[I],delete F.all[I];for(const C of F.rules){const p=C.rules.findIndex(S=>S.keyword===I);p>=0&&C.rules.splice(p,1)}return this}addFormat(I,F){return typeof F=="string"&&(F=new RegExp(F)),this.formats[I]=F,this}errorsText(I=this.errors,{separator:F=", ",dataVar:C="data"}={}){return!I||I.length===0?"No errors":I.map(p=>`${C}${p.instancePath} ${p.message}`).reduce((p,S)=>p+F+S)}$dataMetaSchema(I,F){const C=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const p of F){const S=p.split("/").slice(1);let L=I;for(const q of S)L=L[q];for(const q in C){const G=C[q];if(typeof G!="object")continue;const{$data:ne}=G.definition,oe=L[q];ne&&oe&&(L[q]=z(oe))}}return I}_removeAllSchemas(I,F){for(const C in I){const p=I[C];(!F||F.test(C))&&(typeof p=="string"?delete I[C]:p&&!p.meta&&(this._cache.delete(p.schema),delete I[C]))}}_addSchema(I,F,C,p=this.opts.validateSchema,S=this.opts.addUsedSchema){let L;const{schemaId:q}=this.opts;if(typeof I=="object")L=I[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let G=this._cache.get(I);if(G!==void 0)return G;C=(0,u.normalizeId)(L||C);const ne=u.getSchemaRefs.call(this,I,C);return G=new o.SchemaEnv({schema:I,schemaId:q,meta:F,baseId:C,localRefs:ne}),this._cache.set(G.schema,G),S&&!C.startsWith("#")&&(C&&this._checkUnique(C),this.refs[C]=G),p&&this.validateSchema(I,!0),G}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):o.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const F=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,I)}finally{this.opts=F}}}e.default=T,T.ValidationError=n.default,T.MissingRefError=i.default;function k(R,I,F,C="error"){for(const p in R){const S=p;S in I&&this.logger[C](`${F}: option ${p}. ${R[S]}`)}}function O(R){return R=(0,u.normalizeId)(R),this.schemas[R]||this.refs[R]}function D(){const R=this.opts.schemas;if(!!R)if(Array.isArray(R))this.addSchema(R);else for(const I in R)this.addSchema(R[I],I)}function M(){for(const R in this.opts.formats){const I=this.opts.formats[R];I&&this.addFormat(R,I)}}function P(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in R){const F=R[I];F.keyword||(F.keyword=I),this.addKeyword(F)}}function U(){const R={...this.opts};for(const I of d)delete R[I];return R}const x={log(){},warn(){},error(){}};function V(R){if(R===!1)return x;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const Y=/^[a-z_$][a-z0-9_$:-]*$/i;function Z(R,I){const{RULES:F}=this;if((0,a.eachItem)(R,C=>{if(F.keywords[C])throw new Error(`Keyword ${C} is already defined`);if(!Y.test(C))throw new Error(`Keyword ${C} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function ee(R,I,F){var C;const p=I==null?void 0:I.post;if(F&&p)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let L=p?S.post:S.rules.find(({type:G})=>G===F);if(L||(L={type:F,rules:[]},S.rules.push(L)),S.keywords[R]=!0,!I)return;const q={keyword:R,definition:{...I,type:(0,m.getJSONTypes)(I.type),schemaType:(0,m.getJSONTypes)(I.schemaType)}};I.before?ce.call(this,L,q,I.before):L.rules.push(q),S.all[R]=q,(C=I.implements)===null||C===void 0||C.forEach(G=>this.addKeyword(G))}function ce(R,I,F){const C=R.rules.findIndex(p=>p.keyword===F);C>=0?R.rules.splice(C,0,I):(R.rules.push(I),this.logger.warn(`rule ${F} is not defined`))}function X(R){let{metaSchema:I}=R;I!==void 0&&(R.$data&&this.opts.$data&&(I=z(I)),R.validateSchema=this.compile(I,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z(R){return{anyOf:[R,j]}}})(nf);var So={},wo={},No={};Object.defineProperty(No,"__esModule",{value:!0});const dy={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};No.default=dy;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.callRef=Or.getValidate=void 0;const hy=Zi,Qa=re,it=te,zr=zt,ec=ot,ci=fe,my={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:c,self:u}=n,{root:m}=s;if((r==="#"||r==="#/")&&i===m.baseId)return l();const a=ec.resolveRef.call(u,m,i,r);if(a===void 0)throw new hy.default(n.opts.uriResolver,i,r);if(a instanceof ec.SchemaEnv)return v(a);return h(a);function l(){if(s===m)return _i(e,o,s,s.$async);const d=t.scopeValue("root",{ref:m});return _i(e,(0,it._)`${d}.validate`,m,m.$async)}function v(d){const y=Rf(e,d);_i(e,y,d,d.$async)}function h(d){const y=t.scopeValue("schema",c.code.source===!0?{ref:d,code:(0,it.stringify)(d)}:{ref:d}),E=t.name("valid"),f=e.subschema({schema:d,dataTypes:[],schemaPath:it.nil,topSchemaRef:y,errSchemaPath:r},E);e.mergeEvaluated(f),e.ok(E)}}};function Rf(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,it._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Or.getValidate=Rf;function _i(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,m=u.passContext?zr.default.this:it.nil;n?a():l();function a(){if(!c.$async)throw new Error("async schema referenced by sync schema");const d=i.let("valid");i.try(()=>{i.code((0,it._)`await ${(0,Qa.callValidateCode)(e,t,m)}`),h(t),o||i.assign(d,!0)},y=>{i.if((0,it._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),v(y),o||i.assign(d,!1)}),e.ok(d)}function l(){e.result((0,Qa.callValidateCode)(e,t,m),()=>h(t),()=>v(t))}function v(d){const y=(0,it._)`${d}.errors`;i.assign(zr.default.vErrors,(0,it._)`${zr.default.vErrors} === null ? ${y} : ${zr.default.vErrors}.concat(${y})`),i.assign(zr.default.errors,(0,it._)`${zr.default.vErrors}.length`)}function h(d){var y;if(!s.opts.unevaluated)return;const E=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(E&&!E.dynamicProps)E.props!==void 0&&(s.props=ci.mergeEvaluated.props(i,E.props,s.props));else{const f=i.var("props",(0,it._)`${d}.evaluated.props`);s.props=ci.mergeEvaluated.props(i,f,s.props,it.Name)}if(s.items!==!0)if(E&&!E.dynamicItems)E.items!==void 0&&(s.items=ci.mergeEvaluated.items(i,E.items,s.items));else{const f=i.var("items",(0,it._)`${d}.evaluated.items`);s.items=ci.mergeEvaluated.items(i,f,s.items,it.Name)}}}Or.callRef=_i;Or.default=my;Object.defineProperty(wo,"__esModule",{value:!0});const py=No,yy=Or,Ey=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",py.default,yy.default];wo.default=Ey;var Io={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const bi=te,Jt=bi.operators,Li={maximum:{okStr:"<=",ok:Jt.LTE,fail:Jt.GT},minimum:{okStr:">=",ok:Jt.GTE,fail:Jt.LT},exclusiveMaximum:{okStr:"<",ok:Jt.LT,fail:Jt.GTE},exclusiveMinimum:{okStr:">",ok:Jt.GT,fail:Jt.LTE}},vy={message:({keyword:e,schemaCode:t})=>(0,bi.str)`must be ${Li[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,bi._)`{comparison: ${Li[e].okStr}, limit: ${t}}`},gy={keyword:Object.keys(Li),type:"number",schemaType:"number",$data:!0,error:vy,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,bi._)`${r} ${Li[t].fail} ${n} || isNaN(${r})`)}};Oo.default=gy;var To={};Object.defineProperty(To,"__esModule",{value:!0});const Pn=te,$y={message:({schemaCode:e})=>(0,Pn.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Pn._)`{multipleOf: ${e}}`},_y={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:$y,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,Pn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,Pn._)`${o} !== parseInt(${o})`;e.fail$data((0,Pn._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};To.default=_y;var Do={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});function Cf(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}Ro.default=Cf;Cf.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Do,"__esModule",{value:!0});const vr=te,Sy=fe,wy=Ro,Ny={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,vr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,vr._)`{limit: ${e}}`},Iy={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ny,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?vr.operators.GT:vr.operators.LT,o=i.opts.unicode===!1?(0,vr._)`${r}.length`:(0,vr._)`${(0,Sy.useFunc)(e.gen,wy.default)}(${r})`;e.fail$data((0,vr._)`${o} ${s} ${n}`)}};Do.default=Iy;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});const Oy=re,Fi=te,Ty={message:({schemaCode:e})=>(0,Fi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Fi._)`{pattern: ${e}}`},Dy={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ty,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,Fi._)`(new RegExp(${i}, ${o}))`:(0,Oy.usePattern)(e,n);e.fail$data((0,Fi._)`!${c}.test(${t})`)}};Co.default=Dy;var Po={};Object.defineProperty(Po,"__esModule",{value:!0});const An=te,Ry={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,An.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,An._)`{limit: ${e}}`},Cy={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Ry,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?An.operators.GT:An.operators.LT;e.fail$data((0,An._)`Object.keys(${r}).length ${i} ${n}`)}};Po.default=Cy;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const Sn=re,bn=te,Py=fe,Ay={message:({params:{missingProperty:e}})=>(0,bn.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,bn._)`{missingProperty: ${e}}`},by={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ay,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:o}=e,{opts:c}=o;if(!s&&r.length===0)return;const u=r.length>=c.loopRequired;if(o.allErrors?m():a(),c.strictRequired){const h=e.parentSchema.properties,{definedProperties:d}=e.it;for(const y of r)if((h==null?void 0:h[y])===void 0&&!d.has(y)){const E=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${y}" is not defined at "${E}" (strictRequired)`;(0,Py.checkStrictMode)(o,f,o.opts.strictRequired)}}function m(){if(u||s)e.block$data(bn.nil,l);else for(const h of r)(0,Sn.checkReportMissingProp)(e,h)}function a(){const h=t.let("missing");if(u||s){const d=t.let("valid",!0);e.block$data(d,()=>v(h,d)),e.ok(d)}else t.if((0,Sn.checkMissingProp)(e,r,h)),(0,Sn.reportMissingProp)(e,h),t.else()}function l(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Sn.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}function v(h,d){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(d,(0,Sn.propertyInData)(t,i,h,c.ownProperties)),t.if((0,bn.not)(d),()=>{e.error(),t.break()})},bn.nil)}}};Ao.default=by;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});const Ln=te,Ly={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Ln.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ln._)`{limit: ${e}}`},Fy={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ly,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ln.operators.GT:Ln.operators.LT;e.fail$data((0,Ln._)`${r}.length ${i} ${n}`)}};bo.default=Fy;var Lo={},Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Pf=df;Pf.code='require("ajv/dist/runtime/equal").default';Yn.default=Pf;Object.defineProperty(Lo,"__esModule",{value:!0});const gs=Jn,ke=te,jy=fe,My=Yn,ky={message:({params:{i:e,j:t}})=>(0,ke.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,ke._)`{i: ${e}, j: ${t}}`},Uy={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ky,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:c}=e;if(!n&&!i)return;const u=t.let("valid"),m=s.items?(0,gs.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,ke._)`${o} === false`),e.ok(u);function a(){const d=t.let("i",(0,ke._)`${r}.length`),y=t.let("j");e.setParams({i:d,j:y}),t.assign(u,!0),t.if((0,ke._)`${d} > 1`,()=>(l()?v:h)(d,y))}function l(){return m.length>0&&!m.some(d=>d==="object"||d==="array")}function v(d,y){const E=t.name("item"),f=(0,gs.checkDataTypes)(m,E,c.opts.strictNumbers,gs.DataType.Wrong),$=t.const("indices",(0,ke._)`{}`);t.for((0,ke._)`;${d}--;`,()=>{t.let(E,(0,ke._)`${r}[${d}]`),t.if(f,(0,ke._)`continue`),m.length>1&&t.if((0,ke._)`typeof ${E} == "string"`,(0,ke._)`${E} += "_"`),t.if((0,ke._)`typeof ${$}[${E}] == "number"`,()=>{t.assign(y,(0,ke._)`${$}[${E}]`),e.error(),t.assign(u,!1).break()}).code((0,ke._)`${$}[${E}] = ${d}`)})}function h(d,y){const E=(0,jy.useFunc)(t,My.default),f=t.name("outer");t.label(f).for((0,ke._)`;${d}--;`,()=>t.for((0,ke._)`${y} = ${d}; ${y}--;`,()=>t.if((0,ke._)`${E}(${r}[${d}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};Lo.default=Uy;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});const Ms=te,zy=fe,xy=Yn,Vy={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ms._)`{allowedValue: ${e}}`},qy={keyword:"const",$data:!0,error:Vy,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ms._)`!${(0,zy.useFunc)(t,xy.default)}(${r}, ${i})`):e.fail((0,Ms._)`${s} !== ${r}`)}};Fo.default=qy;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});const On=te,Gy=fe,By=Yn,Hy={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,On._)`{allowedValues: ${e}}`},Ky={keyword:"enum",schemaType:"array",$data:!0,error:Hy,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const c=i.length>=o.opts.loopEnum;let u;const m=()=>u!=null?u:u=(0,Gy.useFunc)(t,By.default);let a;if(c||n)a=t.let("valid"),e.block$data(a,l);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",s);a=(0,On.or)(...i.map((d,y)=>v(h,y)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,h=>t.if((0,On._)`${m()}(${r}, ${h})`,()=>t.assign(a,!0).break()))}function v(h,d){const y=i[d];return typeof y=="object"&&y!==null?(0,On._)`${m()}(${r}, ${h}[${d}])`:(0,On._)`${r} === ${y}`}}};jo.default=Ky;Object.defineProperty(Io,"__esModule",{value:!0});const Wy=Oo,Xy=To,Zy=Do,Jy=Co,Yy=Po,Qy=Ao,e0=bo,t0=Lo,r0=Fo,n0=jo,i0=[Wy.default,Xy.default,Zy.default,Jy.default,Yy.default,Qy.default,e0.default,t0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},r0.default,n0.default];Io.default=i0;var Mo={},un={};Object.defineProperty(un,"__esModule",{value:!0});un.validateAdditionalItems=void 0;const gr=te,ks=fe,s0={message:({params:{len:e}})=>(0,gr.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,gr._)`{limit: ${e}}`},o0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:s0,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ks.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Af(e,n)}};function Af(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,gr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,gr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,ks.alwaysValidSchema)(o,n)){const m=r.var("valid",(0,gr._)`${c} <= ${t.length}`);r.if((0,gr.not)(m),()=>u(m)),e.ok(m)}function u(m){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:ks.Type.Num},m),o.allErrors||r.if((0,gr.not)(m),()=>r.break())})}}un.validateAdditionalItems=Af;un.default=o0;var ko={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});fn.validateTuple=void 0;const tc=te,Si=fe,a0=re,c0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return bf(e,"additionalItems",t);r.items=!0,!(0,Si.alwaysValidSchema)(r,t)&&e.ok((0,a0.validateArray)(e))}};function bf(e,t,r=e.schema){const{gen:n,parentSchema:i,data:s,keyword:o,it:c}=e;a(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Si.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),m=n.const("len",(0,tc._)`${s}.length`);r.forEach((l,v)=>{(0,Si.alwaysValidSchema)(c,l)||(n.if((0,tc._)`${m} > ${v}`,()=>e.subschema({keyword:o,schemaProp:v,dataProp:v},u)),e.ok(u))});function a(l){const{opts:v,errSchemaPath:h}=c,d=r.length,y=d===l.minItems&&(d===l.maxItems||l[t]===!1);if(v.strictTuples&&!y){const E=`"${o}" is ${d}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Si.checkStrictMode)(c,E,v.strictTuples)}}}fn.validateTuple=bf;fn.default=c0;Object.defineProperty(ko,"__esModule",{value:!0});const u0=fn,f0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,u0.validateTuple)(e,"items")};ko.default=f0;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});const rc=te,l0=fe,d0=re,h0=un,m0={message:({params:{len:e}})=>(0,rc.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rc._)`{limit: ${e}}`},p0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:m0,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,l0.alwaysValidSchema)(n,t)&&(i?(0,h0.validateAdditionalItems)(e,i):e.ok((0,d0.validateArray)(e)))}};Uo.default=p0;var zo={};Object.defineProperty(zo,"__esModule",{value:!0});const pt=te,ui=fe,y0={message:({params:{min:e,max:t}})=>t===void 0?(0,pt.str)`must contain at least ${e} valid item(s)`:(0,pt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,pt._)`{minContains: ${e}}`:(0,pt._)`{minContains: ${e}, maxContains: ${t}}`},E0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:y0,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,c;const{minContains:u,maxContains:m}=n;s.opts.next?(o=u===void 0?1:u,c=m):o=1;const a=t.const("len",(0,pt._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,ui.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,ui.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ui.alwaysValidSchema)(s,r)){let y=(0,pt._)`${a} >= ${o}`;c!==void 0&&(y=(0,pt._)`${y} && ${a} <= ${c}`),e.pass(y);return}s.items=!0;const l=t.name("valid");c===void 0&&o===1?h(l,()=>t.if(l,()=>t.break())):o===0?(t.let(l,!0),c!==void 0&&t.if((0,pt._)`${i}.length > 0`,v)):(t.let(l,!1),v()),e.result(l,()=>e.reset());function v(){const y=t.name("_valid"),E=t.let("count",0);h(y,()=>t.if(y,()=>d(E)))}function h(y,E){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:ui.Type.Num,compositeRule:!0},y),E()})}function d(y){t.code((0,pt._)`${y}++`),c===void 0?t.if((0,pt._)`${y} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,pt._)`${y} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,pt._)`${y} >= ${o}`,()=>t.assign(l,!0)))}}};zo.default=E0;var Lf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=te,r=fe,n=re;e.error={message:({params:{property:u,depsCount:m,deps:a}})=>{const l=m===1?"property":"properties";return(0,t.str)`must have ${l} ${a} when property ${u} is present`},params:({params:{property:u,depsCount:m,deps:a,missingProperty:l}})=>(0,t._)`{property: ${u},
|
|
12
12
|
missingProperty: ${l},
|
|
13
13
|
depsCount: ${m},
|
|
14
|
-
deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[m,a]=s(u);o(u,m),c(u,a)}};function s({schema:u}){const m={},a={};for(const l in u){if(l==="__proto__")continue;const v=Array.isArray(u[l])?m:a;v[l]=u[l]}return[m,a]}function o(u,m=u.schema){const{gen:a,data:l,it:v}=u;if(Object.keys(m).length===0)return;const h=a.let("missing");for(const d in m){const p=m[d];if(p.length===0)continue;const E=(0,n.propertyInData)(a,l,d,v.opts.ownProperties);u.setParams({property:d,depsCount:p.length,deps:p.join(", ")}),v.allErrors?a.if(E,()=>{for(const f of p)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${E} && (${(0,n.checkMissingProp)(u,p,h)})`),(0,n.reportMissingProp)(u,h),a.else())}}e.validatePropertyDeps=o;function c(u,m=u.schema){const{gen:a,data:l,keyword:v,it:h}=u,d=a.name("valid");for(const p in m)(0,r.alwaysValidSchema)(h,m[p])||(a.if((0,n.propertyInData)(a,l,p,h.opts.ownProperties),()=>{const E=u.subschema({keyword:v,schemaProp:p},d);u.mergeValidEvaluated(E,d)},()=>a.var(d,!0)),u.ok(d))}e.validateSchemaDeps=c,e.default=i})(kf);var qo={};Object.defineProperty(qo,"__esModule",{value:!0});const Uf=re,T0=le,D0={message:"property name must be valid",params:({params:e})=>(0,Uf._)`{propertyName: ${e.propertyName}}`},R0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D0,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,T0.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,Uf.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};qo.default=R0;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});const di=ne,$t=re,C0=Vt,hi=le,P0={message:"must NOT have additional properties",params:({params:e})=>(0,$t._)`{additionalProperty: ${e.additionalProperty}}`},A0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:P0,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,hi.alwaysValidSchema)(o,r))return;const m=(0,di.allSchemaProperties)(n.properties),a=(0,di.allSchemaProperties)(n.patternProperties);l(),e.ok((0,$t._)`${s} === ${C0.default.errors}`);function l(){t.forIn("key",i,E=>{!m.length&&!a.length?d(E):t.if(v(E),()=>d(E))})}function v(E){let f;if(m.length>8){const $=(0,hi.schemaRefOrVal)(o,n.properties,"properties");f=(0,di.isOwnProperty)(t,$,E)}else m.length?f=(0,$t.or)(...m.map($=>(0,$t._)`${E} === ${$}`)):f=$t.nil;return a.length&&(f=(0,$t.or)(f,...a.map($=>(0,$t._)`${(0,di.usePattern)(e,$)}.test(${E})`))),(0,$t.not)(f)}function h(E){t.code((0,$t._)`delete ${i}[${E}]`)}function d(E){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,hi.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(p(E,f,!1),t.if((0,$t.not)(f),()=>{e.reset(),h(E)})):(p(E,f),c||t.if((0,$t.not)(f),()=>t.break()))}}function p(E,f,$){const _={keyword:"additionalProperties",dataProp:E,dataPropType:hi.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};ts.default=A0;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});const b0=Tt,ac=ne,Ss=le,cc=ts,L0={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&cc.default.code(new b0.KeywordCxt(s,cc.default,"additionalProperties"));const o=(0,ac.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Ss.mergeEvaluated.props(t,(0,Ss.toHash)(o),s.props));const c=o.filter(l=>!(0,Ss.alwaysValidSchema)(s,r[l]));if(c.length===0)return;const u=t.name("valid");for(const l of c)m(l)?a(l):(t.if((0,ac.propertyInData)(t,i,l,s.opts.ownProperties)),a(l),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(l),e.ok(u);function m(l){return s.opts.useDefaults&&!s.compositeRule&&r[l].default!==void 0}function a(l){e.subschema({keyword:"properties",schemaProp:l,dataProp:l},u)}}};Go.default=L0;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});const uc=ne,mi=re,fc=le,lc=le,F0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:o}=s,c=(0,uc.allSchemaProperties)(r),u=c.filter(p=>(0,fc.alwaysValidSchema)(s,r[p]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const m=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof mi.Name)&&(s.props=(0,lc.evaluatedPropsToName)(t,s.props));const{props:l}=s;v();function v(){for(const p of c)m&&h(p),s.allErrors?d(p):(t.var(a,!0),d(p),t.if(a))}function h(p){for(const E in m)new RegExp(p).test(E)&&(0,fc.checkStrictMode)(s,`property ${E} matches pattern ${p} (use allowMatchingProperties)`)}function d(p){t.forIn("key",n,E=>{t.if((0,mi._)`${(0,uc.usePattern)(e,p)}.test(${E})`,()=>{const f=u.includes(p);f||e.subschema({keyword:"patternProperties",schemaProp:p,dataProp:E,dataPropType:lc.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,mi._)`${l}[${E}]`,!0):!f&&!s.allErrors&&t.if((0,mi.not)(a),()=>t.break())})})}}};Bo.default=F0;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});const j0=le,M0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,j0.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ho.default=M0;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const k0=ne,U0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k0.validateUnion,error:{message:"must match a schema in anyOf"}};Ko.default=U0;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});const Ii=re,z0=le,x0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ii._)`{passingSchemas: ${e.passing}}`},V0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:x0,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(m),e.result(o,()=>e.reset(),()=>e.error(!0));function m(){s.forEach((a,l)=>{let v;(0,z0.alwaysValidSchema)(i,a)?t.var(u,!0):v=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,Ii._)`${u} && ${o}`).assign(o,!1).assign(c,(0,Ii._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),v&&e.mergeEvaluated(v,Ii.Name)})})}}};Wo.default=V0;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});const q0=le,G0={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((s,o)=>{if((0,q0.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Xo.default=G0;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});const ki=re,zf=le,B0={message:({params:e})=>(0,ki.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,ki._)`{failingKeyword: ${e.ifClause}}`},H0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:B0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,zf.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=dc(n,"then"),s=dc(n,"else");if(!i&&!s)return;const o=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){const a=t.let("ifClause");e.setParams({ifClause:a}),t.if(c,m("then",a),m("else",a))}else i?t.if(c,m("then")):t.if((0,ki.not)(c),m("else"));e.pass(o,()=>e.error(!0));function u(){const a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(a)}function m(a,l){return()=>{const v=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(v,o),l?t.assign(l,(0,ki._)`${a}`):e.setParams({ifClause:a})}}}};function dc(e,t){const r=e.schema[t];return r!==void 0&&!(0,zf.alwaysValidSchema)(e,r)}Zo.default=H0;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});const K0=le,W0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,K0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Jo.default=W0;Object.defineProperty(Uo,"__esModule",{value:!0});const X0=ln,Z0=zo,J0=dn,Y0=xo,Q0=Vo,eE=kf,tE=qo,rE=ts,nE=Go,iE=Bo,sE=Ho,oE=Ko,aE=Wo,cE=Xo,uE=Zo,fE=Jo;function lE(e=!1){const t=[sE.default,oE.default,aE.default,cE.default,uE.default,fE.default,tE.default,rE.default,eE.default,nE.default,iE.default];return e?t.push(Z0.default,Y0.default):t.push(X0.default,J0.default),t.push(Q0.default),t}Uo.default=lE;var Yo={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});const Pe=re,dE={message:({schemaCode:e})=>(0,Pe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Pe._)`{format: ${e}}`},hE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:dE,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:m,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?v():h();function v(){const d=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),p=r.const("fDef",(0,Pe._)`${d}[${o}]`),E=r.let("fType"),f=r.let("format");r.if((0,Pe._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>r.assign(E,(0,Pe._)`${p}.type || "string"`).assign(f,(0,Pe._)`${p}.validate`),()=>r.assign(E,(0,Pe._)`"string"`).assign(f,p)),e.fail$data((0,Pe.or)($(),_()));function $(){return u.strictSchema===!1?Pe.nil:(0,Pe._)`${o} && !${f}`}function _(){const T=a.$async?(0,Pe._)`(${p}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Pe._)`${f}(${n})`,k=(0,Pe._)`(typeof ${f} == "function" ? ${T} : ${f}.test(${n}))`;return(0,Pe._)`${f} && ${f} !== true && ${E} === ${t} && !${k}`}}function h(){const d=l.formats[s];if(!d){$();return}if(d===!0)return;const[p,E,f]=_(d);p===t&&e.pass(T());function $(){if(u.strictSchema===!1){l.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${s}" ignored in schema at path "${m}"`}}function _(k){const O=k instanceof RegExp?(0,Pe.regexpCode)(k):u.code.formats?(0,Pe._)`${u.code.formats}${(0,Pe.getProperty)(s)}`:void 0,D=r.scopeValue("formats",{key:s,ref:k,code:O});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,Pe._)`${D}.validate`]:["string",k,D]}function T(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Pe._)`await ${f}(${n})`}return typeof E=="function"?(0,Pe._)`${f}(${n})`:(0,Pe._)`${f}.test(${n})`}}}};Qo.default=hE;Object.defineProperty(Yo,"__esModule",{value:!0});const mE=Qo,pE=[mE.default];Yo.default=pE;var cn={};Object.defineProperty(cn,"__esModule",{value:!0});cn.contentVocabulary=cn.metadataVocabulary=void 0;cn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];cn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(No,"__esModule",{value:!0});const yE=Io,EE=To,vE=Uo,gE=Yo,hc=cn,$E=[yE.default,EE.default,(0,vE.default)(),gE.default,hc.metadataVocabulary,hc.contentVocabulary];No.default=$E;var ea={},xf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(xf);Object.defineProperty(ea,"__esModule",{value:!0});const Br=re,xs=xf,mc=at,_E=le,SE={message:({params:{discrError:e,tagName:t}})=>e===xs.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Br._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},wE={keyword:"discriminator",type:"object",schemaType:"object",error:SE,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),m=t.const("tag",(0,Br._)`${r}${(0,Br.getProperty)(c)}`);t.if((0,Br._)`typeof ${m} == "string"`,()=>a(),()=>e.error(!1,{discrError:xs.DiscrError.Tag,tag:m,tagName:c})),e.ok(u);function a(){const h=v();t.if(!1);for(const d in h)t.elseIf((0,Br._)`${m} === ${d}`),t.assign(u,l(h[d]));t.else(),e.error(!1,{discrError:xs.DiscrError.Mapping,tag:m,tagName:c}),t.endIf()}function l(h){const d=t.name("valid"),p=e.subschema({keyword:"oneOf",schemaProp:h},d);return e.mergeEvaluated(p,Br.Name),d}function v(){var h;const d={},p=f(i);let E=!0;for(let T=0;T<o.length;T++){let k=o[T];(k==null?void 0:k.$ref)&&!(0,_E.schemaHasRulesButRef)(k,s.self.RULES)&&(k=mc.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,k==null?void 0:k.$ref),k instanceof mc.SchemaEnv&&(k=k.schema));const O=(h=k==null?void 0:k.properties)===null||h===void 0?void 0:h[c];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);E=E&&(p||f(k)),$(O,T)}if(!E)throw new Error(`discriminator: "${c}" must be required`);return d;function f({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,k){if(T.const)_(T.const,k);else if(T.enum)for(const O of T.enum)_(O,k);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(T,k){if(typeof T!="string"||T in d)throw new Error(`discriminator: "${c}" values must be unique strings`);d[T]=k}}}};ea.default=wE;const NE="http://json-schema.org/draft-07/schema#",IE="http://json-schema.org/draft-07/schema#",OE="Core schema meta-schema",TE={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},DE=["object","boolean"],RE={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}};var CE={$schema:NE,$id:IE,title:OE,definitions:TE,type:DE,properties:RE,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=cf,n=No,i=ea,s=CE,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(v,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var m=Tt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var a=re;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}})})(bi,bi.exports);var Vs={exports:{}},Vf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,U){return{validate:P,compare:U}}e.fullFormats={date:t(s,o),time:t(u,m),"date-time":t(l,v),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:f,int32:{type:"number",validate:T},int64:{type:"number",validate:k},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats=Et(te({},e.fullFormats),{date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i}),e.formatNames=Object.keys(e.fullFormats);function r(P){return P%4===0&&(P%100!==0||P%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(P){const U=n.exec(P);if(!U)return!1;const x=+U[1],V=+U[2],Y=+U[3];return V>=1&&V<=12&&Y>=1&&Y<=(V===2&&r(x)?29:i[V])}function o(P,U){if(!!(P&&U))return P>U?1:P<U?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(P,U){const x=c.exec(P);if(!x)return!1;const V=+x[1],Y=+x[2],Z=+x[3],ee=x[5];return(V<=23&&Y<=59&&Z<=59||V===23&&Y===59&&Z===60)&&(!U||ee!=="")}function m(P,U){if(!(P&&U))return;const x=c.exec(P),V=c.exec(U);if(!!(x&&V))return P=x[1]+x[2]+x[3]+(x[4]||""),U=V[1]+V[2]+V[3]+(V[4]||""),P>U?1:P<U?-1:0}const a=/t|\s/i;function l(P){const U=P.split(a);return U.length===2&&s(U[0])&&u(U[1],!0)}function v(P,U){if(!(P&&U))return;const[x,V]=P.split(a),[Y,Z]=U.split(a),ee=o(x,Y);if(ee!==void 0)return ee||m(V,Z)}const h=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p(P){return h.test(P)&&d.test(P)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(P){return E.lastIndex=0,E.test(P)}const $=-(2**31),_=2**31-1;function T(P){return Number.isInteger(P)&&P<=_&&P>=$}function k(P){return Number.isInteger(P)}function O(){return!0}const D=/[^\\]\\Z/;function M(P){if(D.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}})(Vf);var qf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=bi.exports,r=re,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:u})=>r.str`should be ${i[c].okStr} ${u}`,params:({keyword:c,schemaCode:u})=>r._`{comparison: ${i[c].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:u,data:m,schemaCode:a,keyword:l,it:v}=c,{opts:h,self:d}=v;if(!h.validateFormats)return;const p=new t.KeywordCxt(v,d.RULES.all.format.definition,"format");p.$data?E():f();function E(){const _=u.scopeValue("formats",{ref:d.formats,code:h.code.formats}),T=u.const("fmt",r._`${_}[${p.schemaCode}]`);c.fail$data(r.or(r._`typeof ${T} != "object"`,r._`${T} instanceof RegExp`,r._`typeof ${T}.compare != "function"`,$(T)))}function f(){const _=p.schema,T=d.formats[_];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const k=u.scopeValue("formats",{key:_,ref:T,code:h.code.formats?r._`${h.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(k))}function $(_){return r._`${_}.compare(${m}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(qf);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Vf,n=qf,i=re,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(m,a={keywords:!0})=>{if(Array.isArray(a))return u(m,a,r.fullFormats,s),m;const[l,v]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],h=a.formats||r.formatNames;return u(m,h,l,v),a.keywords&&n.default(m),m};c.get=(m,a="full")=>{const v=(a==="fast"?r.fastFormats:r.fullFormats)[m];if(!v)throw new Error(`Unknown format "${m}"`);return v};function u(m,a,l,v){var h,d;(h=(d=m.opts.code).formats)!==null&&h!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${v}`);for(const p of a)m.addFormat(p,l[p])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Vs,Vs.exports);const PE=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!AE(i,s)&&n||Object.defineProperty(e,r,s)},AE=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},bE=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},LE=(e,t)=>`/* Wrapped ${e}*/
|
|
15
|
-
${t}`,FE=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jE=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ME=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=LE.bind(null,n,t.toString());Object.defineProperty(i,"name",jE),Object.defineProperty(e,"toString",Et(te({},FE),{value:i}))},kE=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))PE(e,t,i,r);return bE(e,t),ME(e,t,n),e};var UE=kE;const zE=UE;var xE=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const c=function(...u){const m=this,a=()=>{s=void 0,i&&(o=e.apply(m,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(m,u)),o};return zE(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},lr={exports:{}};const VE="2.0.0",qE=256,GE=Number.MAX_SAFE_INTEGER||9007199254740991,BE=16;var rs={SEMVER_SPEC_VERSION:VE,MAX_LENGTH:qE,MAX_SAFE_INTEGER:GE,MAX_SAFE_COMPONENT_LENGTH:BE};const HE=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ns=HE;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=rs,n=ns;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const v=c++;n(m,v,a),o[m]=v,s[v]=a,i[v]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lr,lr.exports);const KE=["includePrerelease","loose","rtl"],WE=e=>e?typeof e!="object"?{loose:!0}:KE.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var is=WE;const pc=/^[0-9]+$/,Gf=(e,t)=>{const r=pc.test(e),n=pc.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},XE=(e,t)=>Gf(t,e);var qs={compareIdentifiers:Gf,rcompareIdentifiers:XE};const pi=ns,{MAX_LENGTH:yc,MAX_SAFE_INTEGER:yi}=rs,{re:Ec,t:vc}=lr.exports,ZE=is,{compareIdentifiers:qr}=qs;class _t{constructor(t,r){if(r=ZE(r),t instanceof _t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>yc)throw new TypeError(`version is longer than ${yc} characters`);pi("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ec[vc.LOOSE]:Ec[vc.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>yi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yi||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<yi)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pi("SemVer.compare",this.version,this.options,t),!(t instanceof _t)){if(typeof t=="string"&&t===this.version)return 0;t=new _t(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof _t||(t=new _t(t,this.options)),qr(this.major,t.major)||qr(this.minor,t.minor)||qr(this.patch,t.patch)}comparePre(t){if(t instanceof _t||(t=new _t(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(pi("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(qr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var rt=_t;const{MAX_LENGTH:JE}=rs,{re:gc,t:$c}=lr.exports,_c=rt,YE=is,QE=(e,t)=>{if(t=YE(t),e instanceof _c)return e;if(typeof e!="string"||e.length>JE||!(t.loose?gc[$c.LOOSE]:gc[$c.FULL]).test(e))return null;try{return new _c(e,t)}catch{return null}};var hn=QE;const ev=hn,tv=(e,t)=>{const r=ev(e,t);return r?r.version:null};var rv=tv;const nv=hn,iv=(e,t)=>{const r=nv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var sv=iv;const Sc=rt,ov=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Sc(e instanceof Sc?e.version:e,r).inc(t,n).version}catch{return null}};var av=ov;const wc=rt,cv=(e,t,r)=>new wc(e,r).compare(new wc(t,r));var Rt=cv;const uv=Rt,fv=(e,t,r)=>uv(e,t,r)===0;var ta=fv;const Nc=hn,lv=ta,dv=(e,t)=>{if(lv(e,t))return null;{const r=Nc(e),n=Nc(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var hv=dv;const mv=rt,pv=(e,t)=>new mv(e,t).major;var yv=pv;const Ev=rt,vv=(e,t)=>new Ev(e,t).minor;var gv=vv;const $v=rt,_v=(e,t)=>new $v(e,t).patch;var Sv=_v;const wv=hn,Nv=(e,t)=>{const r=wv(e,t);return r&&r.prerelease.length?r.prerelease:null};var Iv=Nv;const Ov=Rt,Tv=(e,t,r)=>Ov(t,e,r);var Dv=Tv;const Rv=Rt,Cv=(e,t)=>Rv(e,t,!0);var Pv=Cv;const Ic=rt,Av=(e,t,r)=>{const n=new Ic(e,r),i=new Ic(t,r);return n.compare(i)||n.compareBuild(i)};var ra=Av;const bv=ra,Lv=(e,t)=>e.sort((r,n)=>bv(r,n,t));var Fv=Lv;const jv=ra,Mv=(e,t)=>e.sort((r,n)=>jv(n,r,t));var kv=Mv;const Uv=Rt,zv=(e,t,r)=>Uv(e,t,r)>0;var ss=zv;const xv=Rt,Vv=(e,t,r)=>xv(e,t,r)<0;var na=Vv;const qv=Rt,Gv=(e,t,r)=>qv(e,t,r)!==0;var Bf=Gv;const Bv=Rt,Hv=(e,t,r)=>Bv(e,t,r)>=0;var ia=Hv;const Kv=Rt,Wv=(e,t,r)=>Kv(e,t,r)<=0;var sa=Wv;const Xv=ta,Zv=Bf,Jv=ss,Yv=ia,Qv=na,eg=sa,tg=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Xv(e,r,n);case"!=":return Zv(e,r,n);case">":return Jv(e,r,n);case">=":return Yv(e,r,n);case"<":return Qv(e,r,n);case"<=":return eg(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Hf=tg;const rg=rt,ng=hn,{re:Ei,t:vi}=lr.exports,ig=(e,t)=>{if(e instanceof rg)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(Ei[vi.COERCE]);else{let n;for(;(n=Ei[vi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Ei[vi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ei[vi.COERCERTL].lastIndex=-1}return r===null?null:ng(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var sg=ig,og=de;de.Node=Rr;de.create=de;function de(e){var t=this;if(t instanceof de||(t=new de),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}de.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};de.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};de.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};de.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)cg(this,arguments[e]);return this.length};de.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ug(this,arguments[e]);return this.length};de.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};de.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};de.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};de.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};de.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};de.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};de.prototype.map=function(e,t){t=t||this;for(var r=new de,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};de.prototype.mapReverse=function(e,t){t=t||this;for(var r=new de,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};de.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};de.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};de.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};de.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};de.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};de.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new de;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};de.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=ag(this,i,r[n]);return s};de.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function ag(e,t,r){var n=t===e.head?new Rr(r,null,t,e):new Rr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function cg(e,t){e.tail=new Rr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ug(e,t){e.head=new Rr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Rr(e,t,r,n){if(!(this instanceof Rr))return new Rr(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{require("./iterator.js")(de)}catch{}const fg=og,Sr=Symbol("max"),Bt=Symbol("length"),Gr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),wr=Symbol("maxAge"),Gt=Symbol("dispose"),Oc=Symbol("noDisposeOnSet"),je=Symbol("lruList"),St=Symbol("cache"),Kf=Symbol("updateAgeOnGet"),ws=()=>1;class lg{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Sr]=t.max||1/0;const r=t.length||ws;if(this[Gr]=typeof r!="function"?ws:r,this[Mn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[wr]=t.maxAge||0,this[Gt]=t.dispose,this[Oc]=t.noDisposeOnSet||!1,this[Kf]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Sr]=t||1/0,In(this)}get max(){return this[Sr]}set allowStale(t){this[Mn]=!!t}get allowStale(){return this[Mn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[wr]=t,In(this)}get maxAge(){return this[wr]}set lengthCalculator(t){typeof t!="function"&&(t=ws),t!==this[Gr]&&(this[Gr]=t,this[Bt]=0,this[je].forEach(r=>{r.length=this[Gr](r.value,r.key),this[Bt]+=r.length})),In(this)}get lengthCalculator(){return this[Gr]}get length(){return this[Bt]}get itemCount(){return this[je].length}rforEach(t,r){r=r||this;for(let n=this[je].tail;n!==null;){const i=n.prev;Tc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[je].head;n!==null;){const i=n.next;Tc(this,t,n,r),n=i}}keys(){return this[je].toArray().map(t=>t.key)}values(){return this[je].toArray().map(t=>t.value)}reset(){this[Gt]&&this[je]&&this[je].length&&this[je].forEach(t=>this[Gt](t.key,t.value)),this[St]=new Map,this[je]=new fg,this[Bt]=0}dump(){return this[je].map(t=>Ui(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[je]}set(t,r,n){if(n=n||this[wr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Gr](r,t);if(this[St].has(t)){if(s>this[Sr])return Jr(this,this[St].get(t)),!1;const u=this[St].get(t).value;return this[Gt]&&(this[Oc]||this[Gt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Bt]+=s-u.length,u.length=s,this.get(t),In(this),!0}const o=new dg(t,r,s,i,n);return o.length>this[Sr]?(this[Gt]&&this[Gt](t,r),!1):(this[Bt]+=o.length,this[je].unshift(o),this[St].set(t,this[je].head),In(this),!0)}has(t){if(!this[St].has(t))return!1;const r=this[St].get(t).value;return!Ui(this,r)}get(t){return Ns(this,t,!0)}peek(t){return Ns(this,t,!1)}pop(){const t=this[je].tail;return t?(Jr(this,t),t.value):null}del(t){Jr(this,this[St].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[St].forEach((t,r)=>Ns(this,r,!1))}}const Ns=(e,t,r)=>{const n=e[St].get(t);if(n){const i=n.value;if(Ui(e,i)){if(Jr(e,n),!e[Mn])return}else r&&(e[Kf]&&(n.value.now=Date.now()),e[je].unshiftNode(n));return i.value}},Ui=(e,t)=>{if(!t||!t.maxAge&&!e[wr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[wr]&&r>e[wr]},In=e=>{if(e[Bt]>e[Sr])for(let t=e[je].tail;e[Bt]>e[Sr]&&t!==null;){const r=t.prev;Jr(e,t),t=r}},Jr=(e,t)=>{if(t){const r=t.value;e[Gt]&&e[Gt](r.key,r.value),e[Bt]-=r.length,e[St].delete(r.key),e[je].removeNode(t)}};class dg{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Tc=(e,t,r,n)=>{let i=r.value;Ui(e,i)&&(Jr(e,r),e[Mn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var hg=lg;class kn{constructor(t,r){if(r=pg(r),t instanceof kn)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new kn(t.raw,r);if(t instanceof Gs)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(i=>!Rc(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const i of this.set)if(i.length===1&&$g(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${t}`,i=Dc.get(n);if(i)return i;const s=this.options.loose,o=s?ot[Ye.HYPHENRANGELOOSE]:ot[Ye.HYPHENRANGE];t=t.replace(o,Cg(this.options.includePrerelease)),Oe("hyphen replace",t),t=t.replace(ot[Ye.COMPARATORTRIM],Eg),Oe("comparator trim",t),t=t.replace(ot[Ye.TILDETRIM],vg),t=t.replace(ot[Ye.CARETTRIM],gg),t=t.split(/\s+/).join(" ");let c=t.split(" ").map(l=>_g(l,this.options)).join(" ").split(/\s+/).map(l=>Rg(l,this.options));s&&(c=c.filter(l=>(Oe("loose invalid filter",l,this.options),!!l.match(ot[Ye.COMPARATORLOOSE])))),Oe("range list",c);const u=new Map,m=c.map(l=>new Gs(l,this.options));for(const l of m){if(Rc(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");const a=[...u.values()];return Dc.set(n,a),a}intersects(t,r){if(!(t instanceof kn))throw new TypeError("a Range is required");return this.set.some(n=>Cc(n,r)&&t.set.some(i=>Cc(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new yg(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Pg(this.set[r],t,this.options))return!0;return!1}}var Ct=kn;const mg=hg,Dc=new mg({max:1e3}),pg=is,Gs=os,Oe=ns,yg=rt,{re:ot,t:Ye,comparatorTrimReplace:Eg,tildeTrimReplace:vg,caretTrimReplace:gg}=lr.exports,Rc=e=>e.value==="<0.0.0-0",$g=e=>e.value==="",Cc=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},_g=(e,t)=>(Oe("comp",e,t),e=Ng(e,t),Oe("caret",e),e=Sg(e,t),Oe("tildes",e),e=Og(e,t),Oe("xrange",e),e=Dg(e,t),Oe("stars",e),e),Qe=e=>!e||e.toLowerCase()==="x"||e==="*",Sg=(e,t)=>e.trim().split(/\s+/).map(r=>wg(r,t)).join(" "),wg=(e,t)=>{const r=t.loose?ot[Ye.TILDELOOSE]:ot[Ye.TILDE];return e.replace(r,(n,i,s,o,c)=>{Oe("tilde",e,n,i,s,o,c);let u;return Qe(i)?u="":Qe(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Qe(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Oe("replaceTilde pr",c),u=`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Oe("tilde return",u),u})},Ng=(e,t)=>e.trim().split(/\s+/).map(r=>Ig(r,t)).join(" "),Ig=(e,t)=>{Oe("caret",e,t);const r=t.loose?ot[Ye.CARETLOOSE]:ot[Ye.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,c,u)=>{Oe("caret",e,i,s,o,c,u);let m;return Qe(s)?m="":Qe(o)?m=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Qe(c)?s==="0"?m=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Oe("replaceCaret pr",u),s==="0"?o==="0"?m=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(Oe("no pr"),s==="0"?o==="0"?m=`>=${s}.${o}.${c}${n} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),Oe("caret return",m),m})},Og=(e,t)=>(Oe("replaceXRanges",e,t),e.split(/\s+/).map(r=>Tg(r,t)).join(" ")),Tg=(e,t)=>{e=e.trim();const r=t.loose?ot[Ye.XRANGELOOSE]:ot[Ye.XRANGE];return e.replace(r,(n,i,s,o,c,u)=>{Oe("xRange",e,n,i,s,o,c,u);const m=Qe(s),a=m||Qe(o),l=a||Qe(c),v=l;return i==="="&&v&&(i=""),u=t.includePrerelease?"-0":"",m?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&v?(a&&(o=0),c=0,i===">"?(i=">=",a?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",a?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):a?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Oe("xRange return",n),n})},Dg=(e,t)=>(Oe("replaceStars",e,t),e.trim().replace(ot[Ye.STAR],"")),Rg=(e,t)=>(Oe("replaceGTE0",e,t),e.trim().replace(ot[t.includePrerelease?Ye.GTE0PRE:Ye.GTE0],"")),Cg=e=>(t,r,n,i,s,o,c,u,m,a,l,v,h)=>(Qe(n)?r="":Qe(i)?r=`>=${n}.0.0${e?"-0":""}`:Qe(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Qe(m)?u="":Qe(a)?u=`<${+m+1}.0.0-0`:Qe(l)?u=`<${m}.${+a+1}.0-0`:v?u=`<=${m}.${a}.${l}-${v}`:e?u=`<${m}.${a}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Pg=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Oe(e[n].semver),e[n].semver!==Gs.ANY&&e[n].semver.prerelease.length>0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},On=Symbol("SemVer ANY");class zi{static get ANY(){return On}constructor(t,r){if(r=Ag(r),t instanceof zi){if(t.loose===!!r.loose)return t;t=t.value}Os("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===On?this.value="":this.value=this.operator+this.semver.version,Os("comp",this)}parse(t){const r=this.options.loose?Pc[Ac.COMPARATORLOOSE]:Pc[Ac.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new bc(n[2],this.options.loose):this.semver=On}toString(){return this.value}test(t){if(Os("Comparator.test",t,this.options.loose),this.semver===On||t===On)return!0;if(typeof t=="string")try{t=new bc(t,this.options)}catch{return!1}return Is(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof zi))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Lc(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new Lc(this.value,r).test(t.semver);const n=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<"),s=this.semver.version===t.semver.version,o=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),c=Is(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),u=Is(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&o||c||u}}var os=zi;const Ag=is,{re:Pc,t:Ac}=lr.exports,Is=Hf,Os=ns,bc=rt,Lc=Ct,bg=Ct,Lg=(e,t,r)=>{try{t=new bg(t,r)}catch{return!1}return t.test(e)};var as=Lg;const Fg=Ct,jg=(e,t)=>new Fg(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Mg=jg;const kg=rt,Ug=Ct,zg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Ug(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new kg(n,r))}),n};var xg=zg;const Vg=rt,qg=Ct,Gg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new qg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Vg(n,r))}),n};var Bg=Gg;const Ts=rt,Hg=Ct,Fc=ss,Kg=(e,t)=>{e=new Hg(e,t);let r=new Ts("0.0.0");if(e.test(r)||(r=new Ts("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new Ts(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Fc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Fc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Wg=Kg;const Xg=Ct,Zg=(e,t)=>{try{return new Xg(e,t).range||"*"}catch{return null}};var Jg=Zg;const Yg=rt,Wf=os,{ANY:Qg}=Wf,e$=Ct,t$=as,jc=ss,Mc=na,r$=sa,n$=ia,i$=(e,t,r,n)=>{e=new Yg(e,n),t=new e$(t,n);let i,s,o,c,u;switch(r){case">":i=jc,s=r$,o=Mc,c=">",u=">=";break;case"<":i=Mc,s=n$,o=jc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(t$(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,v=null;if(a.forEach(h=>{h.semver===Qg&&(h=new Wf(">=0.0.0")),l=l||h,v=v||h,i(h.semver,l.semver,n)?l=h:o(h.semver,v.semver,n)&&(v=h)}),l.operator===c||l.operator===u||(!v.operator||v.operator===c)&&s(e,v.semver))return!1;if(v.operator===u&&o(e,v.semver))return!1}return!0};var oa=i$;const s$=oa,o$=(e,t,r)=>s$(e,t,">",r);var a$=o$;const c$=oa,u$=(e,t,r)=>c$(e,t,"<",r);var f$=u$;const kc=Ct,l$=(e,t,r)=>(e=new kc(e,r),t=new kc(t,r),e.intersects(t));var d$=l$;const h$=as,m$=Rt;var p$=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>m$(a,l,r));for(const a of o)h$(a,t,r)?(s=a,i||(i=a)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[a,l]of n)a===l?c.push(a):!l&&a===o[0]?c.push("*"):l?a===o[0]?c.push(`<=${l}`):c.push(`${a} - ${l}`):c.push(`>=${a}`);const u=c.join(" || "),m=typeof t.raw=="string"?t.raw:String(t);return u.length<m.length?u:t};const Uc=Ct,Oi=os,{ANY:Ds}=Oi,Tn=as,aa=Rt,y$=(e,t,r={})=>{if(e===t)return!0;e=new Uc(e,r),t=new Uc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=E$(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},E$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ds){if(t.length===1&&t[0].semver===Ds)return!0;r.includePrerelease?e=[new Oi(">=0.0.0-0")]:e=[new Oi(">=0.0.0")]}if(t.length===1&&t[0].semver===Ds){if(r.includePrerelease)return!0;t=[new Oi(">=0.0.0")]}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=zc(i,h,r):h.operator==="<"||h.operator==="<="?s=xc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=aa(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const h of n){if(i&&!Tn(h,String(i),r)||s&&!Tn(h,String(s),r))return null;for(const d of t)if(!Tn(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,v=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const h of t){if(a=a||h.operator===">"||h.operator===">=",m=m||h.operator==="<"||h.operator==="<=",i){if(v&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===v.major&&h.semver.minor===v.minor&&h.semver.patch===v.patch&&(v=!1),h.operator===">"||h.operator===">="){if(c=zc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!Tn(i.semver,String(h),r))return!1}if(s){if(l&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===l.major&&h.semver.minor===l.minor&&h.semver.patch===l.patch&&(l=!1),h.operator==="<"||h.operator==="<="){if(u=xc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!Tn(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&m&&!s&&o!==0||s&&a&&!i&&o!==0||v||l)},zc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},xc=(e,t,r)=>{if(!e)return t;const n=aa(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var v$=y$;const Rs=lr.exports;var g$={re:Rs.re,src:Rs.src,tokens:Rs.t,SEMVER_SPEC_VERSION:rs.SEMVER_SPEC_VERSION,SemVer:rt,compareIdentifiers:qs.compareIdentifiers,rcompareIdentifiers:qs.rcompareIdentifiers,parse:hn,valid:rv,clean:sv,inc:av,diff:hv,major:yv,minor:gv,patch:Sv,prerelease:Iv,compare:Rt,rcompare:Dv,compareLoose:Pv,compareBuild:ra,sort:Fv,rsort:kv,gt:ss,lt:na,eq:ta,neq:Bf,gte:ia,lte:sa,cmp:Hf,coerce:sg,Comparator:os,Range:Ct,satisfies:as,toComparators:Mg,maxSatisfying:xg,minSatisfying:Bg,minVersion:Wg,validRange:Jg,outside:oa,gtr:a$,ltr:f$,intersects:d$,simplifyRange:p$,subset:v$},cs={exports:{}},ca={exports:{}};const Xf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};ca.exports=Xf;ca.exports.default=Xf;const $$=ca.exports,xi=new WeakMap,Zf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(xi.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return $$(s,e),xi.set(s,n),s};cs.exports=Zf;cs.exports.default=Zf;cs.exports.callCount=e=>{if(!xi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return xi.get(e)};(function(e,t){var r=ir&&ir.__classPrivateFieldSet||function(X,j,z,R,I){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?X!==j||!I:!j.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?I.call(X,z):I?I.value=z:j.set(X,z),z},n=ir&&ir.__classPrivateFieldGet||function(X,j,z,R){if(z==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?X!==j||!R:!j.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?R:z==="a"?R.call(X):R?R.value:j.get(X)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Gi.default,l=un.default,v=Te.default,h=Qc.default,d=Ks.default,p=Cl.default,E=dm,f=no.exports,$=uo.exports,_=Ut,T=bi.exports,k=Vs.exports,O=xE,D=g$,M=cs.exports,P="aes-256-cbc",U=()=>Object.create(null),x=X=>X!=null;let V="";try{delete require.cache[__filename],V=v.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const Y=(X,j)=>{const z=new Set(["undefined","symbol","function"]),R=typeof j;if(z.has(R))throw new TypeError(`Setting a value of type \`${R}\` for key \`${X}\` is not allowed as it's not supported by JSON`)},Z="__internal__",ee=`${Z}.migrations.version`;class ue{constructor(j={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const R=te({configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438},j),I=M(()=>{const S=f.sync({cwd:V}),L=S&&JSON.parse(l.readFileSync(S,"utf8"));return L!=null?L:{}});if(!R.cwd){if(R.projectName||(R.projectName=I().name),!R.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");R.cwd=$(R.projectName,{suffix:R.projectSuffix}).config}if(r(this,u,R,"f"),R.schema){if(typeof R.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new T.default({allErrors:!0,useDefaults:!0});(0,k.default)(S);const L={type:"object",properties:R.schema};r(this,o,S.compile(L),"f");for(const[q,G]of Object.entries(R.schema))G!=null&&G.default&&(n(this,m,"f")[q]=G.default)}R.defaults&&r(this,m,te(te({},n(this,m,"f")),R.defaults),"f"),R.serialize&&(this._serialize=R.serialize),R.deserialize&&(this._deserialize=R.deserialize),this.events=new p.EventEmitter,r(this,c,R.encryptionKey,"f");const F=R.fileExtension?`.${R.fileExtension}`:"";this.path=v.resolve(R.cwd,`${(z=R.configName)!==null&&z!==void 0?z:"config"}${F}`);const C=this.store,y=Object.assign(U(),R.defaults,C);this._validate(y);try{d.deepEqual(C,y)}catch{this.store=y}if(R.watch&&this._watch(),R.migrations){if(R.projectVersion||(R.projectVersion=I().version),!R.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(R.migrations,R.projectVersion)}}get(j,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(j,z);const{store:R}=this;return j in R?R[j]:z}set(j,z){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${Z} key, as it's used to manage this module internal operations.`);const{store:R}=this,I=(F,C)=>{Y(F,C),n(this,u,"f").accessPropertiesByDotNotation?E.set(R,F,C):R[F]=C};if(typeof j=="object"){const F=j;for(const[C,y]of Object.entries(F))I(C,y)}else I(j,z);this.store=R}has(j){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,j):j in this.store}reset(...j){for(const z of j)x(n(this,m,"f")[z])&&this.set(z,n(this,m,"f")[z])}delete(j){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,j):delete z[j],this.store=z}clear(){this.store=U();for(const j of Object.keys(n(this,m,"f")))this.reset(j)}onDidChange(j,z){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(j),z)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(j),R=this._deserialize(z);return this._validate(R),Object.assign(U(),R)}catch(j){if((j==null?void 0:j.code)==="ENOENT")return this._ensureDirectory(),U();if(n(this,u,"f").clearInvalidConfig&&j.name==="SyntaxError")return U();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[j,z]of Object.entries(this.store))yield[j,z]}_encryptData(j){if(!n(this,c,"f"))return j.toString();try{if(n(this,c,"f"))try{if(j.slice(16,17).toString()===":"){const z=j.slice(0,16),R=h.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=h.createDecipheriv(P,R,z);j=Buffer.concat([I.update(Buffer.from(j.slice(17))),I.final()]).toString("utf8")}else{const z=h.createDecipher(P,n(this,c,"f"));j=Buffer.concat([z.update(Buffer.from(j)),z.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,z){let R=j();const I=()=>{const F=R,C=j();(0,a.isDeepStrictEqual)(C,F)||(R=C,z.call(this,C,F))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(j){if(!n(this,o,"f")||n(this,o,"f").call(this,j)||!n(this,o,"f").errors)return;const R=n(this,o,"f").errors.map(({instancePath:I,message:F=""})=>`\`${I.slice(1)}\` ${F}`);throw new Error("Config schema violation: "+R.join("; "))}_ensureDirectory(){l.mkdirSync(v.dirname(this.path),{recursive:!0})}_write(j){let z=this._serialize(j);if(n(this,c,"f")){const R=h.randomBytes(16),I=h.pbkdf2Sync(n(this,c,"f"),R.toString(),1e4,32,"sha512"),F=h.createCipheriv(P,I,R);z=Buffer.concat([R,Buffer.from(":"),F.update(Buffer.from(z)),F.final()])}if({}.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(R){if((R==null?void 0:R.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw R}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(U()),process.platform==="win32"?l.watch(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,z){let R=this._get(ee,"0.0.0");const I=Object.keys(j).filter(C=>this._shouldPerformMigration(C,R,z));let F=te({},this.store);for(const C of I)try{j[C](this),this._set(ee,C),R=C,F=te({},this.store)}catch(y){throw this.store=F,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${y}`)}(this._isVersionInRangeFormat(R)||!D.eq(R,z))&&this._set(ee,z)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===Z?!0:typeof j!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!j.startsWith(`${Z}.`):!1}_isVersionInRangeFormat(j){return D.clean(j)===null}_shouldPerformMigration(j,z,R){return this._isVersionInRangeFormat(j)?z!=="0.0.0"&&D.satisfies(z,j)?!1:D.satisfies(R,j):!(D.lte(j,z)||D.gt(j,R))}_get(j,z){return E.get(this.store,j,z)}_set(j,z){const{store:R}=this;E.set(R,j,z),this.store=R}}t.default=ue,e.exports=ue,e.exports.default=ue})(Ls,Ls.exports);const Vc=Te.default,{app:Ti,ipcMain:Bs,ipcRenderer:qc,shell:_$}=Tl.default,S$=Ls.exports;let Gc=!1;const Bc=()=>{if(!Bs||!Ti)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:Ti.getPath("userData"),appVersion:Ti.getVersion()};return Gc||(Bs.on("electron-store-get-data",t=>{t.returnValue=e}),Gc=!0),e};class w$ extends S${constructor(t){let r,n;if(qc){const i=qc.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else Bs&&Ti&&({defaultCwd:r,appVersion:n}=Bc());t=te({name:"config"},t),t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=Vc.isAbsolute(t.cwd)?t.cwd:Vc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Bc()}openInEditor(){_$.openPath(this.path)}}var Hc=w$,Xt={exports:{}},ua={},N$=ua.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=N$("original-fs");if(Object.keys(e).length>0)return e}catch{}return un.default},Jf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const I$=ua.require(),Je=Te.default,Kc=Jf,O$=typeof process=="object"&&process.platform==="win32",Wc=e=>e&&typeof e=="object",fa=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function qe(e){this.sep=Je.sep,this.fs=I$,Wc(e)&&Wc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var T$=qe;qe.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Errors.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};qe.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=Je.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var c;try{c=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),c=i.fs.openSync(e,"w",438)}if(c)try{i.fs.writeSync(c,t,0,t.length,0)}finally{i.fs.closeSync(c)}return i.fs.chmodSync(e,n||438),!0};qe.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(c,u){if(o&&u.isDirectory())return i(!1);var m=Je.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,v){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(h,d){s.fs.write(d,t,0,t.length,0,function(){s.fs.close(d,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):v?s.fs.write(v,t,0,t.length,0,function(){s.fs.close(v,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};qe.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(c){var u=Je.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Je.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};qe.prototype.getAttributes=function(){};qe.prototype.setAttributes=function(){};qe.crc32update=function(e,t){return fa[(e^t)&255]^e>>>8};qe.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),fa.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=qe.crc32update(r,e[n++]);return~r>>>0};qe.methodToString=function(e){switch(e){case Kc.STORED:return"STORED ("+e+")";case Kc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};qe.canonical=function(e){if(!e)return"";var t=Je.posix.normalize("/"+e.split("\\").join("/"));return Je.join(".",t)};qe.sanitize=function(e,t){e=Je.resolve(Je.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Je.normalize(Je.join(e,r.slice(n,i).join(Je.sep)));if(s.indexOf(e)===0)return s}return Je.normalize(Je.join(e,Je.basename(t)))};qe.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};qe.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};qe.isWin=O$;qe.crcTable=fa;var D$={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Vi=ua.require(),Yf=Te.default;Vi.existsSync=Vi.existsSync||Yf.existsSync;var R$=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&Vi.existsSync(t)?(n=Vi.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=Yf.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};Xt.exports=T$;Xt.exports.Constants=Jf;Xt.exports.Errors=D$;Xt.exports.FileAttr=R$;var us={},Rn=Xt.exports,B=Rn.Constants,C$=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,m=0,a=0,l=0,v=0,h=0,d=0;e|=Rn.isWin?2560:768,r|=B.FLG_EFS;var p={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case B.STORED:this.version=10;case B.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return m},set extraLength(f){m=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return v},set inAttr(f){v=Math.max(0,f)>>>0},get attr(){return h},set attr(f){h=Math.max(0,f)>>>0},get fileAttr(){return h?(h>>>0|0)>>16&4095:0},get offset(){return d},set offset(f){d=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return B.CENHDR+u+m+a},get realDataOffset(){return d+B.LOCHDR+p.fnameLen+p.extraLen},get dataHeader(){return p},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+B.LOCHDR);if($.readUInt32LE(0)!==B.LOCSIG)throw new Error(Rn.Errors.INVALID_LOC);p={version:$.readUInt16LE(B.LOCVER),flags:$.readUInt16LE(B.LOCFLG),method:$.readUInt16LE(B.LOCHOW),time:$.readUInt32LE(B.LOCTIM),crc:$.readUInt32LE(B.LOCCRC),compressedSize:$.readUInt32LE(B.LOCSIZ),size:$.readUInt32LE(B.LOCLEN),fnameLen:$.readUInt16LE(B.LOCNAM),extraLen:$.readUInt16LE(B.LOCEXT)}},loadFromBinary:function(f){if(f.length!==B.CENHDR||f.readUInt32LE(0)!==B.CENSIG)throw new Error(Rn.Errors.INVALID_CEN);e=f.readUInt16LE(B.CENVEM),t=f.readUInt16LE(B.CENVER),r=f.readUInt16LE(B.CENFLG),n=f.readUInt16LE(B.CENHOW),i=f.readUInt32LE(B.CENTIM),s=f.readUInt32LE(B.CENCRC),o=f.readUInt32LE(B.CENSIZ),c=f.readUInt32LE(B.CENLEN),u=f.readUInt16LE(B.CENNAM),m=f.readUInt16LE(B.CENEXT),a=f.readUInt16LE(B.CENCOM),l=f.readUInt16LE(B.CENDSK),v=f.readUInt16LE(B.CENATT),h=f.readUInt32LE(B.CENATX),d=f.readUInt32LE(B.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(B.LOCHDR);return f.writeUInt32LE(B.LOCSIG,0),f.writeUInt16LE(t,B.LOCVER),f.writeUInt16LE(r,B.LOCFLG),f.writeUInt16LE(n,B.LOCHOW),f.writeUInt32LE(i,B.LOCTIM),f.writeUInt32LE(s,B.LOCCRC),f.writeUInt32LE(o,B.LOCSIZ),f.writeUInt32LE(c,B.LOCLEN),f.writeUInt16LE(u,B.LOCNAM),f.writeUInt16LE(m,B.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(B.CENHDR+u+m+a);return f.writeUInt32LE(B.CENSIG,0),f.writeUInt16LE(e,B.CENVEM),f.writeUInt16LE(t,B.CENVER),f.writeUInt16LE(r,B.CENFLG),f.writeUInt16LE(n,B.CENHOW),f.writeUInt32LE(i,B.CENTIM),f.writeUInt32LE(s,B.CENCRC),f.writeUInt32LE(o,B.CENSIZ),f.writeUInt32LE(c,B.CENLEN),f.writeUInt16LE(u,B.CENNAM),f.writeUInt16LE(m,B.CENEXT),f.writeUInt16LE(a,B.CENCOM),f.writeUInt16LE(l,B.CENDSK),f.writeUInt16LE(v,B.CENATT),f.writeUInt32LE(h,B.CENATX),f.writeUInt32LE(d,B.CENOFF),f.fill(0,B.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:Rn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(m),commentLength:f(a),diskNumStart:l,inAttr:v,attr:h,offset:d,entryHeaderSize:f(B.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Hr=Xt.exports,we=Hr.Constants,P$=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return we.ENDHDR+i},loadFromBinary:function(s){if((s.length!==we.ENDHDR||s.readUInt32LE(0)!==we.ENDSIG)&&(s.length<we.ZIP64HDR||s.readUInt32LE(0)!==we.ZIP64SIG))throw new Error(Hr.Errors.INVALID_END);s.readUInt32LE(0)===we.ENDSIG?(e=s.readUInt16LE(we.ENDSUB),t=s.readUInt16LE(we.ENDTOT),r=s.readUInt32LE(we.ENDSIZ),n=s.readUInt32LE(we.ENDOFF),i=s.readUInt16LE(we.ENDCOM)):(e=Hr.readBigUInt64LE(s,we.ZIP64SUB),t=Hr.readBigUInt64LE(s,we.ZIP64TOT),r=Hr.readBigUInt64LE(s,we.ZIP64SIZ),n=Hr.readBigUInt64LE(s,we.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(we.ENDHDR+i);return s.writeUInt32LE(we.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,we.ENDSUB),s.writeUInt16LE(t,we.ENDTOT),s.writeUInt32LE(r,we.ENDSIZ),s.writeUInt32LE(n,we.ENDOFF),s.writeUInt16LE(i,we.ENDCOM),s.fill(" ",we.ENDHDR),s},toJSON:function(){const s=function(o,c){let u=o.toString(16).toUpperCase();for(;u.length<c;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};us.EntryHeader=C$;us.MainHeader=P$;var fs={},A$=function(e){var t=eu.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var m=0;m<s.length;m++){var a=s[m];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},b$=function(e){var t=eu.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var m=i[u];m.copy(o,c),c+=m.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:Xc}=Qc.default,L$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Qf=(e,t)=>Math.imul(e,t)>>>0,Zc=(e,t)=>L$[(e^t)&255]^e>>>8,Bn=()=>typeof Xc=="function"?Xc(Buffer.alloc(12)):Bn.node();Bn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const Di={genSalt:Bn};function ls(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}ls.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Zc(t[0],e),t[1]+=t[0]&255,t[1]=Qf(t[1],134775813)+1,t[2]=Zc(t[2],t[1]>>>24),e};ls.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Qf(e,e^1)>>8&255};function F$(e){const t=new ls(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function j$(e){const t=new ls(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function M$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=F$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function k$(e){Buffer.isBuffer(e)&&e.length>=12?Di.genSalt=function(){return e.slice(0,12)}:e==="node"?Di.genSalt=Bn.node:Di.genSalt=Bn}function U$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=j$(r),s=Di.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var z$={decrypt:M$,encrypt:U$,_salter:k$};fs.Deflater=A$;fs.Inflater=b$;fs.ZipCrypto=z$;var be=Xt.exports,x$=us,lt=be.Constants,Cs=fs,el=function(e){var t=new x$.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function c(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(d){return!((t.flags&8)!==8&&be.crc32(d)!==t.dataHeader.crc)}function m(d,p,E){if(typeof p=="undefined"&&typeof d=="string"&&(E=d,d=void 0),i)return d&&p&&p(Buffer.alloc(0),be.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&p&&p(f),f;if(t.encripted){if(typeof E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=Cs.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case be.Constants.STORED:if(f.copy($),u($))return d&&p&&p($),$;throw d&&p&&p($,be.Errors.BAD_CRC),new Error(be.Errors.BAD_CRC);case be.Constants.DEFLATED:var _=new Cs.Inflater(f);if(d)_.inflateAsync(function(T){T.copy(T,0),p&&(u(T)?p(T):p(T,be.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(be.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&p&&p(Buffer.alloc(0),be.Errors.UNKNOWN_METHOD),new Error(be.Errors.UNKNOWN_METHOD)}}function a(d,p){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&p&&p(c()),c();if(s.length&&!i){var E;switch(t.method){case be.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),d&&p&&p(E),E;default:case be.Constants.DEFLATED:var f=new Cs.Deflater(s);if(d)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),p&&p(E)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&p)p(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,p){return(d.readUInt32LE(p+4)<<4)+d.readUInt32LE(p)}function v(d){for(var p=0,E,f,$;p<d.length;)E=d.readUInt16LE(p),p+=2,f=d.readUInt16LE(p),p+=2,$=d.slice(p,p+f),p+=f,lt.ID_ZIP64===E&&h($)}function h(d){var p,E,f,$;d.length>=lt.EF_ZIP64_SCOMP&&(p=l(d,lt.EF_ZIP64_SUNCOMP),t.size===lt.EF_ZIP64_OR_32&&(t.size=p)),d.length>=lt.EF_ZIP64_RHO&&(E=l(d,lt.EF_ZIP64_SCOMP),t.compressedSize===lt.EF_ZIP64_OR_32&&(t.compressedSize=E)),d.length>=lt.EF_ZIP64_DSN&&(f=l(d,lt.EF_ZIP64_RHO),t.offset===lt.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=lt.EF_ZIP64_DSN+4&&($=d.readUInt32LE(lt.EF_ZIP64_DSN),t.diskNumStart===lt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=be.toBuffer(d);var p=r[r.length-1];i=p===47||p===92,t.fileNameLength=r.length},get extra(){return o},set extra(d){o=d,t.extraLength=d.length,v(d)},get comment(){return n.toString()},set comment(d){n=be.toBuffer(d),t.commentLength=n.length},get name(){var d=r.toString();return i?d.substr(d.length-1).split("/").pop():d.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(d){a(!0,d)},setData:function(d){s=be.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=be.Constants.DEFLATED,t.crc=be.crc32(d),t.changed=!0):t.method=be.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,p){t.changed?d(s):m(!0,d,p)},set attr(d){t.attr=d},get attr(){return t.attr},set header(d){t.loadFromBinary(d)},get header(){return t},packHeader:function(){var d=t.entryHeaderToBinary(),p=be.Constants.CENHDR;return r.copy(d,p),p+=r.length,t.extraLength&&(o.copy(d,p),p+=t.extraLength),t.commentLength&&n.copy(d,p),d},toJSON:function(){const d=function(p){return"<"+(p&&p.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:d(e),data:d(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const Jc=el,V$=us,He=Xt.exports;var q$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new V$.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function m(h){const d=s.diskEntries;let p=s.offset;for(let E=0;E<d;E++){let f=p;const $=new Jc(e);$.header=e.slice(f,f+=He.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),p+=$.header.entryHeaderSize,h($)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var h=s.offset,d=0;d<r.length;d++){var p=h,E=new Jc(e);E.header=e.slice(p,p+=He.Constants.CENHDR),E.entryName=e.slice(p,p+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(p,p+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(p,p+E.header.commentLength)),h+=E.header.entryHeaderSize,r[d]=E,n[E.entryName]=E}}function l(h){var d=e.length-He.Constants.ENDHDR,p=Math.max(0,d-65535),E=p,f=e.length,$=-1,_=0;for(d;d>=E;d--)if(e[d]===80){if(e.readUInt32LE(d)===He.Constants.ENDSIG){$=d,_=d,f=d+He.Constants.ENDHDR,E=d-He.Constants.END64HDR;continue}if(e.readUInt32LE(d)===He.Constants.END64SIG){E=p;continue}if(e.readUInt32LE(d)===He.Constants.ZIP64SIG){$=d,f=d+He.readBigUInt64LE(e,d+He.Constants.ZIP64SIZE)+He.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(He.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+He.Constants.ENDHDR)),h&&a()}function v(){r.length>1&&!u&&r.sort((h,d)=>h.entryName.toLowerCase().localeCompare(d.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(h){i=He.toBuffer(h),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(h){if(!o){m(h);return}r.forEach(h)},getEntry:function(h){return o||a(),n[h]||null},setEntry:function(h){o||a(),r.push(h),n[h.entryName]=h,s.totalEntries=r.length},deleteEntry:function(h){o||a();var d=n[h];if(d&&d.isDirectory){var p=this;this.getEntryChildren(d).forEach(function(E){E.entryName!==h&&p.deleteEntry(E.entryName)})}r.splice(r.indexOf(d),1),delete n[h],s.totalEntries=r.length},getEntryChildren:function(h){if(o||a(),h&&h.isDirectory){const d=[],p=h.entryName,E=p.length;return r.forEach(function(f){f.entryName.substr(0,E)===p&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),v();const h=[],d=[];let p=0,E=0;s.size=0,s.offset=0;for(const _ of r){const T=_.getCompressedData();_.header.offset=E;const k=_.header.dataHeaderToBinary(),O=_.rawEntryName.length,D=Buffer.alloc(O+_.extra.length);_.rawEntryName.copy(D,0),D.copy(_.extra,O);const M=k.length+D.length+T.length;E+=M,h.push(k),h.push(D),h.push(T);const P=_.packHeader();d.push(P),s.size+=P.length,p+=M+P.length}p+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(p);for(const _ of h)_.copy(f,E),E+=_.length;for(const _ of d)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,He.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(h,d,p,E){try{o||a(),v();const f=[],$=[];let _=0,T=0;s.size=0,s.offset=0;const k=function(O){if(O.length){const D=O.pop(),M=D.entryName+D.extra.toString();p&&p(M),D.getCompressedDataAsync(function(P){E&&E(M),D.header.offset=T;const U=D.header.dataHeaderToBinary(),x=Buffer.alloc(M.length,M),V=U.length+x.length+P.length;T+=V,f.push(U),f.push(x),f.push(P);const Y=D.packHeader();$.push(Y),s.size+=Y.length,_+=V+Y.length,k(O)})}else{_+=s.mainHeaderSize,s.offset=T,T=0;const D=Buffer.alloc(_);f.forEach(function(P){P.copy(D,T),T+=P.length}),$.forEach(function(P){P.copy(D,T),T+=P.length});const M=s.toBinary();i&&i.copy(M,He.Constants.ENDHDR),M.copy(D,T),h(D)}};k(r)}catch(f){d(f)}}}};const Le=Xt.exports,Mt=Te.default,G$=el,B$=q$,vr=(e,t)=>typeof e=="boolean"?e:t,Ps=(e,t)=>typeof e=="string"?e:t,H$={noSort:!1,readEntries:!1,method:Le.Constants.NONE,fs:null};var Yc=function(e,t){let r=null;const n=Object.assign(Object.create(null),H$);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Le.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Le(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Le.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Le.Errors.INVALID_FILENAME);const s=new B$(r,n),{canonical:o,sanitize:c}=Le;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName!="undefined"&&typeof a.header!="undefined"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:v,sep:h}=Mt.posix;return l(".",v(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var v=u(a);return v&&v.getData(l)||null},readFileAsync:function(a,l){var v=u(a);v?v.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var v=u(a);if(v){var h=v.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,v){var h=u(a);h?h.getDataAsync(function(d,p){if(p){l(d,p);return}d&&d.length?l(d.toString(v||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var v=u(a);v&&(v.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var v=u(a);v&&v.setData(l)},addLocalFile:function(a,l,v,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=v||d;const p=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,p)}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,v){if(v instanceof RegExp?v=function(h){return function(d){return h.test(d)}}(v):typeof v!="function"&&(v=function(){return!0}),l=l?m(l):"",a=Mt.normalize(a),i.fs.existsSync(a)){const h=i.findFiles(a),d=this;h.length&&h.forEach(function(p){var E=Mt.relative(a,p).split("\\").join("/");if(v(E)){var f=i.fs.statSync(p);f.isFile()?d.addFile(l+E,i.fs.readFileSync(p),"",f):d.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Le.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,v,h){h instanceof RegExp?h=function(p){return function(E){return p.test(E)}}(h):typeof h!="function"&&(h=function(){return!0}),v=v?m(v):"",a=Mt.normalize(a);var d=this;i.fs.open(a,"r",function(p){if(p&&p.code==="ENOENT")l(void 0,Le.Errors.FILE_NOT_FOUND.replace("%s",a));else if(p)l(void 0,p);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],T=Mt.relative(a,_).split("\\").join("/");T=T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(T)?i.fs.stat(_,function(k,O){k&&l(void 0,k),O.isFile()?i.fs.readFile(_,function(D,M){D?l(void 0,D):(d.addFile(v+T,M,"",O),$())}):(d.addFile(v+T+"/",Buffer.alloc(0),"",O),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((v,h)=>{const{filter:d,zipPath:p}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&h(f),E&&v(this)},p,d)})},addFile:function(a,l,v,h){let d=u(a);const p=d!=null;p||(d=new G$,d.entryName=a),d.comment=v||"";const E=typeof h=="object"&&h instanceof i.fs.Stats;E&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;if(!Le.isWin){let $=d.isDirectory?16384:32768;E?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0}d.attr=f,d.setData(l),p||s.setEntry(d)},getEntries:function(){return s?s.entries:[]},getEntry:function(a){return u(a)},getEntryCount:function(){return s.getEntryCount()},forEach:function(a){return s.forEach(a)},extractEntryTo:function(a,l,v,h,d,p){h=vr(h,!1),d=vr(d,!1),v=vr(v,!0),p=Ps(p,Ps(d,void 0));var E=u(a);if(!E)throw new Error(Le.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,p&&!E.isDirectory?p:v?f:Mt.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(O){if(O.isDirectory)return;var D=O.getData();if(!D)throw new Error(Le.Errors.CANT_EXTRACT_FILE);var M=o(O.entryName),P=c(l,v?M:Mt.basename(M));const U=d?O.header.fileAttr:void 0;i.writeFileTo(P,D,h,U)}),!0}var T=E.getData();if(!T)throw new Error(Le.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Le.Errors.CANT_OVERRIDE);const k=d?a.header.fileAttr:void 0;return i.writeFileTo($,T,h,k),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var v=s.entries[l].getData(a);if(!v)return!1}catch{return!1}return!0},extractAllTo:function(a,l,v,h){if(l=vr(l,!1),h=Ps(v,h),v=vr(v,!1),!s)throw new Error(Le.Errors.NO_ZIP);s.entries.forEach(function(d){var p=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(p);return}var E=d.getData(h);if(!E)throw new Error(Le.Errors.CANT_EXTRACT_FILE);const f=v?d.header.fileAttr:void 0;i.writeFileTo(p,E,l,f);try{i.fs.utimesSync(p,d.header.time,d.header.time)}catch{throw new Error(Le.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,v,h){if(h||(h=function(){}),l=vr(l,!1),typeof v=="function"&&!h&&(h=v),v=vr(v,!1),!s){h(new Error(Le.Errors.NO_ZIP));return}a=Mt.resolve(a);const d=_=>c(a,Mt.normalize(o(_.entryName.toString()))),p=(_,T)=>new Error(_+': "'+T+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const T=d(_),k=v?_.header.fileAttr:void 0;try{i.makeDir(T),k&&i.fs.chmodSync(T,k),i.fs.utimesSync(T,_.header.time,_.header.time)}catch{h(p("Unable to create folder",T))}}const $=()=>{f.size===0&&h()};for(const _ of f.values()){const T=Mt.normalize(o(_.entryName.toString())),k=c(a,T);_.getDataAsync(function(O,D){if(D){h(new Error(D));return}if(!O)h(new Error(Le.Errors.CANT_EXTRACT_FILE));else{const M=v?_.header.fileAttr:void 0;i.writeFileToAsync(k,O,l,M,function(P){if(!P){h(p("Unable to write file",k));return}i.fs.utimes(k,_.header.time,_.header.time,function(U){if(U){h(p("Unable to set times",k));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var v=s.compressToBuffer();if(v){var h=i.writeFileTo(a,v,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:v,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,p)=>{!a&&n.filename&&(a=n.filename),a||p("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?d($):p("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,v,h,f)},p)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,v,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,v,h),null):s.compressToBuffer()}}},Hn,Yr,Qr,Kn,Nr,Ir,rr,nr,qi,en,Wn,Hs,Xn,Nt,tn,Ri,Zn,Ht;const wt=class{constructor(t,r){ke(this,Wn);ke(this,tn);ke(this,Hn,ce.screen.getPrimaryDisplay().size);ke(this,Yr,oe(this,Hn).width);ke(this,Qr,oe(this,Hn).height);ke(this,Kn,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:te({},process.env),platform:process.platform,arch:process.arch});ke(this,Nr,0);ke(this,Ir,0);ke(this,rr,0);ke(this,nr,0);ke(this,qi,process.platform==="win32");ke(this,en,void 0);ke(this,Xn,!1);ke(this,Nt,!1);this.bw=t,oe(this,Kn).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Kn)),ce.ipcMain.handle("existsSync",(i,s)=>vt.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>vt.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>vt.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>vt.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>vt.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>vt.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>vt.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>vt.appendFile(s,o,c)),ce.ipcMain.handle("win_close",()=>t.close()),ce.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),ce.ipcMain.handle("showMessageBox",(i,s)=>ce.dialog.showMessageBox(s)),ce.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>vt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),ce.ipcMain.handle("navigate_to",(i,s)=>ce.shell.openExternal(s)),ce.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),ce.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;ce.ipcMain.handle("Store",(i,s)=>{n=new Hc(s)}),ce.ipcMain.handle("flush",(i,s)=>{n.store=s}),ce.ipcMain.handle("Store_isEmpty",()=>n.size===0),ce.ipcMain.handle("Store_get",()=>n.store),ce.ipcMain.handle("zip",(i,s,o)=>{const c=new Yc;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{vt.removeSync(o),vt.ensureDirSync(o),new Yc(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,qi)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Ge(this,Nt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,Nr),oe(this,Ir)),t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))),Ge(this,Nt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,Yr),oe(this,Qr)-oe(wt,Ht))}),t.on("leave-full-screen",()=>{Ur(this,tn,Ri).call(this,!1,oe(this,Nr),oe(this,Ir),oe(this,rr),oe(this,nr)+oe(wt,Ht))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,rr),oe(this,nr)+oe(wt,Ht))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Ur(this,tn,Ri).call(this,s,o,c,u,m)),t.on("move",()=>Ur(this,Wn,Hs).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Hc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.BrowserWindow(Et(te({},n),{fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}})),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];Ge(wt,Ht,o-c),Ge(wt,Zn,new wt(s,r)),i=()=>oe(wt,Zn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Wr=wt;Hn=new WeakMap,Yr=new WeakMap,Qr=new WeakMap,Kn=new WeakMap,Nr=new WeakMap,Ir=new WeakMap,rr=new WeakMap,nr=new WeakMap,qi=new WeakMap,en=new WeakMap,Wn=new WeakSet,Hs=function(){if(oe(this,en)||oe(this,Nt))return;Ge(this,Nt,!0);const{x:t,y:r}=this.bw.getBounds();Ge(this,en,setTimeout(()=>{if(Ge(this,en,void 0),oe(this,Xn)){Ge(this,Xn,!1);return}Ge(this,Nt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Ur(this,Wn,Hs).call(this);return}Ur(this,tn,Ri).call(this,!1,n.x,n.y,oe(this,rr),oe(this,nr))},1e3/60*10))},Xn=new WeakMap,Nt=new WeakMap,tn=new WeakSet,Ri=function(t,r,n,i,s){oe(this,Nt)||(Ge(this,Nt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(oe(this,Yr)-r)*.5,n=(oe(this,Qr)-n)*.5):((r<0||r>oe(this,Yr))&&(r=0),(n<0||n>oe(this,Qr))&&(n=0)),(oe(this,Nr)!==r||oe(this,Ir)!==n)&&(Ge(this,Nr,r),Ge(this,Ir,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Ge(this,rr,i),Ge(this,nr,s),this.bw.setContentSize(i,s+oe(wt,Ht)),Ge(this,Nt,!1)))},Zn=new WeakMap,Ht=new WeakMap,ke(Wr,Zn,void 0),ke(Wr,Ht,0);module.exports=Wr;exports.appMain=Wr;
|
|
14
|
+
deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[m,a]=s(u);o(u,m),c(u,a)}};function s({schema:u}){const m={},a={};for(const l in u){if(l==="__proto__")continue;const v=Array.isArray(u[l])?m:a;v[l]=u[l]}return[m,a]}function o(u,m=u.schema){const{gen:a,data:l,it:v}=u;if(Object.keys(m).length===0)return;const h=a.let("missing");for(const d in m){const y=m[d];if(y.length===0)continue;const E=(0,n.propertyInData)(a,l,d,v.opts.ownProperties);u.setParams({property:d,depsCount:y.length,deps:y.join(", ")}),v.allErrors?a.if(E,()=>{for(const f of y)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${E} && (${(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:v,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 E=u.subschema({keyword:v,schemaProp:y},d);u.mergeValidEvaluated(E,d)},()=>a.var(d,!0)),u.ok(d))}e.validateSchemaDeps=c,e.default=i})(Lf);var xo={};Object.defineProperty(xo,"__esModule",{value:!0});const Ff=te,v0=fe,g0={message:"property name must be valid",params:({params:e})=>(0,Ff._)`{propertyName: ${e.propertyName}}`},$0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:g0,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,v0.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,Ff.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};xo.default=$0;var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});const fi=re,vt=te,_0=zt,li=fe,S0={message:"must NOT have additional properties",params:({params:e})=>(0,vt._)`{additionalProperty: ${e.additionalProperty}}`},w0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:S0,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,li.alwaysValidSchema)(o,r))return;const m=(0,fi.allSchemaProperties)(n.properties),a=(0,fi.allSchemaProperties)(n.patternProperties);l(),e.ok((0,vt._)`${s} === ${_0.default.errors}`);function l(){t.forIn("key",i,E=>{!m.length&&!a.length?d(E):t.if(v(E),()=>d(E))})}function v(E){let f;if(m.length>8){const $=(0,li.schemaRefOrVal)(o,n.properties,"properties");f=(0,fi.isOwnProperty)(t,$,E)}else m.length?f=(0,vt.or)(...m.map($=>(0,vt._)`${E} === ${$}`)):f=vt.nil;return a.length&&(f=(0,vt.or)(f,...a.map($=>(0,vt._)`${(0,fi.usePattern)(e,$)}.test(${E})`))),(0,vt.not)(f)}function h(E){t.code((0,vt._)`delete ${i}[${E}]`)}function d(E){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,li.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(y(E,f,!1),t.if((0,vt.not)(f),()=>{e.reset(),h(E)})):(y(E,f),c||t.if((0,vt.not)(f),()=>t.break()))}}function y(E,f,$){const _={keyword:"additionalProperties",dataProp:E,dataPropType:li.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};Qi.default=w0;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});const N0=It,nc=re,$s=fe,ic=Qi,I0={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&&ic.default.code(new N0.KeywordCxt(s,ic.default,"additionalProperties"));const o=(0,nc.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=$s.mergeEvaluated.props(t,(0,$s.toHash)(o),s.props));const c=o.filter(l=>!(0,$s.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,nc.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)}}};Vo.default=I0;var qo={};Object.defineProperty(qo,"__esModule",{value:!0});const sc=re,di=te,oc=fe,ac=fe,O0={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,sc.allSchemaProperties)(r),u=c.filter(y=>(0,oc.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 di.Name)&&(s.props=(0,ac.evaluatedPropsToName)(t,s.props));const{props:l}=s;v();function v(){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 E in m)new RegExp(y).test(E)&&(0,oc.checkStrictMode)(s,`property ${E} matches pattern ${y} (use allowMatchingProperties)`)}function d(y){t.forIn("key",n,E=>{t.if((0,di._)`${(0,sc.usePattern)(e,y)}.test(${E})`,()=>{const f=u.includes(y);f||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:E,dataPropType:ac.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,di._)`${l}[${E}]`,!0):!f&&!s.allErrors&&t.if((0,di.not)(a),()=>t.break())})})}}};qo.default=O0;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});const T0=fe,D0={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"}};Go.default=D0;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});const R0=re,C0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:R0.validateUnion,error:{message:"must match a schema in anyOf"}};Bo.default=C0;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});const wi=te,P0=fe,A0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,wi._)`{passingSchemas: ${e.passing}}`},b0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:A0,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(m),e.result(o,()=>e.reset(),()=>e.error(!0));function m(){s.forEach((a,l)=>{let v;(0,P0.alwaysValidSchema)(i,a)?t.var(u,!0):v=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,wi._)`${u} && ${o}`).assign(o,!1).assign(c,(0,wi._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),v&&e.mergeEvaluated(v,wi.Name)})})}}};Ho.default=b0;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const L0=fe,F0={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,L0.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Ko.default=F0;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});const ji=te,jf=fe,j0={message:({params:e})=>(0,ji.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,ji._)`{failingKeyword: ${e.ifClause}}`},M0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:j0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,jf.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=cc(n,"then"),s=cc(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,ji.not)(c),m("else"));e.pass(o,()=>e.error(!0));function u(){const a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(a)}function m(a,l){return()=>{const v=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(v,o),l?t.assign(l,(0,ji._)`${a}`):e.setParams({ifClause:a})}}}};function cc(e,t){const r=e.schema[t];return r!==void 0&&!(0,jf.alwaysValidSchema)(e,r)}Wo.default=M0;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});const k0=fe,U0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,k0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Xo.default=U0;Object.defineProperty(Mo,"__esModule",{value:!0});const z0=un,x0=ko,V0=fn,q0=Uo,G0=zo,B0=Lf,H0=xo,K0=Qi,W0=Vo,X0=qo,Z0=Go,J0=Bo,Y0=Ho,Q0=Ko,eE=Wo,tE=Xo;function rE(e=!1){const t=[Z0.default,J0.default,Y0.default,Q0.default,eE.default,tE.default,H0.default,K0.default,B0.default,W0.default,X0.default];return e?t.push(x0.default,q0.default):t.push(z0.default,V0.default),t.push(G0.default),t}Mo.default=rE;var Zo={},Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});const Ce=te,nE={message:({schemaCode:e})=>(0,Ce.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ce._)`{format: ${e}}`},iE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:nE,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:m,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?v():h();function v(){const d=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),y=r.const("fDef",(0,Ce._)`${d}[${o}]`),E=r.let("fType"),f=r.let("format");r.if((0,Ce._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(E,(0,Ce._)`${y}.type || "string"`).assign(f,(0,Ce._)`${y}.validate`),()=>r.assign(E,(0,Ce._)`"string"`).assign(f,y)),e.fail$data((0,Ce.or)($(),_()));function $(){return u.strictSchema===!1?Ce.nil:(0,Ce._)`${o} && !${f}`}function _(){const T=a.$async?(0,Ce._)`(${y}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Ce._)`${f}(${n})`,k=(0,Ce._)`(typeof ${f} == "function" ? ${T} : ${f}.test(${n}))`;return(0,Ce._)`${f} && ${f} !== true && ${E} === ${t} && !${k}`}}function h(){const d=l.formats[s];if(!d){$();return}if(d===!0)return;const[y,E,f]=_(d);y===t&&e.pass(T());function $(){if(u.strictSchema===!1){l.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${s}" ignored in schema at path "${m}"`}}function _(k){const O=k instanceof RegExp?(0,Ce.regexpCode)(k):u.code.formats?(0,Ce._)`${u.code.formats}${(0,Ce.getProperty)(s)}`:void 0,D=r.scopeValue("formats",{key:s,ref:k,code:O});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,Ce._)`${D}.validate`]:["string",k,D]}function T(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Ce._)`await ${f}(${n})`}return typeof E=="function"?(0,Ce._)`${f}(${n})`:(0,Ce._)`${f}.test(${n})`}}}};Jo.default=iE;Object.defineProperty(Zo,"__esModule",{value:!0});const sE=Jo,oE=[sE.default];Zo.default=oE;var on={};Object.defineProperty(on,"__esModule",{value:!0});on.contentVocabulary=on.metadataVocabulary=void 0;on.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];on.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(So,"__esModule",{value:!0});const aE=wo,cE=Io,uE=Mo,fE=Zo,uc=on,lE=[aE.default,cE.default,(0,uE.default)(),fE.default,uc.metadataVocabulary,uc.contentVocabulary];So.default=lE;var Yo={},Mf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Mf);Object.defineProperty(Yo,"__esModule",{value:!0});const qr=te,Us=Mf,fc=ot,dE=fe,hE={message:({params:{discrError:e,tagName:t}})=>e===Us.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,qr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},mE={keyword:"discriminator",type:"object",schemaType:"object",error:hE,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,qr._)`${r}${(0,qr.getProperty)(c)}`);t.if((0,qr._)`typeof ${m} == "string"`,()=>a(),()=>e.error(!1,{discrError:Us.DiscrError.Tag,tag:m,tagName:c})),e.ok(u);function a(){const h=v();t.if(!1);for(const d in h)t.elseIf((0,qr._)`${m} === ${d}`),t.assign(u,l(h[d]));t.else(),e.error(!1,{discrError:Us.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,qr.Name),d}function v(){var h;const d={},y=f(i);let E=!0;for(let T=0;T<o.length;T++){let k=o[T];(k==null?void 0:k.$ref)&&!(0,dE.schemaHasRulesButRef)(k,s.self.RULES)&&(k=fc.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,k==null?void 0:k.$ref),k instanceof fc.SchemaEnv&&(k=k.schema));const O=(h=k==null?void 0:k.properties)===null||h===void 0?void 0:h[c];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);E=E&&(y||f(k)),$(O,T)}if(!E)throw new Error(`discriminator: "${c}" must be required`);return d;function f({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,k){if(T.const)_(T.const,k);else if(T.enum)for(const O of T.enum)_(O,k);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(T,k){if(typeof T!="string"||T in d)throw new Error(`discriminator: "${c}" values must be unique strings`);d[T]=k}}}};Yo.default=mE;const pE="http://json-schema.org/draft-07/schema#",yE="http://json-schema.org/draft-07/schema#",EE="Core schema meta-schema",vE={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:[]}},gE=["object","boolean"],$E={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}};var _E={$schema:pE,$id:yE,title:EE,definitions:vE,type:gE,properties:$E,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=nf,n=So,i=Yo,s=_E,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(v,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var m=It;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var a=te;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}})})(Pi,Pi.exports);var zs={exports:{}},kf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,U){return{validate:P,compare:U}}e.fullFormats={date:t(s,o),time:t(u,m),"date-time":t(l,v),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri: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:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:f,int32:{type:"number",validate:T},int64:{type:"number",validate:k},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(P){return P%4===0&&(P%100!==0||P%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(P){const U=n.exec(P);if(!U)return!1;const x=+U[1],V=+U[2],Y=+U[3];return V>=1&&V<=12&&Y>=1&&Y<=(V===2&&r(x)?29:i[V])}function o(P,U){if(!!(P&&U))return P>U?1:P<U?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(P,U){const x=c.exec(P);if(!x)return!1;const V=+x[1],Y=+x[2],Z=+x[3],ee=x[5];return(V<=23&&Y<=59&&Z<=59||V===23&&Y===59&&Z===60)&&(!U||ee!=="")}function m(P,U){if(!(P&&U))return;const x=c.exec(P),V=c.exec(U);if(!!(x&&V))return P=x[1]+x[2]+x[3]+(x[4]||""),U=V[1]+V[2]+V[3]+(V[4]||""),P>U?1:P<U?-1:0}const a=/t|\s/i;function l(P){const U=P.split(a);return U.length===2&&s(U[0])&&u(U[1],!0)}function v(P,U){if(!(P&&U))return;const[x,V]=P.split(a),[Y,Z]=U.split(a),ee=o(x,Y);if(ee!==void 0)return ee||m(V,Z)}const h=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function y(P){return h.test(P)&&d.test(P)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(P){return E.lastIndex=0,E.test(P)}const $=-(2**31),_=2**31-1;function T(P){return Number.isInteger(P)&&P<=_&&P>=$}function k(P){return Number.isInteger(P)}function O(){return!0}const D=/[^\\]\\Z/;function M(P){if(D.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}})(kf);var Uf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Pi.exports,r=te,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:u})=>r.str`should be ${i[c].okStr} ${u}`,params:({keyword:c,schemaCode:u})=>r._`{comparison: ${i[c].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:u,data:m,schemaCode:a,keyword:l,it:v}=c,{opts:h,self:d}=v;if(!h.validateFormats)return;const y=new t.KeywordCxt(v,d.RULES.all.format.definition,"format");y.$data?E():f();function E(){const _=u.scopeValue("formats",{ref:d.formats,code:h.code.formats}),T=u.const("fmt",r._`${_}[${y.schemaCode}]`);c.fail$data(r.or(r._`typeof ${T} != "object"`,r._`${T} instanceof RegExp`,r._`typeof ${T}.compare != "function"`,$(T)))}function f(){const _=y.schema,T=d.formats[_];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const k=u.scopeValue("formats",{key:_,ref:T,code:h.code.formats?r._`${h.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(k))}function $(_){return r._`${_}.compare(${m}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(Uf);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=kf,n=Uf,i=te,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(m,a={keywords:!0})=>{if(Array.isArray(a))return u(m,a,r.fullFormats,s),m;const[l,v]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],h=a.formats||r.formatNames;return u(m,h,l,v),a.keywords&&n.default(m),m};c.get=(m,a="full")=>{const v=(a==="fast"?r.fastFormats:r.fullFormats)[m];if(!v)throw new Error(`Unknown format "${m}"`);return v};function u(m,a,l,v){var h,d;(h=(d=m.opts.code).formats)!==null&&h!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${v}`);for(const y of a)m.addFormat(y,l[y])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(zs,zs.exports);const SE=(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);!wE(i,s)&&n||Object.defineProperty(e,r,s)},wE=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)},NE=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},IE=(e,t)=>`/* Wrapped ${e}*/
|
|
15
|
+
${t}`,OE=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),TE=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),DE=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=IE.bind(null,n,t.toString());Object.defineProperty(i,"name",TE),Object.defineProperty(e,"toString",{...OE,value:i})},RE=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))SE(e,t,i,r);return NE(e,t),DE(e,t,n),e};var CE=RE;const PE=CE;var AE=(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 PE(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},ur={exports:{}};const bE="2.0.0",LE=256,FE=Number.MAX_SAFE_INTEGER||9007199254740991,jE=16;var es={SEMVER_SPEC_VERSION:bE,MAX_LENGTH:LE,MAX_SAFE_INTEGER:FE,MAX_SAFE_COMPONENT_LENGTH:jE};const ME=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ts=ME;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=es,n=ts;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(m,a,l)=>{const v=c++;n(m,v,a),o[m]=v,s[v]=a,i[v]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ur,ur.exports);const kE=["includePrerelease","loose","rtl"],UE=e=>e?typeof e!="object"?{loose:!0}:kE.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var rs=UE;const lc=/^[0-9]+$/,zf=(e,t)=>{const r=lc.test(e),n=lc.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},zE=(e,t)=>zf(t,e);var xs={compareIdentifiers:zf,rcompareIdentifiers:zE};const hi=ts,{MAX_LENGTH:dc,MAX_SAFE_INTEGER:mi}=es,{re:hc,t:mc}=ur.exports,xE=rs,{compareIdentifiers:xr}=xs;class gt{constructor(t,r){if(r=xE(r),t instanceof gt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>dc)throw new TypeError(`version is longer than ${dc} characters`);hi("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?hc[mc.LOOSE]:hc[mc.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>mi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mi||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<mi)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(hi("SemVer.compare",this.version,this.options,t),!(t instanceof gt)){if(typeof t=="string"&&t===this.version)return 0;t=new gt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof gt||(t=new gt(t,this.options)),xr(this.major,t.major)||xr(this.minor,t.minor)||xr(this.patch,t.patch)}comparePre(t){if(t instanceof gt||(t=new gt(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(hi("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 xr(n,i)}while(++r)}compareBuild(t){t instanceof gt||(t=new gt(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(hi("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 xr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(xr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var tt=gt;const{MAX_LENGTH:VE}=es,{re:pc,t:yc}=ur.exports,Ec=tt,qE=rs,GE=(e,t)=>{if(t=qE(t),e instanceof Ec)return e;if(typeof e!="string"||e.length>VE||!(t.loose?pc[yc.LOOSE]:pc[yc.FULL]).test(e))return null;try{return new Ec(e,t)}catch{return null}};var ln=GE;const BE=ln,HE=(e,t)=>{const r=BE(e,t);return r?r.version:null};var KE=HE;const WE=ln,XE=(e,t)=>{const r=WE(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var ZE=XE;const vc=tt,JE=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new vc(e instanceof vc?e.version:e,r).inc(t,n).version}catch{return null}};var YE=JE;const gc=tt,QE=(e,t,r)=>new gc(e,r).compare(new gc(t,r));var Tt=QE;const ev=Tt,tv=(e,t,r)=>ev(e,t,r)===0;var Qo=tv;const $c=ln,rv=Qo,nv=(e,t)=>{if(rv(e,t))return null;{const r=$c(e),n=$c(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var iv=nv;const sv=tt,ov=(e,t)=>new sv(e,t).major;var av=ov;const cv=tt,uv=(e,t)=>new cv(e,t).minor;var fv=uv;const lv=tt,dv=(e,t)=>new lv(e,t).patch;var hv=dv;const mv=ln,pv=(e,t)=>{const r=mv(e,t);return r&&r.prerelease.length?r.prerelease:null};var yv=pv;const Ev=Tt,vv=(e,t,r)=>Ev(t,e,r);var gv=vv;const $v=Tt,_v=(e,t)=>$v(e,t,!0);var Sv=_v;const _c=tt,wv=(e,t,r)=>{const n=new _c(e,r),i=new _c(t,r);return n.compare(i)||n.compareBuild(i)};var ea=wv;const Nv=ea,Iv=(e,t)=>e.sort((r,n)=>Nv(r,n,t));var Ov=Iv;const Tv=ea,Dv=(e,t)=>e.sort((r,n)=>Tv(n,r,t));var Rv=Dv;const Cv=Tt,Pv=(e,t,r)=>Cv(e,t,r)>0;var ns=Pv;const Av=Tt,bv=(e,t,r)=>Av(e,t,r)<0;var ta=bv;const Lv=Tt,Fv=(e,t,r)=>Lv(e,t,r)!==0;var xf=Fv;const jv=Tt,Mv=(e,t,r)=>jv(e,t,r)>=0;var ra=Mv;const kv=Tt,Uv=(e,t,r)=>kv(e,t,r)<=0;var na=Uv;const zv=Qo,xv=xf,Vv=ns,qv=ra,Gv=ta,Bv=na,Hv=(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 zv(e,r,n);case"!=":return xv(e,r,n);case">":return Vv(e,r,n);case">=":return qv(e,r,n);case"<":return Gv(e,r,n);case"<=":return Bv(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Vf=Hv;const Kv=tt,Wv=ln,{re:pi,t:yi}=ur.exports,Xv=(e,t)=>{if(e instanceof Kv)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(pi[yi.COERCE]);else{let n;for(;(n=pi[yi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),pi[yi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;pi[yi.COERCERTL].lastIndex=-1}return r===null?null:Wv(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var Zv=Xv,Jv=le;le.Node=Tr;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++)Qv(this,arguments[e]);return this.length};le.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)eg(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=Yv(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 Yv(e,t,r){var n=t===e.head?new Tr(r,null,t,e):new Tr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Qv(e,t){e.tail=new Tr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function eg(e,t){e.head=new Tr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Tr(e,t,r,n){if(!(this instanceof Tr))return new Tr(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{require("./iterator.js")(le)}catch{}const tg=Jv,$r=Symbol("max"),qt=Symbol("length"),Vr=Symbol("lengthCalculator"),Fn=Symbol("allowStale"),_r=Symbol("maxAge"),Vt=Symbol("dispose"),Sc=Symbol("noDisposeOnSet"),Fe=Symbol("lruList"),$t=Symbol("cache"),qf=Symbol("updateAgeOnGet"),_s=()=>1;class rg{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[$r]=t.max||1/0;const r=t.length||_s;if(this[Vr]=typeof r!="function"?_s:r,this[Fn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[_r]=t.maxAge||0,this[Vt]=t.dispose,this[Sc]=t.noDisposeOnSet||!1,this[qf]=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[$r]=t||1/0,wn(this)}get max(){return this[$r]}set allowStale(t){this[Fn]=!!t}get allowStale(){return this[Fn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[_r]=t,wn(this)}get maxAge(){return this[_r]}set lengthCalculator(t){typeof t!="function"&&(t=_s),t!==this[Vr]&&(this[Vr]=t,this[qt]=0,this[Fe].forEach(r=>{r.length=this[Vr](r.value,r.key),this[qt]+=r.length})),wn(this)}get lengthCalculator(){return this[Vr]}get length(){return this[qt]}get itemCount(){return this[Fe].length}rforEach(t,r){r=r||this;for(let n=this[Fe].tail;n!==null;){const i=n.prev;wc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Fe].head;n!==null;){const i=n.next;wc(this,t,n,r),n=i}}keys(){return this[Fe].toArray().map(t=>t.key)}values(){return this[Fe].toArray().map(t=>t.value)}reset(){this[Vt]&&this[Fe]&&this[Fe].length&&this[Fe].forEach(t=>this[Vt](t.key,t.value)),this[$t]=new Map,this[Fe]=new tg,this[qt]=0}dump(){return this[Fe].map(t=>Mi(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Fe]}set(t,r,n){if(n=n||this[_r],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Vr](r,t);if(this[$t].has(t)){if(s>this[$r])return Xr(this,this[$t].get(t)),!1;const u=this[$t].get(t).value;return this[Vt]&&(this[Sc]||this[Vt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[qt]+=s-u.length,u.length=s,this.get(t),wn(this),!0}const o=new ng(t,r,s,i,n);return o.length>this[$r]?(this[Vt]&&this[Vt](t,r),!1):(this[qt]+=o.length,this[Fe].unshift(o),this[$t].set(t,this[Fe].head),wn(this),!0)}has(t){if(!this[$t].has(t))return!1;const r=this[$t].get(t).value;return!Mi(this,r)}get(t){return Ss(this,t,!0)}peek(t){return Ss(this,t,!1)}pop(){const t=this[Fe].tail;return t?(Xr(this,t),t.value):null}del(t){Xr(this,this[$t].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[$t].forEach((t,r)=>Ss(this,r,!1))}}const Ss=(e,t,r)=>{const n=e[$t].get(t);if(n){const i=n.value;if(Mi(e,i)){if(Xr(e,n),!e[Fn])return}else r&&(e[qf]&&(n.value.now=Date.now()),e[Fe].unshiftNode(n));return i.value}},Mi=(e,t)=>{if(!t||!t.maxAge&&!e[_r])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[_r]&&r>e[_r]},wn=e=>{if(e[qt]>e[$r])for(let t=e[Fe].tail;e[qt]>e[$r]&&t!==null;){const r=t.prev;Xr(e,t),t=r}},Xr=(e,t)=>{if(t){const r=t.value;e[Vt]&&e[Vt](r.key,r.value),e[qt]-=r.length,e[$t].delete(r.key),e[Fe].removeNode(t)}};class ng{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const wc=(e,t,r,n)=>{let i=r.value;Mi(e,i)&&(Xr(e,r),e[Fn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var ig=rg;class jn{constructor(t,r){if(r=og(r),t instanceof jn)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new jn(t.raw,r);if(t instanceof Vs)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(i=>!Ic(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const i of this.set)if(i.length===1&&lg(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${t}`,i=Nc.get(n);if(i)return i;const s=this.options.loose,o=s?st[Je.HYPHENRANGELOOSE]:st[Je.HYPHENRANGE];t=t.replace(o,_g(this.options.includePrerelease)),Ie("hyphen replace",t),t=t.replace(st[Je.COMPARATORTRIM],cg),Ie("comparator trim",t),t=t.replace(st[Je.TILDETRIM],ug),t=t.replace(st[Je.CARETTRIM],fg),t=t.split(/\s+/).join(" ");let c=t.split(" ").map(l=>dg(l,this.options)).join(" ").split(/\s+/).map(l=>$g(l,this.options));s&&(c=c.filter(l=>(Ie("loose invalid filter",l,this.options),!!l.match(st[Je.COMPARATORLOOSE])))),Ie("range list",c);const u=new Map,m=c.map(l=>new Vs(l,this.options));for(const l of m){if(Ic(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");const a=[...u.values()];return Nc.set(n,a),a}intersects(t,r){if(!(t instanceof jn))throw new TypeError("a Range is required");return this.set.some(n=>Oc(n,r)&&t.set.some(i=>Oc(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ag(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Sg(this.set[r],t,this.options))return!0;return!1}}var Dt=jn;const sg=ig,Nc=new sg({max:1e3}),og=rs,Vs=is,Ie=ts,ag=tt,{re:st,t:Je,comparatorTrimReplace:cg,tildeTrimReplace:ug,caretTrimReplace:fg}=ur.exports,Ic=e=>e.value==="<0.0.0-0",lg=e=>e.value==="",Oc=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},dg=(e,t)=>(Ie("comp",e,t),e=pg(e,t),Ie("caret",e),e=hg(e,t),Ie("tildes",e),e=Eg(e,t),Ie("xrange",e),e=gg(e,t),Ie("stars",e),e),Ye=e=>!e||e.toLowerCase()==="x"||e==="*",hg=(e,t)=>e.trim().split(/\s+/).map(r=>mg(r,t)).join(" "),mg=(e,t)=>{const r=t.loose?st[Je.TILDELOOSE]:st[Je.TILDE];return e.replace(r,(n,i,s,o,c)=>{Ie("tilde",e,n,i,s,o,c);let u;return Ye(i)?u="":Ye(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Ye(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:c?(Ie("replaceTilde pr",c),u=`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ie("tilde return",u),u})},pg=(e,t)=>e.trim().split(/\s+/).map(r=>yg(r,t)).join(" "),yg=(e,t)=>{Ie("caret",e,t);const r=t.loose?st[Je.CARETLOOSE]:st[Je.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,c,u)=>{Ie("caret",e,i,s,o,c,u);let m;return Ye(s)?m="":Ye(o)?m=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Ye(c)?s==="0"?m=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(Ie("replaceCaret pr",u),s==="0"?o==="0"?m=`>=${s}.${o}.${c}-${u} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}-${u} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c}-${u} <${+s+1}.0.0-0`):(Ie("no pr"),s==="0"?o==="0"?m=`>=${s}.${o}.${c}${n} <${s}.${o}.${+c+1}-0`:m=`>=${s}.${o}.${c}${n} <${s}.${+o+1}.0-0`:m=`>=${s}.${o}.${c} <${+s+1}.0.0-0`),Ie("caret return",m),m})},Eg=(e,t)=>(Ie("replaceXRanges",e,t),e.split(/\s+/).map(r=>vg(r,t)).join(" ")),vg=(e,t)=>{e=e.trim();const r=t.loose?st[Je.XRANGELOOSE]:st[Je.XRANGE];return e.replace(r,(n,i,s,o,c,u)=>{Ie("xRange",e,n,i,s,o,c,u);const m=Ye(s),a=m||Ye(o),l=a||Ye(c),v=l;return i==="="&&v&&(i=""),u=t.includePrerelease?"-0":"",m?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&v?(a&&(o=0),c=0,i===">"?(i=">=",a?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",a?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${c}${u}`):a?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Ie("xRange return",n),n})},gg=(e,t)=>(Ie("replaceStars",e,t),e.trim().replace(st[Je.STAR],"")),$g=(e,t)=>(Ie("replaceGTE0",e,t),e.trim().replace(st[t.includePrerelease?Je.GTE0PRE:Je.GTE0],"")),_g=e=>(t,r,n,i,s,o,c,u,m,a,l,v,h)=>(Ye(n)?r="":Ye(i)?r=`>=${n}.0.0${e?"-0":""}`:Ye(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Ye(m)?u="":Ye(a)?u=`<${+m+1}.0.0-0`:Ye(l)?u=`<${m}.${+a+1}.0-0`:v?u=`<=${m}.${a}.${l}-${v}`:e?u=`<${m}.${a}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Sg=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ie(e[n].semver),e[n].semver!==Vs.ANY&&e[n].semver.prerelease.length>0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},Nn=Symbol("SemVer ANY");class ki{static get ANY(){return Nn}constructor(t,r){if(r=wg(r),t instanceof ki){if(t.loose===!!r.loose)return t;t=t.value}Ns("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Nn?this.value="":this.value=this.operator+this.semver.version,Ns("comp",this)}parse(t){const r=this.options.loose?Tc[Dc.COMPARATORLOOSE]:Tc[Dc.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Rc(n[2],this.options.loose):this.semver=Nn}toString(){return this.value}test(t){if(Ns("Comparator.test",t,this.options.loose),this.semver===Nn||t===Nn)return!0;if(typeof t=="string")try{t=new Rc(t,this.options)}catch{return!1}return ws(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof ki))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Cc(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new Cc(this.value,r).test(t.semver);const n=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<"),s=this.semver.version===t.semver.version,o=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),c=ws(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),u=ws(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&o||c||u}}var is=ki;const wg=rs,{re:Tc,t:Dc}=ur.exports,ws=Vf,Ns=ts,Rc=tt,Cc=Dt,Ng=Dt,Ig=(e,t,r)=>{try{t=new Ng(t,r)}catch{return!1}return t.test(e)};var ss=Ig;const Og=Dt,Tg=(e,t)=>new Og(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Dg=Tg;const Rg=tt,Cg=Dt,Pg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Cg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new Rg(n,r))}),n};var Ag=Pg;const bg=tt,Lg=Dt,Fg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new Lg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new bg(n,r))}),n};var jg=Fg;const Is=tt,Mg=Dt,Pc=ns,kg=(e,t)=>{e=new Mg(e,t);let r=new Is("0.0.0");if(e.test(r)||(r=new Is("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 Is(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||Pc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Pc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var Ug=kg;const zg=Dt,xg=(e,t)=>{try{return new zg(e,t).range||"*"}catch{return null}};var Vg=xg;const qg=tt,Gf=is,{ANY:Gg}=Gf,Bg=Dt,Hg=ss,Ac=ns,bc=ta,Kg=na,Wg=ra,Xg=(e,t,r,n)=>{e=new qg(e,n),t=new Bg(t,n);let i,s,o,c,u;switch(r){case">":i=Ac,s=Kg,o=bc,c=">",u=">=";break;case"<":i=bc,s=Wg,o=Ac,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Hg(e,t,n))return!1;for(let m=0;m<t.set.length;++m){const a=t.set[m];let l=null,v=null;if(a.forEach(h=>{h.semver===Gg&&(h=new Gf(">=0.0.0")),l=l||h,v=v||h,i(h.semver,l.semver,n)?l=h:o(h.semver,v.semver,n)&&(v=h)}),l.operator===c||l.operator===u||(!v.operator||v.operator===c)&&s(e,v.semver))return!1;if(v.operator===u&&o(e,v.semver))return!1}return!0};var ia=Xg;const Zg=ia,Jg=(e,t,r)=>Zg(e,t,">",r);var Yg=Jg;const Qg=ia,e$=(e,t,r)=>Qg(e,t,"<",r);var t$=e$;const Lc=Dt,r$=(e,t,r)=>(e=new Lc(e,r),t=new Lc(t,r),e.intersects(t));var n$=r$;const i$=ss,s$=Tt;var o$=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>s$(a,l,r));for(const a of o)i$(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 Fc=Dt,Ni=is,{ANY:Os}=Ni,In=ss,sa=Tt,a$=(e,t,r={})=>{if(e===t)return!0;e=new Fc(e,r),t=new Fc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=c$(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},c$=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Os){if(t.length===1&&t[0].semver===Os)return!0;r.includePrerelease?e=[new Ni(">=0.0.0-0")]:e=[new Ni(">=0.0.0")]}if(t.length===1&&t[0].semver===Os){if(r.includePrerelease)return!0;t=[new Ni(">=0.0.0")]}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=jc(i,h,r):h.operator==="<"||h.operator==="<="?s=Mc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=sa(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&&!In(h,String(i),r)||s&&!In(h,String(s),r))return null;for(const d of t)if(!In(h,String(d),r))return!1;return!0}let c,u,m,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,v=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const h of t){if(a=a||h.operator===">"||h.operator===">=",m=m||h.operator==="<"||h.operator==="<=",i){if(v&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===v.major&&h.semver.minor===v.minor&&h.semver.patch===v.patch&&(v=!1),h.operator===">"||h.operator===">="){if(c=jc(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!In(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=Mc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!In(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&m&&!s&&o!==0||s&&a&&!i&&o!==0||v||l)},jc=(e,t,r)=>{if(!e)return t;const n=sa(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Mc=(e,t,r)=>{if(!e)return t;const n=sa(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var u$=a$;const Ts=ur.exports;var f$={re:Ts.re,src:Ts.src,tokens:Ts.t,SEMVER_SPEC_VERSION:es.SEMVER_SPEC_VERSION,SemVer:tt,compareIdentifiers:xs.compareIdentifiers,rcompareIdentifiers:xs.rcompareIdentifiers,parse:ln,valid:KE,clean:ZE,inc:YE,diff:iv,major:av,minor:fv,patch:hv,prerelease:yv,compare:Tt,rcompare:gv,compareLoose:Sv,compareBuild:ea,sort:Ov,rsort:Rv,gt:ns,lt:ta,eq:Qo,neq:xf,gte:ra,lte:na,cmp:Vf,coerce:Zv,Comparator:is,Range:Dt,satisfies:ss,toComparators:Dg,maxSatisfying:Ag,minSatisfying:jg,minVersion:Ug,validRange:Vg,outside:ia,gtr:Yg,ltr:t$,intersects:n$,simplifyRange:o$,subset:u$},os={exports:{}},oa={exports:{}};const Bf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};oa.exports=Bf;oa.exports.default=Bf;const l$=oa.exports,Ui=new WeakMap,Hf=(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(Ui.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 l$(s,e),Ui.set(s,n),s};os.exports=Hf;os.exports.default=Hf;os.exports.callCount=e=>{if(!Ui.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ui.get(e)};(function(e,t){var r=rr&&rr.__classPrivateFieldSet||function(X,j,z,R,I){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?X!==j||!I:!j.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?I.call(X,z):I?I.value=z:j.set(X,z),z},n=rr&&rr.__classPrivateFieldGet||function(X,j,z,R){if(z==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?X!==j||!R:!j.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?R:z==="a"?R.call(X):R?R.value:j.get(X)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Vi.default,l=an.default,v=Oe.default,h=Xc.default,d=Bs.default,y=_l.default,E=nm,f=to.exports,$=ao.exports,_=Mt,T=Pi.exports,k=zs.exports,O=AE,D=f$,M=os.exports,P="aes-256-cbc",U=()=>Object.create(null),x=X=>X!=null;let V="";try{delete require.cache[__filename],V=v.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const Y=(X,j)=>{const z=new Set(["undefined","symbol","function"]),R=typeof j;if(z.has(R))throw new TypeError(`Setting a value of type \`${R}\` for key \`${X}\` is not allowed as it's not supported by JSON`)},Z="__internal__",ee=`${Z}.migrations.version`;class ce{constructor(j={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),m.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const R={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...j},I=M(()=>{const S=f.sync({cwd:V}),L=S&&JSON.parse(l.readFileSync(S,"utf8"));return L!=null?L:{}});if(!R.cwd){if(R.projectName||(R.projectName=I().name),!R.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");R.cwd=$(R.projectName,{suffix:R.projectSuffix}).config}if(r(this,u,R,"f"),R.schema){if(typeof R.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new T.default({allErrors:!0,useDefaults:!0});(0,k.default)(S);const L={type:"object",properties:R.schema};r(this,o,S.compile(L),"f");for(const[q,G]of Object.entries(R.schema))G!=null&&G.default&&(n(this,m,"f")[q]=G.default)}R.defaults&&r(this,m,{...n(this,m,"f"),...R.defaults},"f"),R.serialize&&(this._serialize=R.serialize),R.deserialize&&(this._deserialize=R.deserialize),this.events=new y.EventEmitter,r(this,c,R.encryptionKey,"f");const F=R.fileExtension?`.${R.fileExtension}`:"";this.path=v.resolve(R.cwd,`${(z=R.configName)!==null&&z!==void 0?z:"config"}${F}`);const C=this.store,p=Object.assign(U(),R.defaults,C);this._validate(p);try{d.deepEqual(C,p)}catch{this.store=p}if(R.watch&&this._watch(),R.migrations){if(R.projectVersion||(R.projectVersion=I().version),!R.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(R.migrations,R.projectVersion)}}get(j,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(j,z);const{store:R}=this;return j in R?R[j]:z}set(j,z){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${Z} key, as it's used to manage this module internal operations.`);const{store:R}=this,I=(F,C)=>{Y(F,C),n(this,u,"f").accessPropertiesByDotNotation?E.set(R,F,C):R[F]=C};if(typeof j=="object"){const F=j;for(const[C,p]of Object.entries(F))I(C,p)}else I(j,z);this.store=R}has(j){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,j):j in this.store}reset(...j){for(const z of j)x(n(this,m,"f")[z])&&this.set(z,n(this,m,"f")[z])}delete(j){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,j):delete z[j],this.store=z}clear(){this.store=U();for(const j of Object.keys(n(this,m,"f")))this.reset(j)}onDidChange(j,z){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(j),z)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(j),R=this._deserialize(z);return this._validate(R),Object.assign(U(),R)}catch(j){if((j==null?void 0:j.code)==="ENOENT")return this._ensureDirectory(),U();if(n(this,u,"f").clearInvalidConfig&&j.name==="SyntaxError")return U();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[j,z]of Object.entries(this.store))yield[j,z]}_encryptData(j){if(!n(this,c,"f"))return j.toString();try{if(n(this,c,"f"))try{if(j.slice(16,17).toString()===":"){const z=j.slice(0,16),R=h.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=h.createDecipheriv(P,R,z);j=Buffer.concat([I.update(Buffer.from(j.slice(17))),I.final()]).toString("utf8")}else{const z=h.createDecipher(P,n(this,c,"f"));j=Buffer.concat([z.update(Buffer.from(j)),z.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,z){let R=j();const I=()=>{const F=R,C=j();(0,a.isDeepStrictEqual)(C,F)||(R=C,z.call(this,C,F))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(j){if(!n(this,o,"f")||n(this,o,"f").call(this,j)||!n(this,o,"f").errors)return;const R=n(this,o,"f").errors.map(({instancePath:I,message:F=""})=>`\`${I.slice(1)}\` ${F}`);throw new Error("Config schema violation: "+R.join("; "))}_ensureDirectory(){l.mkdirSync(v.dirname(this.path),{recursive:!0})}_write(j){let z=this._serialize(j);if(n(this,c,"f")){const R=h.randomBytes(16),I=h.pbkdf2Sync(n(this,c,"f"),R.toString(),1e4,32,"sha512"),F=h.createCipheriv(P,I,R);z=Buffer.concat([R,Buffer.from(":"),F.update(Buffer.from(z)),F.final()])}if({}.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(R){if((R==null?void 0:R.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw R}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(U()),process.platform==="win32"?l.watch(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},O(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,z){let R=this._get(ee,"0.0.0");const I=Object.keys(j).filter(C=>this._shouldPerformMigration(C,R,z));let F={...this.store};for(const C of I)try{const p=j[C];p(this),this._set(ee,C),R=C,F={...this.store}}catch(p){throw this.store=F,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${p}`)}(this._isVersionInRangeFormat(R)||!D.eq(R,z))&&this._set(ee,z)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===Z?!0:typeof j!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!j.startsWith(`${Z}.`):!1}_isVersionInRangeFormat(j){return D.clean(j)===null}_shouldPerformMigration(j,z,R){return this._isVersionInRangeFormat(j)?z!=="0.0.0"&&D.satisfies(z,j)?!1:D.satisfies(R,j):!(D.lte(j,z)||D.gt(j,R))}_get(j,z){return E.get(this.store,j,z)}_set(j,z){const{store:R}=this;E.set(R,j,z),this.store=R}}t.default=ce,e.exports=ce,e.exports.default=ce})(As,As.exports);const kc=Oe.default,{app:Ii,ipcMain:qs,ipcRenderer:Uc,shell:d$}=vl.default,h$=As.exports;let zc=!1;const xc=()=>{if(!qs||!Ii)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:Ii.getPath("userData"),appVersion:Ii.getVersion()};return zc||(qs.on("electron-store-get-data",t=>{t.returnValue=e}),zc=!0),e};class m$ extends h${constructor(t){let r,n;if(Uc){const i=Uc.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 qs&&Ii&&({defaultCwd:r,appVersion:n}=xc());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=kc.isAbsolute(t.cwd)?t.cwd:kc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){xc()}openInEditor(){d$.openPath(this.path)}}var Vc=m$,Kt={exports:{}},aa={},p$=aa.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 an.default},Kf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const y$=aa.require(),Ze=Oe.default,qc=Kf,E$=typeof process=="object"&&process.platform==="win32",Gc=e=>e&&typeof e=="object",ca=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function Ve(e){this.sep=Ze.sep,this.fs=y$,Gc(e)&&Gc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var v$=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 Errors.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=Ze.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=Ze.dirname(e);s.fs.exists(m,function(a){a||s.makeDir(m),s.fs.open(e,"w",438,function(l,v){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(h,d){s.fs.write(d,t,0,t.length,0,function(){s.fs.close(d,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):v?s.fs.write(v,t,0,t.length,0,function(){s.fs.close(v,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};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=Ze.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Ze.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 ca[(e^t)&255]^e>>>8};Ve.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),ca.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 qc.STORED:return"STORED ("+e+")";case qc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Ve.canonical=function(e){if(!e)return"";var t=Ze.posix.normalize("/"+e.split("\\").join("/"));return Ze.join(".",t)};Ve.sanitize=function(e,t){e=Ze.resolve(Ze.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Ze.normalize(Ze.join(e,r.slice(n,i).join(Ze.sep)));if(s.indexOf(e)===0)return s}return Ze.normalize(Ze.join(e,Ze.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=ca;var g$={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 zi=aa.require(),Wf=Oe.default;zi.existsSync=zi.existsSync||Wf.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&&zi.existsSync(t)?(n=zi.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=Wf.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," ")}}};Kt.exports=v$;Kt.exports.Constants=Kf;Kt.exports.Errors=g$;Kt.exports.FileAttr=$$;var as={},Tn=Kt.exports,B=Tn.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,v=0,h=0,d=0;e|=Tn.isWin?2560:768,r|=B.FLG_EFS;var y={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case B.STORED:this.version=10;case B.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return m},set extraLength(f){m=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return v},set inAttr(f){v=Math.max(0,f)>>>0},get attr(){return h},set attr(f){h=Math.max(0,f)>>>0},get fileAttr(){return h?(h>>>0|0)>>16&4095:0},get offset(){return d},set offset(f){d=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return B.CENHDR+u+m+a},get realDataOffset(){return d+B.LOCHDR+y.fnameLen+y.extraLen},get dataHeader(){return y},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+B.LOCHDR);if($.readUInt32LE(0)!==B.LOCSIG)throw new Error(Tn.Errors.INVALID_LOC);y={version:$.readUInt16LE(B.LOCVER),flags:$.readUInt16LE(B.LOCFLG),method:$.readUInt16LE(B.LOCHOW),time:$.readUInt32LE(B.LOCTIM),crc:$.readUInt32LE(B.LOCCRC),compressedSize:$.readUInt32LE(B.LOCSIZ),size:$.readUInt32LE(B.LOCLEN),fnameLen:$.readUInt16LE(B.LOCNAM),extraLen:$.readUInt16LE(B.LOCEXT)}},loadFromBinary:function(f){if(f.length!==B.CENHDR||f.readUInt32LE(0)!==B.CENSIG)throw new Error(Tn.Errors.INVALID_CEN);e=f.readUInt16LE(B.CENVEM),t=f.readUInt16LE(B.CENVER),r=f.readUInt16LE(B.CENFLG),n=f.readUInt16LE(B.CENHOW),i=f.readUInt32LE(B.CENTIM),s=f.readUInt32LE(B.CENCRC),o=f.readUInt32LE(B.CENSIZ),c=f.readUInt32LE(B.CENLEN),u=f.readUInt16LE(B.CENNAM),m=f.readUInt16LE(B.CENEXT),a=f.readUInt16LE(B.CENCOM),l=f.readUInt16LE(B.CENDSK),v=f.readUInt16LE(B.CENATT),h=f.readUInt32LE(B.CENATX),d=f.readUInt32LE(B.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(B.LOCHDR);return f.writeUInt32LE(B.LOCSIG,0),f.writeUInt16LE(t,B.LOCVER),f.writeUInt16LE(r,B.LOCFLG),f.writeUInt16LE(n,B.LOCHOW),f.writeUInt32LE(i,B.LOCTIM),f.writeUInt32LE(s,B.LOCCRC),f.writeUInt32LE(o,B.LOCSIZ),f.writeUInt32LE(c,B.LOCLEN),f.writeUInt16LE(u,B.LOCNAM),f.writeUInt16LE(m,B.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(B.CENHDR+u+m+a);return f.writeUInt32LE(B.CENSIG,0),f.writeUInt16LE(e,B.CENVEM),f.writeUInt16LE(t,B.CENVER),f.writeUInt16LE(r,B.CENFLG),f.writeUInt16LE(n,B.CENHOW),f.writeUInt32LE(i,B.CENTIM),f.writeUInt32LE(s,B.CENCRC),f.writeUInt32LE(o,B.CENSIZ),f.writeUInt32LE(c,B.CENLEN),f.writeUInt16LE(u,B.CENNAM),f.writeUInt16LE(m,B.CENEXT),f.writeUInt16LE(a,B.CENCOM),f.writeUInt16LE(l,B.CENDSK),f.writeUInt16LE(v,B.CENATT),f.writeUInt32LE(h,B.CENATX),f.writeUInt32LE(d,B.CENOFF),f.fill(0,B.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:Tn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(m),commentLength:f(a),diskNumStart:l,inAttr:v,attr:h,offset:d,entryHeaderSize:f(B.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Gr=Kt.exports,Se=Gr.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 Se.ENDHDR+i},loadFromBinary:function(s){if((s.length!==Se.ENDHDR||s.readUInt32LE(0)!==Se.ENDSIG)&&(s.length<Se.ZIP64HDR||s.readUInt32LE(0)!==Se.ZIP64SIG))throw new Error(Gr.Errors.INVALID_END);s.readUInt32LE(0)===Se.ENDSIG?(e=s.readUInt16LE(Se.ENDSUB),t=s.readUInt16LE(Se.ENDTOT),r=s.readUInt32LE(Se.ENDSIZ),n=s.readUInt32LE(Se.ENDOFF),i=s.readUInt16LE(Se.ENDCOM)):(e=Gr.readBigUInt64LE(s,Se.ZIP64SUB),t=Gr.readBigUInt64LE(s,Se.ZIP64TOT),r=Gr.readBigUInt64LE(s,Se.ZIP64SIZ),n=Gr.readBigUInt64LE(s,Se.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(Se.ENDHDR+i);return s.writeUInt32LE(Se.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,Se.ENDSUB),s.writeUInt16LE(t,Se.ENDTOT),s.writeUInt32LE(r,Se.ENDSIZ),s.writeUInt32LE(n,Se.ENDOFF),s.writeUInt16LE(i,Se.ENDCOM),s.fill(" ",Se.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," ")}}};as.EntryHeader=_$;as.MainHeader=S$;var cs={},w$=function(e){var t=Zc.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var m=0;m<s.length;m++){var a=s[m];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},N$=function(e){var t=Zc.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var m=i[u];m.copy(o,c),c+=m.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:Bc}=Xc.default,I$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),Xf=(e,t)=>Math.imul(e,t)>>>0,Hc=(e,t)=>I$[(e^t)&255]^e>>>8,qn=()=>typeof Bc=="function"?Bc(Buffer.alloc(12)):qn.node();qn.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 Oi={genSalt:qn};function us(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])}us.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Hc(t[0],e),t[1]+=t[0]&255,t[1]=Xf(t[1],134775813)+1,t[2]=Hc(t[2],t[1]>>>24),e};us.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return Xf(e,e^1)>>8&255};function O$(e){const t=new us(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 us(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?Oi.genSalt=function(){return e.slice(0,12)}:e==="node"?Oi.genSalt=qn.node:Oi.genSalt=qn}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=Oi.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$};cs.Deflater=w$;cs.Inflater=N$;cs.ZipCrypto=P$;var Ae=Kt.exports,A$=as,ft=Ae.Constants,Ds=cs,Zf=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&&Ae.crc32(d)!==t.dataHeader.crc)}function m(d,y,E){if(typeof y=="undefined"&&typeof d=="string"&&(E=d,d=void 0),i)return d&&y&&y(Buffer.alloc(0),Ae.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 E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=Ds.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case Ae.Constants.STORED:if(f.copy($),u($))return d&&y&&y($),$;throw d&&y&&y($,Ae.Errors.BAD_CRC),new Error(Ae.Errors.BAD_CRC);case Ae.Constants.DEFLATED:var _=new Ds.Inflater(f);if(d)_.inflateAsync(function(T){T.copy(T,0),y&&(u(T)?y(T):y(T,Ae.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(Ae.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&y&&y(Buffer.alloc(0),Ae.Errors.UNKNOWN_METHOD),new Error(Ae.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 E;switch(t.method){case Ae.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),d&&y&&y(E),E;default:case Ae.Constants.DEFLATED:var f=new Ds.Deflater(s);if(d)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),y&&y(E)});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 v(d){for(var y=0,E,f,$;y<d.length;)E=d.readUInt16LE(y),y+=2,f=d.readUInt16LE(y),y+=2,$=d.slice(y,y+f),y+=f,ft.ID_ZIP64===E&&h($)}function h(d){var y,E,f,$;d.length>=ft.EF_ZIP64_SCOMP&&(y=l(d,ft.EF_ZIP64_SUNCOMP),t.size===ft.EF_ZIP64_OR_32&&(t.size=y)),d.length>=ft.EF_ZIP64_RHO&&(E=l(d,ft.EF_ZIP64_SCOMP),t.compressedSize===ft.EF_ZIP64_OR_32&&(t.compressedSize=E)),d.length>=ft.EF_ZIP64_DSN&&(f=l(d,ft.EF_ZIP64_RHO),t.offset===ft.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=ft.EF_ZIP64_DSN+4&&($=d.readUInt32LE(ft.EF_ZIP64_DSN),t.diskNumStart===ft.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=Ae.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,v(d)},get comment(){return n.toString()},set comment(d){n=Ae.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=Ae.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=Ae.Constants.DEFLATED,t.crc=Ae.crc32(d),t.changed=!0):t.method=Ae.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=Ae.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 Kc=Zf,b$=as,Be=Kt.exports;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 E=0;E<d;E++){let f=y;const $=new Kc(e);$.header=e.slice(f,f+=Be.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,E=new Kc(e);E.header=e.slice(y,y+=Be.Constants.CENHDR),E.entryName=e.slice(y,y+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(y,y+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(y,y+E.header.commentLength)),h+=E.header.entryHeaderSize,r[d]=E,n[E.entryName]=E}}function l(h){var d=e.length-Be.Constants.ENDHDR,y=Math.max(0,d-65535),E=y,f=e.length,$=-1,_=0;for(d;d>=E;d--)if(e[d]===80){if(e.readUInt32LE(d)===Be.Constants.ENDSIG){$=d,_=d,f=d+Be.Constants.ENDHDR,E=d-Be.Constants.END64HDR;continue}if(e.readUInt32LE(d)===Be.Constants.END64SIG){E=y;continue}if(e.readUInt32LE(d)===Be.Constants.ZIP64SIG){$=d,f=d+Be.readBigUInt64LE(e,d+Be.Constants.ZIP64SIZE)+Be.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Be.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+Be.Constants.ENDHDR)),h&&a()}function v(){r.length>1&&!u&&r.sort((h,d)=>h.entryName.toLowerCase().localeCompare(d.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(h){i=Be.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(E){E.entryName!==h&&y.deleteEntry(E.entryName)})}r.splice(r.indexOf(d),1),delete n[h],s.totalEntries=r.length},getEntryChildren:function(h){if(o||a(),h&&h.isDirectory){const d=[],y=h.entryName,E=y.length;return r.forEach(function(f){f.entryName.substr(0,E)===y&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),v();const h=[],d=[];let y=0,E=0;s.size=0,s.offset=0;for(const _ of r){const T=_.getCompressedData();_.header.offset=E;const k=_.header.dataHeaderToBinary(),O=_.rawEntryName.length,D=Buffer.alloc(O+_.extra.length);_.rawEntryName.copy(D,0),D.copy(_.extra,O);const M=k.length+D.length+T.length;E+=M,h.push(k),h.push(D),h.push(T);const P=_.packHeader();d.push(P),s.size+=P.length,y+=M+P.length}y+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(y);for(const _ of h)_.copy(f,E),E+=_.length;for(const _ of d)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,Be.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(h,d,y,E){try{o||a(),v();const f=[],$=[];let _=0,T=0;s.size=0,s.offset=0;const k=function(O){if(O.length){const D=O.pop(),M=D.entryName+D.extra.toString();y&&y(M),D.getCompressedDataAsync(function(P){E&&E(M),D.header.offset=T;const U=D.header.dataHeaderToBinary(),x=Buffer.alloc(M.length,M),V=U.length+x.length+P.length;T+=V,f.push(U),f.push(x),f.push(P);const Y=D.packHeader();$.push(Y),s.size+=Y.length,_+=V+Y.length,k(O)})}else{_+=s.mainHeaderSize,s.offset=T,T=0;const D=Buffer.alloc(_);f.forEach(function(P){P.copy(D,T),T+=P.length}),$.forEach(function(P){P.copy(D,T),T+=P.length});const M=s.toBinary();i&&i.copy(M,Be.Constants.ENDHDR),M.copy(D,T),h(D)}};k(r)}catch(f){d(f)}}}};const be=Kt.exports,Ft=Oe.default,F$=Zf,j$=L$,yr=(e,t)=>typeof e=="boolean"?e:t,Rs=(e,t)=>typeof e=="string"?e:t,M$={noSort:!1,readEntries:!1,method:be.Constants.NONE,fs:null};var Wc=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=be.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new be(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=be.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(be.Errors.INVALID_FILENAME);const s=new j$(r,n),{canonical:o,sanitize:c}=be;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName!="undefined"&&typeof a.header!="undefined"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:v,sep:h}=Ft.posix;return l(".",v(h+a.split("\\").join(h)+h))}return{readFile:function(a,l){var v=u(a);return v&&v.getData(l)||null},readFileAsync:function(a,l){var v=u(a);v?v.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var v=u(a);if(v){var h=v.getData();if(h&&h.length)return h.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,v){var h=u(a);h?h.getDataAsync(function(d,y){if(y){l(d,y);return}d&&d.length?l(d.toString(v||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var v=u(a);v&&(v.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var v=u(a);v&&v.setData(l)},addLocalFile:function(a,l,v,h){if(i.fs.existsSync(a)){l=l?m(l):"";var d=a.split("\\").join("/").split("/").pop();l+=v||d;const y=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,y)}else throw new Error(be.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,v){if(v instanceof RegExp?v=function(h){return function(d){return h.test(d)}}(v):typeof v!="function"&&(v=function(){return!0}),l=l?m(l):"",a=Ft.normalize(a),i.fs.existsSync(a)){const h=i.findFiles(a),d=this;h.length&&h.forEach(function(y){var E=Ft.relative(a,y).split("\\").join("/");if(v(E)){var f=i.fs.statSync(y);f.isFile()?d.addFile(l+E,i.fs.readFileSync(y),"",f):d.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(be.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,v,h){h instanceof RegExp?h=function(y){return function(E){return y.test(E)}}(h):typeof h!="function"&&(h=function(){return!0}),v=v?m(v):"",a=Ft.normalize(a);var d=this;i.fs.open(a,"r",function(y){if(y&&y.code==="ENOENT")l(void 0,be.Errors.FILE_NOT_FOUND.replace("%s",a));else if(y)l(void 0,y);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],T=Ft.relative(a,_).split("\\").join("/");T=T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(T)?i.fs.stat(_,function(k,O){k&&l(void 0,k),O.isFile()?i.fs.readFile(_,function(D,M){D?l(void 0,D):(d.addFile(v+T,M,"",O),$())}):(d.addFile(v+T+"/",Buffer.alloc(0),"",O),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((v,h)=>{const{filter:d,zipPath:y}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&h(f),E&&v(this)},y,d)})},addFile:function(a,l,v,h){let d=u(a);const y=d!=null;y||(d=new F$,d.entryName=a),d.comment=v||"";const E=typeof h=="object"&&h instanceof i.fs.Stats;E&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;if(!be.isWin){let $=d.isDirectory?16384:32768;E?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0}d.attr=f,d.setData(l),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,v,h,d,y){h=yr(h,!1),d=yr(d,!1),v=yr(v,!0),y=Rs(y,Rs(d,void 0));var E=u(a);if(!E)throw new Error(be.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,y&&!E.isDirectory?y:v?f:Ft.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(O){if(O.isDirectory)return;var D=O.getData();if(!D)throw new Error(be.Errors.CANT_EXTRACT_FILE);var M=o(O.entryName),P=c(l,v?M:Ft.basename(M));const U=d?O.header.fileAttr:void 0;i.writeFileTo(P,D,h,U)}),!0}var T=E.getData();if(!T)throw new Error(be.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(be.Errors.CANT_OVERRIDE);const k=d?a.header.fileAttr:void 0;return i.writeFileTo($,T,h,k),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var v=s.entries[l].getData(a);if(!v)return!1}catch{return!1}return!0},extractAllTo:function(a,l,v,h){if(l=yr(l,!1),h=Rs(v,h),v=yr(v,!1),!s)throw new Error(be.Errors.NO_ZIP);s.entries.forEach(function(d){var y=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(y);return}var E=d.getData(h);if(!E)throw new Error(be.Errors.CANT_EXTRACT_FILE);const f=v?d.header.fileAttr:void 0;i.writeFileTo(y,E,l,f);try{i.fs.utimesSync(y,d.header.time,d.header.time)}catch{throw new Error(be.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,v,h){if(h||(h=function(){}),l=yr(l,!1),typeof v=="function"&&!h&&(h=v),v=yr(v,!1),!s){h(new Error(be.Errors.NO_ZIP));return}a=Ft.resolve(a);const d=_=>c(a,Ft.normalize(o(_.entryName.toString()))),y=(_,T)=>new Error(_+': "'+T+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const T=d(_),k=v?_.header.fileAttr:void 0;try{i.makeDir(T),k&&i.fs.chmodSync(T,k),i.fs.utimesSync(T,_.header.time,_.header.time)}catch{h(y("Unable to create folder",T))}}const $=()=>{f.size===0&&h()};for(const _ of f.values()){const T=Ft.normalize(o(_.entryName.toString())),k=c(a,T);_.getDataAsync(function(O,D){if(D){h(new Error(D));return}if(!O)h(new Error(be.Errors.CANT_EXTRACT_FILE));else{const M=v?_.header.fileAttr:void 0;i.writeFileToAsync(k,O,l,M,function(P){if(!P){h(y("Unable to write file",k));return}i.fs.utimes(k,_.header.time,_.header.time,function(U){if(U){h(y("Unable to set times",k));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var v=s.compressToBuffer();if(v){var h=i.writeFileTo(a,v,!0);typeof l=="function"&&l(h?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:v,perm:h}=Object.assign({overwrite:!0},l);return new Promise((d,y)=>{!a&&n.filename&&(a=n.filename),a||y("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?d($):y("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,v,h,f)},y)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,v,h){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,v,h),null):s.compressToBuffer()}}},Gn,Zr,Jr,Bn,Sr,wr,er,tr,xi,Yr,Hn,Gs,Kn,St,Qr,Ti,Wn,Gt;const _t=class{constructor(t,r){Me(this,Hn);Me(this,Qr);Me(this,Gn,ae.screen.getPrimaryDisplay().size);Me(this,Zr,se(this,Gn).width);Me(this,Jr,se(this,Gn).height);Me(this,Bn,{getAppPath:ae.app.getAppPath(),isPackaged:ae.app.isPackaged,downloads:ae.app.getPath("downloads"),userData:ae.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});Me(this,Sr,0);Me(this,wr,0);Me(this,er,0);Me(this,tr,0);Me(this,xi,process.platform==="win32");Me(this,Yr,void 0);Me(this,Kn,!1);Me(this,St,!1);this.bw=t,se(this,Bn).getVersion=r,ae.ipcMain.handle("getInfo",()=>se(this,Bn)),ae.ipcMain.handle("existsSync",(i,s)=>yt.existsSync(s)),ae.ipcMain.handle("copySync",(i,s,o)=>yt.copySync(s,o)),ae.ipcMain.handle("removeSync",(i,s)=>yt.removeSync(s)),ae.ipcMain.handle("ensureFileSync",(i,s)=>yt.ensureFileSync(s)),ae.ipcMain.handle("readFileSync",(i,s)=>yt.readFileSync(s,{encoding:"utf8"})),ae.ipcMain.handle("readFile",(i,s,o)=>yt.readFile(s,o)),ae.ipcMain.handle("writeFileSync",(i,s,o,c)=>yt.writeFileSync(s,o,c)),ae.ipcMain.handle("appendFile",(i,s,o,c)=>yt.appendFile(s,o,c)),ae.ipcMain.handle("win_close",()=>t.close()),ae.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),ae.ipcMain.handle("showMessageBox",(i,s)=>ae.dialog.showMessageBox(s)),ae.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>yt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),ae.ipcMain.handle("navigate_to",(i,s)=>ae.shell.openExternal(s)),ae.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),ae.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;ae.ipcMain.handle("Store",(i,s)=>{n=new Vc(s)}),ae.ipcMain.handle("flush",(i,s)=>{n.store=s}),ae.ipcMain.handle("Store_isEmpty",()=>n.size===0),ae.ipcMain.handle("Store_get",()=>n.store),ae.ipcMain.handle("zip",(i,s,o)=>{const c=new Wc;c.addLocalFolder(s),c.writeZip(o)}),ae.ipcMain.handle("unzip",(i,s,o)=>{yt.removeSync(o),yt.ensureDirSync(o),new Wc(s).extractAllTo(o,!0)}),ae.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),se(this,xi)?(ae.ipcMain.handle("setSimpleFullScreen",(i,s)=>{qe(this,St,!0),t.setSimpleFullScreen(s),s||(t.setPosition(se(this,Sr),se(this,wr)),t.setContentSize(se(this,er),se(this,tr)+se(_t,Gt))),qe(this,St,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(se(this,Zr),se(this,Jr)-se(_t,Gt))}),t.on("leave-full-screen",()=>{Mr(this,Qr,Ti).call(this,!1,se(this,Sr),se(this,wr),se(this,er),se(this,tr)+se(_t,Gt))})):ae.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(se(this,er),se(this,tr)+se(_t,Gt))}),ae.ipcMain.handle("window",(i,s,o,c,u,m)=>Mr(this,Qr,Ti).call(this,s,o,c,u,m)),t.on("move",()=>Mr(this,Hn,Gs).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Vc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ae.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];qe(_t,Gt,o-c),qe(_t,Wn,new _t(s,r)),i=()=>se(_t,Wn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Hr=_t;Gn=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Bn=new WeakMap,Sr=new WeakMap,wr=new WeakMap,er=new WeakMap,tr=new WeakMap,xi=new WeakMap,Yr=new WeakMap,Hn=new WeakSet,Gs=function(){if(se(this,Yr)||se(this,St))return;qe(this,St,!0);const{x:t,y:r}=this.bw.getBounds();qe(this,Yr,setTimeout(()=>{if(qe(this,Yr,void 0),se(this,Kn)){qe(this,Kn,!1);return}qe(this,St,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Mr(this,Hn,Gs).call(this);return}Mr(this,Qr,Ti).call(this,!1,n.x,n.y,se(this,er),se(this,tr))},1e3/60*10))},Kn=new WeakMap,St=new WeakMap,Qr=new WeakSet,Ti=function(t,r,n,i,s){se(this,St)||(qe(this,St,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(se(this,Zr)-r)*.5,n=(se(this,Jr)-n)*.5):((r<0||r>se(this,Zr))&&(r=0),(n<0||n>se(this,Jr))&&(n=0)),(se(this,Sr)!==r||se(this,wr)!==n)&&(qe(this,Sr,r),qe(this,wr,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),qe(this,er,i),qe(this,tr,s),this.bw.setContentSize(i,s+se(_t,Gt)),qe(this,St,!1)))},Wn=new WeakMap,Gt=new WeakMap,Me(Hr,Wn,void 0),Me(Hr,Gt,0);module.exports=Hr;exports.appMain=Hr;
|
|
16
16
|
//# sourceMappingURL=appMain.js.map
|