@famibee/skynovel 1.32.2 → 1.34.1
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 +1041 -1036
- package/dist/app.js.map +1 -1
- package/dist/appMain.js +12 -12
- package/dist/appMain.js.map +1 -1
- package/dist/sn/RubySpliter.d.ts.map +1 -1
- package/dist/sn/TxtLayer.d.ts.map +1 -1
- package/dist/web.js +476 -471
- package/dist/web.js.map +1 -1
- package/package.json +4 -4
package/dist/appMain.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
GFS4: `),console.error(e)});if(!
|
|
1
|
+
"use strict";var is=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var oe=(e,t,r)=>(is(e,t,"read from private field"),r?r.call(e):t.get(e)),je=(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)},Ve=(e,t,r,n)=>(is(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ar=(e,t,r)=>(is(e,t,"access private method"),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ce=require("electron"),Jf=require("fs"),Yf=require("constants"),Qf=require("stream"),el=require("util"),tl=require("assert"),rl=require("path"),nl=require("crypto"),il=require("events"),sl=require("os"),ol=require("zlib"),St=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},al=St(ce),tn=St(Jf),cl=St(Yf),ul=St(Qf),Fi=St(el),ks=St(tl),Ie=St(rl),kc=St(nl),fl=St(il),ll=St(sl),Uc=St(ol);var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wr={},Je={};Je.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})};Je.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 Gt=cl.default,dl=process.cwd,li=null,hl=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return li||(li=dl.call(process)),li};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var ma=process.chdir;process.chdir=function(e){li=null,ma.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ma)}var ml=pl;function pl(e){Gt.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(){}),hl==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function l(v,h,d){var E=Date.now(),p=0;a(v,h,function f($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(h,function(_,D){_&&_.code==="ENOENT"?a(v,h,f):d($)})},p),p<100&&(p+=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,E,p,f){var $;if(f&&typeof f=="function"){var _=0;$=function(D,x,T){if(D&&D.code==="EAGAIN"&&_<10)return _++,a.call(e,v,h,d,E,p,$);f.apply(this,arguments)}}return a.call(e,v,h,d,E,p,$)}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,E){for(var p=0;;)try{return a.call(e,l,v,h,d,E)}catch(f){if(f.code==="EAGAIN"&&p<10){p++;continue}throw f}}}(e.readSync);function t(a){a.lchmod=function(l,v,h){a.open(l,Gt.O_WRONLY|Gt.O_SYMLINK,v,function(d,E){if(d){h&&h(d);return}a.fchmod(E,v,function(p){a.close(E,function(f){h&&h(p||f)})})})},a.lchmodSync=function(l,v){var h=a.openSync(l,Gt.O_WRONLY|Gt.O_SYMLINK,v),d=!0,E;try{E=a.fchmodSync(h,v),d=!1}finally{if(d)try{a.closeSync(h)}catch{}else a.closeSync(h)}return E}}function r(a){Gt.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(l,v,h,d){a.open(l,Gt.O_SYMLINK,function(E,p){if(E){d&&d(E);return}a.futimes(p,v,h,function(f){a.close(p,function($){d&&d(f||$)})})})},a.lutimesSync=function(l,v,h){var d=a.openSync(l,Gt.O_SYMLINK),E,p=!0;try{E=a.futimesSync(d,v,h),p=!1}finally{if(p)try{a.closeSync(d)}catch{}else a.closeSync(d)}return E}):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(E){m(E)&&(E=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(E,p){p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.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 pa=ul.default.Stream,yl=El;function El(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);pa.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);pa.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 vl=$l,gl=Object.getPrototypeOf||function(e){return e.__proto__};function $l(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:gl(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=tn.default,_l=ml,Sl=yl,wl=vl,Jn=Fi.default,ze,Si;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ze=Symbol.for("graceful-fs.queue"),Si=Symbol.for("graceful-fs.previous")):(ze="___graceful-fs.queue",Si="___graceful-fs.previous");function Nl(){}function zc(e,t){Object.defineProperty(e,ze,{get:function(){return t}})}var gr=Nl;Jn.debuglog?gr=Jn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(gr=function(){var e=Jn.format.apply(Jn,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
2
|
+
GFS4: `),console.error(e)});if(!we[ze]){var Il=Jt[ze]||[];zc(we,Il),we.close=function(e){function t(r,n){return e.call(we,r,function(i){i||ya(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Si,{value:e}),t}(we.close),we.closeSync=function(e){function t(r){e.apply(we,arguments),ya()}return Object.defineProperty(t,Si,{value:e}),t}(we.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gr(we[ze]),ks.default.equal(we[ze].length,0)})}Jt[ze]||zc(Jt,we[ze]);var Ye=Us(wl(we));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!we.__patched&&(Ye=Us(we),we.__patched=!0);function Us(e){_l(e),e.gracefulify=Us,e.createReadStream=x,e.createWriteStream=T;var t=e.readFile;e.readFile=r;function r(P,V,M){return typeof V=="function"&&(M=V,V=null),A(P,V,M);function A(B,q,H,K){return t(B,q,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?br([A,[B,q,H],G,K||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(P,V,M,A){return typeof M=="function"&&(A=M,M=null),B(P,V,M,A);function B(q,H,K,G,b){return n(q,H,K,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?br([B,[q,H,K,G],k,b||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(P,V,M,A){return typeof M=="function"&&(A=M,M=null),B(P,V,M,A);function B(q,H,K,G,b){return s(q,H,K,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?br([B,[q,H,K,G],k,b||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(P,V,M,A){return typeof M=="function"&&(A=M,M=0),B(P,V,M,A);function B(q,H,K,G,b){return c(q,H,K,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?br([B,[q,H,K,G],k,b||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var m=e.readdir;e.readdir=l;var a=/^v[0-5]\./;function l(P,V,M){typeof V=="function"&&(M=V,V=null);var A=a.test(process.version)?function(H,K,G,b){return m(H,B(H,K,G,b))}:function(H,K,G,b){return m(H,K,B(H,K,G,b))};return A(P,V,M);function B(q,H,K,G){return function(b,k){b&&(b.code==="EMFILE"||b.code==="ENFILE")?br([A,[q,H,K],b,G||Date.now(),Date.now()]):(k&&k.sort&&k.sort(),typeof K=="function"&&K.call(this,b,k))}}}if(process.version.substr(0,4)==="v0.8"){var v=Sl(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=D),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 E=f;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(P){E=P},enumerable:!0,configurable:!0});var p=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(P){p=P},enumerable:!0,configurable:!0});function f(P,V){return this instanceof f?(h.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function $(){var P=this;z(P.path,P.flags,P.mode,function(V,M){V?(P.autoClose&&P.destroy(),P.emit("error",V)):(P.fd=M,P.emit("open",M),P.read())})}function _(P,V){return this instanceof _?(d.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function D(){var P=this;z(P.path,P.flags,P.mode,function(V,M){V?(P.destroy(),P.emit("error",V)):(P.fd=M,P.emit("open",M))})}function x(P,V){return new e.ReadStream(P,V)}function T(P,V){return new e.WriteStream(P,V)}var R=e.open;e.open=z;function z(P,V,M,A){return typeof M=="function"&&(A=M,M=null),B(P,V,M,A);function B(q,H,K,G,b){return R(q,H,K,function(k,O){k&&(k.code==="EMFILE"||k.code==="ENFILE")?br([B,[q,H,K,G],k,b||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function br(e){gr("ENQUEUE",e[0].name,e[1]),we[ze].push(e),zs()}var Yn;function ya(){for(var e=Date.now(),t=0;t<we[ze].length;++t)we[ze][t].length>2&&(we[ze][t][3]=e,we[ze][t][4]=e);zs()}function zs(){if(clearTimeout(Yn),Yn=void 0,we[ze].length!==0){var e=we[ze].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)gr("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){gr("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?(gr("RETRY",t.name,r),t.apply(null,r.concat([i]))):we[ze].push(e)}Yn===void 0&&(Yn=setTimeout(zs,0))}}(function(e){const t=Je.fromCallback,r=Ye,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")})(wr);var xs={},xc={};const Ol=Ie.default;xc.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ol.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const Vc=wr,{checkPath:qc}=xc,Gc=e=>{const t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};xs.makeDir=async(e,t)=>(qc(e),Vc.mkdir(e,{mode:Gc(t),recursive:!0}));xs.makeDirSync=(e,t)=>(qc(e),Vc.mkdirSync(e,{mode:Gc(t),recursive:!0}));const Tl=Je.fromPromise,{makeDir:Dl,makeDirSync:ss}=xs,os=Tl(Dl);var Ft={mkdirs:os,mkdirsSync:ss,mkdirp:os,mkdirpSync:ss,ensureDir:os,ensureDirSync:ss};const Rl=Je.fromPromise,Bc=wr;function Cl(e){return Bc.access(e).then(()=>!0).catch(()=>!1)}var Nr={pathExists:Rl(Cl),pathExistsSync:Bc.existsSync};const Vr=Ye;function Pl(e,t,r,n){Vr.open(e,"r+",(i,s)=>{if(i)return n(i);Vr.futimes(s,t,r,o=>{Vr.close(s,c=>{n&&n(o||c)})})})}function Al(e,t,r){const n=Vr.openSync(e,"r+");return Vr.futimesSync(n,t,r),Vr.closeSync(n)}var Hc={utimesMillis:Pl,utimesMillisSync:Al};const Xr=wr,Fe=Ie.default,bl=Fi.default;function Ll(e,t,r){const n=r.dereference?i=>Xr.stat(i,{bigint:!0}):i=>Xr.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 Fl(e,t,r){let n;const i=r.dereference?o=>Xr.statSync(o,{bigint:!0}):o=>Xr.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 jl(e,t,r,n,i){bl.callbackify(Ll)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:c,destStat:u}=o;if(u){if(qn(c,u)){const m=Fe.basename(e),a=Fe.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()&&Vs(e,t)?i(new Error(ji(e,t,r))):i(null,{srcStat:c,destStat:u})})}function Ml(e,t,r,n){const{srcStat:i,destStat:s}=Fl(e,t,n);if(s){if(qn(i,s)){const o=Fe.basename(e),c=Fe.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()&&Vs(e,t))throw new Error(ji(e,t,r));return{srcStat:i,destStat:s}}function Kc(e,t,r,n,i){const s=Fe.resolve(Fe.dirname(e)),o=Fe.resolve(Fe.dirname(r));if(o===s||o===Fe.parse(o).root)return i();Xr.stat(o,{bigint:!0},(c,u)=>c?c.code==="ENOENT"?i():i(c):qn(t,u)?i(new Error(ji(e,r,n))):Kc(e,t,o,n,i))}function Wc(e,t,r,n){const i=Fe.resolve(Fe.dirname(e)),s=Fe.resolve(Fe.dirname(r));if(s===i||s===Fe.parse(s).root)return;let o;try{o=Xr.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(qn(t,o))throw new Error(ji(e,r,n));return Wc(e,t,s,n)}function qn(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Vs(e,t){const r=Fe.resolve(e).split(Fe.sep).filter(i=>i),n=Fe.resolve(t).split(Fe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function ji(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var rn={checkPaths:jl,checkPathsSync:Ml,checkParentPaths:Kc,checkParentPathsSync:Wc,isSrcSubdir:Vs,areIdentical:qn};const it=Ye,Pn=Ie.default,kl=Ft.mkdirs,Ul=Nr.pathExists,zl=Hc.utimesMillis,An=rn;function xl(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"),An.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:c}=s;An.checkParentPaths(e,o,t,"copy",u=>u?n(u):r.filter?Xc(Ea,c,e,t,r,n):Ea(c,e,t,r,n))})}function Ea(e,t,r,n,i){const s=Pn.dirname(r);Ul(s,(o,c)=>{if(o)return i(o);if(c)return wi(e,t,r,n,i);kl(s,u=>u?i(u):wi(e,t,r,n,i))})}function Xc(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 Vl(e,t,r,n,i){return n.filter?Xc(wi,e,t,r,n,i):wi(e,t,r,n,i)}function wi(e,t,r,n,i){(n.dereference?it.stat:it.lstat)(t,(o,c)=>o?i(o):c.isDirectory()?Xl(c,e,t,r,n,i):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?ql(c,e,t,r,n,i):c.isSymbolicLink()?Yl(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 ql(e,t,r,n,i,s){return t?Gl(e,r,n,i,s):Zc(e,r,n,i,s)}function Gl(e,t,r,n,i){if(n.overwrite)it.unlink(r,s=>s?i(s):Zc(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Zc(e,t,r,n,i){it.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?Bl(e.mode,t,r,i):Mi(r,e.mode,i))}function Bl(e,t,r,n){return Hl(e)?Kl(r,e,i=>i?n(i):va(e,t,r,n)):va(e,t,r,n)}function Hl(e){return(e&128)===0}function Kl(e,t,r){return Mi(e,t|128,r)}function va(e,t,r,n){Wl(t,r,i=>i?n(i):Mi(r,e,n))}function Mi(e,t,r){return it.chmod(e,t,r)}function Wl(e,t,r){it.stat(e,(n,i)=>n?r(n):zl(t,i.atime,i.mtime,r))}function Xl(e,t,r,n,i,s){return t?Jc(r,n,i,s):Zl(e.mode,r,n,i,s)}function Zl(e,t,r,n,i){it.mkdir(r,s=>{if(s)return i(s);Jc(t,r,n,o=>o?i(o):Mi(r,e,i))})}function Jc(e,t,r,n){it.readdir(e,(i,s)=>i?n(i):Yc(s,e,t,r,n))}function Yc(e,t,r,n,i){const s=e.pop();return s?Jl(e,s,t,r,n,i):i()}function Jl(e,t,r,n,i,s){const o=Pn.join(r,t),c=Pn.join(n,t);An.checkPaths(o,c,"copy",i,(u,m)=>{if(u)return s(u);const{destStat:a}=m;Vl(a,o,c,i,l=>l?s(l):Yc(e,r,n,i,s))})}function Yl(e,t,r,n,i){it.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Pn.resolve(process.cwd(),o)),e)it.readlink(r,(c,u)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?it.symlink(o,r,i):i(c):(n.dereference&&(u=Pn.resolve(process.cwd(),u)),An.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&An.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Ql(o,r,i)));else return it.symlink(o,r,i)})}function Ql(e,t,r){it.unlink(t,n=>n?r(n):it.symlink(e,t,r))}var ed=xl;const Be=Ye,bn=Ie.default,td=Ft.mkdirsSync,rd=Hc.utimesMillisSync,Ln=rn;function nd(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 Nd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var Fs={stringify:wd,stripBom:Nd};let Kr;try{Kr=nt}catch{Kr=Jr.default}const Ri=rt,{stringify:su,stripBom:ou}=Fs;async function Id(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Kr,n="throws"in t?t.throws:!0;let i=await Ri.fromCallback(r.readFile)(e,t);i=ou(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 Od=Ri.fromPromise(Id);function Td(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Kr,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=ou(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Dd(e,t,r={}){const n=r.fs||Kr,i=su(t,r);await Ri.fromCallback(n.writeFile)(e,i,r)}const Rd=Ri.fromPromise(Dd);function Cd(e,t,r={}){const n=r.fs||Kr,i=su(t,r);return n.writeFileSync(e,i,r)}const Pd={readFile:Od,readFileSync:Td,writeFile:Rd,writeFileSync:Cd};var Ad=Pd;const Gn=Ad;var bd={readJson:Gn.readFile,readJsonSync:Gn.readFileSync,writeJson:Gn.writeFile,writeJsonSync:Gn.writeFileSync};const Ld=rt.fromCallback,yn=nt,au=De.default,cu=Mt,Fd=Or.pathExists;function jd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=au.dirname(e);Fd(i,(s,o)=>{if(s)return n(s);if(o)return yn.writeFile(e,t,r,n);cu.mkdirs(i,c=>{if(c)return n(c);yn.writeFile(e,t,r,n)})})}function Md(e,...t){const r=au.dirname(e);if(yn.existsSync(r))return yn.writeFileSync(e,...t);cu.mkdirsSync(r),yn.writeFileSync(e,...t)}var js={outputFile:Ld(jd),outputFileSync:Md};const{stringify:kd}=Fs,{outputFile:Ud}=js;async function zd(e,t,r={}){const n=kd(t,r);await Ud(e,n,r)}var xd=zd;const{stringify:Vd}=Fs,{outputFileSync:qd}=js;function Gd(e,t,r){const n=Vd(t,r);qd(e,n,r)}var Bd=Gd;const Hd=rt.fromPromise,tt=bd;tt.outputJson=Hd(xd);tt.outputJsonSync=Bd;tt.outputJSON=tt.outputJson;tt.outputJSONSync=tt.outputJsonSync;tt.writeJSON=tt.writeJson;tt.writeJSONSync=tt.writeJsonSync;tt.readJSON=tt.readJson;tt.readJSONSync=tt.readJsonSync;var Kd=tt;const Wd=nt,hs=De.default,Xd=bs.copy,uu=Di.remove,Zd=Mt.mkdirp,Jd=Or.pathExists,ya=Yr;function Yd(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;ya.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;ya.checkParentPaths(e,c,t,"move",E=>{if(E)return n(E);if(Qd(t))return Ea(e,t,i,u,n);Zd(hs.dirname(t),a=>a?n(a):Ea(e,t,i,u,n))})})}function Qd(e){const t=hs.dirname(e);return hs.parse(t).root===t}function Ea(e,t,r,n,i){if(n)return Ji(e,t,r,i);if(r)return uu(t,s=>s?i(s):Ji(e,t,r,i));Jd(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Ji(e,t,r,i))}function Ji(e,t,r,n){Wd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):eh(e,t,r,n):n())}function eh(e,t,r,n){Xd(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):uu(e,n))}var th=Yd;const fu=nt,ms=De.default,rh=bs.copySync,lu=Di.removeSync,nh=Mt.mkdirpSync,va=Yr;function ih(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=va.checkPathsSync(e,t,"move",r);return va.checkParentPathsSync(e,i,t,"move"),sh(t)||nh(ms.dirname(t)),oh(e,t,n,s)}function sh(e){const t=ms.dirname(e);return ms.parse(t).root===t}function oh(e,t,r,n){if(n)return Yi(e,t,r);if(r)return lu(t),Yi(e,t,r);if(fu.existsSync(t))throw new Error("dest already exists.");return Yi(e,t,r)}function Yi(e,t,r){try{fu.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return ah(e,t,r)}}function ah(e,t,r){return rh(e,t,{overwrite:r,errorOnExist:!0}),lu(e)}var ch=ih;const uh=rt.fromCallback;var fh={move:uh(th),moveSync:ch},Et={...Ir,...bs,...Wl,...Sd,...Kd,...Mt,...fh,...js,...Or,...Di},ps={exports:{}},lh=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const lr=lh,dh=new Set(["__proto__","prototype","constructor"]),hh=e=>!e.some(t=>dh.has(t));function Bn(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 hh(r)?r:[]}var mh={get(e,t,r){if(!lr(e)||typeof t!="string")return r===void 0?e:r;const n=Bn(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(!lr(e)||typeof t!="string")return e;const n=e,i=Bn(t);for(let s=0;s<i.length;s++){const o=i[s];lr(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!lr(e)||typeof t!="string")return!1;const r=Bn(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],!lr(e))return!1}},has(e,t){if(!lr(e)||typeof t!="string")return!1;const r=Bn(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(lr(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},Ms={exports:{}},ks={exports:{}},Us={exports:{}},zs={exports:{}};const du=Jr.default;zs.exports=e=>new Promise(t=>{du.access(e,r=>{t(!r)})});zs.exports.sync=e=>{try{return du.accessSync(e),!0}catch{return!1}};var xs={exports:{}},Vs={exports:{}};const hu=(e,...t)=>new Promise(r=>{r(e(...t))});Vs.exports=hu;Vs.exports.default=hu;const ph=Vs.exports,mu=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,...E)=>{r++;const a=ph(c,...E);u(a),a.then(n,n)},s=(c,u,...E)=>{r<e?i(c,u,...E):t.push(i.bind(null,c,u,...E))},o=(c,...u)=>new Promise(E=>s(c,E,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};xs.exports=mu;xs.exports.default=mu;const ga=xs.exports;class pu extends Error{constructor(t){super(),this.value=t}}const yh=(e,t)=>Promise.resolve(e).then(t),Eh=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new pu(t[0])));var vh=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=ga(r.concurrency),i=[...e].map(o=>[o,n(yh,o,t)]),s=ga(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(Eh,o))).then(()=>{}).catch(o=>o instanceof pu?o.value:Promise.reject(o))};const yu=De.default,Eu=zs.exports,gh=vh;Us.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),gh(e,r=>Eu(yu.resolve(t.cwd,r)),t));Us.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(Eu.sync(yu.resolve(t.cwd,r)))return r};const nr=De.default,vu=Us.exports;ks.exports=(e,t={})=>{const r=nr.resolve(t.cwd||""),{root:n}=nr.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){vu(i,{cwd:c}).then(u=>{u?s(nr.join(c,u)):c===n?s(null):o(nr.dirname(c))})})(r)})};ks.exports.sync=(e,t={})=>{let r=nr.resolve(t.cwd||"");const{root:n}=nr.parse(r),i=[].concat(e);for(;;){const s=vu.sync(i,{cwd:r});if(s)return nr.join(r,s);if(r===n)return null;r=nr.dirname(r)}};const gu=ks.exports;Ms.exports=async({cwd:e}={})=>gu("package.json",{cwd:e});Ms.exports.sync=({cwd:e}={})=>gu.sync("package.json",{cwd:e});var qs={exports:{}};const Te=De.default,$u=bf.default,Jt=$u.homedir(),Gs=$u.tmpdir(),{env:Mr}=process,$h=e=>{const t=Te.join(Jt,"Library");return{data:Te.join(t,"Application Support",e),config:Te.join(t,"Preferences",e),cache:Te.join(t,"Caches",e),log:Te.join(t,"Logs",e),temp:Te.join(Gs,e)}},_h=e=>{const t=Mr.APPDATA||Te.join(Jt,"AppData","Roaming"),r=Mr.LOCALAPPDATA||Te.join(Jt,"AppData","Local");return{data:Te.join(r,e,"Data"),config:Te.join(t,e,"Config"),cache:Te.join(r,e,"Cache"),log:Te.join(r,e,"Log"),temp:Te.join(Gs,e)}},Sh=e=>{const t=Te.basename(Jt);return{data:Te.join(Mr.XDG_DATA_HOME||Te.join(Jt,".local","share"),e),config:Te.join(Mr.XDG_CONFIG_HOME||Te.join(Jt,".config"),e),cache:Te.join(Mr.XDG_CACHE_HOME||Te.join(Jt,".cache"),e),log:Te.join(Mr.XDG_STATE_HOME||Te.join(Jt,".local","state"),e),temp:Te.join(Gs,t,e)}},_u=(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"?$h(e):process.platform==="win32"?_h(e):Sh(e)};qs.exports=_u;qs.exports.default=_u;var jt={},pe={};Object.defineProperty(pe,"__esModule",{value:!0});pe.NOOP=pe.LIMIT_FILES_DESCRIPTORS=pe.LIMIT_BASENAME_LENGTH=pe.IS_USER_ROOT=pe.IS_POSIX=pe.DEFAULT_TIMEOUT_SYNC=pe.DEFAULT_TIMEOUT_ASYNC=pe.DEFAULT_WRITE_OPTIONS=pe.DEFAULT_READ_OPTIONS=pe.DEFAULT_FOLDER_MODE=pe.DEFAULT_FILE_MODE=pe.DEFAULT_ENCODING=void 0;const wh="utf8";pe.DEFAULT_ENCODING=wh;const Nh=438;pe.DEFAULT_FILE_MODE=Nh;const Ih=511;pe.DEFAULT_FOLDER_MODE=Ih;const Oh={};pe.DEFAULT_READ_OPTIONS=Oh;const Th={};pe.DEFAULT_WRITE_OPTIONS=Th;const Dh=5e3;pe.DEFAULT_TIMEOUT_ASYNC=Dh;const Rh=100;pe.DEFAULT_TIMEOUT_SYNC=Rh;const Ch=!!process.getuid;pe.IS_POSIX=Ch;const Ph=process.getuid?!process.getuid():!1;pe.IS_USER_ROOT=Ph;const Ah=128;pe.LIMIT_BASENAME_LENGTH=Ah;const bh=1e4;pe.LIMIT_FILES_DESCRIPTORS=bh;const Lh=()=>{};pe.NOOP=Lh;var Ci={},Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.attemptifySync=Wr.attemptifyAsync=void 0;const Su=pe,Fh=(e,t=Su.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};Wr.attemptifyAsync=Fh;const jh=(e,t=Su.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};Wr.attemptifySync=jh;var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});const Mh=pe,wu={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Mh.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(!wu.isChangeErrorOk(e))throw e}};Bs.default=wu;var Xr={},Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const kh=pe,_e={interval:25,intervalId:void 0,limit:kh.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{_e.intervalId||(_e.intervalId=setInterval(_e.tick,_e.interval))},reset:()=>{!_e.intervalId||(clearInterval(_e.intervalId),delete _e.intervalId)},add:e=>{_e.queueWaiting.add(e),_e.queueActive.size<_e.limit/2?_e.tick():_e.init()},remove:e=>{_e.queueWaiting.delete(e),_e.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>_e.remove(r),r=()=>e(t);_e.add(r)}),tick:()=>{if(!(_e.queueActive.size>=_e.limit)){if(!_e.queueWaiting.size)return _e.reset();for(const e of _e.queueWaiting){if(_e.queueActive.size>=_e.limit)break;_e.queueWaiting.delete(e),_e.queueActive.add(e),e()}}}};Hs.default=_e;Object.defineProperty(Xr,"__esModule",{value:!0});Xr.retryifySync=Xr.retryifyAsync=void 0;const Uh=Hs,zh=(e,t)=>function(r){return function n(){return Uh.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}))}};Xr.retryifyAsync=zh;const xh=(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}}};Xr.retryifySync=xh;Object.defineProperty(Ci,"__esModule",{value:!0});const ye=Jr.default,Ye=Ii.default,Qe=Wr,Me=Bs,ot=Xr,Vh={chmodAttempt:Qe.attemptifyAsync(Ye.promisify(ye.chmod),Me.default.onChangeError),chownAttempt:Qe.attemptifyAsync(Ye.promisify(ye.chown),Me.default.onChangeError),closeAttempt:Qe.attemptifyAsync(Ye.promisify(ye.close)),fsyncAttempt:Qe.attemptifyAsync(Ye.promisify(ye.fsync)),mkdirAttempt:Qe.attemptifyAsync(Ye.promisify(ye.mkdir)),realpathAttempt:Qe.attemptifyAsync(Ye.promisify(ye.realpath)),statAttempt:Qe.attemptifyAsync(Ye.promisify(ye.stat)),unlinkAttempt:Qe.attemptifyAsync(Ye.promisify(ye.unlink)),closeRetry:ot.retryifyAsync(Ye.promisify(ye.close),Me.default.isRetriableError),fsyncRetry:ot.retryifyAsync(Ye.promisify(ye.fsync),Me.default.isRetriableError),openRetry:ot.retryifyAsync(Ye.promisify(ye.open),Me.default.isRetriableError),readFileRetry:ot.retryifyAsync(Ye.promisify(ye.readFile),Me.default.isRetriableError),renameRetry:ot.retryifyAsync(Ye.promisify(ye.rename),Me.default.isRetriableError),statRetry:ot.retryifyAsync(Ye.promisify(ye.stat),Me.default.isRetriableError),writeRetry:ot.retryifyAsync(Ye.promisify(ye.write),Me.default.isRetriableError),chmodSyncAttempt:Qe.attemptifySync(ye.chmodSync,Me.default.onChangeError),chownSyncAttempt:Qe.attemptifySync(ye.chownSync,Me.default.onChangeError),closeSyncAttempt:Qe.attemptifySync(ye.closeSync),mkdirSyncAttempt:Qe.attemptifySync(ye.mkdirSync),realpathSyncAttempt:Qe.attemptifySync(ye.realpathSync),statSyncAttempt:Qe.attemptifySync(ye.statSync),unlinkSyncAttempt:Qe.attemptifySync(ye.unlinkSync),closeSyncRetry:ot.retryifySync(ye.closeSync,Me.default.isRetriableError),fsyncSyncRetry:ot.retryifySync(ye.fsyncSync,Me.default.isRetriableError),openSyncRetry:ot.retryifySync(ye.openSync,Me.default.isRetriableError),readFileSyncRetry:ot.retryifySync(ye.readFileSync,Me.default.isRetriableError),renameSyncRetry:ot.retryifySync(ye.renameSync,Me.default.isRetriableError),statSyncRetry:ot.retryifySync(ye.statSync,Me.default.isRetriableError),writeSyncRetry:ot.retryifySync(ye.writeSync,Me.default.isRetriableError)};Ci.default=Vh;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const qh={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e>"u"};Ks.default=qh;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Hn={},ys={next:e=>{const t=Hn[e];if(!t)return;t.shift();const r=t[0];r?r(()=>ys.next(e)):delete Hn[e]},schedule:e=>new Promise(t=>{let r=Hn[e];r||(r=Hn[e]=[]),r.push(t),!(r.length>1)&&t(()=>ys.next(e))})};Ws.default=ys;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});const Gh=De.default,$a=pe,_a=Ci,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],_a.default.unlinkAttempt(e))},purgeSync:e=>{!dt.store[e]||(delete dt.store[e],_a.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in dt.store)dt.purgeSync(e)},truncate:e=>{const t=Gh.basename(e);if(t.length<=$a.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-$a.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",dt.purgeSyncAll);Xs.default=dt;Object.defineProperty(jt,"__esModule",{value:!0});jt.writeFileSync=jt.writeFile=jt.readFileSync=jt.readFile=void 0;const Nu=De.default,Ge=pe,me=Ci,ht=Ks,Bh=Ws,ir=Xs;function Iu(e,t=Ge.DEFAULT_READ_OPTIONS){var r;if(ht.default.isString(t))return Iu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Ge.DEFAULT_TIMEOUT_ASYNC);return me.default.readFileRetry(n)(e,t)}jt.readFile=Iu;function Ou(e,t=Ge.DEFAULT_READ_OPTIONS){var r;if(ht.default.isString(t))return Ou(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Ge.DEFAULT_TIMEOUT_SYNC);return me.default.readFileSyncRetry(n)(e,t)}jt.readFileSync=Ou;const Tu=(e,t,r,n)=>{if(ht.default.isFunction(r))return Tu(e,t,Ge.DEFAULT_WRITE_OPTIONS,r);const i=Du(e,t,r);return n&&i.then(n,n),i};jt.writeFile=Tu;const Du=async(e,t,r=Ge.DEFAULT_WRITE_OPTIONS)=>{var n;if(ht.default.isString(r))return Du(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Ge.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,E=null;try{r.schedule&&(s=await r.schedule(e)),o=await Bh.default.schedule(e),e=await me.default.realpathAttempt(e)||e,[u,c]=ir.default.get(e,r.tmpCreate||ir.default.create,r.tmpPurge!==!1);const a=Ge.IS_POSIX&&ht.default.isUndefined(r.chown),l=ht.default.isUndefined(r.mode);if(a||l){const d=await me.default.statAttempt(e);d&&(r={...r},a&&(r.chown={uid:d.uid,gid:d.gid}),l&&(r.mode=d.mode))}const p=Nu.dirname(e);await me.default.mkdirAttempt(p,{mode:Ge.DEFAULT_FOLDER_MODE,recursive:!0}),E=await me.default.openRetry(i)(u,"w",r.mode||Ge.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),ht.default.isString(t)?await me.default.writeRetry(i)(E,t,0,r.encoding||Ge.DEFAULT_ENCODING):ht.default.isUndefined(t)||await me.default.writeRetry(i)(E,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await me.default.fsyncRetry(i)(E):me.default.fsyncAttempt(E)),await me.default.closeRetry(i)(E),E=null,r.chown&&await me.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await me.default.chmodAttempt(u,r.mode);try{await me.default.renameRetry(i)(u,e)}catch(d){if(d.code!=="ENAMETOOLONG")throw d;await me.default.renameRetry(i)(u,ir.default.truncate(e))}c(),u=null}finally{E&&await me.default.closeAttempt(E),u&&ir.default.purge(u),s&&s(),o&&o()}},Ru=(e,t,r=Ge.DEFAULT_WRITE_OPTIONS)=>{var n;if(ht.default.isString(r))return Ru(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Ge.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=me.default.realpathSyncAttempt(e)||e,[o,s]=ir.default.get(e,r.tmpCreate||ir.default.create,r.tmpPurge!==!1);const u=Ge.IS_POSIX&&ht.default.isUndefined(r.chown),E=ht.default.isUndefined(r.mode);if(u||E){const l=me.default.statSyncAttempt(e);l&&(r={...r},u&&(r.chown={uid:l.uid,gid:l.gid}),E&&(r.mode=l.mode))}const a=Nu.dirname(e);me.default.mkdirSyncAttempt(a,{mode:Ge.DEFAULT_FOLDER_MODE,recursive:!0}),c=me.default.openSyncRetry(i)(o,"w",r.mode||Ge.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),ht.default.isString(t)?me.default.writeSyncRetry(i)(c,t,0,r.encoding||Ge.DEFAULT_ENCODING):ht.default.isUndefined(t)||me.default.writeSyncRetry(i)(c,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?me.default.fsyncSyncRetry(i)(c):me.default.fsyncAttempt(c)),me.default.closeSyncRetry(i)(c),c=null,r.chown&&me.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&me.default.chmodSyncAttempt(o,r.mode);try{me.default.renameSyncRetry(i)(o,e)}catch(l){if(l.code!=="ENAMETOOLONG")throw l;me.default.renameSyncRetry(i)(o,ir.default.truncate(e))}s(),o=null}finally{c&&me.default.closeSyncAttempt(c),o&&ir.default.purge(o)}};jt.writeFileSync=Ru;var yi={exports:{}},Cu={},zt={},dr={},jn={},oe={},Tn={};(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(g){if(super(),!e.IDENTIFIER.test(g))throw new Error("CodeGen: name must be a valid identifier");this.str=g}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(g){super(),this._items=typeof g=="string"?[g]:g}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const g=this._items[0];return g===""||g==='""'}get str(){var g;return(g=this._str)!==null&&g!==void 0?g:this._str=this._items.reduce(($,w)=>`${$}${w}`,"")}get names(){var g;return(g=this._names)!==null&&g!==void 0?g:this._names=this._items.reduce(($,w)=>(w instanceof r&&($[w.str]=($[w.str]||0)+1),$),{})}}e._Code=n,e.nil=new n("");function i(f,...g){const $=[f[0]];let w=0;for(;w<g.length;)c($,g[w]),$.push(f[++w]);return new n($)}e._=i;const s=new n("+");function o(f,...g){const $=[d(f[0])];let w=0;for(;w<g.length;)$.push(s),c($,g[w]),$.push(s,d(f[++w]));return u($),new n($)}e.str=o;function c(f,g){g instanceof n?f.push(...g._items):g instanceof r?f.push(g):f.push(l(g))}e.addCodeArg=c;function u(f){let g=1;for(;g<f.length-1;){if(f[g]===s){const $=E(f[g-1],f[g+1]);if($!==void 0){f.splice(g-1,3,$);continue}f[g++]="+"}g++}}function E(f,g){if(g==='""')return f;if(f==='""')return g;if(typeof f=="string")return g instanceof r||f[f.length-1]!=='"'?void 0:typeof g!="string"?`${f.slice(0,-1)}${g}"`:g[0]==='"'?f.slice(0,-1)+g.slice(1):void 0;if(typeof g=="string"&&g[0]==='"'&&!(f instanceof r))return`"${f}${g.slice(1)}`}function a(f,g){return g.emptyStr()?f:f.emptyStr()?g:o`${f}${g}`}e.strConcat=a;function l(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:d(Array.isArray(f)?f.join(","):f)}function p(f){return new n(d(f))}e.stringify=p;function d(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):i`[${f}]`}e.getProperty=h;function m(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=m;function y(f){return new n(f.toString())}e.regexpCode=y})(Tn);var Es={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Tn;class r extends Error{constructor(E){super(`CodeGen: "code" for ${E} not defined`),this.value=E.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:E,parent:a}={}){this._names={},this._prefixes=E,this._parent=a}toName(E){return E instanceof t.Name?E:this.name(E)}name(E){return new t.Name(this._newName(E))}_newName(E){const a=this._names[E]||this._nameGroup(E);return`${E}${a.index++}`}_nameGroup(E){var a,l;if(((l=(a=this._parent)===null||a===void 0?void 0:a._prefixes)===null||l===void 0?void 0:l.has(E))||this._prefixes&&!this._prefixes.has(E))throw new Error(`CodeGen: prefix "${E}" is not allowed in this scope`);return this._names[E]={prefix:E,index:0}}}e.Scope=i;class s extends t.Name{constructor(E,a){super(a),this.prefix=E}setValue(E,{property:a,itemIndex:l}){this.value=E,this.scopePath=(0,t._)`.${new t.Name(a)}[${l}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class c extends i{constructor(E){super(E),this._values={},this._scope=E.scope,this.opts={...E,_n:E.lines?o:t.nil}}get(){return this._scope}name(E){return new s(E,this._newName(E))}value(E,a){var l;if(a.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(E),{prefix:d}=p,h=(l=a.key)!==null&&l!==void 0?l:a.ref;let m=this._values[d];if(m){const g=m.get(h);if(g)return g}else m=this._values[d]=new Map;m.set(h,p);const y=this._scope[d]||(this._scope[d]=[]),f=y.length;return y[f]=a.ref,p.setValue(a,{property:d,itemIndex:f}),p}getValue(E,a){const l=this._values[E];if(!!l)return l.get(a)}scopeRefs(E,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._)`${E}${l.scopePath}`})}scopeCode(E=this._values,a,l){return this._reduceValues(E,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},a,l)}_reduceValues(E,a,l={},p){let d=t.nil;for(const h in E){const m=E[h];if(!m)continue;const y=l[h]=l[h]||new Map;m.forEach(f=>{if(y.has(f))return;y.set(f,n.Started);let g=a(f);if(g){const $=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${$} ${f} = ${g};${this.opts._n}`}else if(g=p==null?void 0:p(f))d=(0,t._)`${d}${g}${this.opts._n}`;else throw new r(f);y.set(f,n.Completed)})}return d}}e.ValueScope=c})(Es);(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=Tn,r=Es;var n=Tn;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=Es;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(v,S){return this}}class o extends s{constructor(v,S,q){super(),this.varKind=v,this.name=S,this.rhs=q}render({es5:v,_n:S}){const q=v?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${Y};`+S}optimizeNames(v,S){if(!!v[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,v,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,S,q){super(),this.lhs=v,this.rhs=S,this.sideEffects=q}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,S){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,v,S),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return H(v,this.rhs)}}class u extends c{constructor(v,S,q,Y){super(v,q,Y),this.op=S}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class E extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class a extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class l extends s{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class p extends s{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,S){return this.code=B(this.code,v,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends s{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((S,q)=>S+q.render(v),"")}optimizeNodes(){const{nodes:v}=this;let S=v.length;for(;S--;){const q=v[S].optimizeNodes();Array.isArray(q)?v.splice(S,1,...q):q?v[S]=q:v.splice(S,1)}return v.length>0?this:void 0}optimizeNames(v,S){const{nodes:q}=this;let Y=q.length;for(;Y--;){const Q=q[Y];Q.optimizeNames(v,S)||(X(v,Q.names),q.splice(Y,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((v,S)=>L(v,S.names),{})}}class h extends d{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class m extends d{}class y extends h{}y.kind="else";class f extends h{constructor(v,S){super(S),this.condition=v}render(v){let S=`if(${this.condition})`+super.render(v);return this.else&&(S+="else "+this.else.render(v)),S}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let S=this.else;if(S){const q=S.optimizeNodes();S=this.else=Array.isArray(q)?new y(q):q}if(S)return v===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(Z(v),S instanceof f?[S]:S.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,S){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(v,S),!!(super.optimizeNames(v,S)||this.else))return this.condition=B(this.condition,v,S),this}get names(){const v=super.names;return H(v,this.condition),this.else&&L(v,this.else.names),v}}f.kind="if";class g extends h{}g.kind="for";class $ extends g{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iteration=B(this.iteration,v,S),this}get names(){return L(super.names,this.iteration.names)}}class w extends g{constructor(v,S,q,Y){super(),this.varKind=v,this.name=S,this.from=q,this.to=Y}render(v){const S=v.es5?r.varKinds.var:this.varKind,{name:q,from:Y,to:Q}=this;return`for(${S} ${q}=${Y}; ${q}<${Q}; ${q}++)`+super.render(v)}get names(){const v=H(super.names,this.from);return H(v,this.to)}}class x extends g{constructor(v,S,q,Y){super(),this.loop=v,this.varKind=S,this.name=q,this.iterable=Y}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iterable=B(this.iterable,v,S),this}get names(){return L(super.names,this.iterable.names)}}class I extends h{constructor(v,S,q){super(),this.name=v,this.args=S,this.async=q}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}I.kind="func";class D extends d{render(v){return"return "+super.render(v)}}D.kind="return";class V extends h{render(v){let S="try"+super.render(v);return this.catch&&(S+=this.catch.render(v)),this.finally&&(S+=this.finally.render(v)),S}optimizeNodes(){var v,S;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(v,S){var q,Y;return super.optimizeNames(v,S),(q=this.catch)===null||q===void 0||q.optimizeNames(v,S),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(v,S),this}get names(){const v=super.names;return this.catch&&L(v,this.catch.names),this.finally&&L(v,this.finally.names),v}}class A extends h{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}A.kind="catch";class G extends h{render(v){return"finally"+super.render(v)}}G.kind="finally";class F{constructor(v,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
8
|
-
`:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,S){const q=this._extScope.value(v,S);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(v,S){return this._extScope.getValue(v,S)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,S,q,Y){const Q=this._scope.toName(S);return q!==void 0&&Y&&(this._constants[Q.str]=q),this._leafNode(new o(v,Q,q)),Q}const(v,S,q){return this._def(r.varKinds.const,v,S,q)}let(v,S,q){return this._def(r.varKinds.let,v,S,q)}var(v,S,q){return this._def(r.varKinds.var,v,S,q)}assign(v,S,q){return this._leafNode(new c(v,S,q))}add(v,S){return this._leafNode(new u(v,e.operators.ADD,S))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new p(v)),this}object(...v){const S=["{"];for(const[q,Y]of v)S.length>1&&S.push(","),S.push(q),(q!==Y||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,Y));return S.push("}"),new t._Code(S)}if(v,S,q){if(this._blockNode(new f(v)),S&&q)this.code(S).else().code(q).endIf();else if(S)this.code(S).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new f(v))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(f,y)}_for(v,S){return this._blockNode(v),S&&this.code(S).endFor(),this}for(v,S){return this._for(new $(v),S)}forRange(v,S,q,Y,Q=this.opts.es5?r.varKinds.var:r.varKinds.let){const ae=this._scope.toName(v);return this._for(new w(Q,ae,S,q),()=>Y(ae))}forOf(v,S,q,Y=r.varKinds.const){const Q=this._scope.toName(v);if(this.opts.es5){const ae=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${ae}.length`,C=>{this.var(Q,(0,t._)`${ae}[${C}]`),q(Q)})}return this._for(new x("of",Y,Q,S),()=>q(Q))}forIn(v,S,q,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${S})`,q);const Q=this._scope.toName(v);return this._for(new x("in",Y,Q,S),()=>q(Q))}endFor(){return this._endBlockNode(g)}label(v){return this._leafNode(new E(v))}break(v){return this._leafNode(new a(v))}return(v){const S=new D;if(this._blockNode(S),this.code(v),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(v,S,q){if(!S&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const Y=new V;if(this._blockNode(Y),this.code(v),S){const Q=this.name("e");this._currNode=Y.catch=new A(Q),S(Q)}return q&&(this._currNode=Y.finally=new G,this.code(q)),this._endBlockNode(A,G)}throw(v){return this._leafNode(new l(v))}block(v,S){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(S),this}endBlock(v){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-S;if(q<0||v!==void 0&&q!==v)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${v} expected`);return this._nodes.length=S,this}func(v,S=t.nil,q,Y){return this._blockNode(new I(v,S,q)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(I)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,S){const q=this._currNode;if(q instanceof v||S&&q instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${v.kind}/${S.kind}`:v.kind}"`)}_elseNode(v){const S=this._currNode;if(!(S instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const S=this._nodes;S[S.length-1]=v}}e.CodeGen=F;function L(P,v){for(const S in v)P[S]=(P[S]||0)+(v[S]||0);return P}function H(P,v){return v instanceof t._CodeOrName?L(P,v.names):P}function B(P,v,S){if(P instanceof t.Name)return q(P);if(!Y(P))return P;return new t._Code(P._items.reduce((Q,ae)=>(ae instanceof t.Name&&(ae=q(ae)),ae instanceof t._Code?Q.push(...ae._items):Q.push(ae),Q),[]));function q(Q){const ae=S[Q.str];return ae===void 0||v[Q.str]!==1?Q:(delete v[Q.str],ae)}function Y(Q){return Q instanceof t._Code&&Q._items.some(ae=>ae instanceof t.Name&&v[ae.str]===1&&S[ae.str]!==void 0)}}function X(P,v){for(const S in v)P[S]=(P[S]||0)-(v[S]||0)}function Z(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${M(P)}`}e.not=Z;const W=T(e.operators.AND);function j(...P){return P.reduce(W)}e.and=j;const z=T(e.operators.OR);function R(...P){return P.reduce(z)}e.or=R;function T(P){return(v,S)=>v===t.nil?S:S===t.nil?v:(0,t._)`${M(v)} ${P} ${M(S)}`}function M(P){return P instanceof t.Name?P:(0,t._)`(${P})`}})(oe);var de={};(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=oe,r=Tn;function n(I){const D={};for(const V of I)D[V]=!0;return D}e.toHash=n;function i(I,D){return typeof D=="boolean"?D:Object.keys(D).length===0?!0:(s(I,D),!o(D,I.self.RULES.all))}e.alwaysValidSchema=i;function s(I,D=I.schema){const{opts:V,self:A}=I;if(!V.strictSchema||typeof D=="boolean")return;const G=A.RULES.keywords;for(const F in D)G[F]||x(I,`unknown keyword: "${F}"`)}e.checkUnknownRules=s;function o(I,D){if(typeof I=="boolean")return!I;for(const V in I)if(D[V])return!0;return!1}e.schemaHasRules=o;function c(I,D){if(typeof I=="boolean")return!I;for(const V in I)if(V!=="$ref"&&D.all[V])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:I,schemaPath:D},V,A,G){if(!G){if(typeof V=="number"||typeof V=="boolean")return V;if(typeof V=="string")return(0,t._)`${V}`}return(0,t._)`${I}${D}${(0,t.getProperty)(A)}`}e.schemaRefOrVal=u;function E(I){return p(decodeURIComponent(I))}e.unescapeFragment=E;function a(I){return encodeURIComponent(l(I))}e.escapeFragment=a;function l(I){return typeof I=="number"?`${I}`:I.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function p(I){return I.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function d(I,D){if(Array.isArray(I))for(const V of I)D(V);else D(I)}e.eachItem=d;function h({mergeNames:I,mergeToName:D,mergeValues:V,resultToName:A}){return(G,F,L,H)=>{const B=L===void 0?F:L instanceof t.Name?(F instanceof t.Name?I(G,F,L):D(G,F,L),L):F instanceof t.Name?(D(G,L,F),F):V(F,L);return H===t.Name&&!(B instanceof t.Name)?A(G,B):B}}e.mergeEvaluated={props:h({mergeNames:(I,D,V)=>I.if((0,t._)`${V} !== true && ${D} !== undefined`,()=>{I.if((0,t._)`${D} === true`,()=>I.assign(V,!0),()=>I.assign(V,(0,t._)`${V} || {}`).code((0,t._)`Object.assign(${V}, ${D})`))}),mergeToName:(I,D,V)=>I.if((0,t._)`${V} !== true`,()=>{D===!0?I.assign(V,!0):(I.assign(V,(0,t._)`${V} || {}`),y(I,V,D))}),mergeValues:(I,D)=>I===!0?!0:{...I,...D},resultToName:m}),items:h({mergeNames:(I,D,V)=>I.if((0,t._)`${V} !== true && ${D} !== undefined`,()=>I.assign(V,(0,t._)`${D} === true ? true : ${V} > ${D} ? ${V} : ${D}`)),mergeToName:(I,D,V)=>I.if((0,t._)`${V} !== true`,()=>I.assign(V,D===!0?!0:(0,t._)`${V} > ${D} ? ${V} : ${D}`)),mergeValues:(I,D)=>I===!0?!0:Math.max(I,D),resultToName:(I,D)=>I.var("items",D)})};function m(I,D){if(D===!0)return I.var("props",!0);const V=I.var("props",(0,t._)`{}`);return D!==void 0&&y(I,V,D),V}e.evaluatedPropsToName=m;function y(I,D,V){Object.keys(V).forEach(A=>I.assign((0,t._)`${D}${(0,t.getProperty)(A)}`,!0))}e.setEvaluated=y;const f={};function g(I,D){return I.scopeValue("func",{ref:D,code:f[D.code]||(f[D.code]=new r._Code(D.code))})}e.useFunc=g;var $;(function(I){I[I.Num=0]="Num",I[I.Str=1]="Str"})($=e.Type||(e.Type={}));function w(I,D,V){if(I instanceof t.Name){const A=D===$.Num;return V?A?(0,t._)`"[" + ${I} + "]"`:(0,t._)`"['" + ${I} + "']"`:A?(0,t._)`"/" + ${I}`:(0,t._)`"/" + ${I}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return V?(0,t.getProperty)(I).toString():"/"+l(I)}e.getErrorPath=w;function x(I,D,V=I.opts.strictSchema){if(!!V){if(D=`strict mode: ${D}`,V===!0)throw new Error(D);I.self.logger.warn(D)}}e.checkStrictMode=x})(de);var kt={};Object.defineProperty(kt,"__esModule",{value:!0});const Xe=oe,Hh={data:new Xe.Name("data"),valCxt:new Xe.Name("valCxt"),instancePath:new Xe.Name("instancePath"),parentData:new Xe.Name("parentData"),parentDataProperty:new Xe.Name("parentDataProperty"),rootData:new Xe.Name("rootData"),dynamicAnchors:new Xe.Name("dynamicAnchors"),vErrors:new Xe.Name("vErrors"),errors:new Xe.Name("errors"),this:new Xe.Name("this"),self:new Xe.Name("self"),scope:new Xe.Name("scope"),json:new Xe.Name("json"),jsonPos:new Xe.Name("jsonPos"),jsonLen:new Xe.Name("jsonLen"),jsonPart:new Xe.Name("jsonPart")};kt.default=Hh;(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=oe,r=de,n=kt;e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:f})=>f?(0,t.str)`"${y}" keyword must be ${f} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function i(y,f=e.keywordError,g,$){const{it:w}=y,{gen:x,compositeRule:I,allErrors:D}=w,V=l(y,f,g);($!=null?$:I||D)?u(x,V):E(w,(0,t._)`[${V}]`)}e.reportError=i;function s(y,f=e.keywordError,g){const{it:$}=y,{gen:w,compositeRule:x,allErrors:I}=$,D=l(y,f,g);u(w,D),x||I||E($,n.default.vErrors)}e.reportExtraError=s;function o(y,f){y.assign(n.default.errors,f),y.if((0,t._)`${n.default.vErrors} !== null`,()=>y.if(f,()=>y.assign((0,t._)`${n.default.vErrors}.length`,f),()=>y.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:y,keyword:f,schemaValue:g,data:$,errsCount:w,it:x}){if(w===void 0)throw new Error("ajv implementation error");const I=y.name("err");y.forRange("i",w,n.default.errors,D=>{y.const(I,(0,t._)`${n.default.vErrors}[${D}]`),y.if((0,t._)`${I}.instancePath === undefined`,()=>y.assign((0,t._)`${I}.instancePath`,(0,t.strConcat)(n.default.instancePath,x.errorPath))),y.assign((0,t._)`${I}.schemaPath`,(0,t.str)`${x.errSchemaPath}/${f}`),x.opts.verbose&&(y.assign((0,t._)`${I}.schema`,g),y.assign((0,t._)`${I}.data`,$))})}e.extendErrors=c;function u(y,f){const g=y.const("err",f);y.if((0,t._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,t._)`[${g}]`),(0,t._)`${n.default.vErrors}.push(${g})`),y.code((0,t._)`${n.default.errors}++`)}function E(y,f){const{gen:g,validateName:$,schemaEnv:w}=y;w.$async?g.throw((0,t._)`new ${y.ValidationError}(${f})`):(g.assign((0,t._)`${$}.errors`,f),g.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(y,f,g){const{createErrors:$}=y.it;return $===!1?(0,t._)`{}`:p(y,f,g)}function p(y,f,g={}){const{gen:$,it:w}=y,x=[d(w,g),h(y,g)];return m(y,f,x),$.object(...x)}function d({errorPath:y},{instancePath:f}){const g=f?(0,t.str)`${y}${(0,r.getErrorPath)(f,r.Type.Str)}`:y;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,g)]}function h({keyword:y,it:{errSchemaPath:f}},{schemaPath:g,parentSchema:$}){let w=$?f:(0,t.str)`${f}/${y}`;return g&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(g,r.Type.Str)}`),[a.schemaPath,w]}function m(y,{params:f,message:g},$){const{keyword:w,data:x,schemaValue:I,it:D}=y,{opts:V,propertyName:A,topSchemaRef:G,schemaPath:F}=D;$.push([a.keyword,w],[a.params,typeof f=="function"?f(y):f||(0,t._)`{}`]),V.messages&&$.push([a.message,typeof g=="function"?g(y):g]),V.verbose&&$.push([a.schema,I],[a.parentSchema,(0,t._)`${G}${F}`],[n.default.data,x]),A&&$.push([a.propertyName,A])}})(jn);var Sa;function Kh(){if(Sa)return dr;Sa=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.boolOrEmptySchema=dr.topBoolOrEmptySchema=void 0;const e=jn,t=oe,r=kt,n={message:"boolean schema is false"};function i(c){const{gen:u,schema:E,validateName:a}=c;E===!1?o(c,!1):typeof E=="object"&&E.$async===!0?u.return(r.default.data):(u.assign((0,t._)`${a}.errors`,null),u.return(!0))}dr.topBoolOrEmptySchema=i;function s(c,u){const{gen:E,schema:a}=c;a===!1?(E.var(u,!1),o(c)):E.var(u,!0)}dr.boolOrEmptySchema=s;function o(c,u){const{gen:E,data:a}=c,l={gen:E,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(l,n,void 0,u)}return dr}var Dn={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getRules=Sr.isJSONType=void 0;const Wh=["string","number","integer","boolean","null","object","array"],Xh=new Set(Wh);function Zh(e){return typeof e=="string"&&Xh.has(e)}Sr.isJSONType=Zh;function Jh(){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:{}}}Sr.getRules=Jh;var xt={},wa;function Pu(){if(wa)return xt;wa=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.shouldUseRule=xt.shouldUseGroup=xt.schemaHasRulesForType=void 0;function e({schema:n,self:i},s){const o=i.RULES.types[s];return o&&o!==!0&&t(n,o)}xt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(s=>r(n,s))}xt.shouldUseGroup=t;function r(n,i){var s;return n[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(o=>n[o]!==void 0))}return xt.shouldUseRule=r,xt}(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=Sr,r=Pu(),n=jn,i=oe,s=de;var o;(function($){$[$.Correct=0]="Correct",$[$.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c($){const w=u($.type);if(w.includes("null")){if($.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&$.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');$.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=c;function u($){const w=Array.isArray($)?$:$?[$]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=u;function E($,w){const{gen:x,data:I,opts:D}=$,V=l(w,D.coerceTypes),A=w.length>0&&!(V.length===0&&w.length===1&&(0,r.schemaHasRulesForType)($,w[0]));if(A){const G=m(w,I,D.strictNumbers,o.Wrong);x.if(G,()=>{V.length?p($,w,V):f($)})}return A}e.coerceAndCheckDataType=E;const a=new Set(["string","number","integer","boolean","null"]);function l($,w){return w?$.filter(x=>a.has(x)||w==="array"&&x==="array"):[]}function p($,w,x){const{gen:I,data:D,opts:V}=$,A=I.let("dataType",(0,i._)`typeof ${D}`),G=I.let("coerced",(0,i._)`undefined`);V.coerceTypes==="array"&&I.if((0,i._)`${A} == 'object' && Array.isArray(${D}) && ${D}.length == 1`,()=>I.assign(D,(0,i._)`${D}[0]`).assign(A,(0,i._)`typeof ${D}`).if(m(w,D,V.strictNumbers),()=>I.assign(G,D))),I.if((0,i._)`${G} !== undefined`);for(const L of x)(a.has(L)||L==="array"&&V.coerceTypes==="array")&&F(L);I.else(),f($),I.endIf(),I.if((0,i._)`${G} !== undefined`,()=>{I.assign(D,G),d($,G)});function F(L){switch(L){case"string":I.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(G,(0,i._)`"" + ${D}`).elseIf((0,i._)`${D} === null`).assign(G,(0,i._)`""`);return;case"number":I.elseIf((0,i._)`${A} == "boolean" || ${D} === null
|
|
9
|
-
|| (${
|
|
10
|
-
|| (${
|
|
11
|
-
|| ${A} === "boolean" || ${D} === null`).assign(G,(0,i._)`[${D}]`)}}}function d({gen:$,parentData:w,parentDataProperty:x},I){$.if((0,i._)`${w} !== undefined`,()=>$.assign((0,i._)`${w}[${x}]`,I))}function h($,w,x,I=o.Correct){const D=I===o.Correct?i.operators.EQ:i.operators.NEQ;let V;switch($){case"null":return(0,i._)`${w} ${D} null`;case"array":V=(0,i._)`Array.isArray(${w})`;break;case"object":V=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":V=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":V=A();break;default:return(0,i._)`typeof ${w} ${D} ${$}`}return I===o.Correct?V:(0,i.not)(V);function A(G=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,G,x?(0,i._)`isFinite(${w})`:i.nil)}}e.checkDataType=h;function m($,w,x,I){if($.length===1)return h($[0],w,x,I);let D;const V=(0,s.toHash)($);if(V.array&&V.object){const A=(0,i._)`typeof ${w} != "object"`;D=V.null?A:(0,i._)`!${w} || ${A}`,delete V.null,delete V.array,delete V.object}else D=i.nil;V.number&&delete V.integer;for(const A in V)D=(0,i.and)(D,h(A,w,x,I));return D}e.checkDataTypes=m;const y={message:({schema:$})=>`must be ${$}`,params:({schema:$,schemaValue:w})=>typeof $=="string"?(0,i._)`{type: ${$}}`:(0,i._)`{type: ${w}}`};function f($){const w=g($);(0,n.reportError)(w,y)}e.reportTypeError=f;function g($){const{gen:w,data:x,schema:I}=$,D=(0,s.schemaRefOrVal)($,I,"type");return{gen:w,keyword:"type",data:x,schema:I.type,schemaCode:D,schemaValue:D,parentSchema:I,params:{},it:$}}})(Dn);var un={},Na;function Yh(){if(Na)return un;Na=1,Object.defineProperty(un,"__esModule",{value:!0}),un.assignDefaults=void 0;const e=oe,t=de;function r(i,s){const{properties:o,items:c}=i.schema;if(s==="object"&&o)for(const u in o)n(i,u,o[u].default);else s==="array"&&Array.isArray(c)&&c.forEach((u,E)=>n(i,E,u.default))}un.assignDefaults=r;function n(i,s,o){const{gen:c,compositeRule:u,data:E,opts:a}=i;if(o===void 0)return;const l=(0,e._)`${E}${(0,e.getProperty)(s)}`;if(u){(0,t.checkStrictMode)(i,`default is ignored for: ${l}`);return}let p=(0,e._)`${l} === undefined`;a.useDefaults==="empty"&&(p=(0,e._)`${p} || ${l} === null || ${l} === ""`),c.if(p,(0,e._)`${l} = ${(0,e.stringify)(o)}`)}return un}var vt={},Ee={},Ia;function Dt(){if(Ia)return Ee;Ia=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;const e=oe,t=de,r=kt,n=de;function i(g,$){const{gen:w,data:x,it:I}=g;w.if(a(w,x,$,I.opts.ownProperties),()=>{g.setParams({missingProperty:(0,e._)`${$}`},!0),g.error()})}Ee.checkReportMissingProp=i;function s({gen:g,data:$,it:{opts:w}},x,I){return(0,e.or)(...x.map(D=>(0,e.and)(a(g,$,D,w.ownProperties),(0,e._)`${I} = ${D}`)))}Ee.checkMissingProp=s;function o(g,$){g.setParams({missingProperty:$},!0),g.error()}Ee.reportMissingProp=o;function c(g){return g.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=c;function u(g,$,w){return(0,e._)`${c(g)}.call(${$}, ${w})`}Ee.isOwnProperty=u;function E(g,$,w,x){const I=(0,e._)`${$}${(0,e.getProperty)(w)} !== undefined`;return x?(0,e._)`${I} && ${u(g,$,w)}`:I}Ee.propertyInData=E;function a(g,$,w,x){const I=(0,e._)`${$}${(0,e.getProperty)(w)} === undefined`;return x?(0,e.or)(I,(0,e.not)(u(g,$,w))):I}Ee.noPropertyInData=a;function l(g){return g?Object.keys(g).filter($=>$!=="__proto__"):[]}Ee.allSchemaProperties=l;function p(g,$){return l($).filter(w=>!(0,t.alwaysValidSchema)(g,$[w]))}Ee.schemaProperties=p;function d({schemaCode:g,data:$,it:{gen:w,topSchemaRef:x,schemaPath:I,errorPath:D},it:V},A,G,F){const L=F?(0,e._)`${g}, ${$}, ${x}${I}`:$,H=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,D)],[r.default.parentData,V.parentData],[r.default.parentDataProperty,V.parentDataProperty],[r.default.rootData,r.default.rootData]];V.opts.dynamicRef&&H.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const B=(0,e._)`${L}, ${w.object(...H)}`;return G!==e.nil?(0,e._)`${A}.call(${G}, ${B})`:(0,e._)`${A}(${B})`}Ee.callValidateCode=d;const h=(0,e._)`new RegExp`;function m({gen:g,it:{opts:$}},w){const x=$.unicodeRegExp?"u":"",{regExp:I}=$.code,D=I(w,x);return g.scopeValue("pattern",{key:D.toString(),ref:D,code:(0,e._)`${I.code==="new RegExp"?h:(0,n.useFunc)(g,I)}(${w}, ${x})`})}Ee.usePattern=m;function y(g){const{gen:$,data:w,keyword:x,it:I}=g,D=$.name("valid");if(I.allErrors){const A=$.let("valid",!0);return V(()=>$.assign(A,!1)),A}return $.var(D,!0),V(()=>$.break()),D;function V(A){const G=$.const("len",(0,e._)`${w}.length`);$.forRange("i",0,G,F=>{g.subschema({keyword:x,dataProp:F,dataPropType:t.Type.Num},D),$.if((0,e.not)(D),A)})}}Ee.validateArray=y;function f(g){const{gen:$,schema:w,keyword:x,it:I}=g;if(!Array.isArray(w))throw new Error("ajv implementation error");if(w.some(G=>(0,t.alwaysValidSchema)(I,G))&&!I.opts.unevaluated)return;const V=$.let("valid",!1),A=$.name("_valid");$.block(()=>w.forEach((G,F)=>{const L=g.subschema({keyword:x,schemaProp:F,compositeRule:!0},A);$.assign(V,(0,e._)`${V} || ${A}`),g.mergeValidEvaluated(L,A)||$.if((0,e.not)(V))})),g.result(V,()=>g.reset(),()=>g.error(!0))}return Ee.validateUnion=f,Ee}var Oa;function Qh(){if(Oa)return vt;Oa=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;const e=oe,t=kt,r=Dt(),n=jn;function i(p,d){const{gen:h,keyword:m,schema:y,parentSchema:f,it:g}=p,$=d.macro.call(g.self,y,f,g),w=E(h,m,$);g.opts.validateSchema!==!1&&g.self.validateSchema($,!0);const x=h.name("valid");p.subschema({schema:$,schemaPath:e.nil,errSchemaPath:`${g.errSchemaPath}/${m}`,topSchemaRef:w,compositeRule:!0},x),p.pass(x,()=>p.error(!0))}vt.macroKeywordCode=i;function s(p,d){var h;const{gen:m,keyword:y,schema:f,parentSchema:g,$data:$,it:w}=p;u(w,d);const x=!$&&d.compile?d.compile.call(w.self,f,g,w):d.validate,I=E(m,y,x),D=m.let("valid");p.block$data(D,V),p.ok((h=d.valid)!==null&&h!==void 0?h:D);function V(){if(d.errors===!1)F(),d.modifying&&o(p),L(()=>p.error());else{const H=d.async?A():G();d.modifying&&o(p),L(()=>c(p,H))}}function A(){const H=m.let("ruleErrs",null);return m.try(()=>F((0,e._)`await `),B=>m.assign(D,!1).if((0,e._)`${B} instanceof ${w.ValidationError}`,()=>m.assign(H,(0,e._)`${B}.errors`),()=>m.throw(B))),H}function G(){const H=(0,e._)`${I}.errors`;return m.assign(H,null),F(e.nil),H}function F(H=d.async?(0,e._)`await `:e.nil){const B=w.opts.passContext?t.default.this:t.default.self,X=!("compile"in d&&!$||d.schema===!1);m.assign(D,(0,e._)`${H}${(0,r.callValidateCode)(p,I,B,X)}`,d.modifying)}function L(H){var B;m.if((0,e.not)((B=d.valid)!==null&&B!==void 0?B:D),H)}}vt.funcKeywordCode=s;function o(p){const{gen:d,data:h,it:m}=p;d.if(m.parentData,()=>d.assign(h,(0,e._)`${m.parentData}[${m.parentDataProperty}]`))}function c(p,d){const{gen:h}=p;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(p)},()=>p.error())}function u({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function E(p,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function a(p,d,h=!1){return!d.length||d.some(m=>m==="array"?Array.isArray(p):m==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==m||h&&typeof p>"u")}vt.validSchemaType=a;function l({schema:p,opts:d,self:h,errSchemaPath:m},y,f){if(Array.isArray(y.keyword)?!y.keyword.includes(f):y.keyword!==f)throw new Error("ajv implementation error");const g=y.dependencies;if(g!=null&&g.some($=>!Object.prototype.hasOwnProperty.call(p,$)))throw new Error(`parent schema must have dependencies of ${f}: ${g.join(",")}`);if(y.validateSchema&&!y.validateSchema(p[f])){const w=`keyword "${f}" value is invalid at path "${m}": `+h.errorsText(y.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(w);else throw new Error(w)}}return vt.validateKeywordUsage=l,vt}var Vt={},Ta;function em(){if(Ta)return Vt;Ta=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const e=oe,t=de;function r(s,{keyword:o,schemaProp:c,schema:u,schemaPath:E,errSchemaPath:a,topSchemaRef:l}){if(o!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=s.schema[o];return c===void 0?{schema:p,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:p[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,t.escapeFragment)(c)}`}}if(u!==void 0){if(E===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:E,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Vt.getSubschema=r;function n(s,o,{dataProp:c,dataPropType:u,data:E,dataTypes:a,propertyName:l}){if(E!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(c!==void 0){const{errorPath:h,dataPathArr:m,opts:y}=o,f=p.let("data",(0,e._)`${o.data}${(0,e.getProperty)(c)}`,!0);d(f),s.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(c,u,y.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...m,s.parentDataProperty]}if(E!==void 0){const h=E instanceof e.Name?E:p.let("data",E,!0);d(h),l!==void 0&&(s.propertyName=l)}a&&(s.dataTypes=a);function d(h){s.data=h,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,h]}}Vt.extendSubschemaData=n;function i(s,{jtdDiscriminator:o,jtdMetadata:c,compositeRule:u,createErrors:E,allErrors:a}){u!==void 0&&(s.compositeRule=u),E!==void 0&&(s.createErrors=E),a!==void 0&&(s.allErrors=a),s.jtdDiscriminator=o,s.jtdMetadata=c}return Vt.extendSubschemaMode=i,Vt}var Be={},Au=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},bu={exports:{}},sr=bu.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)};sr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};sr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};sr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};sr.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,E){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,c,u,E);for(var a in n){var l=n[a];if(Array.isArray(l)){if(a in sr.arrayKeywords)for(var p=0;p<l.length;p++)si(e,t,r,l[p],i+"/"+a+"/"+p,s,i,a,n,p)}else if(a in sr.propsKeywords){if(l&&typeof l=="object")for(var d in l)si(e,t,r,l[d],i+"/"+a+"/"+tm(d),s,i,a,n,d)}else(a in sr.keywords||e.allKeys&&!(a in sr.skipKeywords))&&si(e,t,r,l,i+"/"+a,s,i,a,n)}r(n,i,s,o,c,u,E)}}function tm(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(Be,"__esModule",{value:!0});Be.getSchemaRefs=Be.resolveUrl=Be.normalizeId=Be._getFullPath=Be.getFullPath=Be.inlineRef=void 0;const rm=de,nm=Au,im=bu.exports,sm=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function om(e,t=!0){return typeof e=="boolean"?!0:t===!0?!vs(e):t?Lu(e)<=t:!1}Be.inlineRef=om;const am=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function vs(e){for(const t in e){if(am.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(vs)||typeof r=="object"&&vs(r))return!0}return!1}function Lu(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!sm.has(r)&&(typeof e[r]=="object"&&(0,rm.eachItem)(e[r],n=>t+=Lu(n)),t===1/0))return 1/0}return t}function Fu(e,t="",r){r!==!1&&(t=zr(t));const n=e.parse(t);return ju(e,n)}Be.getFullPath=Fu;function ju(e,t){return e.serialize(t).split("#")[0]+"#"}Be._getFullPath=ju;const cm=/#\/?$/;function zr(e){return e?e.replace(cm,""):""}Be.normalizeId=zr;function um(e,t,r){return r=zr(r),e.resolve(t,r)}Be.resolveUrl=um;const fm=/^[a-z_][-a-z0-9._]*$/i;function lm(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=zr(e[r]||t),s={"":i},o=Fu(n,i,!1),c={},u=new Set;return im(e,{allKeys:!0},(l,p,d,h)=>{if(h===void 0)return;const m=o+p;let y=s[h];typeof l[r]=="string"&&(y=f.call(this,l[r])),g.call(this,l.$anchor),g.call(this,l.$dynamicAnchor),s[p]=y;function f($){const w=this.opts.uriResolver.resolve;if($=zr(y?w(y,$):$),u.has($))throw a($);u.add($);let x=this.refs[$];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?E(l,x.schema,$):$!==zr(m)&&($[0]==="#"?(E(l,c[$],$),c[$]=l):this.refs[$]=m),$}function g($){if(typeof $=="string"){if(!fm.test($))throw new Error(`invalid anchor "${$}"`);f.call(this,`#${$}`)}}}),c;function E(l,p,d){if(p!==void 0&&!nm(l,p))throw a(d)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}Be.getSchemaRefs=lm;var Da;function Pi(){if(Da)return zt;Da=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.getData=zt.KeywordCxt=zt.validateFunctionCode=void 0;const e=Kh(),t=Dn,r=Pu(),n=Dn,i=Yh(),s=Qh(),o=em(),c=oe,u=kt,E=Be,a=de,l=jn;function p(C){if(x(C)&&(D(C),w(C))){y(C);return}d(C,()=>(0,e.topBoolOrEmptySchema)(C))}zt.validateFunctionCode=p;function d({gen:C,validateName:b,schema:K,schemaEnv:J,opts:te},se){te.code.es5?C.func(b,(0,c._)`${u.default.data}, ${u.default.valCxt}`,J.$async,()=>{C.code((0,c._)`"use strict"; ${g(K,te)}`),m(C,te),C.code(se)}):C.func(b,(0,c._)`${u.default.data}, ${h(te)}`,J.$async,()=>C.code(g(K,te)).code(se))}function h(C){return(0,c._)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${C.dynamicRef?(0,c._)`, ${u.default.dynamicAnchors}={}`:c.nil}}={}`}function m(C,b){C.if(u.default.valCxt,()=>{C.var(u.default.instancePath,(0,c._)`${u.default.valCxt}.${u.default.instancePath}`),C.var(u.default.parentData,(0,c._)`${u.default.valCxt}.${u.default.parentData}`),C.var(u.default.parentDataProperty,(0,c._)`${u.default.valCxt}.${u.default.parentDataProperty}`),C.var(u.default.rootData,(0,c._)`${u.default.valCxt}.${u.default.rootData}`),b.dynamicRef&&C.var(u.default.dynamicAnchors,(0,c._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{C.var(u.default.instancePath,(0,c._)`""`),C.var(u.default.parentData,(0,c._)`undefined`),C.var(u.default.parentDataProperty,(0,c._)`undefined`),C.var(u.default.rootData,u.default.data),b.dynamicRef&&C.var(u.default.dynamicAnchors,(0,c._)`{}`)})}function y(C){const{schema:b,opts:K,gen:J}=C;d(C,()=>{K.$comment&&b.$comment&&H(C),G(C),J.let(u.default.vErrors,null),J.let(u.default.errors,0),K.unevaluated&&f(C),V(C),B(C)})}function f(C){const{gen:b,validateName:K}=C;C.evaluated=b.const("evaluated",(0,c._)`${K}.evaluated`),b.if((0,c._)`${C.evaluated}.dynamicProps`,()=>b.assign((0,c._)`${C.evaluated}.props`,(0,c._)`undefined`)),b.if((0,c._)`${C.evaluated}.dynamicItems`,()=>b.assign((0,c._)`${C.evaluated}.items`,(0,c._)`undefined`))}function g(C,b){const K=typeof C=="object"&&C[b.schemaId];return K&&(b.code.source||b.code.process)?(0,c._)`/*# sourceURL=${K} */`:c.nil}function $(C,b){if(x(C)&&(D(C),w(C))){I(C,b);return}(0,e.boolOrEmptySchema)(C,b)}function w({schema:C,self:b}){if(typeof C=="boolean")return!C;for(const K in C)if(b.RULES.all[K])return!0;return!1}function x(C){return typeof C.schema!="boolean"}function I(C,b){const{schema:K,gen:J,opts:te}=C;te.$comment&&K.$comment&&H(C),F(C),L(C);const se=J.const("_errs",u.default.errors);V(C,se),J.var(b,(0,c._)`${se} === ${u.default.errors}`)}function D(C){(0,a.checkUnknownRules)(C),A(C)}function V(C,b){if(C.opts.jtd)return Z(C,[],!1,b);const K=(0,t.getSchemaTypes)(C.schema),J=(0,t.coerceAndCheckDataType)(C,K);Z(C,K,!J,b)}function A(C){const{schema:b,errSchemaPath:K,opts:J,self:te}=C;b.$ref&&J.ignoreKeywordsWithRef&&(0,a.schemaHasRulesButRef)(b,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${K}"`)}function G(C){const{schema:b,opts:K}=C;b.default!==void 0&&K.useDefaults&&K.strictSchema&&(0,a.checkStrictMode)(C,"default is ignored in the schema root")}function F(C){const b=C.schema[C.opts.schemaId];b&&(C.baseId=(0,E.resolveUrl)(C.opts.uriResolver,C.baseId,b))}function L(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("async schema in sync schema")}function H({gen:C,schemaEnv:b,schema:K,errSchemaPath:J,opts:te}){const se=K.$comment;if(te.$comment===!0)C.code((0,c._)`${u.default.self}.logger.log(${se})`);else if(typeof te.$comment=="function"){const ve=(0,c.str)`${J}/$comment`,ft=C.scopeValue("root",{ref:b.root});C.code((0,c._)`${u.default.self}.opts.$comment(${se}, ${ve}, ${ft}.schema)`)}}function B(C){const{gen:b,schemaEnv:K,validateName:J,ValidationError:te,opts:se}=C;K.$async?b.if((0,c._)`${u.default.errors} === 0`,()=>b.return(u.default.data),()=>b.throw((0,c._)`new ${te}(${u.default.vErrors})`)):(b.assign((0,c._)`${J}.errors`,u.default.vErrors),se.unevaluated&&X(C),b.return((0,c._)`${u.default.errors} === 0`))}function X({gen:C,evaluated:b,props:K,items:J}){K instanceof c.Name&&C.assign((0,c._)`${b}.props`,K),J instanceof c.Name&&C.assign((0,c._)`${b}.items`,J)}function Z(C,b,K,J){const{gen:te,schema:se,data:ve,allErrors:ft,opts:ze,self:xe}=C,{RULES:Ae}=xe;if(se.$ref&&(ze.ignoreKeywordsWithRef||!(0,a.schemaHasRulesButRef)(se,Ae))){te.block(()=>q(C,"$ref",Ae.all.$ref.definition));return}ze.jtd||j(C,b),te.block(()=>{for(const Fe of Ae.rules)Ht(Fe);Ht(Ae.post)});function Ht(Fe){!(0,r.shouldUseGroup)(se,Fe)||(Fe.type?(te.if((0,n.checkDataType)(Fe.type,ve,ze.strictNumbers)),W(C,Fe),b.length===1&&b[0]===Fe.type&&K&&(te.else(),(0,n.reportTypeError)(C)),te.endIf()):W(C,Fe),ft||te.if((0,c._)`${u.default.errors} === ${J||0}`))}}function W(C,b){const{gen:K,schema:J,opts:{useDefaults:te}}=C;te&&(0,i.assignDefaults)(C,b.type),K.block(()=>{for(const se of b.rules)(0,r.shouldUseRule)(J,se)&&q(C,se.keyword,se.definition,b.type)})}function j(C,b){C.schemaEnv.meta||!C.opts.strictTypes||(z(C,b),C.opts.allowUnionTypes||R(C,b),T(C,C.dataTypes))}function z(C,b){if(!!b.length){if(!C.dataTypes.length){C.dataTypes=b;return}b.forEach(K=>{P(C.dataTypes,K)||v(C,`type "${K}" not allowed by context "${C.dataTypes.join(",")}"`)}),C.dataTypes=C.dataTypes.filter(K=>P(b,K))}}function R(C,b){b.length>1&&!(b.length===2&&b.includes("null"))&&v(C,"use allowUnionTypes to allow union type keyword")}function T(C,b){const K=C.self.RULES.all;for(const J in K){const te=K[J];if(typeof te=="object"&&(0,r.shouldUseRule)(C.schema,te)){const{type:se}=te.definition;se.length&&!se.some(ve=>M(b,ve))&&v(C,`missing type "${se.join(",")}" for keyword "${J}"`)}}}function M(C,b){return C.includes(b)||b==="number"&&C.includes("integer")}function P(C,b){return C.includes(b)||b==="integer"&&C.includes("number")}function v(C,b){b+=` at "${C.schemaEnv.baseId+C.errSchemaPath}" (strictTypes)`,(0,a.checkStrictMode)(C,b,C.opts.strictTypes)}class S{constructor(b,K,J){if((0,s.validateKeywordUsage)(b,K,J),this.gen=b.gen,this.allErrors=b.allErrors,this.keyword=J,this.data=b.data,this.schema=b.schema[J],this.$data=K.$data&&b.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,a.schemaRefOrVal)(b,this.schema,J,this.$data),this.schemaType=K.schemaType,this.parentSchema=b.schema,this.params={},this.it=b,this.def=K,this.$data)this.schemaCode=b.gen.const("vSchema",ae(this.$data,b));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,K.schemaType,K.allowUndefined))throw new Error(`${J} value must be ${JSON.stringify(K.schemaType)}`);("code"in K?K.trackErrors:K.errors!==!1)&&(this.errsCount=b.gen.const("_errs",u.default.errors))}result(b,K,J){this.failResult((0,c.not)(b),K,J)}failResult(b,K,J){this.gen.if(b),J?J():this.error(),K?(this.gen.else(),K(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(b,K){this.failResult((0,c.not)(b),void 0,K)}fail(b){if(b===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(b),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(b){if(!this.$data)return this.fail(b);const{schemaCode:K}=this;this.fail((0,c._)`${K} !== undefined && (${(0,c.or)(this.invalid$data(),b)})`)}error(b,K,J){if(K){this.setParams(K),this._error(b,J),this.setParams({});return}this._error(b,J)}_error(b,K){(b?l.reportExtraError:l.reportError)(this,this.def.error,K)}$dataError(){(0,l.reportError)(this,this.def.$dataError||l.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,l.resetErrorsCount)(this.gen,this.errsCount)}ok(b){this.allErrors||this.gen.if(b)}setParams(b,K){K?Object.assign(this.params,b):this.params=b}block$data(b,K,J=c.nil){this.gen.block(()=>{this.check$data(b,J),K()})}check$data(b=c.nil,K=c.nil){if(!this.$data)return;const{gen:J,schemaCode:te,schemaType:se,def:ve}=this;J.if((0,c.or)((0,c._)`${te} === undefined`,K)),b!==c.nil&&J.assign(b,!0),(se.length||ve.validateSchema)&&(J.elseIf(this.invalid$data()),this.$dataError(),b!==c.nil&&J.assign(b,!1)),J.else()}invalid$data(){const{gen:b,schemaCode:K,schemaType:J,def:te,it:se}=this;return(0,c.or)(ve(),ft());function ve(){if(J.length){if(!(K instanceof c.Name))throw new Error("ajv implementation error");const ze=Array.isArray(J)?J:[J];return(0,c._)`${(0,n.checkDataTypes)(ze,K,se.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function ft(){if(te.validateSchema){const ze=b.scopeValue("validate$data",{ref:te.validateSchema});return(0,c._)`!${ze}(${K})`}return c.nil}}subschema(b,K){const J=(0,o.getSubschema)(this.it,b);(0,o.extendSubschemaData)(J,this.it,b),(0,o.extendSubschemaMode)(J,b);const te={...this.it,...J,items:void 0,props:void 0};return $(te,K),te}mergeEvaluated(b,K){const{it:J,gen:te}=this;!J.opts.unevaluated||(J.props!==!0&&b.props!==void 0&&(J.props=a.mergeEvaluated.props(te,b.props,J.props,K)),J.items!==!0&&b.items!==void 0&&(J.items=a.mergeEvaluated.items(te,b.items,J.items,K)))}mergeValidEvaluated(b,K){const{it:J,gen:te}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return te.if(K,()=>this.mergeEvaluated(b,c.Name)),!0}}zt.KeywordCxt=S;function q(C,b,K,J){const te=new S(C,K,b);"code"in K?K.code(te,J):te.$data&&K.validate?(0,s.funcKeywordCode)(te,K):"macro"in K?(0,s.macroKeywordCode)(te,K):(K.compile||K.validate)&&(0,s.funcKeywordCode)(te,K)}const Y=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(C,{dataLevel:b,dataNames:K,dataPathArr:J}){let te,se;if(C==="")return u.default.rootData;if(C[0]==="/"){if(!Y.test(C))throw new Error(`Invalid JSON-pointer: ${C}`);te=C,se=u.default.rootData}else{const xe=Q.exec(C);if(!xe)throw new Error(`Invalid JSON-pointer: ${C}`);const Ae=+xe[1];if(te=xe[2],te==="#"){if(Ae>=b)throw new Error(ze("property/index",Ae));return J[b-Ae]}if(Ae>b)throw new Error(ze("data",Ae));if(se=K[b-Ae],!te)return se}let ve=se;const ft=te.split("/");for(const xe of ft)xe&&(se=(0,c._)`${se}${(0,c.getProperty)((0,a.unescapeJsonPointer)(xe))}`,ve=(0,c._)`${ve} && ${se}`);return ve;function ze(xe,Ae){return`Cannot access ${xe} ${Ae} levels up, current level is ${b}`}}return zt.getData=ae,zt}var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});class dm extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Ai.default=dm;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});const Qi=Be;class hm extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qi.resolveUrl)(t,r,n),this.missingSchema=(0,Qi.normalizeId)((0,Qi.getFullPath)(t,this.missingRef))}}bi.default=hm;var ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.resolveSchema=ct.getCompilingSchema=ct.resolveRef=ct.compileSchema=ct.SchemaEnv=void 0;const gt=oe,mm=Ai,hr=kt,Ot=Be,Ra=de,pm=Pi();class Li{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={}}}ct.SchemaEnv=Li;function Zs(e){const t=Mu.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:mm.default,code:(0,gt._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const E={gen:o,allErrors:this.opts.allErrors,data:hr.default.data,parentData:hr.default.parentData,parentDataProperty:hr.default.parentDataProperty,dataNames:[hr.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,pm.validateFunctionCode)(E),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(hr.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const d=new Function(`${hr.default.self}`,`${hr.default.scope}`,a)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:m}=E;d.evaluated={props:h instanceof gt.Name?void 0:h,items:m instanceof gt.Name?void 0:m,dynamicProps:h instanceof gt.Name,dynamicItems:m instanceof gt.Name},d.source&&(d.source.evaluated=(0,gt.stringify)(d.evaluated))}return e.validate=d,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)}}ct.compileSchema=Zs;function ym(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=gm.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 Li({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=Em.call(this,s)}ct.resolveRef=ym;function Em(e){return(0,Ot.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Zs.call(this,e)}function Mu(e){for(const t of this._compilations)if(vm(t,e))return t}ct.getCompilingSchema=Mu;function vm(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function gm(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Fi.call(this,e,t)}function Fi(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 es.call(this,r,e);const s=(0,Ot.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=Fi.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:es.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||Zs.call(this,o),s===(0,Ot.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,E=c[u];return E&&(i=(0,Ot.resolveUrl)(this.opts.uriResolver,i,E)),new Li({schema:c,schemaId:u,root:e,baseId:i})}return es.call(this,r,o)}}ct.resolveSchema=Fi;const $m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function es(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,Ra.unescapeFragment)(c)];if(u===void 0)return;r=u;const E=typeof r=="object"&&r[this.opts.schemaId];!$m.has(c)&&E&&(t=(0,Ot.resolveUrl)(this.opts.uriResolver,t,E))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Ra.schemaHasRulesButRef)(r,this.RULES)){const c=(0,Ot.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Fi.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Li({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const _m="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Sm="Meta-schema for $data reference (JSON AnySchema extension proposal)",wm="object",Nm=["$data"],Im={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Om=!1,Tm={$id:_m,description:Sm,type:wm,required:Nm,properties:Im,additionalProperties:Om};var Js={},gs={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)})(er,function(r){function n(){for(var N=arguments.length,_=Array(N),O=0;O<N;O++)_[O]=arguments[O];if(_.length>1){_[0]=_[0].slice(0,-1);for(var U=_.length-1,k=1;k<U;++k)_[k]=_[k].slice(1,-1);return _[U]=_[U].slice(1),_.join("")}else return _[0]}function i(N){return"(?:"+N+")"}function s(N){return N===void 0?"undefined":N===null?"null":Object.prototype.toString.call(N).split(" ").pop().split("]").shift().toLowerCase()}function o(N){return N.toUpperCase()}function c(N){return N!=null?N instanceof Array?N:typeof N.length!="number"||N.split||N.setInterval||N.call?[N]:Array.prototype.slice.call(N):[]}function u(N,_){var O=N;if(_)for(var U in _)O[U]=_[U];return O}function E(N){var _="[A-Za-z]",O="[0-9]",U=n(O,"[A-Fa-f]"),k=i(i("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+i("%[89A-Fa-f]"+U+"%"+U+U)+"|"+i("%"+U+U)),re="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",le=n(re,ne),Se=N?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Re=N?"[\\uE000-\\uF8FF]":"[]",ce=n(_,O,"[\\-\\.\\_\\~]",Se);i(_+n(_,O,"[\\+\\-\\.]")+"*"),i(i(k+"|"+n(ce,ne,"[\\:]"))+"*");var $e=i(i("25[0-5]")+"|"+i("2[0-4]"+O)+"|"+i("1"+O+O)+"|"+i("0?[1-9]"+O)+"|0?0?"+O),Ce=i($e+"\\."+$e+"\\."+$e+"\\."+$e),ie=i(U+"{1,4}"),we=i(i(ie+"\\:"+ie)+"|"+Ce),be=i(i(ie+"\\:")+"{6}"+we),Ne=i("\\:\\:"+i(ie+"\\:")+"{5}"+we),Kt=i(i(ie)+"?\\:\\:"+i(ie+"\\:")+"{4}"+we),At=i(i(i(ie+"\\:")+"{0,1}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{3}"+we),bt=i(i(i(ie+"\\:")+"{0,2}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{2}"+we),Rr=i(i(i(ie+"\\:")+"{0,3}"+ie)+"?\\:\\:"+ie+"\\:"+we),ur=i(i(i(ie+"\\:")+"{0,4}"+ie)+"?\\:\\:"+we),pt=i(i(i(ie+"\\:")+"{0,5}"+ie)+"?\\:\\:"+ie),Lt=i(i(i(ie+"\\:")+"{0,6}"+ie)+"?\\:\\:"),fr=i([be,Ne,Kt,At,bt,Rr,ur,pt,Lt].join("|")),Ut=i(i(ce+"|"+k)+"+");i("[vV]"+U+"+\\."+n(ce,ne,"[\\:]")+"+"),i(i(k+"|"+n(ce,ne))+"*");var an=i(k+"|"+n(ce,ne,"[\\:\\@]"));return i(i(k+"|"+n(ce,ne,"[\\@]"))+"+"),i(i(an+"|"+n("[\\/\\?]",Re))+"*"),{NOT_SCHEME:new RegExp(n("[^]",_,O,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",ce,ne),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",ce,ne),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",ce,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",ce,ne),"g"),NOT_QUERY:new RegExp(n("[^\\%]",ce,ne,"[\\:\\@\\/\\?]",Re),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",ce,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",ce,ne),"g"),UNRESERVED:new RegExp(ce,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",ce,le),"g"),PCT_ENCODED:new RegExp(k,"g"),IPV4ADDRESS:new RegExp("^("+Ce+")$"),IPV6ADDRESS:new RegExp("^\\[?("+fr+")"+i(i("\\%25|\\%(?!"+U+"{2})")+"("+Ut+")")+"?\\]?$")}}var a=E(!1),l=E(!0),p=function(){function N(_,O){var U=[],k=!0,re=!1,ne=void 0;try{for(var le=_[Symbol.iterator](),Se;!(k=(Se=le.next()).done)&&(U.push(Se.value),!(O&&U.length===O));k=!0);}catch(Re){re=!0,ne=Re}finally{try{!k&&le.return&&le.return()}finally{if(re)throw ne}}return U}return function(_,O){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return N(_,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(N){if(Array.isArray(N)){for(var _=0,O=Array(N.length);_<N.length;_++)O[_]=N[_];return O}else return Array.from(N)},h=2147483647,m=36,y=1,f=26,g=38,$=700,w=72,x=128,I="-",D=/^xn--/,V=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=m-y,L=Math.floor,H=String.fromCharCode;function B(N){throw new RangeError(G[N])}function X(N,_){for(var O=[],U=N.length;U--;)O[U]=_(N[U]);return O}function Z(N,_){var O=N.split("@"),U="";O.length>1&&(U=O[0]+"@",N=O[1]),N=N.replace(A,".");var k=N.split("."),re=X(k,_).join(".");return U+re}function W(N){for(var _=[],O=0,U=N.length;O<U;){var k=N.charCodeAt(O++);if(k>=55296&&k<=56319&&O<U){var re=N.charCodeAt(O++);(re&64512)==56320?_.push(((k&1023)<<10)+(re&1023)+65536):(_.push(k),O--)}else _.push(k)}return _}var j=function(_){return String.fromCodePoint.apply(String,d(_))},z=function(_){return _-48<10?_-22:_-65<26?_-65:_-97<26?_-97:m},R=function(_,O){return _+22+75*(_<26)-((O!=0)<<5)},T=function(_,O,U){var k=0;for(_=U?L(_/$):_>>1,_+=L(_/O);_>F*f>>1;k+=m)_=L(_/F);return L(k+(F+1)*_/(_+g))},M=function(_){var O=[],U=_.length,k=0,re=x,ne=w,le=_.lastIndexOf(I);le<0&&(le=0);for(var Se=0;Se<le;++Se)_.charCodeAt(Se)>=128&&B("not-basic"),O.push(_.charCodeAt(Se));for(var Re=le>0?le+1:0;Re<U;){for(var ce=k,$e=1,Ce=m;;Ce+=m){Re>=U&&B("invalid-input");var ie=z(_.charCodeAt(Re++));(ie>=m||ie>L((h-k)/$e))&&B("overflow"),k+=ie*$e;var we=Ce<=ne?y:Ce>=ne+f?f:Ce-ne;if(ie<we)break;var be=m-we;$e>L(h/be)&&B("overflow"),$e*=be}var Ne=O.length+1;ne=T(k-ce,Ne,ce==0),L(k/Ne)>h-re&&B("overflow"),re+=L(k/Ne),k%=Ne,O.splice(k++,0,re)}return String.fromCodePoint.apply(String,O)},P=function(_){var O=[];_=W(_);var U=_.length,k=x,re=0,ne=w,le=!0,Se=!1,Re=void 0;try{for(var ce=_[Symbol.iterator](),$e;!(le=($e=ce.next()).done);le=!0){var Ce=$e.value;Ce<128&&O.push(H(Ce))}}catch(cn){Se=!0,Re=cn}finally{try{!le&&ce.return&&ce.return()}finally{if(Se)throw Re}}var ie=O.length,we=ie;for(ie&&O.push(I);we<U;){var be=h,Ne=!0,Kt=!1,At=void 0;try{for(var bt=_[Symbol.iterator](),Rr;!(Ne=(Rr=bt.next()).done);Ne=!0){var ur=Rr.value;ur>=k&&ur<be&&(be=ur)}}catch(cn){Kt=!0,At=cn}finally{try{!Ne&&bt.return&&bt.return()}finally{if(Kt)throw At}}var pt=we+1;be-k>L((h-re)/pt)&&B("overflow"),re+=(be-k)*pt,k=be;var Lt=!0,fr=!1,Ut=void 0;try{for(var an=_[Symbol.iterator](),Wo;!(Lt=(Wo=an.next()).done);Lt=!0){var Xo=Wo.value;if(Xo<k&&++re>h&&B("overflow"),Xo==k){for(var Un=re,zn=m;;zn+=m){var xn=zn<=ne?y:zn>=ne+f?f:zn-ne;if(Un<xn)break;var Zo=Un-xn,Jo=m-xn;O.push(H(R(xn+Zo%Jo,0))),Un=L(Zo/Jo)}O.push(H(R(Un,0))),ne=T(re,pt,we==ie),re=0,++we}}}catch(cn){fr=!0,Ut=cn}finally{try{!Lt&&an.return&&an.return()}finally{if(fr)throw Ut}}++re,++k}return O.join("")},v=function(_){return Z(_,function(O){return D.test(O)?M(O.slice(4).toLowerCase()):O})},S=function(_){return Z(_,function(O){return V.test(O)?"xn--"+P(O):O})},q={version:"2.1.0",ucs2:{decode:W,encode:j},decode:M,encode:P,toASCII:S,toUnicode:v},Y={};function Q(N){var _=N.charCodeAt(0),O=void 0;return _<16?O="%0"+_.toString(16).toUpperCase():_<128?O="%"+_.toString(16).toUpperCase():_<2048?O="%"+(_>>6|192).toString(16).toUpperCase()+"%"+(_&63|128).toString(16).toUpperCase():O="%"+(_>>12|224).toString(16).toUpperCase()+"%"+(_>>6&63|128).toString(16).toUpperCase()+"%"+(_&63|128).toString(16).toUpperCase(),O}function ae(N){for(var _="",O=0,U=N.length;O<U;){var k=parseInt(N.substr(O+1,2),16);if(k<128)_+=String.fromCharCode(k),O+=3;else if(k>=194&&k<224){if(U-O>=6){var re=parseInt(N.substr(O+4,2),16);_+=String.fromCharCode((k&31)<<6|re&63)}else _+=N.substr(O,6);O+=6}else if(k>=224){if(U-O>=9){var ne=parseInt(N.substr(O+4,2),16),le=parseInt(N.substr(O+7,2),16);_+=String.fromCharCode((k&15)<<12|(ne&63)<<6|le&63)}else _+=N.substr(O,9);O+=9}else _+=N.substr(O,3),O+=3}return _}function C(N,_){function O(U){var k=ae(U);return k.match(_.UNRESERVED)?k:U}return N.scheme&&(N.scheme=String(N.scheme).replace(_.PCT_ENCODED,O).toLowerCase().replace(_.NOT_SCHEME,"")),N.userinfo!==void 0&&(N.userinfo=String(N.userinfo).replace(_.PCT_ENCODED,O).replace(_.NOT_USERINFO,Q).replace(_.PCT_ENCODED,o)),N.host!==void 0&&(N.host=String(N.host).replace(_.PCT_ENCODED,O).toLowerCase().replace(_.NOT_HOST,Q).replace(_.PCT_ENCODED,o)),N.path!==void 0&&(N.path=String(N.path).replace(_.PCT_ENCODED,O).replace(N.scheme?_.NOT_PATH:_.NOT_PATH_NOSCHEME,Q).replace(_.PCT_ENCODED,o)),N.query!==void 0&&(N.query=String(N.query).replace(_.PCT_ENCODED,O).replace(_.NOT_QUERY,Q).replace(_.PCT_ENCODED,o)),N.fragment!==void 0&&(N.fragment=String(N.fragment).replace(_.PCT_ENCODED,O).replace(_.NOT_FRAGMENT,Q).replace(_.PCT_ENCODED,o)),N}function b(N){return N.replace(/^0*(.*)/,"$1")||"0"}function K(N,_){var O=N.match(_.IPV4ADDRESS)||[],U=p(O,2),k=U[1];return k?k.split(".").map(b).join("."):N}function J(N,_){var O=N.match(_.IPV6ADDRESS)||[],U=p(O,3),k=U[1],re=U[2];if(k){for(var ne=k.toLowerCase().split("::").reverse(),le=p(ne,2),Se=le[0],Re=le[1],ce=Re?Re.split(":").map(b):[],$e=Se.split(":").map(b),Ce=_.IPV4ADDRESS.test($e[$e.length-1]),ie=Ce?7:8,we=$e.length-ie,be=Array(ie),Ne=0;Ne<ie;++Ne)be[Ne]=ce[Ne]||$e[we+Ne]||"";Ce&&(be[ie-1]=K(be[ie-1],_));var Kt=be.reduce(function(pt,Lt,fr){if(!Lt||Lt==="0"){var Ut=pt[pt.length-1];Ut&&Ut.index+Ut.length===fr?Ut.length++:pt.push({index:fr,length:1})}return pt},[]),At=Kt.sort(function(pt,Lt){return Lt.length-pt.length})[0],bt=void 0;if(At&&At.length>1){var Rr=be.slice(0,At.index),ur=be.slice(At.index+At.length);bt=Rr.join(":")+"::"+ur.join(":")}else bt=be.join(":");return re&&(bt+="%"+re),bt}else return N}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,se="".match(/(){0}/)[1]===void 0;function ve(N){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O={},U=_.iri!==!1?l:a;_.reference==="suffix"&&(N=(_.scheme?_.scheme+":":"")+"//"+N);var k=N.match(te);if(k){se?(O.scheme=k[1],O.userinfo=k[3],O.host=k[4],O.port=parseInt(k[5],10),O.path=k[6]||"",O.query=k[7],O.fragment=k[8],isNaN(O.port)&&(O.port=k[5])):(O.scheme=k[1]||void 0,O.userinfo=N.indexOf("@")!==-1?k[3]:void 0,O.host=N.indexOf("//")!==-1?k[4]:void 0,O.port=parseInt(k[5],10),O.path=k[6]||"",O.query=N.indexOf("?")!==-1?k[7]:void 0,O.fragment=N.indexOf("#")!==-1?k[8]:void 0,isNaN(O.port)&&(O.port=N.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?k[4]:void 0)),O.host&&(O.host=J(K(O.host,U),U)),O.scheme===void 0&&O.userinfo===void 0&&O.host===void 0&&O.port===void 0&&!O.path&&O.query===void 0?O.reference="same-document":O.scheme===void 0?O.reference="relative":O.fragment===void 0?O.reference="absolute":O.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==O.reference&&(O.error=O.error||"URI is not a "+_.reference+" reference.");var re=Y[(_.scheme||O.scheme||"").toLowerCase()];if(!_.unicodeSupport&&(!re||!re.unicodeSupport)){if(O.host&&(_.domainHost||re&&re.domainHost))try{O.host=q.toASCII(O.host.replace(U.PCT_ENCODED,ae).toLowerCase())}catch(ne){O.error=O.error||"Host's domain name can not be converted to ASCII via punycode: "+ne}C(O,a)}else C(O,U);re&&re.parse&&re.parse(O,_)}else O.error=O.error||"URI can not be parsed.";return O}function ft(N,_){var O=_.iri!==!1?l:a,U=[];return N.userinfo!==void 0&&(U.push(N.userinfo),U.push("@")),N.host!==void 0&&U.push(J(K(String(N.host),O),O).replace(O.IPV6ADDRESS,function(k,re,ne){return"["+re+(ne?"%25"+ne:"")+"]"})),(typeof N.port=="number"||typeof N.port=="string")&&(U.push(":"),U.push(String(N.port))),U.length?U.join(""):void 0}var ze=/^\.\.?\//,xe=/^\/\.(\/|$)/,Ae=/^\/\.\.(\/|$)/,Ht=/^\/?(?:.|\n)*?(?=\/|$)/;function Fe(N){for(var _=[];N.length;)if(N.match(ze))N=N.replace(ze,"");else if(N.match(xe))N=N.replace(xe,"/");else if(N.match(Ae))N=N.replace(Ae,"/"),_.pop();else if(N==="."||N==="..")N="";else{var O=N.match(Ht);if(O){var U=O[0];N=N.slice(U.length),_.push(U)}else throw new Error("Unexpected dot segment condition")}return _.join("")}function st(N){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=_.iri?l:a,U=[],k=Y[(_.scheme||N.scheme||"").toLowerCase()];if(k&&k.serialize&&k.serialize(N,_),N.host&&!O.IPV6ADDRESS.test(N.host)){if(_.domainHost||k&&k.domainHost)try{N.host=_.iri?q.toUnicode(N.host):q.toASCII(N.host.replace(O.PCT_ENCODED,ae).toLowerCase())}catch(le){N.error=N.error||"Host's domain name can not be converted to "+(_.iri?"Unicode":"ASCII")+" via punycode: "+le}}C(N,O),_.reference!=="suffix"&&N.scheme&&(U.push(N.scheme),U.push(":"));var re=ft(N,_);if(re!==void 0&&(_.reference!=="suffix"&&U.push("//"),U.push(re),N.path&&N.path.charAt(0)!=="/"&&U.push("/")),N.path!==void 0){var ne=N.path;!_.absolutePath&&(!k||!k.absolutePath)&&(ne=Fe(ne)),re===void 0&&(ne=ne.replace(/^\/\//,"/%2F")),U.push(ne)}return N.query!==void 0&&(U.push("?"),U.push(N.query)),N.fragment!==void 0&&(U.push("#"),U.push(N.fragment)),U.join("")}function Tr(N,_){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments[3],k={};return U||(N=ve(st(N,O),O),_=ve(st(_,O),O)),O=O||{},!O.tolerant&&_.scheme?(k.scheme=_.scheme,k.userinfo=_.userinfo,k.host=_.host,k.port=_.port,k.path=Fe(_.path||""),k.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(k.userinfo=_.userinfo,k.host=_.host,k.port=_.port,k.path=Fe(_.path||""),k.query=_.query):(_.path?(_.path.charAt(0)==="/"?k.path=Fe(_.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?k.path="/"+_.path:N.path?k.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+_.path:k.path=_.path,k.path=Fe(k.path)),k.query=_.query):(k.path=N.path,_.query!==void 0?k.query=_.query:k.query=N.query),k.userinfo=N.userinfo,k.host=N.host,k.port=N.port),k.scheme=N.scheme),k.fragment=_.fragment,k}function nn(N,_,O){var U=u({scheme:"null"},O);return st(Tr(ve(N,U),ve(_,U),U,!0),U)}function ar(N,_){return typeof N=="string"?N=st(ve(N,_),_):s(N)==="object"&&(N=ve(st(N,_),_)),N}function sn(N,_,O){return typeof N=="string"?N=st(ve(N,O),O):s(N)==="object"&&(N=st(N,O)),typeof _=="string"?_=st(ve(_,O),O):s(_)==="object"&&(_=st(_,O)),N===_}function kn(N,_){return N&&N.toString().replace(!_||!_.iri?a.ESCAPE:l.ESCAPE,Q)}function mt(N,_){return N&&N.toString().replace(!_||!_.iri?a.PCT_ENCODED:l.PCT_ENCODED,ae)}var cr={scheme:"http",domainHost:!0,parse:function(_,O){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_},serialize:function(_,O){var U=String(_.scheme).toLowerCase()==="https";return(_.port===(U?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}},zo={scheme:"https",domainHost:cr.domainHost,parse:cr.parse,serialize:cr.serialize};function xo(N){return typeof N.secure=="boolean"?N.secure:String(N.scheme).toLowerCase()==="wss"}var on={scheme:"ws",domainHost:!0,parse:function(_,O){var U=_;return U.secure=xo(U),U.resourceName=(U.path||"/")+(U.query?"?"+U.query:""),U.path=void 0,U.query=void 0,U},serialize:function(_,O){if((_.port===(xo(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){var U=_.resourceName.split("?"),k=p(U,2),re=k[0],ne=k[1];_.path=re&&re!=="/"?re:void 0,_.query=ne,_.resourceName=void 0}return _.fragment=void 0,_}},Vo={scheme:"wss",domainHost:on.domainHost,parse:on.parse,serialize:on.serialize},cf={},qo="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Pt="[0-9A-Fa-f]",uf=i(i("%[EFef]"+Pt+"%"+Pt+Pt+"%"+Pt+Pt)+"|"+i("%[89A-Fa-f]"+Pt+"%"+Pt+Pt)+"|"+i("%"+Pt+Pt)),ff="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",lf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",df=n(lf,'[\\"\\\\]'),hf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",mf=new RegExp(qo,"g"),Dr=new RegExp(uf,"g"),pf=new RegExp(n("[^]",ff,"[\\.]",'[\\"]',df),"g"),Go=new RegExp(n("[^]",qo,hf),"g"),yf=Go;function Ki(N){var _=ae(N);return _.match(mf)?_:N}var Bo={scheme:"mailto",parse:function(_,O){var U=_,k=U.to=U.path?U.path.split(","):[];if(U.path=void 0,U.query){for(var re=!1,ne={},le=U.query.split("&"),Se=0,Re=le.length;Se<Re;++Se){var ce=le[Se].split("=");switch(ce[0]){case"to":for(var $e=ce[1].split(","),Ce=0,ie=$e.length;Ce<ie;++Ce)k.push($e[Ce]);break;case"subject":U.subject=mt(ce[1],O);break;case"body":U.body=mt(ce[1],O);break;default:re=!0,ne[mt(ce[0],O)]=mt(ce[1],O);break}}re&&(U.headers=ne)}U.query=void 0;for(var we=0,be=k.length;we<be;++we){var Ne=k[we].split("@");if(Ne[0]=mt(Ne[0]),O.unicodeSupport)Ne[1]=mt(Ne[1],O).toLowerCase();else try{Ne[1]=q.toASCII(mt(Ne[1],O).toLowerCase())}catch(Kt){U.error=U.error||"Email address's domain name can not be converted to ASCII via punycode: "+Kt}k[we]=Ne.join("@")}return U},serialize:function(_,O){var U=_,k=c(_.to);if(k){for(var re=0,ne=k.length;re<ne;++re){var le=String(k[re]),Se=le.lastIndexOf("@"),Re=le.slice(0,Se).replace(Dr,Ki).replace(Dr,o).replace(pf,Q),ce=le.slice(Se+1);try{ce=O.iri?q.toUnicode(ce):q.toASCII(mt(ce,O).toLowerCase())}catch(we){U.error=U.error||"Email address's domain name can not be converted to "+(O.iri?"Unicode":"ASCII")+" via punycode: "+we}k[re]=Re+"@"+ce}U.path=k.join(",")}var $e=_.headers=_.headers||{};_.subject&&($e.subject=_.subject),_.body&&($e.body=_.body);var Ce=[];for(var ie in $e)$e[ie]!==cf[ie]&&Ce.push(ie.replace(Dr,Ki).replace(Dr,o).replace(Go,Q)+"="+$e[ie].replace(Dr,Ki).replace(Dr,o).replace(yf,Q));return Ce.length&&(U.query=Ce.join("&")),U}},Ef=/^([^\:]+)\:(.*)/,Ho={scheme:"urn",parse:function(_,O){var U=_.path&&_.path.match(Ef),k=_;if(U){var re=O.scheme||k.scheme||"urn",ne=U[1].toLowerCase(),le=U[2],Se=re+":"+(O.nid||ne),Re=Y[Se];k.nid=ne,k.nss=le,k.path=void 0,Re&&(k=Re.parse(k,O))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function(_,O){var U=O.scheme||_.scheme||"urn",k=_.nid,re=U+":"+(O.nid||k),ne=Y[re];ne&&(_=ne.serialize(_,O));var le=_,Se=_.nss;return le.path=(k||O.nid)+":"+Se,le}},vf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ko={scheme:"urn:uuid",parse:function(_,O){var U=_;return U.uuid=U.nss,U.nss=void 0,!O.tolerant&&(!U.uuid||!U.uuid.match(vf))&&(U.error=U.error||"UUID is not valid."),U},serialize:function(_,O){var U=_;return U.nss=(_.uuid||"").toLowerCase(),U}};Y[cr.scheme]=cr,Y[zo.scheme]=zo,Y[on.scheme]=on,Y[Vo.scheme]=Vo,Y[Bo.scheme]=Bo,Y[Ho.scheme]=Ho,Y[Ko.scheme]=Ko,r.SCHEMES=Y,r.pctEncChar=Q,r.pctDecChars=ae,r.parse=ve,r.removeDotSegments=Fe,r.serialize=st,r.resolveComponents=Tr,r.resolve=nn,r.normalize=ar,r.equal=sn,r.escapeComponent=kn,r.unescapeComponent=mt,Object.defineProperty(r,"__esModule",{value:!0})})})(gs,gs.exports);Object.defineProperty(Js,"__esModule",{value:!0});const ku=gs.exports;ku.code='require("ajv/dist/runtime/uri").default';Js.default=ku;(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=Pi();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=oe;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=Ai,i=bi,s=Sr,o=ct,c=oe,u=Be,E=Dn,a=de,l=Tm,p=Js,d=(R,T)=>new RegExp(R,T);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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.'},g=200;function $(R){var T,M,P,v,S,q,Y,Q,ae,C,b,K,J,te,se,ve,ft,ze,xe,Ae,Ht,Fe,st,Tr,nn;const ar=R.strict,sn=(T=R.code)===null||T===void 0?void 0:T.optimize,kn=sn===!0||sn===void 0?1:sn||0,mt=(P=(M=R.code)===null||M===void 0?void 0:M.regExp)!==null&&P!==void 0?P:d,cr=(v=R.uriResolver)!==null&&v!==void 0?v:p.default;return{strictSchema:(q=(S=R.strictSchema)!==null&&S!==void 0?S:ar)!==null&&q!==void 0?q:!0,strictNumbers:(Q=(Y=R.strictNumbers)!==null&&Y!==void 0?Y:ar)!==null&&Q!==void 0?Q:!0,strictTypes:(C=(ae=R.strictTypes)!==null&&ae!==void 0?ae:ar)!==null&&C!==void 0?C:"log",strictTuples:(K=(b=R.strictTuples)!==null&&b!==void 0?b:ar)!==null&&K!==void 0?K:"log",strictRequired:(te=(J=R.strictRequired)!==null&&J!==void 0?J:ar)!==null&&te!==void 0?te:!1,code:R.code?{...R.code,optimize:kn,regExp:mt}:{optimize:kn,regExp:mt},loopRequired:(se=R.loopRequired)!==null&&se!==void 0?se:g,loopEnum:(ve=R.loopEnum)!==null&&ve!==void 0?ve:g,meta:(ft=R.meta)!==null&&ft!==void 0?ft:!0,messages:(ze=R.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(xe=R.inlineRefs)!==null&&xe!==void 0?xe:!0,schemaId:(Ae=R.schemaId)!==null&&Ae!==void 0?Ae:"$id",addUsedSchema:(Ht=R.addUsedSchema)!==null&&Ht!==void 0?Ht:!0,validateSchema:(Fe=R.validateSchema)!==null&&Fe!==void 0?Fe:!0,validateFormats:(st=R.validateFormats)!==null&&st!==void 0?st:!0,unicodeRegExp:(Tr=R.unicodeRegExp)!==null&&Tr!==void 0?Tr:!0,int32range:(nn=R.int32range)!==null&&nn!==void 0?nn:!0,uriResolver:cr}}class w{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...$(T)};const{es5:M,lines:P}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:m,es5:M,lines:P}),this.logger=L(T.logger);const v=T.validateFormats;T.validateFormats=!1,this.RULES=(0,s.getRules)(),x.call(this,y,T,"NOT SUPPORTED"),x.call(this,f,T,"DEPRECATED","warn"),this._metaOpts=G.call(this),T.formats&&V.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&A.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),D.call(this),T.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:M,schemaId:P}=this.opts;let v=l;P==="id"&&(v={...l},v.id=v.$id,delete v.$id),M&&T&&this.addMetaSchema(v,v[P],!1)}defaultMeta(){const{meta:T,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[M]||T:void 0}validate(T,M){let P;if(typeof T=="string"){if(P=this.getSchema(T),!P)throw new Error(`no schema with key or ref "${T}"`)}else P=this.compile(T);const v=P(M);return"$async"in P||(this.errors=P.errors),v}compile(T,M){const P=this._addSchema(T,M);return P.validate||this._compileSchemaEnv(P)}compileAsync(T,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return v.call(this,T,M);async function v(C,b){await S.call(this,C.$schema);const K=this._addSchema(C,b);return K.validate||q.call(this,K)}async function S(C){C&&!this.getSchema(C)&&await v.call(this,{$ref:C},!0)}async function q(C){try{return this._compileSchemaEnv(C)}catch(b){if(!(b instanceof i.default))throw b;return Y.call(this,b),await Q.call(this,b.missingSchema),q.call(this,C)}}function Y({missingSchema:C,missingRef:b}){if(this.refs[C])throw new Error(`AnySchema ${C} is loaded but ${b} cannot be resolved`)}async function Q(C){const b=await ae.call(this,C);this.refs[C]||await S.call(this,b.$schema),this.refs[C]||this.addSchema(b,C,M)}async function ae(C){const b=this._loading[C];if(b)return b;try{return await(this._loading[C]=P(C))}finally{delete this._loading[C]}}}addSchema(T,M,P,v=this.opts.validateSchema){if(Array.isArray(T)){for(const q of T)this.addSchema(q,void 0,P,v);return this}let S;if(typeof T=="object"){const{schemaId:q}=this.opts;if(S=T[q],S!==void 0&&typeof S!="string")throw new Error(`schema ${q} must be string`)}return M=(0,u.normalizeId)(M||S),this._checkUnique(M),this.schemas[M]=this._addSchema(T,P,M,v,!0),this}addMetaSchema(T,M,P=this.opts.validateSchema){return this.addSchema(T,M,!0,P),this}validateSchema(T,M){if(typeof T=="boolean")return!0;let P;if(P=T.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(P,T);if(!v&&M){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return v}getSchema(T){let M;for(;typeof(M=I.call(this,T))=="string";)T=M;if(M===void 0){const{schemaId:P}=this.opts,v=new o.SchemaEnv({schema:{},schemaId:P});if(M=o.resolveSchema.call(this,v,T),!M)return;this.refs[T]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=I.call(this,T);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const M=T;this._cache.delete(M);let P=T[this.opts.schemaId];return P&&(P=(0,u.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const M of T)this.addKeyword(M);return this}addKeyword(T,M){let P;if(typeof T=="string")P=T,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=P);else if(typeof T=="object"&&M===void 0){if(M=T,P=M.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,P,M),!M)return(0,a.eachItem)(P,S=>X.call(this,S)),this;W.call(this,M);const v={...M,type:(0,E.getJSONTypes)(M.type),schemaType:(0,E.getJSONTypes)(M.schemaType)};return(0,a.eachItem)(P,v.type.length===0?S=>X.call(this,S,v):S=>v.type.forEach(q=>X.call(this,S,v,q))),this}getKeyword(T){const M=this.RULES.all[T];return typeof M=="object"?M.definition:!!M}removeKeyword(T){const{RULES:M}=this;delete M.keywords[T],delete M.all[T];for(const P of M.rules){const v=P.rules.findIndex(S=>S.keyword===T);v>=0&&P.rules.splice(v,1)}return this}addFormat(T,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[T]=M,this}errorsText(T=this.errors,{separator:M=", ",dataVar:P="data"}={}){return!T||T.length===0?"No errors":T.map(v=>`${P}${v.instancePath} ${v.message}`).reduce((v,S)=>v+M+S)}$dataMetaSchema(T,M){const P=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const v of M){const S=v.split("/").slice(1);let q=T;for(const Y of S)q=q[Y];for(const Y in P){const Q=P[Y];if(typeof Q!="object")continue;const{$data:ae}=Q.definition,C=q[Y];ae&&C&&(q[Y]=z(C))}}return T}_removeAllSchemas(T,M){for(const P in T){const v=T[P];(!M||M.test(P))&&(typeof v=="string"?delete T[P]:v&&!v.meta&&(this._cache.delete(v.schema),delete T[P]))}}_addSchema(T,M,P,v=this.opts.validateSchema,S=this.opts.addUsedSchema){let q;const{schemaId:Y}=this.opts;if(typeof T=="object")q=T[Y];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let Q=this._cache.get(T);if(Q!==void 0)return Q;P=(0,u.normalizeId)(q||P);const ae=u.getSchemaRefs.call(this,T,P);return Q=new o.SchemaEnv({schema:T,schemaId:Y,meta:M,baseId:P,localRefs:ae}),this._cache.set(Q.schema,Q),S&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=Q),v&&this.validateSchema(T,!0),Q}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):o.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const M=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,T)}finally{this.opts=M}}}e.default=w,w.ValidationError=n.default,w.MissingRefError=i.default;function x(R,T,M,P="error"){for(const v in R){const S=v;S in T&&this.logger[P](`${M}: option ${v}. ${R[S]}`)}}function I(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 T in R)this.addSchema(R[T],T)}function V(){for(const R in this.opts.formats){const T=this.opts.formats[R];T&&this.addFormat(R,T)}}function A(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in R){const M=R[T];M.keyword||(M.keyword=T),this.addKeyword(M)}}function G(){const R={...this.opts};for(const T of h)delete R[T];return R}const F={log(){},warn(){},error(){}};function L(R){if(R===!1)return F;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 H=/^[a-z_$][a-z0-9_$:-]*$/i;function B(R,T){const{RULES:M}=this;if((0,a.eachItem)(R,P=>{if(M.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!H.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function X(R,T,M){var P;const v=T==null?void 0:T.post;if(M&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let q=v?S.post:S.rules.find(({type:Q})=>Q===M);if(q||(q={type:M,rules:[]},S.rules.push(q)),S.keywords[R]=!0,!T)return;const Y={keyword:R,definition:{...T,type:(0,E.getJSONTypes)(T.type),schemaType:(0,E.getJSONTypes)(T.schemaType)}};T.before?Z.call(this,q,Y,T.before):q.rules.push(Y),S.all[R]=Y,(P=T.implements)===null||P===void 0||P.forEach(Q=>this.addKeyword(Q))}function Z(R,T,M){const P=R.rules.findIndex(v=>v.keyword===M);P>=0?R.rules.splice(P,0,T):(R.rules.push(T),this.logger.warn(`rule ${M} is not defined`))}function W(R){let{metaSchema:T}=R;T!==void 0&&(R.$data&&this.opts.$data&&(T=z(T)),R.validateSchema=this.compile(T,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z(R){return{anyOf:[R,j]}}})(Cu);var Ys={},Qs={},eo={};Object.defineProperty(eo,"__esModule",{value:!0});const Dm={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};eo.default=Dm;var wr={};Object.defineProperty(wr,"__esModule",{value:!0});wr.callRef=wr.getValidate=void 0;const Rm=bi,Ca=Dt(),at=oe,Ar=kt,Pa=ct,Kn=de,Cm={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:E}=s;if((r==="#"||r==="#/")&&i===E.baseId)return l();const a=Pa.resolveRef.call(u,E,i,r);if(a===void 0)throw new Rm.default(n.opts.uriResolver,i,r);if(a instanceof Pa.SchemaEnv)return p(a);return d(a);function l(){if(s===E)return oi(e,o,s,s.$async);const h=t.scopeValue("root",{ref:E});return oi(e,(0,at._)`${h}.validate`,E,E.$async)}function p(h){const m=Uu(e,h);oi(e,m,h,h.$async)}function d(h){const m=t.scopeValue("schema",c.code.source===!0?{ref:h,code:(0,at.stringify)(h)}:{ref:h}),y=t.name("valid"),f=e.subschema({schema:h,dataTypes:[],schemaPath:at.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(f),e.ok(y)}}};function Uu(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,at._)`${r.scopeValue("wrapper",{ref:t})}.validate`}wr.getValidate=Uu;function oi(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,E=u.passContext?Ar.default.this:at.nil;n?a():l();function a(){if(!c.$async)throw new Error("async schema referenced by sync schema");const h=i.let("valid");i.try(()=>{i.code((0,at._)`await ${(0,Ca.callValidateCode)(e,t,E)}`),d(t),o||i.assign(h,!0)},m=>{i.if((0,at._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),p(m),o||i.assign(h,!1)}),e.ok(h)}function l(){e.result((0,Ca.callValidateCode)(e,t,E),()=>d(t),()=>p(t))}function p(h){const m=(0,at._)`${h}.errors`;i.assign(Ar.default.vErrors,(0,at._)`${Ar.default.vErrors} === null ? ${m} : ${Ar.default.vErrors}.concat(${m})`),i.assign(Ar.default.errors,(0,at._)`${Ar.default.vErrors}.length`)}function d(h){var m;if(!s.opts.unevaluated)return;const y=(m=r==null?void 0:r.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=Kn.mergeEvaluated.props(i,y.props,s.props));else{const f=i.var("props",(0,at._)`${h}.evaluated.props`);s.props=Kn.mergeEvaluated.props(i,f,s.props,at.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=Kn.mergeEvaluated.items(i,y.items,s.items));else{const f=i.var("items",(0,at._)`${h}.evaluated.items`);s.items=Kn.mergeEvaluated.items(i,f,s.items,at.Name)}}}wr.callRef=oi;wr.default=Cm;Object.defineProperty(Qs,"__esModule",{value:!0});const Pm=eo,Am=wr,bm=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Pm.default,Am.default];Qs.default=bm;var to={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});const Ei=oe,Xt=Ei.operators,vi={maximum:{okStr:"<=",ok:Xt.LTE,fail:Xt.GT},minimum:{okStr:">=",ok:Xt.GTE,fail:Xt.LT},exclusiveMaximum:{okStr:"<",ok:Xt.LT,fail:Xt.GTE},exclusiveMinimum:{okStr:">",ok:Xt.GT,fail:Xt.LTE}},Lm={message:({keyword:e,schemaCode:t})=>(0,Ei.str)`must be ${vi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ei._)`{comparison: ${vi[e].okStr}, limit: ${t}}`},Fm={keyword:Object.keys(vi),type:"number",schemaType:"number",$data:!0,error:Lm,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ei._)`${r} ${vi[t].fail} ${n} || isNaN(${r})`)}};ro.default=Fm;var no={};Object.defineProperty(no,"__esModule",{value:!0});const En=oe,jm={message:({schemaCode:e})=>(0,En.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,En._)`{multipleOf: ${e}}`},Mm={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:jm,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,En._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,En._)`${o} !== parseInt(${o})`;e.fail$data((0,En._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};no.default=Mm;var io={},so={};Object.defineProperty(so,"__esModule",{value:!0});function zu(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}so.default=zu;zu.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(io,"__esModule",{value:!0});const pr=oe,km=de,Um=so,zm={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,pr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,pr._)`{limit: ${e}}`},xm={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zm,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?pr.operators.GT:pr.operators.LT,o=i.opts.unicode===!1?(0,pr._)`${r}.length`:(0,pr._)`${(0,km.useFunc)(e.gen,Um.default)}(${r})`;e.fail$data((0,pr._)`${o} ${s} ${n}`)}};io.default=xm;var oo={};Object.defineProperty(oo,"__esModule",{value:!0});const Vm=Dt(),gi=oe,qm={message:({schemaCode:e})=>(0,gi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,gi._)`{pattern: ${e}}`},Gm={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:qm,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,gi._)`(new RegExp(${i}, ${o}))`:(0,Vm.usePattern)(e,n);e.fail$data((0,gi._)`!${c}.test(${t})`)}};oo.default=Gm;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});const vn=oe,Bm={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,vn.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,vn._)`{limit: ${e}}`},Hm={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Bm,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?vn.operators.GT:vn.operators.LT;e.fail$data((0,vn._)`Object.keys(${r}).length ${i} ${n}`)}};ao.default=Hm;var co={};Object.defineProperty(co,"__esModule",{value:!0});const fn=Dt(),gn=oe,Km=de,Wm={message:({params:{missingProperty:e}})=>(0,gn.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,gn._)`{missingProperty: ${e}}`},Xm={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Wm,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?E():a(),c.strictRequired){const d=e.parentSchema.properties,{definedProperties:h}=e.it;for(const m of r)if((d==null?void 0:d[m])===void 0&&!h.has(m)){const y=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,Km.checkStrictMode)(o,f,o.opts.strictRequired)}}function E(){if(u||s)e.block$data(gn.nil,l);else for(const d of r)(0,fn.checkReportMissingProp)(e,d)}function a(){const d=t.let("missing");if(u||s){const h=t.let("valid",!0);e.block$data(h,()=>p(d,h)),e.ok(h)}else t.if((0,fn.checkMissingProp)(e,r,d)),(0,fn.reportMissingProp)(e,d),t.else()}function l(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,fn.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}function p(d,h){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(h,(0,fn.propertyInData)(t,i,d,c.ownProperties)),t.if((0,gn.not)(h),()=>{e.error(),t.break()})},gn.nil)}}};co.default=Xm;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});const $n=oe,Zm={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,$n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,$n._)`{limit: ${e}}`},Jm={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Zm,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?$n.operators.GT:$n.operators.LT;e.fail$data((0,$n._)`${r}.length ${i} ${n}`)}};uo.default=Jm;var fo={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const xu=Au;xu.code='require("ajv/dist/runtime/equal").default';Mn.default=xu;Object.defineProperty(fo,"__esModule",{value:!0});const ts=Dn,qe=oe,Ym=de,Qm=Mn,ep={message:({params:{i:e,j:t}})=>(0,qe.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,qe._)`{i: ${e}, j: ${t}}`},tp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ep,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"),E=s.items?(0,ts.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,qe._)`${o} === false`),e.ok(u);function a(){const h=t.let("i",(0,qe._)`${r}.length`),m=t.let("j");e.setParams({i:h,j:m}),t.assign(u,!0),t.if((0,qe._)`${h} > 1`,()=>(l()?p:d)(h,m))}function l(){return E.length>0&&!E.some(h=>h==="object"||h==="array")}function p(h,m){const y=t.name("item"),f=(0,ts.checkDataTypes)(E,y,c.opts.strictNumbers,ts.DataType.Wrong),g=t.const("indices",(0,qe._)`{}`);t.for((0,qe._)`;${h}--;`,()=>{t.let(y,(0,qe._)`${r}[${h}]`),t.if(f,(0,qe._)`continue`),E.length>1&&t.if((0,qe._)`typeof ${y} == "string"`,(0,qe._)`${y} += "_"`),t.if((0,qe._)`typeof ${g}[${y}] == "number"`,()=>{t.assign(m,(0,qe._)`${g}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,qe._)`${g}[${y}] = ${h}`)})}function d(h,m){const y=(0,Ym.useFunc)(t,Qm.default),f=t.name("outer");t.label(f).for((0,qe._)`;${h}--;`,()=>t.for((0,qe._)`${m} = ${h}; ${m}--;`,()=>t.if((0,qe._)`${y}(${r}[${h}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};fo.default=tp;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});const $s=oe,rp=de,np=Mn,ip={message:"must be equal to constant",params:({schemaCode:e})=>(0,$s._)`{allowedValue: ${e}}`},sp={keyword:"const",$data:!0,error:ip,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,$s._)`!${(0,rp.useFunc)(t,np.default)}(${r}, ${i})`):e.fail((0,$s._)`${s} !== ${r}`)}};lo.default=sp;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});const hn=oe,op=de,ap=Mn,cp={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,hn._)`{allowedValues: ${e}}`},up={keyword:"enum",schemaType:"array",$data:!0,error:cp,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 E=()=>u!=null?u:u=(0,op.useFunc)(t,ap.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 d=t.const("vSchema",s);a=(0,hn.or)(...i.map((h,m)=>p(d,m)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,d=>t.if((0,hn._)`${E()}(${r}, ${d})`,()=>t.assign(a,!0).break()))}function p(d,h){const m=i[h];return typeof m=="object"&&m!==null?(0,hn._)`${E()}(${r}, ${d}[${h}])`:(0,hn._)`${r} === ${m}`}}};ho.default=up;Object.defineProperty(to,"__esModule",{value:!0});const fp=ro,lp=no,dp=io,hp=oo,mp=ao,pp=co,yp=uo,Ep=fo,vp=lo,gp=ho,$p=[fp.default,lp.default,dp.default,hp.default,mp.default,pp.default,yp.default,Ep.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},vp.default,gp.default];to.default=$p;var mo={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.validateAdditionalItems=void 0;const yr=oe,_s=de,_p={message:({params:{len:e}})=>(0,yr.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,yr._)`{limit: ${e}}`},Sp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:_p,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,_s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Vu(e,n)}};function Vu(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,yr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,yr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,_s.alwaysValidSchema)(o,n)){const E=r.var("valid",(0,yr._)`${c} <= ${t.length}`);r.if((0,yr.not)(E),()=>u(E)),e.ok(E)}function u(E){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:_s.Type.Num},E),o.allErrors||r.if((0,yr.not)(E),()=>r.break())})}}Qr.validateAdditionalItems=Vu;Qr.default=Sp;var po={},en={};Object.defineProperty(en,"__esModule",{value:!0});en.validateTuple=void 0;const Aa=oe,ai=de,wp=Dt(),Np={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return qu(e,"additionalItems",t);r.items=!0,!(0,ai.alwaysValidSchema)(r,t)&&e.ok((0,wp.validateArray)(e))}};function qu(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=ai.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),E=n.const("len",(0,Aa._)`${s}.length`);r.forEach((l,p)=>{(0,ai.alwaysValidSchema)(c,l)||(n.if((0,Aa._)`${E} > ${p}`,()=>e.subschema({keyword:o,schemaProp:p,dataProp:p},u)),e.ok(u))});function a(l){const{opts:p,errSchemaPath:d}=c,h=r.length,m=h===l.minItems&&(h===l.maxItems||l[t]===!1);if(p.strictTuples&&!m){const y=`"${o}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,ai.checkStrictMode)(c,y,p.strictTuples)}}}en.validateTuple=qu;en.default=Np;Object.defineProperty(po,"__esModule",{value:!0});const Ip=en,Op={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Ip.validateTuple)(e,"items")};po.default=Op;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});const ba=oe,Tp=de,Dp=Dt(),Rp=Qr,Cp={message:({params:{len:e}})=>(0,ba.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ba._)`{limit: ${e}}`},Pp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Cp,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Tp.alwaysValidSchema)(n,t)&&(i?(0,Rp.validateAdditionalItems)(e,i):e.ok((0,Dp.validateArray)(e)))}};yo.default=Pp;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});const yt=oe,Wn=de,Ap={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}}`},bp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ap,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,c;const{minContains:u,maxContains:E}=n;s.opts.next?(o=u===void 0?1:u,c=E):o=1;const a=t.const("len",(0,yt._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,Wn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,Wn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Wn.alwaysValidSchema)(s,r)){let m=(0,yt._)`${a} >= ${o}`;c!==void 0&&(m=(0,yt._)`${m} && ${a} <= ${c}`),e.pass(m);return}s.items=!0;const l=t.name("valid");c===void 0&&o===1?d(l,()=>t.if(l,()=>t.break())):o===0?(t.let(l,!0),c!==void 0&&t.if((0,yt._)`${i}.length > 0`,p)):(t.let(l,!1),p()),e.result(l,()=>e.reset());function p(){const m=t.name("_valid"),y=t.let("count",0);d(m,()=>t.if(m,()=>h(y)))}function d(m,y){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:Wn.Type.Num,compositeRule:!0},m),y()})}function h(m){t.code((0,yt._)`${m}++`),c===void 0?t.if((0,yt._)`${m} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,yt._)`${m} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,yt._)`${m} >= ${o}`,()=>t.assign(l,!0)))}}};Eo.default=bp;var Gu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=oe,r=de,n=Dt();e.error={message:({params:{property:u,depsCount:E,deps:a}})=>{const l=E===1?"property":"properties";return(0,t.str)`must have ${l} ${a} when property ${u} is present`},params:({params:{property:u,depsCount:E,deps:a,missingProperty:l}})=>(0,t._)`{property: ${u},
|
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=Ln.checkPathsSync(e,t,"copy",r);return Ln.checkParentPathsSync(e,n,t,"copy"),id(i,e,t,r)}function id(e,t,r,n){if(n.filter&&!n.filter(t,r))return;const i=bn.dirname(r);return Be.existsSync(i)||td(i),Qc(e,t,r,n)}function sd(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Qc(e,t,r,n)}function Qc(e,t,r,n){const s=(n.dereference?Be.statSync:Be.lstatSync)(t);if(s.isDirectory())return dd(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return od(s,e,t,r,n);if(s.isSymbolicLink())return pd(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 od(e,t,r,n,i){return t?ad(e,r,n,i):eu(e,r,n,i)}function ad(e,t,r,n){if(n.overwrite)return Be.unlinkSync(r),eu(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function eu(e,t,r,n){return Be.copyFileSync(t,r),n.preserveTimestamps&&cd(e.mode,t,r),qs(r,e.mode)}function cd(e,t,r){return ud(e)&&fd(r,e),ld(t,r)}function ud(e){return(e&128)===0}function fd(e,t){return qs(e,t|128)}function qs(e,t){return Be.chmodSync(e,t)}function ld(e,t){const r=Be.statSync(e);return rd(t,r.atime,r.mtime)}function dd(e,t,r,n,i){return t?tu(r,n,i):hd(e.mode,r,n,i)}function hd(e,t,r,n){return Be.mkdirSync(r),tu(t,r,n),qs(r,e)}function tu(e,t,r){Be.readdirSync(e).forEach(n=>md(n,e,t,r))}function md(e,t,r,n){const i=bn.join(t,e),s=bn.join(r,e),{destStat:o}=Ln.checkPathsSync(i,s,"copy",n);return sd(o,i,s,n)}function pd(e,t,r,n){let i=Be.readlinkSync(t);if(n.dereference&&(i=bn.resolve(process.cwd(),i)),e){let s;try{s=Be.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Be.symlinkSync(i,r);throw o}if(n.dereference&&(s=bn.resolve(process.cwd(),s)),Ln.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Be.statSync(r).isDirectory()&&Ln.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return yd(i,r)}else return Be.symlinkSync(i,r)}function yd(e,t){return Be.unlinkSync(t),Be.symlinkSync(e,t)}var Ed=nd;const vd=Je.fromCallback;var Gs={copy:vd(ed),copySync:Ed};const ga=Ye,ru=Ie.default,pe=ks.default,Fn=process.platform==="win32";function nu(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||ga[r],r=r+"Sync",e[r]=e[r]||ga[r]}),e.maxBusyTries=e.maxBusyTries||3}function Bs(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"),nu(t),$a(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(()=>$a(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function $a(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"&&Fn)return _a(e,t,n,r);if(i&&i.isDirectory())return di(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Fn?_a(e,t,s,r):di(e,t,s,r);if(s.code==="EISDIR")return di(e,t,s,r)}return r(s)})})}function _a(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()?di(e,t,r,n):t.unlink(e,n)})})}function Sa(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()?hi(e,t,r):t.unlinkSync(e)}function di(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")?gd(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function gd(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=>{Bs(ru.join(e,c),t,u=>{if(!o){if(u)return r(o=u);--s===0&&t.rmdir(e,r)}})})})}function iu(e,t){let r;t=t||{},nu(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"&&Fn&&Sa(e,t,n)}try{r&&r.isDirectory()?hi(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Fn?Sa(e,t,n):hi(e,t,n);if(n.code!=="EISDIR")throw n;hi(e,t,n)}}function hi(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")$d(e,t);else if(n.code!=="ENOENT")throw n}}function $d(e,t){if(pe(e),pe(t),t.readdirSync(e).forEach(r=>iu(ru.join(e,r),t)),Fn){const r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}var _d=Bs;Bs.sync=iu;const Ni=Ye,Sd=Je.fromCallback,su=_d;function wd(e,t){if(Ni.rm)return Ni.rm(e,{recursive:!0,force:!0},t);su(e,t)}function Nd(e){if(Ni.rmSync)return Ni.rmSync(e,{recursive:!0,force:!0});su.sync(e)}var ki={remove:Sd(wd),removeSync:Nd};const Id=Je.fromPromise,ou=wr,au=Ie.default,cu=Ft,uu=ki,wa=Id(async function(t){let r;try{r=await ou.readdir(t)}catch{return cu.mkdirs(t)}return Promise.all(r.map(n=>uu.remove(au.join(t,n))))});function Na(e){let t;try{t=ou.readdirSync(e)}catch{return cu.mkdirsSync(e)}t.forEach(r=>{r=au.join(e,r),uu.removeSync(r)})}var Od={emptyDirSync:Na,emptydirSync:Na,emptyDir:wa,emptydir:wa};const Td=Je.fromCallback,fu=Ie.default,Yt=Ye,lu=Ft;function Dd(e,t){function r(){Yt.writeFile(e,"",n=>{if(n)return t(n);t()})}Yt.stat(e,(n,i)=>{if(!n&&i.isFile())return t();const s=fu.dirname(e);Yt.stat(s,(o,c)=>{if(o)return o.code==="ENOENT"?lu.mkdirs(s,u=>{if(u)return t(u);r()}):t(o);c.isDirectory()?r():Yt.readdir(s,u=>{if(u)return t(u)})})})}function Rd(e){let t;try{t=Yt.statSync(e)}catch{}if(t&&t.isFile())return;const r=fu.dirname(e);try{Yt.statSync(r).isDirectory()||Yt.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")lu.mkdirsSync(r);else throw n}Yt.writeFileSync(e,"")}var Cd={createFile:Td(Dd),createFileSync:Rd};const Pd=Je.fromCallback,du=Ie.default,Kt=Ye,hu=Ft,Ad=Nr.pathExists,{areIdentical:mu}=rn;function bd(e,t,r){function n(i,s){Kt.link(i,s,o=>{if(o)return r(o);r(null)})}Kt.lstat(t,(i,s)=>{Kt.lstat(e,(o,c)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&mu(c,s))return r(null);const u=du.dirname(t);Ad(u,(m,a)=>{if(m)return r(m);if(a)return n(e,t);hu.mkdirs(u,l=>{if(l)return r(l);n(e,t)})})})})}function Ld(e,t){let r;try{r=Kt.lstatSync(t)}catch{}try{const s=Kt.lstatSync(e);if(r&&mu(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}const n=du.dirname(t);return Kt.existsSync(n)||hu.mkdirsSync(n),Kt.linkSync(e,t)}var Fd={createLink:Pd(bd),createLinkSync:Ld};const Qt=Ie.default,wn=Ye,jd=Nr.pathExists;function Md(e,t,r){if(Qt.isAbsolute(e))return wn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{const n=Qt.dirname(t),i=Qt.join(n,e);return jd(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):wn.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:Qt.relative(n,e)})))}}function kd(e,t){let r;if(Qt.isAbsolute(e)){if(r=wn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=Qt.dirname(t),i=Qt.join(n,e);if(r=wn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=wn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Qt.relative(n,e)}}}var Ud={symlinkPaths:Md,symlinkPathsSync:kd};const pu=Ye;function zd(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);pu.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function xd(e,t){let r;if(t)return t;try{r=pu.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}var Vd={symlinkType:zd,symlinkTypeSync:xd};const qd=Je.fromCallback,yu=Ie.default,gt=wr,Eu=Ft,Gd=Eu.mkdirs,Bd=Eu.mkdirsSync,vu=Ud,Hd=vu.symlinkPaths,Kd=vu.symlinkPathsSync,gu=Vd,Wd=gu.symlinkType,Xd=gu.symlinkTypeSync,Zd=Nr.pathExists,{areIdentical:$u}=rn;function Jd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,gt.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([gt.stat(e),gt.stat(t)]).then(([o,c])=>{if($u(o,c))return n(null);Ia(e,t,r,n)}):Ia(e,t,r,n)})}function Ia(e,t,r,n){Hd(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,Wd(s.toCwd,r,(o,c)=>{if(o)return n(o);const u=yu.dirname(t);Zd(u,(m,a)=>{if(m)return n(m);if(a)return gt.symlink(e,t,c,n);Gd(u,l=>{if(l)return n(l);gt.symlink(e,t,c,n)})})})})}function Yd(e,t,r){let n;try{n=gt.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const c=gt.statSync(e),u=gt.statSync(t);if($u(c,u))return}const i=Kd(e,t);e=i.toDst,r=Xd(i.toCwd,r);const s=yu.dirname(t);return gt.existsSync(s)||Bd(s),gt.symlinkSync(e,t,r)}var Qd={createSymlink:qd(Jd),createSymlinkSync:Yd};const{createFile:Oa,createFileSync:Ta}=Cd,{createLink:Da,createLinkSync:Ra}=Fd,{createSymlink:Ca,createSymlinkSync:Pa}=Qd;var eh={createFile:Oa,createFileSync:Ta,ensureFile:Oa,ensureFileSync:Ta,createLink:Da,createLinkSync:Ra,ensureLink:Da,ensureLinkSync:Ra,createSymlink:Ca,createSymlinkSync:Pa,ensureSymlink:Ca,ensureSymlinkSync:Pa};function th(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 rh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var Hs={stringify:th,stripBom:rh};let Zr;try{Zr=Ye}catch{Zr=tn.default}const Ui=Je,{stringify:_u,stripBom:Su}=Hs;async function nh(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Zr,n="throws"in t?t.throws:!0;let i=await Ui.fromCallback(r.readFile)(e,t);i=Su(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 ih=Ui.fromPromise(nh);function sh(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Zr,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Su(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||Zr,i=_u(t,r);await Ui.fromCallback(n.writeFile)(e,i,r)}const ah=Ui.fromPromise(oh);function ch(e,t,r={}){const n=r.fs||Zr,i=_u(t,r);return n.writeFileSync(e,i,r)}const uh={readFile:ih,readFileSync:sh,writeFile:ah,writeFileSync:ch};var fh=uh;const Qn=fh;var lh={readJson:Qn.readFile,readJsonSync:Qn.readFileSync,writeJson:Qn.writeFile,writeJsonSync:Qn.writeFileSync};const dh=Je.fromCallback,Nn=Ye,wu=Ie.default,Nu=Ft,hh=Nr.pathExists;function mh(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=wu.dirname(e);hh(i,(s,o)=>{if(s)return n(s);if(o)return Nn.writeFile(e,t,r,n);Nu.mkdirs(i,c=>{if(c)return n(c);Nn.writeFile(e,t,r,n)})})}function ph(e,...t){const r=wu.dirname(e);if(Nn.existsSync(r))return Nn.writeFileSync(e,...t);Nu.mkdirsSync(r),Nn.writeFileSync(e,...t)}var Ks={outputFile:dh(mh),outputFileSync:ph};const{stringify:yh}=Hs,{outputFile:Eh}=Ks;async function vh(e,t,r={}){const n=yh(t,r);await Eh(e,n,r)}var gh=vh;const{stringify:$h}=Hs,{outputFileSync:_h}=Ks;function Sh(e,t,r){const n=$h(t,r);_h(e,n,r)}var wh=Sh;const Nh=Je.fromPromise,Ze=lh;Ze.outputJson=Nh(gh);Ze.outputJsonSync=wh;Ze.outputJSON=Ze.outputJson;Ze.outputJSONSync=Ze.outputJsonSync;Ze.writeJSON=Ze.writeJson;Ze.writeJSONSync=Ze.writeJsonSync;Ze.readJSON=Ze.readJson;Ze.readJSONSync=Ze.readJsonSync;var Ih=Ze;const Oh=Ye,Ns=Ie.default,Th=Gs.copy,Iu=ki.remove,Dh=Ft.mkdirp,Rh=Nr.pathExists,Aa=rn;function Ch(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;Aa.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;Aa.checkParentPaths(e,c,t,"move",m=>{if(m)return n(m);if(Ph(t))return ba(e,t,i,u,n);Dh(Ns.dirname(t),a=>a?n(a):ba(e,t,i,u,n))})})}function Ph(e){const t=Ns.dirname(e);return Ns.parse(t).root===t}function ba(e,t,r,n,i){if(n)return as(e,t,r,i);if(r)return Iu(t,s=>s?i(s):as(e,t,r,i));Rh(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):as(e,t,r,i))}function as(e,t,r,n){Oh.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Ah(e,t,r,n):n())}function Ah(e,t,r,n){Th(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Iu(e,n))}var bh=Ch;const Ou=Ye,Is=Ie.default,Lh=Gs.copySync,Tu=ki.removeSync,Fh=Ft.mkdirpSync,La=rn;function jh(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=La.checkPathsSync(e,t,"move",r);return La.checkParentPathsSync(e,i,t,"move"),Mh(t)||Fh(Is.dirname(t)),kh(e,t,n,s)}function Mh(e){const t=Is.dirname(e);return Is.parse(t).root===t}function kh(e,t,r,n){if(n)return cs(e,t,r);if(r)return Tu(t),cs(e,t,r);if(Ou.existsSync(t))throw new Error("dest already exists.");return cs(e,t,r)}function cs(e,t,r){try{Ou.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Uh(e,t,r)}}function Uh(e,t,r){return Lh(e,t,{overwrite:r,errorOnExist:!0}),Tu(e)}var zh=jh;const xh=Je.fromCallback;var Vh={move:xh(bh),moveSync:zh},dt={...wr,...Gs,...Od,...eh,...Ih,...Ft,...Vh,...Ks,...Nr,...ki},Os={exports:{}},qh=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const ur=qh,Gh=new Set(["__proto__","prototype","constructor"]),Bh=e=>!e.some(t=>Gh.has(t));function ei(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 Bh(r)?r:[]}var Hh={get(e,t,r){if(!ur(e)||typeof t!="string")return r===void 0?e:r;const n=ei(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(!ur(e)||typeof t!="string")return e;const n=e,i=ei(t);for(let s=0;s<i.length;s++){const o=i[s];ur(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!ur(e)||typeof t!="string")return!1;const r=ei(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],!ur(e))return!1}},has(e,t){if(!ur(e)||typeof t!="string")return!1;const r=ei(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(ur(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},Ws={exports:{}},Xs={exports:{}},Zs={exports:{}},Js={exports:{}};const Du=tn.default;Js.exports=e=>new Promise(t=>{Du.access(e,r=>{t(!r)})});Js.exports.sync=e=>{try{return Du.accessSync(e),!0}catch{return!1}};var Ys={exports:{}},Qs={exports:{}};const Ru=(e,...t)=>new Promise(r=>{r(e(...t))});Qs.exports=Ru;Qs.exports.default=Ru;const Kh=Qs.exports,Cu=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=Kh(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};Ys.exports=Cu;Ys.exports.default=Cu;const Fa=Ys.exports;class Pu extends Error{constructor(t){super(),this.value=t}}const Wh=(e,t)=>Promise.resolve(e).then(t),Xh=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new Pu(t[0])));var Zh=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=Fa(r.concurrency),i=[...e].map(o=>[o,n(Wh,o,t)]),s=Fa(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(Xh,o))).then(()=>{}).catch(o=>o instanceof Pu?o.value:Promise.reject(o))};const Au=Ie.default,bu=Js.exports,Jh=Zh;Zs.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),Jh(e,r=>bu(Au.resolve(t.cwd,r)),t));Zs.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(bu.sync(Au.resolve(t.cwd,r)))return r};const er=Ie.default,Lu=Zs.exports;Xs.exports=(e,t={})=>{const r=er.resolve(t.cwd||""),{root:n}=er.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){Lu(i,{cwd:c}).then(u=>{u?s(er.join(c,u)):c===n?s(null):o(er.dirname(c))})})(r)})};Xs.exports.sync=(e,t={})=>{let r=er.resolve(t.cwd||"");const{root:n}=er.parse(r),i=[].concat(e);for(;;){const s=Lu.sync(i,{cwd:r});if(s)return er.join(r,s);if(r===n)return null;r=er.dirname(r)}};const Fu=Xs.exports;Ws.exports=async({cwd:e}={})=>Fu("package.json",{cwd:e});Ws.exports.sync=({cwd:e}={})=>Fu.sync("package.json",{cwd:e});var eo={exports:{}};const Ne=Ie.default,ju=ll.default,Wt=ju.homedir(),to=ju.tmpdir(),{env:zr}=process,Yh=e=>{const t=Ne.join(Wt,"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(to,e)}},Qh=e=>{const t=zr.APPDATA||Ne.join(Wt,"AppData","Roaming"),r=zr.LOCALAPPDATA||Ne.join(Wt,"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(to,e)}},em=e=>{const t=Ne.basename(Wt);return{data:Ne.join(zr.XDG_DATA_HOME||Ne.join(Wt,".local","share"),e),config:Ne.join(zr.XDG_CONFIG_HOME||Ne.join(Wt,".config"),e),cache:Ne.join(zr.XDG_CACHE_HOME||Ne.join(Wt,".cache"),e),log:Ne.join(zr.XDG_STATE_HOME||Ne.join(Wt,".local","state"),e),temp:Ne.join(to,t,e)}},Mu=(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"?Yh(e):process.platform==="win32"?Qh(e):em(e)};eo.exports=Mu;eo.exports.default=Mu;var bt={},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 tm="utf8";he.DEFAULT_ENCODING=tm;const rm=438;he.DEFAULT_FILE_MODE=rm;const nm=511;he.DEFAULT_FOLDER_MODE=nm;const im={};he.DEFAULT_READ_OPTIONS=im;const sm={};he.DEFAULT_WRITE_OPTIONS=sm;const om=5e3;he.DEFAULT_TIMEOUT_ASYNC=om;const am=100;he.DEFAULT_TIMEOUT_SYNC=am;const cm=!!process.getuid;he.IS_POSIX=cm;const um=process.getuid?!process.getuid():!1;he.IS_USER_ROOT=um;const fm=128;he.LIMIT_BASENAME_LENGTH=fm;const lm=1e4;he.LIMIT_FILES_DESCRIPTORS=lm;const dm=()=>{};he.NOOP=dm;var zi={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.attemptifySync=Jr.attemptifyAsync=void 0;const ku=he,hm=(e,t=ku.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};Jr.attemptifyAsync=hm;const mm=(e,t=ku.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};Jr.attemptifySync=mm;var ro={};Object.defineProperty(ro,"__esModule",{value:!0});const pm=he,Uu={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!pm.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(!Uu.isChangeErrorOk(e))throw e}};ro.default=Uu;var Yr={},no={};Object.defineProperty(no,"__esModule",{value:!0});const ym=he,Ee={interval:25,intervalId:void 0,limit:ym.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()}}}};no.default=Ee;Object.defineProperty(Yr,"__esModule",{value:!0});Yr.retryifySync=Yr.retryifyAsync=void 0;const Em=no,vm=(e,t)=>function(r){return function n(){return Em.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}))}};Yr.retryifyAsync=vm;const gm=(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}}};Yr.retryifySync=gm;Object.defineProperty(zi,"__esModule",{value:!0});const me=tn.default,He=Fi.default,Ke=Jr,be=ro,tt=Yr,$m={chmodAttempt:Ke.attemptifyAsync(He.promisify(me.chmod),be.default.onChangeError),chownAttempt:Ke.attemptifyAsync(He.promisify(me.chown),be.default.onChangeError),closeAttempt:Ke.attemptifyAsync(He.promisify(me.close)),fsyncAttempt:Ke.attemptifyAsync(He.promisify(me.fsync)),mkdirAttempt:Ke.attemptifyAsync(He.promisify(me.mkdir)),realpathAttempt:Ke.attemptifyAsync(He.promisify(me.realpath)),statAttempt:Ke.attemptifyAsync(He.promisify(me.stat)),unlinkAttempt:Ke.attemptifyAsync(He.promisify(me.unlink)),closeRetry:tt.retryifyAsync(He.promisify(me.close),be.default.isRetriableError),fsyncRetry:tt.retryifyAsync(He.promisify(me.fsync),be.default.isRetriableError),openRetry:tt.retryifyAsync(He.promisify(me.open),be.default.isRetriableError),readFileRetry:tt.retryifyAsync(He.promisify(me.readFile),be.default.isRetriableError),renameRetry:tt.retryifyAsync(He.promisify(me.rename),be.default.isRetriableError),statRetry:tt.retryifyAsync(He.promisify(me.stat),be.default.isRetriableError),writeRetry:tt.retryifyAsync(He.promisify(me.write),be.default.isRetriableError),chmodSyncAttempt:Ke.attemptifySync(me.chmodSync,be.default.onChangeError),chownSyncAttempt:Ke.attemptifySync(me.chownSync,be.default.onChangeError),closeSyncAttempt:Ke.attemptifySync(me.closeSync),mkdirSyncAttempt:Ke.attemptifySync(me.mkdirSync),realpathSyncAttempt:Ke.attemptifySync(me.realpathSync),statSyncAttempt:Ke.attemptifySync(me.statSync),unlinkSyncAttempt:Ke.attemptifySync(me.unlinkSync),closeSyncRetry:tt.retryifySync(me.closeSync,be.default.isRetriableError),fsyncSyncRetry:tt.retryifySync(me.fsyncSync,be.default.isRetriableError),openSyncRetry:tt.retryifySync(me.openSync,be.default.isRetriableError),readFileSyncRetry:tt.retryifySync(me.readFileSync,be.default.isRetriableError),renameSyncRetry:tt.retryifySync(me.renameSync,be.default.isRetriableError),statSyncRetry:tt.retryifySync(me.statSync,be.default.isRetriableError),writeSyncRetry:tt.retryifySync(me.writeSync,be.default.isRetriableError)};zi.default=$m;var io={};Object.defineProperty(io,"__esModule",{value:!0});const _m={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e>"u"};io.default=_m;var so={};Object.defineProperty(so,"__esModule",{value:!0});const ti={},Ts={next:e=>{const t=ti[e];if(!t)return;t.shift();const r=t[0];r?r(()=>Ts.next(e)):delete ti[e]},schedule:e=>new Promise(t=>{let r=ti[e];r||(r=ti[e]=[]),r.push(t),!(r.length>1)&&t(()=>Ts.next(e))})};so.default=Ts;var oo={};Object.defineProperty(oo,"__esModule",{value:!0});const Sm=Ie.default,ja=he,Ma=zi,at={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=at.truncate(t(e));return n in at.store?at.get(e,t,r):(at.store[n]=r,[n,()=>delete at.store[n]])},purge:e=>{!at.store[e]||(delete at.store[e],Ma.default.unlinkAttempt(e))},purgeSync:e=>{!at.store[e]||(delete at.store[e],Ma.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in at.store)at.purgeSync(e)},truncate:e=>{const t=Sm.basename(e);if(t.length<=ja.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-ja.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",at.purgeSyncAll);oo.default=at;Object.defineProperty(bt,"__esModule",{value:!0});bt.writeFileSync=bt.writeFile=bt.readFileSync=bt.readFile=void 0;const zu=Ie.default,ke=he,de=zi,ct=io,wm=so,tr=oo;function xu(e,t=ke.DEFAULT_READ_OPTIONS){var r;if(ct.default.isString(t))return xu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:ke.DEFAULT_TIMEOUT_ASYNC);return de.default.readFileRetry(n)(e,t)}bt.readFile=xu;function Vu(e,t=ke.DEFAULT_READ_OPTIONS){var r;if(ct.default.isString(t))return Vu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:ke.DEFAULT_TIMEOUT_SYNC);return de.default.readFileSyncRetry(n)(e,t)}bt.readFileSync=Vu;const qu=(e,t,r,n)=>{if(ct.default.isFunction(r))return qu(e,t,ke.DEFAULT_WRITE_OPTIONS,r);const i=Gu(e,t,r);return n&&i.then(n,n),i};bt.writeFile=qu;const Gu=async(e,t,r=ke.DEFAULT_WRITE_OPTIONS)=>{var n;if(ct.default.isString(r))return Gu(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:ke.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,m=null;try{r.schedule&&(s=await r.schedule(e)),o=await wm.default.schedule(e),e=await de.default.realpathAttempt(e)||e,[u,c]=tr.default.get(e,r.tmpCreate||tr.default.create,r.tmpPurge!==!1);const a=ke.IS_POSIX&&ct.default.isUndefined(r.chown),l=ct.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=zu.dirname(e);await de.default.mkdirAttempt(v,{mode:ke.DEFAULT_FOLDER_MODE,recursive:!0}),m=await de.default.openRetry(i)(u,"w",r.mode||ke.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),ct.default.isString(t)?await de.default.writeRetry(i)(m,t,0,r.encoding||ke.DEFAULT_ENCODING):ct.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,tr.default.truncate(e))}c(),u=null}finally{m&&await de.default.closeAttempt(m),u&&tr.default.purge(u),s&&s(),o&&o()}},Bu=(e,t,r=ke.DEFAULT_WRITE_OPTIONS)=>{var n;if(ct.default.isString(r))return Bu(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:ke.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=de.default.realpathSyncAttempt(e)||e,[o,s]=tr.default.get(e,r.tmpCreate||tr.default.create,r.tmpPurge!==!1);const u=ke.IS_POSIX&&ct.default.isUndefined(r.chown),m=ct.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=zu.dirname(e);de.default.mkdirSyncAttempt(a,{mode:ke.DEFAULT_FOLDER_MODE,recursive:!0}),c=de.default.openSyncRetry(i)(o,"w",r.mode||ke.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),ct.default.isString(t)?de.default.writeSyncRetry(i)(c,t,0,r.encoding||ke.DEFAULT_ENCODING):ct.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,tr.default.truncate(e))}s(),o=null}finally{c&&de.default.closeSyncAttempt(c),o&&tr.default.purge(o)}};bt.writeFileSync=Bu;var Ii={exports:{}},Hu={},_t={},Qr={},Gn={},re={},jn={};(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((_,D)=>`${_}${D}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((_,D)=>(D instanceof r&&(_[D.str]=(_[D.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(f,...$){const _=[f[0]];let D=0;for(;D<$.length;)c(_,$[D]),_.push(f[++D]);return new n(_)}e._=i;const s=new n("+");function o(f,...$){const _=[h(f[0])];let D=0;for(;D<$.length;)_.push(s),c(_,$[D]),_.push(s,h(f[++D]));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 E(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=E;function p(f){return new n(f.toString())}e.regexpCode=p})(jn);var Ds={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=jn;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 E=this._values[h];if(E){const $=E.get(d);if($)return $}else E=this._values[h]=new Map;E.set(d,v);const p=this._scope[h]||(this._scope[h]=[]),f=p.length;return p[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 E=m[d];if(!E)continue;const p=l[d]=l[d]||new Map;E.forEach(f=>{if(p.has(f))return;p.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);p.set(f,n.Completed)})}return h}}e.ValueScope=c})(Ds);(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=jn,r=Ds;var n=jn;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=Ds;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,U){super(),this.varKind=y,this.name=S,this.rhs=U}render({es5:y,_n:S}){const U=y?r.varKinds.var:this.varKind,W=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${W};`+S}optimizeNames(y,S){if(!!y[this.name.str])return this.rhs&&(this.rhs=q(this.rhs,y,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(y,S,U){super(),this.lhs=y,this.rhs=S,this.sideEffects=U}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=q(this.rhs,y,S),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return B(y,this.rhs)}}class u extends c{constructor(y,S,U,W){super(y,U,W),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=q(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,U)=>S+U.render(y),"")}optimizeNodes(){const{nodes:y}=this;let S=y.length;for(;S--;){const U=y[S].optimizeNodes();Array.isArray(U)?y.splice(S,1,...U):U?y[S]=U:y.splice(S,1)}return y.length>0?this:void 0}optimizeNames(y,S){const{nodes:U}=this;let W=U.length;for(;W--;){const X=U[W];X.optimizeNames(y,S)||(H(y,X.names),U.splice(W,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((y,S)=>A(y,S.names),{})}}class d extends h{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class E extends h{}class p extends d{}p.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 U=S.optimizeNodes();S=this.else=Array.isArray(U)?new p(U):U}if(S)return y===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(K(y),S instanceof f?[S]:S.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,S){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(y,S),!!(super.optimizeNames(y,S)||this.else))return this.condition=q(this.condition,y,S),this}get names(){const y=super.names;return B(y,this.condition),this.else&&A(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=q(this.iteration,y,S),this}get names(){return A(super.names,this.iteration.names)}}class D extends ${constructor(y,S,U,W){super(),this.varKind=y,this.name=S,this.from=U,this.to=W}render(y){const S=y.es5?r.varKinds.var:this.varKind,{name:U,from:W,to:X}=this;return`for(${S} ${U}=${W}; ${U}<${X}; ${U}++)`+super.render(y)}get names(){const y=B(super.names,this.from);return B(y,this.to)}}class x extends ${constructor(y,S,U,W){super(),this.loop=y,this.varKind=S,this.name=U,this.iterable=W}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=q(this.iterable,y,S),this}get names(){return A(super.names,this.iterable.names)}}class T extends d{constructor(y,S,U){super(),this.name=y,this.args=S,this.async=U}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}T.kind="func";class R extends h{render(y){return"return "+super.render(y)}}R.kind="return";class z 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 U,W;return super.optimizeNames(y,S),(U=this.catch)===null||U===void 0||U.optimizeNames(y,S),(W=this.finally)===null||W===void 0||W.optimizeNames(y,S),this}get names(){const y=super.names;return this.catch&&A(y,this.catch.names),this.finally&&A(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 V extends d{render(y){return"finally"+super.render(y)}}V.kind="finally";class M{constructor(y,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
8
|
+
`:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new E]}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 U=this._extScope.value(y,S);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}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,U,W){const X=this._scope.toName(S);return U!==void 0&&W&&(this._constants[X.str]=U),this._leafNode(new o(y,X,U)),X}const(y,S,U){return this._def(r.varKinds.const,y,S,U)}let(y,S,U){return this._def(r.varKinds.let,y,S,U)}var(y,S,U){return this._def(r.varKinds.var,y,S,U)}assign(y,S,U){return this._leafNode(new c(y,S,U))}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[U,W]of y)S.length>1&&S.push(","),S.push(U),(U!==W||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,W));return S.push("}"),new t._Code(S)}if(y,S,U){if(this._blockNode(new f(y)),S&&U)this.code(S).else().code(U).endIf();else if(S)this.code(S).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new f(y))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(f,p)}_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,U,W,X=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(y);return this._for(new D(X,ie,S,U),()=>W(ie))}forOf(y,S,U,W=r.varKinds.const){const X=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(X,(0,t._)`${ie}[${ae}]`),U(X)})}return this._for(new x("of",W,X,S),()=>U(X))}forIn(y,S,U,W=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${S})`,U);const X=this._scope.toName(y);return this._for(new x("in",W,X,S),()=>U(X))}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 R;if(this._blockNode(S),this.code(y),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(R)}try(y,S,U){if(!S&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const W=new z;if(this._blockNode(W),this.code(y),S){const X=this.name("e");this._currNode=W.catch=new P(X),S(X)}return U&&(this._currNode=W.finally=new V,this.code(U)),this._endBlockNode(P,V)}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 U=this._nodes.length-S;if(U<0||y!==void 0&&U!==y)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${y} expected`);return this._nodes.length=S,this}func(y,S=t.nil,U,W){return this._blockNode(new T(y,S,U)),W&&this.code(W).endFunc(),this}endFunc(){return this._endBlockNode(T)}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 U=this._currNode;if(U instanceof y||S&&U 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=M;function A(C,y){for(const S in y)C[S]=(C[S]||0)+(y[S]||0);return C}function B(C,y){return y instanceof t._CodeOrName?A(C,y.names):C}function q(C,y,S){if(C instanceof t.Name)return U(C);if(!W(C))return C;return new t._Code(C._items.reduce((X,ie)=>(ie instanceof t.Name&&(ie=U(ie)),ie instanceof t._Code?X.push(...ie._items):X.push(ie),X),[]));function U(X){const ie=S[X.str];return ie===void 0||y[X.str]!==1?X:(delete y[X.str],ie)}function W(X){return X instanceof t._Code&&X._items.some(ie=>ie instanceof t.Name&&y[ie.str]===1&&S[ie.str]!==void 0)}}function H(C,y){for(const S in y)C[S]=(C[S]||0)-(y[S]||0)}function K(C){return typeof C=="boolean"||typeof C=="number"||C===null?!C:(0,t._)`!${F(C)}`}e.not=K;const G=I(e.operators.AND);function b(...C){return C.reduce(G)}e.and=b;const k=I(e.operators.OR);function O(...C){return C.reduce(k)}e.or=O;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 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=re,r=jn;function n(T){const R={};for(const z of T)R[z]=!0;return R}e.toHash=n;function i(T,R){return typeof R=="boolean"?R:Object.keys(R).length===0?!0:(s(T,R),!o(R,T.self.RULES.all))}e.alwaysValidSchema=i;function s(T,R=T.schema){const{opts:z,self:P}=T;if(!z.strictSchema||typeof R=="boolean")return;const V=P.RULES.keywords;for(const M in R)V[M]||x(T,`unknown keyword: "${M}"`)}e.checkUnknownRules=s;function o(T,R){if(typeof T=="boolean")return!T;for(const z in T)if(R[z])return!0;return!1}e.schemaHasRules=o;function c(T,R){if(typeof T=="boolean")return!T;for(const z in T)if(z!=="$ref"&&R.all[z])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:T,schemaPath:R},z,P,V){if(!V){if(typeof z=="number"||typeof z=="boolean")return z;if(typeof z=="string")return(0,t._)`${z}`}return(0,t._)`${T}${R}${(0,t.getProperty)(P)}`}e.schemaRefOrVal=u;function m(T){return v(decodeURIComponent(T))}e.unescapeFragment=m;function a(T){return encodeURIComponent(l(T))}e.escapeFragment=a;function l(T){return typeof T=="number"?`${T}`:T.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function v(T){return T.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=v;function h(T,R){if(Array.isArray(T))for(const z of T)R(z);else R(T)}e.eachItem=h;function d({mergeNames:T,mergeToName:R,mergeValues:z,resultToName:P}){return(V,M,A,B)=>{const q=A===void 0?M:A instanceof t.Name?(M instanceof t.Name?T(V,M,A):R(V,M,A),A):M instanceof t.Name?(R(V,A,M),M):z(M,A);return B===t.Name&&!(q instanceof t.Name)?P(V,q):q}}e.mergeEvaluated={props:d({mergeNames:(T,R,z)=>T.if((0,t._)`${z} !== true && ${R} !== undefined`,()=>{T.if((0,t._)`${R} === true`,()=>T.assign(z,!0),()=>T.assign(z,(0,t._)`${z} || {}`).code((0,t._)`Object.assign(${z}, ${R})`))}),mergeToName:(T,R,z)=>T.if((0,t._)`${z} !== true`,()=>{R===!0?T.assign(z,!0):(T.assign(z,(0,t._)`${z} || {}`),p(T,z,R))}),mergeValues:(T,R)=>T===!0?!0:{...T,...R},resultToName:E}),items:d({mergeNames:(T,R,z)=>T.if((0,t._)`${z} !== true && ${R} !== undefined`,()=>T.assign(z,(0,t._)`${R} === true ? true : ${z} > ${R} ? ${z} : ${R}`)),mergeToName:(T,R,z)=>T.if((0,t._)`${z} !== true`,()=>T.assign(z,R===!0?!0:(0,t._)`${z} > ${R} ? ${z} : ${R}`)),mergeValues:(T,R)=>T===!0?!0:Math.max(T,R),resultToName:(T,R)=>T.var("items",R)})};function E(T,R){if(R===!0)return T.var("props",!0);const z=T.var("props",(0,t._)`{}`);return R!==void 0&&p(T,z,R),z}e.evaluatedPropsToName=E;function p(T,R,z){Object.keys(z).forEach(P=>T.assign((0,t._)`${R}${(0,t.getProperty)(P)}`,!0))}e.setEvaluated=p;const f={};function $(T,R){return T.scopeValue("func",{ref:R,code:f[R.code]||(f[R.code]=new r._Code(R.code))})}e.useFunc=$;var _;(function(T){T[T.Num=0]="Num",T[T.Str=1]="Str"})(_=e.Type||(e.Type={}));function D(T,R,z){if(T instanceof t.Name){const P=R===_.Num;return z?P?(0,t._)`"[" + ${T} + "]"`:(0,t._)`"['" + ${T} + "']"`:P?(0,t._)`"/" + ${T}`:(0,t._)`"/" + ${T}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return z?(0,t.getProperty)(T).toString():"/"+l(T)}e.getErrorPath=D;function x(T,R,z=T.opts.strictSchema){if(!!z){if(R=`strict mode: ${R}`,z===!0)throw new Error(R);T.self.logger.warn(R)}}e.checkStrictMode=x})(fe);var jt={};Object.defineProperty(jt,"__esModule",{value:!0});const qe=re,Nm={data:new qe.Name("data"),valCxt:new qe.Name("valCxt"),instancePath:new qe.Name("instancePath"),parentData:new qe.Name("parentData"),parentDataProperty:new qe.Name("parentDataProperty"),rootData:new qe.Name("rootData"),dynamicAnchors:new qe.Name("dynamicAnchors"),vErrors:new qe.Name("vErrors"),errors:new qe.Name("errors"),this:new qe.Name("this"),self:new qe.Name("self"),scope:new qe.Name("scope"),json:new qe.Name("json"),jsonPos:new qe.Name("jsonPos"),jsonLen:new qe.Name("jsonLen"),jsonPart:new qe.Name("jsonPart")};jt.default=Nm;(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=fe,n=jt;e.keywordError={message:({keyword:p})=>(0,t.str)`must pass "${p}" keyword validation`},e.keyword$DataError={message:({keyword:p,schemaType:f})=>f?(0,t.str)`"${p}" keyword must be ${f} ($data)`:(0,t.str)`"${p}" keyword is invalid ($data)`};function i(p,f=e.keywordError,$,_){const{it:D}=p,{gen:x,compositeRule:T,allErrors:R}=D,z=l(p,f,$);(_!=null?_:T||R)?u(x,z):m(D,(0,t._)`[${z}]`)}e.reportError=i;function s(p,f=e.keywordError,$){const{it:_}=p,{gen:D,compositeRule:x,allErrors:T}=_,R=l(p,f,$);u(D,R),x||T||m(_,n.default.vErrors)}e.reportExtraError=s;function o(p,f){p.assign(n.default.errors,f),p.if((0,t._)`${n.default.vErrors} !== null`,()=>p.if(f,()=>p.assign((0,t._)`${n.default.vErrors}.length`,f),()=>p.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:p,keyword:f,schemaValue:$,data:_,errsCount:D,it:x}){if(D===void 0)throw new Error("ajv implementation error");const T=p.name("err");p.forRange("i",D,n.default.errors,R=>{p.const(T,(0,t._)`${n.default.vErrors}[${R}]`),p.if((0,t._)`${T}.instancePath === undefined`,()=>p.assign((0,t._)`${T}.instancePath`,(0,t.strConcat)(n.default.instancePath,x.errorPath))),p.assign((0,t._)`${T}.schemaPath`,(0,t.str)`${x.errSchemaPath}/${f}`),x.opts.verbose&&(p.assign((0,t._)`${T}.schema`,$),p.assign((0,t._)`${T}.data`,_))})}e.extendErrors=c;function u(p,f){const $=p.const("err",f);p.if((0,t._)`${n.default.vErrors} === null`,()=>p.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),p.code((0,t._)`${n.default.errors}++`)}function m(p,f){const{gen:$,validateName:_,schemaEnv:D}=p;D.$async?$.throw((0,t._)`new ${p.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(p,f,$){const{createErrors:_}=p.it;return _===!1?(0,t._)`{}`:v(p,f,$)}function v(p,f,$={}){const{gen:_,it:D}=p,x=[h(D,$),d(p,$)];return E(p,f,x),_.object(...x)}function h({errorPath:p},{instancePath:f}){const $=f?(0,t.str)`${p}${(0,r.getErrorPath)(f,r.Type.Str)}`:p;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function d({keyword:p,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:_}){let D=_?f:(0,t.str)`${f}/${p}`;return $&&(D=(0,t.str)`${D}${(0,r.getErrorPath)($,r.Type.Str)}`),[a.schemaPath,D]}function E(p,{params:f,message:$},_){const{keyword:D,data:x,schemaValue:T,it:R}=p,{opts:z,propertyName:P,topSchemaRef:V,schemaPath:M}=R;_.push([a.keyword,D],[a.params,typeof f=="function"?f(p):f||(0,t._)`{}`]),z.messages&&_.push([a.message,typeof $=="function"?$(p):$]),z.verbose&&_.push([a.schema,T],[a.parentSchema,(0,t._)`${V}${M}`],[n.default.data,x]),P&&_.push([a.propertyName,P])}})(Gn);Object.defineProperty(Qr,"__esModule",{value:!0});Qr.boolOrEmptySchema=Qr.topBoolOrEmptySchema=void 0;const Im=Gn,Om=re,Tm=jt,Dm={message:"boolean schema is false"};function Rm(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Ku(e,!1):typeof r=="object"&&r.$async===!0?t.return(Tm.default.data):(t.assign((0,Om._)`${n}.errors`,null),t.return(!0))}Qr.topBoolOrEmptySchema=Rm;function Cm(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Ku(e)):r.var(t,!0)}Qr.boolOrEmptySchema=Cm;function Ku(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,Im.reportError)(i,Dm,void 0,t)}var Bn={},$r={};Object.defineProperty($r,"__esModule",{value:!0});$r.getRules=$r.isJSONType=void 0;const Pm=["string","number","integer","boolean","null","object","array"],Am=new Set(Pm);function bm(e){return typeof e=="string"&&Am.has(e)}$r.isJSONType=bm;function Lm(){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:{}}}$r.getRules=Lm;var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.shouldUseRule=xt.shouldUseGroup=xt.schemaHasRulesForType=void 0;function Fm({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Wu(e,n)}xt.schemaHasRulesForType=Fm;function Wu(e,t){return t.rules.some(r=>Xu(e,r))}xt.shouldUseGroup=Wu;function Xu(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))}xt.shouldUseRule=Xu;(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=$r,r=xt,n=Gn,i=re,s=fe;var o;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c(_){const D=u(_.type);if(D.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!D.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&D.push("null")}return D}e.getSchemaTypes=c;function u(_){const D=Array.isArray(_)?_:_?[_]:[];if(D.every(t.isJSONType))return D;throw new Error("type must be JSONType or JSONType[]: "+D.join(","))}e.getJSONTypes=u;function m(_,D){const{gen:x,data:T,opts:R}=_,z=l(D,R.coerceTypes),P=D.length>0&&!(z.length===0&&D.length===1&&(0,r.schemaHasRulesForType)(_,D[0]));if(P){const V=E(D,T,R.strictNumbers,o.Wrong);x.if(V,()=>{z.length?v(_,D,z):f(_)})}return P}e.coerceAndCheckDataType=m;const a=new Set(["string","number","integer","boolean","null"]);function l(_,D){return D?_.filter(x=>a.has(x)||D==="array"&&x==="array"):[]}function v(_,D,x){const{gen:T,data:R,opts:z}=_,P=T.let("dataType",(0,i._)`typeof ${R}`),V=T.let("coerced",(0,i._)`undefined`);z.coerceTypes==="array"&&T.if((0,i._)`${P} == 'object' && Array.isArray(${R}) && ${R}.length == 1`,()=>T.assign(R,(0,i._)`${R}[0]`).assign(P,(0,i._)`typeof ${R}`).if(E(D,R,z.strictNumbers),()=>T.assign(V,R))),T.if((0,i._)`${V} !== undefined`);for(const A of x)(a.has(A)||A==="array"&&z.coerceTypes==="array")&&M(A);T.else(),f(_),T.endIf(),T.if((0,i._)`${V} !== undefined`,()=>{T.assign(R,V),h(_,V)});function M(A){switch(A){case"string":T.elseIf((0,i._)`${P} == "number" || ${P} == "boolean"`).assign(V,(0,i._)`"" + ${R}`).elseIf((0,i._)`${R} === null`).assign(V,(0,i._)`""`);return;case"number":T.elseIf((0,i._)`${P} == "boolean" || ${R} === null
|
|
9
|
+
|| (${P} == "string" && ${R} && ${R} == +${R})`).assign(V,(0,i._)`+${R}`);return;case"integer":T.elseIf((0,i._)`${P} === "boolean" || ${R} === null
|
|
10
|
+
|| (${P} === "string" && ${R} && ${R} == +${R} && !(${R} % 1))`).assign(V,(0,i._)`+${R}`);return;case"boolean":T.elseIf((0,i._)`${R} === "false" || ${R} === 0 || ${R} === null`).assign(V,!1).elseIf((0,i._)`${R} === "true" || ${R} === 1`).assign(V,!0);return;case"null":T.elseIf((0,i._)`${R} === "" || ${R} === 0 || ${R} === false`),T.assign(V,null);return;case"array":T.elseIf((0,i._)`${P} === "string" || ${P} === "number"
|
|
11
|
+
|| ${P} === "boolean" || ${R} === null`).assign(V,(0,i._)`[${R}]`)}}}function h({gen:_,parentData:D,parentDataProperty:x},T){_.if((0,i._)`${D} !== undefined`,()=>_.assign((0,i._)`${D}[${x}]`,T))}function d(_,D,x,T=o.Correct){const R=T===o.Correct?i.operators.EQ:i.operators.NEQ;let z;switch(_){case"null":return(0,i._)`${D} ${R} null`;case"array":z=(0,i._)`Array.isArray(${D})`;break;case"object":z=(0,i._)`${D} && typeof ${D} == "object" && !Array.isArray(${D})`;break;case"integer":z=P((0,i._)`!(${D} % 1) && !isNaN(${D})`);break;case"number":z=P();break;default:return(0,i._)`typeof ${D} ${R} ${_}`}return T===o.Correct?z:(0,i.not)(z);function P(V=i.nil){return(0,i.and)((0,i._)`typeof ${D} == "number"`,V,x?(0,i._)`isFinite(${D})`:i.nil)}}e.checkDataType=d;function E(_,D,x,T){if(_.length===1)return d(_[0],D,x,T);let R;const z=(0,s.toHash)(_);if(z.array&&z.object){const P=(0,i._)`typeof ${D} != "object"`;R=z.null?P:(0,i._)`!${D} || ${P}`,delete z.null,delete z.array,delete z.object}else R=i.nil;z.number&&delete z.integer;for(const P in z)R=(0,i.and)(R,d(P,D,x,T));return R}e.checkDataTypes=E;const p={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:D})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${D}}`};function f(_){const D=$(_);(0,n.reportError)(D,p)}e.reportTypeError=f;function $(_){const{gen:D,data:x,schema:T}=_,R=(0,s.schemaRefOrVal)(_,T,"type");return{gen:D,keyword:"type",data:x,schema:T.type,schemaCode:R,schemaValue:R,parentSchema:T,params:{},it:_}}})(Bn);var xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.assignDefaults=void 0;const Lr=re,jm=fe;function Mm(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)ka(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>ka(e,s,i.default))}xi.assignDefaults=Mm;function ka(e,t,r){const{gen:n,compositeRule:i,data:s,opts:o}=e;if(r===void 0)return;const c=(0,Lr._)`${s}${(0,Lr.getProperty)(t)}`;if(i){(0,jm.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Lr._)`${c} === undefined`;o.useDefaults==="empty"&&(u=(0,Lr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Lr._)`${c} = ${(0,Lr.stringify)(r)}`)}var Lt={},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 ge=re,ao=fe,Bt=jt,km=fe;function Um(e,t){const{gen:r,data:n,it:i}=e;r.if(uo(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ge._)`${t}`},!0),e.error()})}ne.checkReportMissingProp=Um;function zm({gen:e,data:t,it:{opts:r}},n,i){return(0,ge.or)(...n.map(s=>(0,ge.and)(uo(e,t,s,r.ownProperties),(0,ge._)`${i} = ${s}`)))}ne.checkMissingProp=zm;function xm(e,t){e.setParams({missingProperty:t},!0),e.error()}ne.reportMissingProp=xm;function Zu(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ge._)`Object.prototype.hasOwnProperty`})}ne.hasPropFunc=Zu;function co(e,t,r){return(0,ge._)`${Zu(e)}.call(${t}, ${r})`}ne.isOwnProperty=co;function Vm(e,t,r,n){const i=(0,ge._)`${t}${(0,ge.getProperty)(r)} !== undefined`;return n?(0,ge._)`${i} && ${co(e,t,r)}`:i}ne.propertyInData=Vm;function uo(e,t,r,n){const i=(0,ge._)`${t}${(0,ge.getProperty)(r)} === undefined`;return n?(0,ge.or)(i,(0,ge.not)(co(e,t,r))):i}ne.noPropertyInData=uo;function Ju(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ne.allSchemaProperties=Ju;function qm(e,t){return Ju(t).filter(r=>!(0,ao.alwaysValidSchema)(e,t[r]))}ne.schemaProperties=qm;function Gm({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=[[Bt.default.instancePath,(0,ge.strConcat)(Bt.default.instancePath,s)],[Bt.default.parentData,o.parentData],[Bt.default.parentDataProperty,o.parentDataProperty],[Bt.default.rootData,Bt.default.rootData]];o.opts.dynamicRef&&l.push([Bt.default.dynamicAnchors,Bt.default.dynamicAnchors]);const v=(0,ge._)`${a}, ${r.object(...l)}`;return u!==ge.nil?(0,ge._)`${c}.call(${u}, ${v})`:(0,ge._)`${c}(${v})`}ne.callValidateCode=Gm;const Bm=(0,ge._)`new RegExp`;function Hm({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"?Bm:(0,km.useFunc)(e,i)}(${r}, ${n})`})}ne.usePattern=Hm;function Km(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:ao.Type.Num},s),t.if((0,ge.not)(s),c)})}}ne.validateArray=Km;function Wm(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,ao.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))}ne.validateUnion=Wm;Object.defineProperty(Lt,"__esModule",{value:!0});Lt.validateKeywordUsage=Lt.validSchemaType=Lt.funcKeywordCode=Lt.macroKeywordCode=void 0;const We=re,dr=jt,Xm=ne,Zm=Gn;function Jm(e,t){const{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=e,c=t.macro.call(o.self,i,s,o),u=Yu(r,n,c);o.opts.validateSchema!==!1&&o.self.validateSchema(c,!0);const m=r.name("valid");e.subschema({schema:c,schemaPath:We.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},m),e.pass(m,()=>e.error(!0))}Lt.macroKeywordCode=Jm;function Ym(e,t){var r;const{gen:n,keyword:i,schema:s,parentSchema:o,$data:c,it:u}=e;ep(u,t);const m=!c&&t.compile?t.compile.call(u.self,s,o,u):t.validate,a=Yu(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)E(),t.modifying&&Ua(e),p(()=>e.error());else{const f=t.async?h():d();t.modifying&&Ua(e),p(()=>Qm(e,f))}}function h(){const f=n.let("ruleErrs",null);return n.try(()=>E((0,We._)`await `),$=>n.assign(l,!1).if((0,We._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(f,(0,We._)`${$}.errors`),()=>n.throw($))),f}function d(){const f=(0,We._)`${a}.errors`;return n.assign(f,null),E(We.nil),f}function E(f=t.async?(0,We._)`await `:We.nil){const $=u.opts.passContext?dr.default.this:dr.default.self,_=!("compile"in t&&!c||t.schema===!1);n.assign(l,(0,We._)`${f}${(0,Xm.callValidateCode)(e,a,$,_)}`,t.modifying)}function p(f){var $;n.if((0,We.not)(($=t.valid)!==null&&$!==void 0?$:l),f)}}Lt.funcKeywordCode=Ym;function Ua(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,We._)`${n.parentData}[${n.parentDataProperty}]`))}function Qm(e,t){const{gen:r}=e;r.if((0,We._)`Array.isArray(${t})`,()=>{r.assign(dr.default.vErrors,(0,We._)`${dr.default.vErrors} === null ? ${t} : ${dr.default.vErrors}.concat(${t})`).assign(dr.default.errors,(0,We._)`${dr.default.vErrors}.length`),(0,Zm.extendErrors)(e)},()=>e.error())}function ep({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Yu(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,We.stringify)(r)})}function tp(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>"u")}Lt.validSchemaType=tp;function rp({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)}}Lt.validateKeywordUsage=rp;var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.extendSubschemaMode=nr.extendSubschemaData=nr.getSubschema=void 0;const At=re,Qu=fe;function np(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,At._)`${e.schemaPath}${(0,At.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,At._)`${e.schemaPath}${(0,At.getProperty)(t)}${(0,At.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Qu.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')}nr.getSubschema=np;function ip(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,At._)`${t.data}${(0,At.getProperty)(r)}`,!0);u(v),e.errorPath=(0,At.str)`${m}${(0,Qu.getErrorPath)(r,n,l.jsPropertySyntax)}`,e.parentDataProperty=(0,At._)`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(i!==void 0){const m=i instanceof At.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]}}nr.extendSubschemaData=ip;function sp(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}nr.extendSubschemaMode=sp;var Ue={},ef=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},tf={exports:{}},rr=tf.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(){};mi(t,n,i,e,"",e)};rr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};rr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};rr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};rr.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 mi(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 rr.arrayKeywords)for(var v=0;v<l.length;v++)mi(e,t,r,l[v],i+"/"+a+"/"+v,s,i,a,n,v)}else if(a in rr.propsKeywords){if(l&&typeof l=="object")for(var h in l)mi(e,t,r,l[h],i+"/"+a+"/"+op(h),s,i,a,n,h)}else(a in rr.keywords||e.allKeys&&!(a in rr.skipKeywords))&&mi(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(Ue,"__esModule",{value:!0});Ue.getSchemaRefs=Ue.resolveUrl=Ue.normalizeId=Ue._getFullPath=Ue.getFullPath=Ue.inlineRef=void 0;const ap=fe,cp=ef,up=tf.exports,fp=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function lp(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Rs(e):t?rf(e)<=t:!1}Ue.inlineRef=lp;const dp=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Rs(e){for(const t in e){if(dp.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Rs)||typeof r=="object"&&Rs(r))return!0}return!1}function rf(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!fp.has(r)&&(typeof e[r]=="object"&&(0,ap.eachItem)(e[r],n=>t+=rf(n)),t===1/0))return 1/0}return t}function nf(e,t="",r){r!==!1&&(t=qr(t));const n=e.parse(t);return sf(e,n)}Ue.getFullPath=nf;function sf(e,t){return e.serialize(t).split("#")[0]+"#"}Ue._getFullPath=sf;const hp=/#\/?$/;function qr(e){return e?e.replace(hp,""):""}Ue.normalizeId=qr;function mp(e,t,r){return r=qr(r),e.resolve(t,r)}Ue.resolveUrl=mp;const pp=/^[a-z_][-a-z0-9._]*$/i;function yp(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=qr(e[r]||t),s={"":i},o=nf(n,i,!1),c={},u=new Set;return up(e,{allKeys:!0},(l,v,h,d)=>{if(d===void 0)return;const E=o+v;let p=s[d];typeof l[r]=="string"&&(p=f.call(this,l[r])),$.call(this,l.$anchor),$.call(this,l.$dynamicAnchor),s[v]=p;function f(_){const D=this.opts.uriResolver.resolve;if(_=qr(p?D(p,_):_),u.has(_))throw a(_);u.add(_);let x=this.refs[_];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?m(l,x.schema,_):_!==qr(E)&&(_[0]==="#"?(m(l,c[_],_),c[_]=l):this.refs[_]=E),_}function $(_){if(typeof _=="string"){if(!pp.test(_))throw new Error(`invalid anchor "${_}"`);f.call(this,`#${_}`)}}}),c;function m(l,v,h){if(v!==void 0&&!cp(l,v))throw a(h)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}Ue.getSchemaRefs=yp;Object.defineProperty(_t,"__esModule",{value:!0});_t.getData=_t.KeywordCxt=_t.validateFunctionCode=void 0;const of=Qr,za=Bn,fo=xt,Oi=Bn,Ep=xi,In=Lt,us=nr,J=re,ee=jt,vp=Ue,Vt=fe,En=Gn;function gp(e){if(uf(e)&&(ff(e),cf(e))){Sp(e);return}af(e,()=>(0,of.topBoolOrEmptySchema)(e))}_t.validateFunctionCode=gp;function af({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,J._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{e.code((0,J._)`"use strict"; ${xa(r,i)}`),_p(e,i),e.code(s)}):e.func(t,(0,J._)`${ee.default.data}, ${$p(i)}`,n.$async,()=>e.code(xa(r,i)).code(s))}function $p(e){return(0,J._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${e.dynamicRef?(0,J._)`, ${ee.default.dynamicAnchors}={}`:J.nil}}={}`}function _p(e,t){e.if(ee.default.valCxt,()=>{e.var(ee.default.instancePath,(0,J._)`${ee.default.valCxt}.${ee.default.instancePath}`),e.var(ee.default.parentData,(0,J._)`${ee.default.valCxt}.${ee.default.parentData}`),e.var(ee.default.parentDataProperty,(0,J._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),e.var(ee.default.rootData,(0,J._)`${ee.default.valCxt}.${ee.default.rootData}`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,J._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{e.var(ee.default.instancePath,(0,J._)`""`),e.var(ee.default.parentData,(0,J._)`undefined`),e.var(ee.default.parentDataProperty,(0,J._)`undefined`),e.var(ee.default.rootData,ee.default.data),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,J._)`{}`)})}function Sp(e){const{schema:t,opts:r,gen:n}=e;af(e,()=>{r.$comment&&t.$comment&&df(e),Tp(e),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),r.unevaluated&&wp(e),lf(e),Cp(e)})}function wp(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,J._)`${r}.evaluated`),t.if((0,J._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,J._)`${e.evaluated}.props`,(0,J._)`undefined`)),t.if((0,J._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,J._)`${e.evaluated}.items`,(0,J._)`undefined`))}function xa(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,J._)`/*# sourceURL=${r} */`:J.nil}function Np(e,t){if(uf(e)&&(ff(e),cf(e))){Ip(e,t);return}(0,of.boolOrEmptySchema)(e,t)}function cf({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 uf(e){return typeof e.schema!="boolean"}function Ip(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&df(e),Dp(e),Rp(e);const s=n.const("_errs",ee.default.errors);lf(e,s),n.var(t,(0,J._)`${s} === ${ee.default.errors}`)}function ff(e){(0,Vt.checkUnknownRules)(e),Op(e)}function lf(e,t){if(e.opts.jtd)return Va(e,[],!1,t);const r=(0,za.getSchemaTypes)(e.schema),n=(0,za.coerceAndCheckDataType)(e,r);Va(e,r,!n,t)}function Op(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Vt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Tp(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Vt.checkStrictMode)(e,"default is ignored in the schema root")}function Dp(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,vp.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Rp(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function df({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const s=r.$comment;if(i.$comment===!0)e.code((0,J._)`${ee.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,J.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,J._)`${ee.default.self}.opts.$comment(${s}, ${o}, ${c}.schema)`)}}function Cp(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,J._)`${ee.default.errors} === 0`,()=>t.return(ee.default.data),()=>t.throw((0,J._)`new ${i}(${ee.default.vErrors})`)):(t.assign((0,J._)`${n}.errors`,ee.default.vErrors),s.unevaluated&&Pp(e),t.return((0,J._)`${ee.default.errors} === 0`))}function Pp({gen:e,evaluated:t,props:r,items:n}){r instanceof J.Name&&e.assign((0,J._)`${t}.props`,r),n instanceof J.Name&&e.assign((0,J._)`${t}.items`,n)}function Va(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,Vt.schemaHasRulesButRef)(s,a))){i.block(()=>mf(e,"$ref",a.all.$ref.definition));return}u.jtd||Ap(e,t),i.block(()=>{for(const v of a.rules)l(v);l(a.post)});function l(v){!(0,fo.shouldUseGroup)(s,v)||(v.type?(i.if((0,Oi.checkDataType)(v.type,o,u.strictNumbers)),qa(e,v),t.length===1&&t[0]===v.type&&r&&(i.else(),(0,Oi.reportTypeError)(e)),i.endIf()):qa(e,v),c||i.if((0,J._)`${ee.default.errors} === ${n||0}`))}}function qa(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Ep.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,fo.shouldUseRule)(n,s)&&mf(e,s.keyword,s.definition,t.type)})}function Ap(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(bp(e,t),e.opts.allowUnionTypes||Lp(e,t),Fp(e,e.dataTypes))}function bp(e,t){if(!!t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Ga(e.dataTypes,r)||lo(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>Ga(t,r))}}function Lp(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&lo(e,"use allowUnionTypes to allow union type keyword")}function Fp(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,fo.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>jp(t,o))&&lo(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function jp(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Ga(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function lo(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,Vt.checkStrictMode)(e,t,e.opts.strictTypes)}class hf{constructor(t,r,n){if((0,In.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,Vt.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",pf(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,In.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",ee.default.errors))}result(t,r,n){this.failResult((0,J.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,J.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,J._)`${r} !== undefined && (${(0,J.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?En.reportExtraError:En.reportError)(this,this.def.error,r)}$dataError(){(0,En.reportError)(this,this.def.$dataError||En.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,En.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=J.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=J.nil,r=J.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,J.or)((0,J._)`${i} === undefined`,r)),t!==J.nil&&n.assign(t,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==J.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,J.or)(o(),c());function o(){if(n.length){if(!(r instanceof J.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,J._)`${(0,Oi.checkDataTypes)(u,r,s.opts.strictNumbers,Oi.DataType.Wrong)}`}return J.nil}function c(){if(i.validateSchema){const u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,J._)`!${u}(${r})`}return J.nil}}subschema(t,r){const n=(0,us.getSubschema)(this.it,t);(0,us.extendSubschemaData)(n,this.it,t),(0,us.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return Np(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&t.props!==void 0&&(n.props=Vt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Vt.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,J.Name)),!0}}_t.KeywordCxt=hf;function mf(e,t,r,n){const i=new hf(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,In.funcKeywordCode)(i,r):"macro"in r?(0,In.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,In.funcKeywordCode)(i,r)}const Mp=/^\/(?:[^~]|~0|~1)*$/,kp=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function pf(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ee.default.rootData;if(e[0]==="/"){if(!Mp.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ee.default.rootData}else{const m=kp.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,J._)`${s}${(0,J.getProperty)((0,Vt.unescapeJsonPointer)(m))}`,o=(0,J._)`${o} && ${s}`);return o;function u(m,a){return`Cannot access ${m} ${a} levels up, current level is ${t}`}}_t.getData=pf;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});class Up extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Vi.default=Up;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});const fs=Ue;class zp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,fs.resolveUrl)(t,r,n),this.missingSchema=(0,fs.normalizeId)((0,fs.getFullPath)(t,this.missingRef))}}qi.default=zp;var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.resolveSchema=nt.getCompilingSchema=nt.resolveRef=nt.compileSchema=nt.SchemaEnv=void 0;const ht=re,xp=Vi,fr=jt,$t=Ue,Ba=fe,Vp=_t;class Gi{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,$t.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={}}}nt.SchemaEnv=Gi;function ho(e){const t=yf.call(this,e);if(t)return t;const r=(0,$t.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new ht.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let c;e.$async&&(c=o.scopeValue("Error",{ref:xp.default,code:(0,ht._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const m={gen:o,allErrors:this.opts.allErrors,data:fr.default.data,parentData:fr.default.parentData,parentDataProperty:fr.default.parentDataProperty,dataNames:[fr.default.data],dataPathArr:[ht.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ht.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ht.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ht._)`""`,opts:this.opts,self:this};let a;try{this._compilations.add(e),(0,Vp.validateFunctionCode)(m),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(fr.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const h=new Function(`${fr.default.self}`,`${fr.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:E}=m;h.evaluated={props:d instanceof ht.Name?void 0:d,items:E instanceof ht.Name?void 0:E,dynamicProps:d instanceof ht.Name,dynamicItems:E instanceof ht.Name},h.source&&(h.source.evaluated=(0,ht.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)}}nt.compileSchema=ho;function qp(e,t,r){var n;r=(0,$t.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=Hp.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 Gi({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=Gp.call(this,s)}nt.resolveRef=qp;function Gp(e){return(0,$t.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ho.call(this,e)}function yf(e){for(const t of this._compilations)if(Bp(t,e))return t}nt.getCompilingSchema=yf;function Bp(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Hp(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Bi.call(this,e,t)}function Bi(e,t){const r=this.opts.uriResolver.parse(t),n=(0,$t._getFullPath)(this.opts.uriResolver,r);let i=(0,$t.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return ls.call(this,r,e);const s=(0,$t.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=Bi.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:ls.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||ho.call(this,o),s===(0,$t.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,m=c[u];return m&&(i=(0,$t.resolveUrl)(this.opts.uriResolver,i,m)),new Gi({schema:c,schemaId:u,root:e,baseId:i})}return ls.call(this,r,o)}}nt.resolveSchema=Bi;const Kp=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ls(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,Ba.unescapeFragment)(c)];if(u===void 0)return;r=u;const m=typeof r=="object"&&r[this.opts.schemaId];!Kp.has(c)&&m&&(t=(0,$t.resolveUrl)(this.opts.uriResolver,t,m))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Ba.schemaHasRulesButRef)(r,this.RULES)){const c=(0,$t.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Bi.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Gi({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const Wp="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Xp="Meta-schema for $data reference (JSON AnySchema extension proposal)",Zp="object",Jp=["$data"],Yp={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Qp=!1,ey={$id:Wp,description:Xp,type:Zp,required:Jp,properties:Yp,additionalProperties:Qp};var mo={},Cs={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)})(Jt,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 j=g.length-1,L=1;L<j;++L)g[L]=g[L].slice(1,-1);return g[j]=g[j].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 j in g)N[j]=g[j];return N}function m(w){var g="[A-Za-z]",N="[0-9]",j=n(N,"[A-Fa-f]"),L=i(i("%[EFef]"+j+"%"+j+j+"%"+j+j)+"|"+i("%[89A-Fa-f]"+j+"%"+j+j)+"|"+i("%"+j+j)),Y="[\\:\\/\\?\\#\\[\\]\\@]",Q="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ue=n(Y,Q),ve=w?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Te=w?"[\\uE000-\\uF8FF]":"[]",se=n(g,N,"[\\-\\.\\_\\~]",ve);i(g+n(g,N,"[\\+\\-\\.]")+"*"),i(i(L+"|"+n(se,Q,"[\\:]"))+"*");var ye=i(i("25[0-5]")+"|"+i("2[0-4]"+N)+"|"+i("1"+N+N)+"|"+i("0?[1-9]"+N)+"|0?0?"+N),De=i(ye+"\\."+ye+"\\."+ye+"\\."+ye),te=i(j+"{1,4}"),$e=i(i(te+"\\:"+te)+"|"+De),Ce=i(i(te+"\\:")+"{6}"+$e),_e=i("\\:\\:"+i(te+"\\:")+"{5}"+$e),qt=i(i(te)+"?\\:\\:"+i(te+"\\:")+"{4}"+$e),Dt=i(i(i(te+"\\:")+"{0,1}"+te)+"?\\:\\:"+i(te+"\\:")+"{3}"+$e),Rt=i(i(i(te+"\\:")+"{0,2}"+te)+"?\\:\\:"+i(te+"\\:")+"{2}"+$e),Pr=i(i(i(te+"\\:")+"{0,3}"+te)+"?\\:\\:"+te+"\\:"+$e),ar=i(i(i(te+"\\:")+"{0,4}"+te)+"?\\:\\:"+$e),ft=i(i(i(te+"\\:")+"{0,5}"+te)+"?\\:\\:"+te),Ct=i(i(i(te+"\\:")+"{0,6}"+te)+"?\\:\\:"),cr=i([Ce,_e,qt,Dt,Rt,Pr,ar,ft,Ct].join("|")),Mt=i(i(se+"|"+L)+"+");i("[vV]"+j+"+\\."+n(se,Q,"[\\:]")+"+"),i(i(L+"|"+n(se,Q))+"*");var pn=i(L+"|"+n(se,Q,"[\\:\\@]"));return i(i(L+"|"+n(se,Q,"[\\@]"))+"+"),i(i(pn+"|"+n("[\\/\\?]",Te))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,N,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",se,Q),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",se,Q),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",se,Q),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",se,Q),"g"),NOT_QUERY:new RegExp(n("[^\\%]",se,Q,"[\\:\\@\\/\\?]",Te),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",se,Q,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",se,Q),"g"),UNRESERVED:new RegExp(se,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",se,ue),"g"),PCT_ENCODED:new RegExp(L,"g"),IPV4ADDRESS:new RegExp("^("+De+")$"),IPV6ADDRESS:new RegExp("^\\[?("+cr+")"+i(i("\\%25|\\%(?!"+j+"{2})")+"("+Mt+")")+"?\\]?$")}}var a=m(!1),l=m(!0),v=function(){function w(g,N){var j=[],L=!0,Y=!1,Q=void 0;try{for(var ue=g[Symbol.iterator](),ve;!(L=(ve=ue.next()).done)&&(j.push(ve.value),!(N&&j.length===N));L=!0);}catch(Te){Y=!0,Q=Te}finally{try{!L&&ue.return&&ue.return()}finally{if(Y)throw Q}}return j}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,E=36,p=1,f=26,$=38,_=700,D=72,x=128,T="-",R=/^xn--/,z=/[^\0-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,V={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=E-p,A=Math.floor,B=String.fromCharCode;function q(w){throw new RangeError(V[w])}function H(w,g){for(var N=[],j=w.length;j--;)N[j]=g(w[j]);return N}function K(w,g){var N=w.split("@"),j="";N.length>1&&(j=N[0]+"@",w=N[1]),w=w.replace(P,".");var L=w.split("."),Y=H(L,g).join(".");return j+Y}function G(w){for(var g=[],N=0,j=w.length;N<j;){var L=w.charCodeAt(N++);if(L>=55296&&L<=56319&&N<j){var Y=w.charCodeAt(N++);(Y&64512)==56320?g.push(((L&1023)<<10)+(Y&1023)+65536):(g.push(L),N--)}else g.push(L)}return g}var b=function(g){return String.fromCodePoint.apply(String,h(g))},k=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:E},O=function(g,N){return g+22+75*(g<26)-((N!=0)<<5)},I=function(g,N,j){var L=0;for(g=j?A(g/_):g>>1,g+=A(g/N);g>M*f>>1;L+=E)g=A(g/M);return A(L+(M+1)*g/(g+$))},F=function(g){var N=[],j=g.length,L=0,Y=x,Q=D,ue=g.lastIndexOf(T);ue<0&&(ue=0);for(var ve=0;ve<ue;++ve)g.charCodeAt(ve)>=128&&q("not-basic"),N.push(g.charCodeAt(ve));for(var Te=ue>0?ue+1:0;Te<j;){for(var se=L,ye=1,De=E;;De+=E){Te>=j&&q("invalid-input");var te=k(g.charCodeAt(Te++));(te>=E||te>A((d-L)/ye))&&q("overflow"),L+=te*ye;var $e=De<=Q?p:De>=Q+f?f:De-Q;if(te<$e)break;var Ce=E-$e;ye>A(d/Ce)&&q("overflow"),ye*=Ce}var _e=N.length+1;Q=I(L-se,_e,se==0),A(L/_e)>d-Y&&q("overflow"),Y+=A(L/_e),L%=_e,N.splice(L++,0,Y)}return String.fromCodePoint.apply(String,N)},C=function(g){var N=[];g=G(g);var j=g.length,L=x,Y=0,Q=D,ue=!0,ve=!1,Te=void 0;try{for(var se=g[Symbol.iterator](),ye;!(ue=(ye=se.next()).done);ue=!0){var De=ye.value;De<128&&N.push(B(De))}}catch(yn){ve=!0,Te=yn}finally{try{!ue&&se.return&&se.return()}finally{if(ve)throw Te}}var te=N.length,$e=te;for(te&&N.push(T);$e<j;){var Ce=d,_e=!0,qt=!1,Dt=void 0;try{for(var Rt=g[Symbol.iterator](),Pr;!(_e=(Pr=Rt.next()).done);_e=!0){var ar=Pr.value;ar>=L&&ar<Ce&&(Ce=ar)}}catch(yn){qt=!0,Dt=yn}finally{try{!_e&&Rt.return&&Rt.return()}finally{if(qt)throw Dt}}var ft=$e+1;Ce-L>A((d-Y)/ft)&&q("overflow"),Y+=(Ce-L)*ft,L=Ce;var Ct=!0,cr=!1,Mt=void 0;try{for(var pn=g[Symbol.iterator](),fa;!(Ct=(fa=pn.next()).done);Ct=!0){var la=fa.value;if(la<L&&++Y>d&&q("overflow"),la==L){for(var Wn=Y,Xn=E;;Xn+=E){var Zn=Xn<=Q?p:Xn>=Q+f?f:Xn-Q;if(Wn<Zn)break;var da=Wn-Zn,ha=E-Zn;N.push(B(O(Zn+da%ha,0))),Wn=A(da/ha)}N.push(B(O(Wn,0))),Q=I(Y,ft,$e==te),Y=0,++$e}}}catch(yn){cr=!0,Mt=yn}finally{try{!Ct&&pn.return&&pn.return()}finally{if(cr)throw Mt}}++Y,++L}return N.join("")},y=function(g){return K(g,function(N){return R.test(N)?F(N.slice(4).toLowerCase()):N})},S=function(g){return K(g,function(N){return z.test(N)?"xn--"+C(N):N})},U={version:"2.1.0",ucs2:{decode:G,encode:b},decode:F,encode:C,toASCII:S,toUnicode:y},W={};function X(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,j=w.length;N<j;){var L=parseInt(w.substr(N+1,2),16);if(L<128)g+=String.fromCharCode(L),N+=3;else if(L>=194&&L<224){if(j-N>=6){var Y=parseInt(w.substr(N+4,2),16);g+=String.fromCharCode((L&31)<<6|Y&63)}else g+=w.substr(N,6);N+=6}else if(L>=224){if(j-N>=9){var Q=parseInt(w.substr(N+4,2),16),ue=parseInt(w.substr(N+7,2),16);g+=String.fromCharCode((L&15)<<12|(Q&63)<<6|ue&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(j){var L=ie(j);return L.match(g.UNRESERVED)?L:j}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,X).replace(g.PCT_ENCODED,o)),w.host!==void 0&&(w.host=String(w.host).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_HOST,X).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,X).replace(g.PCT_ENCODED,o)),w.query!==void 0&&(w.query=String(w.query).replace(g.PCT_ENCODED,N).replace(g.NOT_QUERY,X).replace(g.PCT_ENCODED,o)),w.fragment!==void 0&&(w.fragment=String(w.fragment).replace(g.PCT_ENCODED,N).replace(g.NOT_FRAGMENT,X).replace(g.PCT_ENCODED,o)),w}function Oe(w){return w.replace(/^0*(.*)/,"$1")||"0"}function It(w,g){var N=w.match(g.IPV4ADDRESS)||[],j=v(N,2),L=j[1];return L?L.split(".").map(Oe).join("."):w}function Ir(w,g){var N=w.match(g.IPV6ADDRESS)||[],j=v(N,3),L=j[1],Y=j[2];if(L){for(var Q=L.toLowerCase().split("::").reverse(),ue=v(Q,2),ve=ue[0],Te=ue[1],se=Te?Te.split(":").map(Oe):[],ye=ve.split(":").map(Oe),De=g.IPV4ADDRESS.test(ye[ye.length-1]),te=De?7:8,$e=ye.length-te,Ce=Array(te),_e=0;_e<te;++_e)Ce[_e]=se[_e]||ye[$e+_e]||"";De&&(Ce[te-1]=It(Ce[te-1],g));var qt=Ce.reduce(function(ft,Ct,cr){if(!Ct||Ct==="0"){var Mt=ft[ft.length-1];Mt&&Mt.index+Mt.length===cr?Mt.length++:ft.push({index:cr,length:1})}return ft},[]),Dt=qt.sort(function(ft,Ct){return Ct.length-ft.length})[0],Rt=void 0;if(Dt&&Dt.length>1){var Pr=Ce.slice(0,Dt.index),ar=Ce.slice(Dt.index+Dt.length);Rt=Pr.join(":")+"::"+ar.join(":")}else Rt=Ce.join(":");return Y&&(Rt+="%"+Y),Rt}else return w}var cn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,un="".match(/(){0}/)[1]===void 0;function st(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},j=g.iri!==!1?l:a;g.reference==="suffix"&&(w=(g.scheme?g.scheme+":":"")+"//"+w);var L=w.match(cn);if(L){un?(N.scheme=L[1],N.userinfo=L[3],N.host=L[4],N.port=parseInt(L[5],10),N.path=L[6]||"",N.query=L[7],N.fragment=L[8],isNaN(N.port)&&(N.port=L[5])):(N.scheme=L[1]||void 0,N.userinfo=w.indexOf("@")!==-1?L[3]:void 0,N.host=w.indexOf("//")!==-1?L[4]:void 0,N.port=parseInt(L[5],10),N.path=L[6]||"",N.query=w.indexOf("?")!==-1?L[7]:void 0,N.fragment=w.indexOf("#")!==-1?L[8]:void 0,isNaN(N.port)&&(N.port=w.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?L[4]:void 0)),N.host&&(N.host=Ir(It(N.host,j),j)),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 Y=W[(g.scheme||N.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!Y||!Y.unicodeSupport)){if(N.host&&(g.domainHost||Y&&Y.domainHost))try{N.host=U.toASCII(N.host.replace(j.PCT_ENCODED,ie).toLowerCase())}catch(Q){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+Q}ae(N,a)}else ae(N,j);Y&&Y.parse&&Y.parse(N,g)}else N.error=N.error||"URI can not be parsed.";return N}function fn(w,g){var N=g.iri!==!1?l:a,j=[];return w.userinfo!==void 0&&(j.push(w.userinfo),j.push("@")),w.host!==void 0&&j.push(Ir(It(String(w.host),N),N).replace(N.IPV6ADDRESS,function(L,Y,Q){return"["+Y+(Q?"%25"+Q:"")+"]"})),(typeof w.port=="number"||typeof w.port=="string")&&(j.push(":"),j.push(String(w.port))),j.length?j.join(""):void 0}var Or=/^\.\.?\//,Tr=/^\/\.(\/|$)/,Dr=/^\/\.\.(\/|$)/,ln=/^\/?(?:.|\n)*?(?=\/|$)/;function Ot(w){for(var g=[];w.length;)if(w.match(Or))w=w.replace(Or,"");else if(w.match(Tr))w=w.replace(Tr,"/");else if(w.match(Dr))w=w.replace(Dr,"/"),g.pop();else if(w==="."||w==="..")w="";else{var N=w.match(ln);if(N){var j=N[0];w=w.slice(j.length),g.push(j)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function et(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=g.iri?l:a,j=[],L=W[(g.scheme||w.scheme||"").toLowerCase()];if(L&&L.serialize&&L.serialize(w,g),w.host&&!N.IPV6ADDRESS.test(w.host)){if(g.domainHost||L&&L.domainHost)try{w.host=g.iri?U.toUnicode(w.host):U.toASCII(w.host.replace(N.PCT_ENCODED,ie).toLowerCase())}catch(ue){w.error=w.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+ue}}ae(w,N),g.reference!=="suffix"&&w.scheme&&(j.push(w.scheme),j.push(":"));var Y=fn(w,g);if(Y!==void 0&&(g.reference!=="suffix"&&j.push("//"),j.push(Y),w.path&&w.path.charAt(0)!=="/"&&j.push("/")),w.path!==void 0){var Q=w.path;!g.absolutePath&&(!L||!L.absolutePath)&&(Q=Ot(Q)),Y===void 0&&(Q=Q.replace(/^\/\//,"/%2F")),j.push(Q)}return w.query!==void 0&&(j.push("?"),j.push(w.query)),w.fragment!==void 0&&(j.push("#"),j.push(w.fragment)),j.join("")}function Rr(w,g){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],L={};return j||(w=st(et(w,N),N),g=st(et(g,N),N)),N=N||{},!N.tolerant&&g.scheme?(L.scheme=g.scheme,L.userinfo=g.userinfo,L.host=g.host,L.port=g.port,L.path=Ot(g.path||""),L.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(L.userinfo=g.userinfo,L.host=g.host,L.port=g.port,L.path=Ot(g.path||""),L.query=g.query):(g.path?(g.path.charAt(0)==="/"?L.path=Ot(g.path):((w.userinfo!==void 0||w.host!==void 0||w.port!==void 0)&&!w.path?L.path="/"+g.path:w.path?L.path=w.path.slice(0,w.path.lastIndexOf("/")+1)+g.path:L.path=g.path,L.path=Ot(L.path)),L.query=g.query):(L.path=w.path,g.query!==void 0?L.query=g.query:L.query=w.query),L.userinfo=w.userinfo,L.host=w.host,L.port=w.port),L.scheme=w.scheme),L.fragment=g.fragment,L}function dn(w,g,N){var j=u({scheme:"null"},N);return et(Rr(st(w,j),st(g,j),j,!0),j)}function sr(w,g){return typeof w=="string"?w=et(st(w,g),g):s(w)==="object"&&(w=st(et(w,g),g)),w}function hn(w,g,N){return typeof w=="string"?w=et(st(w,N),N):s(w)==="object"&&(w=et(w,N)),typeof g=="string"?g=et(st(g,N),N):s(g)==="object"&&(g=et(g,N)),w===g}function Kn(w,g){return w&&w.toString().replace(!g||!g.iri?a.ESCAPE:l.ESCAPE,X)}function ut(w,g){return w&&w.toString().replace(!g||!g.iri?a.PCT_ENCODED:l.PCT_ENCODED,ie)}var or={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 j=String(g.scheme).toLowerCase()==="https";return(g.port===(j?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},ra={scheme:"https",domainHost:or.domainHost,parse:or.parse,serialize:or.serialize};function na(w){return typeof w.secure=="boolean"?w.secure:String(w.scheme).toLowerCase()==="wss"}var mn={scheme:"ws",domainHost:!0,parse:function(g,N){var j=g;return j.secure=na(j),j.resourceName=(j.path||"/")+(j.query?"?"+j.query:""),j.path=void 0,j.query=void 0,j},serialize:function(g,N){if((g.port===(na(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 j=g.resourceName.split("?"),L=v(j,2),Y=L[0],Q=L[1];g.path=Y&&Y!=="/"?Y:void 0,g.query=Q,g.resourceName=void 0}return g.fragment=void 0,g}},ia={scheme:"wss",domainHost:mn.domainHost,parse:mn.parse,serialize:mn.serialize},zf={},sa="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Tt="[0-9A-Fa-f]",xf=i(i("%[EFef]"+Tt+"%"+Tt+Tt+"%"+Tt+Tt)+"|"+i("%[89A-Fa-f]"+Tt+"%"+Tt+Tt)+"|"+i("%"+Tt+Tt)),Vf="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",qf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Gf=n(qf,'[\\"\\\\]'),Bf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Hf=new RegExp(sa,"g"),Cr=new RegExp(xf,"g"),Kf=new RegExp(n("[^]",Vf,"[\\.]",'[\\"]',Gf),"g"),oa=new RegExp(n("[^]",sa,Bf),"g"),Wf=oa;function ns(w){var g=ie(w);return g.match(Hf)?g:w}var aa={scheme:"mailto",parse:function(g,N){var j=g,L=j.to=j.path?j.path.split(","):[];if(j.path=void 0,j.query){for(var Y=!1,Q={},ue=j.query.split("&"),ve=0,Te=ue.length;ve<Te;++ve){var se=ue[ve].split("=");switch(se[0]){case"to":for(var ye=se[1].split(","),De=0,te=ye.length;De<te;++De)L.push(ye[De]);break;case"subject":j.subject=ut(se[1],N);break;case"body":j.body=ut(se[1],N);break;default:Y=!0,Q[ut(se[0],N)]=ut(se[1],N);break}}Y&&(j.headers=Q)}j.query=void 0;for(var $e=0,Ce=L.length;$e<Ce;++$e){var _e=L[$e].split("@");if(_e[0]=ut(_e[0]),N.unicodeSupport)_e[1]=ut(_e[1],N).toLowerCase();else try{_e[1]=U.toASCII(ut(_e[1],N).toLowerCase())}catch(qt){j.error=j.error||"Email address's domain name can not be converted to ASCII via punycode: "+qt}L[$e]=_e.join("@")}return j},serialize:function(g,N){var j=g,L=c(g.to);if(L){for(var Y=0,Q=L.length;Y<Q;++Y){var ue=String(L[Y]),ve=ue.lastIndexOf("@"),Te=ue.slice(0,ve).replace(Cr,ns).replace(Cr,o).replace(Kf,X),se=ue.slice(ve+1);try{se=N.iri?U.toUnicode(se):U.toASCII(ut(se,N).toLowerCase())}catch($e){j.error=j.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+$e}L[Y]=Te+"@"+se}j.path=L.join(",")}var ye=g.headers=g.headers||{};g.subject&&(ye.subject=g.subject),g.body&&(ye.body=g.body);var De=[];for(var te in ye)ye[te]!==zf[te]&&De.push(te.replace(Cr,ns).replace(Cr,o).replace(oa,X)+"="+ye[te].replace(Cr,ns).replace(Cr,o).replace(Wf,X));return De.length&&(j.query=De.join("&")),j}},Xf=/^([^\:]+)\:(.*)/,ca={scheme:"urn",parse:function(g,N){var j=g.path&&g.path.match(Xf),L=g;if(j){var Y=N.scheme||L.scheme||"urn",Q=j[1].toLowerCase(),ue=j[2],ve=Y+":"+(N.nid||Q),Te=W[ve];L.nid=Q,L.nss=ue,L.path=void 0,Te&&(L=Te.parse(L,N))}else L.error=L.error||"URN can not be parsed.";return L},serialize:function(g,N){var j=N.scheme||g.scheme||"urn",L=g.nid,Y=j+":"+(N.nid||L),Q=W[Y];Q&&(g=Q.serialize(g,N));var ue=g,ve=g.nss;return ue.path=(L||N.nid)+":"+ve,ue}},Zf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ua={scheme:"urn:uuid",parse:function(g,N){var j=g;return j.uuid=j.nss,j.nss=void 0,!N.tolerant&&(!j.uuid||!j.uuid.match(Zf))&&(j.error=j.error||"UUID is not valid."),j},serialize:function(g,N){var j=g;return j.nss=(g.uuid||"").toLowerCase(),j}};W[or.scheme]=or,W[ra.scheme]=ra,W[mn.scheme]=mn,W[ia.scheme]=ia,W[aa.scheme]=aa,W[ca.scheme]=ca,W[ua.scheme]=ua,r.SCHEMES=W,r.pctEncChar=X,r.pctDecChars=ie,r.parse=st,r.removeDotSegments=Ot,r.serialize=et,r.resolveComponents=Rr,r.resolve=dn,r.normalize=sr,r.equal=hn,r.escapeComponent=Kn,r.unescapeComponent=ut,Object.defineProperty(r,"__esModule",{value:!0})})})(Cs,Cs.exports);Object.defineProperty(mo,"__esModule",{value:!0});const Ef=Cs.exports;Ef.code='require("ajv/dist/runtime/uri").default';mo.default=Ef;(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=_t;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=Vi,i=qi,s=$r,o=nt,c=re,u=Ue,m=Bn,a=fe,l=ey,v=mo,h=(O,I)=>new RegExp(O,I);h.code="new RegExp";const d=["removeAdditional","useDefaults","coerceTypes"],E=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={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 _(O){var I,F,C,y,S,U,W,X,ie,ae,Oe,It,Ir,cn,un,st,fn,Or,Tr,Dr,ln,Ot,et,Rr,dn;const sr=O.strict,hn=(I=O.code)===null||I===void 0?void 0:I.optimize,Kn=hn===!0||hn===void 0?1:hn||0,ut=(C=(F=O.code)===null||F===void 0?void 0:F.regExp)!==null&&C!==void 0?C:h,or=(y=O.uriResolver)!==null&&y!==void 0?y:v.default;return{strictSchema:(U=(S=O.strictSchema)!==null&&S!==void 0?S:sr)!==null&&U!==void 0?U:!0,strictNumbers:(X=(W=O.strictNumbers)!==null&&W!==void 0?W:sr)!==null&&X!==void 0?X:!0,strictTypes:(ae=(ie=O.strictTypes)!==null&&ie!==void 0?ie:sr)!==null&&ae!==void 0?ae:"log",strictTuples:(It=(Oe=O.strictTuples)!==null&&Oe!==void 0?Oe:sr)!==null&&It!==void 0?It:"log",strictRequired:(cn=(Ir=O.strictRequired)!==null&&Ir!==void 0?Ir:sr)!==null&&cn!==void 0?cn:!1,code:O.code?{...O.code,optimize:Kn,regExp:ut}:{optimize:Kn,regExp:ut},loopRequired:(un=O.loopRequired)!==null&&un!==void 0?un:$,loopEnum:(st=O.loopEnum)!==null&&st!==void 0?st:$,meta:(fn=O.meta)!==null&&fn!==void 0?fn:!0,messages:(Or=O.messages)!==null&&Or!==void 0?Or:!0,inlineRefs:(Tr=O.inlineRefs)!==null&&Tr!==void 0?Tr:!0,schemaId:(Dr=O.schemaId)!==null&&Dr!==void 0?Dr:"$id",addUsedSchema:(ln=O.addUsedSchema)!==null&&ln!==void 0?ln:!0,validateSchema:(Ot=O.validateSchema)!==null&&Ot!==void 0?Ot:!0,validateFormats:(et=O.validateFormats)!==null&&et!==void 0?et:!0,unicodeRegExp:(Rr=O.unicodeRegExp)!==null&&Rr!==void 0?Rr:!0,int32range:(dn=O.int32range)!==null&&dn!==void 0?dn:!0,uriResolver:or}}class D{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:E,es5:F,lines:C}),this.logger=A(I.logger);const y=I.validateFormats;I.validateFormats=!1,this.RULES=(0,s.getRules)(),x.call(this,p,I,"NOT SUPPORTED"),x.call(this,f,I,"DEPRECATED","warn"),this._metaOpts=V.call(this),I.formats&&z.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&P.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),R.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={...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,Oe){await S.call(this,ae.$schema);const It=this._addSchema(ae,Oe);return It.validate||U.call(this,It)}async function S(ae){ae&&!this.getSchema(ae)&&await y.call(this,{$ref:ae},!0)}async function U(ae){try{return this._compileSchemaEnv(ae)}catch(Oe){if(!(Oe instanceof i.default))throw Oe;return W.call(this,Oe),await X.call(this,Oe.missingSchema),U.call(this,ae)}}function W({missingSchema:ae,missingRef:Oe}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${Oe} cannot be resolved`)}async function X(ae){const Oe=await ie.call(this,ae);this.refs[ae]||await S.call(this,Oe.$schema),this.refs[ae]||this.addSchema(Oe,ae,F)}async function ie(ae){const Oe=this._loading[ae];if(Oe)return Oe;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 U of I)this.addSchema(U,void 0,C,y);return this}let S;if(typeof I=="object"){const{schemaId:U}=this.opts;if(S=I[U],S!==void 0&&typeof S!="string")throw new Error(`schema ${U} 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=T.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=T.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(q.call(this,C,F),!F)return(0,a.eachItem)(C,S=>H.call(this,S)),this;G.call(this,F);const y={...F,type:(0,m.getJSONTypes)(F.type),schemaType:(0,m.getJSONTypes)(F.schemaType)};return(0,a.eachItem)(C,y.type.length===0?S=>H.call(this,S,y):S=>y.type.forEach(U=>H.call(this,S,y,U))),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 U=I;for(const W of S)U=U[W];for(const W in C){const X=C[W];if(typeof X!="object")continue;const{$data:ie}=X.definition,ae=U[W];ie&&ae&&(U[W]=k(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 U;const{schemaId:W}=this.opts;if(typeof I=="object")U=I[W];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 X=this._cache.get(I);if(X!==void 0)return X;C=(0,u.normalizeId)(U||C);const ie=u.getSchemaRefs.call(this,I,C);return X=new o.SchemaEnv({schema:I,schemaId:W,meta:F,baseId:C,localRefs:ie}),this._cache.set(X.schema,X),S&&!C.startsWith("#")&&(C&&this._checkUnique(C),this.refs[C]=X),y&&this.validateSchema(I,!0),X}_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=D,D.ValidationError=n.default,D.MissingRefError=i.default;function x(O,I,F,C="error"){for(const y in O){const S=y;S in I&&this.logger[C](`${F}: option ${y}. ${O[S]}`)}}function T(O){return O=(0,u.normalizeId)(O),this.schemas[O]||this.refs[O]}function R(){const O=this.opts.schemas;if(!!O)if(Array.isArray(O))this.addSchema(O);else for(const I in O)this.addSchema(O[I],I)}function z(){for(const O in this.opts.formats){const I=this.opts.formats[O];I&&this.addFormat(O,I)}}function P(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in O){const F=O[I];F.keyword||(F.keyword=I),this.addKeyword(F)}}function V(){const O={...this.opts};for(const I of d)delete O[I];return O}const M={log(){},warn(){},error(){}};function A(O){if(O===!1)return M;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function q(O,I){const{RULES:F}=this;if((0,a.eachItem)(O,C=>{if(F.keywords[C])throw new Error(`Keyword ${C} is already defined`);if(!B.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 H(O,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 U=y?S.post:S.rules.find(({type:X})=>X===F);if(U||(U={type:F,rules:[]},S.rules.push(U)),S.keywords[O]=!0,!I)return;const W={keyword:O,definition:{...I,type:(0,m.getJSONTypes)(I.type),schemaType:(0,m.getJSONTypes)(I.schemaType)}};I.before?K.call(this,U,W,I.before):U.rules.push(W),S.all[O]=W,(C=I.implements)===null||C===void 0||C.forEach(X=>this.addKeyword(X))}function K(O,I,F){const C=O.rules.findIndex(y=>y.keyword===F);C>=0?O.rules.splice(C,0,I):(O.rules.push(I),this.logger.warn(`rule ${F} is not defined`))}function G(O){let{metaSchema:I}=O;I!==void 0&&(O.$data&&this.opts.$data&&(I=k(I)),O.validateSchema=this.compile(I,!0))}const b={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function k(O){return{anyOf:[O,b]}}})(Hu);var po={},yo={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});const ty={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Eo.default=ty;var _r={};Object.defineProperty(_r,"__esModule",{value:!0});_r.callRef=_r.getValidate=void 0;const ry=qi,Ha=ne,rt=re,Fr=jt,Ka=nt,ri=fe,ny={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=Ka.resolveRef.call(u,m,i,r);if(a===void 0)throw new ry.default(n.opts.uriResolver,i,r);if(a instanceof Ka.SchemaEnv)return v(a);return h(a);function l(){if(s===m)return pi(e,o,s,s.$async);const d=t.scopeValue("root",{ref:m});return pi(e,(0,rt._)`${d}.validate`,m,m.$async)}function v(d){const E=vf(e,d);pi(e,E,d,d.$async)}function h(d){const E=t.scopeValue("schema",c.code.source===!0?{ref:d,code:(0,rt.stringify)(d)}:{ref:d}),p=t.name("valid"),f=e.subschema({schema:d,dataTypes:[],schemaPath:rt.nil,topSchemaRef:E,errSchemaPath:r},p);e.mergeEvaluated(f),e.ok(p)}}};function vf(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}_r.getValidate=vf;function pi(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,m=u.passContext?Fr.default.this:rt.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,rt._)`await ${(0,Ha.callValidateCode)(e,t,m)}`),h(t),o||i.assign(d,!0)},E=>{i.if((0,rt._)`!(${E} instanceof ${s.ValidationError})`,()=>i.throw(E)),v(E),o||i.assign(d,!1)}),e.ok(d)}function l(){e.result((0,Ha.callValidateCode)(e,t,m),()=>h(t),()=>v(t))}function v(d){const E=(0,rt._)`${d}.errors`;i.assign(Fr.default.vErrors,(0,rt._)`${Fr.default.vErrors} === null ? ${E} : ${Fr.default.vErrors}.concat(${E})`),i.assign(Fr.default.errors,(0,rt._)`${Fr.default.vErrors}.length`)}function h(d){var E;if(!s.opts.unevaluated)return;const p=(E=r==null?void 0:r.validate)===null||E===void 0?void 0:E.evaluated;if(s.props!==!0)if(p&&!p.dynamicProps)p.props!==void 0&&(s.props=ri.mergeEvaluated.props(i,p.props,s.props));else{const f=i.var("props",(0,rt._)`${d}.evaluated.props`);s.props=ri.mergeEvaluated.props(i,f,s.props,rt.Name)}if(s.items!==!0)if(p&&!p.dynamicItems)p.items!==void 0&&(s.items=ri.mergeEvaluated.items(i,p.items,s.items));else{const f=i.var("items",(0,rt._)`${d}.evaluated.items`);s.items=ri.mergeEvaluated.items(i,f,s.items,rt.Name)}}}_r.callRef=pi;_r.default=ny;Object.defineProperty(yo,"__esModule",{value:!0});const iy=Eo,sy=_r,oy=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",iy.default,sy.default];yo.default=oy;var vo={},go={};Object.defineProperty(go,"__esModule",{value:!0});const Ti=re,Ht=Ti.operators,Di={maximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},minimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},exclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},exclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},ay={message:({keyword:e,schemaCode:t})=>(0,Ti.str)`must be ${Di[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ti._)`{comparison: ${Di[e].okStr}, limit: ${t}}`},cy={keyword:Object.keys(Di),type:"number",schemaType:"number",$data:!0,error:ay,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ti._)`${r} ${Di[t].fail} ${n} || isNaN(${r})`)}};go.default=cy;var $o={};Object.defineProperty($o,"__esModule",{value:!0});const On=re,uy={message:({schemaCode:e})=>(0,On.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,On._)`{multipleOf: ${e}}`},fy={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:uy,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,On._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,On._)`${o} !== parseInt(${o})`;e.fail$data((0,On._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};$o.default=fy;var _o={},So={};Object.defineProperty(So,"__esModule",{value:!0});function gf(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}So.default=gf;gf.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(_o,"__esModule",{value:!0});const hr=re,ly=fe,dy=So,hy={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,hr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,hr._)`{limit: ${e}}`},my={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:hy,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?hr.operators.GT:hr.operators.LT,o=i.opts.unicode===!1?(0,hr._)`${r}.length`:(0,hr._)`${(0,ly.useFunc)(e.gen,dy.default)}(${r})`;e.fail$data((0,hr._)`${o} ${s} ${n}`)}};_o.default=my;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});const py=ne,Ri=re,yy={message:({schemaCode:e})=>(0,Ri.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ri._)`{pattern: ${e}}`},Ey={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:yy,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,Ri._)`(new RegExp(${i}, ${o}))`:(0,py.usePattern)(e,n);e.fail$data((0,Ri._)`!${c}.test(${t})`)}};wo.default=Ey;var No={};Object.defineProperty(No,"__esModule",{value:!0});const Tn=re,vy={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Tn.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Tn._)`{limit: ${e}}`},gy={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:vy,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Tn.operators.GT:Tn.operators.LT;e.fail$data((0,Tn._)`Object.keys(${r}).length ${i} ${n}`)}};No.default=gy;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});const vn=ne,Dn=re,$y=fe,_y={message:({params:{missingProperty:e}})=>(0,Dn.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Dn._)`{missingProperty: ${e}}`},Sy={keyword:"required",type:"object",schemaType:"array",$data:!0,error:_y,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 E of r)if((h==null?void 0:h[E])===void 0&&!d.has(E)){const p=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${E}" is not defined at "${p}" (strictRequired)`;(0,$y.checkStrictMode)(o,f,o.opts.strictRequired)}}function m(){if(u||s)e.block$data(Dn.nil,l);else for(const h of r)(0,vn.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,vn.checkMissingProp)(e,r,h)),(0,vn.reportMissingProp)(e,h),t.else()}function l(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,vn.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}function v(h,d){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(d,(0,vn.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Dn.not)(d),()=>{e.error(),t.break()})},Dn.nil)}}};Io.default=Sy;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const Rn=re,wy={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Rn.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Rn._)`{limit: ${e}}`},Ny={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:wy,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Rn.operators.GT:Rn.operators.LT;e.fail$data((0,Rn._)`${r}.length ${i} ${n}`)}};Oo.default=Ny;var To={},Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const $f=ef;$f.code='require("ajv/dist/runtime/equal").default';Hn.default=$f;Object.defineProperty(To,"__esModule",{value:!0});const ds=Bn,Me=re,Iy=fe,Oy=Hn,Ty={message:({params:{i:e,j:t}})=>(0,Me.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Me._)`{i: ${e}, j: ${t}}`},Dy={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ty,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,ds.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,Me._)`${o} === false`),e.ok(u);function a(){const d=t.let("i",(0,Me._)`${r}.length`),E=t.let("j");e.setParams({i:d,j:E}),t.assign(u,!0),t.if((0,Me._)`${d} > 1`,()=>(l()?v:h)(d,E))}function l(){return m.length>0&&!m.some(d=>d==="object"||d==="array")}function v(d,E){const p=t.name("item"),f=(0,ds.checkDataTypes)(m,p,c.opts.strictNumbers,ds.DataType.Wrong),$=t.const("indices",(0,Me._)`{}`);t.for((0,Me._)`;${d}--;`,()=>{t.let(p,(0,Me._)`${r}[${d}]`),t.if(f,(0,Me._)`continue`),m.length>1&&t.if((0,Me._)`typeof ${p} == "string"`,(0,Me._)`${p} += "_"`),t.if((0,Me._)`typeof ${$}[${p}] == "number"`,()=>{t.assign(E,(0,Me._)`${$}[${p}]`),e.error(),t.assign(u,!1).break()}).code((0,Me._)`${$}[${p}] = ${d}`)})}function h(d,E){const p=(0,Iy.useFunc)(t,Oy.default),f=t.name("outer");t.label(f).for((0,Me._)`;${d}--;`,()=>t.for((0,Me._)`${E} = ${d}; ${E}--;`,()=>t.if((0,Me._)`${p}(${r}[${d}], ${r}[${E}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};To.default=Dy;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});const Ps=re,Ry=fe,Cy=Hn,Py={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ps._)`{allowedValue: ${e}}`},Ay={keyword:"const",$data:!0,error:Py,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ps._)`!${(0,Ry.useFunc)(t,Cy.default)}(${r}, ${i})`):e.fail((0,Ps._)`${s} !== ${r}`)}};Do.default=Ay;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});const _n=re,by=fe,Ly=Hn,Fy={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,_n._)`{allowedValues: ${e}}`},jy={keyword:"enum",schemaType:"array",$data:!0,error:Fy,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,by.useFunc)(t,Ly.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,_n.or)(...i.map((d,E)=>v(h,E)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,h=>t.if((0,_n._)`${m()}(${r}, ${h})`,()=>t.assign(a,!0).break()))}function v(h,d){const E=i[d];return typeof E=="object"&&E!==null?(0,_n._)`${m()}(${r}, ${h}[${d}])`:(0,_n._)`${r} === ${E}`}}};Ro.default=jy;Object.defineProperty(vo,"__esModule",{value:!0});const My=go,ky=$o,Uy=_o,zy=wo,xy=No,Vy=Io,qy=Oo,Gy=To,By=Do,Hy=Ro,Ky=[My.default,ky.default,Uy.default,zy.default,xy.default,Vy.default,qy.default,Gy.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},By.default,Hy.default];vo.default=Ky;var Co={},nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.validateAdditionalItems=void 0;const mr=re,As=fe,Wy={message:({params:{len:e}})=>(0,mr.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mr._)`{limit: ${e}}`},Xy={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Wy,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,As.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}_f(e,n)}};function _f(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,mr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,mr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,As.alwaysValidSchema)(o,n)){const m=r.var("valid",(0,mr._)`${c} <= ${t.length}`);r.if((0,mr.not)(m),()=>u(m)),e.ok(m)}function u(m){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:As.Type.Num},m),o.allErrors||r.if((0,mr.not)(m),()=>r.break())})}}nn.validateAdditionalItems=_f;nn.default=Xy;var Po={},sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.validateTuple=void 0;const Wa=re,yi=fe,Zy=ne,Jy={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Sf(e,"additionalItems",t);r.items=!0,!(0,yi.alwaysValidSchema)(r,t)&&e.ok((0,Zy.validateArray)(e))}};function Sf(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=yi.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),m=n.const("len",(0,Wa._)`${s}.length`);r.forEach((l,v)=>{(0,yi.alwaysValidSchema)(c,l)||(n.if((0,Wa._)`${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,E=d===l.minItems&&(d===l.maxItems||l[t]===!1);if(v.strictTuples&&!E){const p=`"${o}" is ${d}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,yi.checkStrictMode)(c,p,v.strictTuples)}}}sn.validateTuple=Sf;sn.default=Jy;Object.defineProperty(Po,"__esModule",{value:!0});const Yy=sn,Qy={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Yy.validateTuple)(e,"items")};Po.default=Qy;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const Xa=re,e0=fe,t0=ne,r0=nn,n0={message:({params:{len:e}})=>(0,Xa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Xa._)`{limit: ${e}}`},i0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:n0,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,e0.alwaysValidSchema)(n,t)&&(i?(0,r0.validateAdditionalItems)(e,i):e.ok((0,t0.validateArray)(e)))}};Ao.default=i0;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});const lt=re,ni=fe,s0={message:({params:{min:e,max:t}})=>t===void 0?(0,lt.str)`must contain at least ${e} valid item(s)`:(0,lt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,lt._)`{minContains: ${e}}`:(0,lt._)`{minContains: ${e}, maxContains: ${t}}`},o0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:s0,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,lt._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,ni.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,ni.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ni.alwaysValidSchema)(s,r)){let E=(0,lt._)`${a} >= ${o}`;c!==void 0&&(E=(0,lt._)`${E} && ${a} <= ${c}`),e.pass(E);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,lt._)`${i}.length > 0`,v)):(t.let(l,!1),v()),e.result(l,()=>e.reset());function v(){const E=t.name("_valid"),p=t.let("count",0);h(E,()=>t.if(E,()=>d(p)))}function h(E,p){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:ni.Type.Num,compositeRule:!0},E),p()})}function d(E){t.code((0,lt._)`${E}++`),c===void 0?t.if((0,lt._)`${E} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,lt._)`${E} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,lt._)`${E} >= ${o}`,()=>t.assign(l,!0)))}}};bo.default=o0;var wf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=re,r=fe,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},
|
|
12
12
|
missingProperty: ${l},
|
|
13
|
-
depsCount: ${
|
|
14
|
-
deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[E,a]=s(u);o(u,E),c(u,a)}};function s({schema:u}){const E={},a={};for(const l in u){if(l==="__proto__")continue;const p=Array.isArray(u[l])?E:a;p[l]=u[l]}return[E,a]}function o(u,E=u.schema){const{gen:a,data:l,it:p}=u;if(Object.keys(E).length===0)return;const d=a.let("missing");for(const h in E){const m=E[h];if(m.length===0)continue;const y=(0,n.propertyInData)(a,l,h,p.opts.ownProperties);u.setParams({property:h,depsCount:m.length,deps:m.join(", ")}),p.allErrors?a.if(y,()=>{for(const f of m)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${y} && (${(0,n.checkMissingProp)(u,m,d)})`),(0,n.reportMissingProp)(u,d),a.else())}}e.validatePropertyDeps=o;function c(u,E=u.schema){const{gen:a,data:l,keyword:p,it:d}=u,h=a.name("valid");for(const m in E)(0,r.alwaysValidSchema)(d,E[m])||(a.if((0,n.propertyInData)(a,l,m,d.opts.ownProperties),()=>{const y=u.subschema({keyword:p,schemaProp:m},h);u.mergeValidEvaluated(y,h)},()=>a.var(h,!0)),u.ok(h))}e.validateSchemaDeps=c,e.default=i})(Gu);var vo={};Object.defineProperty(vo,"__esModule",{value:!0});const Bu=oe,Lp=de,Fp={message:"property name must be valid",params:({params:e})=>(0,Bu._)`{propertyName: ${e.propertyName}}`},jp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Fp,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,Lp.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,Bu.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};vo.default=jp;var ji={};Object.defineProperty(ji,"__esModule",{value:!0});const Xn=Dt(),$t=oe,Mp=kt,Zn=de,kp={message:"must NOT have additional properties",params:({params:e})=>(0,$t._)`{additionalProperty: ${e.additionalProperty}}`},Up={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:kp,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,Zn.alwaysValidSchema)(o,r))return;const E=(0,Xn.allSchemaProperties)(n.properties),a=(0,Xn.allSchemaProperties)(n.patternProperties);l(),e.ok((0,$t._)`${s} === ${Mp.default.errors}`);function l(){t.forIn("key",i,y=>{!E.length&&!a.length?h(y):t.if(p(y),()=>h(y))})}function p(y){let f;if(E.length>8){const g=(0,Zn.schemaRefOrVal)(o,n.properties,"properties");f=(0,Xn.isOwnProperty)(t,g,y)}else E.length?f=(0,$t.or)(...E.map(g=>(0,$t._)`${y} === ${g}`)):f=$t.nil;return a.length&&(f=(0,$t.or)(f,...a.map(g=>(0,$t._)`${(0,Xn.usePattern)(e,g)}.test(${y})`))),(0,$t.not)(f)}function d(y){t.code((0,$t._)`delete ${i}[${y}]`)}function h(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Zn.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(m(y,f,!1),t.if((0,$t.not)(f),()=>{e.reset(),d(y)})):(m(y,f),c||t.if((0,$t.not)(f),()=>t.break()))}}function m(y,f,g){const $={keyword:"additionalProperties",dataProp:y,dataPropType:Zn.Type.Str};g===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema($,f)}}};ji.default=Up;var go={};Object.defineProperty(go,"__esModule",{value:!0});const zp=Pi(),La=Dt(),rs=de,Fa=ji,xp={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&&Fa.default.code(new zp.KeywordCxt(s,Fa.default,"additionalProperties"));const o=(0,La.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=rs.mergeEvaluated.props(t,(0,rs.toHash)(o),s.props));const c=o.filter(l=>!(0,rs.alwaysValidSchema)(s,r[l]));if(c.length===0)return;const u=t.name("valid");for(const l of c)E(l)?a(l):(t.if((0,La.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 E(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=xp;var $o={};Object.defineProperty($o,"__esModule",{value:!0});const ja=Dt(),Jn=oe,Ma=de,ka=de,Vp={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,ja.allSchemaProperties)(r),u=c.filter(m=>(0,Ma.alwaysValidSchema)(s,r[m]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const E=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof Jn.Name)&&(s.props=(0,ka.evaluatedPropsToName)(t,s.props));const{props:l}=s;p();function p(){for(const m of c)E&&d(m),s.allErrors?h(m):(t.var(a,!0),h(m),t.if(a))}function d(m){for(const y in E)new RegExp(m).test(y)&&(0,Ma.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function h(m){t.forIn("key",n,y=>{t.if((0,Jn._)`${(0,ja.usePattern)(e,m)}.test(${y})`,()=>{const f=u.includes(m);f||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:ka.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,Jn._)`${l}[${y}]`,!0):!f&&!s.allErrors&&t.if((0,Jn.not)(a),()=>t.break())})})}}};$o.default=Vp;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});const qp=de,Gp={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,qp.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"}};_o.default=Gp;var So={};Object.defineProperty(So,"__esModule",{value:!0});const Bp=Dt(),Hp={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Bp.validateUnion,error:{message:"must match a schema in anyOf"}};So.default=Hp;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});const ci=oe,Kp=de,Wp={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ci._)`{passingSchemas: ${e.passing}}`},Xp={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Wp,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(E),e.result(o,()=>e.reset(),()=>e.error(!0));function E(){s.forEach((a,l)=>{let p;(0,Kp.alwaysValidSchema)(i,a)?t.var(u,!0):p=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,ci._)`${u} && ${o}`).assign(o,!1).assign(c,(0,ci._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),p&&e.mergeEvaluated(p,ci.Name)})})}}};wo.default=Xp;var No={};Object.defineProperty(No,"__esModule",{value:!0});const Zp=de,Jp={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,Zp.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};No.default=Jp;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});const $i=oe,Hu=de,Yp={message:({params:e})=>(0,$i.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,$i._)`{failingKeyword: ${e.ifClause}}`},Qp={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Yp,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Hu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Ua(n,"then"),s=Ua(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,E("then",a),E("else",a))}else i?t.if(c,E("then")):t.if((0,$i.not)(c),E("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 E(a,l){return()=>{const p=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(p,o),l?t.assign(l,(0,$i._)`${a}`):e.setParams({ifClause:a})}}}};function Ua(e,t){const r=e.schema[t];return r!==void 0&&!(0,Hu.alwaysValidSchema)(e,r)}Io.default=Qp;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const ey=de,ty={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,ey.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Oo.default=ty;Object.defineProperty(mo,"__esModule",{value:!0});const ry=Qr,ny=po,iy=en,sy=yo,oy=Eo,ay=Gu,cy=vo,uy=ji,fy=go,ly=$o,dy=_o,hy=So,my=wo,py=No,yy=Io,Ey=Oo;function vy(e=!1){const t=[dy.default,hy.default,my.default,py.default,yy.default,Ey.default,cy.default,uy.default,ay.default,fy.default,ly.default];return e?t.push(ny.default,sy.default):t.push(ry.default,iy.default),t.push(oy.default),t}mo.default=vy;var To={},Do={};Object.defineProperty(Do,"__esModule",{value:!0});const Pe=oe,gy={message:({schemaCode:e})=>(0,Pe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Pe._)`{format: ${e}}`},$y={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:gy,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:E,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?p():d();function p(){const h=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),m=r.const("fDef",(0,Pe._)`${h}[${o}]`),y=r.let("fType"),f=r.let("format");r.if((0,Pe._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,Pe._)`${m}.type || "string"`).assign(f,(0,Pe._)`${m}.validate`),()=>r.assign(y,(0,Pe._)`"string"`).assign(f,m)),e.fail$data((0,Pe.or)(g(),$()));function g(){return u.strictSchema===!1?Pe.nil:(0,Pe._)`${o} && !${f}`}function $(){const w=a.$async?(0,Pe._)`(${m}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Pe._)`${f}(${n})`,x=(0,Pe._)`(typeof ${f} == "function" ? ${w} : ${f}.test(${n}))`;return(0,Pe._)`${f} && ${f} !== true && ${y} === ${t} && !${x}`}}function d(){const h=l.formats[s];if(!h){g();return}if(h===!0)return;const[m,y,f]=$(h);m===t&&e.pass(w());function g(){if(u.strictSchema===!1){l.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${s}" ignored in schema at path "${E}"`}}function $(x){const I=x instanceof RegExp?(0,Pe.regexpCode)(x):u.code.formats?(0,Pe._)`${u.code.formats}${(0,Pe.getProperty)(s)}`:void 0,D=r.scopeValue("formats",{key:s,ref:x,code:I});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Pe._)`${D}.validate`]:["string",x,D]}function w(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Pe._)`await ${f}(${n})`}return typeof y=="function"?(0,Pe._)`${f}(${n})`:(0,Pe._)`${f}.test(${n})`}}}};Do.default=$y;Object.defineProperty(To,"__esModule",{value:!0});const _y=Do,Sy=[_y.default];To.default=Sy;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.contentVocabulary=Zr.metadataVocabulary=void 0;Zr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Zr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Ys,"__esModule",{value:!0});const wy=Qs,Ny=to,Iy=mo,Oy=To,za=Zr,Ty=[wy.default,Ny.default,(0,Iy.default)(),Oy.default,za.metadataVocabulary,za.contentVocabulary];Ys.default=Ty;var Ro={},Ku={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Ku);Object.defineProperty(Ro,"__esModule",{value:!0});const Fr=oe,Ss=Ku,xa=ct,Dy=de,Ry={message:({params:{discrError:e,tagName:t}})=>e===Ss.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Fr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Cy={keyword:"discriminator",type:"object",schemaType:"object",error:Ry,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),E=t.const("tag",(0,Fr._)`${r}${(0,Fr.getProperty)(c)}`);t.if((0,Fr._)`typeof ${E} == "string"`,()=>a(),()=>e.error(!1,{discrError:Ss.DiscrError.Tag,tag:E,tagName:c})),e.ok(u);function a(){const d=p();t.if(!1);for(const h in d)t.elseIf((0,Fr._)`${E} === ${h}`),t.assign(u,l(d[h]));t.else(),e.error(!1,{discrError:Ss.DiscrError.Mapping,tag:E,tagName:c}),t.endIf()}function l(d){const h=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},h);return e.mergeEvaluated(m,Fr.Name),h}function p(){var d;const h={},m=f(i);let y=!0;for(let w=0;w<o.length;w++){let x=o[w];(x==null?void 0:x.$ref)&&!(0,Dy.schemaHasRulesButRef)(x,s.self.RULES)&&(x=xa.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,x==null?void 0:x.$ref),x instanceof xa.SchemaEnv&&(x=x.schema));const I=(d=x==null?void 0:x.properties)===null||d===void 0?void 0:d[c];if(typeof I!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);y=y&&(m||f(x)),g(I,w)}if(!y)throw new Error(`discriminator: "${c}" must be required`);return h;function f({required:w}){return Array.isArray(w)&&w.includes(c)}function g(w,x){if(w.const)$(w.const,x);else if(w.enum)for(const I of w.enum)$(I,x);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function $(w,x){if(typeof w!="string"||w in h)throw new Error(`discriminator: "${c}" values must be unique strings`);h[w]=x}}}};Ro.default=Cy;const Py="http://json-schema.org/draft-07/schema#",Ay="http://json-schema.org/draft-07/schema#",by="Core schema meta-schema",Ly={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:[]}},Fy=["object","boolean"],jy={$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:"#"}},My={$schema:Py,$id:Ay,title:by,definitions:Ly,type:Fy,properties:jy,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=Cu,n=Ys,i=Ro,s=My,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(p,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 E=Pi();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return E.KeywordCxt}});var a=oe;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}})})(yi,yi.exports);var ws={exports:{}},Wu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(A,G){return{validate:A,compare:G}}e.fullFormats={date:t(s,o),time:t(u,E),"date-time":t(l,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"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:V,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:w},int64:{type:"number",validate:x},float:{type:"number",validate:I},double:{type:"number",validate:I},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,E),"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,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(A){return A%4===0&&(A%100!==0||A%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(A){const G=n.exec(A);if(!G)return!1;const F=+G[1],L=+G[2],H=+G[3];return L>=1&&L<=12&&H>=1&&H<=(L===2&&r(F)?29:i[L])}function o(A,G){if(!!(A&&G))return A>G?1:A<G?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(A,G){const F=c.exec(A);if(!F)return!1;const L=+F[1],H=+F[2],B=+F[3],X=F[5];return(L<=23&&H<=59&&B<=59||L===23&&H===59&&B===60)&&(!G||X!=="")}function E(A,G){if(!(A&&G))return;const F=c.exec(A),L=c.exec(G);if(!!(F&&L))return A=F[1]+F[2]+F[3]+(F[4]||""),G=L[1]+L[2]+L[3]+(L[4]||""),A>G?1:A<G?-1:0}const a=/t|\s/i;function l(A){const G=A.split(a);return G.length===2&&s(G[0])&&u(G[1],!0)}function p(A,G){if(!(A&&G))return;const[F,L]=A.split(a),[H,B]=G.split(a),X=o(F,H);if(X!==void 0)return X||E(L,B)}const d=/\/|:/,h=/^(?:[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 m(A){return d.test(A)&&h.test(A)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(A){return y.lastIndex=0,y.test(A)}const g=-(2**31),$=2**31-1;function w(A){return Number.isInteger(A)&&A<=$&&A>=g}function x(A){return Number.isInteger(A)}function I(){return!0}const D=/[^\\]\\Z/;function V(A){if(D.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Wu);var Xu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=yi.exports,r=oe,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:E,schemaCode:a,keyword:l,it:p}=c,{opts:d,self:h}=p;if(!d.validateFormats)return;const m=new t.KeywordCxt(p,h.RULES.all.format.definition,"format");m.$data?y():f();function y(){const $=u.scopeValue("formats",{ref:h.formats,code:d.code.formats}),w=u.const("fmt",r._`${$}[${m.schemaCode}]`);c.fail$data(r.or(r._`typeof ${w} != "object"`,r._`${w} instanceof RegExp`,r._`typeof ${w}.compare != "function"`,g(w)))}function f(){const $=m.schema,w=h.formats[$];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${l}": format "${$}" does not define "compare" function`);const x=u.scopeValue("formats",{key:$,ref:w,code:d.code.formats?r._`${d.code.formats}${r.getProperty($)}`:void 0});c.fail$data(g(x))}function g($){return r._`${$}.compare(${E}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(Xu);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Wu,n=Xu,i=oe,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(E,a={keywords:!0})=>{if(Array.isArray(a))return u(E,a,r.fullFormats,s),E;const[l,p]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],d=a.formats||r.formatNames;return u(E,d,l,p),a.keywords&&n.default(E),E};c.get=(E,a="full")=>{const p=(a==="fast"?r.fastFormats:r.fullFormats)[E];if(!p)throw new Error(`Unknown format "${E}"`);return p};function u(E,a,l,p){var d,h;(d=(h=E.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${p}`);for(const m of a)E.addFormat(m,l[m])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(ws,ws.exports);const ky=(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);!Uy(i,s)&&n||Object.defineProperty(e,r,s)},Uy=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)},zy=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},xy=(e,t)=>`/* Wrapped ${e}*/
|
|
15
|
-
${t}`,Vy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),qy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Gy=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=xy.bind(null,n,t.toString());Object.defineProperty(i,"name",qy),Object.defineProperty(e,"toString",{...Vy,value:i})},By=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))ky(e,t,i,r);return zy(e,t),Gy(e,t,n),e};var Hy=By;const Ky=Hy;var Wy=(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 E=this,a=()=>{s=void 0,i&&(o=e.apply(E,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(E,u)),o};return Ky(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},or={exports:{}};const Xy="2.0.0",Zy=256,Jy=Number.MAX_SAFE_INTEGER||9007199254740991,Yy=16;var Mi={SEMVER_SPEC_VERSION:Xy,MAX_LENGTH:Zy,MAX_SAFE_INTEGER:Jy,MAX_SAFE_COMPONENT_LENGTH:Yy};const Qy=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ki=Qy;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=Mi,n=ki;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(E,a,l)=>{const p=c++;n(E,p,a),o[E]=p,s[p]=a,i[p]=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*$")})(or,or.exports);const e0=["includePrerelease","loose","rtl"],t0=e=>e?typeof e!="object"?{loose:!0}:e0.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var Ui=t0;const Va=/^[0-9]+$/,Zu=(e,t)=>{const r=Va.test(e),n=Va.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},r0=(e,t)=>Zu(t,e);var Ns={compareIdentifiers:Zu,rcompareIdentifiers:r0};const Yn=ki,{MAX_LENGTH:qa,MAX_SAFE_INTEGER:Qn}=Mi,{re:Ga,t:Ba}=or.exports,n0=Ui,{compareIdentifiers:br}=Ns;class _t{constructor(t,r){if(r=n0(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>qa)throw new TypeError(`version is longer than ${qa} characters`);Yn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ga[Ba.LOOSE]:Ga[Ba.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>Qn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Qn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Qn||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<Qn)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(Yn("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)),br(this.major,t.major)||br(this.minor,t.minor)||br(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(Yn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return br(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Yn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return br(n,i)}while(++r)}inc(t,r){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&&(br(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 it=_t;const{MAX_LENGTH:i0}=Mi,{re:Ha,t:Ka}=or.exports,Wa=it,s0=Ui,o0=(e,t)=>{if(t=s0(t),e instanceof Wa)return e;if(typeof e!="string"||e.length>i0||!(t.loose?Ha[Ka.LOOSE]:Ha[Ka.FULL]).test(e))return null;try{return new Wa(e,t)}catch{return null}};var tn=o0;const a0=tn,c0=(e,t)=>{const r=a0(e,t);return r?r.version:null};var u0=c0;const f0=tn,l0=(e,t)=>{const r=f0(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var d0=l0;const Xa=it,h0=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Xa(e instanceof Xa?e.version:e,r).inc(t,n).version}catch{return null}};var m0=h0;const Za=it,p0=(e,t,r)=>new Za(e,r).compare(new Za(t,r));var Rt=p0;const y0=Rt,E0=(e,t,r)=>y0(e,t,r)===0;var Co=E0;const Ja=tn,v0=Co,g0=(e,t)=>{if(v0(e,t))return null;{const r=Ja(e),n=Ja(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 $0=g0;const _0=it,S0=(e,t)=>new _0(e,t).major;var w0=S0;const N0=it,I0=(e,t)=>new N0(e,t).minor;var O0=I0;const T0=it,D0=(e,t)=>new T0(e,t).patch;var R0=D0;const C0=tn,P0=(e,t)=>{const r=C0(e,t);return r&&r.prerelease.length?r.prerelease:null};var A0=P0;const b0=Rt,L0=(e,t,r)=>b0(t,e,r);var F0=L0;const j0=Rt,M0=(e,t)=>j0(e,t,!0);var k0=M0;const Ya=it,U0=(e,t,r)=>{const n=new Ya(e,r),i=new Ya(t,r);return n.compare(i)||n.compareBuild(i)};var Po=U0;const z0=Po,x0=(e,t)=>e.sort((r,n)=>z0(r,n,t));var V0=x0;const q0=Po,G0=(e,t)=>e.sort((r,n)=>q0(n,r,t));var B0=G0;const H0=Rt,K0=(e,t,r)=>H0(e,t,r)>0;var zi=K0;const W0=Rt,X0=(e,t,r)=>W0(e,t,r)<0;var Ao=X0;const Z0=Rt,J0=(e,t,r)=>Z0(e,t,r)!==0;var Ju=J0;const Y0=Rt,Q0=(e,t,r)=>Y0(e,t,r)>=0;var bo=Q0;const eE=Rt,tE=(e,t,r)=>eE(e,t,r)<=0;var Lo=tE;const rE=Co,nE=Ju,iE=zi,sE=bo,oE=Ao,aE=Lo,cE=(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 rE(e,r,n);case"!=":return nE(e,r,n);case">":return iE(e,r,n);case">=":return sE(e,r,n);case"<":return oE(e,r,n);case"<=":return aE(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Yu=cE;const uE=it,fE=tn,{re:ei,t:ti}=or.exports,lE=(e,t)=>{if(e instanceof uE)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[ti.COERCE]);else{let n;for(;(n=ei[ti.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[ti.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ei[ti.COERCERTL].lastIndex=-1}return r===null?null:fE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var dE=lE,ns,Qa;function hE(){return Qa||(Qa=1,ns=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ns}var mE=he;he.Node=Nr;he.create=he;function he(e){var t=this;if(t instanceof he||(t=new he),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}he.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};he.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++}};he.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++}};he.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)yE(this,arguments[e]);return this.length};he.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)EE(this,arguments[e]);return this.length};he.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}};he.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}};he.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};he.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};he.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};he.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};he.prototype.map=function(e,t){t=t||this;for(var r=new he,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(e,t){t=t||this;for(var r=new he,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};he.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};he.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};he.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};he.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};he.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 he;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};he.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 he;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};he.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=pE(this,i,r[n]);return s};he.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 pE(e,t,r){var n=t===e.head?new Nr(r,null,t,e):new Nr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function yE(e,t){e.tail=new Nr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function EE(e,t){e.head=new Nr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Nr(e,t,r,n){if(!(this instanceof Nr))return new Nr(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{hE()(he)}catch{}const vE=mE,Er=Symbol("max"),Gt=Symbol("length"),Lr=Symbol("lengthCalculator"),_n=Symbol("allowStale"),vr=Symbol("maxAge"),qt=Symbol("dispose"),ec=Symbol("noDisposeOnSet"),ke=Symbol("lruList"),St=Symbol("cache"),Qu=Symbol("updateAgeOnGet"),is=()=>1;class gE{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[Er]=t.max||1/0;const r=t.length||is;if(this[Lr]=typeof r!="function"?is:r,this[_n]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[vr]=t.maxAge||0,this[qt]=t.dispose,this[ec]=t.noDisposeOnSet||!1,this[Qu]=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[Er]=t||1/0,ln(this)}get max(){return this[Er]}set allowStale(t){this[_n]=!!t}get allowStale(){return this[_n]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[vr]=t,ln(this)}get maxAge(){return this[vr]}set lengthCalculator(t){typeof t!="function"&&(t=is),t!==this[Lr]&&(this[Lr]=t,this[Gt]=0,this[ke].forEach(r=>{r.length=this[Lr](r.value,r.key),this[Gt]+=r.length})),ln(this)}get lengthCalculator(){return this[Lr]}get length(){return this[Gt]}get itemCount(){return this[ke].length}rforEach(t,r){r=r||this;for(let n=this[ke].tail;n!==null;){const i=n.prev;tc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[ke].head;n!==null;){const i=n.next;tc(this,t,n,r),n=i}}keys(){return this[ke].toArray().map(t=>t.key)}values(){return this[ke].toArray().map(t=>t.value)}reset(){this[qt]&&this[ke]&&this[ke].length&&this[ke].forEach(t=>this[qt](t.key,t.value)),this[St]=new Map,this[ke]=new vE,this[Gt]=0}dump(){return this[ke].map(t=>_i(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ke]}set(t,r,n){if(n=n||this[vr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Lr](r,t);if(this[St].has(t)){if(s>this[Er])return xr(this,this[St].get(t)),!1;const u=this[St].get(t).value;return this[qt]&&(this[ec]||this[qt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Gt]+=s-u.length,u.length=s,this.get(t),ln(this),!0}const o=new $E(t,r,s,i,n);return o.length>this[Er]?(this[qt]&&this[qt](t,r),!1):(this[Gt]+=o.length,this[ke].unshift(o),this[St].set(t,this[ke].head),ln(this),!0)}has(t){if(!this[St].has(t))return!1;const r=this[St].get(t).value;return!_i(this,r)}get(t){return ss(this,t,!0)}peek(t){return ss(this,t,!1)}pop(){const t=this[ke].tail;return t?(xr(this,t),t.value):null}del(t){xr(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)=>ss(this,r,!1))}}const ss=(e,t,r)=>{const n=e[St].get(t);if(n){const i=n.value;if(_i(e,i)){if(xr(e,n),!e[_n])return}else r&&(e[Qu]&&(n.value.now=Date.now()),e[ke].unshiftNode(n));return i.value}},_i=(e,t)=>{if(!t||!t.maxAge&&!e[vr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[vr]&&r>e[vr]},ln=e=>{if(e[Gt]>e[Er])for(let t=e[ke].tail;e[Gt]>e[Er]&&t!==null;){const r=t.prev;xr(e,t),t=r}},xr=(e,t)=>{if(t){const r=t.value;e[qt]&&e[qt](r.key,r.value),e[Gt]-=r.length,e[St].delete(r.key),e[ke].removeNode(t)}};class $E{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;_i(e,i)&&(xr(e,r),e[_n]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var _E=gE,os,rc;function Ct(){if(rc)return os;rc=1;class e{constructor(L,H){if(H=n(H),L instanceof e)return L.loose===!!H.loose&&L.includePrerelease===!!H.includePrerelease?L:new e(L.raw,H);if(L instanceof i)return this.raw=L.value,this.set=[[L]],this.format(),this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=L,this.set=L.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${L}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(X=>!p(X[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&d(X[0])){this.set=[X];break}}}this.format()}format(){return this.range=this.set.map(L=>L.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(L){L=L.trim();const B=`parseRange:${Object.keys(this.options).join(",")}:${L}`,X=r.get(B);if(X)return X;const Z=this.options.loose,W=Z?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];L=L.replace(W,A(this.options.includePrerelease)),s("hyphen replace",L),L=L.replace(c[u.COMPARATORTRIM],E),s("comparator trim",L),L=L.replace(c[u.TILDETRIM],a),L=L.replace(c[u.CARETTRIM],l),L=L.split(/\s+/).join(" ");let j=L.split(" ").map(M=>m(M,this.options)).join(" ").split(/\s+/).map(M=>V(M,this.options));Z&&(j=j.filter(M=>(s("loose invalid filter",M,this.options),!!M.match(c[u.COMPARATORLOOSE])))),s("range list",j);const z=new Map,R=j.map(M=>new i(M,this.options));for(const M of R){if(p(M))return[M];z.set(M.value,M)}z.size>1&&z.has("")&&z.delete("");const T=[...z.values()];return r.set(B,T),T}intersects(L,H){if(!(L instanceof e))throw new TypeError("a Range is required");return this.set.some(B=>h(B,H)&&L.set.some(X=>h(X,H)&&B.every(Z=>X.every(W=>Z.intersects(W,H)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new o(L,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(G(this.set[H],L,this.options))return!0;return!1}}os=e;const t=_E,r=new t({max:1e3}),n=Ui,i=xi(),s=ki,o=it,{re:c,t:u,comparatorTrimReplace:E,tildeTrimReplace:a,caretTrimReplace:l}=or.exports,p=F=>F.value==="<0.0.0-0",d=F=>F.value==="",h=(F,L)=>{let H=!0;const B=F.slice();let X=B.pop();for(;H&&B.length;)H=B.every(Z=>X.intersects(Z,L)),X=B.pop();return H},m=(F,L)=>(s("comp",F,L),F=$(F,L),s("caret",F),F=f(F,L),s("tildes",F),F=x(F,L),s("xrange",F),F=D(F,L),s("stars",F),F),y=F=>!F||F.toLowerCase()==="x"||F==="*",f=(F,L)=>F.trim().split(/\s+/).map(H=>g(H,L)).join(" "),g=(F,L)=>{const H=L.loose?c[u.TILDELOOSE]:c[u.TILDE];return F.replace(H,(B,X,Z,W,j)=>{s("tilde",F,B,X,Z,W,j);let z;return y(X)?z="":y(Z)?z=`>=${X}.0.0 <${+X+1}.0.0-0`:y(W)?z=`>=${X}.${Z}.0 <${X}.${+Z+1}.0-0`:j?(s("replaceTilde pr",j),z=`>=${X}.${Z}.${W}-${j} <${X}.${+Z+1}.0-0`):z=`>=${X}.${Z}.${W} <${X}.${+Z+1}.0-0`,s("tilde return",z),z})},$=(F,L)=>F.trim().split(/\s+/).map(H=>w(H,L)).join(" "),w=(F,L)=>{s("caret",F,L);const H=L.loose?c[u.CARETLOOSE]:c[u.CARET],B=L.includePrerelease?"-0":"";return F.replace(H,(X,Z,W,j,z)=>{s("caret",F,X,Z,W,j,z);let R;return y(Z)?R="":y(W)?R=`>=${Z}.0.0${B} <${+Z+1}.0.0-0`:y(j)?Z==="0"?R=`>=${Z}.${W}.0${B} <${Z}.${+W+1}.0-0`:R=`>=${Z}.${W}.0${B} <${+Z+1}.0.0-0`:z?(s("replaceCaret pr",z),Z==="0"?W==="0"?R=`>=${Z}.${W}.${j}-${z} <${Z}.${W}.${+j+1}-0`:R=`>=${Z}.${W}.${j}-${z} <${Z}.${+W+1}.0-0`:R=`>=${Z}.${W}.${j}-${z} <${+Z+1}.0.0-0`):(s("no pr"),Z==="0"?W==="0"?R=`>=${Z}.${W}.${j}${B} <${Z}.${W}.${+j+1}-0`:R=`>=${Z}.${W}.${j}${B} <${Z}.${+W+1}.0-0`:R=`>=${Z}.${W}.${j} <${+Z+1}.0.0-0`),s("caret return",R),R})},x=(F,L)=>(s("replaceXRanges",F,L),F.split(/\s+/).map(H=>I(H,L)).join(" ")),I=(F,L)=>{F=F.trim();const H=L.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return F.replace(H,(B,X,Z,W,j,z)=>{s("xRange",F,B,X,Z,W,j,z);const R=y(Z),T=R||y(W),M=T||y(j),P=M;return X==="="&&P&&(X=""),z=L.includePrerelease?"-0":"",R?X===">"||X==="<"?B="<0.0.0-0":B="*":X&&P?(T&&(W=0),j=0,X===">"?(X=">=",T?(Z=+Z+1,W=0,j=0):(W=+W+1,j=0)):X==="<="&&(X="<",T?Z=+Z+1:W=+W+1),X==="<"&&(z="-0"),B=`${X+Z}.${W}.${j}${z}`):T?B=`>=${Z}.0.0${z} <${+Z+1}.0.0-0`:M&&(B=`>=${Z}.${W}.0${z} <${Z}.${+W+1}.0-0`),s("xRange return",B),B})},D=(F,L)=>(s("replaceStars",F,L),F.trim().replace(c[u.STAR],"")),V=(F,L)=>(s("replaceGTE0",F,L),F.trim().replace(c[L.includePrerelease?u.GTE0PRE:u.GTE0],"")),A=F=>(L,H,B,X,Z,W,j,z,R,T,M,P,v)=>(y(B)?H="":y(X)?H=`>=${B}.0.0${F?"-0":""}`:y(Z)?H=`>=${B}.${X}.0${F?"-0":""}`:W?H=`>=${H}`:H=`>=${H}${F?"-0":""}`,y(R)?z="":y(T)?z=`<${+R+1}.0.0-0`:y(M)?z=`<${R}.${+T+1}.0-0`:P?z=`<=${R}.${T}.${M}-${P}`:F?z=`<${R}.${T}.${+M+1}-0`:z=`<=${z}`,`${H} ${z}`.trim()),G=(F,L,H)=>{for(let B=0;B<F.length;B++)if(!F[B].test(L))return!1;if(L.prerelease.length&&!H.includePrerelease){for(let B=0;B<F.length;B++)if(s(F[B].semver),F[B].semver!==i.ANY&&F[B].semver.prerelease.length>0){const X=F[B].semver;if(X.major===L.major&&X.minor===L.minor&&X.patch===L.patch)return!0}return!1}return!0};return os}var as,nc;function xi(){if(nc)return as;nc=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],p=a.match(l);if(!p)throw new TypeError(`Invalid comparator: ${a}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new c(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");if((!l||typeof l!="object")&&(l={loose:!!l,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new u(a.value,l).test(this.value);if(a.operator==="")return a.value===""?!0:new u(this.value,l).test(a.semver);const p=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),d=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),h=this.semver.version===a.semver.version,m=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),y=s(this.semver,"<",a.semver,l)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),f=s(this.semver,">",a.semver,l)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return p||d||h&&m||y||f}}as=t;const r=Ui,{re:n,t:i}=or.exports,s=Yu,o=ki,c=it,u=Ct();return as}const SE=Ct(),wE=(e,t,r)=>{try{t=new SE(t,r)}catch{return!1}return t.test(e)};var Vi=wE;const NE=Ct(),IE=(e,t)=>new NE(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var OE=IE;const TE=it,DE=Ct(),RE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new DE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new TE(n,r))}),n};var CE=RE;const PE=it,AE=Ct(),bE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new AE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new PE(n,r))}),n};var LE=bE;const cs=it,FE=Ct(),ic=zi,jE=(e,t)=>{e=new FE(e,t);let r=new cs("0.0.0");if(e.test(r)||(r=new cs("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 cs(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||ic(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||ic(r,s))&&(r=s)}return r&&e.test(r)?r:null};var ME=jE;const kE=Ct(),UE=(e,t)=>{try{return new kE(e,t).range||"*"}catch{return null}};var zE=UE;const xE=it,ef=xi(),{ANY:VE}=ef,qE=Ct(),GE=Vi,sc=zi,oc=Ao,BE=Lo,HE=bo,KE=(e,t,r,n)=>{e=new xE(e,n),t=new qE(t,n);let i,s,o,c,u;switch(r){case">":i=sc,s=BE,o=oc,c=">",u=">=";break;case"<":i=oc,s=HE,o=sc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(GE(e,t,n))return!1;for(let E=0;E<t.set.length;++E){const a=t.set[E];let l=null,p=null;if(a.forEach(d=>{d.semver===VE&&(d=new ef(">=0.0.0")),l=l||d,p=p||d,i(d.semver,l.semver,n)?l=d:o(d.semver,p.semver,n)&&(p=d)}),l.operator===c||l.operator===u||(!p.operator||p.operator===c)&&s(e,p.semver))return!1;if(p.operator===u&&o(e,p.semver))return!1}return!0};var Fo=KE;const WE=Fo,XE=(e,t,r)=>WE(e,t,">",r);var ZE=XE;const JE=Fo,YE=(e,t,r)=>JE(e,t,"<",r);var QE=YE;const ac=Ct(),ev=(e,t,r)=>(e=new ac(e,r),t=new ac(t,r),e.intersects(t));var tv=ev;const rv=Vi,nv=Rt;var iv=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>nv(a,l,r));for(const a of o)rv(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(" || "),E=typeof t.raw=="string"?t.raw:String(t);return u.length<E.length?u:t};const cc=Ct(),ui=xi(),{ANY:us}=ui,dn=Vi,jo=Rt,sv=(e,t,r={})=>{if(e===t)return!0;e=new cc(e,r),t=new cc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=ov(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},ov=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===us){if(t.length===1&&t[0].semver===us)return!0;r.includePrerelease?e=[new ui(">=0.0.0-0")]:e=[new ui(">=0.0.0")]}if(t.length===1&&t[0].semver===us){if(r.includePrerelease)return!0;t=[new ui(">=0.0.0")]}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=uc(i,d,r):d.operator==="<"||d.operator==="<="?s=fc(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=jo(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!dn(d,String(i),r)||s&&!dn(d,String(s),r))return null;for(const h of t)if(!dn(d,String(h),r))return!1;return!0}let c,u,E,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=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 d of t){if(a=a||d.operator===">"||d.operator===">=",E=E||d.operator==="<"||d.operator==="<=",i){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(c=uc(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!dn(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=fc(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!dn(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&E&&!s&&o!==0||s&&a&&!i&&o!==0||p||l)},uc=(e,t,r)=>{if(!e)return t;const n=jo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},fc=(e,t,r)=>{if(!e)return t;const n=jo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var av=sv;const fs=or.exports;var cv={re:fs.re,src:fs.src,tokens:fs.t,SEMVER_SPEC_VERSION:Mi.SEMVER_SPEC_VERSION,SemVer:it,compareIdentifiers:Ns.compareIdentifiers,rcompareIdentifiers:Ns.rcompareIdentifiers,parse:tn,valid:u0,clean:d0,inc:m0,diff:$0,major:w0,minor:O0,patch:R0,prerelease:A0,compare:Rt,rcompare:F0,compareLoose:k0,compareBuild:Po,sort:V0,rsort:B0,gt:zi,lt:Ao,eq:Co,neq:Ju,gte:bo,lte:Lo,cmp:Yu,coerce:dE,Comparator:xi(),Range:Ct(),satisfies:Vi,toComparators:OE,maxSatisfying:CE,minSatisfying:LE,minVersion:ME,validRange:zE,outside:Fo,gtr:ZE,ltr:QE,intersects:tv,simplifyRange:iv,subset:av},qi={exports:{}},Mo={exports:{}};const tf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Mo.exports=tf;Mo.exports.default=tf;const uv=Mo.exports,Si=new WeakMap,rf=(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(Si.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 uv(s,e),Si.set(s,n),s};qi.exports=rf;qi.exports.default=rf;qi.exports.callCount=e=>{if(!Si.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Si.get(e)};(function(e,t){var r=er&&er.__classPrivateFieldSet||function(W,j,z,R,T){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!T)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?W!==j||!T:!j.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?T.call(W,z):T?T.value=z:j.set(W,z),z},n=er&&er.__classPrivateFieldGet||function(W,j,z,R){if(z==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?W!==j||!R:!j.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?R:z==="a"?R.call(W):R?R.value:j.get(W)},i,s,o,c,u,E;Object.defineProperty(t,"__esModule",{value:!0});const a=Ii.default,l=Jr.default,p=De.default,d=Sc.default,h=Ts.default,m=Af.default,y=mh,f=Ms.exports,g=qs.exports,$=jt,w=yi.exports,x=ws.exports,I=Wy,D=cv,V=qi.exports,A="aes-256-cbc",G=()=>Object.create(null),F=W=>W!=null;let L="";try{delete require.cache[__filename],L=p.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const H=(W,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 \`${W}\` is not allowed as it's not supported by JSON`)},B="__internal__",X=`${B}.migrations.version`;class Z{constructor(j={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),E.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},T=V(()=>{const S=f.sync({cwd:L}),q=S&&JSON.parse(l.readFileSync(S,"utf8"));return q!=null?q:{}});if(!R.cwd){if(R.projectName||(R.projectName=T().name),!R.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");R.cwd=g(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 w.default({allErrors:!0,useDefaults:!0});(0,x.default)(S);const q={type:"object",properties:R.schema};r(this,o,S.compile(q),"f");for(const[Y,Q]of Object.entries(R.schema))Q!=null&&Q.default&&(n(this,E,"f")[Y]=Q.default)}R.defaults&&r(this,E,{...n(this,E,"f"),...R.defaults},"f"),R.serialize&&(this._serialize=R.serialize),R.deserialize&&(this._deserialize=R.deserialize),this.events=new m.EventEmitter,r(this,c,R.encryptionKey,"f");const M=R.fileExtension?`.${R.fileExtension}`:"";this.path=p.resolve(R.cwd,`${(z=R.configName)!==null&&z!==void 0?z:"config"}${M}`);const P=this.store,v=Object.assign(G(),R.defaults,P);this._validate(v);try{h.deepEqual(P,v)}catch{this.store=v}if(R.watch&&this._watch(),R.migrations){if(R.projectVersion||(R.projectVersion=T().version),!R.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(R.migrations,R.projectVersion,R.beforeEachMigration)}}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 ${B} key, as it's used to manage this module internal operations.`);const{store:R}=this,T=(M,P)=>{H(M,P),n(this,u,"f").accessPropertiesByDotNotation?y.set(R,M,P):R[M]=P};if(typeof j=="object"){const M=j;for(const[P,v]of Object.entries(M))T(P,v)}else T(j,z);this.store=R}has(j){return n(this,u,"f").accessPropertiesByDotNotation?y.has(this.store,j):j in this.store}reset(...j){for(const z of j)F(n(this,E,"f")[z])&&this.set(z,n(this,E,"f")[z])}delete(j){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?y.delete(z,j):delete z[j],this.store=z}clear(){this.store=G();for(const j of Object.keys(n(this,E,"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(G(),R)}catch(j){if((j==null?void 0:j.code)==="ENOENT")return this._ensureDirectory(),G();if(n(this,u,"f").clearInvalidConfig&&j.name==="SyntaxError")return G();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,E=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=d.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),T=d.createDecipheriv(A,R,z);j=Buffer.concat([T.update(Buffer.from(j.slice(17))),T.final()]).toString("utf8")}else{const z=d.createDecipher(A,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 T=()=>{const M=R,P=j();(0,a.isDeepStrictEqual)(P,M)||(R=P,z.call(this,P,M))};return this.events.on("change",T),()=>this.events.removeListener("change",T)}_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:T,message:M=""})=>`\`${T.slice(1)}\` ${M}`);throw new Error("Config schema violation: "+R.join("; "))}_ensureDirectory(){l.mkdirSync(p.dirname(this.path),{recursive:!0})}_write(j){let z=this._serialize(j);if(n(this,c,"f")){const R=d.randomBytes(16),T=d.pbkdf2Sync(n(this,c,"f"),R.toString(),1e4,32,"sha512"),M=d.createCipheriv(A,T,R);z=Buffer.concat([R,Buffer.from(":"),M.update(Buffer.from(z)),M.final()])}if(process.env.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(G()),process.platform==="win32"?l.watch(this.path,{persistent:!1},I(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},I(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,z,R){let T=this._get(X,"0.0.0");const M=Object.keys(j).filter(v=>this._shouldPerformMigration(v,T,z));let P={...this.store};for(const v of M)try{R&&R(this,{fromVersion:T,toVersion:v,finalVersion:z,versions:M});const S=j[v];S(this),this._set(X,v),T=v,P={...this.store}}catch(S){throw this.store=P,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${S}`)}(this._isVersionInRangeFormat(T)||!D.eq(T,z))&&this._set(X,z)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===B?!0:typeof j!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!j.startsWith(`${B}.`):!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 y.get(this.store,j,z)}_set(j,z){const{store:R}=this;y.set(R,j,z),this.store=R}}t.default=Z,e.exports=Z,e.exports.default=Z})(ps,ps.exports);const lc=De.default,{app:fi,ipcMain:Is,ipcRenderer:dc,shell:fv}=Rf.default,lv=ps.exports;let hc=!1;const mc=()=>{if(!Is||!fi)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:fi.getPath("userData"),appVersion:fi.getVersion()};return hc||(Is.on("electron-store-get-data",t=>{t.returnValue=e}),hc=!0),e};class dv extends lv{constructor(t){let r,n;if(dc){const i=dc.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 Is&&fi&&({defaultCwd:r,appVersion:n}=mc());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=lc.isAbsolute(t.cwd)?t.cwd:lc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){mc()}openInEditor(){fv.openPath(this.path)}}var pc=dv,rn={exports:{}},ko={},hv=ko.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=hv("original-fs");if(Object.keys(e).length>0)return e}catch{}return Jr.default},nf={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 mv=ko.require(),et=De.default,yc=nf,pv=typeof process=="object"&&process.platform==="win32",Ec=e=>e&&typeof e=="object",Uo=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 Ke(e){this.sep=et.sep,this.fs=mv,Ec(e)&&Ec(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var yv=Ke;Ke.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)};Ke.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=et.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};Ke.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 E=et.dirname(e);s.fs.exists(E,function(a){a||s.makeDir(E),s.fs.open(e,"w",438,function(l,p){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(d,h){s.fs.write(h,t,0,t.length,0,function(){s.fs.close(h,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):p?s.fs.write(p,t,0,t.length,0,function(){s.fs.close(p,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};Ke.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=et.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(et.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};Ke.prototype.getAttributes=function(){};Ke.prototype.setAttributes=function(){};Ke.crc32update=function(e,t){return Uo[(e^t)&255]^e>>>8};Ke.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),Uo.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=Ke.crc32update(r,e[n++]);return~r>>>0};Ke.methodToString=function(e){switch(e){case yc.STORED:return"STORED ("+e+")";case yc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};Ke.canonical=function(e){if(!e)return"";var t=et.posix.normalize("/"+e.split("\\").join("/"));return et.join(".",t)};Ke.sanitize=function(e,t){e=et.resolve(et.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=et.normalize(et.join(e,r.slice(n,i).join(et.sep)));if(s.indexOf(e)===0)return s}return et.normalize(et.join(e,et.basename(t)))};Ke.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};Ke.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};Ke.isWin=pv;Ke.crcTable=Uo;var Ev={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 wi=ko.require(),sf=De.default;wi.existsSync=wi.existsSync||sf.existsSync;var vv=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&&wi.existsSync(t)?(n=wi.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=sf.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," ")}}};(function(e){e.exports=yv,e.exports.Constants=nf,e.exports.Errors=Ev,e.exports.FileAttr=vv})(rn);var Gi={},mn=rn.exports,ee=mn.Constants,gv=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,E=0,a=0,l=0,p=0,d=0,h=0;e|=mn.isWin?2560:768,r|=ee.FLG_EFS;var m={};function y(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 y(+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 ee.STORED:this.version=10;case ee.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){y(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 E},set extraLength(f){E=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 p},set inAttr(f){p=Math.max(0,f)>>>0},get attr(){return d},set attr(f){d=Math.max(0,f)>>>0},get fileAttr(){return d?(d>>>0|0)>>16&4095:0},get offset(){return h},set offset(f){h=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return ee.CENHDR+u+E+a},get realDataOffset(){return h+ee.LOCHDR+m.fnameLen+m.extraLen},get dataHeader(){return m},loadDataHeaderFromBinary:function(f){var g=f.slice(h,h+ee.LOCHDR);if(g.readUInt32LE(0)!==ee.LOCSIG)throw new Error(mn.Errors.INVALID_LOC);m={version:g.readUInt16LE(ee.LOCVER),flags:g.readUInt16LE(ee.LOCFLG),method:g.readUInt16LE(ee.LOCHOW),time:g.readUInt32LE(ee.LOCTIM),crc:g.readUInt32LE(ee.LOCCRC),compressedSize:g.readUInt32LE(ee.LOCSIZ),size:g.readUInt32LE(ee.LOCLEN),fnameLen:g.readUInt16LE(ee.LOCNAM),extraLen:g.readUInt16LE(ee.LOCEXT)}},loadFromBinary:function(f){if(f.length!==ee.CENHDR||f.readUInt32LE(0)!==ee.CENSIG)throw new Error(mn.Errors.INVALID_CEN);e=f.readUInt16LE(ee.CENVEM),t=f.readUInt16LE(ee.CENVER),r=f.readUInt16LE(ee.CENFLG),n=f.readUInt16LE(ee.CENHOW),i=f.readUInt32LE(ee.CENTIM),s=f.readUInt32LE(ee.CENCRC),o=f.readUInt32LE(ee.CENSIZ),c=f.readUInt32LE(ee.CENLEN),u=f.readUInt16LE(ee.CENNAM),E=f.readUInt16LE(ee.CENEXT),a=f.readUInt16LE(ee.CENCOM),l=f.readUInt16LE(ee.CENDSK),p=f.readUInt16LE(ee.CENATT),d=f.readUInt32LE(ee.CENATX),h=f.readUInt32LE(ee.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(ee.LOCHDR);return f.writeUInt32LE(ee.LOCSIG,0),f.writeUInt16LE(t,ee.LOCVER),f.writeUInt16LE(r,ee.LOCFLG),f.writeUInt16LE(n,ee.LOCHOW),f.writeUInt32LE(i,ee.LOCTIM),f.writeUInt32LE(s,ee.LOCCRC),f.writeUInt32LE(o,ee.LOCSIZ),f.writeUInt32LE(c,ee.LOCLEN),f.writeUInt16LE(u,ee.LOCNAM),f.writeUInt16LE(E,ee.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(ee.CENHDR+u+E+a);return f.writeUInt32LE(ee.CENSIG,0),f.writeUInt16LE(e,ee.CENVEM),f.writeUInt16LE(t,ee.CENVER),f.writeUInt16LE(r,ee.CENFLG),f.writeUInt16LE(n,ee.CENHOW),f.writeUInt32LE(i,ee.CENTIM),f.writeUInt32LE(s,ee.CENCRC),f.writeUInt32LE(o,ee.CENSIZ),f.writeUInt32LE(c,ee.CENLEN),f.writeUInt16LE(u,ee.CENNAM),f.writeUInt16LE(E,ee.CENEXT),f.writeUInt16LE(a,ee.CENCOM),f.writeUInt16LE(l,ee.CENDSK),f.writeUInt16LE(p,ee.CENATT),f.writeUInt32LE(d,ee.CENATX),f.writeUInt32LE(h,ee.CENOFF),f.fill(0,ee.CENHDR),f},toJSON:function(){const f=function(g){return g+" bytes"};return{made:e,version:t,flags:r,method:mn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(E),commentLength:f(a),diskNumStart:l,inAttr:p,attr:d,offset:h,entryHeaderSize:f(ee.CENHDR+u+E+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},jr=rn.exports,Ie=jr.Constants,$v=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 Ie.ENDHDR+i},loadFromBinary:function(s){if((s.length!==Ie.ENDHDR||s.readUInt32LE(0)!==Ie.ENDSIG)&&(s.length<Ie.ZIP64HDR||s.readUInt32LE(0)!==Ie.ZIP64SIG))throw new Error(jr.Errors.INVALID_END);s.readUInt32LE(0)===Ie.ENDSIG?(e=s.readUInt16LE(Ie.ENDSUB),t=s.readUInt16LE(Ie.ENDTOT),r=s.readUInt32LE(Ie.ENDSIZ),n=s.readUInt32LE(Ie.ENDOFF),i=s.readUInt16LE(Ie.ENDCOM)):(e=jr.readBigUInt64LE(s,Ie.ZIP64SUB),t=jr.readBigUInt64LE(s,Ie.ZIP64TOT),r=jr.readBigUInt64LE(s,Ie.ZIP64SIZ),n=jr.readBigUInt64LE(s,Ie.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(Ie.ENDHDR+i);return s.writeUInt32LE(Ie.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,Ie.ENDSUB),s.writeUInt16LE(t,Ie.ENDTOT),s.writeUInt32LE(r,Ie.ENDSIZ),s.writeUInt32LE(n,Ie.ENDOFF),s.writeUInt16LE(i,Ie.ENDCOM),s.fill(" ",Ie.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," ")}}};Gi.EntryHeader=gv;Gi.MainHeader=$v;var Bi={},_v=function(e){var t=wc.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 E=0;E<s.length;E++){var a=s[E];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},Sv=function(e){var t=wc.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 E=i[u];E.copy(o,c),c+=E.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:vc}=Sc.default,wv=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}),of=(e,t)=>Math.imul(e,t)>>>0,gc=(e,t)=>wv[(e^t)&255]^e>>>8,Rn=()=>typeof vc=="function"?vc(Buffer.alloc(12)):Rn.node();Rn.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 li={genSalt:Rn};function Hi(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])}Hi.prototype.updateKeys=function(e){const t=this.keys;return t[0]=gc(t[0],e),t[1]+=t[0]&255,t[1]=of(t[1],134775813)+1,t[2]=gc(t[2],t[1]>>>24),e};Hi.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return of(e,e^1)>>8&255};function Nv(e){const t=new Hi(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 Iv(e){const t=new Hi(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 Ov(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=Nv(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function Tv(e){Buffer.isBuffer(e)&&e.length>=12?li.genSalt=function(){return e.slice(0,12)}:e==="node"?li.genSalt=Rn.node:li.genSalt=Rn}function Dv(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=Iv(r),s=li.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 Rv={decrypt:Ov,encrypt:Dv,_salter:Tv};Bi.Deflater=_v;Bi.Inflater=Sv;Bi.ZipCrypto=Rv;var Le=rn.exports,Cv=Gi,lt=Le.Constants,ls=Bi,af=function(e){var t=new Cv.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(h){return!((t.flags&8)!==8&&Le.crc32(h)!==t.dataHeader.crc)}function E(h,m,y){if(typeof m>"u"&&typeof h=="string"&&(y=h,h=void 0),i)return h&&m&&m(Buffer.alloc(0),Le.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return h&&m&&m(f),f;if(t.encripted){if(typeof y!="string"&&!Buffer.isBuffer(y))throw new Error("ADM-ZIP: Incompatible password parameter");f=ls.ZipCrypto.decrypt(f,t,y)}var g=Buffer.alloc(t.size);switch(t.method){case Le.Constants.STORED:if(f.copy(g),u(g))return h&&m&&m(g),g;throw h&&m&&m(g,Le.Errors.BAD_CRC),new Error(Le.Errors.BAD_CRC);case Le.Constants.DEFLATED:var $=new ls.Inflater(f);if(h)$.inflateAsync(function(w){w.copy(w,0),m&&(u(w)?m(w):m(w,Le.Errors.BAD_CRC))});else{if($.inflate(g).copy(g,0),!u(g))throw new Error(Le.Errors.BAD_CRC+" "+r.toString());return g}break;default:throw h&&m&&m(Buffer.alloc(0),Le.Errors.UNKNOWN_METHOD),new Error(Le.Errors.UNKNOWN_METHOD)}}function a(h,m){if((!s||!s.length)&&Buffer.isBuffer(e))return h&&m&&m(c()),c();if(s.length&&!i){var y;switch(t.method){case Le.Constants.STORED:return t.compressedSize=t.size,y=Buffer.alloc(s.length),s.copy(y),h&&m&&m(y),y;default:case Le.Constants.DEFLATED:var f=new ls.Deflater(s);if(h)f.deflateAsync(function($){y=Buffer.alloc($.length),t.compressedSize=$.length,$.copy(y),m&&m(y)});else{var g=f.deflate();return t.compressedSize=g.length,g}f=null;break}}else if(h&&m)m(Buffer.alloc(0));else return Buffer.alloc(0)}function l(h,m){return(h.readUInt32LE(m+4)<<4)+h.readUInt32LE(m)}function p(h){for(var m=0,y,f,g;m<h.length;)y=h.readUInt16LE(m),m+=2,f=h.readUInt16LE(m),m+=2,g=h.slice(m,m+f),m+=f,lt.ID_ZIP64===y&&d(g)}function d(h){var m,y,f,g;h.length>=lt.EF_ZIP64_SCOMP&&(m=l(h,lt.EF_ZIP64_SUNCOMP),t.size===lt.EF_ZIP64_OR_32&&(t.size=m)),h.length>=lt.EF_ZIP64_RHO&&(y=l(h,lt.EF_ZIP64_SCOMP),t.compressedSize===lt.EF_ZIP64_OR_32&&(t.compressedSize=y)),h.length>=lt.EF_ZIP64_DSN&&(f=l(h,lt.EF_ZIP64_RHO),t.offset===lt.EF_ZIP64_OR_32&&(t.offset=f)),h.length>=lt.EF_ZIP64_DSN+4&&(g=h.readUInt32LE(lt.EF_ZIP64_DSN),t.diskNumStart===lt.EF_ZIP64_OR_16&&(t.diskNumStart=g))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(h){r=Le.toBuffer(h);var m=r[r.length-1];i=m===47||m===92,t.fileNameLength=r.length},get extra(){return o},set extra(h){o=h,t.extraLength=h.length,p(h)},get comment(){return n.toString()},set comment(h){n=Le.toBuffer(h),t.commentLength=n.length},get name(){var h=r.toString();return i?h.substr(h.length-1).split("/").pop():h.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(h){a(!0,h)},setData:function(h){s=Le.toBuffer(h),!i&&s.length?(t.size=s.length,t.method=Le.Constants.DEFLATED,t.crc=Le.crc32(h),t.changed=!0):t.method=Le.Constants.STORED},getData:function(h){return t.changed?s:E(!1,null,h)},getDataAsync:function(h,m){t.changed?h(s):E(!0,h,m)},set attr(h){t.attr=h},get attr(){return t.attr},set header(h){t.loadFromBinary(h)},get header(){return t},packHeader:function(){var h=t.entryHeaderToBinary(),m=Le.Constants.CENHDR;return r.copy(h,m),m+=r.length,t.extraLength&&(o.copy(h,m),m+=t.extraLength),t.commentLength&&n.copy(h,m),h},toJSON:function(){const h=function(m){return"<"+(m&&m.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:h(e),data:h(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const $c=af,Pv=Gi,Ze=rn.exports;var Av=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new Pv.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function E(d){const h=s.diskEntries;let m=s.offset;for(let y=0;y<h;y++){let f=m;const g=new $c(e);g.header=e.slice(f,f+=Ze.Constants.CENHDR),g.entryName=e.slice(f,f+=g.header.fileNameLength),m+=g.header.entryHeaderSize,d(g)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var d=s.offset,h=0;h<r.length;h++){var m=d,y=new $c(e);y.header=e.slice(m,m+=Ze.Constants.CENHDR),y.entryName=e.slice(m,m+=y.header.fileNameLength),y.header.extraLength&&(y.extra=e.slice(m,m+=y.header.extraLength)),y.header.commentLength&&(y.comment=e.slice(m,m+y.header.commentLength)),d+=y.header.entryHeaderSize,r[h]=y,n[y.entryName]=y}}function l(d){var h=e.length-Ze.Constants.ENDHDR,m=Math.max(0,h-65535),y=m,f=e.length,g=-1,$=0;for(h;h>=y;h--)if(e[h]===80){if(e.readUInt32LE(h)===Ze.Constants.ENDSIG){g=h,$=h,f=h+Ze.Constants.ENDHDR,y=h-Ze.Constants.END64HDR;continue}if(e.readUInt32LE(h)===Ze.Constants.END64SIG){y=m;continue}if(e.readUInt32LE(h)===Ze.Constants.ZIP64SIG){g=h,f=h+Ze.readBigUInt64LE(e,h+Ze.Constants.ZIP64SIZE)+Ze.Constants.ZIP64LEAD;break}}if(!~g)throw new Error(Ze.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice(g,f)),s.commentLength&&(i=e.slice($+Ze.Constants.ENDHDR)),d&&a()}function p(){r.length>1&&!u&&r.sort((d,h)=>d.entryName.toLowerCase().localeCompare(h.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(d){i=Ze.toBuffer(d),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(d){if(!o){E(d);return}r.forEach(d)},getEntry:function(d){return o||a(),n[d]||null},setEntry:function(d){o||a(),r.push(d),n[d.entryName]=d,s.totalEntries=r.length},deleteEntry:function(d){o||a();var h=n[d];if(h&&h.isDirectory){var m=this;this.getEntryChildren(h).forEach(function(y){y.entryName!==d&&m.deleteEntry(y.entryName)})}r.splice(r.indexOf(h),1),delete n[d],s.totalEntries=r.length},getEntryChildren:function(d){if(o||a(),d&&d.isDirectory){const h=[],m=d.entryName,y=m.length;return r.forEach(function(f){f.entryName.substr(0,y)===m&&h.push(f)}),h}return[]},compressToBuffer:function(){o||a(),p();const d=[],h=[];let m=0,y=0;s.size=0,s.offset=0;for(const $ of r){const w=$.getCompressedData();$.header.offset=y;const x=$.header.dataHeaderToBinary(),I=$.rawEntryName.length,D=Buffer.alloc(I+$.extra.length);$.rawEntryName.copy(D,0),D.copy($.extra,I);const V=x.length+D.length+w.length;y+=V,d.push(x),d.push(D),d.push(w);const A=$.packHeader();h.push(A),s.size+=A.length,m+=V+A.length}m+=s.mainHeaderSize,s.offset=y,y=0;const f=Buffer.alloc(m);for(const $ of d)$.copy(f,y),y+=$.length;for(const $ of h)$.copy(f,y),y+=$.length;const g=s.toBinary();return i&&i.copy(g,Ze.Constants.ENDHDR),g.copy(f,y),f},toAsyncBuffer:function(d,h,m,y){try{o||a(),p();const f=[],g=[];let $=0,w=0;s.size=0,s.offset=0;const x=function(I){if(I.length){const D=I.pop(),V=D.entryName+D.extra.toString();m&&m(V),D.getCompressedDataAsync(function(A){y&&y(V),D.header.offset=w;const G=D.header.dataHeaderToBinary(),F=Buffer.alloc(V.length,V),L=G.length+F.length+A.length;w+=L,f.push(G),f.push(F),f.push(A);const H=D.packHeader();g.push(H),s.size+=H.length,$+=L+H.length,x(I)})}else{$+=s.mainHeaderSize,s.offset=w,w=0;const D=Buffer.alloc($);f.forEach(function(A){A.copy(D,w),w+=A.length}),g.forEach(function(A){A.copy(D,w),w+=A.length});const V=s.toBinary();i&&i.copy(V,Ze.Constants.ENDHDR),V.copy(D,w),d(D)}};x(r)}catch(f){h(f)}}}};const je=rn.exports,Ft=De.default,bv=af,Lv=Av,mr=(e,t)=>typeof e=="boolean"?e:t,ds=(e,t)=>typeof e=="string"?e:t,Fv={noSort:!1,readEntries:!1,method:je.Constants.NONE,fs:null};var _c=function(e,t){let r=null;const n=Object.assign(Object.create(null),Fv);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=je.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new je(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=je.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(je.Errors.INVALID_FILENAME);const s=new Lv(r,n),{canonical:o,sanitize:c}=je;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function E(a){const{join:l,normalize:p,sep:d}=Ft.posix;return l(".",p(d+a.split("\\").join(d)+d))}return{readFile:function(a,l){var p=u(a);return p&&p.getData(l)||null},readFileAsync:function(a,l){var p=u(a);p?p.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var p=u(a);if(p){var d=p.getData();if(d&&d.length)return d.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,p){var d=u(a);d?d.getDataAsync(function(h,m){if(m){l(h,m);return}h&&h.length?l(h.toString(p||"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 p=u(a);p&&(p.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var p=u(a);p&&p.setData(l)},addLocalFile:function(a,l,p,d){if(i.fs.existsSync(a)){l=l?E(l):"";var h=a.split("\\").join("/").split("/").pop();l+=p||h;const m=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),d,m)}else throw new Error(je.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,p){if(p instanceof RegExp?p=function(d){return function(h){return d.test(h)}}(p):typeof p!="function"&&(p=function(){return!0}),l=l?E(l):"",a=Ft.normalize(a),i.fs.existsSync(a)){const d=i.findFiles(a),h=this;d.length&&d.forEach(function(m){var y=Ft.relative(a,m).split("\\").join("/");if(p(y)){var f=i.fs.statSync(m);f.isFile()?h.addFile(l+y,i.fs.readFileSync(m),"",f):h.addFile(l+y+"/",Buffer.alloc(0),"",f)}})}else throw new Error(je.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,p,d){d instanceof RegExp?d=function(m){return function(y){return m.test(y)}}(d):typeof d!="function"&&(d=function(){return!0}),p=p?E(p):"",a=Ft.normalize(a);var h=this;i.fs.open(a,"r",function(m){if(m&&m.code==="ENOENT")l(void 0,je.Errors.FILE_NOT_FOUND.replace("%s",a));else if(m)l(void 0,m);else{var y=i.findFiles(a),f=-1,g=function(){if(f+=1,f<y.length){var $=y[f],w=Ft.relative(a,$).split("\\").join("/");w=w.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),d(w)?i.fs.stat($,function(x,I){x&&l(void 0,x),I.isFile()?i.fs.readFile($,function(D,V){D?l(void 0,D):(h.addFile(p+w,V,"",I),g())}):(h.addFile(p+w+"/",Buffer.alloc(0),"",I),g())}):g()}else l(!0,void 0)};g()}})},addLocalFolderPromise:function(a,l){return new Promise((p,d)=>{const{filter:h,zipPath:m}=Object.assign({},l);this.addLocalFolderAsync(a,(y,f)=>{f&&d(f),y&&p(this)},m,h)})},addFile:function(a,l,p,d){let h=u(a);const m=h!=null;m||(h=new bv,h.entryName=a),h.comment=p||"";const y=typeof d=="object"&&d instanceof i.fs.Stats;y&&(h.header.time=d.mtime);var f=h.isDirectory?16:0;if(!je.isWin){let g=h.isDirectory?16384:32768;y?g|=4095&d.mode:typeof d=="number"?g|=4095&d:g|=h.isDirectory?493:420,f=(f|g<<16)>>>0}h.attr=f,h.setData(l),m||s.setEntry(h)},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,p,d,h,m){d=mr(d,!1),h=mr(h,!1),p=mr(p,!0),m=ds(m,ds(h,void 0));var y=u(a);if(!y)throw new Error(je.Errors.NO_ENTRY);var f=o(y.entryName),g=c(l,m&&!y.isDirectory?m:p?f:Ft.basename(f));if(y.isDirectory){var $=s.getEntryChildren(y);return $.forEach(function(I){if(I.isDirectory)return;var D=I.getData();if(!D)throw new Error(je.Errors.CANT_EXTRACT_FILE);var V=o(I.entryName),A=c(l,p?V:Ft.basename(V));const G=h?I.header.fileAttr:void 0;i.writeFileTo(A,D,d,G)}),!0}var w=y.getData();if(!w)throw new Error(je.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync(g)&&!d)throw new Error(je.Errors.CANT_OVERRIDE);const x=h?a.header.fileAttr:void 0;return i.writeFileTo(g,w,d,x),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var p=s.entries[l].getData(a);if(!p)return!1}catch{return!1}return!0},extractAllTo:function(a,l,p,d){if(l=mr(l,!1),d=ds(p,d),p=mr(p,!1),!s)throw new Error(je.Errors.NO_ZIP);s.entries.forEach(function(h){var m=c(a,o(h.entryName.toString()));if(h.isDirectory){i.makeDir(m);return}var y=h.getData(d);if(!y)throw new Error(je.Errors.CANT_EXTRACT_FILE);const f=p?h.header.fileAttr:void 0;i.writeFileTo(m,y,l,f);try{i.fs.utimesSync(m,h.header.time,h.header.time)}catch{throw new Error(je.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,p,d){if(d||(d=function(){}),l=mr(l,!1),typeof p=="function"&&!d&&(d=p),p=mr(p,!1),!s){d(new Error(je.Errors.NO_ZIP));return}a=Ft.resolve(a);const h=$=>c(a,Ft.normalize(o($.entryName.toString()))),m=($,w)=>new Error($+': "'+w+'"'),y=[],f=new Set;s.entries.forEach($=>{$.isDirectory?y.push($):f.add($)});for(const $ of y){const w=h($),x=p?$.header.fileAttr:void 0;try{i.makeDir(w),x&&i.fs.chmodSync(w,x),i.fs.utimesSync(w,$.header.time,$.header.time)}catch{d(m("Unable to create folder",w))}}const g=()=>{f.size===0&&d()};for(const $ of f.values()){const w=Ft.normalize(o($.entryName.toString())),x=c(a,w);$.getDataAsync(function(I,D){if(D){d(new Error(D));return}if(!I)d(new Error(je.Errors.CANT_EXTRACT_FILE));else{const V=p?$.header.fileAttr:void 0;i.writeFileToAsync(x,I,l,V,function(A){if(!A){d(m("Unable to write file",x));return}i.fs.utimes(x,$.header.time,$.header.time,function(G){if(G){d(m("Unable to set times",x));return}f.delete($),g()})})}})}g()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var p=s.compressToBuffer();if(p){var d=i.writeFileTo(a,p,!0);typeof l=="function"&&l(d?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:p,perm:d}=Object.assign({overwrite:!0},l);return new Promise((h,m)=>{!a&&n.filename&&(a=n.filename),a||m("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(y=>{const f=g=>g?h(g):m("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,y,p,d,f)},m)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,p,d){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,p,d),null):s.compressToBuffer()}}},Cn,Vr,qr,Pn,gr,$r,Yt,Qt,Ni,Gr,An,Os,bn,Nt,Br,di,Ln,Bt;const wt=class{constructor(t,r){Ve(this,An);Ve(this,Br);Ve(this,Cn,fe.screen.getPrimaryDisplay().size);Ve(this,Vr,ue(this,Cn).width);Ve(this,qr,ue(this,Cn).height);Ve(this,Pn,{getAppPath:fe.app.getAppPath(),isPackaged:fe.app.isPackaged,downloads:fe.app.getPath("downloads"),userData:fe.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});Ve(this,gr,0);Ve(this,$r,0);Ve(this,Yt,0);Ve(this,Qt,0);Ve(this,Ni,process.platform==="win32");Ve(this,Gr,void 0);Ve(this,bn,!1);Ve(this,Nt,!1);this.bw=t,ue(this,Pn).getVersion=r,fe.ipcMain.handle("getInfo",()=>ue(this,Pn)),fe.ipcMain.handle("existsSync",(i,s)=>Et.existsSync(s)),fe.ipcMain.handle("copySync",(i,s,o)=>Et.copySync(s,o)),fe.ipcMain.handle("removeSync",(i,s)=>Et.removeSync(s)),fe.ipcMain.handle("ensureFileSync",(i,s)=>Et.ensureFileSync(s)),fe.ipcMain.handle("readFileSync",(i,s)=>Et.readFileSync(s,{encoding:"utf8"})),fe.ipcMain.handle("readFile",(i,s,o)=>Et.readFile(s,o)),fe.ipcMain.handle("writeFileSync",(i,s,o,c)=>Et.writeFileSync(s,o,c)),fe.ipcMain.handle("appendFile",(i,s,o,c)=>Et.appendFile(s,o,c)),fe.ipcMain.handle("win_close",()=>t.close()),fe.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),fe.ipcMain.handle("showMessageBox",(i,s)=>fe.dialog.showMessageBox(s)),fe.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>Et.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),fe.ipcMain.handle("navigate_to",(i,s)=>fe.shell.openExternal(s)),fe.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),fe.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;fe.ipcMain.handle("Store",(i,s)=>{n=new pc(s)}),fe.ipcMain.handle("flush",(i,s)=>{n.store=s}),fe.ipcMain.handle("Store_isEmpty",()=>n.size===0),fe.ipcMain.handle("Store_get",()=>n.store),fe.ipcMain.handle("zip",(i,s,o)=>{const c=new _c;c.addLocalFolder(s),c.writeZip(o)}),fe.ipcMain.handle("unzip",(i,s,o)=>{Et.removeSync(o),Et.ensureDirSync(o),new _c(s).extractAllTo(o,!0)}),fe.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),ue(this,Ni)?(fe.ipcMain.handle("setSimpleFullScreen",(i,s)=>{We(this,Nt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(ue(this,gr),ue(this,$r)),t.setContentSize(ue(this,Yt),ue(this,Qt)+ue(wt,Bt))),We(this,Nt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(ue(this,Vr),ue(this,qr)-ue(wt,Bt))}),t.on("leave-full-screen",()=>{Cr(this,Br,di).call(this,!1,ue(this,gr),ue(this,$r),ue(this,Yt),ue(this,Qt)+ue(wt,Bt))})):fe.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(ue(this,Yt),ue(this,Qt)+ue(wt,Bt))}),fe.ipcMain.handle("window",(i,s,o,c,u,E)=>Cr(this,Br,di).call(this,s,o,c,u,E)),t.on("move",()=>Cr(this,An,Os).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{pc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new fe.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];We(wt,Bt,o-c),We(wt,Ln,new wt(s,r)),i=()=>ue(wt,Ln).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let kr=wt;Cn=new WeakMap,Vr=new WeakMap,qr=new WeakMap,Pn=new WeakMap,gr=new WeakMap,$r=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,Ni=new WeakMap,Gr=new WeakMap,An=new WeakSet,Os=function(){if(ue(this,Gr)||ue(this,Nt))return;We(this,Nt,!0);const{x:t,y:r}=this.bw.getBounds();We(this,Gr,setTimeout(()=>{if(We(this,Gr,void 0),ue(this,bn)){We(this,bn,!1);return}We(this,Nt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Cr(this,An,Os).call(this);return}Cr(this,Br,di).call(this,!1,n.x,n.y,ue(this,Yt),ue(this,Qt))},1e3/60*10))},bn=new WeakMap,Nt=new WeakMap,Br=new WeakSet,di=function(t,r,n,i,s){ue(this,Nt)||(We(this,Nt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(ue(this,Vr)-r)*.5,n=(ue(this,qr)-n)*.5):((r<0||r>ue(this,Vr))&&(r=0),(n<0||n>ue(this,qr))&&(n=0)),(ue(this,gr)!==r||ue(this,$r)!==n)&&(We(this,gr,r),We(this,$r,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),We(this,Yt,i),We(this,Qt,s),this.bw.setContentSize(i,s+ue(wt,Bt)),We(this,Nt,!1)))},Ln=new WeakMap,Bt=new WeakMap,Ve(kr,Ln,void 0),Ve(kr,Bt,0);module.exports=kr;exports.appMain=kr;
|
|
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 E=m[d];if(E.length===0)continue;const p=(0,n.propertyInData)(a,l,d,v.opts.ownProperties);u.setParams({property:d,depsCount:E.length,deps:E.join(", ")}),v.allErrors?a.if(p,()=>{for(const f of E)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${p} && (${(0,n.checkMissingProp)(u,E,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 E in m)(0,r.alwaysValidSchema)(h,m[E])||(a.if((0,n.propertyInData)(a,l,E,h.opts.ownProperties),()=>{const p=u.subschema({keyword:v,schemaProp:E},d);u.mergeValidEvaluated(p,d)},()=>a.var(d,!0)),u.ok(d))}e.validateSchemaDeps=c,e.default=i})(wf);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});const Nf=re,a0=fe,c0={message:"property name must be valid",params:({params:e})=>(0,Nf._)`{propertyName: ${e.propertyName}}`},u0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:c0,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,a0.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,Nf.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Lo.default=u0;var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});const ii=ne,mt=re,f0=jt,si=fe,l0={message:"must NOT have additional properties",params:({params:e})=>(0,mt._)`{additionalProperty: ${e.additionalProperty}}`},d0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:l0,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,si.alwaysValidSchema)(o,r))return;const m=(0,ii.allSchemaProperties)(n.properties),a=(0,ii.allSchemaProperties)(n.patternProperties);l(),e.ok((0,mt._)`${s} === ${f0.default.errors}`);function l(){t.forIn("key",i,p=>{!m.length&&!a.length?d(p):t.if(v(p),()=>d(p))})}function v(p){let f;if(m.length>8){const $=(0,si.schemaRefOrVal)(o,n.properties,"properties");f=(0,ii.isOwnProperty)(t,$,p)}else m.length?f=(0,mt.or)(...m.map($=>(0,mt._)`${p} === ${$}`)):f=mt.nil;return a.length&&(f=(0,mt.or)(f,...a.map($=>(0,mt._)`${(0,ii.usePattern)(e,$)}.test(${p})`))),(0,mt.not)(f)}function h(p){t.code((0,mt._)`delete ${i}[${p}]`)}function d(p){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(p);return}if(r===!1){e.setParams({additionalProperty:p}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,si.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(E(p,f,!1),t.if((0,mt.not)(f),()=>{e.reset(),h(p)})):(E(p,f),c||t.if((0,mt.not)(f),()=>t.break()))}}function E(p,f,$){const _={keyword:"additionalProperties",dataProp:p,dataPropType:si.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};Hi.default=d0;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});const h0=_t,Za=ne,hs=fe,Ja=Hi,m0={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&&Ja.default.code(new h0.KeywordCxt(s,Ja.default,"additionalProperties"));const o=(0,Za.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=hs.mergeEvaluated.props(t,(0,hs.toHash)(o),s.props));const c=o.filter(l=>!(0,hs.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,Za.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)}}};Fo.default=m0;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});const Ya=ne,oi=re,Qa=fe,ec=fe,p0={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,Ya.allSchemaProperties)(r),u=c.filter(E=>(0,Qa.alwaysValidSchema)(s,r[E]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const m=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof oi.Name)&&(s.props=(0,ec.evaluatedPropsToName)(t,s.props));const{props:l}=s;v();function v(){for(const E of c)m&&h(E),s.allErrors?d(E):(t.var(a,!0),d(E),t.if(a))}function h(E){for(const p in m)new RegExp(E).test(p)&&(0,Qa.checkStrictMode)(s,`property ${p} matches pattern ${E} (use allowMatchingProperties)`)}function d(E){t.forIn("key",n,p=>{t.if((0,oi._)`${(0,Ya.usePattern)(e,E)}.test(${p})`,()=>{const f=u.includes(E);f||e.subschema({keyword:"patternProperties",schemaProp:E,dataProp:p,dataPropType:ec.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,oi._)`${l}[${p}]`,!0):!f&&!s.allErrors&&t.if((0,oi.not)(a),()=>t.break())})})}}};jo.default=p0;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});const y0=fe,E0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,y0.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"}};Mo.default=E0;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});const v0=ne,g0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:v0.validateUnion,error:{message:"must match a schema in anyOf"}};ko.default=g0;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});const Ei=re,$0=fe,_0={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ei._)`{passingSchemas: ${e.passing}}`},S0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:_0,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,$0.alwaysValidSchema)(i,a)?t.var(u,!0):v=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,Ei._)`${u} && ${o}`).assign(o,!1).assign(c,(0,Ei._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),v&&e.mergeEvaluated(v,Ei.Name)})})}}};Uo.default=S0;var zo={};Object.defineProperty(zo,"__esModule",{value:!0});const w0=fe,N0={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,w0.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};zo.default=N0;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});const Ci=re,If=fe,I0={message:({params:e})=>(0,Ci.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ci._)`{failingKeyword: ${e.ifClause}}`},O0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:I0,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,If.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=tc(n,"then"),s=tc(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,Ci.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,Ci._)`${a}`):e.setParams({ifClause:a})}}}};function tc(e,t){const r=e.schema[t];return r!==void 0&&!(0,If.alwaysValidSchema)(e,r)}xo.default=O0;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});const T0=fe,D0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,T0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Vo.default=D0;Object.defineProperty(Co,"__esModule",{value:!0});const R0=nn,C0=Po,P0=sn,A0=Ao,b0=bo,L0=wf,F0=Lo,j0=Hi,M0=Fo,k0=jo,U0=Mo,z0=ko,x0=Uo,V0=zo,q0=xo,G0=Vo;function B0(e=!1){const t=[U0.default,z0.default,x0.default,V0.default,q0.default,G0.default,F0.default,j0.default,L0.default,M0.default,k0.default];return e?t.push(C0.default,A0.default):t.push(R0.default,P0.default),t.push(b0.default),t}Co.default=B0;var qo={},Go={};Object.defineProperty(Go,"__esModule",{value:!0});const Re=re,H0={message:({schemaCode:e})=>(0,Re.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Re._)`{format: ${e}}`},K0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:H0,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}),E=r.const("fDef",(0,Re._)`${d}[${o}]`),p=r.let("fType"),f=r.let("format");r.if((0,Re._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>r.assign(p,(0,Re._)`${E}.type || "string"`).assign(f,(0,Re._)`${E}.validate`),()=>r.assign(p,(0,Re._)`"string"`).assign(f,E)),e.fail$data((0,Re.or)($(),_()));function $(){return u.strictSchema===!1?Re.nil:(0,Re._)`${o} && !${f}`}function _(){const D=a.$async?(0,Re._)`(${E}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Re._)`${f}(${n})`,x=(0,Re._)`(typeof ${f} == "function" ? ${D} : ${f}.test(${n}))`;return(0,Re._)`${f} && ${f} !== true && ${p} === ${t} && !${x}`}}function h(){const d=l.formats[s];if(!d){$();return}if(d===!0)return;const[E,p,f]=_(d);E===t&&e.pass(D());function $(){if(u.strictSchema===!1){l.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${s}" ignored in schema at path "${m}"`}}function _(x){const T=x instanceof RegExp?(0,Re.regexpCode)(x):u.code.formats?(0,Re._)`${u.code.formats}${(0,Re.getProperty)(s)}`:void 0,R=r.scopeValue("formats",{key:s,ref:x,code:T});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Re._)`${R}.validate`]:["string",x,R]}function D(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Re._)`await ${f}(${n})`}return typeof p=="function"?(0,Re._)`${f}(${n})`:(0,Re._)`${f}.test(${n})`}}}};Go.default=K0;Object.defineProperty(qo,"__esModule",{value:!0});const W0=Go,X0=[W0.default];qo.default=X0;var en={};Object.defineProperty(en,"__esModule",{value:!0});en.contentVocabulary=en.metadataVocabulary=void 0;en.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];en.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(po,"__esModule",{value:!0});const Z0=yo,J0=vo,Y0=Co,Q0=qo,rc=en,eE=[Z0.default,J0.default,(0,Y0.default)(),Q0.default,rc.metadataVocabulary,rc.contentVocabulary];po.default=eE;var Bo={},Of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Of);Object.defineProperty(Bo,"__esModule",{value:!0});const kr=re,bs=Of,nc=nt,tE=fe,rE={message:({params:{discrError:e,tagName:t}})=>e===bs.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,kr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},nE={keyword:"discriminator",type:"object",schemaType:"object",error:rE,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,kr._)`${r}${(0,kr.getProperty)(c)}`);t.if((0,kr._)`typeof ${m} == "string"`,()=>a(),()=>e.error(!1,{discrError:bs.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,kr._)`${m} === ${d}`),t.assign(u,l(h[d]));t.else(),e.error(!1,{discrError:bs.DiscrError.Mapping,tag:m,tagName:c}),t.endIf()}function l(h){const d=t.name("valid"),E=e.subschema({keyword:"oneOf",schemaProp:h},d);return e.mergeEvaluated(E,kr.Name),d}function v(){var h;const d={},E=f(i);let p=!0;for(let D=0;D<o.length;D++){let x=o[D];(x==null?void 0:x.$ref)&&!(0,tE.schemaHasRulesButRef)(x,s.self.RULES)&&(x=nc.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,x==null?void 0:x.$ref),x instanceof nc.SchemaEnv&&(x=x.schema));const T=(h=x==null?void 0:x.properties)===null||h===void 0?void 0:h[c];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);p=p&&(E||f(x)),$(T,D)}if(!p)throw new Error(`discriminator: "${c}" must be required`);return d;function f({required:D}){return Array.isArray(D)&&D.includes(c)}function $(D,x){if(D.const)_(D.const,x);else if(D.enum)for(const T of D.enum)_(T,x);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(D,x){if(typeof D!="string"||D in d)throw new Error(`discriminator: "${c}" values must be unique strings`);d[D]=x}}}};Bo.default=nE;const iE="http://json-schema.org/draft-07/schema#",sE="http://json-schema.org/draft-07/schema#",oE="Core schema meta-schema",aE={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:[]}},cE=["object","boolean"],uE={$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:"#"}},fE={$schema:iE,$id:sE,title:oE,definitions:aE,type:cE,properties:uE,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=Hu,n=po,i=Bo,s=fE,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=_t;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}})})(Ii,Ii.exports);var Ls={exports:{}},Tf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,V){return{validate:P,compare:V}}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:E,"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:z,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:f,int32:{type:"number",validate:D},int64:{type:"number",validate:x},float:{type:"number",validate:T},double:{type:"number",validate:T},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,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 V=n.exec(P);if(!V)return!1;const M=+V[1],A=+V[2],B=+V[3];return A>=1&&A<=12&&B>=1&&B<=(A===2&&r(M)?29:i[A])}function o(P,V){if(!!(P&&V))return P>V?1:P<V?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(P,V){const M=c.exec(P);if(!M)return!1;const A=+M[1],B=+M[2],q=+M[3],H=M[5];return(A<=23&&B<=59&&q<=59||A===23&&B===59&&q===60)&&(!V||H!=="")}function m(P,V){if(!(P&&V))return;const M=c.exec(P),A=c.exec(V);if(!!(M&&A))return P=M[1]+M[2]+M[3]+(M[4]||""),V=A[1]+A[2]+A[3]+(A[4]||""),P>V?1:P<V?-1:0}const a=/t|\s/i;function l(P){const V=P.split(a);return V.length===2&&s(V[0])&&u(V[1],!0)}function v(P,V){if(!(P&&V))return;const[M,A]=P.split(a),[B,q]=V.split(a),H=o(M,B);if(H!==void 0)return H||m(A,q)}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 E(P){return h.test(P)&&d.test(P)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(P){return p.lastIndex=0,p.test(P)}const $=-(2**31),_=2**31-1;function D(P){return Number.isInteger(P)&&P<=_&&P>=$}function x(P){return Number.isInteger(P)}function T(){return!0}const R=/[^\\]\\Z/;function z(P){if(R.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}})(Tf);var Df={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ii.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 E=new t.KeywordCxt(v,d.RULES.all.format.definition,"format");E.$data?p():f();function p(){const _=u.scopeValue("formats",{ref:d.formats,code:h.code.formats}),D=u.const("fmt",r._`${_}[${E.schemaCode}]`);c.fail$data(r.or(r._`typeof ${D} != "object"`,r._`${D} instanceof RegExp`,r._`typeof ${D}.compare != "function"`,$(D)))}function f(){const _=E.schema,D=d.formats[_];if(!D||D===!0)return;if(typeof D!="object"||D instanceof RegExp||typeof D.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const x=u.scopeValue("formats",{key:_,ref:D,code:h.code.formats?r._`${h.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(x))}function $(_){return r._`${_}.compare(${m}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(Df);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Tf,n=Df,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 E of a)m.addFormat(E,l[E])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Ls,Ls.exports);const lE=(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);!dE(i,s)&&n||Object.defineProperty(e,r,s)},dE=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)},hE=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},mE=(e,t)=>`/* Wrapped ${e}*/
|
|
15
|
+
${t}`,pE=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),yE=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),EE=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=mE.bind(null,n,t.toString());Object.defineProperty(i,"name",yE),Object.defineProperty(e,"toString",{...pE,value:i})},vE=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))lE(e,t,i,r);return hE(e,t),EE(e,t,n),e};var gE=vE;const $E=gE;var _E=(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 $E(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},ir={exports:{}};const SE="2.0.0",wE=256,NE=Number.MAX_SAFE_INTEGER||9007199254740991,IE=16;var Ki={SEMVER_SPEC_VERSION:SE,MAX_LENGTH:wE,MAX_SAFE_INTEGER:NE,MAX_SAFE_COMPONENT_LENGTH:IE};const OE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Wi=OE;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=Ki,n=Wi;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*$")})(ir,ir.exports);const TE=["includePrerelease","loose","rtl"],DE=e=>e?typeof e!="object"?{loose:!0}:TE.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var Xi=DE;const ic=/^[0-9]+$/,Rf=(e,t)=>{const r=ic.test(e),n=ic.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},RE=(e,t)=>Rf(t,e);var Fs={compareIdentifiers:Rf,rcompareIdentifiers:RE};const ai=Wi,{MAX_LENGTH:sc,MAX_SAFE_INTEGER:ci}=Ki,{re:oc,t:ac}=ir.exports,CE=Xi,{compareIdentifiers:jr}=Fs;class pt{constructor(t,r){if(r=CE(r),t instanceof pt){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>sc)throw new TypeError(`version is longer than ${sc} characters`);ai("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?oc[ac.LOOSE]:oc[ac.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ci||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ci||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ci||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<ci)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ai("SemVer.compare",this.version,this.options,t),!(t instanceof pt)){if(typeof t=="string"&&t===this.version)return 0;t=new pt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof pt||(t=new pt(t,this.options)),jr(this.major,t.major)||jr(this.minor,t.minor)||jr(this.patch,t.patch)}comparePre(t){if(t instanceof pt||(t=new pt(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(ai("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return jr(n,i)}while(++r)}compareBuild(t){t instanceof pt||(t=new pt(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(ai("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return jr(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&&(jr(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 Qe=pt;const{MAX_LENGTH:PE}=Ki,{re:cc,t:uc}=ir.exports,fc=Qe,AE=Xi,bE=(e,t)=>{if(t=AE(t),e instanceof fc)return e;if(typeof e!="string"||e.length>PE||!(t.loose?cc[uc.LOOSE]:cc[uc.FULL]).test(e))return null;try{return new fc(e,t)}catch{return null}};var on=bE;const LE=on,FE=(e,t)=>{const r=LE(e,t);return r?r.version:null};var jE=FE;const ME=on,kE=(e,t)=>{const r=ME(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var UE=kE;const lc=Qe,zE=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new lc(e instanceof lc?e.version:e,r).inc(t,n).version}catch{return null}};var xE=zE;const dc=Qe,VE=(e,t,r)=>new dc(e,r).compare(new dc(t,r));var wt=VE;const qE=wt,GE=(e,t,r)=>qE(e,t,r)===0;var Ho=GE;const hc=on,BE=Ho,HE=(e,t)=>{if(BE(e,t))return null;{const r=hc(e),n=hc(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 KE=HE;const WE=Qe,XE=(e,t)=>new WE(e,t).major;var ZE=XE;const JE=Qe,YE=(e,t)=>new JE(e,t).minor;var QE=YE;const ev=Qe,tv=(e,t)=>new ev(e,t).patch;var rv=tv;const nv=on,iv=(e,t)=>{const r=nv(e,t);return r&&r.prerelease.length?r.prerelease:null};var sv=iv;const ov=wt,av=(e,t,r)=>ov(t,e,r);var cv=av;const uv=wt,fv=(e,t)=>uv(e,t,!0);var lv=fv;const mc=Qe,dv=(e,t,r)=>{const n=new mc(e,r),i=new mc(t,r);return n.compare(i)||n.compareBuild(i)};var Ko=dv;const hv=Ko,mv=(e,t)=>e.sort((r,n)=>hv(r,n,t));var pv=mv;const yv=Ko,Ev=(e,t)=>e.sort((r,n)=>yv(n,r,t));var vv=Ev;const gv=wt,$v=(e,t,r)=>gv(e,t,r)>0;var Zi=$v;const _v=wt,Sv=(e,t,r)=>_v(e,t,r)<0;var Wo=Sv;const wv=wt,Nv=(e,t,r)=>wv(e,t,r)!==0;var Cf=Nv;const Iv=wt,Ov=(e,t,r)=>Iv(e,t,r)>=0;var Xo=Ov;const Tv=wt,Dv=(e,t,r)=>Tv(e,t,r)<=0;var Zo=Dv;const Rv=Ho,Cv=Cf,Pv=Zi,Av=Xo,bv=Wo,Lv=Zo,Fv=(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 Rv(e,r,n);case"!=":return Cv(e,r,n);case">":return Pv(e,r,n);case">=":return Av(e,r,n);case"<":return bv(e,r,n);case"<=":return Lv(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Pf=Fv;const jv=Qe,Mv=on,{re:ui,t:fi}=ir.exports,kv=(e,t)=>{if(e instanceof jv)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(ui[fi.COERCE]);else{let n;for(;(n=ui[fi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),ui[fi.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ui[fi.COERCERTL].lastIndex=-1}return r===null?null:Mv(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var Uv=kv,ms,pc;function zv(){return pc||(pc=1,ms=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ms}var xv=le;le.Node=Sr;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++)Gv(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=Vv(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 Vv(e,t,r){var n=t===e.head?new Sr(r,null,t,e):new Sr(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 Sr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Gv(e,t){e.head=new Sr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Sr(e,t,r,n){if(!(this instanceof Sr))return new Sr(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{zv()(le)}catch{}const Bv=xv,pr=Symbol("max"),Ut=Symbol("length"),Mr=Symbol("lengthCalculator"),Cn=Symbol("allowStale"),yr=Symbol("maxAge"),kt=Symbol("dispose"),yc=Symbol("noDisposeOnSet"),Le=Symbol("lruList"),yt=Symbol("cache"),Af=Symbol("updateAgeOnGet"),ps=()=>1;class Hv{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[pr]=t.max||1/0;const r=t.length||ps;if(this[Mr]=typeof r!="function"?ps:r,this[Cn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[yr]=t.maxAge||0,this[kt]=t.dispose,this[yc]=t.noDisposeOnSet||!1,this[Af]=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[pr]=t||1/0,gn(this)}get max(){return this[pr]}set allowStale(t){this[Cn]=!!t}get allowStale(){return this[Cn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[yr]=t,gn(this)}get maxAge(){return this[yr]}set lengthCalculator(t){typeof t!="function"&&(t=ps),t!==this[Mr]&&(this[Mr]=t,this[Ut]=0,this[Le].forEach(r=>{r.length=this[Mr](r.value,r.key),this[Ut]+=r.length})),gn(this)}get lengthCalculator(){return this[Mr]}get length(){return this[Ut]}get itemCount(){return this[Le].length}rforEach(t,r){r=r||this;for(let n=this[Le].tail;n!==null;){const i=n.prev;Ec(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Le].head;n!==null;){const i=n.next;Ec(this,t,n,r),n=i}}keys(){return this[Le].toArray().map(t=>t.key)}values(){return this[Le].toArray().map(t=>t.value)}reset(){this[kt]&&this[Le]&&this[Le].length&&this[Le].forEach(t=>this[kt](t.key,t.value)),this[yt]=new Map,this[Le]=new Bv,this[Ut]=0}dump(){return this[Le].map(t=>Pi(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Le]}set(t,r,n){if(n=n||this[yr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Mr](r,t);if(this[yt].has(t)){if(s>this[pr])return Gr(this,this[yt].get(t)),!1;const u=this[yt].get(t).value;return this[kt]&&(this[yc]||this[kt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Ut]+=s-u.length,u.length=s,this.get(t),gn(this),!0}const o=new Kv(t,r,s,i,n);return o.length>this[pr]?(this[kt]&&this[kt](t,r),!1):(this[Ut]+=o.length,this[Le].unshift(o),this[yt].set(t,this[Le].head),gn(this),!0)}has(t){if(!this[yt].has(t))return!1;const r=this[yt].get(t).value;return!Pi(this,r)}get(t){return ys(this,t,!0)}peek(t){return ys(this,t,!1)}pop(){const t=this[Le].tail;return t?(Gr(this,t),t.value):null}del(t){Gr(this,this[yt].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[yt].forEach((t,r)=>ys(this,r,!1))}}const ys=(e,t,r)=>{const n=e[yt].get(t);if(n){const i=n.value;if(Pi(e,i)){if(Gr(e,n),!e[Cn])return}else r&&(e[Af]&&(n.value.now=Date.now()),e[Le].unshiftNode(n));return i.value}},Pi=(e,t)=>{if(!t||!t.maxAge&&!e[yr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[yr]&&r>e[yr]},gn=e=>{if(e[Ut]>e[pr])for(let t=e[Le].tail;e[Ut]>e[pr]&&t!==null;){const r=t.prev;Gr(e,t),t=r}},Gr=(e,t)=>{if(t){const r=t.value;e[kt]&&e[kt](r.key,r.value),e[Ut]-=r.length,e[yt].delete(r.key),e[Le].removeNode(t)}};class Kv{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Ec=(e,t,r,n)=>{let i=r.value;Pi(e,i)&&(Gr(e,r),e[Cn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Wv=Hv,Es,vc;function Nt(){if(vc)return Es;vc=1;class e{constructor(A,B){if(B=n(B),A instanceof e)return A.loose===!!B.loose&&A.includePrerelease===!!B.includePrerelease?A:new e(A.raw,B);if(A instanceof i)return this.raw=A.value,this.set=[[A]],this.format(),this;if(this.options=B,this.loose=!!B.loose,this.includePrerelease=!!B.includePrerelease,this.raw=A,this.set=A.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${A}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(H=>!v(H[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const H of this.set)if(H.length===1&&h(H[0])){this.set=[H];break}}}this.format()}format(){return this.range=this.set.map(A=>A.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(A){A=A.trim();const q=`parseRange:${Object.keys(this.options).join(",")}:${A}`,H=r.get(q);if(H)return H;const K=this.options.loose,G=K?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];A=A.replace(G,P(this.options.includePrerelease)),s("hyphen replace",A),A=A.replace(c[u.COMPARATORTRIM],m),s("comparator trim",A),A=A.replace(c[u.TILDETRIM],a),A=A.replace(c[u.CARETTRIM],l),A=A.split(/\s+/).join(" ");let b=A.split(" ").map(F=>E(F,this.options)).join(" ").split(/\s+/).map(F=>z(F,this.options));K&&(b=b.filter(F=>(s("loose invalid filter",F,this.options),!!F.match(c[u.COMPARATORLOOSE])))),s("range list",b);const k=new Map,O=b.map(F=>new i(F,this.options));for(const F of O){if(v(F))return[F];k.set(F.value,F)}k.size>1&&k.has("")&&k.delete("");const I=[...k.values()];return r.set(q,I),I}intersects(A,B){if(!(A instanceof e))throw new TypeError("a Range is required");return this.set.some(q=>d(q,B)&&A.set.some(H=>d(H,B)&&q.every(K=>H.every(G=>K.intersects(G,B)))))}test(A){if(!A)return!1;if(typeof A=="string")try{A=new o(A,this.options)}catch{return!1}for(let B=0;B<this.set.length;B++)if(V(this.set[B],A,this.options))return!0;return!1}}Es=e;const t=Wv,r=new t({max:1e3}),n=Xi,i=Ji(),s=Wi,o=Qe,{re:c,t:u,comparatorTrimReplace:m,tildeTrimReplace:a,caretTrimReplace:l}=ir.exports,v=M=>M.value==="<0.0.0-0",h=M=>M.value==="",d=(M,A)=>{let B=!0;const q=M.slice();let H=q.pop();for(;B&&q.length;)B=q.every(K=>H.intersects(K,A)),H=q.pop();return B},E=(M,A)=>(s("comp",M,A),M=_(M,A),s("caret",M),M=f(M,A),s("tildes",M),M=x(M,A),s("xrange",M),M=R(M,A),s("stars",M),M),p=M=>!M||M.toLowerCase()==="x"||M==="*",f=(M,A)=>M.trim().split(/\s+/).map(B=>$(B,A)).join(" "),$=(M,A)=>{const B=A.loose?c[u.TILDELOOSE]:c[u.TILDE];return M.replace(B,(q,H,K,G,b)=>{s("tilde",M,q,H,K,G,b);let k;return p(H)?k="":p(K)?k=`>=${H}.0.0 <${+H+1}.0.0-0`:p(G)?k=`>=${H}.${K}.0 <${H}.${+K+1}.0-0`:b?(s("replaceTilde pr",b),k=`>=${H}.${K}.${G}-${b} <${H}.${+K+1}.0-0`):k=`>=${H}.${K}.${G} <${H}.${+K+1}.0-0`,s("tilde return",k),k})},_=(M,A)=>M.trim().split(/\s+/).map(B=>D(B,A)).join(" "),D=(M,A)=>{s("caret",M,A);const B=A.loose?c[u.CARETLOOSE]:c[u.CARET],q=A.includePrerelease?"-0":"";return M.replace(B,(H,K,G,b,k)=>{s("caret",M,H,K,G,b,k);let O;return p(K)?O="":p(G)?O=`>=${K}.0.0${q} <${+K+1}.0.0-0`:p(b)?K==="0"?O=`>=${K}.${G}.0${q} <${K}.${+G+1}.0-0`:O=`>=${K}.${G}.0${q} <${+K+1}.0.0-0`:k?(s("replaceCaret pr",k),K==="0"?G==="0"?O=`>=${K}.${G}.${b}-${k} <${K}.${G}.${+b+1}-0`:O=`>=${K}.${G}.${b}-${k} <${K}.${+G+1}.0-0`:O=`>=${K}.${G}.${b}-${k} <${+K+1}.0.0-0`):(s("no pr"),K==="0"?G==="0"?O=`>=${K}.${G}.${b}${q} <${K}.${G}.${+b+1}-0`:O=`>=${K}.${G}.${b}${q} <${K}.${+G+1}.0-0`:O=`>=${K}.${G}.${b} <${+K+1}.0.0-0`),s("caret return",O),O})},x=(M,A)=>(s("replaceXRanges",M,A),M.split(/\s+/).map(B=>T(B,A)).join(" ")),T=(M,A)=>{M=M.trim();const B=A.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return M.replace(B,(q,H,K,G,b,k)=>{s("xRange",M,q,H,K,G,b,k);const O=p(K),I=O||p(G),F=I||p(b),C=F;return H==="="&&C&&(H=""),k=A.includePrerelease?"-0":"",O?H===">"||H==="<"?q="<0.0.0-0":q="*":H&&C?(I&&(G=0),b=0,H===">"?(H=">=",I?(K=+K+1,G=0,b=0):(G=+G+1,b=0)):H==="<="&&(H="<",I?K=+K+1:G=+G+1),H==="<"&&(k="-0"),q=`${H+K}.${G}.${b}${k}`):I?q=`>=${K}.0.0${k} <${+K+1}.0.0-0`:F&&(q=`>=${K}.${G}.0${k} <${K}.${+G+1}.0-0`),s("xRange return",q),q})},R=(M,A)=>(s("replaceStars",M,A),M.trim().replace(c[u.STAR],"")),z=(M,A)=>(s("replaceGTE0",M,A),M.trim().replace(c[A.includePrerelease?u.GTE0PRE:u.GTE0],"")),P=M=>(A,B,q,H,K,G,b,k,O,I,F,C,y)=>(p(q)?B="":p(H)?B=`>=${q}.0.0${M?"-0":""}`:p(K)?B=`>=${q}.${H}.0${M?"-0":""}`:G?B=`>=${B}`:B=`>=${B}${M?"-0":""}`,p(O)?k="":p(I)?k=`<${+O+1}.0.0-0`:p(F)?k=`<${O}.${+I+1}.0-0`:C?k=`<=${O}.${I}.${F}-${C}`:M?k=`<${O}.${I}.${+F+1}-0`:k=`<=${k}`,`${B} ${k}`.trim()),V=(M,A,B)=>{for(let q=0;q<M.length;q++)if(!M[q].test(A))return!1;if(A.prerelease.length&&!B.includePrerelease){for(let q=0;q<M.length;q++)if(s(M[q].semver),M[q].semver!==i.ANY&&M[q].semver.prerelease.length>0){const H=M[q].semver;if(H.major===A.major&&H.minor===A.minor&&H.patch===A.patch)return!0}return!1}return!0};return Es}var vs,gc;function Ji(){if(gc)return vs;gc=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],v=a.match(l);if(!v)throw new TypeError(`Invalid comparator: ${a}`);this.operator=v[1]!==void 0?v[1]:"",this.operator==="="&&(this.operator=""),v[2]?this.semver=new c(v[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");if((!l||typeof l!="object")&&(l={loose:!!l,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new u(a.value,l).test(this.value);if(a.operator==="")return a.value===""?!0:new u(this.value,l).test(a.semver);const v=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),h=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),d=this.semver.version===a.semver.version,E=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),p=s(this.semver,"<",a.semver,l)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),f=s(this.semver,">",a.semver,l)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return v||h||d&&E||p||f}}vs=t;const r=Xi,{re:n,t:i}=ir.exports,s=Pf,o=Wi,c=Qe,u=Nt();return vs}const Xv=Nt(),Zv=(e,t,r)=>{try{t=new Xv(t,r)}catch{return!1}return t.test(e)};var Yi=Zv;const Jv=Nt(),Yv=(e,t)=>new Jv(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Qv=Yv;const eg=Qe,tg=Nt(),rg=(e,t,r)=>{let n=null,i=null,s=null;try{s=new tg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new eg(n,r))}),n};var ng=rg;const ig=Qe,sg=Nt(),og=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sg(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new ig(n,r))}),n};var ag=og;const gs=Qe,cg=Nt(),$c=Zi,ug=(e,t)=>{e=new cg(e,t);let r=new gs("0.0.0");if(e.test(r)||(r=new gs("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 gs(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||$c(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||$c(r,s))&&(r=s)}return r&&e.test(r)?r:null};var fg=ug;const lg=Nt(),dg=(e,t)=>{try{return new lg(e,t).range||"*"}catch{return null}};var hg=dg;const mg=Qe,bf=Ji(),{ANY:pg}=bf,yg=Nt(),Eg=Yi,_c=Zi,Sc=Wo,vg=Zo,gg=Xo,$g=(e,t,r,n)=>{e=new mg(e,n),t=new yg(t,n);let i,s,o,c,u;switch(r){case">":i=_c,s=vg,o=Sc,c=">",u=">=";break;case"<":i=Sc,s=gg,o=_c,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Eg(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===pg&&(h=new bf(">=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 Jo=$g;const _g=Jo,Sg=(e,t,r)=>_g(e,t,">",r);var wg=Sg;const Ng=Jo,Ig=(e,t,r)=>Ng(e,t,"<",r);var Og=Ig;const wc=Nt(),Tg=(e,t,r)=>(e=new wc(e,r),t=new wc(t,r),e.intersects(t));var Dg=Tg;const Rg=Yi,Cg=wt;var Pg=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>Cg(a,l,r));for(const a of o)Rg(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 Nc=Nt(),vi=Ji(),{ANY:$s}=vi,$n=Yi,Yo=wt,Ag=(e,t,r={})=>{if(e===t)return!0;e=new Nc(e,r),t=new Nc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=bg(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},bg=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===$s){if(t.length===1&&t[0].semver===$s)return!0;r.includePrerelease?e=[new vi(">=0.0.0-0")]:e=[new vi(">=0.0.0")]}if(t.length===1&&t[0].semver===$s){if(r.includePrerelease)return!0;t=[new vi(">=0.0.0")]}const n=new Set;let i,s;for(const h of e)h.operator===">"||h.operator===">="?i=Ic(i,h,r):h.operator==="<"||h.operator==="<="?s=Oc(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Yo(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&&!$n(h,String(i),r)||s&&!$n(h,String(s),r))return null;for(const d of t)if(!$n(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=Ic(i,h,r),c===h&&c!==i)return!1}else if(i.operator===">="&&!$n(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=Oc(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!$n(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)},Ic=(e,t,r)=>{if(!e)return t;const n=Yo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Oc=(e,t,r)=>{if(!e)return t;const n=Yo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Lg=Ag;const _s=ir.exports;var Fg={re:_s.re,src:_s.src,tokens:_s.t,SEMVER_SPEC_VERSION:Ki.SEMVER_SPEC_VERSION,SemVer:Qe,compareIdentifiers:Fs.compareIdentifiers,rcompareIdentifiers:Fs.rcompareIdentifiers,parse:on,valid:jE,clean:UE,inc:xE,diff:KE,major:ZE,minor:QE,patch:rv,prerelease:sv,compare:wt,rcompare:cv,compareLoose:lv,compareBuild:Ko,sort:pv,rsort:vv,gt:Zi,lt:Wo,eq:Ho,neq:Cf,gte:Xo,lte:Zo,cmp:Pf,coerce:Uv,Comparator:Ji(),Range:Nt(),satisfies:Yi,toComparators:Qv,maxSatisfying:ng,minSatisfying:ag,minVersion:fg,validRange:hg,outside:Jo,gtr:wg,ltr:Og,intersects:Dg,simplifyRange:Pg,subset:Lg},Qi={exports:{}},Qo={exports:{}};const Lf=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Qo.exports=Lf;Qo.exports.default=Lf;const jg=Qo.exports,Ai=new WeakMap,Ff=(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(Ai.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 jg(s,e),Ai.set(s,n),s};Qi.exports=Ff;Qi.exports.default=Ff;Qi.exports.callCount=e=>{if(!Ai.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ai.get(e)};(function(e,t){var r=Jt&&Jt.__classPrivateFieldSet||function(G,b,k,O,I){if(O==="m")throw new TypeError("Private method is not writable");if(O==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof b=="function"?G!==b||!I:!b.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?I.call(G,k):I?I.value=k:b.set(G,k),k},n=Jt&&Jt.__classPrivateFieldGet||function(G,b,k,O){if(k==="a"&&!O)throw new TypeError("Private accessor was defined without a getter");if(typeof b=="function"?G!==b||!O:!b.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return k==="m"?O:k==="a"?O.call(G):O?O.value:b.get(G)},i,s,o,c,u,m;Object.defineProperty(t,"__esModule",{value:!0});const a=Fi.default,l=tn.default,v=Ie.default,h=kc.default,d=ks.default,E=fl.default,p=Hh,f=Ws.exports,$=eo.exports,_=bt,D=Ii.exports,x=Ls.exports,T=_E,R=Fg,z=Qi.exports,P="aes-256-cbc",V=()=>Object.create(null),M=G=>G!=null;let A="";try{delete require.cache[__filename],A=v.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const B=(G,b)=>{const k=new Set(["undefined","symbol","function"]),O=typeof b;if(k.has(O))throw new TypeError(`Setting a value of type \`${O}\` for key \`${G}\` is not allowed as it's not supported by JSON`)},q="__internal__",H=`${q}.migrations.version`;class K{constructor(b={}){var k;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 O={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...b},I=z(()=>{const S=f.sync({cwd:A}),U=S&&JSON.parse(l.readFileSync(S,"utf8"));return U!=null?U:{}});if(!O.cwd){if(O.projectName||(O.projectName=I().name),!O.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");O.cwd=$(O.projectName,{suffix:O.projectSuffix}).config}if(r(this,u,O,"f"),O.schema){if(typeof O.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new D.default({allErrors:!0,useDefaults:!0});(0,x.default)(S);const U={type:"object",properties:O.schema};r(this,o,S.compile(U),"f");for(const[W,X]of Object.entries(O.schema))X!=null&&X.default&&(n(this,m,"f")[W]=X.default)}O.defaults&&r(this,m,{...n(this,m,"f"),...O.defaults},"f"),O.serialize&&(this._serialize=O.serialize),O.deserialize&&(this._deserialize=O.deserialize),this.events=new E.EventEmitter,r(this,c,O.encryptionKey,"f");const F=O.fileExtension?`.${O.fileExtension}`:"";this.path=v.resolve(O.cwd,`${(k=O.configName)!==null&&k!==void 0?k:"config"}${F}`);const C=this.store,y=Object.assign(V(),O.defaults,C);this._validate(y);try{d.deepEqual(C,y)}catch{this.store=y}if(O.watch&&this._watch(),O.migrations){if(O.projectVersion||(O.projectVersion=I().version),!O.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(O.migrations,O.projectVersion,O.beforeEachMigration)}}get(b,k){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(b,k);const{store:O}=this;return b in O?O[b]:k}set(b,k){if(typeof b!="string"&&typeof b!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof b}`);if(typeof b!="object"&&k===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(b))throw new TypeError(`Please don't use the ${q} key, as it's used to manage this module internal operations.`);const{store:O}=this,I=(F,C)=>{B(F,C),n(this,u,"f").accessPropertiesByDotNotation?p.set(O,F,C):O[F]=C};if(typeof b=="object"){const F=b;for(const[C,y]of Object.entries(F))I(C,y)}else I(b,k);this.store=O}has(b){return n(this,u,"f").accessPropertiesByDotNotation?p.has(this.store,b):b in this.store}reset(...b){for(const k of b)M(n(this,m,"f")[k])&&this.set(k,n(this,m,"f")[k])}delete(b){const{store:k}=this;n(this,u,"f").accessPropertiesByDotNotation?p.delete(k,b):delete k[b],this.store=k}clear(){this.store=V();for(const b of Object.keys(n(this,m,"f")))this.reset(b)}onDidChange(b,k){if(typeof b!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof b}`);if(typeof k!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof k}`);return this._handleChange(()=>this.get(b),k)}onDidAnyChange(b){if(typeof b!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof b}`);return this._handleChange(()=>this.store,b)}get size(){return Object.keys(this.store).length}get store(){try{const b=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),k=this._encryptData(b),O=this._deserialize(k);return this._validate(O),Object.assign(V(),O)}catch(b){if((b==null?void 0:b.code)==="ENOENT")return this._ensureDirectory(),V();if(n(this,u,"f").clearInvalidConfig&&b.name==="SyntaxError")return V();throw b}}set store(b){this._ensureDirectory(),this._validate(b),this._write(b),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,Symbol.iterator)](){for(const[b,k]of Object.entries(this.store))yield[b,k]}_encryptData(b){if(!n(this,c,"f"))return b.toString();try{if(n(this,c,"f"))try{if(b.slice(16,17).toString()===":"){const k=b.slice(0,16),O=h.pbkdf2Sync(n(this,c,"f"),k.toString(),1e4,32,"sha512"),I=h.createDecipheriv(P,O,k);b=Buffer.concat([I.update(Buffer.from(b.slice(17))),I.final()]).toString("utf8")}else{const k=h.createDecipher(P,n(this,c,"f"));b=Buffer.concat([k.update(Buffer.from(b)),k.final()]).toString("utf8")}}catch{}}catch{}return b.toString()}_handleChange(b,k){let O=b();const I=()=>{const F=O,C=b();(0,a.isDeepStrictEqual)(C,F)||(O=C,k.call(this,C,F))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(b){if(!n(this,o,"f")||n(this,o,"f").call(this,b)||!n(this,o,"f").errors)return;const O=n(this,o,"f").errors.map(({instancePath:I,message:F=""})=>`\`${I.slice(1)}\` ${F}`);throw new Error("Config schema violation: "+O.join("; "))}_ensureDirectory(){l.mkdirSync(v.dirname(this.path),{recursive:!0})}_write(b){let k=this._serialize(b);if(n(this,c,"f")){const O=h.randomBytes(16),I=h.pbkdf2Sync(n(this,c,"f"),O.toString(),1e4,32,"sha512"),F=h.createCipheriv(P,I,O);k=Buffer.concat([O,Buffer.from(":"),F.update(Buffer.from(k)),F.final()])}if(process.env.SNAP)l.writeFileSync(this.path,k,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,k,{mode:n(this,u,"f").configFileMode})}catch(O){if((O==null?void 0:O.code)==="EXDEV"){l.writeFileSync(this.path,k,{mode:n(this,u,"f").configFileMode});return}throw O}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(V()),process.platform==="win32"?l.watch(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(b,k,O){let I=this._get(H,"0.0.0");const F=Object.keys(b).filter(y=>this._shouldPerformMigration(y,I,k));let C={...this.store};for(const y of F)try{O&&O(this,{fromVersion:I,toVersion:y,finalVersion:k,versions:F});const S=b[y];S(this),this._set(H,y),I=y,C={...this.store}}catch(S){throw this.store=C,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${S}`)}(this._isVersionInRangeFormat(I)||!R.eq(I,k))&&this._set(H,k)}_containsReservedKey(b){return typeof b=="object"&&Object.keys(b)[0]===q?!0:typeof b!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!b.startsWith(`${q}.`):!1}_isVersionInRangeFormat(b){return R.clean(b)===null}_shouldPerformMigration(b,k,O){return this._isVersionInRangeFormat(b)?k!=="0.0.0"&&R.satisfies(k,b)?!1:R.satisfies(O,b):!(R.lte(b,k)||R.gt(b,O))}_get(b,k){return p.get(this.store,b,k)}_set(b,k){const{store:O}=this;p.set(O,b,k),this.store=O}}t.default=K,e.exports=K,e.exports.default=K})(Os,Os.exports);const Tc=Ie.default,{app:gi,ipcMain:js,ipcRenderer:Dc,shell:Mg}=al.default,kg=Os.exports;let Rc=!1;const Cc=()=>{if(!js||!gi)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:gi.getPath("userData"),appVersion:gi.getVersion()};return Rc||(js.on("electron-store-get-data",t=>{t.returnValue=e}),Rc=!0),e};class Ug extends kg{constructor(t){let r,n;if(Dc){const i=Dc.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 js&&gi&&({defaultCwd:r,appVersion:n}=Cc());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=Tc.isAbsolute(t.cwd)?t.cwd:Tc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Cc()}openInEditor(){Mg.openPath(this.path)}}var Pc=Ug,an={exports:{}},ea={},zg=ea.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=zg("original-fs");if(Object.keys(e).length>0)return e}catch{}return tn.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 xg=ea.require(),Xe=Ie.default,Ac=jf,Vg=typeof process=="object"&&process.platform==="win32",bc=e=>e&&typeof e=="object",ta=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 xe(e){this.sep=Xe.sep,this.fs=xg,bc(e)&&bc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var qg=xe;xe.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)};xe.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=Xe.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};xe.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=Xe.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)})})})})})};xe.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=Xe.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Xe.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};xe.prototype.getAttributes=function(){};xe.prototype.setAttributes=function(){};xe.crc32update=function(e,t){return ta[(e^t)&255]^e>>>8};xe.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),ta.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=xe.crc32update(r,e[n++]);return~r>>>0};xe.methodToString=function(e){switch(e){case Ac.STORED:return"STORED ("+e+")";case Ac.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};xe.canonical=function(e){if(!e)return"";var t=Xe.posix.normalize("/"+e.split("\\").join("/"));return Xe.join(".",t)};xe.sanitize=function(e,t){e=Xe.resolve(Xe.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Xe.normalize(Xe.join(e,r.slice(n,i).join(Xe.sep)));if(s.indexOf(e)===0)return s}return Xe.normalize(Xe.join(e,Xe.basename(t)))};xe.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};xe.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};xe.isWin=Vg;xe.crcTable=ta;var Gg={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 bi=ea.require(),Mf=Ie.default;bi.existsSync=bi.existsSync||Mf.existsSync;var Bg=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&&bi.existsSync(t)?(n=bi.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=Mf.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," ")}}};(function(e){e.exports=qg,e.exports.Constants=jf,e.exports.Errors=Gg,e.exports.FileAttr=Bg})(an);var es={},Sn=an.exports,Z=Sn.Constants,Hg=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|=Sn.isWin?2560:768,r|=Z.FLG_EFS;var E={};function p(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 p(+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 Z.STORED:this.version=10;case Z.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){p(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 Z.CENHDR+u+m+a},get realDataOffset(){return d+Z.LOCHDR+E.fnameLen+E.extraLen},get dataHeader(){return E},loadDataHeaderFromBinary:function(f){var $=f.slice(d,d+Z.LOCHDR);if($.readUInt32LE(0)!==Z.LOCSIG)throw new Error(Sn.Errors.INVALID_LOC);E={version:$.readUInt16LE(Z.LOCVER),flags:$.readUInt16LE(Z.LOCFLG),method:$.readUInt16LE(Z.LOCHOW),time:$.readUInt32LE(Z.LOCTIM),crc:$.readUInt32LE(Z.LOCCRC),compressedSize:$.readUInt32LE(Z.LOCSIZ),size:$.readUInt32LE(Z.LOCLEN),fnameLen:$.readUInt16LE(Z.LOCNAM),extraLen:$.readUInt16LE(Z.LOCEXT)}},loadFromBinary:function(f){if(f.length!==Z.CENHDR||f.readUInt32LE(0)!==Z.CENSIG)throw new Error(Sn.Errors.INVALID_CEN);e=f.readUInt16LE(Z.CENVEM),t=f.readUInt16LE(Z.CENVER),r=f.readUInt16LE(Z.CENFLG),n=f.readUInt16LE(Z.CENHOW),i=f.readUInt32LE(Z.CENTIM),s=f.readUInt32LE(Z.CENCRC),o=f.readUInt32LE(Z.CENSIZ),c=f.readUInt32LE(Z.CENLEN),u=f.readUInt16LE(Z.CENNAM),m=f.readUInt16LE(Z.CENEXT),a=f.readUInt16LE(Z.CENCOM),l=f.readUInt16LE(Z.CENDSK),v=f.readUInt16LE(Z.CENATT),h=f.readUInt32LE(Z.CENATX),d=f.readUInt32LE(Z.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(Z.LOCHDR);return f.writeUInt32LE(Z.LOCSIG,0),f.writeUInt16LE(t,Z.LOCVER),f.writeUInt16LE(r,Z.LOCFLG),f.writeUInt16LE(n,Z.LOCHOW),f.writeUInt32LE(i,Z.LOCTIM),f.writeUInt32LE(s,Z.LOCCRC),f.writeUInt32LE(o,Z.LOCSIZ),f.writeUInt32LE(c,Z.LOCLEN),f.writeUInt16LE(u,Z.LOCNAM),f.writeUInt16LE(m,Z.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(Z.CENHDR+u+m+a);return f.writeUInt32LE(Z.CENSIG,0),f.writeUInt16LE(e,Z.CENVEM),f.writeUInt16LE(t,Z.CENVER),f.writeUInt16LE(r,Z.CENFLG),f.writeUInt16LE(n,Z.CENHOW),f.writeUInt32LE(i,Z.CENTIM),f.writeUInt32LE(s,Z.CENCRC),f.writeUInt32LE(o,Z.CENSIZ),f.writeUInt32LE(c,Z.CENLEN),f.writeUInt16LE(u,Z.CENNAM),f.writeUInt16LE(m,Z.CENEXT),f.writeUInt16LE(a,Z.CENCOM),f.writeUInt16LE(l,Z.CENDSK),f.writeUInt16LE(v,Z.CENATT),f.writeUInt32LE(h,Z.CENATX),f.writeUInt32LE(d,Z.CENOFF),f.fill(0,Z.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:Sn.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(Z.CENHDR+u+m+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Ur=an.exports,Se=Ur.Constants,Kg=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(Ur.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=Ur.readBigUInt64LE(s,Se.ZIP64SUB),t=Ur.readBigUInt64LE(s,Se.ZIP64TOT),r=Ur.readBigUInt64LE(s,Se.ZIP64SIZ),n=Ur.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," ")}}};es.EntryHeader=Hg;es.MainHeader=Kg;var ts={},Wg=function(e){var t=Uc.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)}}},Xg=function(e){var t=Uc.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:Lc}=kc.default,Zg=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}),kf=(e,t)=>Math.imul(e,t)>>>0,Fc=(e,t)=>Zg[(e^t)&255]^e>>>8,Mn=()=>typeof Lc=="function"?Lc(Buffer.alloc(12)):Mn.node();Mn.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 $i={genSalt:Mn};function rs(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])}rs.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Fc(t[0],e),t[1]+=t[0]&255,t[1]=kf(t[1],134775813)+1,t[2]=Fc(t[2],t[1]>>>24),e};rs.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return kf(e,e^1)>>8&255};function Jg(e){const t=new rs(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 Yg(e){const t=new rs(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 Qg(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=Jg(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function e$(e){Buffer.isBuffer(e)&&e.length>=12?$i.genSalt=function(){return e.slice(0,12)}:e==="node"?$i.genSalt=Mn.node:$i.genSalt=Mn}function t$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=Yg(r),s=$i.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 r$={decrypt:Qg,encrypt:t$,_salter:e$};ts.Deflater=Wg;ts.Inflater=Xg;ts.ZipCrypto=r$;var Pe=an.exports,n$=es,ot=Pe.Constants,Ss=ts,Uf=function(e){var t=new n$.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&&Pe.crc32(d)!==t.dataHeader.crc)}function m(d,E,p){if(typeof E>"u"&&typeof d=="string"&&(p=d,d=void 0),i)return d&&E&&E(Buffer.alloc(0),Pe.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return d&&E&&E(f),f;if(t.encripted){if(typeof p!="string"&&!Buffer.isBuffer(p))throw new Error("ADM-ZIP: Incompatible password parameter");f=Ss.ZipCrypto.decrypt(f,t,p)}var $=Buffer.alloc(t.size);switch(t.method){case Pe.Constants.STORED:if(f.copy($),u($))return d&&E&&E($),$;throw d&&E&&E($,Pe.Errors.BAD_CRC),new Error(Pe.Errors.BAD_CRC);case Pe.Constants.DEFLATED:var _=new Ss.Inflater(f);if(d)_.inflateAsync(function(D){D.copy(D,0),E&&(u(D)?E(D):E(D,Pe.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(Pe.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw d&&E&&E(Buffer.alloc(0),Pe.Errors.UNKNOWN_METHOD),new Error(Pe.Errors.UNKNOWN_METHOD)}}function a(d,E){if((!s||!s.length)&&Buffer.isBuffer(e))return d&&E&&E(c()),c();if(s.length&&!i){var p;switch(t.method){case Pe.Constants.STORED:return t.compressedSize=t.size,p=Buffer.alloc(s.length),s.copy(p),d&&E&&E(p),p;default:case Pe.Constants.DEFLATED:var f=new Ss.Deflater(s);if(d)f.deflateAsync(function(_){p=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(p),E&&E(p)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(d&&E)E(Buffer.alloc(0));else return Buffer.alloc(0)}function l(d,E){return(d.readUInt32LE(E+4)<<4)+d.readUInt32LE(E)}function v(d){for(var E=0,p,f,$;E<d.length;)p=d.readUInt16LE(E),E+=2,f=d.readUInt16LE(E),E+=2,$=d.slice(E,E+f),E+=f,ot.ID_ZIP64===p&&h($)}function h(d){var E,p,f,$;d.length>=ot.EF_ZIP64_SCOMP&&(E=l(d,ot.EF_ZIP64_SUNCOMP),t.size===ot.EF_ZIP64_OR_32&&(t.size=E)),d.length>=ot.EF_ZIP64_RHO&&(p=l(d,ot.EF_ZIP64_SCOMP),t.compressedSize===ot.EF_ZIP64_OR_32&&(t.compressedSize=p)),d.length>=ot.EF_ZIP64_DSN&&(f=l(d,ot.EF_ZIP64_RHO),t.offset===ot.EF_ZIP64_OR_32&&(t.offset=f)),d.length>=ot.EF_ZIP64_DSN+4&&($=d.readUInt32LE(ot.EF_ZIP64_DSN),t.diskNumStart===ot.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(d){r=Pe.toBuffer(d);var E=r[r.length-1];i=E===47||E===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=Pe.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=Pe.toBuffer(d),!i&&s.length?(t.size=s.length,t.method=Pe.Constants.DEFLATED,t.crc=Pe.crc32(d),t.changed=!0):t.method=Pe.Constants.STORED},getData:function(d){return t.changed?s:m(!1,null,d)},getDataAsync:function(d,E){t.changed?d(s):m(!0,d,E)},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(),E=Pe.Constants.CENHDR;return r.copy(d,E),E+=r.length,t.extraLength&&(o.copy(d,E),E+=t.extraLength),t.commentLength&&n.copy(d,E),d},toJSON:function(){const d=function(E){return"<"+(E&&E.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=Uf,i$=es,Ge=an.exports;var s$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new i$.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 E=s.offset;for(let p=0;p<d;p++){let f=E;const $=new jc(e);$.header=e.slice(f,f+=Ge.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),E+=$.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 E=h,p=new jc(e);p.header=e.slice(E,E+=Ge.Constants.CENHDR),p.entryName=e.slice(E,E+=p.header.fileNameLength),p.header.extraLength&&(p.extra=e.slice(E,E+=p.header.extraLength)),p.header.commentLength&&(p.comment=e.slice(E,E+p.header.commentLength)),h+=p.header.entryHeaderSize,r[d]=p,n[p.entryName]=p}}function l(h){var d=e.length-Ge.Constants.ENDHDR,E=Math.max(0,d-65535),p=E,f=e.length,$=-1,_=0;for(d;d>=p;d--)if(e[d]===80){if(e.readUInt32LE(d)===Ge.Constants.ENDSIG){$=d,_=d,f=d+Ge.Constants.ENDHDR,p=d-Ge.Constants.END64HDR;continue}if(e.readUInt32LE(d)===Ge.Constants.END64SIG){p=E;continue}if(e.readUInt32LE(d)===Ge.Constants.ZIP64SIG){$=d,f=d+Ge.readBigUInt64LE(e,d+Ge.Constants.ZIP64SIZE)+Ge.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Ge.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+Ge.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=Ge.toBuffer(h),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(h){if(!o){m(h);return}r.forEach(h)},getEntry:function(h){return o||a(),n[h]||null},setEntry:function(h){o||a(),r.push(h),n[h.entryName]=h,s.totalEntries=r.length},deleteEntry:function(h){o||a();var d=n[h];if(d&&d.isDirectory){var E=this;this.getEntryChildren(d).forEach(function(p){p.entryName!==h&&E.deleteEntry(p.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=[],E=h.entryName,p=E.length;return r.forEach(function(f){f.entryName.substr(0,p)===E&&d.push(f)}),d}return[]},compressToBuffer:function(){o||a(),v();const h=[],d=[];let E=0,p=0;s.size=0,s.offset=0;for(const _ of r){const D=_.getCompressedData();_.header.offset=p;const x=_.header.dataHeaderToBinary(),T=_.rawEntryName.length,R=Buffer.alloc(T+_.extra.length);_.rawEntryName.copy(R,0),R.copy(_.extra,T);const z=x.length+R.length+D.length;p+=z,h.push(x),h.push(R),h.push(D);const P=_.packHeader();d.push(P),s.size+=P.length,E+=z+P.length}E+=s.mainHeaderSize,s.offset=p,p=0;const f=Buffer.alloc(E);for(const _ of h)_.copy(f,p),p+=_.length;for(const _ of d)_.copy(f,p),p+=_.length;const $=s.toBinary();return i&&i.copy($,Ge.Constants.ENDHDR),$.copy(f,p),f},toAsyncBuffer:function(h,d,E,p){try{o||a(),v();const f=[],$=[];let _=0,D=0;s.size=0,s.offset=0;const x=function(T){if(T.length){const R=T.pop(),z=R.entryName+R.extra.toString();E&&E(z),R.getCompressedDataAsync(function(P){p&&p(z),R.header.offset=D;const V=R.header.dataHeaderToBinary(),M=Buffer.alloc(z.length,z),A=V.length+M.length+P.length;D+=A,f.push(V),f.push(M),f.push(P);const B=R.packHeader();$.push(B),s.size+=B.length,_+=A+B.length,x(T)})}else{_+=s.mainHeaderSize,s.offset=D,D=0;const R=Buffer.alloc(_);f.forEach(function(P){P.copy(R,D),D+=P.length}),$.forEach(function(P){P.copy(R,D),D+=P.length});const z=s.toBinary();i&&i.copy(z,Ge.Constants.ENDHDR),z.copy(R,D),h(R)}};x(r)}catch(f){d(f)}}}};const Ae=an.exports,Pt=Ie.default,o$=Uf,a$=s$,lr=(e,t)=>typeof e=="boolean"?e:t,ws=(e,t)=>typeof e=="string"?e:t,c$={noSort:!1,readEntries:!1,method:Ae.Constants.NONE,fs:null};var Mc=function(e,t){let r=null;const n=Object.assign(Object.create(null),c$);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Ae.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Ae(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Ae.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Ae.Errors.INVALID_FILENAME);const s=new a$(r,n),{canonical:o,sanitize:c}=Ae;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function m(a){const{join:l,normalize:v,sep:h}=Pt.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,E){if(E){l(d,E);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 E=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),h,E)}else throw new Error(Ae.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=Pt.normalize(a),i.fs.existsSync(a)){const h=i.findFiles(a),d=this;h.length&&h.forEach(function(E){var p=Pt.relative(a,E).split("\\").join("/");if(v(p)){var f=i.fs.statSync(E);f.isFile()?d.addFile(l+p,i.fs.readFileSync(E),"",f):d.addFile(l+p+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Ae.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,v,h){h instanceof RegExp?h=function(E){return function(p){return E.test(p)}}(h):typeof h!="function"&&(h=function(){return!0}),v=v?m(v):"",a=Pt.normalize(a);var d=this;i.fs.open(a,"r",function(E){if(E&&E.code==="ENOENT")l(void 0,Ae.Errors.FILE_NOT_FOUND.replace("%s",a));else if(E)l(void 0,E);else{var p=i.findFiles(a),f=-1,$=function(){if(f+=1,f<p.length){var _=p[f],D=Pt.relative(a,_).split("\\").join("/");D=D.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),h(D)?i.fs.stat(_,function(x,T){x&&l(void 0,x),T.isFile()?i.fs.readFile(_,function(R,z){R?l(void 0,R):(d.addFile(v+D,z,"",T),$())}):(d.addFile(v+D+"/",Buffer.alloc(0),"",T),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((v,h)=>{const{filter:d,zipPath:E}=Object.assign({},l);this.addLocalFolderAsync(a,(p,f)=>{f&&h(f),p&&v(this)},E,d)})},addFile:function(a,l,v,h){let d=u(a);const E=d!=null;E||(d=new o$,d.entryName=a),d.comment=v||"";const p=typeof h=="object"&&h instanceof i.fs.Stats;p&&(d.header.time=h.mtime);var f=d.isDirectory?16:0;if(!Ae.isWin){let $=d.isDirectory?16384:32768;p?$|=4095&h.mode:typeof h=="number"?$|=4095&h:$|=d.isDirectory?493:420,f=(f|$<<16)>>>0}d.attr=f,d.setData(l),E||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,E){h=lr(h,!1),d=lr(d,!1),v=lr(v,!0),E=ws(E,ws(d,void 0));var p=u(a);if(!p)throw new Error(Ae.Errors.NO_ENTRY);var f=o(p.entryName),$=c(l,E&&!p.isDirectory?E:v?f:Pt.basename(f));if(p.isDirectory){var _=s.getEntryChildren(p);return _.forEach(function(T){if(T.isDirectory)return;var R=T.getData();if(!R)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);var z=o(T.entryName),P=c(l,v?z:Pt.basename(z));const V=d?T.header.fileAttr:void 0;i.writeFileTo(P,R,h,V)}),!0}var D=p.getData();if(!D)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!h)throw new Error(Ae.Errors.CANT_OVERRIDE);const x=d?a.header.fileAttr:void 0;return i.writeFileTo($,D,h,x),!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=lr(l,!1),h=ws(v,h),v=lr(v,!1),!s)throw new Error(Ae.Errors.NO_ZIP);s.entries.forEach(function(d){var E=c(a,o(d.entryName.toString()));if(d.isDirectory){i.makeDir(E);return}var p=d.getData(h);if(!p)throw new Error(Ae.Errors.CANT_EXTRACT_FILE);const f=v?d.header.fileAttr:void 0;i.writeFileTo(E,p,l,f);try{i.fs.utimesSync(E,d.header.time,d.header.time)}catch{throw new Error(Ae.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,v,h){if(h||(h=function(){}),l=lr(l,!1),typeof v=="function"&&!h&&(h=v),v=lr(v,!1),!s){h(new Error(Ae.Errors.NO_ZIP));return}a=Pt.resolve(a);const d=_=>c(a,Pt.normalize(o(_.entryName.toString()))),E=(_,D)=>new Error(_+': "'+D+'"'),p=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?p.push(_):f.add(_)});for(const _ of p){const D=d(_),x=v?_.header.fileAttr:void 0;try{i.makeDir(D),x&&i.fs.chmodSync(D,x),i.fs.utimesSync(D,_.header.time,_.header.time)}catch{h(E("Unable to create folder",D))}}const $=()=>{f.size===0&&h()};for(const _ of f.values()){const D=Pt.normalize(o(_.entryName.toString())),x=c(a,D);_.getDataAsync(function(T,R){if(R){h(new Error(R));return}if(!T)h(new Error(Ae.Errors.CANT_EXTRACT_FILE));else{const z=v?_.header.fileAttr:void 0;i.writeFileToAsync(x,T,l,z,function(P){if(!P){h(E("Unable to write file",x));return}i.fs.utimes(x,_.header.time,_.header.time,function(V){if(V){h(E("Unable to set times",x));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,E)=>{!a&&n.filename&&(a=n.filename),a||E("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(p=>{const f=$=>$?d($):E("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,p,v,h,f)},E)})},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()}}},kn,Br,Hr,Un,Er,vr,Xt,Zt,Li,Kr,zn,Ms,xn,vt,Wr,_i,Vn,zt;const Et=class{constructor(t,r){je(this,zn);je(this,Wr);je(this,kn,ce.screen.getPrimaryDisplay().size);je(this,Br,oe(this,kn).width);je(this,Hr,oe(this,kn).height);je(this,Un,{getAppPath:ce.app.getAppPath(),isPackaged:ce.app.isPackaged,downloads:ce.app.getPath("downloads"),userData:ce.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});je(this,Er,0);je(this,vr,0);je(this,Xt,0);je(this,Zt,0);je(this,Li,process.platform==="win32");je(this,Kr,void 0);je(this,xn,!1);je(this,vt,!1);this.bw=t,oe(this,Un).getVersion=r,ce.ipcMain.handle("getInfo",()=>oe(this,Un)),ce.ipcMain.handle("existsSync",(i,s)=>dt.existsSync(s)),ce.ipcMain.handle("copySync",(i,s,o)=>dt.copySync(s,o)),ce.ipcMain.handle("removeSync",(i,s)=>dt.removeSync(s)),ce.ipcMain.handle("ensureFileSync",(i,s)=>dt.ensureFileSync(s)),ce.ipcMain.handle("readFileSync",(i,s)=>dt.readFileSync(s,{encoding:"utf8"})),ce.ipcMain.handle("readFile",(i,s,o)=>dt.readFile(s,o)),ce.ipcMain.handle("writeFileSync",(i,s,o,c)=>dt.writeFileSync(s,o,c)),ce.ipcMain.handle("appendFile",(i,s,o,c)=>dt.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=>dt.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 Pc(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 Mc;c.addLocalFolder(s),c.writeZip(o)}),ce.ipcMain.handle("unzip",(i,s,o)=>{dt.removeSync(o),dt.ensureDirSync(o),new Mc(s).extractAllTo(o,!0)}),ce.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),oe(this,Li)?(ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Ve(this,vt,!0),t.setSimpleFullScreen(s),s||(t.setPosition(oe(this,Er),oe(this,vr)),t.setContentSize(oe(this,Xt),oe(this,Zt)+oe(Et,zt))),Ve(this,vt,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(oe(this,Br),oe(this,Hr)-oe(Et,zt))}),t.on("leave-full-screen",()=>{Ar(this,Wr,_i).call(this,!1,oe(this,Er),oe(this,vr),oe(this,Xt),oe(this,Zt)+oe(Et,zt))})):ce.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(oe(this,Xt),oe(this,Zt)+oe(Et,zt))}),ce.ipcMain.handle("window",(i,s,o,c,u,m)=>Ar(this,Wr,_i).call(this,s,o,c,u,m)),t.on("move",()=>Ar(this,zn,Ms).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Pc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ce.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];Ve(Et,zt,o-c),Ve(Et,Vn,new Et(s,r)),i=()=>oe(Et,Vn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let xr=Et;kn=new WeakMap,Br=new WeakMap,Hr=new WeakMap,Un=new WeakMap,Er=new WeakMap,vr=new WeakMap,Xt=new WeakMap,Zt=new WeakMap,Li=new WeakMap,Kr=new WeakMap,zn=new WeakSet,Ms=function(){if(oe(this,Kr)||oe(this,vt))return;Ve(this,vt,!0);const{x:t,y:r}=this.bw.getBounds();Ve(this,Kr,setTimeout(()=>{if(Ve(this,Kr,void 0),oe(this,xn)){Ve(this,xn,!1);return}Ve(this,vt,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Ar(this,zn,Ms).call(this);return}Ar(this,Wr,_i).call(this,!1,n.x,n.y,oe(this,Xt),oe(this,Zt))},1e3/60*10))},xn=new WeakMap,vt=new WeakMap,Wr=new WeakSet,_i=function(t,r,n,i,s){oe(this,vt)||(Ve(this,vt,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(oe(this,Br)-r)*.5,n=(oe(this,Hr)-n)*.5):((r<0||r>oe(this,Br))&&(r=0),(n<0||n>oe(this,Hr))&&(n=0)),(oe(this,Er)!==r||oe(this,vr)!==n)&&(Ve(this,Er,r),Ve(this,vr,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Ve(this,Xt,i),Ve(this,Zt,s),this.bw.setContentSize(i,s+oe(Et,zt)),Ve(this,vt,!1)))},Vn=new WeakMap,zt=new WeakMap,je(xr,Vn,void 0),je(xr,zt,0);module.exports=xr;exports.appMain=xr;
|
|
16
16
|
//# sourceMappingURL=appMain.js.map
|