Files
StudyDiary/.obsidian/plugins/slides-extended/main.js
CrazyJasonwell fb40c9b109 add all
2025-10-25 20:35:10 +08:00

747 lines
1.2 MiB
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var lY=Object.create;var qd=Object.defineProperty;var cY=Object.getOwnPropertyDescriptor;var uY=Object.getOwnPropertyNames;var fY=Object.getPrototypeOf,hY=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dY=(e,t)=>{for(var r in t)qd(e,r,{get:t[r],enumerable:!0})},RO=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of uY(t))!hY.call(e,n)&&n!==r&&qd(e,n,{get:()=>t[n],enumerable:!(i=cY(t,n))||i.enumerable});return e};var St=(e,t,r)=>(r=e!=null?lY(fY(e)):{},RO(t||!e||!e.__esModule?qd(r,"default",{value:e,enumerable:!0}):r,e)),pY=e=>RO(qd({},"__esModule",{value:!0}),e);var Ot=b(v_=>{"use strict";v_.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,i)=>{t.push((n,s)=>n!=null?i(n):r(s)),e.apply(this,t)})},"name",{value:e.name})};v_.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(i=>r(null,i),r)},"name",{value:e.name})}});var mA=b((V$e,pA)=>{var Es=require("constants"),DJ=process.cwd,Gd=null,jJ=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Gd||(Gd=DJ.call(process)),Gd};try{process.cwd()}catch{}typeof process.chdir=="function"&&(__=process.chdir,process.chdir=function(e){Gd=null,__.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,__));var __;pA.exports=qJ;function qJ(e){Es.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=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(u,f,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(u,f,h,d){d&&process.nextTick(d)},e.lchownSync=function(){}),jJ==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(u){function f(h,d,p){var m=Date.now(),y=0;u(h,d,function _(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){e.stat(d,function(v,g){v&&v.code==="ENOENT"?u(h,d,_):p(w)})},y),y<100&&(y+=10);return}p&&p(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(u){function f(h,d,p,m,y,_){var w;if(_&&typeof _=="function"){var v=0;w=function(g,T,N){if(g&&g.code==="EAGAIN"&&v<10)return v++,u.call(e,h,d,p,m,y,w);_.apply(this,arguments)}}return u.call(e,h,d,p,m,y,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(u){return function(f,h,d,p,m){for(var y=0;;)try{return u.call(e,f,h,d,p,m)}catch(_){if(_.code==="EAGAIN"&&y<10){y++;continue}throw _}}}(e.readSync);function t(u){u.lchmod=function(f,h,d){u.open(f,Es.O_WRONLY|Es.O_SYMLINK,h,function(p,m){if(p){d&&d(p);return}u.fchmod(m,h,function(y){u.close(m,function(_){d&&d(y||_)})})})},u.lchmodSync=function(f,h){var d=u.openSync(f,Es.O_WRONLY|Es.O_SYMLINK,h),p=!0,m;try{m=u.fchmodSync(d,h),p=!1}finally{if(p)try{u.closeSync(d)}catch{}else u.closeSync(d)}return m}}function r(u){Es.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(f,h,d,p){u.open(f,Es.O_SYMLINK,function(m,y){if(m){p&&p(m);return}u.futimes(y,h,d,function(_){u.close(y,function(w){p&&p(_||w)})})})},u.lutimesSync=function(f,h,d){var p=u.openSync(f,Es.O_SYMLINK),m,y=!0;try{m=u.futimesSync(p,h,d),y=!1}finally{if(y)try{u.closeSync(p)}catch{}else u.closeSync(p)}return m}):u.futimes&&(u.lutimes=function(f,h,d,p){p&&process.nextTick(p)},u.lutimesSync=function(){})}function i(u){return u&&function(f,h,d){return u.call(e,f,h,function(p){c(p)&&(p=null),d&&d.apply(this,arguments)})}}function n(u){return u&&function(f,h){try{return u.call(e,f,h)}catch(d){if(!c(d))throw d}}}function s(u){return u&&function(f,h,d,p){return u.call(e,f,h,d,function(m){c(m)&&(m=null),p&&p.apply(this,arguments)})}}function o(u){return u&&function(f,h,d){try{return u.call(e,f,h,d)}catch(p){if(!c(p))throw p}}}function a(u){return u&&function(f,h,d){typeof h=="function"&&(d=h,h=null);function p(m,y){y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),d&&d.apply(this,arguments)}return h?u.call(e,f,h,p):u.call(e,f,p)}}function l(u){return u&&function(f,h){var d=h?u.call(e,f,h):u.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function c(u){if(!u||u.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var vA=b((W$e,yA)=>{var gA=require("stream").Stream;yA.exports=MJ;function MJ(e){return{ReadStream:t,WriteStream:r};function t(i,n){if(!(this instanceof t))return new t(i,n);gA.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var c=o[a];this[c]=n[c]}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(u,f){if(u){s.emit("error",u),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);gA.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}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 bA=b((G$e,_A)=>{"use strict";_A.exports=UJ;var zJ=Object.getPrototypeOf||function(e){return e.__proto__};function UJ(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:zJ(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Wa=b((Y$e,S_)=>{var Qe=require("fs"),BJ=mA(),HJ=vA(),VJ=bA(),Yd=require("util"),Mt,Jd;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Mt=Symbol.for("graceful-fs.queue"),Jd=Symbol.for("graceful-fs.previous")):(Mt="___graceful-fs.queue",Jd="___graceful-fs.previous");function WJ(){}function xA(e,t){Object.defineProperty(e,Mt,{get:function(){return t}})}var Ao=WJ;Yd.debuglog?Ao=Yd.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ao=function(){var e=Yd.format.apply(Yd,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});Qe[Mt]||(wA=global[Mt]||[],xA(Qe,wA),Qe.close=function(e){function t(r,i){return e.call(Qe,r,function(n){n||SA(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(t,Jd,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(r){e.apply(Qe,arguments),SA()}return Object.defineProperty(t,Jd,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ao(Qe[Mt]),require("assert").equal(Qe[Mt].length,0)}));var wA;global[Mt]||xA(global,Qe[Mt]);S_.exports=b_(VJ(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(S_.exports=b_(Qe),Qe.__patched=!0);function b_(e){BJ(e),e.gracefulify=b_,e.createReadStream=T,e.createWriteStream=N;var t=e.readFile;e.readFile=r;function r(C,k,P){return typeof k=="function"&&(P=k,k=null),L(C,k,P);function L(q,G,X,H){return t(q,G,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Va([L,[q,G,X],W,H||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=n;function n(C,k,P,L){return typeof P=="function"&&(L=P,P=null),q(C,k,P,L);function q(G,X,H,W,ae){return i(G,X,H,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Va([q,[G,X,H,W],V,ae||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(C,k,P,L){return typeof P=="function"&&(L=P,P=null),q(C,k,P,L);function q(G,X,H,W,ae){return s(G,X,H,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Va([q,[G,X,H,W],V,ae||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(C,k,P,L){return typeof P=="function"&&(L=P,P=0),q(C,k,P,L);function q(G,X,H,W,ae){return a(G,X,H,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Va([q,[G,X,H,W],V,ae||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var c=e.readdir;e.readdir=f;var u=/^v[0-5]\./;function f(C,k,P){typeof k=="function"&&(P=k,k=null);var L=u.test(process.version)?function(X,H,W,ae){return c(X,q(X,H,W,ae))}:function(X,H,W,ae){return c(X,H,q(X,H,W,ae))};return L(C,k,P);function q(G,X,H,W){return function(ae,V){ae&&(ae.code==="EMFILE"||ae.code==="ENFILE")?Va([L,[G,X,H],ae,W||Date.now(),Date.now()]):(V&&V.sort&&V.sort(),typeof H=="function"&&H.call(this,ae,V))}}}if(process.version.substr(0,4)==="v0.8"){var h=HJ(e);_=h.ReadStream,v=h.WriteStream}var d=e.ReadStream;d&&(_.prototype=Object.create(d.prototype),_.prototype.open=w);var p=e.WriteStream;p&&(v.prototype=Object.create(p.prototype),v.prototype.open=g),Object.defineProperty(e,"ReadStream",{get:function(){return _},set:function(C){_=C},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(C){v=C},enumerable:!0,configurable:!0});var m=_;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(C){m=C},enumerable:!0,configurable:!0});var y=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(C){y=C},enumerable:!0,configurable:!0});function _(C,k){return this instanceof _?(d.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function w(){var C=this;A(C.path,C.flags,C.mode,function(k,P){k?(C.autoClose&&C.destroy(),C.emit("error",k)):(C.fd=P,C.emit("open",P),C.read())})}function v(C,k){return this instanceof v?(p.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function g(){var C=this;A(C.path,C.flags,C.mode,function(k,P){k?(C.destroy(),C.emit("error",k)):(C.fd=P,C.emit("open",P))})}function T(C,k){return new e.ReadStream(C,k)}function N(C,k){return new e.WriteStream(C,k)}var R=e.open;e.open=A;function A(C,k,P,L){return typeof P=="function"&&(L=P,P=null),q(C,k,P,L);function q(G,X,H,W,ae){return R(G,X,H,function(V,Ve){V&&(V.code==="EMFILE"||V.code==="ENFILE")?Va([q,[G,X,H,W],V,ae||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}return e}function Va(e){Ao("ENQUEUE",e[0].name,e[1]),Qe[Mt].push(e),w_()}var Kd;function SA(){for(var e=Date.now(),t=0;t<Qe[Mt].length;++t)Qe[Mt][t].length>2&&(Qe[Mt][t][3]=e,Qe[Mt][t][4]=e);w_()}function w_(){if(clearTimeout(Kd),Kd=void 0,Qe[Mt].length!==0){var e=Qe[Mt].shift(),t=e[0],r=e[1],i=e[2],n=e[3],s=e[4];if(n===void 0)Ao("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-n>=6e4){Ao("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),c=Math.min(l*1.2,100);a>=c?(Ao("RETRY",t.name,r),t.apply(null,r.concat([n]))):Qe[Mt].push(e)}Kd===void 0&&(Kd=setTimeout(w_,0))}}});var yr=b(zn=>{"use strict";var EA=Ot().fromCallback,gr=Wa(),GJ=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof gr[e]=="function");Object.assign(zn,gr);GJ.forEach(e=>{zn[e]=EA(gr[e])});zn.exists=function(e,t){return typeof t=="function"?gr.exists(e,t):new Promise(r=>gr.exists(e,r))};zn.read=function(e,t,r,i,n,s){return typeof s=="function"?gr.read(e,t,r,i,n,s):new Promise((o,a)=>{gr.read(e,t,r,i,n,(l,c,u)=>{if(l)return a(l);o({bytesRead:c,buffer:u})})})};zn.write=function(e,t,...r){return typeof r[r.length-1]=="function"?gr.write(e,t,...r):new Promise((i,n)=>{gr.write(e,t,...r,(s,o,a)=>{if(s)return n(s);i({bytesWritten:o,buffer:a})})})};zn.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?gr.readv(e,t,...r):new Promise((i,n)=>{gr.readv(e,t,...r,(s,o,a)=>{if(s)return n(s);i({bytesRead:o,buffers:a})})})};zn.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?gr.writev(e,t,...r):new Promise((i,n)=>{gr.writev(e,t,...r,(s,o,a)=>{if(s)return n(s);i({bytesWritten:o,buffers:a})})})};typeof gr.realpath.native=="function"?zn.realpath.native=EA(gr.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var RA=b((J$e,kA)=>{"use strict";var YJ=require("path");kA.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(YJ.parse(t).root,""))){let i=new Error(`Path contains invalid characters: ${t}`);throw i.code="EINVAL",i}}});var CA=b((Z$e,x_)=>{"use strict";var TA=yr(),{checkPath:OA}=RA(),AA=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};x_.exports.makeDir=async(e,t)=>(OA(e),TA.mkdir(e,{mode:AA(t),recursive:!0}));x_.exports.makeDirSync=(e,t)=>(OA(e),TA.mkdirSync(e,{mode:AA(t),recursive:!0}))});var Ai=b((X$e,PA)=>{"use strict";var KJ=Ot().fromPromise,{makeDir:JJ,makeDirSync:E_}=CA(),k_=KJ(JJ);PA.exports={mkdirs:k_,mkdirsSync:E_,mkdirp:k_,mkdirpSync:E_,ensureDir:k_,ensureDirSync:E_}});var ks=b((Q$e,NA)=>{"use strict";var ZJ=Ot().fromPromise,IA=yr();function XJ(e){return IA.access(e).then(()=>!0).catch(()=>!1)}NA.exports={pathExists:ZJ(XJ),pathExistsSync:IA.existsSync}});var R_=b((eFe,$A)=>{"use strict";var Ga=yr(),QJ=Ot().fromPromise;async function eZ(e,t,r){let i=await Ga.open(e,"r+"),n=null;try{await Ga.futimes(i,t,r)}finally{try{await Ga.close(i)}catch(s){n=s}}if(n)throw n}function tZ(e,t,r){let i=Ga.openSync(e,"r+");return Ga.futimesSync(i,t,r),Ga.closeSync(i)}$A.exports={utimesMillis:QJ(eZ),utimesMillisSync:tZ}});var Co=b((tFe,jA)=>{"use strict";var Ya=yr(),At=require("path"),FA=Ot().fromPromise;function rZ(e,t,r){let i=r.dereference?n=>Ya.stat(n,{bigint:!0}):n=>Ya.lstat(n,{bigint:!0});return Promise.all([i(e),i(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,s])=>({srcStat:n,destStat:s}))}function iZ(e,t,r){let i,n=r.dereference?o=>Ya.statSync(o,{bigint:!0}):o=>Ya.lstatSync(o,{bigint:!0}),s=n(e);try{i=n(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function nZ(e,t,r,i){let{srcStat:n,destStat:s}=await rZ(e,t,i);if(s){if(uu(n,s)){let o=At.basename(e),a=At.basename(t);if(r==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:n,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!n.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(n.isDirectory()&&T_(e,t))throw new Error(Zd(e,t,r));return{srcStat:n,destStat:s}}function sZ(e,t,r,i){let{srcStat:n,destStat:s}=iZ(e,t,i);if(s){if(uu(n,s)){let o=At.basename(e),a=At.basename(t);if(r==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:n,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!n.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(n.isDirectory()&&T_(e,t))throw new Error(Zd(e,t,r));return{srcStat:n,destStat:s}}async function LA(e,t,r,i){let n=At.resolve(At.dirname(e)),s=At.resolve(At.dirname(r));if(s===n||s===At.parse(s).root)return;let o;try{o=await Ya.stat(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(uu(t,o))throw new Error(Zd(e,r,i));return LA(e,t,s,i)}function DA(e,t,r,i){let n=At.resolve(At.dirname(e)),s=At.resolve(At.dirname(r));if(s===n||s===At.parse(s).root)return;let o;try{o=Ya.statSync(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(uu(t,o))throw new Error(Zd(e,r,i));return DA(e,t,s,i)}function uu(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function T_(e,t){let r=At.resolve(e).split(At.sep).filter(n=>n),i=At.resolve(t).split(At.sep).filter(n=>n);return r.every((n,s)=>i[s]===n)}function Zd(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}jA.exports={checkPaths:FA(nZ),checkPathsSync:sZ,checkParentPaths:FA(LA),checkParentPathsSync:DA,isSrcSubdir:T_,areIdentical:uu}});var BA=b((rFe,UA)=>{"use strict";var Qt=yr(),fu=require("path"),{mkdirs:oZ}=Ai(),{pathExists:aZ}=ks(),{utimesMillis:lZ}=R_(),hu=Co();async function cZ(e,t,r={}){typeof r=="function"&&(r={filter: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;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:n}=await hu.checkPaths(e,t,"copy",r);if(await hu.checkParentPaths(e,i,t,"copy"),!await MA(e,t,r))return;let o=fu.dirname(t);await aZ(o)||await oZ(o),await zA(n,e,t,r)}async function MA(e,t,r){return r.filter?r.filter(e,t):!0}async function zA(e,t,r,i){let s=await(i.dereference?Qt.stat:Qt.lstat)(t);if(s.isDirectory())return dZ(s,e,t,r,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return uZ(s,e,t,r,i);if(s.isSymbolicLink())return pZ(e,t,r,i);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}`)}async function uZ(e,t,r,i,n){if(!t)return qA(e,r,i,n);if(n.overwrite)return await Qt.unlink(i),qA(e,r,i,n);if(n.errorOnExist)throw new Error(`'${i}' already exists`)}async function qA(e,t,r,i){if(await Qt.copyFile(t,r),i.preserveTimestamps){fZ(e.mode)&&await hZ(r,e.mode);let n=await Qt.stat(t);await lZ(r,n.atime,n.mtime)}return Qt.chmod(r,e.mode)}function fZ(e){return(e&128)===0}function hZ(e,t){return Qt.chmod(e,t|128)}async function dZ(e,t,r,i,n){t||await Qt.mkdir(i);let s=[];for await(let o of await Qt.opendir(r)){let a=fu.join(r,o.name),l=fu.join(i,o.name);s.push(MA(a,l,n).then(c=>{if(c)return hu.checkPaths(a,l,"copy",n).then(({destStat:u})=>zA(u,a,l,n))}))}await Promise.all(s),t||await Qt.chmod(i,e.mode)}async function pZ(e,t,r,i){let n=await Qt.readlink(t);if(i.dereference&&(n=fu.resolve(process.cwd(),n)),!e)return Qt.symlink(n,r);let s=null;try{s=await Qt.readlink(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Qt.symlink(n,r);throw o}if(i.dereference&&(s=fu.resolve(process.cwd(),s)),hu.isSrcSubdir(n,s))throw new Error(`Cannot copy '${n}' to a subdirectory of itself, '${s}'.`);if(hu.isSrcSubdir(s,n))throw new Error(`Cannot overwrite '${s}' with '${n}'.`);return await Qt.unlink(r),Qt.symlink(n,r)}UA.exports=cZ});var YA=b((iFe,GA)=>{"use strict";var vr=Wa(),du=require("path"),mZ=Ai().mkdirsSync,gZ=R_().utimesMillisSync,pu=Co();function yZ(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;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:n}=pu.checkPathsSync(e,t,"copy",r);if(pu.checkParentPathsSync(e,i,t,"copy"),r.filter&&!r.filter(e,t))return;let s=du.dirname(t);return vr.existsSync(s)||mZ(s),HA(n,e,t,r)}function HA(e,t,r,i){let s=(i.dereference?vr.statSync:vr.lstatSync)(t);if(s.isDirectory())return EZ(s,e,t,r,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return vZ(s,e,t,r,i);if(s.isSymbolicLink())return TZ(e,t,r,i);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 vZ(e,t,r,i,n){return t?_Z(e,r,i,n):VA(e,r,i,n)}function _Z(e,t,r,i){if(i.overwrite)return vr.unlinkSync(r),VA(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}function VA(e,t,r,i){return vr.copyFileSync(t,r),i.preserveTimestamps&&bZ(e.mode,t,r),O_(r,e.mode)}function bZ(e,t,r){return wZ(e)&&SZ(r,e),xZ(t,r)}function wZ(e){return(e&128)===0}function SZ(e,t){return O_(e,t|128)}function O_(e,t){return vr.chmodSync(e,t)}function xZ(e,t){let r=vr.statSync(e);return gZ(t,r.atime,r.mtime)}function EZ(e,t,r,i,n){return t?WA(r,i,n):kZ(e.mode,r,i,n)}function kZ(e,t,r,i){return vr.mkdirSync(r),WA(t,r,i),O_(r,e)}function WA(e,t,r){let i=vr.opendirSync(e);try{let n;for(;(n=i.readSync())!==null;)RZ(n.name,e,t,r)}finally{i.closeSync()}}function RZ(e,t,r,i){let n=du.join(t,e),s=du.join(r,e);if(i.filter&&!i.filter(n,s))return;let{destStat:o}=pu.checkPathsSync(n,s,"copy",i);return HA(o,n,s,i)}function TZ(e,t,r,i){let n=vr.readlinkSync(t);if(i.dereference&&(n=du.resolve(process.cwd(),n)),e){let s;try{s=vr.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return vr.symlinkSync(n,r);throw o}if(i.dereference&&(s=du.resolve(process.cwd(),s)),pu.isSrcSubdir(n,s))throw new Error(`Cannot copy '${n}' to a subdirectory of itself, '${s}'.`);if(pu.isSrcSubdir(s,n))throw new Error(`Cannot overwrite '${s}' with '${n}'.`);return OZ(n,r)}else return vr.symlinkSync(n,r)}function OZ(e,t){return vr.unlinkSync(t),vr.symlinkSync(e,t)}GA.exports=yZ});var Xd=b((nFe,KA)=>{"use strict";var AZ=Ot().fromPromise;KA.exports={copy:AZ(BA()),copySync:YA()}});var mu=b((sFe,ZA)=>{"use strict";var JA=Wa(),CZ=Ot().fromCallback;function PZ(e,t){JA.rm(e,{recursive:!0,force:!0},t)}function IZ(e){JA.rmSync(e,{recursive:!0,force:!0})}ZA.exports={remove:CZ(PZ),removeSync:IZ}});var sC=b((oFe,nC)=>{"use strict";var NZ=Ot().fromPromise,eC=yr(),tC=require("path"),rC=Ai(),iC=mu(),XA=NZ(async function(t){let r;try{r=await eC.readdir(t)}catch{return rC.mkdirs(t)}return Promise.all(r.map(i=>iC.remove(tC.join(t,i))))});function QA(e){let t;try{t=eC.readdirSync(e)}catch{return rC.mkdirsSync(e)}t.forEach(r=>{r=tC.join(e,r),iC.removeSync(r)})}nC.exports={emptyDirSync:QA,emptydirSync:QA,emptyDir:XA,emptydir:XA}});var cC=b((aFe,lC)=>{"use strict";var $Z=Ot().fromPromise,oC=require("path"),Un=yr(),aC=Ai();async function FZ(e){let t;try{t=await Un.stat(e)}catch{}if(t&&t.isFile())return;let r=oC.dirname(e),i=null;try{i=await Un.stat(r)}catch(n){if(n.code==="ENOENT"){await aC.mkdirs(r),await Un.writeFile(e,"");return}else throw n}i.isDirectory()?await Un.writeFile(e,""):await Un.readdir(r)}function LZ(e){let t;try{t=Un.statSync(e)}catch{}if(t&&t.isFile())return;let r=oC.dirname(e);try{Un.statSync(r).isDirectory()||Un.readdirSync(r)}catch(i){if(i&&i.code==="ENOENT")aC.mkdirsSync(r);else throw i}Un.writeFileSync(e,"")}lC.exports={createFile:$Z(FZ),createFileSync:LZ}});var pC=b((lFe,dC)=>{"use strict";var DZ=Ot().fromPromise,uC=require("path"),Rs=yr(),fC=Ai(),{pathExists:jZ}=ks(),{areIdentical:hC}=Co();async function qZ(e,t){let r;try{r=await Rs.lstat(t)}catch{}let i;try{i=await Rs.lstat(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(r&&hC(i,r))return;let n=uC.dirname(t);await jZ(n)||await fC.mkdirs(n),await Rs.link(e,t)}function MZ(e,t){let r;try{r=Rs.lstatSync(t)}catch{}try{let s=Rs.lstatSync(e);if(r&&hC(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=uC.dirname(t);return Rs.existsSync(i)||fC.mkdirsSync(i),Rs.linkSync(e,t)}dC.exports={createLink:DZ(qZ),createLinkSync:MZ}});var gC=b((cFe,mC)=>{"use strict";var Ts=require("path"),gu=yr(),{pathExists:zZ}=ks(),UZ=Ot().fromPromise;async function BZ(e,t){if(Ts.isAbsolute(e)){try{await gu.lstat(e)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:e,toDst:e}}let r=Ts.dirname(t),i=Ts.join(r,e);if(await zZ(i))return{toCwd:i,toDst:e};try{await gu.lstat(e)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:e,toDst:Ts.relative(r,e)}}function HZ(e,t){if(Ts.isAbsolute(e)){if(!gu.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}let r=Ts.dirname(t),i=Ts.join(r,e);if(gu.existsSync(i))return{toCwd:i,toDst:e};if(!gu.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ts.relative(r,e)}}mC.exports={symlinkPaths:UZ(BZ),symlinkPathsSync:HZ}});var _C=b((uFe,vC)=>{"use strict";var yC=yr(),VZ=Ot().fromPromise;async function WZ(e,t){if(t)return t;let r;try{r=await yC.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}function GZ(e,t){if(t)return t;let r;try{r=yC.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}vC.exports={symlinkType:VZ(WZ),symlinkTypeSync:GZ}});var xC=b((fFe,SC)=>{"use strict";var YZ=Ot().fromPromise,bC=require("path"),en=yr(),{mkdirs:KZ,mkdirsSync:JZ}=Ai(),{symlinkPaths:ZZ,symlinkPathsSync:XZ}=gC(),{symlinkType:QZ,symlinkTypeSync:eX}=_C(),{pathExists:tX}=ks(),{areIdentical:wC}=Co();async function rX(e,t,r){let i;try{i=await en.lstat(t)}catch{}if(i&&i.isSymbolicLink()){let[a,l]=await Promise.all([en.stat(e),en.stat(t)]);if(wC(a,l))return}let n=await ZZ(e,t);e=n.toDst;let s=await QZ(n.toCwd,r),o=bC.dirname(t);return await tX(o)||await KZ(o),en.symlink(e,t,s)}function iX(e,t,r){let i;try{i=en.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){let a=en.statSync(e),l=en.statSync(t);if(wC(a,l))return}let n=XZ(e,t);e=n.toDst,r=eX(n.toCwd,r);let s=bC.dirname(t);return en.existsSync(s)||JZ(s),en.symlinkSync(e,t,r)}SC.exports={createSymlink:YZ(rX),createSymlinkSync:iX}});var PC=b((hFe,CC)=>{"use strict";var{createFile:EC,createFileSync:kC}=cC(),{createLink:RC,createLinkSync:TC}=pC(),{createSymlink:OC,createSymlinkSync:AC}=xC();CC.exports={createFile:EC,createFileSync:kC,ensureFile:EC,ensureFileSync:kC,createLink:RC,createLinkSync:TC,ensureLink:RC,ensureLinkSync:TC,createSymlink:OC,createSymlinkSync:AC,ensureSymlink:OC,ensureSymlinkSync:AC}});var Qd=b((dFe,IC)=>{function nX(e,{EOL:t=`
`,finalEOL:r=!0,replacer:i=null,spaces:n}={}){let s=r?t:"";return JSON.stringify(e,i,n).replace(/\n/g,t)+s}function sX(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}IC.exports={stringify:nX,stripBom:sX}});var LC=b((pFe,FC)=>{var Ka;try{Ka=Wa()}catch{Ka=require("fs")}var ep=Ot(),{stringify:NC,stripBom:$C}=Qd();async function oX(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ka,i="throws"in t?t.throws:!0,n=await ep.fromCallback(r.readFile)(e,t);n=$C(n);let s;try{s=JSON.parse(n,t?t.reviver:null)}catch(o){if(i)throw o.message=`${e}: ${o.message}`,o;return null}return s}var aX=ep.fromPromise(oX);function lX(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ka,i="throws"in t?t.throws:!0;try{let n=r.readFileSync(e,t);return n=$C(n),JSON.parse(n,t.reviver)}catch(n){if(i)throw n.message=`${e}: ${n.message}`,n;return null}}async function cX(e,t,r={}){let i=r.fs||Ka,n=NC(t,r);await ep.fromCallback(i.writeFile)(e,n,r)}var uX=ep.fromPromise(cX);function fX(e,t,r={}){let i=r.fs||Ka,n=NC(t,r);return i.writeFileSync(e,n,r)}var hX={readFile:aX,readFileSync:lX,writeFile:uX,writeFileSync:fX};FC.exports=hX});var jC=b((mFe,DC)=>{"use strict";var tp=LC();DC.exports={readJson:tp.readFile,readJsonSync:tp.readFileSync,writeJson:tp.writeFile,writeJsonSync:tp.writeFileSync}});var rp=b((gFe,zC)=>{"use strict";var dX=Ot().fromPromise,A_=yr(),qC=require("path"),MC=Ai(),pX=ks().pathExists;async function mX(e,t,r="utf-8"){let i=qC.dirname(e);return await pX(i)||await MC.mkdirs(i),A_.writeFile(e,t,r)}function gX(e,...t){let r=qC.dirname(e);A_.existsSync(r)||MC.mkdirsSync(r),A_.writeFileSync(e,...t)}zC.exports={outputFile:dX(mX),outputFileSync:gX}});var BC=b((yFe,UC)=>{"use strict";var{stringify:yX}=Qd(),{outputFile:vX}=rp();async function _X(e,t,r={}){let i=yX(t,r);await vX(e,i,r)}UC.exports=_X});var VC=b((vFe,HC)=>{"use strict";var{stringify:bX}=Qd(),{outputFileSync:wX}=rp();function SX(e,t,r){let i=bX(t,r);wX(e,i,r)}HC.exports=SX});var GC=b((_Fe,WC)=>{"use strict";var xX=Ot().fromPromise,_r=jC();_r.outputJson=xX(BC());_r.outputJsonSync=VC();_r.outputJSON=_r.outputJson;_r.outputJSONSync=_r.outputJsonSync;_r.writeJSON=_r.writeJson;_r.writeJSONSync=_r.writeJsonSync;_r.readJSON=_r.readJson;_r.readJSONSync=_r.readJsonSync;WC.exports=_r});var XC=b((bFe,ZC)=>{"use strict";var EX=yr(),YC=require("path"),{copy:kX}=Xd(),{remove:JC}=mu(),{mkdirp:RX}=Ai(),{pathExists:TX}=ks(),KC=Co();async function OX(e,t,r={}){let i=r.overwrite||r.clobber||!1,{srcStat:n,isChangingCase:s=!1}=await KC.checkPaths(e,t,"move",r);await KC.checkParentPaths(e,n,t,"move");let o=YC.dirname(t);return YC.parse(o).root!==o&&await RX(o),AX(e,t,i,s)}async function AX(e,t,r,i){if(!i){if(r)await JC(t);else if(await TX(t))throw new Error("dest already exists.")}try{await EX.rename(e,t)}catch(n){if(n.code!=="EXDEV")throw n;await CX(e,t,r)}}async function CX(e,t,r){return await kX(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),JC(e)}ZC.exports=OX});var iP=b((wFe,rP)=>{"use strict";var eP=Wa(),P_=require("path"),PX=Xd().copySync,tP=mu().removeSync,IX=Ai().mkdirpSync,QC=Co();function NX(e,t,r){r=r||{};let i=r.overwrite||r.clobber||!1,{srcStat:n,isChangingCase:s=!1}=QC.checkPathsSync(e,t,"move",r);return QC.checkParentPathsSync(e,n,t,"move"),$X(t)||IX(P_.dirname(t)),FX(e,t,i,s)}function $X(e){let t=P_.dirname(e);return P_.parse(t).root===t}function FX(e,t,r,i){if(i)return C_(e,t,r);if(r)return tP(t),C_(e,t,r);if(eP.existsSync(t))throw new Error("dest already exists.");return C_(e,t,r)}function C_(e,t,r){try{eP.renameSync(e,t)}catch(i){if(i.code!=="EXDEV")throw i;return LX(e,t,r)}}function LX(e,t,r){return PX(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),tP(e)}rP.exports=NX});var sP=b((SFe,nP)=>{"use strict";var DX=Ot().fromPromise;nP.exports={move:DX(XC()),moveSync:iP()}});var ip=b((xFe,oP)=>{"use strict";oP.exports={...yr(),...Xd(),...sC(),...PC(),...GC(),...Ai(),...sP(),...rp(),...ks(),...mu()}});var I_=b((IFe,fP)=>{"use strict";fP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var dP=b((NFe,hP)=>{hP.exports=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}});var gP=b(($Fe,mP)=>{"use strict";var qX=dP(),MX=Array.prototype.concat,zX=Array.prototype.slice,pP=mP.exports=function(t){for(var r=[],i=0,n=t.length;i<n;i++){var s=t[i];qX(s)?r=MX.call(r,zX.call(s)):r.push(s)}return r};pP.wrap=function(e){return function(){return e(pP(arguments))}}});var bP=b((FFe,_P)=>{var yu=I_(),vu=gP(),yP=Object.hasOwnProperty,vP=Object.create(null);for(up in yu)yP.call(yu,up)&&(vP[yu[up]]=up);var up,Vr=_P.exports={to:{},get:{}};Vr.get=function(e){var t=e.substring(0,3).toLowerCase(),r,i;switch(t){case"hsl":r=Vr.get.hsl(e),i="hsl";break;case"hwb":r=Vr.get.hwb(e),i="hwb";break;default:r=Vr.get.rgb(e),i="rgb";break}return r?{model:i,value:r}:null};Vr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,n=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],a,l,c;if(a=e.match(r)){for(c=a[2],a=a[1],l=0;l<3;l++){var u=l*2;o[l]=parseInt(a.slice(u,u+2),16)}c&&(o[3]=parseInt(c,16)/255)}else if(a=e.match(t)){for(a=a[1],c=a[3],l=0;l<3;l++)o[l]=parseInt(a[l]+a[l],16);c&&(o[3]=parseInt(c+c,16)/255)}else if(a=e.match(i)){for(l=0;l<3;l++)o[l]=parseInt(a[l+1],0);a[4]&&(a[5]?o[3]=parseFloat(a[4])*.01:o[3]=parseFloat(a[4]))}else if(a=e.match(n)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(a[l+1])*2.55);a[4]&&(a[5]?o[3]=parseFloat(a[4])*.01:o[3]=parseFloat(a[4]))}else return(a=e.match(s))?a[1]==="transparent"?[0,0,0,0]:yP.call(yu,a[1])?(o=yu[a[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=As(o[l],0,255);return o[3]=As(o[3],0,1),o};Vr.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var i=parseFloat(r[4]),n=(parseFloat(r[1])%360+360)%360,s=As(parseFloat(r[2]),0,100),o=As(parseFloat(r[3]),0,100),a=As(isNaN(i)?1:i,0,1);return[n,s,o,a]}return null};Vr.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var i=parseFloat(r[4]),n=(parseFloat(r[1])%360+360)%360,s=As(parseFloat(r[2]),0,100),o=As(parseFloat(r[3]),0,100),a=As(isNaN(i)?1:i,0,1);return[n,s,o,a]}return null};Vr.to.hex=function(){var e=vu(arguments);return"#"+fp(e[0])+fp(e[1])+fp(e[2])+(e[3]<1?fp(Math.round(e[3]*255)):"")};Vr.to.rgb=function(){var e=vu(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Vr.to.rgb.percent=function(){var e=vu(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+i+"%)":"rgba("+t+"%, "+r+"%, "+i+"%, "+e[3]+")"};Vr.to.hsl=function(){var e=vu(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Vr.to.hwb=function(){var e=vu(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Vr.to.keyword=function(e){return vP[e.slice(0,3)]};function As(e,t,r){return Math.min(Math.max(t,e),r)}function fp(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}});var N_=b((LFe,SP)=>{var _u=I_(),wP={};for(let e of Object.keys(_u))wP[_u[e]]=e;var ne={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};SP.exports=ne;for(let e of Object.keys(ne)){if(!("channels"in ne[e]))throw new Error("missing channels property: "+e);if(!("labels"in ne[e]))throw new Error("missing channel labels property: "+e);if(ne[e].labels.length!==ne[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=ne[e];delete ne[e].channels,delete ne[e].labels,Object.defineProperty(ne[e],"channels",{value:t}),Object.defineProperty(ne[e],"labels",{value:r})}ne.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),s=Math.max(t,r,i),o=s-n,a,l;s===n?a=0:t===s?a=(r-i)/o:r===s?a=2+(i-t)/o:i===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(n+s)/2;return s===n?l=0:c<=.5?l=o/(s+n):l=o/(2-s-n),[a,l*100,c*100]};ne.rgb.hsv=function(e){let t,r,i,n,s,o=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(o,a,l),u=c-Math.min(o,a,l),f=function(h){return(c-h)/6/u+1/2};return u===0?(n=0,s=0):(s=u/c,t=f(o),r=f(a),i=f(l),o===c?n=i-r:a===c?n=1/3+t-i:l===c&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,c*100]};ne.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],n=ne.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[n,s*100,i*100]};ne.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-r,1-i),s=(1-t-n)/(1-n)||0,o=(1-r-n)/(1-n)||0,a=(1-i-n)/(1-n)||0;return[s*100,o*100,a*100,n*100]};function UX(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ne.rgb.keyword=function(e){let t=wP[e];if(t)return t;let r=1/0,i;for(let n of Object.keys(_u)){let s=_u[n],o=UX(e,s);o<r&&(r=o,i=n)}return i};ne.keyword.rgb=function(e){return _u[e]};ne.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=t*.4124+r*.3576+i*.1805,s=t*.2126+r*.7152+i*.0722,o=t*.0193+r*.1192+i*.9505;return[n*100,s*100,o*100]};ne.rgb.lab=function(e){let t=ne.rgb.xyz(e),r=t[0],i=t[1],n=t[2];r/=95.047,i/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let s=116*i-16,o=500*(r-i),a=200*(i-n);return[s,o,a]};ne.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n,s,o;if(r===0)return o=i*255,[o,o,o];i<.5?n=i*(1+r):n=i+r-i*r;let a=2*i-n,l=[0,0,0];for(let c=0;c<3;c++)s=t+1/3*-(c-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(n-a)*6*s:2*s<1?o=n:3*s<2?o=a+(n-a)*(2/3-s)*6:o=a,l[c]=o*255;return l};ne.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=r,s=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=s<=1?s:2-s;let o=(i+r)/2,a=i===0?2*n/(s+n):2*r/(i+r);return[t,a*100,o*100]};ne.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),o=255*i*(1-r),a=255*i*(1-r*s),l=255*i*(1-r*(1-s));switch(i*=255,n){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};ne.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=Math.max(i,.01),s,o;o=(2-r)*i;let a=(2-r)*n;return s=r*n,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};ne.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n=r+i,s;n>1&&(r/=n,i/=n);let o=Math.floor(6*t),a=1-i;s=6*t-o,(o&1)!==0&&(s=1-s);let l=r+s*(a-r),c,u,f;switch(o){default:case 6:case 0:c=a,u=l,f=r;break;case 1:c=l,u=a,f=r;break;case 2:c=r,u=a,f=l;break;case 3:c=r,u=l,f=a;break;case 4:c=l,u=r,f=a;break;case 5:c=a,u=r,f=l;break}return[c*255,u*255,f*255]};ne.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100,s=1-Math.min(1,t*(1-n)+n),o=1-Math.min(1,r*(1-n)+n),a=1-Math.min(1,i*(1-n)+n);return[s*255,o*255,a*255]};ne.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n,s,o;return n=t*3.2406+r*-1.5372+i*-.4986,s=t*-.9689+r*1.8758+i*.0415,o=t*.0557+r*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[n*255,s*255,o*255]};ne.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*r-16,s=500*(t-r),o=200*(r-i);return[n,s,o]};ne.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],n,s,o;s=(t+16)/116,n=r/500+s,o=s-i/200;let a=s**3,l=n**3,c=o**3;return s=a>.008856?a:(s-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,n*=95.047,s*=100,o*=108.883,[n,s,o]};ne.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],n;n=Math.atan2(i,r)*360/2/Math.PI,n<0&&(n+=360);let o=Math.sqrt(r*r+i*i);return[t,o,n]};ne.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI,s=r*Math.cos(n),o=r*Math.sin(n);return[t,s,o]};ne.rgb.ansi16=function(e,t=null){let[r,i,n]=e,s=t===null?ne.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};ne.hsv.ansi16=function(e){return ne.rgb.ansi16(ne.hsv.rgb(e),e[2])};ne.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};ne.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,i=(t&1)*r*255,n=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[i,n,s]};ne.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,n=t%6/5*255;return[r,i,n]};ne.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};ne.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let i=parseInt(r,16),n=i>>16&255,s=i>>8&255,o=i&255;return[n,s,o]};ne.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,r),i),s=Math.min(Math.min(t,r),i),o=n-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:n===t?l=(r-i)/o%6:n===r?l=2+(i-t)/o:l=4+(t-r)/o,l/=6,l%=1,[l*360,o*100,a*100]};ne.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[e[0],i*100,n*100]};ne.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],i*100,n*100]};ne.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let n=[0,0,0],s=t%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return l=(1-r)*i,[(r*n[0]+l)*255,(r*n[1]+l)*255,(r*n[2]+l)*255]};ne.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),n=0;return i>0&&(n=t/i),[e[0],n*100,i*100]};ne.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],n*100,i*100]};ne.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};ne.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,n=i-t,s=0;return n<1&&(s=(i-n)/(1-n)),[e[0],n*100,s*100]};ne.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ne.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ne.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ne.gray.hsl=function(e){return[0,0,e[0]]};ne.gray.hsv=ne.gray.hsl;ne.gray.hwb=function(e){return[0,100,e[0]]};ne.gray.cmyk=function(e){return[0,0,0,e[0]]};ne.gray.lab=function(e){return[e[0],0,0]};ne.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i};ne.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var EP=b((DFe,xP)=>{var hp=N_();function BX(){let e={},t=Object.keys(hp);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function HX(e){let t=BX(),r=[e];for(t[e].distance=0;r.length;){let i=r.pop(),n=Object.keys(hp[i]);for(let s=n.length,o=0;o<s;o++){let a=n[o],l=t[a];l.distance===-1&&(l.distance=t[i].distance+1,l.parent=i,r.unshift(a))}}return t}function VX(e,t){return function(r){return t(e(r))}}function WX(e,t){let r=[t[e].parent,e],i=hp[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)r.unshift(t[n].parent),i=VX(hp[t[n].parent][n],i),n=t[n].parent;return i.conversion=r,i}xP.exports=function(e){let t=HX(e),r={},i=Object.keys(t);for(let n=i.length,s=0;s<n;s++){let o=i[s];t[o].parent!==null&&(r[o]=WX(o,t))}return r}});var RP=b((jFe,kP)=>{var $_=N_(),GX=EP(),Ja={},YX=Object.keys($_);function KX(e){let t=function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function JX(e){let t=function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let n=e(r);if(typeof n=="object")for(let s=n.length,o=0;o<s;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}YX.forEach(e=>{Ja[e]={},Object.defineProperty(Ja[e],"channels",{value:$_[e].channels}),Object.defineProperty(Ja[e],"labels",{value:$_[e].labels});let t=GX(e);Object.keys(t).forEach(i=>{let n=t[i];Ja[e][i]=JX(n),Ja[e][i].raw=KX(n)})});kP.exports=Ja});var AP=b((qFe,OP)=>{var Za=bP(),Wr=RP(),TP=["keyword","gray","hex"],F_={};for(let e of Object.keys(Wr))F_[[...Wr[e].labels].sort().join("")]=e;var dp={};function Ct(e,t){if(!(this instanceof Ct))return new Ct(e,t);if(t&&t in TP&&(t=null),t&&!(t in Wr))throw new Error("Unknown model: "+t);let r,i;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ct)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){let n=Za.get(e);if(n===null)throw new Error("Unable to parse color from string: "+e);this.model=n.model,i=Wr[this.model].channels,this.color=n.value.slice(0,i),this.valpha=typeof n.value[i]=="number"?n.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=Wr[this.model].channels;let n=Array.prototype.slice.call(e,0,i);this.color=L_(n,i),this.valpha=typeof e[i]=="number"?e[i]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let n=Object.keys(e);"alpha"in e&&(n.splice(n.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);let s=n.sort().join("");if(!(s in F_))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=F_[s];let{labels:o}=Wr[this.model],a=[];for(r=0;r<o.length;r++)a.push(e[o[r]]);this.color=L_(a)}if(dp[this.model])for(i=Wr[this.model].channels,r=0;r<i;r++){let n=dp[this.model][r];n&&(this.color[r]=n(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ct.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Za.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);let r=t.valpha===1?t.color:[...t.color,this.valpha];return Za.to[t.model](r)},percentString(e){let t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Za.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=Wr[this.model],{labels:r}=Wr[this.model];for(let i=0;i<t;i++)e[r[i]]=this.color[i];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Ct([...this.color.map(XX(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Ct([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:nt("rgb",0,Et(255)),green:nt("rgb",1,Et(255)),blue:nt("rgb",2,Et(255)),hue:nt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:nt("hsl",1,Et(100)),lightness:nt("hsl",2,Et(100)),saturationv:nt("hsv",1,Et(100)),value:nt("hsv",2,Et(100)),chroma:nt("hcg",1,Et(100)),gray:nt("hcg",2,Et(100)),white:nt("hwb",1,Et(100)),wblack:nt("hwb",2,Et(100)),cyan:nt("cmyk",0,Et(100)),magenta:nt("cmyk",1,Et(100)),yellow:nt("cmyk",2,Et(100)),black:nt("cmyk",3,Et(100)),x:nt("xyz",0,Et(95.047)),y:nt("xyz",1,Et(100)),z:nt("xyz",2,Et(108.833)),l:nt("lab",0,Et(100)),a:nt("lab",1),b:nt("lab",2),keyword(e){return e!==void 0?new Ct(e):Wr[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ct(e):Za.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ct(e);let t=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Za.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[r,i]of e.entries()){let n=i/255;t[r]=n<=.04045?n/12.92:((n+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Ct.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let r=e.rgb(),i=this.rgb(),n=t===void 0?.5:t,s=2*n-1,o=r.alpha()-i.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,l=1-a;return Ct.rgb(a*r.red()+l*i.red(),a*r.green()+l*i.green(),a*r.blue()+l*i.blue(),r.alpha()*n+i.alpha()*(1-n))}};for(let e of Object.keys(Wr)){if(TP.includes(e))continue;let{channels:t}=Wr[e];Ct.prototype[e]=function(...r){return this.model===e?new Ct(this):r.length>0?new Ct(r,e):new Ct([...QX(Wr[this.model][e].raw(this.color)),this.valpha],e)},Ct[e]=function(...r){let i=r[0];return typeof i=="number"&&(i=L_(r,t)),new Ct(i,e)}}function ZX(e,t){return Number(e.toFixed(t))}function XX(e){return function(t){return ZX(t,e)}}function nt(e,t,r){e=Array.isArray(e)?e:[e];for(let i of e)(dp[i]||(dp[i]=[]))[t]=r;return e=e[0],function(i){let n;return i!==void 0?(r&&(i=r(i)),n=this[e](),n.color[t]=i,n):(n=this[e]().color[t],r&&(n=r(n)),n)}}function Et(e){return function(t){return Math.max(0,Math.min(e,t))}}function QX(e){return Array.isArray(e)?e:[e]}function L_(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}OP.exports=Ct});var No=b((wDe,Io)=>{"use strict";function qP(e){return typeof e>"u"||e===null}function rQ(e){return typeof e=="object"&&e!==null}function iQ(e){return Array.isArray(e)?e:qP(e)?[]:[e]}function nQ(e,t){var r,i,n,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)n=s[r],e[n]=t[n];return e}function sQ(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function oQ(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Io.exports.isNothing=qP;Io.exports.isObject=rQ;Io.exports.toArray=iQ;Io.exports.repeat=sQ;Io.exports.isNegativeZero=oQ;Io.exports.extend=nQ});var sl=b((SDe,MP)=>{"use strict";function ku(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ku.prototype=Object.create(Error.prototype);ku.prototype.constructor=ku;ku.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};MP.exports=ku});var BP=b((xDe,UP)=>{"use strict";var zP=No();function M_(e,t,r,i,n){this.name=e,this.buffer=t,this.position=r,this.line=i,this.column=n}M_.prototype.getSnippet=function(t,r){var i,n,s,o,a;if(!this.buffer)return null;for(t=t||4,r=r||75,i="",n=this.position;n>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(n-1))===-1;)if(n-=1,this.position-n>r/2-1){i=" ... ",n+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),zP.repeat(" ",t)+i+a+s+`
`+zP.repeat(" ",t+this.position-n+i.length)+"^"};M_.prototype.toString=function(t){var r,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(i+=`:
`+r)),i};UP.exports=M_});var kt=b((EDe,VP)=>{"use strict";var HP=sl(),aQ=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],lQ=["scalar","sequence","mapping"];function cQ(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function uQ(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(aQ.indexOf(r)===-1)throw new HP('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=cQ(t.styleAliases||null),lQ.indexOf(this.kind)===-1)throw new HP('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}VP.exports=uQ});var $o=b((kDe,GP)=>{"use strict";var WP=No(),Wp=sl(),fQ=kt();function z_(e,t,r){var i=[];return e.include.forEach(function(n){r=z_(n,t,r)}),e[t].forEach(function(n){r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&i.push(o)}),r.push(n)}),r.filter(function(n,s){return i.indexOf(s)===-1})}function hQ(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function i(n){e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function ol(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Wp("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=z_(this,"implicit",[]),this.compiledExplicit=z_(this,"explicit",[]),this.compiledTypeMap=hQ(this.compiledImplicit,this.compiledExplicit)}ol.DEFAULT=null;ol.create=function(){var t,r;switch(arguments.length){case 1:t=ol.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Wp("Wrong number of arguments for Schema.create function")}if(t=WP.toArray(t),r=WP.toArray(r),!t.every(function(i){return i instanceof ol}))throw new Wp("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof fQ}))throw new Wp("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ol({include:t,explicit:r})};GP.exports=ol});var KP=b((RDe,YP)=>{"use strict";var dQ=kt();YP.exports=new dQ("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var ZP=b((TDe,JP)=>{"use strict";var pQ=kt();JP.exports=new pQ("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var QP=b((ODe,XP)=>{"use strict";var mQ=kt();XP.exports=new mQ("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Gp=b((ADe,eI)=>{"use strict";var gQ=$o();eI.exports=new gQ({explicit:[KP(),ZP(),QP()]})});var rI=b((CDe,tI)=>{"use strict";var yQ=kt();function vQ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function _Q(){return null}function bQ(e){return e===null}tI.exports=new yQ("tag:yaml.org,2002:null",{kind:"scalar",resolve:vQ,construct:_Q,predicate:bQ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var nI=b((PDe,iI)=>{"use strict";var wQ=kt();function SQ(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function xQ(e){return e==="true"||e==="True"||e==="TRUE"}function EQ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}iI.exports=new wQ("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SQ,construct:xQ,predicate:EQ,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var oI=b((IDe,sI)=>{"use strict";var kQ=No(),RQ=kt();function TQ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function OQ(e){return 48<=e&&e<=55}function AQ(e){return 48<=e&&e<=57}function CQ(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!TQ(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}for(;r<t;r++)if(n=e[r],n!=="_"){if(!OQ(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(n===":")break;if(!AQ(e.charCodeAt(r)))return!1;i=!0}return!i||n==="_"?!1:n!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function PQ(e){var t=e,r=1,i,n,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0"?0:i==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(o){s.unshift(parseInt(o,10))}),t=0,n=1,s.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseInt(t,10)}function IQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!kQ.isNegativeZero(e)}sI.exports=new RQ("tag:yaml.org,2002:int",{kind:"scalar",resolve:CQ,construct:PQ,predicate:IQ,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var cI=b((NDe,lI)=>{"use strict";var aI=No(),NQ=kt(),$Q=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function FQ(e){return!(e===null||!$Q.test(e)||e[e.length-1]==="_")}function LQ(e){var t,r,i,n;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,n=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){n.unshift(parseFloat(s,10))}),t=0,i=1,n.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseFloat(t,10)}var DQ=/^[-+]?[0-9]+e/;function jQ(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(aI.isNegativeZero(e))return"-0.0";return r=e.toString(10),DQ.test(r)?r.replace("e",".e"):r}function qQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||aI.isNegativeZero(e))}lI.exports=new NQ("tag:yaml.org,2002:float",{kind:"scalar",resolve:FQ,construct:LQ,predicate:qQ,represent:jQ,defaultStyle:"lowercase"})});var U_=b(($De,uI)=>{"use strict";var MQ=$o();uI.exports=new MQ({include:[Gp()],implicit:[rI(),nI(),oI(),cI()]})});var B_=b((FDe,fI)=>{"use strict";var zQ=$o();fI.exports=new zQ({include:[U_()]})});var mI=b((LDe,pI)=>{"use strict";var UQ=kt(),hI=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dI=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function BQ(e){return e===null?!1:hI.exec(e)!==null||dI.exec(e)!==null}function HQ(e){var t,r,i,n,s,o,a,l=0,c=null,u,f,h;if(t=hI.exec(e),t===null&&(t=dI.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],f=+(t[11]||0),c=(u*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&h.setTime(h.getTime()-c),h}function VQ(e){return e.toISOString()}pI.exports=new UQ("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:BQ,construct:HQ,instanceOf:Date,represent:VQ})});var yI=b((DDe,gI)=>{"use strict";var WQ=kt();function GQ(e){return e==="<<"||e===null}gI.exports=new WQ("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GQ})});var bI=b((jDe,_I)=>{"use strict";var Fo;try{vI=require,Fo=vI("buffer").Buffer}catch{}var vI,YQ=kt(),H_=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function KQ(e){if(e===null)return!1;var t,r,i=0,n=e.length,s=H_;for(r=0;r<n;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function JQ(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,s=H_,o=0,a=[];for(t=0;t<n;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(t));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),Fo?Fo.from?Fo.from(a):new Fo(a):a}function ZQ(e){var t="",r=0,i,n,s=e.length,o=H_;for(i=0;i<s;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=s%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function XQ(e){return Fo&&Fo.isBuffer(e)}_I.exports=new YQ("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KQ,construct:JQ,predicate:XQ,represent:ZQ})});var SI=b((qDe,wI)=>{"use strict";var QQ=kt(),eee=Object.prototype.hasOwnProperty,tee=Object.prototype.toString;function ree(e){if(e===null)return!0;var t=[],r,i,n,s,o,a=e;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,tee.call(n)!=="[object Object]")return!1;for(s in n)if(eee.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function iee(e){return e!==null?e:[]}wI.exports=new QQ("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ree,construct:iee})});var EI=b((MDe,xI)=>{"use strict";var nee=kt(),see=Object.prototype.toString;function oee(e){if(e===null)return!0;var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],see.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[t]=[n[0],i[n[0]]]}return!0}function aee(e){if(e===null)return[];var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),s[t]=[n[0],i[n[0]]];return s}xI.exports=new nee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oee,construct:aee})});var RI=b((zDe,kI)=>{"use strict";var lee=kt(),cee=Object.prototype.hasOwnProperty;function uee(e){if(e===null)return!0;var t,r=e;for(t in r)if(cee.call(r,t)&&r[t]!==null)return!1;return!0}function fee(e){return e!==null?e:{}}kI.exports=new lee("tag:yaml.org,2002:set",{kind:"mapping",resolve:uee,construct:fee})});var al=b((UDe,TI)=>{"use strict";var hee=$o();TI.exports=new hee({include:[B_()],implicit:[mI(),yI()],explicit:[bI(),SI(),EI(),RI()]})});var AI=b((BDe,OI)=>{"use strict";var dee=kt();function pee(){return!0}function mee(){}function gee(){return""}function yee(e){return typeof e>"u"}OI.exports=new dee("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:pee,construct:mee,predicate:yee,represent:gee})});var PI=b((HDe,CI)=>{"use strict";var vee=kt();function _ee(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),i="";return!(t[0]==="/"&&(r&&(i=r[1]),i.length>3||t[t.length-i.length-1]!=="/"))}function bee(e){var t=e,r=/\/([gim]*)$/.exec(e),i="";return t[0]==="/"&&(r&&(i=r[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function wee(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function See(e){return Object.prototype.toString.call(e)==="[object RegExp]"}CI.exports=new vee("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:_ee,construct:bee,predicate:See,represent:wee})});var $I=b((VDe,NI)=>{"use strict";var Yp;try{II=require,Yp=II("esprima")}catch{typeof window<"u"&&(Yp=window.esprima)}var II,xee=kt();function Eee(e){if(e===null)return!1;try{var t="("+e+")",r=Yp.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function kee(e){var t="("+e+")",r=Yp.parse(t,{range:!0}),i=[],n;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){i.push(s.name)}),n=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(i,t.slice(n[0]+1,n[1]-1)):new Function(i,"return "+t.slice(n[0],n[1]))}function Ree(e){return e.toString()}function Tee(e){return Object.prototype.toString.call(e)==="[object Function]"}NI.exports=new xee("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Eee,construct:kee,predicate:Tee,represent:Ree})});var Ru=b((WDe,LI)=>{"use strict";var FI=$o();LI.exports=FI.DEFAULT=new FI({include:[al()],explicit:[AI(),PI(),$I()]})});var t2=b((GDe,Tu)=>{"use strict";var Bn=No(),BI=sl(),Oee=BP(),HI=al(),Aee=Ru(),Ps=Object.prototype.hasOwnProperty,Kp=1,VI=2,WI=3,Jp=4,V_=1,Cee=2,DI=3,Pee=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Iee=/[\x85\u2028\u2029]/,Nee=/[,\[\]\{\}]/,GI=/^(?:!|!!|![a-z\-]+!)$/i,YI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jI(e){return Object.prototype.toString.call(e)}function rn(e){return e===10||e===13}function Do(e){return e===9||e===32}function Fr(e){return e===9||e===32||e===10||e===13}function ll(e){return e===44||e===91||e===93||e===123||e===125}function $ee(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Fee(e){return e===120?2:e===117?4:e===85?8:0}function Lee(e){return 48<=e&&e<=57?e-48:-1}function qI(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Dee(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var KI=new Array(256),JI=new Array(256);for(Lo=0;Lo<256;Lo++)KI[Lo]=qI(Lo)?1:0,JI[Lo]=qI(Lo);var Lo;function jee(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Aee,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function ZI(e,t){return new BI(t,new Oee(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function fe(e,t){throw ZI(e,t)}function Zp(e,t){e.onWarning&&e.onWarning.call(null,ZI(e,t))}var MI={YAML:function(t,r,i){var n,s,o;t.version!==null&&fe(t,"duplication of %YAML directive"),i.length!==1&&fe(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&fe(t,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&fe(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Zp(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var n,s;i.length!==2&&fe(t,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],GI.test(n)||fe(t,"ill-formed tag handle (first argument) of the TAG directive"),Ps.call(t.tagMap,n)&&fe(t,'there is a previously declared suffix for "'+n+'" tag handle'),YI.test(s)||fe(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[n]=s}};function Cs(e,t,r,i){var n,s,o,a;if(t<r){if(a=e.input.slice(t,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||fe(e,"expected valid JSON character");else Pee.test(a)&&fe(e,"the stream contains non-printable characters");e.result+=a}}function zI(e,t,r,i){var n,s,o,a;for(Bn.isObject(r)||fe(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],Ps.call(t,s)||(t[s]=r[s],i[s]=!0)}function cl(e,t,r,i,n,s,o,a){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&fe(e,"nested arrays are not supported inside keys"),typeof n=="object"&&jI(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&jI(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)zI(e,t,s[l],r);else zI(e,t,s,r);else!e.json&&!Ps.call(r,n)&&Ps.call(t,n)&&(e.line=o||e.line,e.position=a||e.position,fe(e,"duplicated mapping key")),t[n]=s,delete r[n];return t}function W_(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):fe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function vt(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Do(n);)n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(rn(n))for(W_(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Zp(e,"deficient indentation"),i}function Xp(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Fr(r)))}function G_(e,t){t===1?e.result+=" ":t>1&&(e.result+=Bn.repeat(`
`,t-1))}function qee(e,t,r){var i,n,s,o,a,l,c,u,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),Fr(d)||ll(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Fr(n)||r&&ll(n)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Fr(n)||r&&ll(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Fr(i))break}else{if(e.position===e.lineStart&&Xp(e)||r&&ll(d))break;if(rn(d))if(l=e.line,c=e.lineStart,u=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}a&&(Cs(e,s,o,!1),G_(e,e.line-l),s=o=e.position,a=!1),Do(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Cs(e,s,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function Mee(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Cs(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else rn(r)?(Cs(e,i,n,!0),G_(e,vt(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Xp(e)?fe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);fe(e,"unexpected end of the stream within a single quoted scalar")}function zee(e,t){var r,i,n,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Cs(e,r,e.position,!0),e.position++,!0;if(a===92){if(Cs(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),rn(a))vt(e,!1,t);else if(a<256&&KI[a])e.result+=JI[a],e.position++;else if((o=Fee(a))>0){for(n=o,s=0;n>0;n--)a=e.input.charCodeAt(++e.position),(o=$ee(a))>=0?s=(s<<4)+o:fe(e,"expected hexadecimal character");e.result+=Dee(s),e.position++}else fe(e,"unknown escape sequence");r=i=e.position}else rn(a)?(Cs(e,r,i,!0),G_(e,vt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Xp(e)?fe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}fe(e,"unexpected end of the stream within a double quoted scalar")}function Uee(e,t){var r=!0,i,n=e.tag,s,o=e.anchor,a,l,c,u,f,h={},d,p,m,y;if(y=e.input.charCodeAt(e.position),y===91)l=93,f=!1,s=[];else if(y===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(vt(e,!0,t),y=e.input.charCodeAt(e.position),y===l)return e.position++,e.tag=n,e.anchor=o,e.kind=f?"mapping":"sequence",e.result=s,!0;r||fe(e,"missed comma between flow collection entries"),p=d=m=null,c=u=!1,y===63&&(a=e.input.charCodeAt(e.position+1),Fr(a)&&(c=u=!0,e.position++,vt(e,!0,t))),i=e.line,ul(e,t,Kp,!1,!0),p=e.tag,d=e.result,vt(e,!0,t),y=e.input.charCodeAt(e.position),(u||e.line===i)&&y===58&&(c=!0,y=e.input.charCodeAt(++e.position),vt(e,!0,t),ul(e,t,Kp,!1,!0),m=e.result),f?cl(e,s,h,p,d,m):c?s.push(cl(e,null,h,p,d,m)):s.push(d),vt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}fe(e,"unexpected end of the stream within a flow collection")}function Bee(e,t){var r,i,n=V_,s=!1,o=!1,a=t,l=0,c=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)V_===n?n=f===43?DI:Cee:fe(e,"repeat of a chomping mode identifier");else if((u=Lee(f))>=0)u===0?fe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?fe(e,"repeat of an indentation width identifier"):(a=t+u-1,o=!0);else break;if(Do(f)){do f=e.input.charCodeAt(++e.position);while(Do(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!rn(f)&&f!==0)}for(;f!==0;){for(W_(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),rn(f)){l++;continue}if(e.lineIndent<a){n===DI?e.result+=Bn.repeat(`
`,s?1+l:l):n===V_&&s&&(e.result+=`
`);break}for(i?Do(f)?(c=!0,e.result+=Bn.repeat(`
`,s?1+l:l)):c?(c=!1,e.result+=Bn.repeat(`
`,l+1)):l===0?s&&(e.result+=" "):e.result+=Bn.repeat(`
`,l):e.result+=Bn.repeat(`
`,s?1+l:l),s=!0,o=!0,l=0,r=e.position;!rn(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Cs(e,r,e.position,!1)}return!0}function UI(e,t){var r,i=e.tag,n=e.anchor,s=[],o,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(o=e.input.charCodeAt(e.position+1),!Fr(o)));){if(a=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,ul(e,t,WI,!1,!0),s.push(e.result),vt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)fe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=s,!0):!1}function Hee(e,t,r){var i,n,s,o,a=e.tag,l=e.anchor,c={},u={},f=null,h=null,d=null,p=!1,m=!1,y;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),y=e.input.charCodeAt(e.position);y!==0;){if(i=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(y===63||y===58)&&Fr(i))y===63?(p&&(cl(e,c,u,f,h,null),f=h=d=null),m=!0,p=!0,n=!0):p?(p=!1,n=!0):fe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,y=i;else if(ul(e,r,VI,!1,!0))if(e.line===s){for(y=e.input.charCodeAt(e.position);Do(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),Fr(y)||fe(e,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(cl(e,c,u,f,h,null),f=h=d=null),m=!0,p=!1,n=!1,f=e.tag,h=e.result;else if(m)fe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(m)fe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===s||e.lineIndent>t)&&(ul(e,t,Jp,!0,n)&&(p?h=e.result:d=e.result),p||(cl(e,c,u,f,h,d,s,o),f=h=d=null),vt(e,!0,-1),y=e.input.charCodeAt(e.position)),e.lineIndent>t&&y!==0)fe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return p&&cl(e,c,u,f,h,null),m&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=c),m}function Vee(e){var t,r=!1,i=!1,n,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&fe(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):fe(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Fr(o);)o===33&&(i?fe(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),GI.test(n)||fe(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Nee.test(s)&&fe(e,"tag suffix cannot contain flow indicator characters")}return s&&!YI.test(s)&&fe(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Ps.call(e.tagMap,n)?e.tag=e.tagMap[n]+s:n==="!"?e.tag="!"+s:n==="!!"?e.tag="tag:yaml.org,2002:"+s:fe(e,'undeclared tag handle "'+n+'"'),!0}function Wee(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&fe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Fr(r)&&!ll(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&fe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Gee(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Fr(i)&&!ll(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&fe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ps.call(e.anchorMap,r)||fe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vt(e,!0,-1),!0}function ul(e,t,r,i,n){var s,o,a,l=1,c=!1,u=!1,f,h,d,p,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Jp===r||WI===r,i&&vt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Vee(e)||Wee(e);)vt(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Jp===r)&&(Kp===r||VI===r?p=t:p=t+1,m=e.position-e.lineStart,l===1?a&&(UI(e,m)||Hee(e,m,p))||Uee(e,p)?u=!0:(o&&Bee(e,p)||Mee(e,p)||zee(e,p)?u=!0:Gee(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&fe(e,"alias node should not have any properties")):qee(e,p,Kp===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=a&&UI(e,m))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&fe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(d=e.implicitTypes[f],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Ps.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&fe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):fe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):fe(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function Yee(e){var t=e.position,r,i,n,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(vt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Fr(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&fe(e,"directive name must not be less than one character in length");o!==0;){for(;Do(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!rn(o));break}if(rn(o))break;for(r=e.position;o!==0&&!Fr(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&W_(e),Ps.call(MI,i)?MI[i](e,i,n):Zp(e,'unknown document directive "'+i+'"')}if(vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,vt(e,!0,-1)):s&&fe(e,"directives end mark is expected"),ul(e,e.lineIndent-1,Jp,!1,!0),vt(e,!0,-1),e.checkLineBreaks&&Iee.test(e.input.slice(t,e.position))&&Zp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,vt(e,!0,-1));return}if(e.position<e.length-1)fe(e,"end of the stream or a document separator is expected");else return}function XI(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new jee(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Yee(r);return r.documents}function QI(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=XI(e,r);if(typeof t!="function")return i;for(var n=0,s=i.length;n<s;n+=1)t(i[n])}function e2(e,t){var r=XI(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new BI("expected a single document in the stream, but found more")}}function Kee(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),QI(e,t,Bn.extend({schema:HI},r))}function Jee(e,t){return e2(e,Bn.extend({schema:HI},t))}Tu.exports.loadAll=QI;Tu.exports.load=e2;Tu.exports.safeLoadAll=Kee;Tu.exports.safeLoad=Jee});var E2=b((YDe,Z_)=>{"use strict";var Au=No(),Cu=sl(),Zee=Ru(),Xee=al(),c2=Object.prototype.toString,u2=Object.prototype.hasOwnProperty,Qee=9,Ou=10,ete=13,tte=32,rte=33,ite=34,f2=35,nte=37,ste=38,ote=39,ate=42,h2=44,lte=45,d2=58,cte=61,ute=62,fte=63,hte=64,p2=91,m2=93,dte=96,g2=123,pte=124,y2=125,tr={};tr[0]="\\0";tr[7]="\\a";tr[8]="\\b";tr[9]="\\t";tr[10]="\\n";tr[11]="\\v";tr[12]="\\f";tr[13]="\\r";tr[27]="\\e";tr[34]='\\"';tr[92]="\\\\";tr[133]="\\N";tr[160]="\\_";tr[8232]="\\L";tr[8233]="\\P";var mte=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function gte(e,t){var r,i,n,s,o,a,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&u2.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function r2(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Cu("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Au.repeat("0",i-t.length)+t}function yte(e){this.schema=e.schema||Zee,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Au.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gte(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function i2(e,t){for(var r=Au.repeat(" ",t),i=0,n=-1,s="",o,a=e.length;i<a;)n=e.indexOf(`
`,i),n===-1?(o=e.slice(i),i=a):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function Y_(e,t){return`
`+Au.repeat(" ",e.indent*t)}function vte(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function J_(e){return e===tte||e===Qee}function fl(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function _te(e){return fl(e)&&!J_(e)&&e!==65279&&e!==ete&&e!==Ou}function n2(e,t){return fl(e)&&e!==65279&&e!==h2&&e!==p2&&e!==m2&&e!==g2&&e!==y2&&e!==d2&&(e!==f2||t&&_te(t))}function bte(e){return fl(e)&&e!==65279&&!J_(e)&&e!==lte&&e!==fte&&e!==d2&&e!==h2&&e!==p2&&e!==m2&&e!==g2&&e!==y2&&e!==f2&&e!==ste&&e!==ate&&e!==rte&&e!==pte&&e!==cte&&e!==ute&&e!==ote&&e!==ite&&e!==nte&&e!==hte&&e!==dte}function v2(e){var t=/^\n* /;return t.test(e)}var _2=1,b2=2,w2=3,S2=4,Qp=5;function wte(e,t,r,i,n){var s,o,a,l=!1,c=!1,u=i!==-1,f=-1,h=bte(e.charCodeAt(0))&&!J_(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!fl(o))return Qp;a=s>0?e.charCodeAt(s-1):null,h=h&&n2(o,a)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===Ou)l=!0,u&&(c=c||s-f-1>i&&e[f+1]!==" ",f=s);else if(!fl(o))return Qp;a=s>0?e.charCodeAt(s-1):null,h=h&&n2(o,a)}c=c||u&&s-f-1>i&&e[f+1]!==" "}return!l&&!c?h&&!n(e)?_2:b2:r>9&&v2(e)?Qp:c?S2:w2}function Ste(e,t,r,i){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&mte.indexOf(t)!==-1)return"'"+t+"'";var n=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n),o=i||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return vte(e,l)}switch(wte(t,o,e.indent,s,a)){case _2:return t;case b2:return"'"+t.replace(/'/g,"''")+"'";case w2:return"|"+s2(t,e.indent)+o2(i2(t,n));case S2:return">"+s2(t,e.indent)+o2(i2(xte(t,s),n));case Qp:return'"'+Ete(t,s)+'"';default:throw new Cu("impossible error: invalid scalar style")}}()}function s2(e,t){var r=v2(e)?String(t):"",i=e[e.length-1]===`
`,n=i&&(e[e.length-2]===`
`||e===`
`),s=n?"+":i?"":"-";return r+s+`
`}function o2(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function xte(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,r.lastIndex=c,a2(e.slice(0,c),t)}(),n=e[0]===`
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
`:"")+a2(l,t),n=s}return i}function a2(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(e);)a=i.index,a-n>t&&(s=o>n?o:a,l+=`
`+e.slice(n,s),n=s+1),o=a;return l+=`
`,e.length-n>t&&o>n?l+=e.slice(n,o)+`
`+e.slice(o+1):l+=e.slice(n),l.slice(1)}function Ete(e){for(var t="",r,i,n,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(i=e.charCodeAt(s+1),i>=56320&&i<=57343)){t+=r2((r-55296)*1024+i-56320+65536),s++;continue}n=tr[r],t+=!n&&fl(r)?e[s]:n||r2(r)}return t}function kte(e,t,r){var i="",n=e.tag,s,o;for(s=0,o=r.length;s<o;s+=1)jo(e,t,r[s],!1,!1)&&(s!==0&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Rte(e,t,r,i){var n="",s=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)jo(e,t+1,r[o],!0,!0)&&((!i||o!==0)&&(n+=Y_(e,t)),e.dump&&Ou===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=s,e.dump=n||"[]"}function Tte(e,t,r){var i="",n=e.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",o!==0&&(u+=", "),e.condenseFlow&&(u+='"'),l=s[o],c=r[l],jo(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),jo(e,t,c,!1,!1)&&(u+=e.dump,i+=u));e.tag=n,e.dump="{"+i+"}"}function Ote(e,t,r,i){var n="",s=e.tag,o=Object.keys(r),a,l,c,u,f,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Cu("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)h="",(!i||a!==0)&&(h+=Y_(e,t)),c=o[a],u=r[c],jo(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ou===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=Y_(e,t)),jo(e,t+1,u,!0,f)&&(e.dump&&Ou===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,n+=h));e.tag=s,e.dump=n||"{}"}function l2(e,t,r){var i,n,s,o,a,l;for(n=r?e.explicitTypes:e.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,c2.call(a.represent)==="[object Function]")i=a.represent(t,l);else if(u2.call(a.represent,l))i=a.represent[l](t,l);else throw new Cu("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}function jo(e,t,r,i,n,s){e.tag=null,e.dump=r,l2(e,r,!1)||l2(e,r,!0);var o=c2.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var a=o==="[object Object]"||o==="[object Array]",l,c;if(a&&(l=e.duplicates.indexOf(r),c=l!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(n=!1),c&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&c&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Ote(e,t,e.dump,n),c&&(e.dump="&ref_"+l+e.dump)):(Tte(e,t,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]"){var u=e.noArrayIndent&&t>0?t-1:t;i&&e.dump.length!==0?(Rte(e,u,e.dump,n),c&&(e.dump="&ref_"+l+e.dump)):(kte(e,u,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&Ste(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Cu("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Ate(e,t){var r=[],i=[],n,s;for(K_(e,r,i),n=0,s=i.length;n<s;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(s)}function K_(e,t,r){var i,n,s;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,s=e.length;n<s;n+=1)K_(e[n],t,r);else for(i=Object.keys(e),n=0,s=i.length;n<s;n+=1)K_(e[i[n]],t,r)}function x2(e,t){t=t||{};var r=new yte(t);return r.noRefs||Ate(e,r),jo(r,0,e,!0,!0)?r.dump+`
`:""}function Cte(e,t){return x2(e,Au.extend({schema:Xee},t))}Z_.exports.dump=x2;Z_.exports.safeDump=Cte});var R2=b((KDe,st)=>{"use strict";var em=t2(),k2=E2();function tm(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}st.exports.Type=kt();st.exports.Schema=$o();st.exports.FAILSAFE_SCHEMA=Gp();st.exports.JSON_SCHEMA=U_();st.exports.CORE_SCHEMA=B_();st.exports.DEFAULT_SAFE_SCHEMA=al();st.exports.DEFAULT_FULL_SCHEMA=Ru();st.exports.load=em.load;st.exports.loadAll=em.loadAll;st.exports.safeLoad=em.safeLoad;st.exports.safeLoadAll=em.safeLoadAll;st.exports.dump=k2.dump;st.exports.safeDump=k2.safeDump;st.exports.YAMLException=sl();st.exports.MINIMAL_SCHEMA=Gp();st.exports.SAFE_SCHEMA=al();st.exports.DEFAULT_SCHEMA=Ru();st.exports.scan=tm("scan");st.exports.parse=tm("parse");st.exports.compose=tm("compose");st.exports.addConstructor=tm("addConstructor")});var X_=b((JDe,T2)=>{"use strict";var Pte=R2();T2.exports=Pte});var O2=b((Pu,Q_)=>{(function(e,t){typeof Pu=="object"&&typeof Q_=="object"?Q_.exports=t(X_()):typeof define=="function"&&define.amd?define([],t):typeof Pu=="object"?Pu.yamlFront=t(X_()):e.yamlFront=t(e.jsyaml)})(Pu,function(e){return function(t){var r={};function i(n){if(r[n])return r[n].exports;var s=r[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=r,i.d=function(n,s,o){i.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,s){if(1&s&&(n=i(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)i.d(o,a,function(l){return n[l]}.bind(null,a));return o},i.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(s,"a",s),s},i.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},i.p="",i(i.s=0)}([function(t,r,i){"use strict";function n(c){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(c)}i.r(r),i.d(r,"loadFront",function(){return a}),i.d(r,"safeLoadFront",function(){return l});var s=i(1);function o(c,u,f){var h,d=u&&typeof u=="string"?u:u&&u.contentKeyName?u.contentKeyName:"__content",p=u&&n(u)==="object"?u:void 0,m=/^(-{3}(?:\n|\r)([\w\W]+?)(?:\n|\r)-{3})?([\w\W]*)*/.exec(c),y={};return(h=m[2])&&(y=h.charAt(0)==="{"?JSON.parse(h):f?s.safeLoad(h,p):s.load(h,p)),y[d]=m[3]||"",y}function a(c,u){return o(c,u,!1)}function l(c,u){return o(c,u,!0)}},function(t,r){t.exports=e}])})});var P2=b((rje,C2)=>{"use strict";function Ite(e){var t=new e,r=t;function i(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}C2.exports=Ite});var tb=b((ije,eb)=>{"use strict";var Nte=P2();function I2(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var i=Nte($te),n=null,s=null,o=0,a=null,l={push:m,drain:ni,saturated:ni,pause:u,paused:!1,get concurrency(){return r},set concurrency(T){if(!(T>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=T,!l.paused)for(;n&&o<r;)o++,_()},running:c,resume:d,idle:p,length:f,getQueue:h,unshift:y,empty:ni,kill:w,killAndDrain:v,error:g};return l;function c(){return o}function u(){l.paused=!0}function f(){for(var T=n,N=0;T;)T=T.next,N++;return N}function h(){for(var T=n,N=[];T;)N.push(T.value),T=T.next;return N}function d(){if(l.paused){if(l.paused=!1,n===null){o++,_();return}for(;n&&o<r;)o++,_()}}function p(){return o===0&&l.length()===0}function m(T,N){var R=i.get();R.context=e,R.release=_,R.value=T,R.callback=N||ni,R.errorHandler=a,o>=r||l.paused?s?(s.next=R,s=R):(n=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function y(T,N){var R=i.get();R.context=e,R.release=_,R.value=T,R.callback=N||ni,R.errorHandler=a,o>=r||l.paused?n?(R.next=n,n=R):(n=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function _(T){T&&i.release(T);var N=n;N&&o<=r?l.paused?o--:(s===n&&(s=null),n=N.next,N.next=null,t.call(e,N.value,N.worked),s===null&&l.empty()):--o===0&&l.drain()}function w(){n=null,s=null,l.drain=ni}function v(){n=null,s=null,l.drain(),l.drain=ni}function g(T){a=T}}function ni(){}function $te(){this.value=null,this.callback=ni,this.next=null,this.release=ni,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,i){var n=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=ni,e.errorHandler&&s(r,o),n.call(e.context,r,i),e.release(e)}}function Fte(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function i(u,f){t.call(this,u).then(function(h){f(null,h)},f)}var n=I2(e,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=l,n.drained=c,n;function a(u){var f=new Promise(function(h,d){s(u,function(p,m){if(p){d(p);return}h(m)})});return f.catch(ni),f}function l(u){var f=new Promise(function(h,d){o(u,function(p,m){if(p){d(p);return}h(m)})});return f.catch(ni),f}function c(){var u=new Promise(function(f){process.nextTick(function(){if(n.idle())f();else{var h=n.drain;n.drain=function(){typeof h=="function"&&h(),f(),n.drain=h}}})});return u}}eb.exports=I2;eb.exports.promise=Fte});var ib=b((nje,rm)=>{"use strict";var{format:Lte}=require("node:util");function Dte(){return`${this.name} [${this.code}]: ${this.message}`}function rb(e,t,r=500,i=Error){if(!e)throw new Error("Fastify error code must not be empty");if(!t)throw new Error("Fastify error message must not be empty");e=e.toUpperCase(),!r&&(r=void 0);function n(...s){if(!new.target)return new n(...s);this.code=e,this.name="FastifyError",this.statusCode=r;let o=s.length-1;o!==-1&&s[o]&&typeof s[o]=="object"&&"cause"in s[o]&&(this.cause=s.pop().cause),this.message=Lte(t,...s),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,n)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),n.prototype[Symbol.toStringTag]="Error",n.prototype.toString=Dte,n}rm.exports=rb;rm.exports.default=rb;rm.exports.createError=rb});var im=b((sje,N2)=>{"use strict";var{createError:Is}=ib();N2.exports={AVV_ERR_EXPOSE_ALREADY_DEFINED:Is("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' is already defined, specify an expose option for '%s'"),AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:Is("AVV_ERR_ATTRIBUTE_ALREADY_DEFINED","'%s' is already defined"),AVV_ERR_CALLBACK_NOT_FN:Is("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Is("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Is("AVV_ERR_ROOT_PLG_BOOTED","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Is("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Is("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"),AVV_ERR_PLUGIN_EXEC_TIMEOUT:Is("AVV_ERR_PLUGIN_EXEC_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var dl=b((oje,$2)=>{"use strict";var jte=Symbol("avvio.Boot"),qte=Symbol("isOnCloseHandler"),Mte=Symbol("avvio.ThenifyDoNotWrap"),zte=Symbol("avvio.TimeTree.untrackNode"),Ute=Symbol("avvio.TimeTree.trackNode"),Bte=Symbol("avvio.TimeTree.getParent"),Hte=Symbol("avvio.TimeTree.getNode"),Vte=Symbol("avvio.TimeTree.addNode"),Wte=Symbol.for("plugin-meta");$2.exports={kAvvio:jte,kIsOnCloseHandler:qte,kThenifyDoNotWrap:Mte,kUntrackNode:zte,kTrackNode:Ute,kGetParent:Bte,kGetNode:Hte,kAddNode:Vte,kPluginMeta:Wte}});var z2=b((aje,M2)=>{"use strict";var{kUntrackNode:F2,kTrackNode:nb,kGetParent:L2,kGetNode:D2,kAddNode:j2}=dl(),sb=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[nb](t){this.tableId.set(t.id,t),this.tableLabel.has(t.label)?this.tableLabel.get(t.label).push(t):this.tableLabel.set(t.label,[t])}[F2](t){this.tableId.delete(t.id);let r=this.tableLabel.get(t.label);r.pop(),r.length===0&&this.tableLabel.delete(t.label)}[L2](t){if(t===null)return null;if(this.tableLabel.has(t)){let r=this.tableLabel.get(t);return r[r.length-1]}else return null}[D2](t){return this.tableId.get(t)}[j2](t,r,i){let n=this[L2](t);if(n===null)return this.root={parent:null,id:"root",label:r,nodes:[],start:i,stop:null,diff:-1},this[nb](this.root),this.root.id;let o=`${r}-${Math.random()}`,a={parent:t,id:o,label:r,nodes:[],start:i,stop:null,diff:-1};return n.nodes.push(a),this[nb](a),o}start(t,r,i=Date.now()){return this[j2](t,r,i)}stop(t,r=Date.now()){let i=this[D2](t);i&&(i.stop=r,i.diff=i.stop-i.start||0,this[F2](i))}toJSON(){return Object.assign({},this.root)}prettyPrint(){return q2(this.toJSON())}};function q2(e,t=""){let r=t,i=e.nodes.length,n=i-1;r+=`${e.label} ${e.diff} ms
`;for(let s=0;s<i;++s){let o=e.nodes[s],a=t+(s===n?" ":"\u2502 ");r+=t,r+=s===n?"\u2514\u2500":"\u251C\u2500",r+=o.nodes.length===0?"\u2500 ":"\u252C ",r+=q2(o,a).slice(t.length+2)}return r}M2.exports={TimeTree:sb}});var nm=b((lje,U2)=>{"use strict";var{debuglog:Gte}=require("node:util"),Yte=Gte("avvio");U2.exports={debug:Yte}});var H2=b((cje,B2)=>{"use strict";function Kte(){let e={resolve:null,reject:null,promise:null};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}B2.exports={createPromise:Kte}});var W2=b((uje,V2)=>{"use strict";var{kPluginMeta:ob}=dl();function Jte(e,t){return e[ob]&&e[ob].name?e[ob].name:t&&t.name?t.name:e.name?e.name:e.toString().split(`
`).slice(0,2).map(r=>r.trim()).join(" -- ")}V2.exports={getPluginName:Jte}});var sm=b((fje,G2)=>{"use strict";function Zte(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}G2.exports={isPromiseLike:Zte}});var K2=b((hje,Y2)=>{"use strict";var{EventEmitter:Xte}=require("node:events"),{inherits:Qte}=require("node:util"),{debug:zt}=nm(),{createPromise:ere}=H2(),{AVV_ERR_PLUGIN_EXEC_TIMEOUT:tre}=im(),{getPluginName:rre}=W2(),{isPromiseLike:ire}=sm();function pl(e,t,r,i,n){this.queue=e,this.func=t,this.options=r,this.isAfter=i,this.timeout=n,this.started=!1,this.name=rre(t,r),this.queue.pause(),this._error=null,this.loaded=!1,this._promise=null,this.startTime=null}Qte(pl,Xte);pl.prototype.exec=function(e,t){zt("exec",this.name),this.server=e;let r=this.func,i=this.name,n=!1;this.options=typeof this.options=="function"?this.options(this.server):this.options;let s=null,o=l=>{if(n){zt("loading complete",i);return}this._error=l,zt(l?"exec errored":"exec completed",i),n=!0,s&&clearTimeout(s),t(l)};this.timeout>0&&(zt("setting up timeout",i,this.timeout),s=setTimeout(function(){zt("timed out",i),s=null;let l=new tre(i);l.fn=r,o(l)},this.timeout)),this.started=!0,this.startTime=Date.now(),this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=r(this.server,this.options,o);ire(a)&&(zt("exec: resolving promise",i),a.then(()=>process.nextTick(o),l=>process.nextTick(o,l)))};pl.prototype.loadedSoFar=function(){if(zt("loadedSoFar",this.name),this.loaded)return Promise.resolve();let e=()=>{this.server.after((r,i)=>{this._error=r,this.queue.pause(),this._promise&&(r?(zt("rejecting promise",this.name,r),this._promise.reject(r)):(zt("resolving promise",this.name),this._promise.resolve()),this._promise=null),process.nextTick(i,r)}),this.queue.resume()},t;return this._promise?t=Promise.resolve():(this._promise=ere(),t=this._promise.promise,this.server?e():this.on("start",e)),t};pl.prototype.enqueue=function(e,t){zt("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.queue.push(e,t)};pl.prototype.finish=function(e,t){zt("finish",this.name,e);let r=()=>{this.loaded||(zt("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),r();return}let i=()=>{if(zt("check",this.name,this.queue.length(),this.queue.running(),this._promise),this.queue.length()===0&&this.queue.running()===0)if(this._promise){let n=()=>{zt("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(n,n),this._promise=null}else r();else zt("delayed",this.name),this.queue.drain=()=>{zt("drain",this.name),this.queue.drain=nre,queueMicrotask(i)}};queueMicrotask(i),this.queue.resume()};function nre(){}Y2.exports={Plugin:pl}});var Z2=b((dje,J2)=>{"use strict";var{AVV_ERR_PLUGIN_NOT_VALID:ab}=im();function sre(e){if(!(e&&(typeof e=="function"||typeof e.then=="function")))throw Array.isArray(e)?new ab("array"):e===null?new ab("null"):new ab(typeof e)}J2.exports={validatePlugin:sre}});var Q2=b((pje,X2)=>{"use strict";function ore(e){return e!==null&&typeof e=="object"&&typeof e.default=="function"}X2.exports={isBundledOrTypescriptPlugin:ore}});var rN=b((mje,tN)=>{"use strict";var{debug:eN}=nm(),{kThenifyDoNotWrap:lb}=dl();function are(){if(this.booted){eN("thenify returning undefined because we are already booted");return}if(this[lb]){this[lb]=!1;return}return eN("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[lb]=!0,e(this._server)),t)}tN.exports={thenify:are}});var nN=b((gje,iN)=>{"use strict";var{isPromiseLike:lre}=sm(),{kAvvio:cre}=dl();function ure(e,t,r){let i=e.apply(e,t);lre(i)&&!i[cre]?i.then(()=>process.nextTick(r),n=>process.nextTick(r,n)):r&&process.nextTick(r)}iN.exports={executeWithThenable:ure}});var hN=b((yje,ub)=>{"use strict";var om=tb(),fre=require("node:events").EventEmitter,hre=require("node:util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:$u,AVV_ERR_CALLBACK_NOT_FN:ml,AVV_ERR_ROOT_PLG_BOOTED:dre,AVV_ERR_READY_TIMEOUT:pre,AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:mre}=im(),{kAvvio:aN,kIsOnCloseHandler:lN}=dl(),{TimeTree:gre}=z2(),{Plugin:cN}=K2(),{debug:gl}=nm(),{validatePlugin:yre}=Z2(),{isBundledOrTypescriptPlugin:vre}=Q2(),{isPromiseLike:_re}=sm(),{thenify:uN}=rN(),{executeWithThenable:sN}=nN();function lt(e,t,r){if(typeof e=="function"&&arguments.length===1&&(r=e,t={},e=null),typeof t=="function"&&(r=t,t={}),t=t||{},t.autostart=t.autostart!==!1,t.timeout=Number(t.timeout)||0,t.expose=t.expose||{},!new.target)return new lt(e,t,r);this._server=e||this,this._opts=t,e&&this._expose(),this._current=[],this._error=null,this._lastUsed=null,this.setMaxListeners(0),r&&this.once("start",r),this.started=!1,this.booted=!1,this.pluginTree=new gre,this._readyQ=om(this,fN,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=oN},this._closeQ=om(this,wre,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=oN},this._doStart=null;let i=this;this._root=new cN(om(this,this._loadPluginNextTick,1),function(s,o,a){i._doStart=a,o.autostart&&i.start()},t,!1,0),this._trackPluginLoading(this._root),this._loadPlugin(this._root,n=>{gl("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){n=n||this._error||s}if(n){if(this._error=n,this._readyQ.length()===0)throw n}else this.booted=!0;this._readyQ.resume()})}hre(lt,fre);lt.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};lt.prototype.override=function(e,t,r){return e};lt.prototype[aN]=!0;lt.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};lt.prototype._loadRegistered=function(){let e=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.queue.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(lt.prototype,"then",{get:uN});lt.prototype._addPlugin=function(e,t,r){if(vre(e)&&(e=e.default),yre(e),t=t||{},this.booted)throw new dre;let i=this._current[0],n=this._opts.timeout;if(!i.loaded&&i.timeout>0){let o=Date.now()-i.startTime;n=i.timeout-(o+3)}let s=new cN(om(this,this._loadPluginNextTick,1),e,t,r,n);if(this._trackPluginLoading(s),i.loaded)throw new Error(s.name,i.name);return i.enqueue(s,o=>{o&&(this._error=o)}),s};lt.prototype._expose=function(){let t=this,r=t._server,{use:i="use",after:n="after",ready:s="ready",onClose:o="onClose",close:a="close"}=this._opts.expose;if(r[i])throw new $u(i,"use");if(r[i]=function(l,c){return t.use(l,c),this},r[n])throw new $u(n,"after");if(r[n]=function(l){return typeof l!="function"?t._loadRegistered():(t.after(cb(l,this)),this)},r[s])throw new $u(s,"ready");if(r[s]=function(l){if(l&&typeof l!="function")throw new ml(s,typeof l);return t.ready(l?cb(l,this):void 0)},r[o])throw new $u(o,"onClose");if(r[o]=function(l){if(typeof l!="function")throw new ml(o,typeof l);return t.onClose(Sre(l,this)),this},r[a])throw new $u(a,"close");if(r[a]=function(l){if(l&&typeof l!="function")throw new ml(a,typeof l);return l?(t.close(cb(l,this)),this):t.close()},r.then)throw new mre("then");Object.defineProperty(r,"then",{get:uN.bind(t)}),r[aN]=!0};lt.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(r,i,n){fN.call(this,e,n)}return this};lt.prototype.onClose=function(e){if(typeof e!="function")throw new ml("onClose",typeof e);return e[lN]=!0,this._closeQ.unshift(e,t=>{t&&(this._error=t)}),this};lt.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new ml("close",typeof e)}else t=new Promise(function(r,i){e=function(n){if(n)return i(n);r()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};lt.prototype.ready=function(e){if(e){if(typeof e!="function")throw new ml("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,r)=>{this._readyQ.push(n),this.start();let i=this._current[0].server;function n(s,o,a){s?r(s):t(i),process.nextTick(a)}})};lt.prototype._trackPluginLoading=function(e){let t=this._current[0]?.name||null;e.once("start",(r,i,n)=>{let s=this.pluginTree.start(t||null,i,n);e.once("loaded",(o,a,l)=>{this.pluginTree.stop(s,l)})})};lt.prototype.prettyPrint=function(){return this.pluginTree.prettyPrint()};lt.prototype.toJSON=function(){return this.pluginTree.toJSON()};lt.prototype._loadPlugin=function(e,t){let r=this;if(_re(e.func)){e.func.then(o=>{typeof o.default=="function"&&(o=o.default),e.func=o,this._loadPlugin(e,t)},t);return}let i=r._current[0];if(r._current.unshift(e),r._error&&!e.isAfter){gl("skipping loading of plugin as instance errored and it is not an after",e.name),process.nextTick(s);return}let n=i&&i.server||r._server;if(!e.isAfter)try{n=r.override(n,e.func,e.options)}catch(o){return gl("override errored",e.name),s(o)}e.exec(n,s);function s(o){e.finish(o,a=>{r._current.shift(),t(a)})}};lt.prototype._loadPluginNextTick=function(e,t){process.nextTick(this._loadPlugin.bind(this),e,t)};function oN(){}function fN(e,t){let r=this._server,i=this._error;if(this._error=null,e.length===0)this._error=i,sN(e,[],t);else if(e.length===1)sN(e,[i],t);else if(this._opts.timeout===0){let n=s=>{this._error=s,t(this._error)};e.length===2?e(i,n):e(i,r,n)}else bre.call(this,e,i,r,t)}function bre(e,t,r,i){let n=e.unwrappedName??e.name;gl("setting up ready timeout",n,this._opts.timeout);let s=setTimeout(()=>{gl("timed out",n),s=null;let a=new pre(n);a.fn=e,this._error=a,i(a)},this._opts.timeout);e.length===2?e(t,o.bind(this)):e(t,r,o.bind(this));function o(a){s&&(clearTimeout(s),this._error=a,i(this._error))}}function wre(e,t){let r=this._server,i=e[lN];if(e.length===0||e.length===1){let n;i?n=e(r):n=e(this._error),n&&typeof n.then=="function"?(gl("resolving close/onClose promise"),n.then(()=>process.nextTick(t),s=>process.nextTick(t,s))):process.nextTick(t)}else e.length===2?e(i?r:this._error,t):i?e(r,t):e(this._error,r,t)}function Sre(e,t){return r.bind(t);function r(i,n){let s;e.length===0?(s=e(),s&&s.then?s.then(function(){process.nextTick(n)},n):process.nextTick(n)):e.length===1?(s=e(this),s&&s.then?s.then(function(){process.nextTick(n)},n):process.nextTick(n)):e(this,n)}}function cb(e,t){let r=i.bind(t);return r.unwrappedName=e.name,r;function i(n,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){process.nextTick(s,n)},s):process.nextTick(s,n)):e.length===1?(o=e(n),o&&o.then?o.then(function(){process.nextTick(s)},s):process.nextTick(s)):e.length===2?e(n,s):e(n,this,s):process.nextTick(s)}}ub.exports=lt;ub.exports.express=function(e){return lt(e,{expose:{use:"load"}})}});var Pt=b((vje,dN)=>{"use strict";var xre={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kServerBindings:Symbol("fastify.serverBindings"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kRouteContext:Symbol("fastify.context"),kPublicRouteContext:Symbol("fastify.routeOptions"),kGenReqId:Symbol("fastify.genReqId"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kSchemaVisited:Symbol("fastify.schemas.visited"),kRequest:Symbol("fastify.Request"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),kFourOhFour:Symbol("fastify.404"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReply:Symbol("fastify.Reply"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplyHijacked:Symbol("fastify.reply.hijacked"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyNextErrorHandler:Symbol("fastify.reply.nextErrorHandler"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};dN.exports=xre});var db=b((_je,am)=>{"use strict";var{format:fb}=require("node:util");function Ere(e){return pN({...e,name:"DeprecationWarning"})}function pN({name:e,code:t,message:r,unlimited:i=!1}={}){if(!e)throw new Error("Warning name must not be empty");if(!t)throw new Error("Warning code must not be empty");if(!r)throw new Error("Warning message must not be empty");if(typeof i!="boolean")throw new Error("Warning opts.unlimited must be a boolean");t=t.toUpperCase();let n={[e]:function(o,a,l){s.emitted===!0&&s.unlimited!==!0||(s.emitted=!0,process.emitWarning(s.format(o,a,l),s.name,s.code))}};i&&(n={[e]:function(o,a,l){s.emitted=!0,process.emitWarning(s.format(o,a,l),s.name,s.code)}});let s=n[e];return s.emitted=!1,s.message=r,s.unlimited=i,s.code=t,s.format=function(o,a,l){let c;return o&&a&&l?c=fb(r,o,a,l):o&&a?c=fb(r,o,a):o?c=fb(r,o):c=r,c},s}var hb={createWarning:pN,createDeprecation:Ere};am.exports=hb;am.exports.default=hb;am.exports.processWarning=hb});var sn=b((bje,gN)=>{"use strict";var{createDeprecation:It,createWarning:mN}=db(),kre=It({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),Rre=It({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),Tre=It({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),Ore=It({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),Are=It({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),Cre=It({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),Pre=It({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),Ire=It({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),Nre=It({code:"FSTDEP013",message:'Direct return of "trailers" function is deprecated. Please use "callback" or "async-await" for return value. The support of direct return will removed in `fastify@5`.'}),$re=It({code:"FSTDEP014",message:"You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes."}),Fre=It({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),Lre=It({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),Dre=It({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),jre=It({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),qre=It({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),Mre=It({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()" method. Use the "reply.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),zre=It({code:"FSTDEP021",message:"The `reply.redirect()` method has a new signature: `reply.redirect(url: string, code?: number)`. It will be enforced in `fastify@v5`"}),Ure=It({code:"FSTDEP021",message:"You are using the deprecated json shorthand schema on route %s. Specify full object schema instead. It will be removed in `fastify@v5`"}),Bre=mN({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),Hre=mN({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});gN.exports={FSTDEP005:kre,FSTDEP006:Rre,FSTDEP007:Tre,FSTDEP008:Ore,FSTDEP009:Are,FSTDEP010:Cre,FSTDEP011:Pre,FSTDEP012:Ire,FSTDEP013:Nre,FSTDEP014:$re,FSTDEP015:Fre,FSTDEP016:Lre,FSTDEP017:Dre,FSTDEP018:jre,FSTDEP019:qre,FSTDEP020:Mre,FSTDEP021:zre,FSTDEP022:Ure,FSTWRN001:Bre,FSTWRN002:Hre}});var rr=b((wje,lm)=>{"use strict";var Z=ib(),qo={FST_ERR_NOT_FOUND:Z("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:Z("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:Z("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:Z("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:Z("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:Z("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Z("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:Z("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:Z("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:Z("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_ERROR_HANDLER_NOT_FN:Z("FST_ERR_ERROR_HANDLER_NOT_FN","Error Handler must be a function",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:Z("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:Z("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:Z("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:Z("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:Z("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:Z("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:Z("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:Z("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:Z("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Z("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:Z("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:Z("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:Z("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:Z("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:Z("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:Z("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:Z("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:Z("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:Z("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:Z("FST_ERR_HOOK_TIMEOUT","A callback for '%s' hook timed out. You may have forgotten to call 'done' function or to resolve a Promise"),FST_ERR_LOG_INVALID_DESTINATION:Z("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:Z("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:Z("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:Z("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:Z("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:Z("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:Z("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:Z("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:Z("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:Z("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:Z("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:Z("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:Z("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:Z("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:Z("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:Z("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:Z("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:Z("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:Z("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:Z("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:Z("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Z("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:Z("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:Z("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:Z("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:Z("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:Z("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:Z("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:Z("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:Z("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:Z("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:Z("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:Z("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:Z("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:Z("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:Z("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:Z("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:Z("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:Z("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:Z("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:Z("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:Z("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:Z("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Z("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:Z("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:Z("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:Z("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:Z("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:Z("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function Vre(e,t){return t.cause=e,t}lm.exports=qo;lm.exports.appendStackTrace=Vre;lm.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:qo.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:qo.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:qo.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:qo.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:qo.FST_ERR_PLUGIN_TIMEOUT,AVV_ERR_PLUGIN_EXEC_TIMEOUT:qo.FST_ERR_PLUGIN_TIMEOUT}});var Ns=b((Sje,kN)=>{"use strict";var Wre=["onRoute","onRegister","onReady","onListen","preClose","onClose"],bN=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],Gre=bN.concat(Wre),{FST_ERR_HOOK_INVALID_TYPE:Yre,FST_ERR_HOOK_INVALID_HANDLER:Kre,FST_ERR_SEND_UNDEFINED_ERR:cm,FST_ERR_HOOK_TIMEOUT:Jre,FST_ERR_HOOK_NOT_SUPPORTED:Zre,AVVIO_ERRORS_MAP:yN,appendStackTrace:vN}=rr(),{kChildren:Fu,kHooks:wN,kRequestPayloadStream:_N}=Pt();function Lu(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}Lu.prototype=Object.create(null);Lu.prototype.validate=function(e,t){if(typeof e!="string")throw new Yre;if(Array.isArray(this[e])===!1)throw new Zre(e);if(typeof t!="function")throw new Kre(e,Object.prototype.toString.call(t))};Lu.prototype.add=function(e,t){this.validate(e,t),this[e].push(t)};function Xre(e){let t=new Lu;return t.onRequest=e.onRequest.slice(),t.preParsing=e.preParsing.slice(),t.preValidation=e.preValidation.slice(),t.preSerialization=e.preSerialization.slice(),t.preHandler=e.preHandler.slice(),t.onSend=e.onSend.slice(),t.onResponse=e.onResponse.slice(),t.onError=e.onError.slice(),t.onRoute=e.onRoute.slice(),t.onRegister=e.onRegister.slice(),t.onTimeout=e.onTimeout.slice(),t.onRequestAbort=e.onRequestAbort.slice(),t.onReady=[],t.onListen=[],t.preClose=[],t}function SN(e,t,r,i){let n=r[wN][e],s=0,o=0;l();function a(u){if(u){u.code==="AVV_ERR_READY_TIMEOUT"?u=vN(u,new Jre(e)):u=yN[u.code]!=null?vN(u,new yN[u.code](u.message)):u,i(u);return}i()}function l(u){if(u){a(u);return}if(s===n.length&&o===r[Fu].length){s===0&&o===0?a():t(function(h,d){a(h),d(h)});return}if(s===n.length&&o<r[Fu].length){let f=r[Fu][o++];SN(e,t,f,l);return}t(c(n[s++],r)),l()}function c(u,f){return function(h,d){if(h){d(h);return}if(u.length===1){try{u.call(f,d)}catch(p){d(p)}return}try{let p=u.call(f);if(p&&typeof p.then=="function"){p.then(d,d);return}}catch(p){h=p}d(h)}}}function xN(e){let t=e[wN].onListen,r=t.length,i=0,n=0;s();function s(a){if(a&&e.log.error(a),i===r){for(;n<e[Fu].length;){let l=e[Fu][n++];xN(l)}return}o(t[i++],e,s)}async function o(a,l,c){if(a.length===1){try{a.call(l,c)}catch(u){c(u)}return}try{let u=a.call(l);if(u&&typeof u.then=="function"){u.then(c,c);return}c()}catch(u){c(u)}}}function yl(e){return function(r,i,n,s){let o=0;function a(u){if(u||o===r.length){s(u,i,n);return}let f;try{f=e(r[o++],i,n,a)}catch(h){s(h,i,n);return}f&&typeof f.then=="function"&&f.then(l,c)}function l(){a()}function c(u){u||(u=new cm),s(u,i,n)}a()}}function Qre(e,t,r,i){return e(t,r,i)}var eie=yl(Qre),tie=yl(Du),rie=yl(Du),iie=yl(Du),nie=yl(Du);function EN(e,t,r,i,n){let s=0;function o(c,u){if(c){n(c,t,r,i);return}if(u!==void 0&&(i=u),s===e.length){n(null,t,r,i);return}let f;try{f=e[s++](t,r,i,o)}catch(h){n(h,t,r);return}f&&typeof f.then=="function"&&f.then(a,l)}function a(c){o(null,c)}function l(c){c||(c=new cm),n(c,t,r,i)}o()}var sie=EN;function oie(e,t,r,i){let n=0;function s(l,c){if(r.sent)return;if(c!==void 0&&(t[_N]=c),l||n===e.length){i(l,t,r);return}let u;try{u=e[n++](t,r,t[_N],s)}catch(f){i(f,t,r);return}u&&typeof u.then=="function"&&u.then(o,a)}function o(l){s(null,l)}function a(l){l||(l=new cm),i(l,t,r)}s()}function aie(e,t,r){let i=0;function n(a){if(a||i===e.length){r(a,t);return}let l;try{l=e[i++](t,n)}catch(c){r(c,t);return}l&&typeof l.then=="function"&&l.then(s,o)}function s(){n()}function o(a){a||(a=new cm),r(a,t)}n()}function Du(e,t,r,i){if(r.sent!==!0)return e(t,r,i)}kN.exports={Hooks:Lu,buildHooks:Xre,hookRunnerGenerator:yl,preParsingHookRunner:oie,onResponseHookRunner:eie,onSendHookRunner:EN,preSerializationHookRunner:sie,onRequestAbortHookRunner:aie,hookIterator:Du,hookRunnerApplication:SN,onListenHookRunner:xN,preHandlerHookRunner:rie,preValidationHookRunner:tie,onRequestHookRunner:nie,onTimeoutHookRunner:iie,lifecycleHooks:bN,supportedHooks:Gre}});var FN=b((xje,mb)=>{"use strict";var lie=require("node:http"),cie=require("node:https"),uie=require("node:dns"),{FSTDEP011:RN}=sn(),{kState:ir,kOptions:fie,kServerBindings:hie}=Pt(),{onListenHookRunner:um}=Ns(),{FST_ERR_HTTP2_INVALID_VERSION:die,FST_ERR_REOPENED_CLOSE_SERVER:AN,FST_ERR_REOPENED_SERVER:CN,FST_ERR_LISTEN_OPTIONS_INVALID:pie}=rr();mb.exports.createServer=mie;mb.exports.compileValidateHTTPVersion=yie;function PN(e){return`Server listening at ${e}`}function mie(e,t){let r=NN(e,t);function i(n,...s){let o=s.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)n=pb([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")RN(),n=pb(Array.from(arguments)),o=n.cb;else if(s.length>1){RN();let c=n.path?[n.path]:[n.port??0,n.host??"localhost"];Object.assign(n,pb([...c,...s]))}else n.cb=o;if(n.signal){if(typeof n.signal.on!="function"&&typeof n.signal.addEventListener!="function")throw new pie("Invalid options.signal");if(n.signal.aborted)this.close();else{let c=()=>{this.close()};n.signal.addEventListener("abort",c,{once:!0})}}let l;if(n.path==null?l=n.host??"localhost":l=n.host,(Object.prototype.hasOwnProperty.call(n,"host")===!1||n.host==null)&&(n.host=l),l==="localhost"?n.cb=(c,u)=>{if(c){o(c,u);return}TN.call(this,r,t,e,n,()=>{this[ir].listening=!0,o(null,u),um(this)})}:n.cb=(c,u)=>{if(c){o(c,u);return}this[ir].listening=!0,o(null,u),um(this)},o===void 0)return gie.call(this,r,n).then(u=>new Promise((f,h)=>{l==="localhost"?TN.call(this,r,t,e,n,()=>{this[ir].listening=!0,f(u),um(this)}):(f(u),um(this))}));this.ready(IN.call(this,r,n))}return{server:r,listen:i}}function TN(e,t,r,i,n){this[ir].listening=!1,uie.lookup(i.host,{all:!0},(s,o)=>{if(s){n();return}let a=e.listening&&r.serverFactory,l=0,c=0;if(!a){let f=e.address();for(let h of o)if(h.address!==f.address){l++;let d=Object.assign({},i,{host:h.address,port:f.port,cb:y=>{c++,y||this[hie].push(p),c===l&&n()}}),p=NN(r,t),m=()=>{p.close(()=>{}),r.forceCloseConnections==="idle"?p.closeIdleConnections():typeof p.closeAllConnections=="function"&&r.forceCloseConnections&&p.closeAllConnections()};p.on("upgrade",e.emit.bind(e,"upgrade")),e.on("unref",m),e.on("close",m),e.on("error",m),this[ir].listening=!1,IN.call(this,p,d)()}}if(l===0){n();return}let u=e.unref;e.unref=function(){u.call(e),e.emit("unref")}})}function IN(e,t){let r=i=>{if(e.removeListener("error",r),e.removeListener("listening",r),i)this[ir].listening=!1,t.cb(i,null);else{let n=$N.call(this,e,t.listenTextResolver||PN);t.cb(null,n)}};return i=>{if(i!=null)return t.cb(i);if(this[ir].listening&&this[ir].closing)return t.cb(new AN,null);if(this[ir].listening)return t.cb(new CN,null);e.once("error",r),this[ir].closing||(e.once("listening",r),e.listen(t),this[ir].listening=!0)}}function gie(e,t){return this[ir].listening&&this[ir].closing?Promise.reject(new AN):this[ir].listening?Promise.reject(new CN):this.ready().then(()=>{let r,i;function n(){e.removeListener("error",r),e.removeListener("listening",i)}let s=new Promise((a,l)=>{r=c=>{n(),this[ir].listening=!1,l(c)},e.once("error",r)}),o=new Promise((a,l)=>{i=()=>{n(),this[ir].listening=!0,a($N.call(this,e,t.listenTextResolver||PN))},e.once("listening",i)});return e.listen(t),Promise.race([s,o])})}function yie(e){let t=!1,r=new Map;return e.serverFactory&&(t=!0),e.http2?(r.set("2.0",!0),e.https&&e.https.allowHTTP1===!0&&(r.set("1.1",!0),r.set("1.0",!0))):(r.set("1.1",!0),r.set("1.0",!0)),function(n){return t||r.has(n)}}function NN(e,t){let r=null,i=e.https===!0?{}:e.https;return e.serverFactory?r=e.serverFactory(t,e):e.http2?(typeof i=="object"?r=ON().createSecureServer(i,t):r=ON().createServer(t),r.on("session",_ie(e.http2SessionTimeout))):(i?r=cie.createServer(i,t):r=lie.createServer(e.http,t),r.keepAliveTimeout=e.keepAliveTimeout,r.requestTimeout=e.requestTimeout,e.maxRequestsPerSocket>0&&(r.maxRequestsPerSocket=e.maxRequestsPerSocket)),e.serverFactory||r.setTimeout(e.connectionTimeout),r}function pb(e){if(e.length===0)return{port:0,host:"localhost"};let r={cb:typeof e[e.length-1]=="function"?e.pop():void 0},i=e[0],n=e.length,s=e[n-1];return typeof i=="string"&&isNaN(i)?(r.path=i,r.backlog=n>1?s:void 0):(r.port=n>=1&&Number.isInteger(i)?i:vie(i),r.host=n>=2&&e[1]?e[1]:"localhost",r.backlog=n>=3?e[2]:void 0),r}function vie(e){let t=Number(e);return t>=0&&!Number.isNaN(t)&&Number.isInteger(t)?t:0}function $N(e,t){let r=e.address(),i=typeof r=="string";i||(r.address.indexOf(":")===-1?r=r.address+":"+r.port:r="["+r.address+"]:"+r.port),r=(i?"":"http"+(this[fie].https?"s":"")+"://")+r;let n=t(r);return this.log.info(n),r}function ON(){try{return require("node:http2")}catch{throw new die}}function _ie(e){return function(t){t.setTimeout(e,bie)}}function bie(){this.close()}});var vb=b((Eje,DN)=>{"use strict";var{kSchemaHeaders:dm,kSchemaParams:gb,kSchemaQuerystring:yb,kSchemaBody:Mo,kSchemaResponse:LN}=Pt(),wie=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Sie}=rr(),{FSTWRN001:fm}=sn();function xie(e,t){if(!e.schema||!e.schema.response)return;let{method:r,url:i}=e.config||{};e[LN]=Object.keys(e.schema.response).reduce(function(n,s){let o=e.schema.response[s];if(s=s.toLowerCase(),!wie.exec(s))throw new Sie;if(o.content){let a={};for(let l of Object.keys(o.content)){let c=o.content[l].schema;a[l]=t({schema:c,url:i,method:r,httpStatus:s,contentType:l})}n[s]=a}else n[s]=t({schema:o,url:i,method:r,httpStatus:s});return n},{})}function Eie(e,t,r){let{schema:i}=e;if(!i)return;let{method:n,url:s}=e.config||{},o=i.headers;if(o&&(r||Object.getPrototypeOf(o)!==Object.prototype))e[dm]=t({schema:o,method:n,url:s,httpPart:"headers"});else if(o){let a={};Object.keys(o).forEach(l=>{a[l]=o[l]}),a.required instanceof Array&&(a.required=a.required.map(l=>l.toLowerCase())),o.properties&&(a.properties={},Object.keys(o.properties).forEach(l=>{a.properties[l.toLowerCase()]=o.properties[l]})),e[dm]=t({schema:a,method:n,url:s,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(i,"headers")&&fm("headers",n,s);if(i.body){let a=i.body.content;if(a){let l={};for(let c of Object.keys(a)){let u=a[c].schema;l[c]=t({schema:u,method:n,url:s,httpPart:"body",contentType:c})}e[Mo]=l}else e[Mo]=t({schema:i.body,method:n,url:s,httpPart:"body"})}else Object.prototype.hasOwnProperty.call(i,"body")&&fm("body",n,s);i.querystring?e[yb]=t({schema:i.querystring,method:n,url:s,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(i,"querystring")&&fm("querystring",n,s),i.params?e[gb]=t({schema:i.params,method:n,url:s,httpPart:"params"}):Object.prototype.hasOwnProperty.call(i,"params")&&fm("params",n,s)}function hm(e,t,r){let i=t[r]===void 0,n=e&&e(i?null:t[r]);if(n?.then)return n.then(o=>s(o)).catch(o=>o);return s(n);function s(o){return o===!1?e.errors:o&&o.error?o.error:(o&&o.value&&(t[r]=o.value),!1)}}function pm(e,t,r){let i=r===void 0;if(i||!r.skipParams){let s=hm(e[gb],t,"params");if(s)return typeof s.then!="function"?$s(s,"params",e.schemaErrorFormatter):kie(s,e,t)}if(i||!r.skipBody){let s=null;if(typeof e[Mo]=="function")s=e[Mo];else if(e[Mo]){let a=Aie(t.headers["content-type"]),l=e[Mo][a];l&&(s=l)}let o=hm(s,t,"body");if(o)return typeof o.then!="function"?$s(o,"body",e.schemaErrorFormatter):Rie(o,e,t)}if(i||!r.skipQuery){let s=hm(e[yb],t,"query");if(s)return typeof s.then!="function"?$s(s,"querystring",e.schemaErrorFormatter):Tie(s,e,t)}let n=hm(e[dm],t,"headers");return n?typeof n.then!="function"?$s(n,"headers",e.schemaErrorFormatter):Oie(n,e,t):!1}function kie(e,t,r){return e.then(i=>i?$s(i,"params",t.schemaErrorFormatter):pm(t,r,{skipParams:!0}))}function Rie(e,t,r){return e.then(i=>i?$s(i,"body",t.schemaErrorFormatter):pm(t,r,{skipParams:!0,skipBody:!0}))}function Tie(e,t,r){return e.then(i=>i?$s(i,"querystring",t.schemaErrorFormatter):pm(t,r,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function Oie(e,t,r){return e.then(i=>i?$s(i,"headers",t.schemaErrorFormatter):!1)}function $s(e,t,r){if(e instanceof Error)return e.statusCode=e.statusCode||400,e.code=e.code||"FST_ERR_VALIDATION",e.validationContext=e.validationContext||t,e;let i=r(e,t);return i.statusCode=i.statusCode||400,i.code=i.code||"FST_ERR_VALIDATION",i.validation=e,i.validationContext=t,i}function Aie(e){return e?e.split(/[ ;]/,1)[0].trim().toLowerCase():""}DN.exports={symbols:{bodySchema:Mo,querystringSchema:yb,responseSchema:LN,paramsSchema:gb,headersSchema:dm},compileSchemasForValidation:Eie,compileSchemasForSerialization:xie,validate:pm}});var _b=b((kje,qN)=>{"use strict";var{kReplyIsError:jN,kReplyHijacked:Cie}=Pt();function Pie(e,t){e.then(function(r){if(t[Cie]!==!0&&(r!==void 0||t.sent===!1&&t.raw.headersSent===!1&&t.request.raw.aborted===!1))try{t.send(r)}catch(i){t[jN]=!0,t.send(i)}},function(r){if(t.sent===!0){t.log.error({err:r},"Promise errored, but reply.sent = true was set");return}t[jN]=!0;try{t.send(r)}catch(i){t.send(i)}})}qN.exports=Pie});var xb=b((Rje,Sb)=>{"use strict";var{validate:Iie}=vb(),{preValidationHookRunner:Nie,preHandlerHookRunner:$ie}=Ns(),Fie=_b(),{kReplyIsError:mm,kRouteContext:Ls}=Pt();function Lie(e,t,r){if(r.sent===!0)return;if(e!=null){r[mm]=!0,r.send(e);return}let i=t.raw.method,n=t.headers,s=t[Ls];if(i==="GET"||i==="HEAD"){Fs(t,r);return}let o=n["content-type"];if(i==="POST"||i==="PUT"||i==="PATCH"||i==="TRACE"||i==="SEARCH"||i==="PROPFIND"||i==="PROPPATCH"||i==="LOCK"||i==="COPY"||i==="MOVE"||i==="MKCOL"||i==="REPORT"||i==="MKCALENDAR"){o===void 0?n["transfer-encoding"]===void 0&&(n["content-length"]==="0"||n["content-length"]===void 0)?Fs(t,r):s.contentTypeParser.run("",Fs,t,r):s.contentTypeParser.run(o,Fs,t,r);return}if(i==="OPTIONS"||i==="DELETE"){o!==void 0&&(n["transfer-encoding"]!==void 0||n["content-length"]!==void 0)?s.contentTypeParser.run(o,Fs,t,r):Fs(t,r);return}Fs(t,r)}function Fs(e,t){try{e[Ls].preValidation!==null?Nie(e[Ls].preValidation,e,t,bb):bb(null,e,t)}catch(r){bb(r,e,t)}}function bb(e,t,r){if(r.sent===!0)return;if(e!=null){r[mm]=!0,r.send(e);return}let i=Iie(r[Ls],t);if(i&&typeof i.then=="function"||!1){let s=MN.bind(null,t,r);i.then(s,s)}else MN(t,r,i)}function MN(e,t,r){if(r){if(t[Ls].attachValidation===!1){t.send(r);return}t.request.validationError=r}e[Ls].preHandler!==null?$ie(e[Ls].preHandler,e,t,wb):wb(null,e,t)}function wb(e,t,r){if(r.sent)return;if(e!=null){r[mm]=!0,r.send(e);return}let i;try{i=t[Ls].handler(t,r)}catch(n){r[mm]=!0,r.send(n);return}i!==void 0&&(i!==null&&typeof i.then=="function"?Fie(i,r):r.send(i))}Sb.exports=Lie;Sb.exports[Symbol.for("internals")]={handler:Fs,preHandlerCallback:wb}});var UN=b((Tje,zN)=>{"use strict";function vl(){}var Die={fatal:vl,error:vl,warn:vl,info:vl,debug:vl,trace:vl};Object.defineProperty(zN,"exports",{get(){return Object.create(Die)}})});var kb=b((Oje,VN)=>{"use strict";var ju=e=>e&&typeof e.message=="string",Eb=e=>{if(!e)return;let t=e.cause;if(typeof t=="function"){let r=e.cause();return ju(r)?r:void 0}else return ju(t)?t:void 0},BN=(e,t)=>{if(!ju(e))return"";let r=e.stack||"";if(t.has(e))return r+`
causes have become circular...`;let i=Eb(e);return i?(t.add(e),r+`
caused by: `+BN(i,t)):r},jie=e=>BN(e,new Set),HN=(e,t,r)=>{if(!ju(e))return"";let i=r?"":e.message||"";if(t.has(e))return i+": ...";let n=Eb(e);if(n){t.add(e);let s=typeof e.cause=="function";return i+(s?"":": ")+HN(n,t,s)}else return i},qie=e=>HN(e,new Set);VN.exports={isErrorLike:ju,getErrorCause:Eb,stackWithCauses:jie,messageWithCauses:qie}});var Rb=b((Aje,GN)=>{"use strict";var Mie=Symbol("circular-ref-tag"),gm=Symbol("pino-raw-err-ref"),WN=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[gm]},set:function(e){this[gm]=e}}});Object.defineProperty(WN,gm,{writable:!0,value:{}});GN.exports={pinoErrProto:WN,pinoErrorSymbols:{seen:Mie,rawSymbol:gm}}});var JN=b((Cje,KN)=>{"use strict";KN.exports=Ob;var{messageWithCauses:zie,stackWithCauses:Uie,isErrorLike:YN}=kb(),{pinoErrProto:Bie,pinoErrorSymbols:Hie}=Rb(),{seen:Tb}=Hie,{toString:Vie}=Object.prototype;function Ob(e){if(!YN(e))return e;e[Tb]=void 0;let t=Object.create(Bie);t.type=Vie.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=zie(e),t.stack=Uie(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>Ob(r)));for(let r in e)if(t[r]===void 0){let i=e[r];YN(i)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(i,Tb)&&(t[r]=Ob(i)):t[r]=i}return delete e[Tb],t.raw=e,t}});var XN=b((Pje,ZN)=>{"use strict";ZN.exports=vm;var{isErrorLike:Ab}=kb(),{pinoErrProto:Wie,pinoErrorSymbols:Gie}=Rb(),{seen:ym}=Gie,{toString:Yie}=Object.prototype;function vm(e){if(!Ab(e))return e;e[ym]=void 0;let t=Object.create(Wie);t.type=Yie.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>vm(r))),Ab(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,ym)&&(t.cause=vm(e.cause));for(let r in e)if(t[r]===void 0){let i=e[r];Ab(i)?Object.prototype.hasOwnProperty.call(i,ym)||(t[r]=vm(i)):t[r]=i}return delete e[ym],t.raw=e,t}});var r$=b((Ije,t$)=>{"use strict";t$.exports={mapHttpRequest:Kie,reqSerializer:e$};var Cb=Symbol("pino-raw-req-ref"),QN=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[Cb]},set:function(e){this[Cb]=e}}});Object.defineProperty(QN,Cb,{writable:!0,value:{}});function e$(e){let t=e.info||e.socket,r=Object.create(QN);if(r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl)r.url=e.originalUrl;else{let i=e.path;r.url=typeof i=="string"?i:e.url?e.url.path||e.url:void 0}return e.query&&(r.query=e.query),e.params&&(r.params=e.params),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function Kie(e){return{req:e$(e)}}});var o$=b((Nje,s$)=>{"use strict";s$.exports={mapHttpResponse:Jie,resSerializer:n$};var Pb=Symbol("pino-raw-res-ref"),i$=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[Pb]},set:function(e){this[Pb]=e}}});Object.defineProperty(i$,Pb,{writable:!0,value:{}});function n$(e){let t=Object.create(i$);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function Jie(e){return{res:n$(e)}}});var Nb=b(($je,a$)=>{"use strict";var Ib=JN(),Zie=XN(),_m=r$(),bm=o$();a$.exports={err:Ib,errWithCause:Zie,mapHttpRequest:_m.mapHttpRequest,mapHttpResponse:bm.mapHttpResponse,req:_m.reqSerializer,res:bm.resSerializer,wrapErrorSerializer:function(t){return t===Ib?t:function(i){return t(Ib(i))}},wrapRequestSerializer:function(t){return t===_m.reqSerializer?t:function(i){return t(_m.reqSerializer(i))}},wrapResponseSerializer:function(t){return t===bm.resSerializer?t:function(i){return t(bm.resSerializer(i))}}}});var $b=b((Fje,l$)=>{"use strict";function Xie(e,t){return t}l$.exports=function(){let t=Error.prepareStackTrace;Error.prepareStackTrace=Xie;let r=new Error().stack;if(Error.prepareStackTrace=t,!Array.isArray(r))return;let i=r.slice(2),n=[];for(let s of i)s&&n.push(s.getFileName());return n}});var u$=b((Lje,c$)=>{"use strict";c$.exports=Qie;function Qie(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=i=>`fast-redact \u2013 Invalid path (${i})`}=e;return function({paths:n}){n.forEach(s=>{if(typeof s!="string")throw Error(t());try{if(/〇/.test(s))throw Error();let o=(s[0]==="["?"":".")+s.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(o)||/\/\*/.test(o))throw Error();Function(`
'use strict'
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
const \u3007 = null;
o${o}
if ([o${o}].length !== 1) throw Error()`)()}catch{throw Error(r(s))}})}}});var wm=b((Dje,f$)=>{"use strict";f$.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var d$=b((jje,h$)=>{"use strict";var ene=wm();h$.exports=tne;function tne({paths:e}){let t=[];var r=0;let i=e.reduce(function(n,s,o){var a=s.match(ene).map(u=>u.replace(/'|"|`/g,""));let l=s[0]==="[";a=a.map(u=>u[0]==="["?u.substr(1,u.length-2):u);let c=a.indexOf("*");if(c>-1){let u=a.slice(0,c),f=u.join("."),h=a.slice(c+1,a.length),d=h.length>0;r++,t.push({before:u,beforeStr:f,after:h,nested:d})}else n[s]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(s),leadingBracket:l};return n},{});return{wildcards:t,wcLen:r,secret:i}}});var m$=b((qje,p$)=>{"use strict";var rne=wm();p$.exports=ine;function ine({secret:e,serialize:t,wcLen:r,strict:i,isCensorFct:n,censorFctTakesPath:s},o){let a=Function("o",`
if (typeof o !== 'object' || o == null) {
${ane(i,t)}
}
const { censor, secret } = this
const originalSecret = {}
const secretKeys = Object.keys(secret)
for (var i = 0; i < secretKeys.length; i++) {
originalSecret[secretKeys[i]] = secret[secretKeys[i]]
}
${nne(e,n,s)}
this.compileRestore()
${sne(r>0,n,s)}
this.secret = originalSecret
${one(t)}
`).bind(o);return a.state=o,t===!1&&(a.restore=l=>o.restore(l)),a}function nne(e,t,r){return Object.keys(e).map(i=>{let{escPath:n,leadingBracket:s,path:o}=e[i],a=s?1:0,l=s?"":".",c=[];for(var u;(u=rne.exec(i))!==null;){let[,p]=u,{index:m,input:y}=u;m>a&&c.push(y.substring(0,m-(p?0:1)))}var f=c.map(p=>`o${l}${p}`).join(" && ");f.length===0?f+=`o${l}${i} != null`:f+=` && o${l}${i} != null`;let h=`
switch (true) {
${c.reverse().map(p=>`
case o${l}${p} === censor:
secret[${n}].circle = ${JSON.stringify(p)}
break
`).join(`
`)}
}
`,d=r?`val, ${JSON.stringify(o)}`:"val";return`
if (${f}) {
const val = o${l}${i}
if (val === censor) {
secret[${n}].precensored = true
} else {
secret[${n}].val = val
o${l}${i} = ${t?`censor(${d})`:"censor"}
${h}
}
}
`}).join(`
`)}function sne(e,t,r){return e===!0?`
{
const { wildcards, wcLen, groupRedact, nestedRedact } = this
for (var i = 0; i < wcLen; i++) {
const { before, beforeStr, after, nested } = wildcards[i]
if (nested === true) {
secret[beforeStr] = secret[beforeStr] || []
nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r})
} else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r})
}
}
`:""}function one(e){return e===!1?"return o":`
var s = this.serialize(o)
this.restore(o)
return s
`}function ane(e,t){return e===!0?"throw Error('fast-redact: primitives cannot be redacted')":t===!1?"return o":"return this.serialize(o)"}});var Lb=b((Mje,v$)=>{"use strict";v$.exports={groupRedact:cne,groupRestore:lne,nestedRedact:fne,nestedRestore:une};function lne({keys:e,values:t,target:r}){if(r==null||typeof r=="string")return;let i=e.length;for(var n=0;n<i;n++){let s=e[n];r[s]=t[n]}}function cne(e,t,r,i,n){let s=g$(e,t);if(s==null||typeof s=="string")return{keys:null,values:null,target:s,flat:!0};let o=Object.keys(s),a=o.length,l=t.length,c=n?[...t]:void 0,u=new Array(a);for(var f=0;f<a;f++){let h=o[f];u[f]=s[h],n?(c[l]=h,s[h]=r(s[h],c)):i?s[h]=r(s[h]):s[h]=r}return{keys:o,values:u,target:s,flat:!0}}function une(e){for(let t=0;t<e.length;t++){let{target:r,path:i,value:n}=e[t],s=r;for(let o=i.length-1;o>0;o--)s=s[i[o]];s[i[0]]=n}}function fne(e,t,r,i,n,s,o){let a=g$(t,r);if(a==null)return;let l=Object.keys(a),c=l.length;for(var u=0;u<c;u++){let f=l[u];hne(e,a,f,r,i,n,s,o)}return e}function Fb(e,t){return e!=null?"hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t):!1}function hne(e,t,r,i,n,s,o,a){let l=n.length,c=l-1,u=r;var f=-1,h,d,p,m=null,y=null,_,w,v=!1,g=0,T=0,N=dne();if(p=h=t[r],typeof h=="object"){for(;h!=null&&++f<l&&(T+=1,r=n[f],m=p,!(r!=="*"&&!y&&!(typeof h=="object"&&r in h)));)if(!(r==="*"&&(y==="*"&&(v=!0),y=r,f!==c))){if(y){let A=Object.keys(h);for(var R=0;R<A.length;R++){let C=A[R];if(w=h[C],_=r==="*",v)N=Hn(N,C,T),g=f,p=y$(w,g-1,r,i,n,s,o,a,u,h,d,p,_,C,f,c,N,e,t[u],T+1);else if(_||typeof w=="object"&&w!==null&&r in w){if(_?p=w:p=w[r],d=f!==c?p:o?a?s(p,[...i,u,...n]):s(p):s,_){let k=qu(Hn(N,C,T),p,t[u]);e.push(k),h[C]=d}else if(w[r]!==d)if(d===void 0&&s!==void 0||Fb(w,r)&&d===p)N=Hn(N,C,T);else{N=Hn(N,C,T);let k=qu(Hn(N,r,T+1),p,t[u]);e.push(k),w[r]=d}}}y=null}else{if(p=h[r],N=Hn(N,r,T),d=f!==c?p:o?a?s(p,[...i,u,...n]):s(p):s,!(Fb(h,r)&&d===p||d===void 0&&s!==void 0)){let A=qu(N,p,t[u]);e.push(A),h[r]=d}h=h[r]}if(typeof h!="object")break}}}function g$(e,t){for(var r=-1,i=t.length,n=e;n!=null&&++r<i;)n=n[t[r]];return n}function y$(e,t,r,i,n,s,o,a,l,c,u,f,h,d,p,m,y,_,w,v){if(t===0&&(h||typeof e=="object"&&e!==null&&r in e)){if(h?f=e:f=e[r],u=p!==m?f:o?a?s(f,[...i,l,...n]):s(f):s,h){let g=qu(y,f,w);_.push(g),c[d]=u}else if(e[r]!==u){if(!(u===void 0&&s!==void 0||Fb(e,r)&&u===f)){let g=qu(Hn(y,r,v+1),f,w);_.push(g),e[r]=u}}}for(let g in e)typeof e[g]=="object"&&(y=Hn(y,g,v),y$(e[g],t-1,r,i,n,s,o,a,l,c,u,f,h,d,p,m,y,_,w,v+1))}function dne(){return{parent:null,key:null,children:[],depth:0}}function Hn(e,t,r){if(e.depth===r)return Hn(e.parent,t,r);var i={parent:e,key:t,depth:r,children:[]};return e.children.push(i),i}function qu(e,t,r){let i=e,n=[];do n.push(i.key),i=i.parent;while(i.parent!=null);return{path:n,value:t,target:r}}});var b$=b((zje,_$)=>{"use strict";var{groupRestore:pne,nestedRestore:mne}=Lb();_$.exports=gne;function gne(){return function(){if(this.restore){this.restore.state.secret=this.secret;return}let{secret:t,wcLen:r}=this,i=Object.keys(t),n=yne(t,i),s=r>0,o=s?{secret:t,groupRestore:pne,nestedRestore:mne}:{secret:t};this.restore=Function("o",vne(n,i,s)).bind(o),this.restore.state=o}}function yne(e,t){return t.map(r=>{let{circle:i,escPath:n,leadingBracket:s}=e[r],a=i?`o.${i} = secret[${n}].val`:`o${s?"":"."}${r} = secret[${n}].val`,l=`secret[${n}].val = undefined`;return`
if (secret[${n}].val !== undefined) {
try { ${a} } catch (e) {}
${l}
}
`}).join("")}function vne(e,t,r){return`
const secret = this.secret
${r===!0?`
const keys = Object.keys(secret)
const len = keys.length
for (var i = len - 1; i >= ${t.length}; i--) {
const k = keys[i]
const o = secret[k]
if (o) {
if (o.flat === true) this.groupRestore(o)
else this.nestedRestore(o)
secret[k] = null
}
}
`:""}
${e}
return o
`}});var S$=b((Uje,w$)=>{"use strict";w$.exports=_ne;function _ne(e){let{secret:t,censor:r,compileRestore:i,serialize:n,groupRedact:s,nestedRedact:o,wildcards:a,wcLen:l}=e,c=[{secret:t,censor:r,compileRestore:i}];return n!==!1&&c.push({serialize:n}),l>0&&c.push({groupRedact:s,nestedRedact:o,wildcards:a,wcLen:l}),Object.assign(...c)}});var k$=b((Bje,E$)=>{"use strict";var x$=u$(),bne=d$(),wne=m$(),Sne=b$(),{groupRedact:xne,nestedRedact:Ene}=Lb(),kne=S$(),Rne=wm(),Tne=x$(),Db=e=>e;Db.restore=Db;var One="[REDACTED]";jb.rx=Rne;jb.validator=x$;E$.exports=jb;function jb(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e&&(e.serialize===!1||typeof e.serialize=="function")?e.serialize:JSON.stringify,i=e.remove;if(i===!0&&r!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let n=i===!0?void 0:"censor"in e?e.censor:One,s=typeof n=="function",o=s&&n.length>1;if(t.length===0)return r||Db;Tne({paths:t,serialize:r,censor:n});let{wildcards:a,wcLen:l,secret:c}=bne({paths:t,censor:n}),u=Sne(),f="strict"in e?e.strict:!0;return wne({secret:c,wcLen:l,serialize:r,strict:f,isCensorFct:s,censorFctTakesPath:o},kne({secret:c,censor:n,compileRestore:u,serialize:r,groupRedact:xne,nestedRedact:Ene,wildcards:a,wcLen:l}))}});var _l=b((Hje,R$)=>{"use strict";var Ane=Symbol("pino.setLevel"),Cne=Symbol("pino.getLevel"),Pne=Symbol("pino.levelVal"),Ine=Symbol("pino.levelComp"),Nne=Symbol("pino.useLevelLabels"),$ne=Symbol("pino.useOnlyCustomLevels"),Fne=Symbol("pino.mixin"),Lne=Symbol("pino.lsCache"),Dne=Symbol("pino.chindings"),jne=Symbol("pino.asJson"),qne=Symbol("pino.write"),Mne=Symbol("pino.redactFmt"),zne=Symbol("pino.time"),Une=Symbol("pino.timeSliceIndex"),Bne=Symbol("pino.stream"),Hne=Symbol("pino.stringify"),Vne=Symbol("pino.stringifySafe"),Wne=Symbol("pino.stringifiers"),Gne=Symbol("pino.end"),Yne=Symbol("pino.formatOpts"),Kne=Symbol("pino.messageKey"),Jne=Symbol("pino.errorKey"),Zne=Symbol("pino.nestedKey"),Xne=Symbol("pino.nestedKeyStr"),Qne=Symbol("pino.mixinMergeStrategy"),ese=Symbol("pino.msgPrefix"),tse=Symbol("pino.wildcardFirst"),rse=Symbol.for("pino.serializers"),ise=Symbol.for("pino.formatters"),nse=Symbol.for("pino.hooks"),sse=Symbol.for("pino.metadata");R$.exports={setLevelSym:Ane,getLevelSym:Cne,levelValSym:Pne,levelCompSym:Ine,useLevelLabelsSym:Nne,mixinSym:Fne,lsCacheSym:Lne,chindingsSym:Dne,asJsonSym:jne,writeSym:qne,serializersSym:rse,redactFmtSym:Mne,timeSym:zne,timeSliceIndexSym:Une,streamSym:Bne,stringifySym:Hne,stringifySafeSym:Vne,stringifiersSym:Wne,endSym:Gne,formatOptsSym:Yne,messageKeySym:Kne,errorKeySym:Jne,nestedKeySym:Zne,wildcardFirstSym:tse,needsMetadataGsym:sse,useOnlyCustomLevelsSym:$ne,formattersSym:ise,hooksSym:nse,nestedKeyStrSym:Xne,mixinMergeStrategySym:Qne,msgPrefixSym:ese}});var zb=b((Vje,C$)=>{"use strict";var Mb=k$(),{redactFmtSym:ose,wildcardFirstSym:Sm}=_l(),{rx:qb,validator:ase}=Mb,T$=ase({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:e=>`pino \u2013 redact paths array contains an invalid path (${e})`}),O$="[Redacted]",A$=!1;function lse(e,t){let{paths:r,censor:i}=cse(e),n=r.reduce((a,l)=>{qb.lastIndex=0;let c=qb.exec(l),u=qb.exec(l),f=c[1]!==void 0?c[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):c[0];if(f==="*"&&(f=Sm),u===null)return a[f]=null,a;if(a[f]===null)return a;let{index:h}=u,d=`${l.substr(h,l.length-1)}`;return a[f]=a[f]||[],f!==Sm&&a[f].length===0&&a[f].push(...a[Sm]||[]),f===Sm&&Object.keys(a).forEach(function(p){a[p]&&a[p].push(d)}),a[f].push(d),a},{}),s={[ose]:Mb({paths:r,censor:i,serialize:t,strict:A$})},o=(...a)=>t(typeof i=="function"?i(...a):i);return[...Object.keys(n),...Object.getOwnPropertySymbols(n)].reduce((a,l)=>{if(n[l]===null)a[l]=c=>o(c,[l]);else{let c=typeof i=="function"?(u,f)=>i(u,[l,...f]):i;a[l]=Mb({paths:n[l],censor:c,serialize:t,strict:A$})}return a},s)}function cse(e){if(Array.isArray(e))return e={paths:e,censor:O$},T$(e),e;let{paths:t,censor:r=O$,remove:i}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return i===!0&&(r=void 0),T$({paths:t,censor:r}),{paths:t,censor:r}}C$.exports=lse});var I$=b((Wje,P$)=>{"use strict";var use=()=>"",fse=()=>`,"time":${Date.now()}`,hse=()=>`,"time":${Math.round(Date.now()/1e3)}`,dse=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;P$.exports={nullTime:use,epochTime:fse,unixTime:hse,isoTime:dse}});var $$=b((Gje,N$)=>{"use strict";function pse(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}N$.exports=mse;function mse(e,t,r){var i=r&&r.stringify||pse,n=1;if(typeof e=="object"&&e!==null){var s=t.length+n;if(s===1)return e;var o=new Array(s);o[0]=i(e);for(var a=1;a<s;a++)o[a]=i(t[a]);return o.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var c="",u=1-n,f=-1,h=e&&e.length||0,d=0;d<h;){if(e.charCodeAt(d)===37&&d+1<h){switch(f=f>-1?f:0,e.charCodeAt(d+1)){case 100:case 102:if(u>=l||t[u]==null)break;f<d&&(c+=e.slice(f,d)),c+=Number(t[u]),f=d+2,d++;break;case 105:if(u>=l||t[u]==null)break;f<d&&(c+=e.slice(f,d)),c+=Math.floor(Number(t[u])),f=d+2,d++;break;case 79:case 111:case 106:if(u>=l||t[u]===void 0)break;f<d&&(c+=e.slice(f,d));var p=typeof t[u];if(p==="string"){c+="'"+t[u]+"'",f=d+2,d++;break}if(p==="function"){c+=t[u].name||"<anonymous>",f=d+2,d++;break}c+=i(t[u]),f=d+2,d++;break;case 115:if(u>=l)break;f<d&&(c+=e.slice(f,d)),c+=String(t[u]),f=d+2,d++;break;case 37:f<d&&(c+=e.slice(f,d)),c+="%",f=d+2,d++,u--;break}++u}++d}return f===-1?e:(f<h&&(c+=e.slice(f)),c)}});var Bb=b((Yje,Ub)=>{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(e,0,0,Number(r))},e=new Int32Array(new SharedArrayBuffer(4));Ub.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let i=Date.now()+Number(t);for(;i>Date.now(););};Ub.exports=e}});var U$=b((Kje,z$)=>{"use strict";var ct=require("fs"),gse=require("events"),yse=require("util").inherits,F$=require("path"),Vb=Bb(),vse=require("assert"),xm=100,Em=Buffer.allocUnsafe(0),_se=16*1024,L$="buffer",D$="utf8",[bse,wse]=(process.versions.node||"0.0").split(".").map(Number),Sse=bse>=22&&wse>=7;function j$(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(s,o){if(s){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",s)}):t.emit("error",s);return}let a=t._reopening;t.fd=o,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():a&&process.nextTick(()=>t.emit("drain")))}let i=t.append?"a":"w",n=t.mode;if(t.sync)try{t.mkdir&&ct.mkdirSync(F$.dirname(e),{recursive:!0});let s=ct.openSync(e,i,n);r(null,s)}catch(s){throw r(s),s}else t.mkdir?ct.mkdir(F$.dirname(e),{recursive:!0},s=>{if(s)return r(s);ct.open(e,i,n,r)}):ct.open(e,i,n,r)}function Ci(e){if(!(this instanceof Ci))return new Ci(e);let{fd:t,dest:r,minLength:i,maxLength:n,maxWrite:s,periodicFlush:o,sync:a,append:l=!0,mkdir:c,retryEAGAIN:u,fsync:f,contentMode:h,mode:d}=e||{};t=t||r,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(i||0,16387),this.file=null,this.destroyed=!1,this.minLength=i||0,this.maxLength=n||0,this.maxWrite=s||_se,this._periodicFlush=o||0,this._periodicFlushTimer=void 0,this.sync=a||!1,this.writable=!0,this._fsync=f||!1,this.append=l||!1,this.mode=d,this.retryEAGAIN=u||(()=>!0),this.mkdir=c||!1;let p,m;if(h===L$)this._writingBuf=Em,this.write=kse,this.flush=Tse,this.flushSync=Ase,this._actualWrite=Pse,p=()=>ct.writeSync(this.fd,this._writingBuf),m=()=>ct.write(this.fd,this._writingBuf,this.release);else if(h===void 0||h===D$)this._writingBuf="",this.write=Ese,this.flush=Rse,this.flushSync=Ose,this._actualWrite=Cse,p=()=>ct.writeSync(this.fd,this._writingBuf,"utf8"),m=()=>ct.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${D$}" and "${L$}", but passed ${h}`);if(typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")j$(t,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(y,_)=>{if(y){if((y.code==="EAGAIN"||y.code==="EBUSY")&&this.retryEAGAIN(y,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{Vb(xm),this.release(void 0,0)}catch(g){this.release(g)}else setTimeout(m,xm);else this._writing=!1,this.emit("error",y);return}this.emit("write",_);let w=Hb(this._writingBuf,this._len,_);if(this._len=w.len,this._writingBuf=w.writingBuf,this._writingBuf.length){if(!this.sync){m();return}try{do{let g=p(),T=Hb(this._writingBuf,this._len,g);this._len=T.len,this._writingBuf=T.writingBuf}while(this._writingBuf.length)}catch(g){this.release(g);return}}this._fsync&&ct.fsyncSync(this.fd);let v=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):v>this.minLength?this._actualWrite():this._ending?v>0?this._actualWrite():(this._writing=!1,km(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(xse,this)):this.emit("drain"))},this.on("newListener",function(y){y==="drain"&&(this._asyncDrainScheduled=!1)}),this._periodicFlush!==0&&(this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref())}function Hb(e,t,r){return typeof e=="string"&&Buffer.byteLength(e)!==r&&(r=Buffer.from(e).subarray(0,r).toString().length),t=Math.max(t-r,0),e=e.slice(r),{writingBuf:e,len:t}}function xse(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}yse(Ci,gse);function q$(e,t){return e.length===0?Em:e.length===1?e[0]:Buffer.concat(e,t)}function Ese(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||r[r.length-1].length+e.length>this.maxWrite?r.push(""+e):r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function kse(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs,i=this._lens;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||i[i.length-1]+e.length>this.maxWrite?(r.push([e]),i.push(e.length)):(r[r.length-1].push(e),i[i.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function M$(e){this._flushPending=!0;let t=()=>{if(this._fsync)this._flushPending=!1,e();else try{ct.fsync(this.fd,i=>{this._flushPending=!1,e(i)})}catch(i){e(i)}this.off("error",r)},r=i=>{this._flushPending=!1,e(i),this.off("drain",t)};this.once("drain",t),this.once("error",r)}function Rse(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&M$.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function Tse(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&M$.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}Ci.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&ct.close(t,r=>{if(r)return this.emit("error",r)})}),j$(this.file,this)};Ci.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():km(this)))};function Ose(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let e="";for(;this._bufs.length||e;){e.length<=0&&(e=this._bufs[0]);try{let t=ct.writeSync(this.fd,e,"utf8"),r=Hb(e,this._len,t);e=r.writingBuf,this._len=r.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;Vb(xm)}}try{ct.fsyncSync(this.fd)}catch{}}function Ase(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=Em);let e=Em;for(;this._bufs.length||e.length;){e.length<=0&&(e=q$(this._bufs[0],this._lens[0]));try{let t=ct.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;Vb(xm)}}}Ci.prototype.destroy=function(){this.destroyed||km(this)};function Cse(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let t=ct.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}else ct.write(this.fd,this._writingBuf,"utf8",e)}function Pse(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:q$(this._bufs.shift(),this._lens.shift()),this.sync)try{let t=ct.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}else Sse&&(this._writingBuf=Buffer.from(this._writingBuf)),ct.write(this.fd,this._writingBuf,e)}function km(e){if(e.fd===-1){e.once("ready",km.bind(null,e));return}e._periodicFlushTimer!==void 0&&clearInterval(e._periodicFlushTimer),e.destroyed=!0,e._bufs=[],e._lens=[],vse(typeof e.fd=="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{ct.fsync(e.fd,t)}catch{}function t(){e.fd!==1&&e.fd!==2?ct.close(e.fd,r):r()}function r(i){if(i){e.emit("error",i);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}}Ci.SonicBoom=Ci;Ci.default=Ci;z$.exports=Ci});var Wb=b((Jje,G$)=>{"use strict";var Pi={exit:[],beforeExit:[]},B$={exit:$se,beforeExit:Fse},bl;function Ise(){bl===void 0&&(bl=new FinalizationRegistry(Lse))}function Nse(e){Pi[e].length>0||process.on(e,B$[e])}function H$(e){Pi[e].length>0||(process.removeListener(e,B$[e]),Pi.exit.length===0&&Pi.beforeExit.length===0&&(bl=void 0))}function $se(){V$("exit")}function Fse(){V$("beforeExit")}function V$(e){for(let t of Pi[e]){let r=t.deref(),i=t.fn;r!==void 0&&i(r,e)}Pi[e]=[]}function Lse(e){for(let t of["exit","beforeExit"]){let r=Pi[t].indexOf(e);Pi[t].splice(r,r+1),H$(t)}}function W$(e,t,r){if(t===void 0)throw new Error("the object can't be undefined");Nse(e);let i=new WeakRef(t);i.fn=r,Ise(),bl.register(t,i),Pi[e].push(i)}function Dse(e,t){W$("exit",e,t)}function jse(e,t){W$("beforeExit",e,t)}function qse(e){if(bl!==void 0){bl.unregister(e);for(let t of["exit","beforeExit"])Pi[t]=Pi[t].filter(r=>{let i=r.deref();return i&&i!==e}),H$(t)}}G$.exports={register:Dse,registerBeforeExit:jse,unregister:qse}});var Y$=b((Zje,Mse)=>{Mse.exports={name:"thread-stream",version:"3.1.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{build:"tsc --noEmit",test:'standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',"test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*","test/syntax-error.mjs"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var J$=b((Xje,K$)=>{"use strict";function zse(e,t,r,i,n){let s=Date.now()+i,o=Atomics.load(e,t);if(o===r){n(null,"ok");return}let a=o,l=c=>{Date.now()>s?n(null,"timed-out"):setTimeout(()=>{a=o,o=Atomics.load(e,t),o===a?l(c>=1e3?1e3:c*2):o===r?n(null,"ok"):n(null,"not-equal")},c)};l(1)}function Use(e,t,r,i,n){let s=Date.now()+i,o=Atomics.load(e,t);if(o!==r){n(null,"ok");return}let a=l=>{Date.now()>s?n(null,"timed-out"):setTimeout(()=>{o=Atomics.load(e,t),o!==r?n(null,"ok"):a(l>=1e3?1e3:l*2)},l)};a(1)}K$.exports={wait:zse,waitDiff:Use}});var X$=b((Qje,Z$)=>{"use strict";Z$.exports={WRITE_INDEX:4,READ_INDEX:8}});var iF=b((eqe,rF)=>{"use strict";var{version:Bse}=Y$(),{EventEmitter:Hse}=require("events"),{Worker:Vse}=require("worker_threads"),{join:Wse}=require("path"),{pathToFileURL:Gse}=require("url"),{wait:Yse}=J$(),{WRITE_INDEX:Lr,READ_INDEX:on}=X$(),Kse=require("buffer"),Jse=require("assert"),B=Symbol("kImpl"),Zse=Kse.constants.MAX_STRING_LENGTH,Mu=class{constructor(t){this._value=t}deref(){return this._value}},Tm=class{register(){}unregister(){}},Xse=process.env.NODE_V8_COVERAGE?Tm:global.FinalizationRegistry||Tm,Qse=process.env.NODE_V8_COVERAGE?Mu:global.WeakRef||Mu,Q$=new Xse(e=>{e.exited||e.terminate()});function eoe(e,t){let{filename:r,workerData:i}=t,s=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||Wse(__dirname,"lib","worker.js"),o=new Vse(s,{...t.workerOpts,trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:Gse(r).href,dataBuf:e[B].dataBuf,stateBuf:e[B].stateBuf,workerData:{$context:{threadStreamVersion:Bse},...i}}});return o.stream=new Mu(e),o.on("message",toe),o.on("exit",tF),Q$.register(e,o),o}function eF(e){Jse(!e[B].sync),e[B].needDrain&&(e[B].needDrain=!1,e.emit("drain"))}function Rm(e){let t=Atomics.load(e[B].state,Lr),r=e[B].data.length-t;if(r>0){if(e[B].buf.length===0){e[B].flushing=!1,e[B].ending?Zb(e):e[B].needDrain&&process.nextTick(eF,e);return}let i=e[B].buf.slice(0,r),n=Buffer.byteLength(i);n<=r?(e[B].buf=e[B].buf.slice(r),Om(e,i,Rm.bind(null,e))):e.flush(()=>{if(!e.destroyed){for(Atomics.store(e[B].state,on,0),Atomics.store(e[B].state,Lr,0);n>e[B].data.length;)r=r/2,i=e[B].buf.slice(0,r),n=Buffer.byteLength(i);e[B].buf=e[B].buf.slice(r),Om(e,i,Rm.bind(null,e))}})}else if(r===0){if(t===0&&e[B].buf.length===0)return;e.flush(()=>{Atomics.store(e[B].state,on,0),Atomics.store(e[B].state,Lr,0),Rm(e)})}else an(e,new Error("overwritten"))}function toe(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}switch(e.code){case"READY":this.stream=new Qse(t),t.flush(()=>{t[B].ready=!0,t.emit("ready")});break;case"ERROR":an(t,e.err);break;case"EVENT":Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case"WARNING":process.emitWarning(e.err);break;default:an(t,new Error("this should not happen: "+e.code))}}function tF(e){let t=this.stream.deref();t!==void 0&&(Q$.unregister(t),t.worker.exited=!0,t.worker.off("exit",tF),an(t,e!==0?new Error("the worker thread exited"):null))}var Yb=class extends Hse{constructor(t={}){if(super(),t.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[B]={},this[B].stateBuf=new SharedArrayBuffer(128),this[B].state=new Int32Array(this[B].stateBuf),this[B].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024),this[B].data=Buffer.from(this[B].dataBuf),this[B].sync=t.sync||!1,this[B].ending=!1,this[B].ended=!1,this[B].needDrain=!1,this[B].destroyed=!1,this[B].flushing=!1,this[B].ready=!1,this[B].finished=!1,this[B].errored=null,this[B].closed=!1,this[B].buf="",this.worker=eoe(this,t),this.on("message",(r,i)=>{this.worker.postMessage(r,i)})}write(t){if(this[B].destroyed)return Kb(this,new Error("the worker has exited")),!1;if(this[B].ending)return Kb(this,new Error("the worker is ending")),!1;if(this[B].flushing&&this[B].buf.length+t.length>=Zse)try{Gb(this),this[B].flushing=!0}catch(r){return an(this,r),!1}if(this[B].buf+=t,this[B].sync)try{return Gb(this),!0}catch(r){return an(this,r),!1}return this[B].flushing||(this[B].flushing=!0,setImmediate(Rm,this)),this[B].needDrain=this[B].data.length-this[B].buf.length-Atomics.load(this[B].state,Lr)<=0,!this[B].needDrain}end(){this[B].destroyed||(this[B].ending=!0,Zb(this))}flush(t){if(this[B].destroyed){typeof t=="function"&&process.nextTick(t,new Error("the worker has exited"));return}let r=Atomics.load(this[B].state,Lr);Yse(this[B].state,on,r,1/0,(i,n)=>{if(i){an(this,i),process.nextTick(t,i);return}if(n==="not-equal"){this.flush(t);return}process.nextTick(t)})}flushSync(){this[B].destroyed||(Gb(this),Jb(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[B].ready}get destroyed(){return this[B].destroyed}get closed(){return this[B].closed}get writable(){return!this[B].destroyed&&!this[B].ending}get writableEnded(){return this[B].ending}get writableFinished(){return this[B].finished}get writableNeedDrain(){return this[B].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[B].errored}};function Kb(e,t){setImmediate(()=>{e.emit("error",t)})}function an(e,t){e[B].destroyed||(e[B].destroyed=!0,t&&(e[B].errored=t,Kb(e,t)),e.worker.exited?setImmediate(()=>{e[B].closed=!0,e.emit("close")}):e.worker.terminate().catch(()=>{}).then(()=>{e[B].closed=!0,e.emit("close")}))}function Om(e,t,r){let i=Atomics.load(e[B].state,Lr),n=Buffer.byteLength(t);return e[B].data.write(t,i),Atomics.store(e[B].state,Lr,i+n),Atomics.notify(e[B].state,Lr),r(),!0}function Zb(e){if(!(e[B].ended||!e[B].ending||e[B].flushing)){e[B].ended=!0;try{e.flushSync();let t=Atomics.load(e[B].state,on);Atomics.store(e[B].state,Lr,-1),Atomics.notify(e[B].state,Lr);let r=0;for(;t!==-1;){if(Atomics.wait(e[B].state,on,t,1e3),t=Atomics.load(e[B].state,on),t===-2){an(e,new Error("end() failed"));return}if(++r===10){an(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[B].finished=!0,e.emit("finish")})}catch(t){an(e,t)}}}function Gb(e){let t=()=>{e[B].ending?Zb(e):e[B].needDrain&&process.nextTick(eF,e)};for(e[B].flushing=!1;e[B].buf.length!==0;){let r=Atomics.load(e[B].state,Lr),i=e[B].data.length-r;if(i===0){Jb(e),Atomics.store(e[B].state,on,0),Atomics.store(e[B].state,Lr,0);continue}else if(i<0)throw new Error("overwritten");let n=e[B].buf.slice(0,i),s=Buffer.byteLength(n);if(s<=i)e[B].buf=e[B].buf.slice(i),Om(e,n,t);else{for(Jb(e),Atomics.store(e[B].state,on,0),Atomics.store(e[B].state,Lr,0);s>e[B].buf.length;)i=i/2,n=e[B].buf.slice(0,i),s=Buffer.byteLength(n);e[B].buf=e[B].buf.slice(i),Om(e,n,t)}}}function Jb(e){if(e[B].flushing)throw new Error("unable to flush while flushing");let t=Atomics.load(e[B].state,Lr),r=0;for(;;){let i=Atomics.load(e[B].state,on);if(i===-2)throw Error("_flushSync failed");if(i!==t)Atomics.wait(e[B].state,on,i,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}rF.exports=Yb});var ew=b((tqe,nF)=>{"use strict";var{createRequire:roe}=require("module"),ioe=$b(),{join:Xb,isAbsolute:noe,sep:soe}=require("node:path"),ooe=Bb(),Qb=Wb(),aoe=iF();function loe(e){Qb.register(e,uoe),Qb.registerBeforeExit(e,foe),e.on("close",function(){Qb.unregister(e)})}function coe(e,t,r,i){let n=new aoe({filename:e,workerData:t,workerOpts:r,sync:i});n.on("ready",s),n.on("close",function(){process.removeListener("exit",o)}),process.on("exit",o);function s(){process.removeListener("exit",o),n.unref(),r.autoEnd!==!1&&loe(n)}function o(){n.closed||(n.flushSync(),ooe(100),n.end())}return n}function uoe(e){e.ref(),e.flushSync(),e.end(),e.once("close",function(){e.unref()})}function foe(e){e.flushSync()}function hoe(e){let{pipeline:t,targets:r,levels:i,dedupe:n,worker:s={},caller:o=ioe(),sync:a=!1}=e,l={...e.options},c=typeof o=="string"?[o]:o,u="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},f=e.target;if(f&&r)throw new Error("only one of target or targets can be specified");return r?(f=u["pino-worker"]||Xb(__dirname,"worker.js"),l.targets=r.filter(d=>d.target).map(d=>({...d,target:h(d.target)})),l.pipelines=r.filter(d=>d.pipeline).map(d=>d.pipeline.map(p=>({...p,level:d.level,target:h(p.target)})))):t&&(f=u["pino-worker"]||Xb(__dirname,"worker.js"),l.pipelines=[t.map(d=>({...d,target:h(d.target)}))]),i&&(l.levels=i),n&&(l.dedupe=n),l.pinoWillSendConfig=!0,coe(h(f),l,s,a);function h(d){if(d=u[d]||d,noe(d)||d.indexOf("file://")===0)return d;if(d==="pino/file")return Xb(__dirname,"..","file.js");let p;for(let m of c)try{let y=m==="node:repl"?process.cwd()+soe:m;p=roe(y).resolve(d);break}catch{continue}if(!p)throw new Error(`unable to determine transport target for "${d}"`);return p}}nF.exports=hoe});var Pm=b((rqe,mF)=>{"use strict";var sF=$$(),{mapHttpRequest:doe,mapHttpResponse:poe}=Nb(),rw=U$(),oF=Wb(),{lsCacheSym:moe,chindingsSym:cF,writeSym:aF,serializersSym:uF,formatOptsSym:lF,endSym:goe,stringifiersSym:fF,stringifySym:hF,stringifySafeSym:iw,wildcardFirstSym:dF,nestedKeySym:yoe,formattersSym:pF,messageKeySym:voe,errorKeySym:_oe,nestedKeyStrSym:boe,msgPrefixSym:Am}=_l(),{isMainThread:woe}=require("worker_threads"),Soe=ew();function wl(){}function xoe(e,t){if(!t)return r;return function(...n){t.call(this,n,r,e)};function r(i,...n){if(typeof i=="object"){let s=i;i!==null&&(i.method&&i.headers&&i.socket?i=doe(i):typeof i.setHeader=="function"&&(i=poe(i)));let o;s===null&&n.length===0?o=[null]:(s=n.shift(),o=n),typeof this[Am]=="string"&&s!==void 0&&s!==null&&(s=this[Am]+s),this[aF](i,sF(s,o,this[lF]),e)}else{let s=i===void 0?n.shift():i;typeof this[Am]=="string"&&s!==void 0&&s!==null&&(s=this[Am]+s),this[aF](null,sF(s,n,this[lF]),e)}}}function tw(e){let t="",r=0,i=!1,n=255,s=e.length;if(s>100)return JSON.stringify(e);for(var o=0;o<s&&n>=32;o++)n=e.charCodeAt(o),(n===34||n===92)&&(t+=e.slice(r,o)+"\\",r=o,i=!0);return i?t+=e.slice(r):t=e,n<32?JSON.stringify(e):'"'+t+'"'}function Eoe(e,t,r,i){let n=this[hF],s=this[iw],o=this[fF],a=this[goe],l=this[cF],c=this[uF],u=this[pF],f=this[voe],h=this[_oe],d=this[moe][r]+i;d=d+l;let p;u.log&&(e=u.log(e));let m=o[dF],y="";for(let w in e)if(p=e[w],Object.prototype.hasOwnProperty.call(e,w)&&p!==void 0){c[w]?p=c[w](p):w===h&&c.err&&(p=c.err(p));let v=o[w]||m;switch(typeof p){case"undefined":case"function":continue;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":v&&(p=v(p));break;case"string":p=(v||tw)(p);break;default:p=(v||n)(p,s)}if(p===void 0)continue;let g=tw(w);y+=","+g+":"+p}let _="";if(t!==void 0){p=c[f]?c[f](t):t;let w=o[f]||m;switch(typeof p){case"function":break;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":w&&(p=w(p)),_=',"'+f+'":'+p;break;case"string":p=(w||tw)(p),_=',"'+f+'":'+p;break;default:p=(w||n)(p,s),_=',"'+f+'":'+p}}return this[yoe]&&y?d+this[boe]+y.slice(1)+"}"+_+a:d+y+_+a}function koe(e,t){let r,i=e[cF],n=e[hF],s=e[iw],o=e[fF],a=o[dF],l=e[uF],c=e[pF].bindings;t=c(t);for(let u in t)if(r=t[u],(u!=="level"&&u!=="serializers"&&u!=="formatters"&&u!=="customLevels"&&t.hasOwnProperty(u)&&r!==void 0)===!0){if(r=l[u]?l[u](r):r,r=(o[u]||a||n)(r,s),r===void 0)continue;i+=',"'+u+'":'+r}return i}function Roe(e){return e.write!==e.constructor.prototype.write}function Cm(e){let t=new rw(e);return t.on("error",r),!e.sync&&woe&&(oF.register(t,Toe),t.on("close",function(){oF.unregister(t)})),t;function r(i){if(i.code==="EPIPE"){t.write=wl,t.end=wl,t.flushSync=wl,t.destroy=wl;return}t.removeListener("error",r),t.emit("error",i)}}function Toe(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}function Ooe(e){return function(r,i,n={},s){if(typeof n=="string")s=Cm({dest:n}),n={};else if(typeof s=="string"){if(n&&n.transport)throw Error("only one of option.transport or stream can be specified");s=Cm({dest:s})}else if(n instanceof rw||n.writable||n._writableState)s=n,n={};else if(n.transport){if(n.transport instanceof rw||n.transport.writable||n.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(n.transport.targets&&n.transport.targets.length&&n.formatters&&typeof n.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let l;n.customLevels&&(l=n.useOnlyCustomLevels?n.customLevels:Object.assign({},n.levels,n.customLevels)),s=Soe({caller:i,...n.transport,levels:l})}if(n=Object.assign({},e,n),n.serializers=Object.assign({},e.serializers,n.serializers),n.formatters=Object.assign({},e.formatters,n.formatters),n.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:o,onChild:a}=n;return o===!1&&(n.level="silent"),a||(n.onChild=wl),s||(Roe(process.stdout)?s=process.stdout:s=Cm({fd:process.stdout.fd||1})),{opts:n,stream:s}}}function Aoe(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[iw])(e)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Coe(e,t,r){return{level:e,bindings:t,log:r}}function Poe(e){let t=Number(e);return typeof e=="string"&&Number.isFinite(t)?t:e===void 0?1:e}mF.exports={noop:wl,buildSafeSonicBoom:Cm,asChindings:koe,asJson:Eoe,genLog:xoe,createArgsNormalizer:Ooe,stringify:Aoe,buildFormatters:Coe,normalizeDestFileDescriptor:Poe}});var Im=b((iqe,gF)=>{var Ioe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Noe={ASC:"ASC",DESC:"DESC"};gF.exports={DEFAULT_LEVELS:Ioe,SORTING_ORDER:Noe}});var ow=b((nqe,bF)=>{"use strict";var{lsCacheSym:$oe,levelValSym:nw,useOnlyCustomLevelsSym:Foe,streamSym:Loe,formattersSym:Doe,hooksSym:joe,levelCompSym:yF}=_l(),{noop:qoe,genLog:zo}=Pm(),{DEFAULT_LEVELS:ln,SORTING_ORDER:vF}=Im(),_F={fatal:e=>{let t=zo(ln.fatal,e);return function(...r){let i=this[Loe];if(t.call(this,...r),typeof i.flushSync=="function")try{i.flushSync()}catch{}}},error:e=>zo(ln.error,e),warn:e=>zo(ln.warn,e),info:e=>zo(ln.info,e),debug:e=>zo(ln.debug,e),trace:e=>zo(ln.trace,e)},sw=Object.keys(ln).reduce((e,t)=>(e[ln[t]]=t,e),{}),Moe=Object.keys(sw).reduce((e,t)=>(e[t]='{"level":'+Number(t),e),{});function zoe(e){let t=e[Doe].level,{labels:r}=e.levels,i={};for(let n in r){let s=t(r[n],Number(n));i[n]=JSON.stringify(s).slice(0,-1)}return e[$oe]=i,e}function Uoe(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function Boe(e){let{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);let i=this[nw],n=this[nw]=r[e],s=this[Foe],o=this[yF],a=this[joe].logMethod;for(let l in r){if(o(r[l],n)===!1){this[l]=qoe;continue}this[l]=Uoe(l,s)?_F[l](a):zo(r[l],a)}this.emit("level-change",e,n,t[i],i,this)}function Hoe(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function Voe(e){let{values:t}=this.levels,r=t[e];return r!==void 0&&this[yF](r,this[nw])}function Woe(e,t,r){return e===vF.DESC?t<=r:t>=r}function Goe(e){return typeof e=="string"?Woe.bind(null,e):e}function Yoe(e=null,t=!1){let r=e?Object.keys(e).reduce((s,o)=>(s[e[o]]=o,s),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:sw,r),n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:ln,e);return{labels:i,values:n}}function Koe(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(s=>t[s]),r?[]:Object.keys(sw).map(s=>+s),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:ln,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}function Joe(e,t){let{labels:r,values:i}=e;for(let n in t){if(n in i)throw Error("levels cannot be overridden");if(t[n]in r)throw Error("pre-existing level values cannot be used for new levels")}}function Zoe(e){if(typeof e!="function"&&!(typeof e=="string"&&Object.values(vF).includes(e)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}bF.exports={initialLsCache:Moe,genLsCache:zoe,levelMethods:_F,getLevel:Hoe,setLevel:Boe,isLevelEnabled:Voe,mappings:Yoe,assertNoLevelCollisions:Joe,assertDefaultLevelFound:Koe,genLevelComparison:Goe,assertLevelComparison:Zoe}});var aw=b((sqe,wF)=>{"use strict";wF.exports={version:"9.7.0"}});var IF=b((aqe,PF)=>{"use strict";var{EventEmitter:Xoe}=require("node:events"),{lsCacheSym:Qoe,levelValSym:eae,setLevelSym:cw,getLevelSym:SF,chindingsSym:uw,parsedChindingsSym:tae,mixinSym:rae,asJsonSym:TF,writeSym:iae,mixinMergeStrategySym:nae,timeSym:sae,timeSliceIndexSym:oae,streamSym:OF,serializersSym:Uo,formattersSym:lw,errorKeySym:aae,messageKeySym:lae,useOnlyCustomLevelsSym:cae,needsMetadataGsym:uae,redactFmtSym:fae,stringifySym:hae,formatOptsSym:dae,stringifiersSym:pae,msgPrefixSym:xF,hooksSym:mae}=_l(),{getLevel:gae,setLevel:yae,isLevelEnabled:vae,mappings:_ae,initialLsCache:bae,genLsCache:wae,assertNoLevelCollisions:Sae}=ow(),{asChindings:AF,asJson:xae,buildFormatters:EF,stringify:kF}=Pm(),{version:Eae}=aw(),kae=zb(),Rae=class{},CF={constructor:Rae,child:Tae,bindings:Oae,setBindings:Aae,flush:Nae,isLevelEnabled:vae,version:Eae,get level(){return this[SF]()},set level(e){this[cw](e)},get levelVal(){return this[eae]},set levelVal(e){throw Error("levelVal is read-only")},[Qoe]:bae,[iae]:Pae,[TF]:xae,[SF]:gae,[cw]:yae};Object.setPrototypeOf(CF,Xoe.prototype);PF.exports=function(){return Object.create(CF)};var RF=e=>e;function Tae(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[Uo],i=this[lw],n=Object.create(this);if(t.hasOwnProperty("serializers")===!0){n[Uo]=Object.create(null);for(let u in r)n[Uo][u]=r[u];let l=Object.getOwnPropertySymbols(r);for(var s=0;s<l.length;s++){let u=l[s];n[Uo][u]=r[u]}for(let u in t.serializers)n[Uo][u]=t.serializers[u];let c=Object.getOwnPropertySymbols(t.serializers);for(var o=0;o<c.length;o++){let u=c[o];n[Uo][u]=t.serializers[u]}}else n[Uo]=r;if(t.hasOwnProperty("formatters")){let{level:l,bindings:c,log:u}=t.formatters;n[lw]=EF(l||i.level,c||RF,u||i.log)}else n[lw]=EF(i.level,RF,i.log);if(t.hasOwnProperty("customLevels")===!0&&(Sae(this.levels,t.customLevels),n.levels=_ae(t.customLevels,n[cae]),wae(n)),typeof t.redact=="object"&&t.redact!==null||Array.isArray(t.redact)){n.redact=t.redact;let l=kae(n.redact,kF),c={stringify:l[fae]};n[hae]=kF,n[pae]=l,n[dae]=c}typeof t.msgPrefix=="string"&&(n[xF]=(this[xF]||"")+t.msgPrefix),n[uw]=AF(n,e);let a=t.level||this.level;return n[cw](a),this.onChild(n),n}function Oae(){let t=`{${this[uw].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function Aae(e){let t=AF(this,e);this[uw]=t,delete this[tae]}function Cae(e,t){return Object.assign(t,e)}function Pae(e,t,r){let i=this[sae](),n=this[rae],s=this[aae],o=this[lae],a=this[nae]||Cae,l,c=this[mae].streamWrite;e==null?l={}:e instanceof Error?(l={[s]:e},t===void 0&&(t=e.message)):(l=e,t===void 0&&e[o]===void 0&&e[s]&&(t=e[s].message)),n&&(l=a(l,n(l,r,this)));let u=this[TF](l,t,r,i),f=this[OF];f[uae]===!0&&(f.lastLevel=r,f.lastObj=l,f.lastMsg=t,f.lastTime=i.slice(this[oae]),f.lastLogger=this),f.write(c?c(u):u)}function Iae(){}function Nae(e){if(e!=null&&typeof e!="function")throw Error("callback must be a function");let t=this[OF];typeof t.flush=="function"?t.flush(e||Iae):e&&e()}});var LF=b((pw,FF)=>{"use strict";var{hasOwnProperty:zu}=Object.prototype,Ho=dw();Ho.configure=dw;Ho.stringify=Ho;Ho.default=Ho;pw.stringify=Ho;pw.configure=dw;FF.exports=Ho;var $ae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Ds(e){return e.length<5e3&&!$ae.test(e)?`"${e}"`:JSON.stringify(e)}function fw(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let i=e[r],n=r;for(;n!==0&&e[n-1]>i;)e[n]=e[n-1],n--;e[n]=i}return e}var Fae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function hw(e){return Fae.call(e)!==void 0&&e.length!==0}function NF(e,t,r){e.length<r&&(r=e.length);let i=t===","?"":" ",n=`"0":${i}${e[0]}`;for(let s=1;s<r;s++)n+=`${t}"${s}":${i}${e[s]}`;return n}function Lae(e){if(zu.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Dae(e){let t;if(zu.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function jae(e,t){let r;if(zu.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function $F(e,t){let r;if(zu.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function Bo(e){return e===1?"1 item":`${e} items`}function qae(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function Mae(e){if(zu.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let i=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(i+=` (${r.toString()})`),new Error(i)}}}function dw(e){e={...e};let t=Mae(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=Lae(e),i=jae(e,"bigint"),n=Dae(e),s=typeof n=="function"?n:void 0,o=$F(e,"maximumDepth"),a=$F(e,"maximumBreadth");function l(d,p,m,y,_,w){let v=p[d];switch(typeof v=="object"&&v!==null&&typeof v.toJSON=="function"&&(v=v.toJSON(d)),v=y.call(p,d,v),typeof v){case"string":return Ds(v);case"object":{if(v===null)return"null";if(m.indexOf(v)!==-1)return r;let g="",T=",",N=w;if(Array.isArray(v)){if(v.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(v),_!==""&&(w+=_,g+=`
${w}`,T=`,
${w}`);let L=Math.min(v.length,a),q=0;for(;q<L-1;q++){let X=l(String(q),v,m,y,_,w);g+=X!==void 0?X:"null",g+=T}let G=l(String(q),v,m,y,_,w);if(g+=G!==void 0?G:"null",v.length-1>a){let X=v.length-a-1;g+=`${T}"... ${Bo(X)} not stringified"`}return _!==""&&(g+=`
${N}`),m.pop(),`[${g}]`}let R=Object.keys(v),A=R.length;if(A===0)return"{}";if(o<m.length+1)return'"[Object]"';let C="",k="";_!==""&&(w+=_,T=`,
${w}`,C=" ");let P=Math.min(A,a);n&&!hw(v)&&(R=fw(R,s)),m.push(v);for(let L=0;L<P;L++){let q=R[L],G=l(q,v,m,y,_,w);G!==void 0&&(g+=`${k}${Ds(q)}:${C}${G}`,k=T)}if(A>a){let L=A-a;g+=`${k}"...":${C}"${Bo(L)} not stringified"`,k=T}return _!==""&&k.length>1&&(g=`
${w}${g}
${N}`),m.pop(),`{${g}}`}case"number":return isFinite(v)?String(v):t?t(v):"null";case"boolean":return v===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(v);default:return t?t(v):void 0}}function c(d,p,m,y,_,w){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(d)),typeof p){case"string":return Ds(p);case"object":{if(p===null)return"null";if(m.indexOf(p)!==-1)return r;let v=w,g="",T=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(p),_!==""&&(w+=_,g+=`
${w}`,T=`,
${w}`);let A=Math.min(p.length,a),C=0;for(;C<A-1;C++){let P=c(String(C),p[C],m,y,_,w);g+=P!==void 0?P:"null",g+=T}let k=c(String(C),p[C],m,y,_,w);if(g+=k!==void 0?k:"null",p.length-1>a){let P=p.length-a-1;g+=`${T}"... ${Bo(P)} not stringified"`}return _!==""&&(g+=`
${v}`),m.pop(),`[${g}]`}m.push(p);let N="";_!==""&&(w+=_,T=`,
${w}`,N=" ");let R="";for(let A of y){let C=c(A,p[A],m,y,_,w);C!==void 0&&(g+=`${R}${Ds(A)}:${N}${C}`,R=T)}return _!==""&&R.length>1&&(g=`
${w}${g}
${v}`),m.pop(),`{${g}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function u(d,p,m,y,_){switch(typeof p){case"string":return Ds(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(d),typeof p!="object")return u(d,p,m,y,_);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let w=_;if(Array.isArray(p)){if(p.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(p),_+=y;let C=`
${_}`,k=`,
${_}`,P=Math.min(p.length,a),L=0;for(;L<P-1;L++){let G=u(String(L),p[L],m,y,_);C+=G!==void 0?G:"null",C+=k}let q=u(String(L),p[L],m,y,_);if(C+=q!==void 0?q:"null",p.length-1>a){let G=p.length-a-1;C+=`${k}"... ${Bo(G)} not stringified"`}return C+=`
${w}`,m.pop(),`[${C}]`}let v=Object.keys(p),g=v.length;if(g===0)return"{}";if(o<m.length+1)return'"[Object]"';_+=y;let T=`,
${_}`,N="",R="",A=Math.min(g,a);hw(p)&&(N+=NF(p,T,a),v=v.slice(p.length),A-=p.length,R=T),n&&(v=fw(v,s)),m.push(p);for(let C=0;C<A;C++){let k=v[C],P=u(k,p[k],m,y,_);P!==void 0&&(N+=`${R}${Ds(k)}: ${P}`,R=T)}if(g>a){let C=g-a;N+=`${R}"...": "${Bo(C)} not stringified"`,R=T}return R!==""&&(N=`
${_}${N}
${w}`),m.pop(),`{${N}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function f(d,p,m){switch(typeof p){case"string":return Ds(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(d),typeof p!="object")return f(d,p,m);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let y="",_=p.length!==void 0;if(_&&Array.isArray(p)){if(p.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(p);let N=Math.min(p.length,a),R=0;for(;R<N-1;R++){let C=f(String(R),p[R],m);y+=C!==void 0?C:"null",y+=","}let A=f(String(R),p[R],m);if(y+=A!==void 0?A:"null",p.length-1>a){let C=p.length-a-1;y+=`,"... ${Bo(C)} not stringified"`}return m.pop(),`[${y}]`}let w=Object.keys(p),v=w.length;if(v===0)return"{}";if(o<m.length+1)return'"[Object]"';let g="",T=Math.min(v,a);_&&hw(p)&&(y+=NF(p,",",a),w=w.slice(p.length),T-=p.length,g=","),n&&(w=fw(w,s)),m.push(p);for(let N=0;N<T;N++){let R=w[N],A=f(R,p[R],m);A!==void 0&&(y+=`${g}${Ds(R)}:${A}`,g=",")}if(v>a){let N=v-a;y+=`${g}"...":"${Bo(N)} not stringified"`}return m.pop(),`{${y}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function h(d,p,m){if(arguments.length>1){let y="";if(typeof m=="number"?y=" ".repeat(Math.min(m,10)):typeof m=="string"&&(y=m.slice(0,10)),p!=null){if(typeof p=="function")return l("",{"":d},[],p,y,"");if(Array.isArray(p))return c("",d,[],qae(p),y,"")}if(y.length!==0)return u("",d,[],y,"")}return f("",d,[])}return h}});var qF=b((lqe,jF)=>{"use strict";var mw=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:DF}=Im(),zae=DF.info;function Uae(e,t){let r=0;e=e||[],t=t||{dedupe:!1};let i=Object.create(DF);i.silent=1/0,t.levels&&typeof t.levels=="object"&&Object.keys(t.levels).forEach(f=>{i[f]=t.levels[f]});let n={write:s,add:l,emit:o,flushSync:a,end:c,minLevel:0,streams:[],clone:u,[mw]:!0,streamLevels:i};return Array.isArray(e)?e.forEach(l,n):l.call(n,e),e=null,n;function s(f){let h,d=this.lastLevel,{streams:p}=this,m=0,y;for(let _=Hae(p.length,t.dedupe);Wae(_,p.length,t.dedupe);_=Vae(_,t.dedupe))if(h=p[_],h.level<=d){if(m!==0&&m!==h.level)break;if(y=h.stream,y[mw]){let{lastTime:w,lastMsg:v,lastObj:g,lastLogger:T}=this;y.lastLevel=d,y.lastTime=w,y.lastMsg=v,y.lastObj=g,y.lastLogger=T}y.write(f),t.dedupe&&(m=h.level)}else if(!t.dedupe)break}function o(...f){for(let{stream:h}of this.streams)typeof h.emit=="function"&&h.emit(...f)}function a(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync()}function l(f){if(!f)return n;let h=typeof f.write=="function"||f.stream,d=f.write?f:f.stream;if(!h)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:p,streamLevels:m}=this,y;typeof f.levelVal=="number"?y=f.levelVal:typeof f.level=="string"?y=m[f.level]:typeof f.level=="number"?y=f.level:y=zae;let _={stream:d,level:y,levelVal:void 0,id:r++};return p.unshift(_),p.sort(Bae),this.minLevel=p[0].level,n}function c(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync(),f.end()}function u(f){let h=new Array(this.streams.length);for(let d=0;d<h.length;d++)h[d]={level:f,stream:this.streams[d].stream};return{write:s,add:l,minLevel:f,streams:h,clone:u,emit:o,flushSync:a,[mw]:!0}}}function Bae(e,t){return e.level-t.level}function Hae(e,t){return t?e-1:0}function Vae(e,t){return t?e-1:e+1}function Wae(e,t,r){return r?e>=0:e<t}jF.exports=Uae});var QF=b((cqe,si)=>{"use strict";var Gae=require("node:os"),GF=Nb(),Yae=$b(),Kae=zb(),YF=I$(),Jae=IF(),KF=_l(),{configure:Zae}=LF(),{assertDefaultLevelFound:Xae,mappings:JF,genLsCache:Qae,genLevelComparison:ele,assertLevelComparison:tle}=ow(),{DEFAULT_LEVELS:ZF,SORTING_ORDER:rle}=Im(),{createArgsNormalizer:ile,asChindings:nle,buildSafeSonicBoom:MF,buildFormatters:sle,stringify:gw,normalizeDestFileDescriptor:zF,noop:ole}=Pm(),{version:ale}=aw(),{chindingsSym:UF,redactFmtSym:lle,serializersSym:BF,timeSym:cle,timeSliceIndexSym:ule,streamSym:fle,stringifySym:HF,stringifySafeSym:yw,stringifiersSym:VF,setLevelSym:hle,endSym:dle,formatOptsSym:ple,messageKeySym:mle,errorKeySym:gle,nestedKeySym:yle,mixinSym:vle,levelCompSym:_le,useOnlyCustomLevelsSym:ble,formattersSym:WF,hooksSym:wle,nestedKeyStrSym:Sle,mixinMergeStrategySym:xle,msgPrefixSym:Ele}=KF,{epochTime:XF,nullTime:kle}=YF,{pid:Rle}=process,Tle=Gae.hostname(),Ole=GF.err,Ale={level:"info",levelComparison:rle.ASC,levels:ZF,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Rle,hostname:Tle},serializers:Object.assign(Object.create(null),{err:Ole}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:XF,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},Cle=ile(Ale),Ple=Object.assign(Object.create(null),GF);function vw(...e){let t={},{opts:r,stream:i}=Cle(t,Yae(),...e);r.level&&typeof r.level=="string"&&ZF[r.level.toLowerCase()]!==void 0&&(r.level=r.level.toLowerCase());let{redact:n,crlf:s,serializers:o,timestamp:a,messageKey:l,errorKey:c,nestedKey:u,base:f,name:h,level:d,customLevels:p,levelComparison:m,mixin:y,mixinMergeStrategy:_,useOnlyCustomLevels:w,formatters:v,hooks:g,depthLimit:T,edgeLimit:N,onChild:R,msgPrefix:A}=r,C=Zae({maximumDepth:T,maximumBreadth:N}),k=sle(v.level,v.bindings,v.log),P=gw.bind({[yw]:C}),L=n?Kae(n,P):{},q=n?{stringify:L[lle]}:{stringify:P},G="}"+(s?`\r
`:`
`),X=nle.bind(null,{[UF]:"",[BF]:o,[VF]:L,[HF]:gw,[yw]:C,[WF]:k}),H="";f!==null&&(h===void 0?H=X(f):H=X(Object.assign({},f,{name:h})));let W=a instanceof Function?a:a?XF:kle,ae=W().indexOf(":")+1;if(w&&!p)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(y&&typeof y!="function")throw Error(`Unknown mixin type "${typeof y}" - expected "function"`);if(A&&typeof A!="string")throw Error(`Unknown msgPrefix type "${typeof A}" - expected "string"`);Xae(d,p,w);let V=JF(p,w);typeof i.emit=="function"&&i.emit("message",{code:"PINO_CONFIG",config:{levels:V,messageKey:l,errorKey:c}}),tle(m);let Ve=ele(m);return Object.assign(t,{levels:V,[_le]:Ve,[ble]:w,[fle]:i,[cle]:W,[ule]:ae,[HF]:gw,[yw]:C,[VF]:L,[dle]:G,[ple]:q,[mle]:l,[gle]:c,[yle]:u,[Sle]:u?`,${JSON.stringify(u)}:{`:"",[BF]:o,[vle]:y,[xle]:_,[UF]:H,[WF]:k,[wle]:g,silent:ole,onChild:R,[Ele]:A}),Object.setPrototypeOf(t,Jae()),Qae(t),t[hle](d),t}si.exports=vw;si.exports.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=zF(e.dest||process.stdout.fd),MF(e)):MF({dest:zF(e),minLength:0});si.exports.transport=ew();si.exports.multistream=qF();si.exports.levels=JF();si.exports.stdSerializers=Ple;si.exports.stdTimeFunctions=Object.assign({},YF);si.exports.symbols=KF;si.exports.version=ale;si.exports.default=vw;si.exports.pino=vw});var Uu=b((uqe,nL)=>{"use strict";var Ile=UN(),Nm=QF(),{serializersSym:eL}=Nm.symbols,{FST_ERR_LOG_INVALID_DESTINATION:Nle,FST_ERR_LOG_INVALID_LOGGER:$le}=rr();function tL(e){if(e.stream&&e.file)throw new Nle;e.file&&(e.stream=Nm.destination(e.file),delete e.file);let t=e.logger,r=e.genReqId,i=null;return t?(e.logger=void 0,e.genReqId=void 0,t[eL]&&(e.serializers=Object.assign({},e.serializers,t[eL])),i=t.child({},e),e.logger=t,e.genReqId=r):i=Nm(e,e.stream),i}var _w={req:function(t){return{method:t.method,url:t.url,version:t.headers&&t.headers["accept-version"],hostname:t.hostname,remoteAddress:t.ip,remotePort:t.socket?t.socket.remotePort:void 0}},err:Nm.stdSerializers.err,res:function(t){return{statusCode:t.statusCode}}};function Fle(){let e=process.hrtime();return e[0]*1e3+e[1]/1e6}function Lle(e){if(!e.logger){let i=Ile;return i.child=()=>i,{logger:i,hasLogger:!1}}if(rL(e.logger))return{logger:tL({logger:e.logger,serializers:Object.assign({},_w,e.logger.serializers)}),hasLogger:!0};let t={};return Object.prototype.toString.call(e.logger)==="[object Object]"&&Reflect.ownKeys(e.logger).forEach(i=>{Object.defineProperty(t,i,{value:e.logger[i],writable:!0,enumerable:!0,configurable:!0})}),t.level=t.level||"info",t.serializers=Object.assign({},_w,t.serializers),e.logger=t,{logger:tL(e.logger),hasLogger:!0}}function rL(e,t){let r=["info","error","debug","fatal","warn","trace","child"],i=e?r.filter(n=>!e[n]||typeof e[n]!="function"):r;if(i.length){if(i.length===r.length&&!t)return!1;throw $le(i.join(","))}else return!0}function Dle(e,t,r,i,n){let s={[e.requestIdLogLabel]:i},o=e.childLoggerFactory.call(e.server,t,s,n||{},r);return e.childLoggerFactory!==iL&&rL(o,!0),o}function iL(e,t,r){return e.child(t,r)}nL.exports={createLogger:Lle,createChildLogger:Dle,defaultChildLoggerFactory:iL,serializers:_w,now:Fle}});var $m=b((fqe,sL)=>{"use strict";sL.exports=jle;function Sl(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function jle(e){if(e=e||{},e.circles)return qle(e);let t=new Map;if(t.set(Date,o=>new Date(o)),t.set(Map,(o,a)=>new Map(i(Array.from(o),a))),t.set(Set,(o,a)=>new Set(i(Array.from(o),a))),e.constructorHandlers)for(let o of e.constructorHandlers)t.set(o[0],o[1]);let r=null;return e.proto?s:n;function i(o,a){let l=Object.keys(o),c=new Array(l.length);for(let u=0;u<l.length;u++){let f=l[u],h=o[f];typeof h!="object"||h===null?c[f]=h:h.constructor!==Object&&(r=t.get(h.constructor))?c[f]=r(h,a):ArrayBuffer.isView(h)?c[f]=Sl(h):c[f]=a(h)}return c}function n(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return i(o,n);if(o.constructor!==Object&&(r=t.get(o.constructor)))return r(o,n);let a={};for(let l in o){if(Object.hasOwnProperty.call(o,l)===!1)continue;let c=o[l];typeof c!="object"||c===null?a[l]=c:c.constructor!==Object&&(r=t.get(c.constructor))?a[l]=r(c,n):ArrayBuffer.isView(c)?a[l]=Sl(c):a[l]=n(c)}return a}function s(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return i(o,s);if(o.constructor!==Object&&(r=t.get(o.constructor)))return r(o,s);let a={};for(let l in o){let c=o[l];typeof c!="object"||c===null?a[l]=c:c.constructor!==Object&&(r=t.get(c.constructor))?a[l]=r(c,s):ArrayBuffer.isView(c)?a[l]=Sl(c):a[l]=s(c)}return a}}function qle(e){let t=[],r=[],i=new Map;if(i.set(Date,l=>new Date(l)),i.set(Map,(l,c)=>new Map(s(Array.from(l),c))),i.set(Set,(l,c)=>new Set(s(Array.from(l),c))),e.constructorHandlers)for(let l of e.constructorHandlers)i.set(l[0],l[1]);let n=null;return e.proto?a:o;function s(l,c){let u=Object.keys(l),f=new Array(u.length);for(let h=0;h<u.length;h++){let d=u[h],p=l[d];if(typeof p!="object"||p===null)f[d]=p;else if(p.constructor!==Object&&(n=i.get(p.constructor)))f[d]=n(p,c);else if(ArrayBuffer.isView(p))f[d]=Sl(p);else{let m=t.indexOf(p);m!==-1?f[d]=r[m]:f[d]=c(p)}}return f}function o(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return s(l,o);if(l.constructor!==Object&&(n=i.get(l.constructor)))return n(l,o);let c={};t.push(l),r.push(c);for(let u in l){if(Object.hasOwnProperty.call(l,u)===!1)continue;let f=l[u];if(typeof f!="object"||f===null)c[u]=f;else if(f.constructor!==Object&&(n=i.get(f.constructor)))c[u]=n(f,o);else if(ArrayBuffer.isView(f))c[u]=Sl(f);else{let h=t.indexOf(f);h!==-1?c[u]=r[h]:c[u]=o(f)}}return t.pop(),r.pop(),c}function a(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return s(l,a);if(l.constructor!==Object&&(n=i.get(l.constructor)))return n(l,a);let c={};t.push(l),r.push(c);for(let u in l){let f=l[u];if(typeof f!="object"||f===null)c[u]=f;else if(f.constructor!==Object&&(n=i.get(f.constructor)))c[u]=n(f,a);else if(ArrayBuffer.isView(f))c[u]=Sl(f);else{let h=t.indexOf(f);h!==-1?c[u]=r[h]:c[u]=a(f)}}return t.pop(),r.pop(),c}}});var Bu=b((hqe,uL)=>{"use strict";var Mle=$m()({circles:!1,proto:!0}),{kSchemaVisited:oL,kSchemaResponse:zle}=Pt(),bw=Symbol.for("fluent-schema-object"),{FSTDEP022:Ule}=sn(),{FST_ERR_SCH_MISSING_ID:Ble,FST_ERR_SCH_ALREADY_PRESENT:Hle,FST_ERR_SCH_DUPLICATE:Vle,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:aL}=rr(),cL=["params","body","querystring","query","headers"];function Lm(e){this.store=e||{}}Lm.prototype.add=function(e){let t=Mle(e.isFluentSchema||e.isFluentJSONSchema||e[bw]?e.valueOf():e),r=t.$id;if(!r)throw new Ble;if(this.store[r])throw new Hle(r);this.store[r]=t};Lm.prototype.getSchemas=function(){return Object.assign({},this.store)};Lm.prototype.getSchema=function(e){return this.store[e]};function lL(e){return typeof e=="object"&&Object.getPrototypeOf(e)!==Object.prototype}function Wle(e,t,r){if(t[oL])return t;if(t.query){if(t.querystring)throw new Vle("querystring");t.querystring=t.query}Gle(t);for(let i of cL){let n=t[i];if(n&&!lL(n)){if(i==="body"&&n.content){let s=n.content,o=Object.keys(s);for(let a=0;a<o.length;a++){let l=o[a],c=s[l].schema;if(!c)throw new aL(l);t.body.content[l].schema=Fm(e.url,c,r.jsonShorthand)}continue}t[i]=Fm(e.url,n,r.jsonShorthand)}}if(t.response){let i=Object.keys(t.response);for(let n of i){if(lL(t.response[n]))continue;let s=t.response[n].content,o=!1;if(s){let a=Object.keys(s);for(let l=0;l<a.length;l++){let c=a[l];if(!s[c].schema){if(a.length===1)break;throw new aL(c)}t.response[n].content[c].schema=Fm(e.url,s[c].schema,r.jsonShorthand),l===a.length-1&&(o=!0)}}o||(t.response[n]=Fm(e.url,t.response[n],r.jsonShorthand))}}return t[oL]=!0,t}function Gle(e){for(let t of cL)e[t]&&(e[t].isFluentSchema||e[t][bw])&&(e[t]=e[t].valueOf());if(e.response){let t=Object.keys(e.response);for(let r of t)(e.response[r].isFluentSchema||e.response[r][bw])&&(e.response[r]=e.response[r].valueOf())}}function Fm(e,t,r){return!r||t.$ref||t.oneOf||t.allOf||t.anyOf||t.$merge||t.$patch?t:!t.type&&!t.properties?(Ule(e),{type:"object",properties:t}):t}function Yle(e,t,r){let i=e[zle];if(!i)return!1;if(i[t]){if(i[t].constructor===Object&&r){let s=r.split(";",1)[0];return i[t][s]?i[t][s]:!1}return i[t]}let n=(t+"")[0]+"xx";if(i[n]){if(i[n].constructor===Object&&r){let s=r.split(";",1)[0];return i[n][s]?i[n][s]:!1}return i[n]}if(i.default){if(i.default.constructor===Object&&r){let s=r.split(";",1)[0];return i.default[s]?i.default[s]:!1}return i.default}return!1}uL.exports={buildSchemas(e){return new Lm(e)},getSchemaSerializer:Yle,normalizeSchema:Wle}});var Dm=b((dqe,hL)=>{"use strict";var Kle=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;hL.exports=class fL{constructor(t){switch(t&&t.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=t}asInteger(t){if(Number.isInteger(t))return""+t;if(typeof t=="bigint")return t.toString();let r=this.parseInteger(t);if(r===1/0||r===-1/0||r!==r)throw new Error(`The value "${t}" cannot be converted to an integer.`);return""+r}asNumber(t){let r=Number(t);if(r!==r)throw new Error(`The value "${t}" cannot be converted to a number.`);return r===1/0||r===-1/0?"null":""+r}asBoolean(t){return t&&"true"||"false"}asDateTime(t){if(t===null)return'""';if(t instanceof Date)return'"'+t.toISOString()+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a date-time.`)}asDate(t){if(t===null)return'""';if(t instanceof Date)return'"'+new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a date.`)}asTime(t){if(t===null)return'""';if(t instanceof Date)return'"'+new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a time.`)}asString(t){let r=t.length;if(r<42){let n="",s=-1,o=255;for(var i=0;i<r;i++)if(o=t.charCodeAt(i),o===34||o===92)s===-1&&(s=0),n+=t.slice(s,i)+"\\",s=i;else if(o<32||o>=55296&&o<=57343)return JSON.stringify(t);return s===-1&&'"'+t+'"'||'"'+n+t.slice(s)+'"'}else return r<5e3&&Kle.test(t)===!1?'"'+t+'"':JSON.stringify(t)}asUnsafeString(t){return'"'+t+'"'}getState(){return this._options}static restoreFromState(t){return new fL(t)}}});var pL=b((pqe,dL)=>{"use strict";var Jle=Dm(),Zle={mode:"standalone"},Xle=Jle.restoreFromState(Zle),Qle=null;dL.exports=function(t,r){let i="{",n="}",s="[",o="]",a=",",l=":",c='"',u=i+n,f=s+o,h=c+c,d="null";function p(y){let _=y&&typeof y.toJSON=="function"?y.toJSON():y;if(_===null)return u;let w,v=i,g=!1;return w=_.statusCode,w!==void 0&&(!g&&(g=!0)||(v+=a),v+='"statusCode":',v+=r.asNumber(w)),w=_.code,w!==void 0&&(!g&&(g=!0)||(v+=a),v+='"code":',typeof w!="string"?w===null?v+=h:w instanceof Date?v+=c+w.toISOString()+c:w instanceof RegExp?v+=r.asString(w.source):v+=r.asString(w.toString()):v+=r.asString(w)),w=_.error,w!==void 0&&(!g&&(g=!0)||(v+=a),v+='"error":',typeof w!="string"?w===null?v+=h:w instanceof Date?v+=c+w.toISOString()+c:w instanceof RegExp?v+=r.asString(w.source):v+=r.asString(w.toString()):v+=r.asString(w)),w=_.message,w!==void 0&&(!g&&(g=!0)||(v+=a),v+='"message":',typeof w!="string"?w===null?v+=h:w instanceof Date?v+=c+w.toISOString()+c:w instanceof RegExp?v+=r.asString(w.source):v+=r.asString(w.toString()):v+=r.asString(w)),v+n}return p}(Qle,Xle)});var Hu=b((mqe,vL)=>{"use strict";var mL=require("node:http").STATUS_CODES,ece=_b(),{kReplyHeaders:Vo,kReplyNextErrorHandler:jm,kReplyIsRunningOnErrorHook:tce,kReplyHasStatusCode:rce,kRouteContext:yL,kDisableRequestLogging:qm}=Pt(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:ice,FST_ERR_FAILED_ERROR_SERIALIZATION:nce}=rr(),{getSchemaSerializer:sce}=Bu(),ww=pL(),oce={func:lce,toJSON(){return this.func.name.toString()+"()"}};function ace(e,t,r){e[tce]=!1;let i=e[yL];if(e[jm]===!1){gL(t,e,function(o,a){try{o.raw.writeHead(o.raw.statusCode,o[Vo])}catch(l){o.log[qm]||o.log.warn({req:o.request,res:o,err:l},l&&l.message),o.raw.writeHead(o.raw.statusCode)}o.raw.end(a)});return}let n=e[jm]||i.errorHandler;e[jm]=Object.getPrototypeOf(n),delete e[Vo]["content-type"],delete e[Vo]["content-length"];let s=n.func;if(!s){e[jm]=!1,gL(t,e,r);return}try{let o=s(t,e.request,e);o!==void 0&&(o!==null&&typeof o.then=="function"?ece(o,e):e.send(o))}catch(o){e.send(o)}}function lce(e,t,r){if(uce(e,r),!r[rce]||r.statusCode===200){let i=e.statusCode||e.status;r.code(i>=400?i:500)}r.statusCode<500?r.log[qm]||r.log.info({res:r,err:e},e&&e.message):r.log[qm]||r.log.error({req:t,res:r,err:e},e&&e.message),r.send(e)}function gL(e,t,r){let i=t.raw,n=t.statusCode;t[Vo]["content-type"]=t[Vo]["content-type"]??"application/json; charset=utf-8";let s;try{let o=sce(t[yL],n,t[Vo]["content-type"]);s=o===!1?ww({error:mL[n+""],code:e.code,message:e.message,statusCode:n}):o(Object.create(e,{error:{value:mL[n+""]},message:{value:e.message},statusCode:{value:n}}))}catch(o){t.log[qm]||t.log.error({err:o,statusCode:i.statusCode},"The serializer for the given status code failed"),t.code(500),s=ww(new nce(o.message,e.message))}typeof s!="string"&&!Buffer.isBuffer(s)&&(s=ww(new ice(typeof s))),t[Vo]["content-length"]=""+Buffer.byteLength(s),r(t,s)}function cce(e=oce,t){if(!t)return e;let r=Object.create(e);return r.func=t,r}function uce(e,t){let r=t.raw,i=r.statusCode;i=i>=400?i:500,e!=null&&(e.headers!==void 0&&t.headers(e.headers),e.status>=400?i=e.status:e.statusCode>=400&&(i=e.statusCode)),r.statusCode=i}vL.exports={buildErrorHandler:cce,handleError:ace}});var Vm=b((gqe,Hm)=>{"use strict";var kw=require("node:stream").finished,fce=require("node:stream").Readable,{kFourOhFourContext:_L,kPublicRouteContext:bL,kReplyErrorHandlerCalled:TL,kReplyHijacked:Vu,kReplyStartTime:Wu,kReplyEndTime:Tw,kReplySerializer:Vn,kReplySerializerDefault:zm,kReplyIsError:Um,kReplyHeaders:ze,kReplyTrailers:Nt,kReplyHasStatusCode:Ow,kReplyIsRunningOnErrorHook:Aw,kReplyNextErrorHandler:hce,kDisableRequestLogging:OL,kSchemaResponse:Bm,kReplyCacheSerializeFns:js,kSchemaController:Sw,kOptions:dce,kRouteContext:_e}=Pt(),{onSendHookRunner:AL,onResponseHookRunner:pce,preHandlerHookRunner:mce,preSerializationHookRunner:gce}=Ns(),wL=xb()[Symbol.for("internals")],yce=Uu(),Rw=yce.now,{handleError:SL}=Hu(),{getSchemaSerializer:vce}=Bu(),xw={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:_ce,FST_ERR_REP_RESPONSE_BODY_CONSUMED:bce,FST_ERR_REP_ALREADY_SENT:CL,FST_ERR_REP_SENT_VALUE:wce,FST_ERR_SEND_INSIDE_ONERR:Sce,FST_ERR_BAD_STATUS_CODE:xce,FST_ERR_BAD_TRAILER_NAME:Ece,FST_ERR_BAD_TRAILER_VALUE:kce,FST_ERR_MISSING_SERIALIZATION_FN:Rce,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:Tce}=rr(),{FSTDEP010:Oce,FSTDEP013:Ace,FSTDEP019:Cce,FSTDEP020:Pce,FSTDEP021:Ice}=sn(),PL=Object.prototype.toString;function qe(e,t,r){this.raw=e,this[Vn]=null,this[TL]=!1,this[Um]=!1,this[Aw]=!1,this.request=t,this[ze]={},this[Nt]=null,this[Ow]=!1,this[Wu]=void 0,this.log=r}qe.props=[];Object.defineProperties(qe.prototype,{[_e]:{get(){return this.request[_e]}},context:{get(){return Cce(),this.request[_e]}},elapsedTime:{get(){return this[Wu]===void 0?0:(this[Tw]||Rw())-this[Wu]}},server:{get(){return this.request[_e].server}},sent:{enumerable:!0,get(){return(this[Vu]||this.raw.writableEnded)===!0},set(e){if(Oce(),e!==!0)throw new wce;if(this.sent&&this[Vu])throw new CL(this.request.url,this.request.method);this[Vu]=!0}},statusCode:{get(){return this.raw.statusCode},set(e){this.code(e)}},[bL]:{get(){return this.request[bL]}}});qe.prototype.hijack=function(){return this[Vu]=!0,this};qe.prototype.send=function(e){if(this[Aw]===!0)throw new Sce;if(this.sent)return this.log.warn({err:new CL(this.request.url,this.request.method)}),this;if(e instanceof Error||this[Um]===!0)return this[Um]=!1,Gu(this,e,Wo),this;if(e===void 0)return Wo(this,e),this;let t=this.getHeader("content-type"),r=t!==void 0;if(e!==null){if(typeof e.pipe=="function"||typeof e.getReader=="function"||PL.call(e)==="[object Response]")return Wo(this,e),this;if(e?.buffer instanceof ArrayBuffer){r===!1&&(this[ze]["content-type"]=xw.OCTET);let i=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);return Wo(this,i),this}if(r===!1&&typeof e=="string")return this[ze]["content-type"]=xw.PLAIN,Wo(this,e),this}if(this[Vn]!==null){if(typeof e!="string")return xL(this,e),this;e=this[Vn](e)}else if(r===!1||t.indexOf("json")>-1){if(r===!1)this[ze]["content-type"]=xw.JSON;else if(t.indexOf("charset")===-1){let i=t.trim();i.endsWith(";")?this[ze]["content-type"]=`${i} charset=utf-8`:this[ze]["content-type"]=`${i}; charset=utf-8`}if(typeof e!="string")return xL(this,e),this}return Wo(this,e),this};qe.prototype.getHeader=function(e){e=e.toLowerCase();let t=this.raw,r=this[ze][e];return r===void 0&&t.hasHeader(e)&&(r=t.getHeader(e)),r};qe.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[ze]}};qe.prototype.hasHeader=function(e){return e=e.toLowerCase(),this[ze][e]!==void 0||this.raw.hasHeader(e)};qe.prototype.removeHeader=function(e){return delete this[ze][e.toLowerCase()],this};qe.prototype.header=function(e,t=""){return e=e.toLowerCase(),this[ze][e]&&e==="set-cookie"?(typeof this[ze][e]=="string"&&(this[ze][e]=[this[ze][e]]),Array.isArray(t)?Array.prototype.push.apply(this[ze][e],t):this[ze][e].push(t)):this[ze][e]=t,this};qe.prototype.headers=function(e){let t=Object.keys(e);for(var r=0;r!==t.length;++r){let i=t[r];this.header(i,e[i])}return this};var Nce=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);qe.prototype.trailer=function(e,t){if(e=e.toLowerCase(),Nce.has(e))throw new Ece(e);if(typeof t!="function")throw new kce(e,typeof t);return this[Nt]===null&&(this[Nt]={}),this[Nt][e]=t,this};qe.prototype.hasTrailer=function(e){return this[Nt]?.[e.toLowerCase()]!==void 0};qe.prototype.removeTrailer=function(e){return this[Nt]===null?this:(this[Nt][e.toLowerCase()]=void 0,this)};qe.prototype.code=function(e){let t=Number(e);if(isNaN(t)||t<100||t>599)throw new xce(e||String(e));return this.raw.statusCode=t,this[Ow]=!0,this};qe.prototype.status=qe.prototype.code;qe.prototype.getSerializationFunction=function(e,t){let r;return typeof e=="string"||typeof e=="number"?typeof t=="string"?r=this[_e][Bm]?.[e]?.[t]:r=this[_e][Bm]?.[e]:typeof e=="object"&&(r=this[_e][js]?.get(e)),r};qe.prototype.compileSerializationSchema=function(e,t=null,r=null){let{request:i}=this,{method:n,url:s}=i;if(this[_e][js]?.has(e))return this[_e][js].get(e);let a=(this[_e].serializerCompiler||this.server[Sw].serializerCompiler||this.server[Sw].setupSerializer(this.server[dce])||this.server[Sw].serializerCompiler)({schema:e,method:n,url:s,httpStatus:t,contentType:r});return this[_e][js]==null&&(this[_e][js]=new WeakMap),this[_e][js].set(e,a),a};qe.prototype.serializeInput=function(e,t,r,i){let n=r,s;if(r=typeof t=="string"||typeof t=="number"?t:r,i=r&&n!==r?n:i,r!=null){if(i!=null?s=this[_e][Bm]?.[r]?.[i]:s=this[_e][Bm]?.[r],s==null)throw i?new Tce(r,i):new Rce(r)}else this[_e][js]?.has(t)?s=this[_e][js].get(t):s=this.compileSerializationSchema(t,r,i);return s(e)};qe.prototype.serialize=function(e){return this[Vn]!==null?this[Vn](e):this[_e]&&this[_e][zm]?this[_e][zm](e,this.raw.statusCode):$L(this[_e],e,this.raw.statusCode)};qe.prototype.serializer=function(e){return this[Vn]=e,this};qe.prototype.type=function(e){return this[ze]["content-type"]=e,this};qe.prototype.redirect=function(e,t){if(typeof e=="number"){Ice();let r=t;t=e,e=r}return t||(t=this[Ow]?this.raw.statusCode:302),this.header("location",e).code(t).send()};qe.prototype.callNotFound=function(){return Mce(this),this};qe.prototype.getResponseTime=function(){return Pce(),this.elapsedTime};qe.prototype.then=function(e,t){if(this.sent){e();return}kw(this.raw,r=>{r&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"?t?t(r):this.log&&this.log.warn("unhandled rejection on reply.then"):e()})};function xL(e,t){e[_e].preSerialization!==null?gce(e[_e].preSerialization,e.request,e,t,EL):EL(null,e.request,e,t)}function EL(e,t,r,i){if(e!=null){Gu(r,e);return}try{r[Vn]!==null?i=r[Vn](i):r[_e]&&r[_e][zm]?i=r[_e][zm](i,r.raw.statusCode):i=$L(r[_e],i,r.raw.statusCode,r[ze]["content-type"])}catch(n){$ce(n,r),Gu(r,n);return}Wo(r,i)}function $ce(e,t){e.serialization=t[_e].config}function Wo(e,t){e[_e].onSend!==null?AL(e[_e].onSend,e.request,e,t,Fce):IL(e,t)}function Fce(e,t,r,i){e!=null?Gu(r,e):IL(r,i)}function Ew(e,t){let r=e.raw;try{r.writeHead(t,e[ze])}catch(i){throw i.code==="ERR_HTTP_HEADERS_SENT"&&e.log.warn(`Reply was already sent, did you forget to "return reply" in the "${e.request.raw.url}" (${e.request.raw.method}) route?`),i}}function IL(e,t){let r=e.raw,i=e.request;if(e[Nt]!==null){let s=Object.keys(e[Nt]),o="";for(let a of s)typeof e[Nt][a]=="function"&&(o+=" ",o+=a);e.header("Transfer-Encoding","chunked"),e.header("Trailer",o.trim())}if(PL.call(t)==="[object Response]"){if(typeof t.status=="number"&&e.code(t.status),typeof t.headers=="object"&&typeof t.headers.forEach=="function")for(let[s,o]of t.headers)e.header(s,o);if(t.body!==null&&t.bodyUsed)throw new bce;t=t.body}let n=r.statusCode;if(t==null){n>=200&&n!==204&&n!==304&&i.method!=="HEAD"&&e[Nt]===null&&(e[ze]["content-length"]="0"),Ew(e,n),Mm(t,r,e);return}if(n>=100&&n<200||n===204){e.removeHeader("content-type"),e.removeHeader("content-length"),Ew(e,n),Mm(void 0,r,e),typeof t.resume=="function"&&(t.on("error",FL),t.resume());return}if(typeof t.pipe=="function"){NL(t,r,e);return}if(typeof t.getReader=="function"){Lce(t,r,e);return}if(typeof t!="string"&&!Buffer.isBuffer(t))throw new _ce(typeof t);if(e[Nt]===null){let s=e[ze]["content-length"];(!s||i.raw.method!=="HEAD"&&Number(s)!==Buffer.byteLength(t))&&(e[ze]["content-length"]=""+Buffer.byteLength(t))}Ew(e,n),r.write(t),Mm(t,r,e)}function kL(e,t,r){t.code==="ERR_STREAM_PREMATURE_CLOSE"?e[OL]||e.info({res:r},"stream closed prematurely"):e.warn({err:t},"response terminated with an error with headers already sent")}function Lce(e,t,r){let i=fce.fromWeb(e);NL(i,t,r)}function NL(e,t,r){let i=!0,n=!1;if(Dce(e,t,r),kw(e,{readable:!0,writable:!1},function(s){i=!1,s!=null&&(t.headersSent||r.request.raw.aborted===!0?(n||(n=!0,kL(r.log,s,r)),t.destroy()):Gu(r,s))}),kw(t,function(s){i&&(s!=null&&t.headersSent&&!n&&(n=!0,kL(r.log,s,t)),typeof e.destroy=="function"?e.destroy():typeof e.close=="function"?e.close(FL):typeof e.abort=="function"?e.abort():r.log.warn("stream payload does not end properly"))}),t.headersSent)r.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let s in r[ze])t.setHeader(s,r[ze][s]);e.pipe(t)}function Mm(e,t,r){if(r[Nt]===null){t.end(null,null,null);return}let i=Object.keys(r[Nt]),n={},s=0,o=!0;function a(){s===0&&(t.addTrailers(n),t.end(null,null,null))}for(let l of i){let c=function(f,h){s++,f?r.log.debug(f):n[l]=h,process.nextTick(a)};if(typeof r[Nt][l]!="function")continue;o=!1,s--;let u=r[Nt][l](r,e,c);typeof u=="object"&&typeof u.then=="function"?u.then(f=>c(null,f),c):u!=null&&(Ace(),c(null,u))}o&&t.end(null,null,null)}function Dce(e,t,r){r[Nt]!==null&&e.on("end",()=>Mm(null,t,r))}function Gu(e,t,r){e[_e].onError!==null&&!e[hce]?(e[Aw]=!0,AL(e[_e].onError,e.request,e,t,()=>SL(e,t,r))):SL(e,t,r)}function jce(e){e[Wu]=Rw();let t=r=>{e[Tw]=Rw(),e.raw.removeListener("finish",t),e.raw.removeListener("error",t);let i=e[_e];i&&i.onResponse!==null?pce(i.onResponse,e.request,e,RL):RL(r,e.request,e)};e.raw.on("finish",t),e.raw.on("error",t)}function RL(e,t,r){if(r.log[OL])return;let i=r.elapsedTime;if(e!=null){r.log.error({res:r,err:e,responseTime:i},"request errored");return}r.log.info({res:r,responseTime:i},"request completed")}function qce(e){let t=e.props.slice();function r(i,n,s){this.raw=i,this[Um]=!1,this[TL]=!1,this[Vu]=!1,this[Vn]=null,this.request=n,this[ze]={},this[Nt]=null,this[Wu]=void 0,this[Tw]=void 0,this.log=s;for(var o,a=0;a<t.length;a++)o=t[a],this[o.key]=o.value}return Object.setPrototypeOf(r.prototype,e.prototype),Object.setPrototypeOf(r,e),r.parent=e,r.props=t,r}function Mce(e){if(e[_e][_L]===null){e.log.warn("Trying to send a NotFound error inside a 404 handler. Sending basic 404 response."),e.code(404).send("404 Not Found");return}e.request[_e]=e[_e][_L],e[_e].preHandler!==null?mce(e[_e].preHandler,e.request,e,wL.preHandlerCallback):wL.preHandlerCallback(null,e.request,e)}function $L(e,t,r,i){let n=vce(e,r,i);return n?n(t):JSON.stringify(t)}function FL(){}Hm.exports=qe;Hm.exports.buildReply=qce;Hm.exports.setupResponseListeners=jce});var DL=b((yqe,LL)=>{"use strict";LL.exports=zce;function zce(e){if(!e)throw new TypeError("argument req is required");var t=Bce(e.headers["x-forwarded-for"]||""),r=Uce(e),i=[r].concat(t);return i}function Uce(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}function Bce(e){for(var t=e.length,r=[],i=e.length,n=e.length-1;n>=0;n--)switch(e.charCodeAt(n)){case 32:i===t&&(i=t=n);break;case 44:i!==t&&r.push(e.substring(i,t)),i=t=n;break;default:i=n;break}return i!==t&&r.push(e.substring(i,t)),r}});var qL=b((jL,Yu)=>{(function(){var e,t,r,i,n,s,o,a,l;t={},a=this,typeof Yu<"u"&&Yu!==null&&Yu.exports?Yu.exports=t:a.ipaddr=t,o=function(c,u,f,h){var d,p;if(c.length!==u.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(d=0;h>0;){if(p=f-h,p<0&&(p=0),c[d]>>p!==u[d]>>p)return!1;h-=f,d+=1}return!0},t.subnetMatch=function(c,u,f){var h,d,p,m,y;f==null&&(f="unicast");for(p in u)for(m=u[p],m[0]&&!(m[0]instanceof Array)&&(m=[m]),h=0,d=m.length;h<d;h++)if(y=m[h],c.kind()===y[0].kind()&&c.match.apply(c,y))return p;return f},t.IPv4=function(){function c(u){var f,h,d;if(u.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");for(f=0,h=u.length;f<h;f++)if(d=u[f],!(0<=d&&d<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=u}return c.prototype.kind=function(){return"ipv4"},c.prototype.toString=function(){return this.octets.join(".")},c.prototype.toNormalizedString=function(){return this.toString()},c.prototype.toByteArray=function(){return this.octets.slice(0)},c.prototype.match=function(u,f){var h;if(f===void 0&&(h=u,u=h[0],f=h[1]),u.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return o(this.octets,u.octets,8,f)},c.prototype.SpecialRanges={unspecified:[[new c([0,0,0,0]),8]],broadcast:[[new c([255,255,255,255]),32]],multicast:[[new c([224,0,0,0]),4]],linkLocal:[[new c([169,254,0,0]),16]],loopback:[[new c([127,0,0,0]),8]],carrierGradeNat:[[new c([100,64,0,0]),10]],private:[[new c([10,0,0,0]),8],[new c([172,16,0,0]),12],[new c([192,168,0,0]),16]],reserved:[[new c([192,0,0,0]),24],[new c([192,0,2,0]),24],[new c([192,88,99,0]),24],[new c([198,51,100,0]),24],[new c([203,0,113,0]),24],[new c([240,0,0,0]),4]]},c.prototype.range=function(){return t.subnetMatch(this,this.SpecialRanges)},c.prototype.toIPv4MappedAddress=function(){return t.IPv6.parse("::ffff:"+this.toString())},c.prototype.prefixLengthFromSubnetMask=function(){var u,f,h,d,p,m,y;for(y={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},u=0,p=!1,f=h=3;h>=0;f=h+=-1)if(d=this.octets[f],d in y){if(m=y[d],p&&m!==0)return null;m!==8&&(p=!0),u+=m}else return null;return 32-u},c}(),r="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},t.IPv4.parser=function(c){var u,f,h,d,p;if(f=function(m){return m[0]==="0"&&m[1]!=="x"?parseInt(m,8):parseInt(m)},u=c.match(i.fourOctet))return function(){var m,y,_,w;for(_=u.slice(1,6),w=[],m=0,y=_.length;m<y;m++)h=_[m],w.push(f(h));return w}();if(u=c.match(i.longValue)){if(p=f(u[1]),p>4294967295||p<0)throw new Error("ipaddr: address outside defined range");return function(){var m,y;for(y=[],d=m=0;m<=24;d=m+=8)y.push(p>>d&255);return y}().reverse()}else return null},t.IPv6=function(){function c(u,f){var h,d,p,m,y,_;if(u.length===16)for(this.parts=[],h=d=0;d<=14;h=d+=2)this.parts.push(u[h]<<8|u[h+1]);else if(u.length===8)this.parts=u;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(_=this.parts,p=0,m=_.length;p<m;p++)if(y=_[p],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");f&&(this.zoneId=f)}return c.prototype.kind=function(){return"ipv6"},c.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},c.prototype.toRFC5952String=function(){var u,f,h,d,p;for(d=/((^|:)(0(:|$)){2,})/g,p=this.toNormalizedString(),u=0,f=-1;h=d.exec(p);)h[0].length>f&&(u=h.index,f=h[0].length);return f<0?p:p.substring(0,u)+"::"+p.substring(u+f)},c.prototype.toByteArray=function(){var u,f,h,d,p;for(u=[],p=this.parts,f=0,h=p.length;f<h;f++)d=p[f],u.push(d>>8),u.push(d&255);return u},c.prototype.toNormalizedString=function(){var u,f,h;return u=function(){var d,p,m,y;for(m=this.parts,y=[],d=0,p=m.length;d<p;d++)f=m[d],y.push(f.toString(16));return y}.call(this).join(":"),h="",this.zoneId&&(h="%"+this.zoneId),u+h},c.prototype.toFixedLengthString=function(){var u,f,h;return u=function(){var d,p,m,y;for(m=this.parts,y=[],d=0,p=m.length;d<p;d++)f=m[d],y.push(f.toString(16).padStart(4,"0"));return y}.call(this).join(":"),h="",this.zoneId&&(h="%"+this.zoneId),u+h},c.prototype.match=function(u,f){var h;if(f===void 0&&(h=u,u=h[0],f=h[1]),u.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return o(this.parts,u.parts,16,f)},c.prototype.SpecialRanges={unspecified:[new c([0,0,0,0,0,0,0,0]),128],linkLocal:[new c([65152,0,0,0,0,0,0,0]),10],multicast:[new c([65280,0,0,0,0,0,0,0]),8],loopback:[new c([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new c([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new c([0,0,0,0,0,65535,0,0]),96],rfc6145:[new c([0,0,0,0,65535,0,0,0]),96],rfc6052:[new c([100,65435,0,0,0,0,0,0]),96],"6to4":[new c([8194,0,0,0,0,0,0,0]),16],teredo:[new c([8193,0,0,0,0,0,0,0]),32],reserved:[[new c([8193,3512,0,0,0,0,0,0]),32]]},c.prototype.range=function(){return t.subnetMatch(this,this.SpecialRanges)},c.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},c.prototype.toIPv4Address=function(){var u,f,h;if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");return h=this.parts.slice(-2),u=h[0],f=h[1],new t.IPv4([u>>8,u&255,f>>8,f&255])},c.prototype.prefixLengthFromSubnetMask=function(){var u,f,h,d,p,m,y;for(y={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},u=0,p=!1,f=h=7;h>=0;f=h+=-1)if(d=this.parts[f],d in y){if(m=y[d],p&&m!==0)return null;m!==16&&(p=!0),u+=m}else return null;return 128-u},c}(),n="(?:[0-9a-f]+::?)+",l="%[0-9a-z]{1,}",s={zoneIndex:new RegExp(l,"i"),native:new RegExp("^(::)?("+n+")?([0-9a-f]+)?(::)?("+l+")?$","i"),transitional:new RegExp("^((?:"+n+")|(?:::)(?:"+n+")?)"+(r+"\\."+r+"\\."+r+"\\."+r)+("("+l+")?$"),"i")},e=function(c,u){var f,h,d,p,m,y;if(c.indexOf("::")!==c.lastIndexOf("::"))return null;for(y=(c.match(s.zoneIndex)||[])[0],y&&(y=y.substring(1),c=c.replace(/%.+$/,"")),f=0,h=-1;(h=c.indexOf(":",h+1))>=0;)f++;if(c.substr(0,2)==="::"&&f--,c.substr(-2,2)==="::"&&f--,f>u)return null;for(m=u-f,p=":";m--;)p+="0:";return c=c.replace("::",p),c[0]===":"&&(c=c.slice(1)),c[c.length-1]===":"&&(c=c.slice(0,-1)),u=function(){var _,w,v,g;for(v=c.split(":"),g=[],_=0,w=v.length;_<w;_++)d=v[_],g.push(parseInt(d,16));return g}(),{parts:u,zoneId:y}},t.IPv6.parser=function(c){var u,f,h,d,p,m,y;if(s.native.test(c))return e(c,8);if((d=c.match(s.transitional))&&(y=d[6]||"",u=e(d[1].slice(0,-1)+y,6),u.parts)){for(m=[parseInt(d[2]),parseInt(d[3]),parseInt(d[4]),parseInt(d[5])],f=0,h=m.length;f<h;f++)if(p=m[f],!(0<=p&&p<=255))return null;return u.parts.push(m[0]<<8|m[1]),u.parts.push(m[2]<<8|m[3]),{parts:u.parts,zoneId:u.zoneId}}return null},t.IPv4.isIPv4=t.IPv6.isIPv6=function(c){return this.parser(c)!==null},t.IPv4.isValid=function(c){var u;try{return new this(this.parser(c)),!0}catch(f){return u=f,!1}},t.IPv4.isValidFourPartDecimal=function(c){return!!(t.IPv4.isValid(c)&&c.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},t.IPv6.isValid=function(c){var u,f;if(typeof c=="string"&&c.indexOf(":")===-1)return!1;try{return u=this.parser(c),new this(u.parts,u.zoneId),!0}catch(h){return f=h,!1}},t.IPv4.parse=function(c){var u;if(u=this.parser(c),u===null)throw new Error("ipaddr: string is not formatted like ip address");return new this(u)},t.IPv6.parse=function(c){var u;if(u=this.parser(c),u.parts===null)throw new Error("ipaddr: string is not formatted like ip address");return new this(u.parts,u.zoneId)},t.IPv4.parseCIDR=function(c){var u,f,h;if((f=c.match(/^(.+)\/(\d+)$/))&&(u=parseInt(f[2]),u>=0&&u<=32))return h=[this.parse(f[1]),u],Object.defineProperty(h,"toString",{value:function(){return this.join("/")}}),h;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},t.IPv4.subnetMaskFromPrefixLength=function(c){var u,f,h;if(c=parseInt(c),c<0||c>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(h=[0,0,0,0],f=0,u=Math.floor(c/8);f<u;)h[f]=255,f++;return u<4&&(h[u]=Math.pow(2,c%8)-1<<8-c%8),new this(h)},t.IPv4.broadcastAddressFromCIDR=function(c){var u,f,h,d,p,m;try{for(u=this.parseCIDR(c),d=u[0].toByteArray(),m=this.subnetMaskFromPrefixLength(u[1]).toByteArray(),p=[],h=0;h<4;)p.push(parseInt(d[h],10)|parseInt(m[h],10)^255),h++;return new this(p)}catch(y){throw f=y,new Error("ipaddr: the address does not have IPv4 CIDR format")}},t.IPv4.networkAddressFromCIDR=function(c){var u,f,h,d,p,m;try{for(u=this.parseCIDR(c),d=u[0].toByteArray(),m=this.subnetMaskFromPrefixLength(u[1]).toByteArray(),p=[],h=0;h<4;)p.push(parseInt(d[h],10)&parseInt(m[h],10)),h++;return new this(p)}catch(y){throw f=y,new Error("ipaddr: the address does not have IPv4 CIDR format")}},t.IPv6.parseCIDR=function(c){var u,f,h;if((f=c.match(/^(.+)\/(\d+)$/))&&(u=parseInt(f[2]),u>=0&&u<=128))return h=[this.parse(f[1]),u],Object.defineProperty(h,"toString",{value:function(){return this.join("/")}}),h;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},t.isValid=function(c){return t.IPv6.isValid(c)||t.IPv4.isValid(c)},t.parse=function(c){if(t.IPv6.isValid(c))return t.IPv6.parse(c);if(t.IPv4.isValid(c))return t.IPv4.parse(c);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},t.parseCIDR=function(c){var u;try{return t.IPv6.parseCIDR(c)}catch(f){u=f;try{return t.IPv4.parseCIDR(c)}catch(h){throw u=h,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},t.fromByteArray=function(c){var u;if(u=c.length,u===4)return new t.IPv4(c);if(u===16)return new t.IPv6(c);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},t.process=function(c){var u;return u=this.parse(c),u.kind()==="ipv6"&&u.isIPv4MappedAddress()?u.toIPv4Address():u}}).call(jL)});var HL=b((vqe,Ym)=>{"use strict";Ym.exports=Jce;Ym.exports.all=UL;Ym.exports.compile=BL;var Hce=DL(),zL=qL(),Vce=/^[0-9]+$/,Wm=zL.isValid,Gm=zL.parse,ML={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function UL(e,t){var r=Hce(e);if(!t)return r;typeof t!="function"&&(t=BL(t));for(var i=0;i<r.length-1;i++)t(r[i],i)||(r.length=i+1);return r}function BL(e){if(!e)throw new TypeError("argument is required");var t;if(typeof e=="string")t=[e];else if(Array.isArray(e))t=e.slice();else throw new TypeError("unsupported trust argument");for(var r=0;r<t.length;r++)e=t[r],Object.prototype.hasOwnProperty.call(ML,e)&&(e=ML[e],t.splice.apply(t,[r,1].concat(e)),r+=e.length-1);return Gce(Wce(t))}function Wce(e){for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=Yce(e[r]);return t}function Gce(e){var t=e.length;return t===0?Zce:t===1?Qce(e[0]):Xce(e)}function Yce(e){var t=e.lastIndexOf("/"),r=t!==-1?e.substring(0,t):e;if(!Wm(r))throw new TypeError("invalid IP address: "+r);var i=Gm(r);t===-1&&i.kind()==="ipv6"&&i.isIPv4MappedAddress()&&(i=i.toIPv4Address());var n=i.kind()==="ipv6"?128:32,s=t!==-1?e.substring(t+1,e.length):null;if(s===null?s=n:Vce.test(s)?s=parseInt(s,10):i.kind()==="ipv4"&&Wm(s)?s=Kce(s):s=null,s<=0||s>n)throw new TypeError("invalid range on address: "+e);return[i,s]}function Kce(e){var t=Gm(e),r=t.kind();return r==="ipv4"?t.prefixLengthFromSubnetMask():null}function Jce(e,t){if(!e)throw new TypeError("req argument is required");if(!t)throw new TypeError("trust argument is required");var r=UL(e,t),i=r[r.length-1];return i}function Zce(){return!1}function Xce(e){return function(r){if(!Wm(r))return!1;for(var i=Gm(r),n,s=i.kind(),o=0;o<e.length;o++){var a=e[o],l=a[0],c=l.kind(),u=a[1],f=i;if(s!==c){if(c==="ipv4"&&!i.isIPv4MappedAddress())continue;n||(n=c==="ipv4"?i.toIPv4Address():i.toIPv4MappedAddress()),f=n}if(f.match(l,u))return!0}return!1}}function Qce(e){var t=e[0],r=t.kind(),i=r==="ipv4",n=e[1];return function(o){if(!Wm(o))return!1;var a=Gm(o),l=a.kind();if(l!==r){if(i&&!a.isIPv4MappedAddress())return!1;a=i?a.toIPv4Address():a.toIPv4MappedAddress()}return a.match(t,n)}}});var Ku=b((_qe,VL)=>{"use strict";var eue="2.0.0",tue=Number.MAX_SAFE_INTEGER||9007199254740991,rue=16,iue=250,nue=["major","premajor","minor","preminor","patch","prepatch","prerelease"];VL.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rue,MAX_SAFE_BUILD_LENGTH:iue,MAX_SAFE_INTEGER:tue,RELEASE_TYPES:nue,SEMVER_SPEC_VERSION:eue,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ju=b((bqe,WL)=>{"use strict";var sue=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};WL.exports=sue});var xl=b((cn,GL)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Cw,MAX_SAFE_BUILD_LENGTH:oue,MAX_LENGTH:aue}=Ku(),lue=Ju();cn=GL.exports={};var cue=cn.re=[],uue=cn.safeRe=[],ee=cn.src=[],fue=cn.safeSrc=[],te=cn.t={},hue=0,Pw="[a-zA-Z0-9-]",due=[["\\s",1],["\\d",aue],[Pw,oue]],pue=e=>{for(let[t,r]of due)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},pe=(e,t,r)=>{let i=pue(t),n=hue++;lue(e,n,t),te[e]=n,ee[n]=t,fue[n]=i,cue[n]=new RegExp(t,r?"g":void 0),uue[n]=new RegExp(i,r?"g":void 0)};pe("NUMERICIDENTIFIER","0|[1-9]\\d*");pe("NUMERICIDENTIFIERLOOSE","\\d+");pe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Pw}*`);pe("MAINVERSION",`(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})`);pe("MAINVERSIONLOOSE",`(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})`);pe("PRERELEASEIDENTIFIER",`(?:${ee[te.NONNUMERICIDENTIFIER]}|${ee[te.NUMERICIDENTIFIER]})`);pe("PRERELEASEIDENTIFIERLOOSE",`(?:${ee[te.NONNUMERICIDENTIFIER]}|${ee[te.NUMERICIDENTIFIERLOOSE]})`);pe("PRERELEASE",`(?:-(${ee[te.PRERELEASEIDENTIFIER]}(?:\\.${ee[te.PRERELEASEIDENTIFIER]})*))`);pe("PRERELEASELOOSE",`(?:-?(${ee[te.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ee[te.PRERELEASEIDENTIFIERLOOSE]})*))`);pe("BUILDIDENTIFIER",`${Pw}+`);pe("BUILD",`(?:\\+(${ee[te.BUILDIDENTIFIER]}(?:\\.${ee[te.BUILDIDENTIFIER]})*))`);pe("FULLPLAIN",`v?${ee[te.MAINVERSION]}${ee[te.PRERELEASE]}?${ee[te.BUILD]}?`);pe("FULL",`^${ee[te.FULLPLAIN]}$`);pe("LOOSEPLAIN",`[v=\\s]*${ee[te.MAINVERSIONLOOSE]}${ee[te.PRERELEASELOOSE]}?${ee[te.BUILD]}?`);pe("LOOSE",`^${ee[te.LOOSEPLAIN]}$`);pe("GTLT","((?:<|>)?=?)");pe("XRANGEIDENTIFIERLOOSE",`${ee[te.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);pe("XRANGEIDENTIFIER",`${ee[te.NUMERICIDENTIFIER]}|x|X|\\*`);pe("XRANGEPLAIN",`[v=\\s]*(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:${ee[te.PRERELEASE]})?${ee[te.BUILD]}?)?)?`);pe("XRANGEPLAINLOOSE",`[v=\\s]*(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:${ee[te.PRERELEASELOOSE]})?${ee[te.BUILD]}?)?)?`);pe("XRANGE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAIN]}$`);pe("XRANGELOOSE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAINLOOSE]}$`);pe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Cw}})(?:\\.(\\d{1,${Cw}}))?(?:\\.(\\d{1,${Cw}}))?`);pe("COERCE",`${ee[te.COERCEPLAIN]}(?:$|[^\\d])`);pe("COERCEFULL",ee[te.COERCEPLAIN]+`(?:${ee[te.PRERELEASE]})?(?:${ee[te.BUILD]})?(?:$|[^\\d])`);pe("COERCERTL",ee[te.COERCE],!0);pe("COERCERTLFULL",ee[te.COERCEFULL],!0);pe("LONETILDE","(?:~>?)");pe("TILDETRIM",`(\\s*)${ee[te.LONETILDE]}\\s+`,!0);cn.tildeTrimReplace="$1~";pe("TILDE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAIN]}$`);pe("TILDELOOSE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAINLOOSE]}$`);pe("LONECARET","(?:\\^)");pe("CARETTRIM",`(\\s*)${ee[te.LONECARET]}\\s+`,!0);cn.caretTrimReplace="$1^";pe("CARET",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAIN]}$`);pe("CARETLOOSE",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAINLOOSE]}$`);pe("COMPARATORLOOSE",`^${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]})$|^$`);pe("COMPARATOR",`^${ee[te.GTLT]}\\s*(${ee[te.FULLPLAIN]})$|^$`);pe("COMPARATORTRIM",`(\\s*)${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]}|${ee[te.XRANGEPLAIN]})`,!0);cn.comparatorTrimReplace="$1$2$3";pe("HYPHENRANGE",`^\\s*(${ee[te.XRANGEPLAIN]})\\s+-\\s+(${ee[te.XRANGEPLAIN]})\\s*$`);pe("HYPHENRANGELOOSE",`^\\s*(${ee[te.XRANGEPLAINLOOSE]})\\s+-\\s+(${ee[te.XRANGEPLAINLOOSE]})\\s*$`);pe("STAR","(<|>)?=?\\s*\\*");pe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");pe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Km=b((wqe,YL)=>{"use strict";var mue=Object.freeze({loose:!0}),gue=Object.freeze({}),yue=e=>e?typeof e!="object"?mue:e:gue;YL.exports=yue});var Iw=b((Sqe,ZL)=>{"use strict";var KL=/^[0-9]+$/,JL=(e,t)=>{let r=KL.test(e),i=KL.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},vue=(e,t)=>JL(t,e);ZL.exports={compareIdentifiers:JL,rcompareIdentifiers:vue}});var nr=b((xqe,QL)=>{"use strict";var Jm=Ju(),{MAX_LENGTH:XL,MAX_SAFE_INTEGER:Zm}=Ku(),{safeRe:Xm,t:Qm}=xl(),_ue=Km(),{compareIdentifiers:El}=Iw(),Nw=class e{constructor(t,r){if(r=_ue(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>XL)throw new TypeError(`version is longer than ${XL} characters`);Jm("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?Xm[Qm.LOOSE]:Xm[Qm.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Zm||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zm||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zm||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let s=+n;if(s>=0&&s<Zm)return s}return n}):this.prerelease=[],this.build=i[5]?i[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(Jm("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),El(this.major,t.major)||El(this.minor,t.minor)||El(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(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{let i=this.prerelease[r],n=t.prerelease[r];if(Jm("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return El(i,n)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let i=this.build[r],n=t.build[r];if(Jm("build compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return El(i,n)}while(++r)}inc(t,r,i){if(t.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?Xm[Qm.PRERELEASELOOSE]:Xm[Qm.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{let n=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let s=[r,n];i===!1&&(s=[r]),El(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};QL.exports=Nw});var Go=b((Eqe,tD)=>{"use strict";var eD=nr(),bue=(e,t,r=!1)=>{if(e instanceof eD)return e;try{return new eD(e,t)}catch(i){if(!r)return null;throw i}};tD.exports=bue});var iD=b((kqe,rD)=>{"use strict";var wue=Go(),Sue=(e,t)=>{let r=wue(e,t);return r?r.version:null};rD.exports=Sue});var sD=b((Rqe,nD)=>{"use strict";var xue=Go(),Eue=(e,t)=>{let r=xue(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};nD.exports=Eue});var lD=b((Tqe,aD)=>{"use strict";var oD=nr(),kue=(e,t,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new oD(e instanceof oD?e.version:e,r).inc(t,i,n).version}catch{return null}};aD.exports=kue});var fD=b((Oqe,uD)=>{"use strict";var cD=Go(),Rue=(e,t)=>{let r=cD(e,null,!0),i=cD(t,null,!0),n=r.compare(i);if(n===0)return null;let s=n>0,o=s?r:i,a=s?i:r,l=!!o.prerelease.length;if(!!a.prerelease.length&&!l){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"};uD.exports=Rue});var dD=b((Aqe,hD)=>{"use strict";var Tue=nr(),Oue=(e,t)=>new Tue(e,t).major;hD.exports=Oue});var mD=b((Cqe,pD)=>{"use strict";var Aue=nr(),Cue=(e,t)=>new Aue(e,t).minor;pD.exports=Cue});var yD=b((Pqe,gD)=>{"use strict";var Pue=nr(),Iue=(e,t)=>new Pue(e,t).patch;gD.exports=Iue});var _D=b((Iqe,vD)=>{"use strict";var Nue=Go(),$ue=(e,t)=>{let r=Nue(e,t);return r&&r.prerelease.length?r.prerelease:null};vD.exports=$ue});var oi=b((Nqe,wD)=>{"use strict";var bD=nr(),Fue=(e,t,r)=>new bD(e,r).compare(new bD(t,r));wD.exports=Fue});var xD=b(($qe,SD)=>{"use strict";var Lue=oi(),Due=(e,t,r)=>Lue(t,e,r);SD.exports=Due});var kD=b((Fqe,ED)=>{"use strict";var jue=oi(),que=(e,t)=>jue(e,t,!0);ED.exports=que});var eg=b((Lqe,TD)=>{"use strict";var RD=nr(),Mue=(e,t,r)=>{let i=new RD(e,r),n=new RD(t,r);return i.compare(n)||i.compareBuild(n)};TD.exports=Mue});var AD=b((Dqe,OD)=>{"use strict";var zue=eg(),Uue=(e,t)=>e.sort((r,i)=>zue(r,i,t));OD.exports=Uue});var PD=b((jqe,CD)=>{"use strict";var Bue=eg(),Hue=(e,t)=>e.sort((r,i)=>Bue(i,r,t));CD.exports=Hue});var Zu=b((qqe,ID)=>{"use strict";var Vue=oi(),Wue=(e,t,r)=>Vue(e,t,r)>0;ID.exports=Wue});var tg=b((Mqe,ND)=>{"use strict";var Gue=oi(),Yue=(e,t,r)=>Gue(e,t,r)<0;ND.exports=Yue});var $w=b((zqe,$D)=>{"use strict";var Kue=oi(),Jue=(e,t,r)=>Kue(e,t,r)===0;$D.exports=Jue});var Fw=b((Uqe,FD)=>{"use strict";var Zue=oi(),Xue=(e,t,r)=>Zue(e,t,r)!==0;FD.exports=Xue});var rg=b((Bqe,LD)=>{"use strict";var Que=oi(),efe=(e,t,r)=>Que(e,t,r)>=0;LD.exports=efe});var ig=b((Hqe,DD)=>{"use strict";var tfe=oi(),rfe=(e,t,r)=>tfe(e,t,r)<=0;DD.exports=rfe});var Lw=b((Vqe,jD)=>{"use strict";var ife=$w(),nfe=Fw(),sfe=Zu(),ofe=rg(),afe=tg(),lfe=ig(),cfe=(e,t,r,i)=>{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 ife(e,r,i);case"!=":return nfe(e,r,i);case">":return sfe(e,r,i);case">=":return ofe(e,r,i);case"<":return afe(e,r,i);case"<=":return lfe(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};jD.exports=cfe});var MD=b((Wqe,qD)=>{"use strict";var ufe=nr(),ffe=Go(),{safeRe:ng,t:sg}=xl(),hfe=(e,t)=>{if(e instanceof ufe)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(t.includePrerelease?ng[sg.COERCEFULL]:ng[sg.COERCE]);else{let l=t.includePrerelease?ng[sg.COERCERTLFULL]:ng[sg.COERCERTL],c;for(;(c=l.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(r===null)return null;let i=r[2],n=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return ffe(`${i}.${n}.${s}${o}${a}`,t)};qD.exports=hfe});var UD=b((Gqe,zD)=>{"use strict";var Dw=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(t,r)}return this}};zD.exports=Dw});var ai=b((Yqe,WD)=>{"use strict";var dfe=/\s+/g,jw=class e{constructor(t,r){if(r=mfe(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof qw)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(dfe," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!HD(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Sfe(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let i=((this.options.includePrerelease&&bfe)|(this.options.loose&&wfe))+":"+t,n=BD.get(i);if(n)return n;let s=this.options.loose,o=s?Dr[br.HYPHENRANGELOOSE]:Dr[br.HYPHENRANGE];t=t.replace(o,Ife(this.options.includePrerelease)),We("hyphen replace",t),t=t.replace(Dr[br.COMPARATORTRIM],yfe),We("comparator trim",t),t=t.replace(Dr[br.TILDETRIM],vfe),We("tilde trim",t),t=t.replace(Dr[br.CARETTRIM],_fe),We("caret trim",t);let a=t.split(" ").map(f=>xfe(f,this.options)).join(" ").split(/\s+/).map(f=>Pfe(f,this.options));s&&(a=a.filter(f=>(We("loose invalid filter",f,this.options),!!f.match(Dr[br.COMPARATORLOOSE])))),We("range list",a);let l=new Map,c=a.map(f=>new qw(f,this.options));for(let f of c){if(HD(f))return[f];l.set(f.value,f)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return BD.set(i,u),u}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>VD(i,r)&&t.set.some(n=>VD(n,r)&&i.every(s=>n.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new gfe(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Nfe(this.set[r],t,this.options))return!0;return!1}};WD.exports=jw;var pfe=UD(),BD=new pfe,mfe=Km(),qw=Xu(),We=Ju(),gfe=nr(),{safeRe:Dr,t:br,comparatorTrimReplace:yfe,tildeTrimReplace:vfe,caretTrimReplace:_fe}=xl(),{FLAG_INCLUDE_PRERELEASE:bfe,FLAG_LOOSE:wfe}=Ku(),HD=e=>e.value==="<0.0.0-0",Sfe=e=>e.value==="",VD=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,t)),n=i.pop();return r},xfe=(e,t)=>(We("comp",e,t),e=Rfe(e,t),We("caret",e),e=Efe(e,t),We("tildes",e),e=Ofe(e,t),We("xrange",e),e=Cfe(e,t),We("stars",e),e),wr=e=>!e||e.toLowerCase()==="x"||e==="*",Efe=(e,t)=>e.trim().split(/\s+/).map(r=>kfe(r,t)).join(" "),kfe=(e,t)=>{let r=t.loose?Dr[br.TILDELOOSE]:Dr[br.TILDE];return e.replace(r,(i,n,s,o,a)=>{We("tilde",e,i,n,s,o,a);let l;return wr(n)?l="":wr(s)?l=`>=${n}.0.0 <${+n+1}.0.0-0`:wr(o)?l=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:a?(We("replaceTilde pr",a),l=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`):l=`>=${n}.${s}.${o} <${n}.${+s+1}.0-0`,We("tilde return",l),l})},Rfe=(e,t)=>e.trim().split(/\s+/).map(r=>Tfe(r,t)).join(" "),Tfe=(e,t)=>{We("caret",e,t);let r=t.loose?Dr[br.CARETLOOSE]:Dr[br.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,s,o,a,l)=>{We("caret",e,n,s,o,a,l);let c;return wr(s)?c="":wr(o)?c=`>=${s}.0.0${i} <${+s+1}.0.0-0`:wr(a)?s==="0"?c=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:l?(We("replaceCaret pr",l),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${l} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${l} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${l} <${+s+1}.0.0-0`):(We("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${i} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),We("caret return",c),c})},Ofe=(e,t)=>(We("replaceXRanges",e,t),e.split(/\s+/).map(r=>Afe(r,t)).join(" ")),Afe=(e,t)=>{e=e.trim();let r=t.loose?Dr[br.XRANGELOOSE]:Dr[br.XRANGE];return e.replace(r,(i,n,s,o,a,l)=>{We("xRange",e,i,n,s,o,a,l);let c=wr(s),u=c||wr(o),f=u||wr(a),h=f;return n==="="&&h&&(n=""),l=t.includePrerelease?"-0":"",c?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&h?(u&&(o=0),a=0,n===">"?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):n==="<="&&(n="<",u?s=+s+1:o=+o+1),n==="<"&&(l="-0"),i=`${n+s}.${o}.${a}${l}`):u?i=`>=${s}.0.0${l} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${o}.0${l} <${s}.${+o+1}.0-0`),We("xRange return",i),i})},Cfe=(e,t)=>(We("replaceStars",e,t),e.trim().replace(Dr[br.STAR],"")),Pfe=(e,t)=>(We("replaceGTE0",e,t),e.trim().replace(Dr[t.includePrerelease?br.GTE0PRE:br.GTE0],"")),Ife=e=>(t,r,i,n,s,o,a,l,c,u,f,h)=>(wr(i)?r="":wr(n)?r=`>=${i}.0.0${e?"-0":""}`:wr(s)?r=`>=${i}.${n}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,wr(c)?l="":wr(u)?l=`<${+c+1}.0.0-0`:wr(f)?l=`<${c}.${+u+1}.0-0`:h?l=`<=${c}.${u}.${f}-${h}`:e?l=`<${c}.${u}.${+f+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),Nfe=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(We(e[i].semver),e[i].semver!==qw.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}});var Xu=b((Kqe,XD)=>{"use strict";var Qu=Symbol("SemVer ANY"),Uw=class e{static get ANY(){return Qu}constructor(t,r){if(r=GD(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),zw("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Qu?this.value="":this.value=this.operator+this.semver.version,zw("comp",this)}parse(t){let r=this.options.loose?YD[KD.COMPARATORLOOSE]:YD[KD.COMPARATOR],i=t.match(r);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new JD(i[2],this.options.loose):this.semver=Qu}toString(){return this.value}test(t){if(zw("Comparator.test",t,this.options.loose),this.semver===Qu||t===Qu)return!0;if(typeof t=="string")try{t=new JD(t,this.options)}catch{return!1}return Mw(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ZD(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new ZD(this.value,r).test(t.semver):(r=GD(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Mw(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Mw(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};XD.exports=Uw;var GD=Km(),{safeRe:YD,t:KD}=xl(),Mw=Lw(),zw=Ju(),JD=nr(),ZD=ai()});var ef=b((Jqe,QD)=>{"use strict";var $fe=ai(),Ffe=(e,t,r)=>{try{t=new $fe(t,r)}catch{return!1}return t.test(e)};QD.exports=Ffe});var tj=b((Zqe,ej)=>{"use strict";var Lfe=ai(),Dfe=(e,t)=>new Lfe(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));ej.exports=Dfe});var ij=b((Xqe,rj)=>{"use strict";var jfe=nr(),qfe=ai(),Mfe=(e,t,r)=>{let i=null,n=null,s=null;try{s=new qfe(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||n.compare(o)===-1)&&(i=o,n=new jfe(i,r))}),i};rj.exports=Mfe});var sj=b((Qqe,nj)=>{"use strict";var zfe=nr(),Ufe=ai(),Bfe=(e,t,r)=>{let i=null,n=null,s=null;try{s=new Ufe(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!i||n.compare(o)===1)&&(i=o,n=new zfe(i,r))}),i};nj.exports=Bfe});var lj=b((eMe,aj)=>{"use strict";var Bw=nr(),Hfe=ai(),oj=Zu(),Vfe=(e,t)=>{e=new Hfe(e,t);let r=new Bw("0.0.0");if(e.test(r)||(r=new Bw("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){let n=e.set[i],s=null;n.forEach(o=>{let a=new Bw(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||oj(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||oj(r,s))&&(r=s)}return r&&e.test(r)?r:null};aj.exports=Vfe});var uj=b((tMe,cj)=>{"use strict";var Wfe=ai(),Gfe=(e,t)=>{try{return new Wfe(e,t).range||"*"}catch{return null}};cj.exports=Gfe});var og=b((rMe,pj)=>{"use strict";var Yfe=nr(),dj=Xu(),{ANY:Kfe}=dj,Jfe=ai(),Zfe=ef(),fj=Zu(),hj=tg(),Xfe=ig(),Qfe=rg(),ehe=(e,t,r,i)=>{e=new Yfe(e,i),t=new Jfe(t,i);let n,s,o,a,l;switch(r){case">":n=fj,s=Xfe,o=hj,a=">",l=">=";break;case"<":n=hj,s=Qfe,o=fj,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Zfe(e,t,i))return!1;for(let c=0;c<t.set.length;++c){let u=t.set[c],f=null,h=null;if(u.forEach(d=>{d.semver===Kfe&&(d=new dj(">=0.0.0")),f=f||d,h=h||d,n(d.semver,f.semver,i)?f=d:o(d.semver,h.semver,i)&&(h=d)}),f.operator===a||f.operator===l||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===l&&o(e,h.semver))return!1}return!0};pj.exports=ehe});var gj=b((iMe,mj)=>{"use strict";var the=og(),rhe=(e,t,r)=>the(e,t,">",r);mj.exports=rhe});var vj=b((nMe,yj)=>{"use strict";var ihe=og(),nhe=(e,t,r)=>ihe(e,t,"<",r);yj.exports=nhe});var wj=b((sMe,bj)=>{"use strict";var _j=ai(),she=(e,t,r)=>(e=new _j(e,r),t=new _j(t,r),e.intersects(t,r));bj.exports=she});var xj=b((oMe,Sj)=>{"use strict";var ohe=ef(),ahe=oi();Sj.exports=(e,t,r)=>{let i=[],n=null,s=null,o=e.sort((u,f)=>ahe(u,f,r));for(let u of o)ohe(u,t,r)?(s=u,n||(n=u)):(s&&i.push([n,s]),s=null,n=null);n&&i.push([n,null]);let a=[];for(let[u,f]of i)u===f?a.push(u):!f&&u===o[0]?a.push("*"):f?u===o[0]?a.push(`<=${f}`):a.push(`${u} - ${f}`):a.push(`>=${u}`);let l=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return l.length<c.length?l:t}});var Aj=b((aMe,Oj)=>{"use strict";var Ej=ai(),Vw=Xu(),{ANY:Hw}=Vw,tf=ef(),Ww=oi(),lhe=(e,t,r={})=>{if(e===t)return!0;e=new Ej(e,r),t=new Ej(t,r);let i=!1;e:for(let n of e.set){for(let s of t.set){let o=uhe(n,s,r);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},che=[new Vw(">=0.0.0-0")],kj=[new Vw(">=0.0.0")],uhe=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Hw){if(t.length===1&&t[0].semver===Hw)return!0;r.includePrerelease?e=che:e=kj}if(t.length===1&&t[0].semver===Hw){if(r.includePrerelease)return!0;t=kj}let i=new Set,n,s;for(let d of e)d.operator===">"||d.operator===">="?n=Rj(n,d,r):d.operator==="<"||d.operator==="<="?s=Tj(s,d,r):i.add(d.semver);if(i.size>1)return null;let o;if(n&&s){if(o=Ww(n.semver,s.semver,r),o>0)return null;if(o===0&&(n.operator!==">="||s.operator!=="<="))return null}for(let d of i){if(n&&!tf(d,String(n),r)||s&&!tf(d,String(s),r))return null;for(let p of t)if(!tf(d,String(p),r))return!1;return!0}let a,l,c,u,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of t){if(u=u||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",n){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=Rj(n,d,r),a===d&&a!==n)return!1}else if(n.operator===">="&&!tf(n.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(l=Tj(s,d,r),l===d&&l!==s)return!1}else if(s.operator==="<="&&!tf(s.semver,String(d),r))return!1}if(!d.operator&&(s||n)&&o!==0)return!1}return!(n&&c&&!s&&o!==0||s&&u&&!n&&o!==0||h||f)},Rj=(e,t,r)=>{if(!e)return t;let i=Ww(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},Tj=(e,t,r)=>{if(!e)return t;let i=Ww(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};Oj.exports=lhe});var Yw=b((lMe,Ij)=>{"use strict";var Gw=xl(),Cj=Ku(),fhe=nr(),Pj=Iw(),hhe=Go(),dhe=iD(),phe=sD(),mhe=lD(),ghe=fD(),yhe=dD(),vhe=mD(),_he=yD(),bhe=_D(),whe=oi(),She=xD(),xhe=kD(),Ehe=eg(),khe=AD(),Rhe=PD(),The=Zu(),Ohe=tg(),Ahe=$w(),Che=Fw(),Phe=rg(),Ihe=ig(),Nhe=Lw(),$he=MD(),Fhe=Xu(),Lhe=ai(),Dhe=ef(),jhe=tj(),qhe=ij(),Mhe=sj(),zhe=lj(),Uhe=uj(),Bhe=og(),Hhe=gj(),Vhe=vj(),Whe=wj(),Ghe=xj(),Yhe=Aj();Ij.exports={parse:hhe,valid:dhe,clean:phe,inc:mhe,diff:ghe,major:yhe,minor:vhe,patch:_he,prerelease:bhe,compare:whe,rcompare:She,compareLoose:xhe,compareBuild:Ehe,sort:khe,rsort:Rhe,gt:The,lt:Ohe,eq:Ahe,neq:Che,gte:Phe,lte:Ihe,cmp:Nhe,coerce:$he,Comparator:Fhe,Range:Lhe,satisfies:Dhe,toComparators:jhe,maxSatisfying:qhe,minSatisfying:Mhe,minVersion:zhe,validRange:Uhe,outside:Bhe,gtr:Hhe,ltr:Vhe,intersects:Whe,simplifyRange:Ghe,subset:Yhe,SemVer:fhe,re:Gw.re,src:Gw.src,tokens:Gw.t,SEMVER_SPEC_VERSION:Cj.SEMVER_SPEC_VERSION,RELEASE_TYPES:Cj.RELEASE_TYPES,compareIdentifiers:Pj.compareIdentifiers,rcompareIdentifiers:Pj.rcompareIdentifiers}});var lg=b((cMe,Xw)=>{"use strict";var ag=HL(),Khe=Yw(),{FSTDEP005:Jhe,FSTDEP012:Zhe,FSTDEP015:Xhe,FSTDEP016:Qhe,FSTDEP017:ede,FSTDEP018:tde}=sn(),{kHasBeenDecorated:rde,kSchemaBody:ide,kSchemaHeaders:nde,kSchemaParams:sde,kSchemaQuerystring:Nj,kSchemaController:Kw,kOptions:ode,kRequestCacheValidateFns:qs,kRouteContext:ut,kPublicRouteContext:$j,kRequestOriginalUrl:Jw}=Pt(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:ade}=rr(),Fj={body:ide,headers:nde,params:sde,querystring:Nj,query:Nj};function Zw(e,t,r,i,n,s){this.id=e,this[ut]=s,this.params=t,this.raw=r,this.query=i,this.log=n,this.body=void 0}Zw.props=[];function lde(e){if(typeof e=="function")return e;if(e===!0)return function(){return!0};if(typeof e=="number")return function(t,r){return r<e};if(typeof e=="string"){let t=e.split(",").map(r=>r.trim());return ag.compile(t)}return ag.compile(e)}function cde(e,t){return t?ude(e,t):Dj(e)}function Dj(e){let t=e.props.slice();function r(i,n,s,o,a,l){this.id=i,this[ut]=l,this.params=n,this.raw=s,this.query=o,this.log=a,this.body=void 0;for(var c,u=0;u<t.length;u++)c=t[u],this[c.key]=c.value}return Object.setPrototypeOf(r.prototype,e.prototype),Object.setPrototypeOf(r,e),r.props=t,r.parent=e,r}function Lj(e){let t=e.lastIndexOf(",");return t===-1?e.trim():e.slice(t+1).trim()}function ude(e,t){let r=Dj(e),i=lde(t);return r[rde]=!0,Object.defineProperties(r.prototype,{ip:{get(){return ag(this.raw,i)}},ips:{get(){return ag.all(this.raw,i)}},hostname:{get(){return this.ip!==void 0&&this.headers["x-forwarded-host"]?Lj(this.headers["x-forwarded-host"]):this.headers.host||this.headers[":authority"]}},protocol:{get(){if(this.headers["x-forwarded-proto"])return Lj(this.headers["x-forwarded-proto"]);if(this.socket)return this.socket.encrypted?"https":"http"}}}),r}Object.defineProperties(Zw.prototype,{server:{get(){return this[ut].server}},url:{get(){return this.raw.url}},originalUrl:{get(){return this[Jw]||(this[Jw]=this.raw.originalUrl||this.raw.url),this[Jw]}},method:{get(){return this.raw.method}},context:{get(){return Zhe(),this[ut]}},routerPath:{get(){return ede(),this[ut].config?.url}},routeOptions:{get(){let e=this[ut],t=e._parserOptions.limit,r=e.server.initialConfig.bodyLimit,i=e.server.hasConstraintStrategy("version")?this.raw.headers["accept-version"]:void 0,n={method:e.config?.method,url:e.config?.url,bodyLimit:t||r,attachValidation:e.attachValidation,logLevel:e.logLevel,exposeHeadRoute:e.exposeHeadRoute,prefixTrailingSlash:e.prefixTrailingSlash,handler:e.handler,version:i};return Object.defineProperties(n,{config:{get:()=>e.config},schema:{get:()=>e.schema}}),Object.freeze(n)}},routerMethod:{get(){return tde(),this[ut].config?.method}},routeConfig:{get(){return Qhe(),this[ut][$j]?.config}},routeSchema:{get(){return Xhe(),this[ut][$j].schema}},is404:{get(){return this[ut].config?.url===void 0}},connection:{get(){return Khe.gte(process.versions.node,"13.0.0")&&Jhe(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(e){this.additionalHeaders=e}},getValidationFunction:{value:function(e){if(typeof e=="string"){let t=Fj[e];return this[ut][t]}else if(typeof e=="object")return this[ut][qs]?.get(e)}},compileValidationSchema:{value:function(e,t=null){let{method:r,url:i}=this;if(this[ut][qs]?.has(e))return this[ut][qs].get(e);let s=(this[ut].validatorCompiler||this.server[Kw].validatorCompiler||this.server[Kw].setupValidator(this.server[ode])||this.server[Kw].validatorCompiler)({schema:e,method:r,url:i,httpPart:t});return this[ut][qs]==null&&(this[ut][qs]=new WeakMap),this[ut][qs].set(e,s),s}},validateInput:{value:function(e,t,r){r=typeof t=="string"?t:r;let i=r!=null&&typeof r=="string"&&Fj[r],n;if(i&&(n=this[ut][i]),n==null&&(t==null||typeof t!="object"||Array.isArray(t)))throw new ade(r);return n==null&&(this[ut][qs]?.has(t)?n=this[ut][qs].get(t):n=this.compileValidationSchema(t,r)),n(e)}}});Xw.exports=Zw;Xw.exports.buildRequest=cde});var cg=b((uMe,jj)=>{"use strict";var{kFourOhFourContext:fde,kReplySerializerDefault:hde,kSchemaErrorFormatter:dde,kErrorHandler:pde,kChildLoggerFactory:mde,kOptions:gde,kReply:yde,kRequest:vde,kBodyLimit:_de,kLogLevel:bde,kContentTypeParser:wde,kRouteByFastify:Sde,kRequestCacheValidateFns:xde,kReplyCacheSerializeFns:Ede,kPublicRouteContext:kde}=Pt();function Rde({schema:e,handler:t,config:r,requestIdLogLabel:i,childLoggerFactory:n,errorHandler:s,bodyLimit:o,logLevel:a,logSerializers:l,attachValidation:c,validatorCompiler:u,serializerCompiler:f,replySerializer:h,schemaErrorFormatter:d,exposeHeadRoute:p,prefixTrailingSlash:m,server:y,isFastify:_}){this.schema=e,this.handler=t,this.Reply=y[yde],this.Request=y[vde],this.contentTypeParser=y[wde],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=r,this.errorHandler=s||y[pde],this.requestIdLogLabel=i||y[gde].requestIdLogLabel,this.childLoggerFactory=n||y[mde],this._middie=null,this._parserOptions={limit:o||y[_de]},this.exposeHeadRoute=p,this.prefixTrailingSlash=m,this.logLevel=a||y[bde],this.logSerializers=l,this[fde]=null,this.attachValidation=c,this[hde]=h,this.schemaErrorFormatter=d||y[dde]||Ode,this[Sde]=_,this[xde]=null,this[Ede]=null,this.validatorCompiler=u||null,this.serializerCompiler=f||null,this[kde]=Tde(this),this.server=y}function Tde(e){return Object.create(null,{schema:{enumerable:!0,get(){return e.schema}},config:{enumerable:!0,get(){return e.config}}})}function Ode(e,t){let r="",i=", ";for(var n=0;n!==e.length;++n){let s=e[n];r+=t+(s.instancePath||"")+" "+s.message+i}return new Error(r.slice(0,-i.length))}jj.exports=Rde});var Qw=b((fMe,qj)=>{"use strict";qj.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH","REPORT","MKCALENDAR"]}});var nS=b((hMe,Bj)=>{"use strict";var{kReply:eS,kRequest:tS,kState:Ade,kHasBeenDecorated:Cde}=Pt(),{FST_ERR_DEC_ALREADY_PRESENT:Mj,FST_ERR_DEC_MISSING_DEPENDENCY:Pde,FST_ERR_DEC_AFTER_START:Ide,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:Nde}=rr(),{FSTDEP006:$de}=sn();function Fde(e,t,r,i){if(Object.prototype.hasOwnProperty.call(e,t))throw new Mj(t);rS(e,t,i),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(e,t,{get:r.getter,set:r.setter}):e[t]=r}function zj(e,t,r,i){let n=e.prototype;if(Object.prototype.hasOwnProperty.call(n,t)||fg(e,t))throw new Mj(t);e[Cde]=!0,rS(e,t,i),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(n,t,{get:r.getter,set:r.setter}):typeof r=="function"?n[t]=r:e.props.push({key:t,value:r})}function Uj(e,t){typeof t=="object"&&t&&!(typeof t.getter=="function"||typeof t.setter=="function")&&$de(e)}function Lde(e,t,r){return iS(this,e),Fde(this,e,t,r),this}function ug(e,t){return t?t in e||e.prototype&&t in e.prototype||fg(e,t):e in this}function fg(e,t){return e.props?e.props.find(({key:r})=>r===t):!1}function Dde(e){return e&&fg(this[tS],e)?!0:ug(this[tS].prototype,e)}function jde(e){return e&&fg(this[eS],e)?!0:ug(this[eS].prototype,e)}function rS(e,t,r){if(r!=null){if(!Array.isArray(r))throw new Nde(t);for(var i=0;i!==r.length;++i)if(!ug(e,r[i]))throw new Pde(r[i])}}function qde(e,t,r){return iS(this,e),Uj(e,t),zj(this[eS],e,t,r),this}function Mde(e,t,r){return iS(this,e),Uj(e,t),zj(this[tS],e,t,r),this}function iS(e,t){if(e[Ade].started)throw new Ide(t)}Bj.exports={add:Lde,exist:ug,existRequest:Dde,existReply:jde,dependencies:rS,decorateReply:qde,decorateRequest:Mde}});var Vj=b(un=>{"use strict";var sS=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=t,this.ttl=r}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(t){if(this.items.has(t)){let r=this.items.get(t);this.items.delete(t),r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;this.items.delete(t.key),this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(this.items.has(t))return this.items.get(t).expiry}get(t){if(this.items.has(t)){let r=this.items.get(t);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return r.value}}getMany(t){let r=[];for(var i=0;i<t.length;i++)r.push(this.get(t[i]));return r}keys(){return this.items.keys()}set(t,r){if(this.items.has(t)){let n=this.items.get(t);n.value=r,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let i={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items.set(t,i),this.size===1?this.first=i:this.last.next=i,this.last=i}},oS=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=t,this.ttl=r}get size(){return this.items.size}bumpLru(t){if(this.last===t)return;let r=this.last,i=t.next,n=t.prev;this.first===t&&(this.first=i),t.next=null,t.prev=r,r.next=t,n!==null&&(n.next=i),i!==null&&(i.prev=n),this.last=t}clear(){this.items=new Map,this.first=null,this.last=null}delete(t){if(this.items.has(t)){let r=this.items.get(t);this.items.delete(t),r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;this.items.delete(t.key),this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(this.items.has(t))return this.items.get(t).expiry}get(t){if(this.items.has(t)){let r=this.items.get(t);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return this.bumpLru(r),r.value}}getMany(t){let r=[];for(var i=0;i<t.length;i++)r.push(this.get(t[i]));return r}keys(){return this.items.keys()}set(t,r){if(this.items.has(t)){let n=this.items.get(t);n.value=r,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==n&&this.bumpLru(n);return}this.max>0&&this.size===this.max&&this.evict();let i={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items.set(t,i),this.size===1?this.first=i:this.last.next=i,this.last=i}},rf=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=t,this.ttl=r}bumpLru(t){if(this.last===t)return;let r=this.last,i=t.next,n=t.prev;this.first===t&&(this.first=i),t.next=null,t.prev=r,r.next=t,n!==null&&(n.next=i),i!==null&&(i.prev=n),this.last=t}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];delete this.items[t],this.size--,r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;delete this.items[t.key],--this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(Object.prototype.hasOwnProperty.call(this.items,t))return this.items[t].expiry}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return this.bumpLru(r),r.value}}getMany(t){let r=[];for(var i=0;i<t.length;i++)r.push(this.get(t[i]));return r}keys(){return Object.keys(this.items)}set(t,r){if(Object.prototype.hasOwnProperty.call(this.items,t)){let n=this.items[t];n.value=r,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==n&&this.bumpLru(n);return}this.max>0&&this.size===this.max&&this.evict();let i={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items[t]=i,++this.size===1?this.first=i:this.last.next=i,this.last=i}},hg=class{constructor(){this.records={}}initForCache(t,r){this.records[t]={[r]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(t){for(let r of Object.keys(this.records[t]))this.records[t][r]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function Hj(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}var aS=class{constructor(t,r,i){this.cacheId=t,this.statisticTtlInHours=r,this.collectionStart=new Date,this.currentTimeStamp=Hj(this.collectionStart),this.records=i||new hg,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(t){this.archiveIfNeeded(),this.currentRecord.cacheSize=t}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=Hj(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},dg=class extends rf{constructor(t,r,i,n,s){if(super(t||1e3,r||0),!i)throw new Error("Cache id is mandatory");this.hitStatistics=new aS(i,s!==void 0?s:24,n)}getStatistics(){return this.hitStatistics.getStatistics()}set(t,r){super.set(t,r),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(t,r=!1){super.delete(t),r||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(r),r.value||this.hitStatistics.addFalsyHit(),(r.value===void 0||r.value===null||r.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),r.value}this.hitStatistics.addMiss()}},pg=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=t,this.ttl=r}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];delete this.items[t],this.size--,r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;delete this.items[t.key],--this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(Object.prototype.hasOwnProperty.call(this.items,t))return this.items[t].expiry}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return r.value}}getMany(t){let r=[];for(var i=0;i<t.length;i++)r.push(this.get(t[i]));return r}keys(){return Object.keys(this.items)}set(t,r){if(Object.prototype.hasOwnProperty.call(this.items,t)){let n=this.items[t];n.value=r,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let i={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items[t]=i,++this.size===1?this.first=i:this.last.next=i,this.last=i}};un.Fifo=pg;un.FifoMap=sS;un.FifoObject=pg;un.HitStatisticsRecord=hg;un.Lru=rf;un.LruHitStatistics=dg;un.LruMap=oS;un.LruObject=rf;un.LruObjectHitStatistics=dg});var Kj=b((pMe,nf)=>{"use strict";var yg=function(){};yg.prototype=Object.create(null);var mg=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,gg=/\\([\v\u0020-\u00ff])/gu,Wj=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Yo={type:"",parameters:new yg};Object.freeze(Yo.parameters);Object.freeze(Yo);function Gj(e){if(typeof e!="string")throw new TypeError("argument header is required and must be a string");let t=e.indexOf(";"),r=t!==-1?e.slice(0,t).trim():e.trim();if(Wj.test(r)===!1)throw new TypeError("invalid media type");let i={type:r.toLowerCase(),parameters:new yg};if(t===-1)return i;let n,s,o;for(mg.lastIndex=t;s=mg.exec(e);){if(s.index!==t)throw new TypeError("invalid parameter format");t+=s[0].length,n=s[1].toLowerCase(),o=s[2],o[0]==='"'&&(o=o.slice(1,o.length-1),gg.test(o)&&(o=o.replace(gg,"$1"))),i.parameters[n]=o}if(t!==e.length)throw new TypeError("invalid parameter format");return i}function Yj(e){if(typeof e!="string")return Yo;let t=e.indexOf(";"),r=t!==-1?e.slice(0,t).trim():e.trim();if(Wj.test(r)===!1)return Yo;let i={type:r.toLowerCase(),parameters:new yg};if(t===-1)return i;let n,s,o;for(mg.lastIndex=t;s=mg.exec(e);){if(s.index!==t)return Yo;t+=s[0].length,n=s[1].toLowerCase(),o=s[2],o[0]==='"'&&(o=o.slice(1,o.length-1),gg.test(o)&&(o=o.replace(gg,"$1"))),i.parameters[n]=o}return t!==e.length?Yo:i}nf.exports.default={parse:Gj,safeParse:Yj};nf.exports.parse=Gj;nf.exports.safeParse=Yj;nf.exports.defaultContentType=Yo});var eq=b((mMe,kl)=>{"use strict";var zde=typeof Buffer<"u",Jj=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Zj=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Xj(e,t,r){r==null&&t!==null&&typeof t=="object"&&(r=t,t=void 0),zde&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));let i=JSON.parse(e,t);if(i===null||typeof i!="object")return i;let n=r&&r.protoAction||"error",s=r&&r.constructorAction||"error";if(n==="ignore"&&s==="ignore")return i;if(n!=="ignore"&&s!=="ignore"){if(Jj.test(e)===!1&&Zj.test(e)===!1)return i}else if(n!=="ignore"&&s==="ignore"){if(Jj.test(e)===!1)return i}else if(Zj.test(e)===!1)return i;return Qj(i,{protoAction:n,constructorAction:s,safe:r&&r.safe})}function Qj(e,{protoAction:t="error",constructorAction:r="error",safe:i}={}){let n=[e];for(;n.length;){let s=n;n=[];for(let o of s){if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if(i===!0)return null;if(t==="error")throw new SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if(i===!0)return null;if(r==="error")throw new SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let a in o){let l=o[a];l&&typeof l=="object"&&n.push(l)}}}return e}function lS(e,t,r){let i=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Xj(e,t,r)}finally{Error.stackTraceLimit=i}}function Ude(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Xj(e,t,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=r}}kl.exports=lS;kl.exports.default=lS;kl.exports.parse=lS;kl.exports.safeParse=Ude;kl.exports.scan=Qj});var dS=b((gMe,of)=>{"use strict";var{AsyncResource:Bde}=require("node:async_hooks"),{FifoMap:rq}=Vj(),{safeParse:iq,defaultContentType:Hde}=Kj(),Vde=eq(),{kDefaultJsonParse:sf,kContentTypeParser:Rl,kBodyLimit:Wde,kRequestPayloadStream:nq,kState:uS,kTestInternals:Gde,kReplyIsError:sq,kRouteContext:Yde}=Pt(),{FST_ERR_CTP_INVALID_TYPE:oq,FST_ERR_CTP_EMPTY_TYPE:Kde,FST_ERR_CTP_ALREADY_PRESENT:Jde,FST_ERR_CTP_INVALID_HANDLER:Zde,FST_ERR_CTP_INVALID_PARSE_TYPE:Xde,FST_ERR_CTP_BODY_TOO_LARGE:tq,FST_ERR_CTP_INVALID_MEDIA_TYPE:Qde,FST_ERR_CTP_INVALID_CONTENT_LENGTH:epe,FST_ERR_CTP_EMPTY_JSON_BODY:tpe,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:fS}=rr();function Wn(e,t,r){this[sf]=lq(t,r),this.customParsers=new Map,this.customParsers.set("application/json",new cS(!0,!1,e,this[sf])),this.customParsers.set("text/plain",new cS(!0,!1,e,hS)),this.parserList=[new vg("application/json"),new vg("text/plain")],this.parserRegExpList=[],this.cache=new rq(100)}Wn.prototype.add=function(e,t,r){let i=typeof e=="string";if(!i&&!(e instanceof RegExp))throw new oq;if(i&&e.length===0)throw new Kde;if(typeof r!="function")throw new Zde;if(this.existingParser(e))throw new Jde(e);if(t.parseAs!==void 0&&t.parseAs!=="string"&&t.parseAs!=="buffer")throw new Xde(t.parseAs);let n=new cS(t.parseAs==="string",t.parseAs==="buffer",t.bodyLimit,r);i&&e==="*"?this.customParsers.set("",n):(i?this.parserList.unshift(new vg(e)):(e.isEssence=e.source.indexOf(";")===-1,this.parserRegExpList.unshift(e)),this.customParsers.set(e.toString(),n))};Wn.prototype.hasParser=function(e){return this.customParsers.has(typeof e=="string"?e:e.toString())};Wn.prototype.existingParser=function(e){return e==="application/json"&&this.customParsers.has(e)?this.customParsers.get(e).fn!==this[sf]:e==="text/plain"&&this.customParsers.has(e)?this.customParsers.get(e).fn!==hS:this.hasParser(e)};Wn.prototype.getParser=function(e){if(this.hasParser(e))return this.customParsers.get(e);let t=this.cache.get(e);if(t!==void 0)return t;let r=iq(e);if(r===Hde)return this.customParsers.get("");for(var i=0;i!==this.parserList.length;++i){let s=this.parserList[i];if(ape(r,s)){let o=this.customParsers.get(s.name);return this.cache.set(e,o),o}}for(var n=0;n!==this.parserRegExpList.length;++n){let s=this.parserRegExpList[n];if(lpe(e,r.type,s)){let o=this.customParsers.get(s.toString());return this.cache.set(e,o),o}}return this.customParsers.get("")};Wn.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new rq(100)};Wn.prototype.remove=function(e){if(!(typeof e=="string"||e instanceof RegExp))throw new oq;let t=this.customParsers.delete(e.toString()),r=typeof e=="string"?this.parserList:this.parserRegExpList,i=r.findIndex(n=>n.toString()===e.toString());return i>-1&&r.splice(i,1),t||i>-1};Wn.prototype.run=function(e,t,r,i){let n=this.getParser(e);if(n===void 0){r.is404?t(r,i):i.send(new Qde(e||void 0));return}let s=new Bde("content-type-parser:run",r);if(n.asString===!0||n.asBuffer===!0)aq(r,i,i[Yde]._parserOptions,n,o);else{let a=n.fn(r,r[nq],o);a&&typeof a.then=="function"&&a.then(l=>o(null,l),o)}function o(a,l){s.runInAsyncScope(()=>{s.emitDestroy(),a?(i[sq]=!0,i.send(a)):(r.body=l,t(r,i))})}};function aq(e,t,r,i,n){let s=i.asString,o=r.limit===null?i.bodyLimit:r.limit,a=e.headers["content-length"]===void 0?NaN:Number(e.headers["content-length"]);if(a>o){t.header("connection","close"),t.send(new tq);return}let l=0,c=s===!0?"":[],u=e[nq]||e.raw;s===!0&&u.setEncoding("utf8"),u.on("data",f),u.on("end",h),u.on("error",h),u.resume();function f(d){l+=d.length;let{receivedEncodedLength:p=0}=u;if(l>o||p>o){u.removeListener("data",f),u.removeListener("end",h),u.removeListener("error",h),t.send(new tq);return}s===!0?c+=d:c.push(d)}function h(d){if(u.removeListener("data",f),u.removeListener("end",h),u.removeListener("error",h),d!==void 0){typeof d.statusCode=="number"&&d.statusCode>=400||(d.statusCode=400),t[sq]=!0,t.code(d.statusCode).send(d);return}if(s===!0&&(l=Buffer.byteLength(c)),!Number.isNaN(a)&&(u.receivedEncodedLength||l)!==a){t.header("connection","close"),t.send(new epe);return}s===!1&&(c=Buffer.concat(c));let p=i.fn(e,c,n);p&&typeof p.then=="function"&&p.then(m=>n(null,m),n)}}function lq(e,t){return r;function r(i,n,s){if(n===""||n==null||Buffer.isBuffer(n)&&n.length===0)return s(new tpe,void 0);let o;try{o=Vde.parse(n,{protoAction:e,constructorAction:t})}catch(a){return a.statusCode=400,s(a,void 0)}s(null,o)}}function hS(e,t,r){r(null,t)}function cS(e,t,r,i){this.asString=e,this.asBuffer=t,this.bodyLimit=r,this.fn=i}function rpe(e){let t=new Wn;return t[sf]=e[sf],t.customParsers=new Map(e.customParsers.entries()),t.parserList=e.parserList.slice(),t.parserRegExpList=e.parserRegExpList.slice(),t}function ipe(e,t,r){if(this[uS].started)throw new fS("addContentTypeParser");return typeof t=="function"&&(r=t,t={}),t||(t={}),t.bodyLimit||(t.bodyLimit=this[Wde]),Array.isArray(e)?e.forEach(i=>this[Rl].add(i,t,r)):this[Rl].add(e,t,r),this}function npe(e){return this[Rl].hasParser(e)}function spe(e){if(this[uS].started)throw new fS("removeContentTypeParser");if(Array.isArray(e))for(let t of e)this[Rl].remove(t);else this[Rl].remove(e)}function ope(){if(this[uS].started)throw new fS("removeAllContentTypeParsers");this[Rl].removeAll()}function ape(e,t){if(t.isEssence)return e.type.indexOf(t)!==-1;if(e.type.indexOf(t.type)===-1)return!1;for(let r of t.parameterKeys)if(!(r in e.parameters)||e.parameters[r]!==t.parameters[r])return!1;return!0}function lpe(e,t,r){return r.isEssence?r.test(t):r.test(e)}function vg(e){this.name=e;let t=iq(e);if(this.isEssence=e.indexOf(";")===-1,this.isEssence===!1&&t.type===""){let r=e.split(";",1)[0];this.type=r===""?e:r}else this.type=t.type;this.parameters=t.parameters,this.parameterKeys=Object.keys(t.parameters)}vg.prototype.toString=function(){return this.name};of.exports=Wn;of.exports.helpers={buildContentTypeParser:rpe,addContentTypeParser:ipe,hasContentTypeParser:npe,removeContentTypeParser:spe,removeAllContentTypeParsers:ope};of.exports.defaultParsers={getDefaultJsonParser:lq,defaultTextParser:hS};of.exports[Gde]={rawBody:aq}});var Ms=b((yMe,cq)=>{"use strict";cq.exports=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 i,n,s;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))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),i=s.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=i;n--!==0;){var o=s[n];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}});var dq=b((vMe,hq)=>{"use strict";var uq=Ms(),cpe=Symbol.for("json-schema-ref"),pS=class{#e;#t;#s;#i;#o;constructor(t={}){this.#e={},this.#t={},this.#s=t.insertRefSymbol??!1,this.#i=t.allowEqualDuplicates??!0,this.#o=t.cloneSchemaWithoutRefs??!1}addSchema(t,r){t.$id!==void 0&&t.$id.charAt(0)!=="#"?r=t.$id:this.#l(t,r),this.#p(t,r)}getSchema(t,r="#"){let i=this.#e[t];if(i===void 0)throw new Error(`Cannot resolve ref "${t}${r}". Schema with id "${t}" is not found.`);return i.anchors[r]!==void 0?i.anchors[r]:fq(i.schema,r)}hasSchema(t){return this.#e[t]!==void 0}getSchemaRefs(t){let r=this.#e[t];if(r===void 0)throw new Error(`Schema with id "${t}" is not found.`);return r.refs}getSchemaDependencies(t,r={}){let i=this.#e[t];for(let n of i.refs){let s=n.schemaId;r[s]===void 0&&(r[s]=this.getSchema(s),this.getSchemaDependencies(s,r))}return r}derefSchema(t){if(this.#t[t]!==void 0)return;let r=this.#e[t];if(r===void 0)throw new Error(`Schema with id "${t}" is not found.`);!this.#o&&r.refs.length===0&&(this.#t[t]={schema:r.schema,anchors:r.anchors});let i=[];this.#a(r.schema,t,i);let n=this.getSchemaDependencies(t);for(let s in n){let o=n[s];this.#a(o,s,i)}for(let s of i){let{refSchemaId:o,refJsonPointer:a}=this.#v(s.ref,s.sourceSchemaId),l=this.getDerefSchema(o,a);if(l===null)throw new Error(`Cannot resolve ref "${s.ref}". Ref "${a}" is not found in schema "${o}".`);s.targetSchema=l,s.targetSchemaId=o}for(let s of i)this.#u(s,i)}getDerefSchema(t,r="#"){let i=this.#t[t];return i===void 0&&(this.derefSchema(t),i=this.#t[t]),i.anchors[r]!==void 0?i.anchors[r]:fq(i.schema,r)}#v(t,r){let i=t.indexOf("#");return i===-1?{refSchemaId:t,refJsonPointer:"#"}:i===0?{refSchemaId:r,refJsonPointer:t}:{refSchemaId:t.slice(0,i),refJsonPointer:t.slice(i)}}#p(t,r){let i=t.$id;i!==void 0&&typeof i=="string"&&(i.charAt(0)==="#"?this.#c(t,r,i):(this.#l(t,i),r=i));let n=t.$ref;if(n!==void 0&&typeof n=="string"){let{refSchemaId:s,refJsonPointer:o}=this.#v(n,r);this.#e[r].refs.push({schemaId:s,jsonPointer:o})}for(let s in t)typeof t[s]=="object"&&t[s]!==null&&this.#p(t[s],r)}#a(t,r,i=[]){let n=Array.isArray(t)?[...t]:{...t},s=n.$id;s!==void 0&&typeof s=="string"&&(s.charAt(0)==="#"?this.#h(n,r,s):(this.#r(n,s),r=s)),n.$ref!==void 0&&i.push({ref:n.$ref,sourceSchemaId:r,sourceSchema:n});for(let o in n){let a=n[o];typeof a=="object"&&a!==null&&(n[o]=this.#a(a,r,i))}return n}#u(t,r){let{sourceSchema:i,targetSchema:n}=t;if(i.$ref){if(this.#s&&(i[cpe]=i.$ref),delete i.$ref,n.$ref){let s=r.find(o=>o.sourceSchema===n);this.#u(s,r)}for(let s in n)if(s!=="$id"){if(i[s]!==void 0){if(uq(i[s],n[s]))continue;throw new Error(`Cannot resolve ref "${t.ref}". Property "${s}" is already exist in schema "${t.sourceSchemaId}".`)}i[s]=n[s]}t.isResolved=!0}}#l(t,r){let i=this.#e[r];if(i!==void 0){if(this.#i&&uq(t,i.schema))return;throw new Error(`There is already another schema with id "${r}".`)}this.#e[r]={schema:t,anchors:{},refs:[]}}#c(t,r,i){let{anchors:n}=this.#e[r];if(n[i]!==void 0)throw new Error(`There is already another anchor "${i}" in a schema "${r}".`);n[i]=t}#r(t,r){this.#t[r]===void 0&&(this.#t[r]={schema:t,anchors:{}})}#h(t,r,i){let{anchors:n}=this.#t[r];n[i]=t}};function fq(e,t){let r=t.split("/"),i=e;for(let n of r)if(!(n===""||n==="#")){if(typeof i!="object"||i===null)return null;i=i[n]}return i??null}hq.exports={RefResolver:pS}});var Tl=b(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.regexpCode=Ae.getEsmExportName=Ae.getProperty=Ae.safeStringify=Ae.stringify=Ae.strConcat=Ae.addCodeArg=Ae.str=Ae._=Ae.nil=Ae._Code=Ae.Name=Ae.IDENTIFIER=Ae._CodeOrName=void 0;var af=class{};Ae._CodeOrName=af;Ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ko=class extends af{constructor(t){if(super(),!Ae.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ae.Name=Ko;var li=class extends af{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,i)=>(i instanceof Ko&&(r[i.str]=(r[i.str]||0)+1),r),{})}};Ae._Code=li;Ae.nil=new li("");function pq(e,...t){let r=[e[0]],i=0;for(;i<t.length;)gS(r,t[i]),r.push(e[++i]);return new li(r)}Ae._=pq;var mS=new li("+");function mq(e,...t){let r=[lf(e[0])],i=0;for(;i<t.length;)r.push(mS),gS(r,t[i]),r.push(mS,lf(e[++i]));return upe(r),new li(r)}Ae.str=mq;function gS(e,t){t instanceof li?e.push(...t._items):t instanceof Ko?e.push(t):e.push(dpe(t))}Ae.addCodeArg=gS;function upe(e){let t=1;for(;t<e.length-1;){if(e[t]===mS){let r=fpe(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function fpe(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ko||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Ko))return`"${e}${t.slice(1)}`}function hpe(e,t){return t.emptyStr()?e:e.emptyStr()?t:mq`${e}${t}`}Ae.strConcat=hpe;function dpe(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:lf(Array.isArray(e)?e.join(","):e)}function ppe(e){return new li(lf(e))}Ae.stringify=ppe;function lf(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ae.safeStringify=lf;function mpe(e){return typeof e=="string"&&Ae.IDENTIFIER.test(e)?new li(`.${e}`):pq`[${e}]`}Ae.getProperty=mpe;function gpe(e){if(typeof e=="string"&&Ae.IDENTIFIER.test(e))return new li(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ae.getEsmExportName=gpe;function ype(e){return new li(e.toString())}Ae.regexpCode=ype});var Sg=b(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.ValueScope=qr.ValueScopeName=qr.Scope=qr.varKinds=qr.UsedValueState=void 0;var jr=Tl(),yS=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},_g;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(_g||(qr.UsedValueState=_g={}));qr.varKinds={const:new jr.Name("const"),let:new jr.Name("let"),var:new jr.Name("var")};var bg=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof jr.Name?t:this.name(t)}name(t){return new jr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};qr.Scope=bg;var wg=class extends jr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t,this.scopePath=(0,jr._)`.${new jr.Name(r)}[${i}]`}};qr.ValueScopeName=wg;var vpe=(0,jr._)`\n`,vS=class extends bg{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?vpe:jr.nil}}get(){return this._scope}name(t){return new wg(t,this._newName(t))}value(t,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:s}=n,o=(i=r.key)!==null&&i!==void 0?i:r.ref,a=this._values[s];if(a){let u=a.get(o);if(u)return u}else a=this._values[s]=new Map;a.set(o,n);let l=this._scope[s]||(this._scope[s]=[]),c=l.length;return l[c]=r.ref,n.setValue(r,{property:s,itemIndex:c}),n}getValue(t,r){let i=this._values[t];if(i)return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,jr._)`${t}${i.scopePath}`})}scopeCode(t=this._values,r,i){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(t,r,i={},n){let s=jr.nil;for(let o in t){let a=t[o];if(!a)continue;let l=i[o]=i[o]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,_g.Started);let u=r(c);if(u){let f=this.opts.es5?qr.varKinds.var:qr.varKinds.const;s=(0,jr._)`${s}${f} ${c} = ${u};${this.opts._n}`}else if(u=n?.(c))s=(0,jr._)`${s}${u}${this.opts._n}`;else throw new yS(c);l.set(c,_g.Completed)})}return s}};qr.ValueScope=vS});var ue=b(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.or=ye.and=ye.not=ye.CodeGen=ye.operators=ye.varKinds=ye.ValueScopeName=ye.ValueScope=ye.Scope=ye.Name=ye.regexpCode=ye.stringify=ye.getProperty=ye.nil=ye.strConcat=ye.str=ye._=void 0;var Re=Tl(),Ii=Sg(),zs=Tl();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return zs._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return zs.str}});Object.defineProperty(ye,"strConcat",{enumerable:!0,get:function(){return zs.strConcat}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return zs.nil}});Object.defineProperty(ye,"getProperty",{enumerable:!0,get:function(){return zs.getProperty}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return zs.stringify}});Object.defineProperty(ye,"regexpCode",{enumerable:!0,get:function(){return zs.regexpCode}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return zs.Name}});var Rg=Sg();Object.defineProperty(ye,"Scope",{enumerable:!0,get:function(){return Rg.Scope}});Object.defineProperty(ye,"ValueScope",{enumerable:!0,get:function(){return Rg.ValueScope}});Object.defineProperty(ye,"ValueScopeName",{enumerable:!0,get:function(){return Rg.ValueScopeName}});Object.defineProperty(ye,"varKinds",{enumerable:!0,get:function(){return Rg.varKinds}});ye.operators={GT:new Re._Code(">"),GTE:new Re._Code(">="),LT:new Re._Code("<"),LTE:new Re._Code("<="),EQ:new Re._Code("==="),NEQ:new Re._Code("!=="),NOT:new Re._Code("!"),OR:new Re._Code("||"),AND:new Re._Code("&&"),ADD:new Re._Code("+")};var Gn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},_S=class extends Gn{constructor(t,r,i){super(),this.varKind=t,this.name=r,this.rhs=i}render({es5:t,_n:r}){let i=t?Ii.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Al(this.rhs,t,r)),this}get names(){return this.rhs instanceof Re._CodeOrName?this.rhs.names:{}}},xg=class extends Gn{constructor(t,r,i){super(),this.lhs=t,this.rhs=r,this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof Re.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Al(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Re.Name?{}:{...this.lhs.names};return kg(t,this.rhs)}},bS=class extends xg{constructor(t,r,i,n){super(t,i,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},wS=class extends Gn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},SS=class extends Gn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},xS=class extends Gn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},ES=class extends Gn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Al(this.code,t,r),this}get names(){return this.code instanceof Re._CodeOrName?this.code.names:{}}},cf=class extends Gn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,i)=>r+i.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let i=t[r].optimizeNodes();Array.isArray(i)?t.splice(r,1,...i):i?t[r]=i:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:i}=this,n=i.length;for(;n--;){let s=i[n];s.optimizeNames(t,r)||(_pe(t,s.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Xo(t,r.names),{})}},Yn=class extends cf{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},kS=class extends cf{},Ol=class extends Yn{};Ol.kind="else";var Jo=class e extends Yn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new Ol(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(gq(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Al(this.condition,t,r),this}get names(){let t=super.names;return kg(t,this.condition),this.else&&Xo(t,this.else.names),t}};Jo.kind="if";var Zo=class extends Yn{};Zo.kind="for";var RS=class extends Zo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Al(this.iteration,t,r),this}get names(){return Xo(super.names,this.iteration.names)}},TS=class extends Zo{constructor(t,r,i,n){super(),this.varKind=t,this.name=r,this.from=i,this.to=n}render(t){let r=t.es5?Ii.varKinds.var:this.varKind,{name:i,from:n,to:s}=this;return`for(${r} ${i}=${n}; ${i}<${s}; ${i}++)`+super.render(t)}get names(){let t=kg(super.names,this.from);return kg(t,this.to)}},Eg=class extends Zo{constructor(t,r,i,n){super(),this.loop=t,this.varKind=r,this.name=i,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Al(this.iterable,t,r),this}get names(){return Xo(super.names,this.iterable.names)}},uf=class extends Yn{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};uf.kind="func";var ff=class extends cf{render(t){return"return "+super.render(t)}};ff.kind="return";var OS=class extends Yn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var i,n;return super.optimizeNames(t,r),(i=this.catch)===null||i===void 0||i.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Xo(t,this.catch.names),this.finally&&Xo(t,this.finally.names),t}},hf=class extends Yn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};hf.kind="catch";var df=class extends Yn{render(t){return"finally"+super.render(t)}};df.kind="finally";var AS=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
`:""},this._extScope=t,this._scope=new Ii.Scope({parent:t}),this._nodes=[new kS]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let i=this._extScope.value(t,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,n){let s=this._scope.toName(r);return i!==void 0&&n&&(this._constants[s.str]=i),this._leafNode(new _S(t,s,i)),s}const(t,r,i){return this._def(Ii.varKinds.const,t,r,i)}let(t,r,i){return this._def(Ii.varKinds.let,t,r,i)}var(t,r,i){return this._def(Ii.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new xg(t,r,i))}add(t,r){return this._leafNode(new bS(t,ye.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Re.nil&&this._leafNode(new ES(t)),this}object(...t){let r=["{"];for(let[i,n]of t)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,Re.addCodeArg)(r,n));return r.push("}"),new Re._Code(r)}if(t,r,i){if(this._blockNode(new Jo(t)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Jo(t))}else(){return this._elseNode(new Ol)}endIf(){return this._endBlockNode(Jo,Ol)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new RS(t),r)}forRange(t,r,i,n,s=this.opts.es5?Ii.varKinds.var:Ii.varKinds.let){let o=this._scope.toName(t);return this._for(new TS(s,o,r,i),()=>n(o))}forOf(t,r,i,n=Ii.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let o=r instanceof Re.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Re._)`${o}.length`,a=>{this.var(s,(0,Re._)`${o}[${a}]`),i(s)})}return this._for(new Eg("of",n,s,r),()=>i(s))}forIn(t,r,i,n=this.opts.es5?Ii.varKinds.var:Ii.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Re._)`Object.keys(${r})`,i);let s=this._scope.toName(t);return this._for(new Eg("in",n,s,r),()=>i(s))}endFor(){return this._endBlockNode(Zo)}label(t){return this._leafNode(new wS(t))}break(t){return this._leafNode(new SS(t))}return(t){let r=new ff;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ff)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new OS;if(this._blockNode(n),this.code(t),r){let s=this.name("e");this._currNode=n.catch=new hf(s),r(s)}return i&&(this._currNode=n.finally=new df,this.code(i)),this._endBlockNode(hf,df)}throw(t){return this._leafNode(new xS(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||t!==void 0&&i!==t)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=Re.nil,i,n){return this._blockNode(new uf(t,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(uf)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let i=this._currNode;if(i instanceof t||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Jo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ye.CodeGen=AS;function Xo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function kg(e,t){return t instanceof Re._CodeOrName?Xo(e,t.names):e}function Al(e,t,r){if(e instanceof Re.Name)return i(e);if(!n(e))return e;return new Re._Code(e._items.reduce((s,o)=>(o instanceof Re.Name&&(o=i(o)),o instanceof Re._Code?s.push(...o._items):s.push(o),s),[]));function i(s){let o=r[s.str];return o===void 0||t[s.str]!==1?s:(delete t[s.str],o)}function n(s){return s instanceof Re._Code&&s._items.some(o=>o instanceof Re.Name&&t[o.str]===1&&r[o.str]!==void 0)}}function _pe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function gq(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Re._)`!${CS(e)}`}ye.not=gq;var bpe=yq(ye.operators.AND);function wpe(...e){return e.reduce(bpe)}ye.and=wpe;var Spe=yq(ye.operators.OR);function xpe(...e){return e.reduce(Spe)}ye.or=xpe;function yq(e){return(t,r)=>t===Re.nil?r:r===Re.nil?t:(0,Re._)`${CS(t)} ${e} ${CS(r)}`}function CS(e){return e instanceof Re.Name?e:(0,Re._)`(${e})`}});var ge=b(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.checkStrictMode=be.getErrorPath=be.Type=be.useFunc=be.setEvaluated=be.evaluatedPropsToName=be.mergeEvaluated=be.eachItem=be.unescapeJsonPointer=be.escapeJsonPointer=be.escapeFragment=be.unescapeFragment=be.schemaRefOrVal=be.schemaHasRulesButRef=be.schemaHasRules=be.checkUnknownRules=be.alwaysValidSchema=be.toHash=void 0;var Me=ue(),Epe=Tl();function kpe(e){let t={};for(let r of e)t[r]=!0;return t}be.toHash=kpe;function Rpe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(bq(e,t),!wq(t,e.self.RULES.all))}be.alwaysValidSchema=Rpe;function bq(e,t=e.schema){let{opts:r,self:i}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=i.RULES.keywords;for(let s in t)n[s]||Eq(e,`unknown keyword: "${s}"`)}be.checkUnknownRules=bq;function wq(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}be.schemaHasRules=wq;function Tpe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}be.schemaHasRulesButRef=Tpe;function Ope({topSchemaRef:e,schemaPath:t},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Me._)`${r}`}return(0,Me._)`${e}${t}${(0,Me.getProperty)(i)}`}be.schemaRefOrVal=Ope;function Ape(e){return Sq(decodeURIComponent(e))}be.unescapeFragment=Ape;function Cpe(e){return encodeURIComponent(IS(e))}be.escapeFragment=Cpe;function IS(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}be.escapeJsonPointer=IS;function Sq(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}be.unescapeJsonPointer=Sq;function Ppe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}be.eachItem=Ppe;function vq({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(n,s,o,a)=>{let l=o===void 0?s:o instanceof Me.Name?(s instanceof Me.Name?e(n,s,o):t(n,s,o),o):s instanceof Me.Name?(t(n,o,s),s):r(s,o);return a===Me.Name&&!(l instanceof Me.Name)?i(n,l):l}}be.mergeEvaluated={props:vq({mergeNames:(e,t,r)=>e.if((0,Me._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Me._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Me._)`${r} || {}`).code((0,Me._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Me._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Me._)`${r} || {}`),NS(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:xq}),items:vq({mergeNames:(e,t,r)=>e.if((0,Me._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Me._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Me._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Me._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function xq(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Me._)`{}`);return t!==void 0&&NS(e,r,t),r}be.evaluatedPropsToName=xq;function NS(e,t,r){Object.keys(r).forEach(i=>e.assign((0,Me._)`${t}${(0,Me.getProperty)(i)}`,!0))}be.setEvaluated=NS;var _q={};function Ipe(e,t){return e.scopeValue("func",{ref:t,code:_q[t.code]||(_q[t.code]=new Epe._Code(t.code))})}be.useFunc=Ipe;var PS;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(PS||(be.Type=PS={}));function Npe(e,t,r){if(e instanceof Me.Name){let i=t===PS.Num;return r?i?(0,Me._)`"[" + ${e} + "]"`:(0,Me._)`"['" + ${e} + "']"`:i?(0,Me._)`"/" + ${e}`:(0,Me._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Me.getProperty)(e).toString():"/"+IS(e)}be.getErrorPath=Npe;function Eq(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}be.checkStrictMode=Eq});var ci=b($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});var sr=ue(),$pe={data:new sr.Name("data"),valCxt:new sr.Name("valCxt"),instancePath:new sr.Name("instancePath"),parentData:new sr.Name("parentData"),parentDataProperty:new sr.Name("parentDataProperty"),rootData:new sr.Name("rootData"),dynamicAnchors:new sr.Name("dynamicAnchors"),vErrors:new sr.Name("vErrors"),errors:new sr.Name("errors"),this:new sr.Name("this"),self:new sr.Name("self"),scope:new sr.Name("scope"),json:new sr.Name("json"),jsonPos:new sr.Name("jsonPos"),jsonLen:new sr.Name("jsonLen"),jsonPart:new sr.Name("jsonPart")};$S.default=$pe});var pf=b(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.extendErrors=or.resetErrorsCount=or.reportExtraError=or.reportError=or.keyword$DataError=or.keywordError=void 0;var Oe=ue(),Tg=ge(),Sr=ci();or.keywordError={message:({keyword:e})=>(0,Oe.str)`must pass "${e}" keyword validation`};or.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Oe.str)`"${e}" keyword must be ${t} ($data)`:(0,Oe.str)`"${e}" keyword is invalid ($data)`};function Fpe(e,t=or.keywordError,r,i){let{it:n}=e,{gen:s,compositeRule:o,allErrors:a}=n,l=Tq(e,t,r);i??(o||a)?kq(s,l):Rq(n,(0,Oe._)`[${l}]`)}or.reportError=Fpe;function Lpe(e,t=or.keywordError,r){let{it:i}=e,{gen:n,compositeRule:s,allErrors:o}=i,a=Tq(e,t,r);kq(n,a),s||o||Rq(i,Sr.default.vErrors)}or.reportExtraError=Lpe;function Dpe(e,t){e.assign(Sr.default.errors,t),e.if((0,Oe._)`${Sr.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Oe._)`${Sr.default.vErrors}.length`,t),()=>e.assign(Sr.default.vErrors,null)))}or.resetErrorsCount=Dpe;function jpe({gen:e,keyword:t,schemaValue:r,data:i,errsCount:n,it:s}){if(n===void 0)throw new Error("ajv implementation error");let o=e.name("err");e.forRange("i",n,Sr.default.errors,a=>{e.const(o,(0,Oe._)`${Sr.default.vErrors}[${a}]`),e.if((0,Oe._)`${o}.instancePath === undefined`,()=>e.assign((0,Oe._)`${o}.instancePath`,(0,Oe.strConcat)(Sr.default.instancePath,s.errorPath))),e.assign((0,Oe._)`${o}.schemaPath`,(0,Oe.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,Oe._)`${o}.schema`,r),e.assign((0,Oe._)`${o}.data`,i))})}or.extendErrors=jpe;function kq(e,t){let r=e.const("err",t);e.if((0,Oe._)`${Sr.default.vErrors} === null`,()=>e.assign(Sr.default.vErrors,(0,Oe._)`[${r}]`),(0,Oe._)`${Sr.default.vErrors}.push(${r})`),e.code((0,Oe._)`${Sr.default.errors}++`)}function Rq(e,t){let{gen:r,validateName:i,schemaEnv:n}=e;n.$async?r.throw((0,Oe._)`new ${e.ValidationError}(${t})`):(r.assign((0,Oe._)`${i}.errors`,t),r.return(!1))}var Qo={keyword:new Oe.Name("keyword"),schemaPath:new Oe.Name("schemaPath"),params:new Oe.Name("params"),propertyName:new Oe.Name("propertyName"),message:new Oe.Name("message"),schema:new Oe.Name("schema"),parentSchema:new Oe.Name("parentSchema")};function Tq(e,t,r){let{createErrors:i}=e.it;return i===!1?(0,Oe._)`{}`:qpe(e,t,r)}function qpe(e,t,r={}){let{gen:i,it:n}=e,s=[Mpe(n,r),zpe(e,r)];return Upe(e,t,s),i.object(...s)}function Mpe({errorPath:e},{instancePath:t}){let r=t?(0,Oe.str)`${e}${(0,Tg.getErrorPath)(t,Tg.Type.Str)}`:e;return[Sr.default.instancePath,(0,Oe.strConcat)(Sr.default.instancePath,r)]}function zpe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let n=i?t:(0,Oe.str)`${t}/${e}`;return r&&(n=(0,Oe.str)`${n}${(0,Tg.getErrorPath)(r,Tg.Type.Str)}`),[Qo.schemaPath,n]}function Upe(e,{params:t,message:r},i){let{keyword:n,data:s,schemaValue:o,it:a}=e,{opts:l,propertyName:c,topSchemaRef:u,schemaPath:f}=a;i.push([Qo.keyword,n],[Qo.params,typeof t=="function"?t(e):t||(0,Oe._)`{}`]),l.messages&&i.push([Qo.message,typeof r=="function"?r(e):r]),l.verbose&&i.push([Qo.schema,o],[Qo.parentSchema,(0,Oe._)`${u}${f}`],[Sr.default.data,s]),c&&i.push([Qo.propertyName,c])}});var Aq=b(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.boolOrEmptySchema=Cl.topBoolOrEmptySchema=void 0;var Bpe=pf(),Hpe=ue(),Vpe=ci(),Wpe={message:"boolean schema is false"};function Gpe(e){let{gen:t,schema:r,validateName:i}=e;r===!1?Oq(e,!1):typeof r=="object"&&r.$async===!0?t.return(Vpe.default.data):(t.assign((0,Hpe._)`${i}.errors`,null),t.return(!0))}Cl.topBoolOrEmptySchema=Gpe;function Ype(e,t){let{gen:r,schema:i}=e;i===!1?(r.var(t,!1),Oq(e)):r.var(t,!0)}Cl.boolOrEmptySchema=Ype;function Oq(e,t){let{gen:r,data:i}=e,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Bpe.reportError)(n,Wpe,void 0,t)}});var FS=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getRules=Pl.isJSONType=void 0;var Kpe=["string","number","integer","boolean","null","object","array"],Jpe=new Set(Kpe);function Zpe(e){return typeof e=="string"&&Jpe.has(e)}Pl.isJSONType=Zpe;function Xpe(){let 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:{}}}Pl.getRules=Xpe});var LS=b(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.shouldUseRule=Us.shouldUseGroup=Us.schemaHasRulesForType=void 0;function Qpe({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&Cq(e,i)}Us.schemaHasRulesForType=Qpe;function Cq(e,t){return t.rules.some(r=>Pq(e,r))}Us.shouldUseGroup=Cq;function Pq(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(i=>e[i]!==void 0))}Us.shouldUseRule=Pq});var mf=b(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.reportTypeError=ar.checkDataTypes=ar.checkDataType=ar.coerceAndCheckDataType=ar.getJSONTypes=ar.getSchemaTypes=ar.DataType=void 0;var eme=FS(),tme=LS(),rme=pf(),me=ue(),Iq=ge(),Il;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Il||(ar.DataType=Il={}));function ime(e){let t=Nq(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}ar.getSchemaTypes=ime;function Nq(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(eme.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ar.getJSONTypes=Nq;function nme(e,t){let{gen:r,data:i,opts:n}=e,s=sme(t,n.coerceTypes),o=t.length>0&&!(s.length===0&&t.length===1&&(0,tme.schemaHasRulesForType)(e,t[0]));if(o){let a=jS(t,i,n.strictNumbers,Il.Wrong);r.if(a,()=>{s.length?ome(e,t,s):qS(e)})}return o}ar.coerceAndCheckDataType=nme;var $q=new Set(["string","number","integer","boolean","null"]);function sme(e,t){return t?e.filter(r=>$q.has(r)||t==="array"&&r==="array"):[]}function ome(e,t,r){let{gen:i,data:n,opts:s}=e,o=i.let("dataType",(0,me._)`typeof ${n}`),a=i.let("coerced",(0,me._)`undefined`);s.coerceTypes==="array"&&i.if((0,me._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,me._)`${n}[0]`).assign(o,(0,me._)`typeof ${n}`).if(jS(t,n,s.strictNumbers),()=>i.assign(a,n))),i.if((0,me._)`${a} !== undefined`);for(let c of r)($q.has(c)||c==="array"&&s.coerceTypes==="array")&&l(c);i.else(),qS(e),i.endIf(),i.if((0,me._)`${a} !== undefined`,()=>{i.assign(n,a),ame(e,a)});function l(c){switch(c){case"string":i.elseIf((0,me._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,me._)`"" + ${n}`).elseIf((0,me._)`${n} === null`).assign(a,(0,me._)`""`);return;case"number":i.elseIf((0,me._)`${o} == "boolean" || ${n} === null
|| (${o} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,me._)`+${n}`);return;case"integer":i.elseIf((0,me._)`${o} === "boolean" || ${n} === null
|| (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,me._)`+${n}`);return;case"boolean":i.elseIf((0,me._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,me._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":i.elseIf((0,me._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(a,null);return;case"array":i.elseIf((0,me._)`${o} === "string" || ${o} === "number"
|| ${o} === "boolean" || ${n} === null`).assign(a,(0,me._)`[${n}]`)}}}function ame({gen:e,parentData:t,parentDataProperty:r},i){e.if((0,me._)`${t} !== undefined`,()=>e.assign((0,me._)`${t}[${r}]`,i))}function DS(e,t,r,i=Il.Correct){let n=i===Il.Correct?me.operators.EQ:me.operators.NEQ,s;switch(e){case"null":return(0,me._)`${t} ${n} null`;case"array":s=(0,me._)`Array.isArray(${t})`;break;case"object":s=(0,me._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=o((0,me._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=o();break;default:return(0,me._)`typeof ${t} ${n} ${e}`}return i===Il.Correct?s:(0,me.not)(s);function o(a=me.nil){return(0,me.and)((0,me._)`typeof ${t} == "number"`,a,r?(0,me._)`isFinite(${t})`:me.nil)}}ar.checkDataType=DS;function jS(e,t,r,i){if(e.length===1)return DS(e[0],t,r,i);let n,s=(0,Iq.toHash)(e);if(s.array&&s.object){let o=(0,me._)`typeof ${t} != "object"`;n=s.null?o:(0,me._)`!${t} || ${o}`,delete s.null,delete s.array,delete s.object}else n=me.nil;s.number&&delete s.integer;for(let o in s)n=(0,me.and)(n,DS(o,t,r,i));return n}ar.checkDataTypes=jS;var lme={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,me._)`{type: ${e}}`:(0,me._)`{type: ${t}}`};function qS(e){let t=cme(e);(0,rme.reportError)(t,lme)}ar.reportTypeError=qS;function cme(e){let{gen:t,data:r,schema:i}=e,n=(0,Iq.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var Lq=b(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.assignDefaults=void 0;var Nl=ue(),ume=ge();function fme(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)Fq(e,n,r[n].default);else t==="array"&&Array.isArray(i)&&i.forEach((n,s)=>Fq(e,s,n.default))}Og.assignDefaults=fme;function Fq(e,t,r){let{gen:i,compositeRule:n,data:s,opts:o}=e;if(r===void 0)return;let a=(0,Nl._)`${s}${(0,Nl.getProperty)(t)}`;if(n){(0,ume.checkStrictMode)(e,`default is ignored for: ${a}`);return}let l=(0,Nl._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,Nl._)`${l} || ${a} === null || ${a} === ""`),i.if(l,(0,Nl._)`${a} = ${(0,Nl.stringify)(r)}`)}});var Ut=b(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.validateUnion=je.validateArray=je.usePattern=je.callValidateCode=je.schemaProperties=je.allSchemaProperties=je.noPropertyInData=je.propertyInData=je.isOwnProperty=je.hasPropFunc=je.reportMissingProp=je.checkMissingProp=je.checkReportMissingProp=void 0;var Ge=ue(),MS=ge(),Bs=ci(),hme=ge();function dme(e,t){let{gen:r,data:i,it:n}=e;r.if(US(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ge._)`${t}`},!0),e.error()})}je.checkReportMissingProp=dme;function pme({gen:e,data:t,it:{opts:r}},i,n){return(0,Ge.or)(...i.map(s=>(0,Ge.and)(US(e,t,s,r.ownProperties),(0,Ge._)`${n} = ${s}`)))}je.checkMissingProp=pme;function mme(e,t){e.setParams({missingProperty:t},!0),e.error()}je.reportMissingProp=mme;function Dq(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ge._)`Object.prototype.hasOwnProperty`})}je.hasPropFunc=Dq;function zS(e,t,r){return(0,Ge._)`${Dq(e)}.call(${t}, ${r})`}je.isOwnProperty=zS;function gme(e,t,r,i){let n=(0,Ge._)`${t}${(0,Ge.getProperty)(r)} !== undefined`;return i?(0,Ge._)`${n} && ${zS(e,t,r)}`:n}je.propertyInData=gme;function US(e,t,r,i){let n=(0,Ge._)`${t}${(0,Ge.getProperty)(r)} === undefined`;return i?(0,Ge.or)(n,(0,Ge.not)(zS(e,t,r))):n}je.noPropertyInData=US;function jq(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}je.allSchemaProperties=jq;function yme(e,t){return jq(t).filter(r=>!(0,MS.alwaysValidSchema)(e,t[r]))}je.schemaProperties=yme;function vme({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:s},it:o},a,l,c){let u=c?(0,Ge._)`${e}, ${t}, ${i}${n}`:t,f=[[Bs.default.instancePath,(0,Ge.strConcat)(Bs.default.instancePath,s)],[Bs.default.parentData,o.parentData],[Bs.default.parentDataProperty,o.parentDataProperty],[Bs.default.rootData,Bs.default.rootData]];o.opts.dynamicRef&&f.push([Bs.default.dynamicAnchors,Bs.default.dynamicAnchors]);let h=(0,Ge._)`${u}, ${r.object(...f)}`;return l!==Ge.nil?(0,Ge._)`${a}.call(${l}, ${h})`:(0,Ge._)`${a}(${h})`}je.callValidateCode=vme;var _me=(0,Ge._)`new RegExp`;function bme({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,s=n(r,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Ge._)`${n.code==="new RegExp"?_me:(0,hme.useFunc)(e,n)}(${r}, ${i})`})}je.usePattern=bme;function wme(e){let{gen:t,data:r,keyword:i,it:n}=e,s=t.name("valid");if(n.allErrors){let a=t.let("valid",!0);return o(()=>t.assign(a,!1)),a}return t.var(s,!0),o(()=>t.break()),s;function o(a){let l=t.const("len",(0,Ge._)`${r}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:i,dataProp:c,dataPropType:MS.Type.Num},s),t.if((0,Ge.not)(s),a)})}}je.validateArray=wme;function Sme(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,MS.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;let o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((l,c)=>{let u=e.subschema({keyword:i,schemaProp:c,compositeRule:!0},a);t.assign(o,(0,Ge._)`${o} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,Ge.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}je.validateUnion=Sme});var zq=b(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.validateKeywordUsage=fn.validSchemaType=fn.funcKeywordCode=fn.macroKeywordCode=void 0;var xr=ue(),ea=ci(),xme=Ut(),Eme=pf();function kme(e,t){let{gen:r,keyword:i,schema:n,parentSchema:s,it:o}=e,a=t.macro.call(o.self,n,s,o),l=Mq(r,i,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let c=r.name("valid");e.subschema({schema:a,schemaPath:xr.nil,errSchemaPath:`${o.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}fn.macroKeywordCode=kme;function Rme(e,t){var r;let{gen:i,keyword:n,schema:s,parentSchema:o,$data:a,it:l}=e;Ome(l,t);let c=!a&&t.compile?t.compile.call(l.self,s,o,l):t.validate,u=Mq(i,n,c),f=i.let("valid");e.block$data(f,h),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function h(){if(t.errors===!1)m(),t.modifying&&qq(e),y(()=>e.error());else{let _=t.async?d():p();t.modifying&&qq(e),y(()=>Tme(e,_))}}function d(){let _=i.let("ruleErrs",null);return i.try(()=>m((0,xr._)`await `),w=>i.assign(f,!1).if((0,xr._)`${w} instanceof ${l.ValidationError}`,()=>i.assign(_,(0,xr._)`${w}.errors`),()=>i.throw(w))),_}function p(){let _=(0,xr._)`${u}.errors`;return i.assign(_,null),m(xr.nil),_}function m(_=t.async?(0,xr._)`await `:xr.nil){let w=l.opts.passContext?ea.default.this:ea.default.self,v=!("compile"in t&&!a||t.schema===!1);i.assign(f,(0,xr._)`${_}${(0,xme.callValidateCode)(e,u,w,v)}`,t.modifying)}function y(_){var w;i.if((0,xr.not)((w=t.valid)!==null&&w!==void 0?w:f),_)}}fn.funcKeywordCode=Rme;function qq(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,xr._)`${i.parentData}[${i.parentDataProperty}]`))}function Tme(e,t){let{gen:r}=e;r.if((0,xr._)`Array.isArray(${t})`,()=>{r.assign(ea.default.vErrors,(0,xr._)`${ea.default.vErrors} === null ? ${t} : ${ea.default.vErrors}.concat(${t})`).assign(ea.default.errors,(0,xr._)`${ea.default.vErrors}.length`),(0,Eme.extendErrors)(e)},()=>e.error())}function Ome({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Mq(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,xr.stringify)(r)})}function Ame(e,t,r=!1){return!t.length||t.some(i=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}fn.validSchemaType=Ame;function Cme({schema:e,opts:t,self:r,errSchemaPath:i},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let o=n.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[s])){let l=`keyword "${s}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}fn.validateKeywordUsage=Cme});var Bq=b(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.extendSubschemaMode=Hs.extendSubschemaData=Hs.getSubschema=void 0;var hn=ue(),Uq=ge();function Pme(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,hn._)`${e.schemaPath}${(0,hn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,hn._)`${e.schemaPath}${(0,hn.getProperty)(t)}${(0,hn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Uq.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Hs.getSubschema=Pme;function Ime(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:s,propertyName:o}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:c,dataPathArr:u,opts:f}=t,h=a.let("data",(0,hn._)`${t.data}${(0,hn.getProperty)(r)}`,!0);l(h),e.errorPath=(0,hn.str)`${c}${(0,Uq.getErrorPath)(r,i,f.jsPropertySyntax)}`,e.parentDataProperty=(0,hn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(n!==void 0){let c=n instanceof hn.Name?n:a.let("data",n,!0);l(c),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Hs.extendSubschemaData=Ime;function Nme(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:s}){i!==void 0&&(e.compositeRule=i),n!==void 0&&(e.createErrors=n),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Hs.extendSubschemaMode=Nme});var Vq=b((NMe,Hq)=>{"use strict";var Vs=Hq.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Ag(t,i,n,e,"",e)};Vs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vs.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 Ag(e,t,r,i,n,s,o,a,l,c){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,s,o,a,l,c);for(var u in i){var f=i[u];if(Array.isArray(f)){if(u in Vs.arrayKeywords)for(var h=0;h<f.length;h++)Ag(e,t,r,f[h],n+"/"+u+"/"+h,s,n,u,i,h)}else if(u in Vs.propsKeywords){if(f&&typeof f=="object")for(var d in f)Ag(e,t,r,f[d],n+"/"+u+"/"+$me(d),s,n,u,i,d)}else(u in Vs.keywords||e.allKeys&&!(u in Vs.skipKeywords))&&Ag(e,t,r,f,n+"/"+u,s,n,u,i)}r(i,n,s,o,a,l,c)}}function $me(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var gf=b(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.getSchemaRefs=Mr.resolveUrl=Mr.normalizeId=Mr._getFullPath=Mr.getFullPath=Mr.inlineRef=void 0;var Fme=ge(),Lme=Ms(),Dme=Vq(),jme=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function qme(e,t=!0){return typeof e=="boolean"?!0:t===!0?!BS(e):t?Wq(e)<=t:!1}Mr.inlineRef=qme;var Mme=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function BS(e){for(let t in e){if(Mme.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(BS)||typeof r=="object"&&BS(r))return!0}return!1}function Wq(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!jme.has(r)&&(typeof e[r]=="object"&&(0,Fme.eachItem)(e[r],i=>t+=Wq(i)),t===1/0))return 1/0}return t}function Gq(e,t="",r){r!==!1&&(t=$l(t));let i=e.parse(t);return Yq(e,i)}Mr.getFullPath=Gq;function Yq(e,t){return e.serialize(t).split("#")[0]+"#"}Mr._getFullPath=Yq;var zme=/#\/?$/;function $l(e){return e?e.replace(zme,""):""}Mr.normalizeId=$l;function Ume(e,t,r){return r=$l(r),e.resolve(t,r)}Mr.resolveUrl=Ume;var Bme=/^[a-z_][-a-z0-9._]*$/i;function Hme(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=$l(e[r]||t),s={"":n},o=Gq(i,n,!1),a={},l=new Set;return Dme(e,{allKeys:!0},(f,h,d,p)=>{if(p===void 0)return;let m=o+h,y=s[p];typeof f[r]=="string"&&(y=_.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[h]=y;function _(v){let g=this.opts.uriResolver.resolve;if(v=$l(y?g(y,v):v),l.has(v))throw u(v);l.add(v);let T=this.refs[v];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?c(f,T.schema,v):v!==$l(m)&&(v[0]==="#"?(c(f,a[v],v),a[v]=f):this.refs[v]=m),v}function w(v){if(typeof v=="string"){if(!Bme.test(v))throw new Error(`invalid anchor "${v}"`);_.call(this,`#${v}`)}}}),a;function c(f,h,d){if(h!==void 0&&!Lme(f,h))throw u(d)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Mr.getSchemaRefs=Hme});var Fl=b(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.getData=Ws.KeywordCxt=Ws.validateFunctionCode=void 0;var Qq=Aq(),Kq=mf(),VS=LS(),Cg=mf(),Vme=Lq(),vf=zq(),HS=Bq(),oe=ue(),de=ci(),Wme=gf(),Kn=ge(),yf=pf();function Gme(e){if(rM(e)&&(iM(e),tM(e))){Jme(e);return}eM(e,()=>(0,Qq.topBoolOrEmptySchema)(e))}Ws.validateFunctionCode=Gme;function eM({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},s){n.code.es5?e.func(t,(0,oe._)`${de.default.data}, ${de.default.valCxt}`,i.$async,()=>{e.code((0,oe._)`"use strict"; ${Jq(r,n)}`),Kme(e,n),e.code(s)}):e.func(t,(0,oe._)`${de.default.data}, ${Yme(n)}`,i.$async,()=>e.code(Jq(r,n)).code(s))}function Yme(e){return(0,oe._)`{${de.default.instancePath}="", ${de.default.parentData}, ${de.default.parentDataProperty}, ${de.default.rootData}=${de.default.data}${e.dynamicRef?(0,oe._)`, ${de.default.dynamicAnchors}={}`:oe.nil}}={}`}function Kme(e,t){e.if(de.default.valCxt,()=>{e.var(de.default.instancePath,(0,oe._)`${de.default.valCxt}.${de.default.instancePath}`),e.var(de.default.parentData,(0,oe._)`${de.default.valCxt}.${de.default.parentData}`),e.var(de.default.parentDataProperty,(0,oe._)`${de.default.valCxt}.${de.default.parentDataProperty}`),e.var(de.default.rootData,(0,oe._)`${de.default.valCxt}.${de.default.rootData}`),t.dynamicRef&&e.var(de.default.dynamicAnchors,(0,oe._)`${de.default.valCxt}.${de.default.dynamicAnchors}`)},()=>{e.var(de.default.instancePath,(0,oe._)`""`),e.var(de.default.parentData,(0,oe._)`undefined`),e.var(de.default.parentDataProperty,(0,oe._)`undefined`),e.var(de.default.rootData,de.default.data),t.dynamicRef&&e.var(de.default.dynamicAnchors,(0,oe._)`{}`)})}function Jme(e){let{schema:t,opts:r,gen:i}=e;eM(e,()=>{r.$comment&&t.$comment&&sM(e),tge(e),i.let(de.default.vErrors,null),i.let(de.default.errors,0),r.unevaluated&&Zme(e),nM(e),nge(e)})}function Zme(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,oe._)`${r}.evaluated`),t.if((0,oe._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,oe._)`${e.evaluated}.props`,(0,oe._)`undefined`)),t.if((0,oe._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,oe._)`${e.evaluated}.items`,(0,oe._)`undefined`))}function Jq(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,oe._)`/*# sourceURL=${r} */`:oe.nil}function Xme(e,t){if(rM(e)&&(iM(e),tM(e))){Qme(e,t);return}(0,Qq.boolOrEmptySchema)(e,t)}function tM({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function rM(e){return typeof e.schema!="boolean"}function Qme(e,t){let{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&sM(e),rge(e),ige(e);let s=i.const("_errs",de.default.errors);nM(e,s),i.var(t,(0,oe._)`${s} === ${de.default.errors}`)}function iM(e){(0,Kn.checkUnknownRules)(e),ege(e)}function nM(e,t){if(e.opts.jtd)return Zq(e,[],!1,t);let r=(0,Kq.getSchemaTypes)(e.schema),i=(0,Kq.coerceAndCheckDataType)(e,r);Zq(e,r,!i,t)}function ege(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,Kn.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function tge(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Kn.checkStrictMode)(e,"default is ignored in the schema root")}function rge(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Wme.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function ige(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function sM({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let s=r.$comment;if(n.$comment===!0)e.code((0,oe._)`${de.default.self}.logger.log(${s})`);else if(typeof n.$comment=="function"){let o=(0,oe.str)`${i}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,oe._)`${de.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function nge(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:s}=e;r.$async?t.if((0,oe._)`${de.default.errors} === 0`,()=>t.return(de.default.data),()=>t.throw((0,oe._)`new ${n}(${de.default.vErrors})`)):(t.assign((0,oe._)`${i}.errors`,de.default.vErrors),s.unevaluated&&sge(e),t.return((0,oe._)`${de.default.errors} === 0`))}function sge({gen:e,evaluated:t,props:r,items:i}){r instanceof oe.Name&&e.assign((0,oe._)`${t}.props`,r),i instanceof oe.Name&&e.assign((0,oe._)`${t}.items`,i)}function Zq(e,t,r,i){let{gen:n,schema:s,data:o,allErrors:a,opts:l,self:c}=e,{RULES:u}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,Kn.schemaHasRulesButRef)(s,u))){n.block(()=>aM(e,"$ref",u.all.$ref.definition));return}l.jtd||oge(e,t),n.block(()=>{for(let h of u.rules)f(h);f(u.post)});function f(h){(0,VS.shouldUseGroup)(s,h)&&(h.type?(n.if((0,Cg.checkDataType)(h.type,o,l.strictNumbers)),Xq(e,h),t.length===1&&t[0]===h.type&&r&&(n.else(),(0,Cg.reportTypeError)(e)),n.endIf()):Xq(e,h),a||n.if((0,oe._)`${de.default.errors} === ${i||0}`))}}function Xq(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,Vme.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,VS.shouldUseRule)(i,s)&&aM(e,s.keyword,s.definition,t.type)})}function oge(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(age(e,t),e.opts.allowUnionTypes||lge(e,t),cge(e,e.dataTypes))}function age(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{oM(e.dataTypes,r)||WS(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),fge(e,t)}}function lge(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&WS(e,"use allowUnionTypes to allow union type keyword")}function cge(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,VS.shouldUseRule)(e.schema,n)){let{type:s}=n.definition;s.length&&!s.some(o=>uge(t,o))&&WS(e,`missing type "${s.join(",")}" for keyword "${i}"`)}}}function uge(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function oM(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function fge(e,t){let r=[];for(let i of e.dataTypes)oM(t,i)?r.push(i):t.includes("integer")&&i==="number"&&r.push("integer");e.dataTypes=r}function WS(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Kn.checkStrictMode)(e,t,e.opts.strictTypes)}var Pg=class{constructor(t,r,i){if((0,vf.validateKeywordUsage)(t,r,i),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=i,this.data=t.data,this.schema=t.schema[i],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Kn.schemaRefOrVal)(t,this.schema,i,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",lM(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,vf.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",de.default.errors))}result(t,r,i){this.failResult((0,oe.not)(t),r,i)}failResult(t,r,i){this.gen.if(t),i?i():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,oe.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);let{schemaCode:r}=this;this.fail((0,oe._)`${r} !== undefined && (${(0,oe.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r),this._error(t,i),this.setParams({});return}this._error(t,i)}_error(t,r){(t?yf.reportExtraError:yf.reportError)(this,this.def.error,r)}$dataError(){(0,yf.reportError)(this,this.def.$dataError||yf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,yf.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,i=oe.nil){this.gen.block(()=>{this.check$data(t,i),r()})}check$data(t=oe.nil,r=oe.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:s,def:o}=this;i.if((0,oe.or)((0,oe._)`${n} === undefined`,r)),t!==oe.nil&&i.assign(t,!0),(s.length||o.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),t!==oe.nil&&i.assign(t,!1)),i.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:i,def:n,it:s}=this;return(0,oe.or)(o(),a());function o(){if(i.length){if(!(r instanceof oe.Name))throw new Error("ajv implementation error");let l=Array.isArray(i)?i:[i];return(0,oe._)`${(0,Cg.checkDataTypes)(l,r,s.opts.strictNumbers,Cg.DataType.Wrong)}`}return oe.nil}function a(){if(n.validateSchema){let l=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,oe._)`!${l}(${r})`}return oe.nil}}subschema(t,r){let i=(0,HS.getSubschema)(this.it,t);(0,HS.extendSubschemaData)(i,this.it,t),(0,HS.extendSubschemaMode)(i,t);let n={...this.it,...i,items:void 0,props:void 0};return Xme(n,r),n}mergeEvaluated(t,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&t.props!==void 0&&(i.props=Kn.mergeEvaluated.props(n,t.props,i.props,r)),i.items!==!0&&t.items!==void 0&&(i.items=Kn.mergeEvaluated.items(n,t.items,i.items,r)))}mergeValidEvaluated(t,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,oe.Name)),!0}};Ws.KeywordCxt=Pg;function aM(e,t,r,i){let n=new Pg(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,vf.funcKeywordCode)(n,r):"macro"in r?(0,vf.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,vf.funcKeywordCode)(n,r)}var hge=/^\/(?:[^~]|~0|~1)*$/,dge=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lM(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,s;if(e==="")return de.default.rootData;if(e[0]==="/"){if(!hge.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,s=de.default.rootData}else{let c=dge.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+c[1];if(n=c[2],n==="#"){if(u>=t)throw new Error(l("property/index",u));return i[t-u]}if(u>t)throw new Error(l("data",u));if(s=r[t-u],!n)return s}let o=s,a=n.split("/");for(let c of a)c&&(s=(0,oe._)`${s}${(0,oe.getProperty)((0,Kn.unescapeJsonPointer)(c))}`,o=(0,oe._)`${o} && ${s}`);return o;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ws.getData=lM});var _f=b(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});var GS=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};YS.default=GS});var Jn=b(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var KS=gf(),JS=class extends Error{constructor(t,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,KS.resolveUrl)(t,r,i),this.missingSchema=(0,KS.normalizeId)((0,KS.getFullPath)(t,this.missingRef))}};ZS.default=JS});var ra=b(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.resolveSchema=ui.getCompilingSchema=ui.resolveRef=ui.compileSchema=ui.SchemaEnv=void 0;var Ni=ue(),pge=_f(),ta=ci(),$i=gf(),cM=ge(),mge=Fl(),Ll=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let i;typeof t.schema=="object"&&(i=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,$i.normalizeId)(i?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=i?.$async,this.refs={}}};ui.SchemaEnv=Ll;function QS(e){let t=uM.call(this,e);if(t)return t;let r=(0,$i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:s}=this.opts,o=new Ni.CodeGen(this.scope,{es5:i,lines:n,ownProperties:s}),a;e.$async&&(a=o.scopeValue("Error",{ref:pge.default,code:(0,Ni._)`require("ajv/dist/runtime/validation_error").default`}));let l=o.scopeName("validate");e.validateName=l;let c={gen:o,allErrors:this.opts.allErrors,data:ta.default.data,parentData:ta.default.parentData,parentDataProperty:ta.default.parentDataProperty,dataNames:[ta.default.data],dataPathArr:[Ni.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ni.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ni.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ni._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,mge.validateFunctionCode)(c),o.optimize(this.opts.code.optimize);let f=o.toString();u=`${o.scopeRefs(ta.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${ta.default.self}`,`${ta.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{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:l,validateCode:f,scopeValues:o._values}),this.opts.unevaluated){let{props:p,items:m}=c;d.evaluated={props:p instanceof Ni.Name?void 0:p,items:m instanceof Ni.Name?void 0:m,dynamicProps:p instanceof Ni.Name,dynamicItems:m instanceof Ni.Name},d.source&&(d.source.evaluated=(0,Ni.stringify)(d.evaluated))}return e.validate=d,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}ui.compileSchema=QS;function gge(e,t,r){var i;r=(0,$i.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let s=_ge.call(this,e,r);if(s===void 0){let o=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:a}=this.opts;o&&(s=new Ll({schema:o,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=yge.call(this,s)}ui.resolveRef=gge;function yge(e){return(0,$i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:QS.call(this,e)}function uM(e){for(let t of this._compilations)if(vge(t,e))return t}ui.getCompilingSchema=uM;function vge(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function _ge(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ig.call(this,e,t)}function Ig(e,t){let r=this.opts.uriResolver.parse(t),i=(0,$i._getFullPath)(this.opts.uriResolver,r),n=(0,$i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return XS.call(this,r,e);let s=(0,$i.normalizeId)(i),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=Ig.call(this,e,o);return typeof a?.schema!="object"?void 0:XS.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||QS.call(this,o),s===(0,$i.normalizeId)(t)){let{schema:a}=o,{schemaId:l}=this.opts,c=a[l];return c&&(n=(0,$i.resolveUrl)(this.opts.uriResolver,n,c)),new Ll({schema:a,schemaId:l,root:e,baseId:n})}return XS.call(this,r,o)}}ui.resolveSchema=Ig;var bge=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function XS(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let l=r[(0,cM.unescapeFragment)(a)];if(l===void 0)return;r=l;let c=typeof r=="object"&&r[this.opts.schemaId];!bge.has(a)&&c&&(t=(0,$i.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,cM.schemaHasRulesButRef)(r,this.RULES)){let a=(0,$i.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Ig.call(this,i,a)}let{schemaId:o}=this.opts;if(s=s||new Ll({schema:r,schemaId:o,root:i,baseId:t}),s.schema!==s.root.schema)return s}});var fM=b((qMe,wge)=>{wge.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var dM=b((MMe,hM)=>{"use strict";var Sge={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};hM.exports={HEX:Sge}});var wM=b((zMe,bM)=>{"use strict";var{HEX:xge}=dM(),Ege=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function yM(e){if(_M(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(Ege)||[],[r]=t;return r?{host:Rge(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function ex(e,t=!1){let r="",i=!0;for(let n of e){if(xge[n]===void 0)return;n!=="0"&&i===!0&&(i=!1),i||(r+=n)}return t&&r.length===0&&(r="0"),r}function kge(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],s=!1,o=!1,a=!1;function l(){if(n.length){if(s===!1){let c=ex(n);if(c!==void 0)i.push(c);else return r.error=!0,!1}n.length=0}return!0}for(let c=0;c<e.length;c++){let u=e[c];if(!(u==="["||u==="]"))if(u===":"){if(o===!0&&(a=!0),!l())break;if(t++,i.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(o=!0);continue}else if(u==="%"){if(!l())break;s=!0}else{n.push(u);continue}}return n.length&&(s?r.zone=n.join(""):a?i.push(n.join("")):i.push(ex(n))),r.address=i.join(""),r}function vM(e){if(_M(e,":")<2)return{host:e,isIPV6:!1};let t=kge(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,i=t.address;return t.zone&&(r+="%"+t.zone,i+="%25"+t.zone),{host:r,escapedHost:i,isIPV6:!0}}}function Rge(e,t){let r="",i=!0,n=e.length;for(let s=0;s<n;s++){let o=e[s];o==="0"&&i?(s+1<=n&&e[s+1]===t||s+1===n)&&(r+=o,i=!1):(o===t?i=!0:i=!1,r+=o)}return r}function _M(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}var pM=/^\.\.?\//u,mM=/^\/\.(?:\/|$)/u,gM=/^\/\.\.(?:\/|$)/u,Tge=/^\/?(?:.|\n)*?(?=\/|$)/u;function Oge(e){let t=[];for(;e.length;)if(e.match(pM))e=e.replace(pM,"");else if(e.match(mM))e=e.replace(mM,"/");else if(e.match(gM))e=e.replace(gM,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Tge);if(r){let i=r[0];e=e.slice(i.length),t.push(i)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Age(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function Cge(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host),i=yM(r);if(i.isIPV4)r=i.host;else{let n=vM(i.host);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}bM.exports={recomposeAuthority:Cge,normalizeComponentEncoding:Age,removeDotSegments:Oge,normalizeIPv4:yM,normalizeIPv6:vM,stringArrayToHexStripped:ex}});var TM=b((UMe,RM)=>{"use strict";var Pge=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,Ige=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function SM(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function xM(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function EM(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function Nge(e){return e.secure=SM(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function $ge(e){if((e.port===(SM(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function Fge(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Ige);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,s=tx[n];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function Lge(e,t){let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,s=tx[n];s&&(e=s.serialize(e,t));let o=e,a=e.nss;return o.path=`${i||t.nid}:${a}`,t.skipEscape=!0,o}function Dge(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Pge.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function jge(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var kM={scheme:"http",domainHost:!0,parse:xM,serialize:EM},qge={scheme:"https",domainHost:kM.domainHost,parse:xM,serialize:EM},Ng={scheme:"ws",domainHost:!0,parse:Nge,serialize:$ge},Mge={scheme:"wss",domainHost:Ng.domainHost,parse:Ng.parse,serialize:Ng.serialize},zge={scheme:"urn",parse:Fge,serialize:Lge,skipNormalize:!0},Uge={scheme:"urn:uuid",parse:Dge,serialize:jge,skipNormalize:!0},tx={http:kM,https:qge,ws:Ng,wss:Mge,urn:zge,"urn:uuid":Uge};RM.exports=tx});var AM=b((BMe,Fg)=>{"use strict";var{normalizeIPv6:Bge,normalizeIPv4:Hge,removeDotSegments:bf,recomposeAuthority:Vge,normalizeComponentEncoding:$g}=wM(),rx=TM();function Wge(e,t){return typeof e=="string"?e=dn(Zn(e,t),t):typeof e=="object"&&(e=Zn(dn(e,t),t)),e}function Gge(e,t,r){let i=Object.assign({scheme:"null"},r),n=OM(Zn(e,i),Zn(t,i),i,!0);return dn(n,{...i,skipEscape:!0})}function OM(e,t,r,i){let n={};return i||(e=Zn(dn(e,r),r),t=Zn(dn(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=bf(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=bf(t.path||""),n.query=t.query):(t.path?(t.path.charAt(0)==="/"?n.path=bf(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=bf(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function Yge(e,t,r){return typeof e=="string"?(e=unescape(e),e=dn($g(Zn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=dn($g(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=dn($g(Zn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=dn($g(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function dn(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],s=rx[(i.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,i),r.path!==void 0&&(i.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),i.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let o=Vge(r);if(o!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(o),r.path&&r.path.charAt(0)!=="/"&&n.push("/")),r.path!==void 0){let a=r.path;!i.absolutePath&&(!s||!s.absolutePath)&&(a=bf(a)),o===void 0&&(a=a.replace(/^\/\//u,"/%2F")),n.push(a)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}var Kge=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function Jge(e){let t=0;for(let r=0,i=e.length;r<i;++r)if(t=e.charCodeAt(r),t>126||Kge[t])return!0;return!1}var Zge=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Zn(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let o=e.match(Zge);if(o){if(i.scheme=o[1],i.userinfo=o[3],i.host=o[4],i.port=parseInt(o[5],10),i.path=o[6]||"",i.query=o[7],i.fragment=o[8],isNaN(i.port)&&(i.port=o[5]),i.host){let l=Hge(i.host);if(l.isIPV4===!1){let c=Bge(l.host);i.host=c.host.toLowerCase(),s=c.isIPV6}else i.host=l.host,s=!0}i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let a=rx[(r.scheme||i.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&i.host&&(r.domainHost||a&&a.domainHost)&&s===!1&&Jge(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(l){i.error=i.error||"Host's domain name can not be converted to ASCII: "+l}(!a||a&&!a.skipNormalize)&&(n&&i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),n&&i.host!==void 0&&(i.host=unescape(i.host)),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),a&&a.parse&&a.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}var ix={SCHEMES:rx,normalize:Wge,resolve:Gge,resolveComponents:OM,equal:Yge,serialize:dn,parse:Zn};Fg.exports=ix;Fg.exports.default=ix;Fg.exports.fastUri=ix});var PM=b(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});var CM=AM();CM.code='require("ajv/dist/runtime/uri").default';nx.default=CM});var ax=b(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.CodeGen=Bt.Name=Bt.nil=Bt.stringify=Bt.str=Bt._=Bt.KeywordCxt=void 0;var Xge=Fl();Object.defineProperty(Bt,"KeywordCxt",{enumerable:!0,get:function(){return Xge.KeywordCxt}});var Dl=ue();Object.defineProperty(Bt,"_",{enumerable:!0,get:function(){return Dl._}});Object.defineProperty(Bt,"str",{enumerable:!0,get:function(){return Dl.str}});Object.defineProperty(Bt,"stringify",{enumerable:!0,get:function(){return Dl.stringify}});Object.defineProperty(Bt,"nil",{enumerable:!0,get:function(){return Dl.nil}});Object.defineProperty(Bt,"Name",{enumerable:!0,get:function(){return Dl.Name}});Object.defineProperty(Bt,"CodeGen",{enumerable:!0,get:function(){return Dl.CodeGen}});var Qge=_f(),LM=Jn(),e0e=FS(),wf=ra(),t0e=ue(),Sf=gf(),Lg=mf(),ox=ge(),IM=fM(),r0e=PM(),DM=(e,t)=>new RegExp(e,t);DM.code="new RegExp";var i0e=["removeAdditional","useDefaults","coerceTypes"],n0e=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),s0e={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."},o0e={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},NM=200;function a0e(e){var t,r,i,n,s,o,a,l,c,u,f,h,d,p,m,y,_,w,v,g,T,N,R,A,C;let k=e.strict,P=(t=e.code)===null||t===void 0?void 0:t.optimize,L=P===!0||P===void 0?1:P||0,q=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:DM,G=(n=e.uriResolver)!==null&&n!==void 0?n:r0e.default;return{strictSchema:(o=(s=e.strictSchema)!==null&&s!==void 0?s:k)!==null&&o!==void 0?o:!0,strictNumbers:(l=(a=e.strictNumbers)!==null&&a!==void 0?a:k)!==null&&l!==void 0?l:!0,strictTypes:(u=(c=e.strictTypes)!==null&&c!==void 0?c:k)!==null&&u!==void 0?u:"log",strictTuples:(h=(f=e.strictTuples)!==null&&f!==void 0?f:k)!==null&&h!==void 0?h:"log",strictRequired:(p=(d=e.strictRequired)!==null&&d!==void 0?d:k)!==null&&p!==void 0?p:!1,code:e.code?{...e.code,optimize:L,regExp:q}:{optimize:L,regExp:q},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:NM,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:NM,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(g=e.schemaId)!==null&&g!==void 0?g:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(C=e.int32range)!==null&&C!==void 0?C:!0,uriResolver:G}}var xf=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...a0e(t)};let{es5:r,lines:i}=this.opts.code;this.scope=new t0e.ValueScope({scope:{},prefixes:n0e,es5:r,lines:i}),this.logger=d0e(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,e0e.getRules)(),$M.call(this,s0e,t,"NOT SUPPORTED"),$M.call(this,o0e,t,"DEPRECATED","warn"),this._metaOpts=f0e.call(this),t.formats&&c0e.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&u0e.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),l0e.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:i}=this.opts,n=IM;i==="id"&&(n={...IM},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error(`no schema with key or ref "${t}"`)}else i=this.compile(t);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(t,r){let i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,t,r);async function n(u,f){await s.call(this,u.$schema);let h=this._addSchema(u,f);return h.validate||o.call(this,h)}async function s(u){u&&!this.getSchema(u)&&await n.call(this,{$ref:u},!0)}async function o(u){try{return this._compileSchemaEnv(u)}catch(f){if(!(f instanceof LM.default))throw f;return a.call(this,f),await l.call(this,f.missingSchema),o.call(this,u)}}function a({missingSchema:u,missingRef:f}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${f} cannot be resolved`)}async function l(u){let f=await c.call(this,u);this.refs[u]||await s.call(this,f.$schema),this.refs[u]||this.addSchema(f,u,r)}async function c(u){let f=this._loading[u];if(f)return f;try{return await(this._loading[u]=i(u))}finally{delete this._loading[u]}}}addSchema(t,r,i,n=this.opts.validateSchema){if(Array.isArray(t)){for(let o of t)this.addSchema(o,void 0,i,n);return this}let s;if(typeof t=="object"){let{schemaId:o}=this.opts;if(s=t[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return r=(0,Sf.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,i,r,n,!0),this}addMetaSchema(t,r,i=this.opts.validateSchema){return this.addSchema(t,r,!0,i),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let i;if(i=t.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,t);if(!n&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return n}getSchema(t){let r;for(;typeof(r=FM.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:i}=this.opts,n=new wf.SchemaEnv({schema:{},schemaId:i});if(r=wf.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}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":{let r=FM.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let i=t[this.opts.schemaId];return i&&(i=(0,Sf.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string")i=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof t=="object"&&r===void 0){if(r=t,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(m0e.call(this,i,r),!r)return(0,ox.eachItem)(i,s=>sx.call(this,s)),this;y0e.call(this,r);let n={...r,type:(0,Lg.getJSONTypes)(r.type),schemaType:(0,Lg.getJSONTypes)(r.schemaType)};return(0,ox.eachItem)(i,n.type.length===0?s=>sx.call(this,s,n):s=>n.type.forEach(o=>sx.call(this,s,n,o))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let i of r.rules){let n=i.rules.findIndex(s=>s.keyword===t);n>=0&&i.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,s)=>n+r+s)}$dataMetaSchema(t,r){let i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let s=n.split("/").slice(1),o=t;for(let a of s)o=o[a];for(let a in i){let l=i[a];if(typeof l!="object")continue;let{$data:c}=l.definition,u=o[a];c&&u&&(o[a]=jM(u))}}return t}_removeAllSchemas(t,r){for(let i in t){let n=t[i];(!r||r.test(i))&&(typeof n=="string"?delete t[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[i]))}}_addSchema(t,r,i,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof t=="object")o=t[a];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 l=this._cache.get(t);if(l!==void 0)return l;i=(0,Sf.normalizeId)(o||i);let c=Sf.getSchemaRefs.call(this,t,i);return l=new wf.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:i,localRefs:c}),this._cache.set(l.schema,l),s&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=l),n&&this.validateSchema(t,!0),l}_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):wf.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{wf.compileSchema.call(this,t)}finally{this.opts=r}}};xf.ValidationError=Qge.default;xf.MissingRefError=LM.default;Bt.default=xf;function $M(e,t,r,i="error"){for(let n in e){let s=n;s in t&&this.logger[i](`${r}: option ${n}. ${e[s]}`)}}function FM(e){return e=(0,Sf.normalizeId)(e),this.schemas[e]||this.refs[e]}function l0e(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function c0e(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function u0e(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function f0e(){let e={...this.opts};for(let t of i0e)delete e[t];return e}var h0e={log(){},warn(){},error(){}};function d0e(e){if(e===!1)return h0e;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var p0e=/^[a-z_$][a-z0-9_$:-]*$/i;function m0e(e,t){let{RULES:r}=this;if((0,ox.eachItem)(e,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!p0e.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function sx(e,t,r){var i;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=n?s.post:s.rules.find(({type:l})=>l===r);if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Lg.getJSONTypes)(t.type),schemaType:(0,Lg.getJSONTypes)(t.schemaType)}};t.before?g0e.call(this,o,a,t.before):o.rules.push(a),s.all[e]=a,(i=t.implements)===null||i===void 0||i.forEach(l=>this.addKeyword(l))}function g0e(e,t,r){let i=e.rules.findIndex(n=>n.keyword===r);i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function y0e(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=jM(t)),e.validateSchema=this.compile(t,!0))}var v0e={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jM(e){return{anyOf:[e,v0e]}}});var qM=b(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0});var _0e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};lx.default=_0e});var cx=b(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.callRef=ia.getValidate=void 0;var b0e=Jn(),MM=Ut(),zr=ue(),jl=ci(),zM=ra(),Dg=ge(),w0e={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:s,validateName:o,opts:a,self:l}=i,{root:c}=s;if((r==="#"||r==="#/")&&n===c.baseId)return f();let u=zM.resolveRef.call(l,c,n,r);if(u===void 0)throw new b0e.default(i.opts.uriResolver,n,r);if(u instanceof zM.SchemaEnv)return h(u);return d(u);function f(){if(s===c)return jg(e,o,s,s.$async);let p=t.scopeValue("root",{ref:c});return jg(e,(0,zr._)`${p}.validate`,c,c.$async)}function h(p){let m=UM(e,p);jg(e,m,p,p.$async)}function d(p){let m=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,zr.stringify)(p)}:{ref:p}),y=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:zr.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(_),e.ok(y)}}};function UM(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,zr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ia.getValidate=UM;function jg(e,t,r,i){let{gen:n,it:s}=e,{allErrors:o,schemaEnv:a,opts:l}=s,c=l.passContext?jl.default.this:zr.nil;i?u():f();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=n.let("valid");n.try(()=>{n.code((0,zr._)`await ${(0,MM.callValidateCode)(e,t,c)}`),d(t),o||n.assign(p,!0)},m=>{n.if((0,zr._)`!(${m} instanceof ${s.ValidationError})`,()=>n.throw(m)),h(m),o||n.assign(p,!1)}),e.ok(p)}function f(){e.result((0,MM.callValidateCode)(e,t,c),()=>d(t),()=>h(t))}function h(p){let m=(0,zr._)`${p}.errors`;n.assign(jl.default.vErrors,(0,zr._)`${jl.default.vErrors} === null ? ${m} : ${jl.default.vErrors}.concat(${m})`),n.assign(jl.default.errors,(0,zr._)`${jl.default.vErrors}.length`)}function d(p){var m;if(!s.opts.unevaluated)return;let y=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=Dg.mergeEvaluated.props(n,y.props,s.props));else{let _=n.var("props",(0,zr._)`${p}.evaluated.props`);s.props=Dg.mergeEvaluated.props(n,_,s.props,zr.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=Dg.mergeEvaluated.items(n,y.items,s.items));else{let _=n.var("items",(0,zr._)`${p}.evaluated.items`);s.items=Dg.mergeEvaluated.items(n,_,s.items,zr.Name)}}}ia.callRef=jg;ia.default=w0e});var BM=b(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var S0e=qM(),x0e=cx(),E0e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",S0e.default,x0e.default];ux.default=E0e});var HM=b(fx=>{"use strict";Object.defineProperty(fx,"__esModule",{value:!0});var qg=ue(),Gs=qg.operators,Mg={maximum:{okStr:"<=",ok:Gs.LTE,fail:Gs.GT},minimum:{okStr:">=",ok:Gs.GTE,fail:Gs.LT},exclusiveMaximum:{okStr:"<",ok:Gs.LT,fail:Gs.GTE},exclusiveMinimum:{okStr:">",ok:Gs.GT,fail:Gs.LTE}},k0e={message:({keyword:e,schemaCode:t})=>(0,qg.str)`must be ${Mg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,qg._)`{comparison: ${Mg[e].okStr}, limit: ${t}}`},R0e={keyword:Object.keys(Mg),type:"number",schemaType:"number",$data:!0,error:k0e,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,qg._)`${r} ${Mg[t].fail} ${i} || isNaN(${r})`)}};fx.default=R0e});var VM=b(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});var Ef=ue(),T0e={message:({schemaCode:e})=>(0,Ef.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ef._)`{multipleOf: ${e}}`},O0e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:T0e,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,s=n.opts.multipleOfPrecision,o=t.let("res"),a=s?(0,Ef._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,Ef._)`${o} !== parseInt(${o})`;e.fail$data((0,Ef._)`(${i} === 0 || (${o} = ${r}/${i}, ${a}))`)}};hx.default=O0e});var GM=b(dx=>{"use strict";Object.defineProperty(dx,"__esModule",{value:!0});function WM(e){let t=e.length,r=0,i=0,n;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),(n&64512)===56320&&i++);return r}dx.default=WM;WM.code='require("ajv/dist/runtime/ucs2length").default'});var YM=b(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});var na=ue(),A0e=ge(),C0e=GM(),P0e={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,na.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,na._)`{limit: ${e}}`},I0e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:P0e,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,s=t==="maxLength"?na.operators.GT:na.operators.LT,o=n.opts.unicode===!1?(0,na._)`${r}.length`:(0,na._)`${(0,A0e.useFunc)(e.gen,C0e.default)}(${r})`;e.fail$data((0,na._)`${o} ${s} ${i}`)}};px.default=I0e});var KM=b(mx=>{"use strict";Object.defineProperty(mx,"__esModule",{value:!0});var N0e=Ut(),zg=ue(),$0e={message:({schemaCode:e})=>(0,zg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,zg._)`{pattern: ${e}}`},F0e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$0e,code(e){let{data:t,$data:r,schema:i,schemaCode:n,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=r?(0,zg._)`(new RegExp(${n}, ${o}))`:(0,N0e.usePattern)(e,i);e.fail$data((0,zg._)`!${a}.test(${t})`)}};mx.default=F0e});var JM=b(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});var kf=ue(),L0e={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,kf.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,kf._)`{limit: ${e}}`},D0e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:L0e,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?kf.operators.GT:kf.operators.LT;e.fail$data((0,kf._)`Object.keys(${r}).length ${n} ${i}`)}};gx.default=D0e});var ZM=b(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});var Rf=Ut(),Tf=ue(),j0e=ge(),q0e={message:({params:{missingProperty:e}})=>(0,Tf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Tf._)`{missingProperty: ${e}}`},M0e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:q0e,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:s,it:o}=e,{opts:a}=o;if(!s&&r.length===0)return;let l=r.length>=a.loopRequired;if(o.allErrors?c():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:p}=e.it;for(let m of r)if(d?.[m]===void 0&&!p.has(m)){let y=o.schemaEnv.baseId+o.errSchemaPath,_=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,j0e.checkStrictMode)(o,_,o.opts.strictRequired)}}function c(){if(l||s)e.block$data(Tf.nil,f);else for(let d of r)(0,Rf.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(l||s){let p=t.let("valid",!0);e.block$data(p,()=>h(d,p)),e.ok(p)}else t.if((0,Rf.checkMissingProp)(e,r,d)),(0,Rf.reportMissingProp)(e,d),t.else()}function f(){t.forOf("prop",i,d=>{e.setParams({missingProperty:d}),t.if((0,Rf.noPropertyInData)(t,n,d,a.ownProperties),()=>e.error())})}function h(d,p){e.setParams({missingProperty:d}),t.forOf(d,i,()=>{t.assign(p,(0,Rf.propertyInData)(t,n,d,a.ownProperties)),t.if((0,Tf.not)(p),()=>{e.error(),t.break()})},Tf.nil)}}};yx.default=M0e});var XM=b(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var Of=ue(),z0e={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Of.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Of._)`{limit: ${e}}`},U0e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:z0e,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?Of.operators.GT:Of.operators.LT;e.fail$data((0,Of._)`${r}.length ${n} ${i}`)}};vx.default=U0e});var Af=b(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});var QM=Ms();QM.code='require("ajv/dist/runtime/equal").default';_x.default=QM});var e3=b(wx=>{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});var bx=mf(),Ht=ue(),B0e=ge(),H0e=Af(),V0e={message:({params:{i:e,j:t}})=>(0,Ht.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ht._)`{i: ${e}, j: ${t}}`},W0e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:V0e,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:s,schemaCode:o,it:a}=e;if(!i&&!n)return;let l=t.let("valid"),c=s.items?(0,bx.getSchemaTypes)(s.items):[];e.block$data(l,u,(0,Ht._)`${o} === false`),e.ok(l);function u(){let p=t.let("i",(0,Ht._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(l,!0),t.if((0,Ht._)`${p} > 1`,()=>(f()?h:d)(p,m))}function f(){return c.length>0&&!c.some(p=>p==="object"||p==="array")}function h(p,m){let y=t.name("item"),_=(0,bx.checkDataTypes)(c,y,a.opts.strictNumbers,bx.DataType.Wrong),w=t.const("indices",(0,Ht._)`{}`);t.for((0,Ht._)`;${p}--;`,()=>{t.let(y,(0,Ht._)`${r}[${p}]`),t.if(_,(0,Ht._)`continue`),c.length>1&&t.if((0,Ht._)`typeof ${y} == "string"`,(0,Ht._)`${y} += "_"`),t.if((0,Ht._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(m,(0,Ht._)`${w}[${y}]`),e.error(),t.assign(l,!1).break()}).code((0,Ht._)`${w}[${y}] = ${p}`)})}function d(p,m){let y=(0,B0e.useFunc)(t,H0e.default),_=t.name("outer");t.label(_).for((0,Ht._)`;${p}--;`,()=>t.for((0,Ht._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Ht._)`${y}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(l,!1).break(_)})))}}};wx.default=W0e});var t3=b(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});var Sx=ue(),G0e=ge(),Y0e=Af(),K0e={message:"must be equal to constant",params:({schemaCode:e})=>(0,Sx._)`{allowedValue: ${e}}`},J0e={keyword:"const",$data:!0,error:K0e,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:s}=e;i||s&&typeof s=="object"?e.fail$data((0,Sx._)`!${(0,G0e.useFunc)(t,Y0e.default)}(${r}, ${n})`):e.fail((0,Sx._)`${s} !== ${r}`)}};xx.default=J0e});var r3=b(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});var Cf=ue(),Z0e=ge(),X0e=Af(),Q0e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Cf._)`{allowedValues: ${e}}`},eye={keyword:"enum",schemaType:"array",$data:!0,error:Q0e,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:s,it:o}=e;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let a=n.length>=o.opts.loopEnum,l,c=()=>l??(l=(0,Z0e.useFunc)(t,X0e.default)),u;if(a||i)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let d=t.const("vSchema",s);u=(0,Cf.or)(...n.map((p,m)=>h(d,m)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",s,d=>t.if((0,Cf._)`${c()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function h(d,p){let m=n[p];return typeof m=="object"&&m!==null?(0,Cf._)`${c()}(${r}, ${d}[${p}])`:(0,Cf._)`${r} === ${m}`}}};Ex.default=eye});var i3=b(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});var tye=HM(),rye=VM(),iye=YM(),nye=KM(),sye=JM(),oye=ZM(),aye=XM(),lye=e3(),cye=t3(),uye=r3(),fye=[tye.default,rye.default,iye.default,nye.default,sye.default,oye.default,aye.default,lye.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cye.default,uye.default];kx.default=fye});var Tx=b(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.validateAdditionalItems=void 0;var sa=ue(),Rx=ge(),hye={message:({params:{len:e}})=>(0,sa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,sa._)`{limit: ${e}}`},dye={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hye,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,Rx.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}n3(e,i)}};function n3(e,t){let{gen:r,schema:i,data:n,keyword:s,it:o}=e;o.items=!0;let a=r.const("len",(0,sa._)`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass((0,sa._)`${a} <= ${t.length}`);else if(typeof i=="object"&&!(0,Rx.alwaysValidSchema)(o,i)){let c=r.var("valid",(0,sa._)`${a} <= ${t.length}`);r.if((0,sa.not)(c),()=>l(c)),e.ok(c)}function l(c){r.forRange("i",t.length,a,u=>{e.subschema({keyword:s,dataProp:u,dataPropType:Rx.Type.Num},c),o.allErrors||r.if((0,sa.not)(c),()=>r.break())})}}Pf.validateAdditionalItems=n3;Pf.default=dye});var Ox=b(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.validateTuple=void 0;var s3=ue(),Ug=ge(),pye=Ut(),mye={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return o3(e,"additionalItems",t);r.items=!0,!(0,Ug.alwaysValidSchema)(r,t)&&e.ok((0,pye.validateArray)(e))}};function o3(e,t,r=e.schema){let{gen:i,parentSchema:n,data:s,keyword:o,it:a}=e;u(n),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Ug.mergeEvaluated.items(i,r.length,a.items));let l=i.name("valid"),c=i.const("len",(0,s3._)`${s}.length`);r.forEach((f,h)=>{(0,Ug.alwaysValidSchema)(a,f)||(i.if((0,s3._)`${c} > ${h}`,()=>e.subschema({keyword:o,schemaProp:h,dataProp:h},l)),e.ok(l))});function u(f){let{opts:h,errSchemaPath:d}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[t]===!1);if(h.strictTuples&&!m){let y=`"${o}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Ug.checkStrictMode)(a,y,h.strictTuples)}}}If.validateTuple=o3;If.default=mye});var a3=b(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});var gye=Ox(),yye={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,gye.validateTuple)(e,"items")};Ax.default=yye});var c3=b(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});var l3=ue(),vye=ge(),_ye=Ut(),bye=Tx(),wye={message:({params:{len:e}})=>(0,l3.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,l3._)`{limit: ${e}}`},Sye={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:wye,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;i.items=!0,!(0,vye.alwaysValidSchema)(i,t)&&(n?(0,bye.validateAdditionalItems)(e,n):e.ok((0,_ye.validateArray)(e)))}};Cx.default=Sye});var u3=b(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});var fi=ue(),Bg=ge(),xye={message:({params:{min:e,max:t}})=>t===void 0?(0,fi.str)`must contain at least ${e} valid item(s)`:(0,fi.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,fi._)`{minContains: ${e}}`:(0,fi._)`{minContains: ${e}, maxContains: ${t}}`},Eye={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:xye,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:s}=e,o,a,{minContains:l,maxContains:c}=i;s.opts.next?(o=l===void 0?1:l,a=c):o=1;let u=t.const("len",(0,fi._)`${n}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,Bg.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Bg.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Bg.alwaysValidSchema)(s,r)){let m=(0,fi._)`${u} >= ${o}`;a!==void 0&&(m=(0,fi._)`${m} && ${u} <= ${a}`),e.pass(m);return}s.items=!0;let f=t.name("valid");a===void 0&&o===1?d(f,()=>t.if(f,()=>t.break())):o===0?(t.let(f,!0),a!==void 0&&t.if((0,fi._)`${n}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,()=>e.reset());function h(){let m=t.name("_valid"),y=t.let("count",0);d(m,()=>t.if(m,()=>p(y)))}function d(m,y){t.forRange("i",0,u,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Bg.Type.Num,compositeRule:!0},m),y()})}function p(m){t.code((0,fi._)`${m}++`),a===void 0?t.if((0,fi._)`${m} >= ${o}`,()=>t.assign(f,!0).break()):(t.if((0,fi._)`${m} > ${a}`,()=>t.assign(f,!1).break()),o===1?t.assign(f,!0):t.if((0,fi._)`${m} >= ${o}`,()=>t.assign(f,!0)))}}};Px.default=Eye});var d3=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.validateSchemaDeps=pn.validatePropertyDeps=pn.error=void 0;var Ix=ue(),kye=ge(),Nf=Ut();pn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return(0,Ix.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,Ix._)`{property: ${e},
missingProperty: ${i},
depsCount: ${t},
deps: ${r}}`};var Rye={keyword:"dependencies",type:"object",schemaType:"object",error:pn.error,code(e){let[t,r]=Tye(e);f3(e,t),h3(e,r)}};function Tye({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function f3(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let o in t){let a=t[o];if(a.length===0)continue;let l=(0,Nf.propertyInData)(r,i,o,n.opts.ownProperties);e.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),n.allErrors?r.if(l,()=>{for(let c of a)(0,Nf.checkReportMissingProp)(e,c)}):(r.if((0,Ix._)`${l} && (${(0,Nf.checkMissingProp)(e,a,s)})`),(0,Nf.reportMissingProp)(e,s),r.else())}}pn.validatePropertyDeps=f3;function h3(e,t=e.schema){let{gen:r,data:i,keyword:n,it:s}=e,o=r.name("valid");for(let a in t)(0,kye.alwaysValidSchema)(s,t[a])||(r.if((0,Nf.propertyInData)(r,i,a,s.opts.ownProperties),()=>{let l=e.subschema({keyword:n,schemaProp:a},o);e.mergeValidEvaluated(l,o)},()=>r.var(o,!0)),e.ok(o))}pn.validateSchemaDeps=h3;pn.default=Rye});var m3=b(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});var p3=ue(),Oye=ge(),Aye={message:"property name must be valid",params:({params:e})=>(0,p3._)`{propertyName: ${e.propertyName}}`},Cye={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Aye,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,Oye.alwaysValidSchema)(n,r))return;let s=t.name("valid");t.forIn("key",i,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,p3.not)(s),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(s)}};Nx.default=Cye});var Fx=b($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var Hg=Ut(),Fi=ue(),Pye=ci(),Vg=ge(),Iye={message:"must NOT have additional properties",params:({params:e})=>(0,Fi._)`{additionalProperty: ${e.additionalProperty}}`},Nye={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Iye,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,Vg.alwaysValidSchema)(o,r))return;let c=(0,Hg.allSchemaProperties)(i.properties),u=(0,Hg.allSchemaProperties)(i.patternProperties);f(),e.ok((0,Fi._)`${s} === ${Pye.default.errors}`);function f(){t.forIn("key",n,y=>{!c.length&&!u.length?p(y):t.if(h(y),()=>p(y))})}function h(y){let _;if(c.length>8){let w=(0,Vg.schemaRefOrVal)(o,i.properties,"properties");_=(0,Hg.isOwnProperty)(t,w,y)}else c.length?_=(0,Fi.or)(...c.map(w=>(0,Fi._)`${y} === ${w}`)):_=Fi.nil;return u.length&&(_=(0,Fi.or)(_,...u.map(w=>(0,Fi._)`${(0,Hg.usePattern)(e,w)}.test(${y})`))),(0,Fi.not)(_)}function d(y){t.code((0,Fi._)`delete ${n}[${y}]`)}function p(y){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Vg.alwaysValidSchema)(o,r)){let _=t.name("valid");l.removeAdditional==="failing"?(m(y,_,!1),t.if((0,Fi.not)(_),()=>{e.reset(),d(y)})):(m(y,_),a||t.if((0,Fi.not)(_),()=>t.break()))}}function m(y,_,w){let v={keyword:"additionalProperties",dataProp:y,dataPropType:Vg.Type.Str};w===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,_)}}};$x.default=Nye});var v3=b(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});var $ye=Fl(),g3=Ut(),Lx=ge(),y3=Fx(),Fye={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:s}=e;s.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&y3.default.code(new $ye.KeywordCxt(s,y3.default,"additionalProperties"));let o=(0,g3.allSchemaProperties)(r);for(let f of o)s.definedProperties.add(f);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Lx.mergeEvaluated.props(t,(0,Lx.toHash)(o),s.props));let a=o.filter(f=>!(0,Lx.alwaysValidSchema)(s,r[f]));if(a.length===0)return;let l=t.name("valid");for(let f of a)c(f)?u(f):(t.if((0,g3.propertyInData)(t,n,f,s.opts.ownProperties)),u(f),s.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};Dx.default=Fye});var S3=b(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});var _3=Ut(),Wg=ue(),b3=ge(),w3=ge(),Lye={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:s}=e,{opts:o}=s,a=(0,_3.allSchemaProperties)(r),l=a.filter(m=>(0,b3.alwaysValidSchema)(s,r[m]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=o.strictSchema&&!o.allowMatchingProperties&&n.properties,u=t.name("valid");s.props!==!0&&!(s.props instanceof Wg.Name)&&(s.props=(0,w3.evaluatedPropsToName)(t,s.props));let{props:f}=s;h();function h(){for(let m of a)c&&d(m),s.allErrors?p(m):(t.var(u,!0),p(m),t.if(u))}function d(m){for(let y in c)new RegExp(m).test(y)&&(0,b3.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",i,y=>{t.if((0,Wg._)`${(0,_3.usePattern)(e,m)}.test(${y})`,()=>{let _=l.includes(m);_||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:w3.Type.Str},u),s.opts.unevaluated&&f!==!0?t.assign((0,Wg._)`${f}[${y}]`,!0):!_&&!s.allErrors&&t.if((0,Wg.not)(u),()=>t.break())})})}}};jx.default=Lye});var x3=b(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});var Dye=ge(),jye={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,Dye.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};qx.default=jye});var E3=b(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});var qye=Ut(),Mye={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:qye.validateUnion,error:{message:"must match a schema in anyOf"}};Mx.default=Mye});var k3=b(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});var Gg=ue(),zye=ge(),Uye={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Gg._)`{passingSchemas: ${e.passing}}`},Bye={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Uye,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let s=r,o=t.let("valid",!1),a=t.let("passing",null),l=t.name("_valid");e.setParams({passing:a}),t.block(c),e.result(o,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((u,f)=>{let h;(0,zye.alwaysValidSchema)(n,u)?t.var(l,!0):h=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Gg._)`${l} && ${o}`).assign(o,!1).assign(a,(0,Gg._)`[${a}, ${f}]`).else(),t.if(l,()=>{t.assign(o,!0),t.assign(a,f),h&&e.mergeEvaluated(h,Gg.Name)})})}}};zx.default=Bye});var R3=b(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});var Hye=ge(),Vye={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((s,o)=>{if((0,Hye.alwaysValidSchema)(i,s))return;let a=e.subschema({keyword:"allOf",schemaProp:o},n);e.ok(n),e.mergeEvaluated(a)})}};Ux.default=Vye});var A3=b(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});var Yg=ue(),O3=ge(),Wye={message:({params:e})=>(0,Yg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Yg._)`{failingKeyword: ${e.ifClause}}`},Gye={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Wye,code(e){let{gen:t,parentSchema:r,it:i}=e;r.then===void 0&&r.else===void 0&&(0,O3.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=T3(i,"then"),s=T3(i,"else");if(!n&&!s)return;let o=t.let("valid",!0),a=t.name("_valid");if(l(),e.reset(),n&&s){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,c("then",u),c("else",u))}else n?t.if(a,c("then")):t.if((0,Yg.not)(a),c("else"));e.pass(o,()=>e.error(!0));function l(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function c(u,f){return()=>{let h=e.subschema({keyword:u},a);t.assign(o,a),e.mergeValidEvaluated(h,o),f?t.assign(f,(0,Yg._)`${u}`):e.setParams({ifClause:u})}}}};function T3(e,t){let r=e.schema[t];return r!==void 0&&!(0,O3.alwaysValidSchema)(e,r)}Bx.default=Gye});var C3=b(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});var Yye=ge(),Kye={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Yye.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Hx.default=Kye});var P3=b(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});var Jye=Tx(),Zye=a3(),Xye=Ox(),Qye=c3(),eve=u3(),tve=d3(),rve=m3(),ive=Fx(),nve=v3(),sve=S3(),ove=x3(),ave=E3(),lve=k3(),cve=R3(),uve=A3(),fve=C3();function hve(e=!1){let t=[ove.default,ave.default,lve.default,cve.default,uve.default,fve.default,rve.default,ive.default,tve.default,nve.default,sve.default];return e?t.push(Zye.default,Qye.default):t.push(Jye.default,Xye.default),t.push(eve.default),t}Vx.default=hve});var I3=b(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});var ft=ue(),dve={message:({schemaCode:e})=>(0,ft.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ft._)`{format: ${e}}`},pve={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:dve,code(e,t){let{gen:r,data:i,$data:n,schema:s,schemaCode:o,it:a}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=a;if(!l.validateFormats)return;n?h():d();function h(){let p=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),m=r.const("fDef",(0,ft._)`${p}[${o}]`),y=r.let("fType"),_=r.let("format");r.if((0,ft._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,ft._)`${m}.type || "string"`).assign(_,(0,ft._)`${m}.validate`),()=>r.assign(y,(0,ft._)`"string"`).assign(_,m)),e.fail$data((0,ft.or)(w(),v()));function w(){return l.strictSchema===!1?ft.nil:(0,ft._)`${o} && !${_}`}function v(){let g=u.$async?(0,ft._)`(${m}.async ? await ${_}(${i}) : ${_}(${i}))`:(0,ft._)`${_}(${i})`,T=(0,ft._)`(typeof ${_} == "function" ? ${g} : ${_}.test(${i}))`;return(0,ft._)`${_} && ${_} !== true && ${y} === ${t} && !${T}`}}function d(){let p=f.formats[s];if(!p){w();return}if(p===!0)return;let[m,y,_]=v(p);m===t&&e.pass(g());function w(){if(l.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function v(T){let N=T instanceof RegExp?(0,ft.regexpCode)(T):l.code.formats?(0,ft._)`${l.code.formats}${(0,ft.getProperty)(s)}`:void 0,R=r.scopeValue("formats",{key:s,ref:T,code:N});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,ft._)`${R}.validate`]:["string",T,R]}function g(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ft._)`await ${_}(${i})`}return typeof y=="function"?(0,ft._)`${_}(${i})`:(0,ft._)`${_}.test(${i})`}}}};Wx.default=pve});var N3=b(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});var mve=I3(),gve=[mve.default];Gx.default=gve});var $3=b(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.contentVocabulary=ql.metadataVocabulary=void 0;ql.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ql.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var L3=b(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});var yve=BM(),vve=i3(),_ve=P3(),bve=N3(),F3=$3(),wve=[yve.default,vve.default,(0,_ve.default)(),bve.default,F3.metadataVocabulary,F3.contentVocabulary];Yx.default=wve});var Kx=b(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.DiscrError=void 0;var D3;(function(e){e.Tag="tag",e.Mapping="mapping"})(D3||(Kg.DiscrError=D3={}))});var q3=b(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});var Ml=ue(),Jx=Kx(),j3=ra(),Sve=Jn(),xve=ge(),Eve={message:({params:{discrError:e,tagName:t}})=>e===Jx.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ml._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},kve={keyword:"discriminator",type:"object",schemaType:"object",error:Eve,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:s}=e,{oneOf:o}=n;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=i.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let l=t.let("valid",!1),c=t.const("tag",(0,Ml._)`${r}${(0,Ml.getProperty)(a)}`);t.if((0,Ml._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Jx.DiscrError.Tag,tag:c,tagName:a})),e.ok(l);function u(){let d=h();t.if(!1);for(let p in d)t.elseIf((0,Ml._)`${c} === ${p}`),t.assign(l,f(d[p]));t.else(),e.error(!1,{discrError:Jx.DiscrError.Mapping,tag:c,tagName:a}),t.endIf()}function f(d){let p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},p);return e.mergeEvaluated(m,Ml.Name),p}function h(){var d;let p={},m=_(n),y=!0;for(let g=0;g<o.length;g++){let T=o[g];if(T?.$ref&&!(0,xve.schemaHasRulesButRef)(T,s.self.RULES)){let R=T.$ref;if(T=j3.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,R),T instanceof j3.SchemaEnv&&(T=T.schema),T===void 0)throw new Sve.default(s.opts.uriResolver,s.baseId,R)}let N=(d=T?.properties)===null||d===void 0?void 0:d[a];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(m||_(T)),w(N,g)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return p;function _({required:g}){return Array.isArray(g)&&g.includes(a)}function w(g,T){if(g.const)v(g.const,T);else if(g.enum)for(let N of g.enum)v(N,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(g,T){if(typeof g!="string"||g in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[g]=T}}}};Zx.default=kve});var M3=b((P3e,Rve)=>{Rve.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0}});var $f=b((Ye,Xx)=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.MissingRefError=Ye.ValidationError=Ye.CodeGen=Ye.Name=Ye.nil=Ye.stringify=Ye.str=Ye._=Ye.KeywordCxt=Ye.Ajv=void 0;var Tve=ax(),Ove=L3(),Ave=q3(),z3=M3(),Cve=["/properties"],Jg="http://json-schema.org/draft-07/schema",zl=class extends Tve.default{_addVocabularies(){super._addVocabularies(),Ove.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ave.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(z3,Cve):z3;this.addMetaSchema(t,Jg,!1),this.refs["http://json-schema.org/schema"]=Jg}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jg)?Jg:void 0)}};Ye.Ajv=zl;Xx.exports=Ye=zl;Xx.exports.Ajv=zl;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.default=zl;var Pve=Fl();Object.defineProperty(Ye,"KeywordCxt",{enumerable:!0,get:function(){return Pve.KeywordCxt}});var Ul=ue();Object.defineProperty(Ye,"_",{enumerable:!0,get:function(){return Ul._}});Object.defineProperty(Ye,"str",{enumerable:!0,get:function(){return Ul.str}});Object.defineProperty(Ye,"stringify",{enumerable:!0,get:function(){return Ul.stringify}});Object.defineProperty(Ye,"nil",{enumerable:!0,get:function(){return Ul.nil}});Object.defineProperty(Ye,"Name",{enumerable:!0,get:function(){return Ul.Name}});Object.defineProperty(Ye,"CodeGen",{enumerable:!0,get:function(){return Ul.CodeGen}});var Ive=_f();Object.defineProperty(Ye,"ValidationError",{enumerable:!0,get:function(){return Ive.default}});var Nve=Jn();Object.defineProperty(Ye,"MissingRefError",{enumerable:!0,get:function(){return Nve.default}})});var B3=b((I3e,U3)=>{"use strict";var $ve={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};U3.exports={HEX:$ve}});var Z3=b((N3e,J3)=>{"use strict";var{HEX:Fve}=B3();function G3(e){if(K3(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[r]=t;return r?{host:Dve(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Qx(e){let t="",r=!0;for(let i of e){if(i!=="0"&&r===!0&&(r=!1),Fve[i]===void 0)return;r||(t+=i)}return t}function Lve(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],s=!1,o=!1,a=!1;function l(){if(n.length){if(s===!1){let c=Qx(n.join(""));if(c!==void 0)i.push(c);else return r.error=!0,!1}n.length=0}return!0}for(let c=0;c<e.length;c++){let u=e[c];if(!(u==="["||u==="]"))if(u===":"){if(o===!0&&(a=!0),!l())break;if(t++,i.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(o=!0);continue}else if(u==="%"){if(!l())break;s=!0}else{n.push(u);continue}}return n.length&&(s?r.zone=n.join(""):a?i.push(n.join("")):i.push(Qx(n.join("")))),r.address=i.join(""),r}function Y3(e,t={}){if(K3(e,":")<2)return{host:e,isIPV6:!1};let r=Lve(e);if(r.error)return{host:e,isIPV6:!1};{let i=r.address,n=r.address;return r.zone&&(i+="%"+r.zone,n+="%25"+r.zone),{host:i,escapedHost:n,isIPV6:!0}}}function Dve(e,t){let r="",i=!0,n=e.length;for(let s=0;s<n;s++){let o=e[s];o==="0"&&i?(s+1<=n&&e[s+1]===t||s+1===n)&&(r+=o,i=!1):(o===t?i=!0:i=!1,r+=o)}return r}function K3(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}var H3=/^\.\.?\//u,V3=/^\/\.(?:\/|$)/u,W3=/^\/\.\.(?:\/|$)/u,jve=/^\/?(?:.|\n)*?(?=\/|$)/u;function qve(e){let t=[];for(;e.length;)if(e.match(H3))e=e.replace(H3,"");else if(e.match(V3))e=e.replace(V3,"/");else if(e.match(W3))e=e.replace(W3,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(jve);if(r){let i=r[0];e=e.slice(i.length),t.push(i)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Mve(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function zve(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let i=unescape(e.host),n=G3(i);if(n.isIPV4)i=n.host;else{let s=Y3(n.host,{isIPV4:!1});s.isIPV6===!0?i=`[${s.escapedHost}]`:i=e.host}r.push(i)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}J3.exports={recomposeAuthority:zve,normalizeComponentEncoding:Mve,removeDotSegments:qve,normalizeIPv4:G3,normalizeIPv6:Y3,stringToHexStripped:Qx}});var iz=b(($3e,rz)=>{"use strict";var Uve=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Bve=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function X3(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Q3(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function ez(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function Hve(e){return e.secure=X3(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function Vve(e){if((e.port===(X3(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function Wve(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Bve);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,s=e1[n];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function Gve(e,t){let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,s=e1[n];s&&(e=s.serialize(e,t));let o=e,a=e.nss;return o.path=`${i||t.nid}:${a}`,t.skipEscape=!0,o}function Yve(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Uve.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Kve(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var tz={scheme:"http",domainHost:!0,parse:Q3,serialize:ez},Jve={scheme:"https",domainHost:tz.domainHost,parse:Q3,serialize:ez},Zg={scheme:"ws",domainHost:!0,parse:Hve,serialize:Vve},Zve={scheme:"wss",domainHost:Zg.domainHost,parse:Zg.parse,serialize:Zg.serialize},Xve={scheme:"urn",parse:Wve,serialize:Gve,skipNormalize:!0},Qve={scheme:"urn:uuid",parse:Yve,serialize:Kve,skipNormalize:!0},e1={http:tz,https:Jve,ws:Zg,wss:Zve,urn:Xve,"urn:uuid":Qve};rz.exports=e1});var r1=b((F3e,Qg)=>{"use strict";var{normalizeIPv6:e_e,normalizeIPv4:t_e,removeDotSegments:Ff,recomposeAuthority:r_e,normalizeComponentEncoding:Xg}=Z3(),nz=iz();function i_e(e,t){return typeof e=="string"?e=mn(Xn(e,t),t):typeof e=="object"&&(e=Xn(mn(e,t),t)),e}function n_e(e,t,r){let i=Object.assign({scheme:"null"},r),n=sz(Xn(e,i),Xn(t,i),i,!0);return mn(n,{...i,skipEscape:!0})}function sz(e,t,r,i){let n={};return i||(e=Xn(mn(e,r),r),t=Xn(mn(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Ff(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Ff(t.path||""),n.query=t.query):(t.path?(t.path.charAt(0)==="/"?n.path=Ff(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=Ff(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function s_e(e,t,r){return typeof e=="string"?(e=unescape(e),e=mn(Xg(Xn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=mn(Xg(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=mn(Xg(Xn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=mn(Xg(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function mn(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],s=nz[(i.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,i),r.path!==void 0&&(i.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),i.reference!=="suffix"&&r.scheme&&(n.push(r.scheme),n.push(":"));let o=r_e(r,i);if(o!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(o),r.path&&r.path.charAt(0)!=="/"&&n.push("/")),r.path!==void 0){let a=r.path;!i.absolutePath&&(!s||!s.absolutePath)&&(a=Ff(a)),o===void 0&&(a=a.replace(/^\/\//u,"/%2F")),n.push(a)}return r.query!==void 0&&(n.push("?"),n.push(r.query)),r.fragment!==void 0&&(n.push("#"),n.push(r.fragment)),n.join("")}var o_e=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function a_e(e){let t=0;for(let r=0,i=e.length;r<i;++r)if(t=e.charCodeAt(r),t>126||o_e[t])return!0;return!1}var l_e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Xn(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=e.indexOf("%")!==-1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let s=e.match(l_e);if(s){if(i.scheme=s[1],i.userinfo=s[3],i.host=s[4],i.port=parseInt(s[5],10),i.path=s[6]||"",i.query=s[7],i.fragment=s[8],isNaN(i.port)&&(i.port=s[5]),i.host){let a=t_e(i.host);a.isIPV4===!1?i.host=e_e(a.host,{isIPV4:!1}).host.toLowerCase():i.host=a.host}i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&!i.path&&i.query===void 0?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let o=nz[(r.scheme||i.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&i.host&&(r.domainHost||o&&o.domainHost)&&a_e(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(a){i.error=i.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.skipNormalize)&&(n&&i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),n&&i.userinfo!==void 0&&(i.userinfo=unescape(i.userinfo)),n&&i.host!==void 0&&(i.host=unescape(i.host)),i.path!==void 0&&i.path.length&&(i.path=escape(unescape(i.path))),i.fragment!==void 0&&i.fragment.length&&(i.fragment=encodeURI(decodeURI(i.fragment)))),o&&o.parse&&o.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return i}var t1={normalize:i_e,resolve:n_e,resolveComponents:sz,equal:s_e,serialize:mn,parse:Xn};Qg.exports=t1;Qg.exports.default=t1;Qg.exports.fastUri=t1});var e0=b(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.formatNames=yn.fastFormats=yn.fullFormats=void 0;function gn(e,t){return{validate:e,compare:t}}yn.fullFormats={date:gn(cz,o1),time:gn(n1(!0),a1),"date-time":gn(oz(!0),fz),"iso-time":gn(n1(),uz),"iso-date-time":gn(oz(),hz),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p_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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:w_e,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:m_e,int32:{type:"number",validate:v_e},int64:{type:"number",validate:__e},float:{type:"number",validate:lz},double:{type:"number",validate:lz},password:!0,binary:!0};yn.fastFormats={...yn.fullFormats,date:gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o1),time:gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,a1),"date-time":gn(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,fz),"iso-time":gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,uz),"iso-date-time":gn(/^\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,hz),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};yn.formatNames=Object.keys(yn.fullFormats);function c_e(e){return e%4===0&&(e%100!==0||e%400===0)}var u_e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,f_e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function cz(e){let t=u_e.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&c_e(r)?29:f_e[i])}function o1(e,t){if(e&&t)return e>t?1:e<t?-1:0}var i1=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function n1(e){return function(r){let i=i1.exec(r);if(!i)return!1;let n=+i[1],s=+i[2],o=+i[3],a=i[4],l=i[5]==="-"?-1:1,c=+(i[6]||0),u=+(i[7]||0);if(c>23||u>59||e&&!a)return!1;if(n<=23&&s<=59&&o<60)return!0;let f=s-u*l,h=n-c*l-(f<0?1:0);return(h===23||h===-1)&&(f===59||f===-1)&&o<61}}function a1(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(r&&i)return r-i}function uz(e,t){if(!(e&&t))return;let r=i1.exec(e),i=i1.exec(t);if(r&&i)return e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t?1:e<t?-1:0}var s1=/t|\s/i;function oz(e){let t=n1(e);return function(i){let n=i.split(s1);return n.length===2&&cz(n[0])&&t(n[1])}}function fz(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(r&&i)return r-i}function hz(e,t){if(!(e&&t))return;let[r,i]=e.split(s1),[n,s]=t.split(s1),o=o1(r,n);if(o!==void 0)return o||a1(i,s)}var h_e=/\/|:/,d_e=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p_e(e){return h_e.test(e)&&d_e.test(e)}var az=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m_e(e){return az.lastIndex=0,az.test(e)}var g_e=-(2**31),y_e=2**31-1;function v_e(e){return Number.isInteger(e)&&e<=y_e&&e>=g_e}function __e(e){return Number.isInteger(e)}function lz(){return!0}var b_e=/[^\\]\\Z/;function w_e(e){if(b_e.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var dz=b(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.formatLimitDefinition=void 0;var S_e=$f(),Li=ue(),Ys=Li.operators,t0={formatMaximum:{okStr:"<=",ok:Ys.LTE,fail:Ys.GT},formatMinimum:{okStr:">=",ok:Ys.GTE,fail:Ys.LT},formatExclusiveMaximum:{okStr:"<",ok:Ys.LT,fail:Ys.GTE},formatExclusiveMinimum:{okStr:">",ok:Ys.GT,fail:Ys.LTE}},x_e={message:({keyword:e,schemaCode:t})=>(0,Li.str)`should be ${t0[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Li._)`{comparison: ${t0[e].okStr}, limit: ${t}}`};Bl.formatLimitDefinition={keyword:Object.keys(t0),type:"string",schemaType:"string",$data:!0,error:x_e,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:s}=e,{opts:o,self:a}=s;if(!o.validateFormats)return;let l=new S_e.KeywordCxt(s,a.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=t.scopeValue("formats",{ref:a.formats,code:o.code.formats}),d=t.const("fmt",(0,Li._)`${h}[${l.schemaCode}]`);e.fail$data((0,Li.or)((0,Li._)`typeof ${d} != "object"`,(0,Li._)`${d} instanceof RegExp`,(0,Li._)`typeof ${d}.compare != "function"`,f(d)))}function u(){let h=l.schema,d=a.formats[h];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${n}": format "${h}" does not define "compare" function`);let p=t.scopeValue("formats",{key:h,ref:d,code:o.code.formats?(0,Li._)`${o.code.formats}${(0,Li.getProperty)(h)}`:void 0});e.fail$data(f(p))}function f(h){return(0,Li._)`${h}.compare(${r}, ${i}) ${t0[n].fail} 0`}},dependencies:["format"]};var E_e=e=>(e.addKeyword(Bl.formatLimitDefinition),e);Bl.default=E_e});var yz=b((Lf,gz)=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Hl=e0(),k_e=dz(),l1=ue(),pz=new l1.Name("fullFormats"),R_e=new l1.Name("fastFormats"),c1=(e,t={keywords:!0})=>{if(Array.isArray(t))return mz(e,t,Hl.fullFormats,pz),e;let[r,i]=t.mode==="fast"?[Hl.fastFormats,R_e]:[Hl.fullFormats,pz],n=t.formats||Hl.formatNames;return mz(e,n,r,i),t.keywords&&(0,k_e.default)(e),e};c1.get=(e,t="full")=>{let i=(t==="fast"?Hl.fastFormats:Hl.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function mz(e,t,r,i){var n,s;(n=(s=e.opts.code).formats)!==null&&n!==void 0||(s.formats=(0,l1._)`require("ajv-formats/dist/formats").${i}`);for(let o of t)e.addFormat(o,r[o])}gz.exports=Lf=c1;Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=c1});var f1=b((j3e,vz)=>{"use strict";var T_e=$f(),O_e=r1(),A_e=yz(),C_e=$m()({proto:!0}),u1=class e{constructor(t){this.ajv=new T_e({...t,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:O_e}),A_e(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(r,i)=>i instanceof Date}),this._ajvSchemas={},this._ajvOptions=t||{}}addSchema(t,r){let i=t.$id||r;if(t.$id!==void 0&&t.$id[0]==="#"&&(i=r+t.$id),this.ajv.refs[i]===void 0&&this.ajv.schemas[i]===void 0){let n=C_e(t);this.convertSchemaToAjvFormat(n),this.ajv.addSchema(n,i),this._ajvSchemas[i]=t}}validate(t,r){return this.ajv.validate(t,r)}convertSchemaToAjvFormat(t){if(t!==null){t.type==="string"?(t.fjs_type="string",t.type=["string","object"]):Array.isArray(t.type)&&t.type.includes("string")&&!t.type.includes("object")&&(t.fjs_type="string",t.type.push("object"));for(let r in t)typeof t[r]=="object"&&this.convertSchemaToAjvFormat(t[r])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(t){let r=new e(t.ajvOptions);for(let[i,n]of Object.entries(t.ajvSchemas))r.ajv.addSchema(n,i);return r}};vz.exports=u1});var bz=b((q3e,_z)=>{"use strict";var h1=class e{constructor(t,r,i="#"){this.schema=t,this.schemaId=r,this.jsonPointer=i}getPropertyLocation(t){return new e(this.schema[t],this.schemaId,this.jsonPointer+"/"+t)}getSchemaRef(){return this.schemaId+this.jsonPointer}};_z.exports=h1});var kz=b((M3e,p1)=>{"use strict";p1.exports=Y;p1.exports.default=Y;var P_e={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0},wz={enum:["array","boolean","integer","null","number","object","string"]},Sz=/^(?:[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,I_e=e0().fullFormats.uri,xz=e0().fullFormats.regex;function hi(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:n=e}={}){let s=null,o=0,a=o;return typeof e=="number"&&!(e%1)&&!isNaN(e)&&isFinite(e)?o===a&&typeof e=="number"&&isFinite(e)&&(e<0||isNaN(e))?(hi.errors=[{instancePath:t,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(hi.errors=s,o===0):(hi.errors=[{instancePath:t,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var d1={validate:Y};function Er(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:n=e}={}){let s=null,o=0;if(o===0)if(Array.isArray(e)){if(e.length<1)return Er.errors=[{instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let l=e.length;for(let c=0;c<l;c++){let u=o;d1.validate(e[c],{instancePath:t+"/"+c,parentData:e,parentDataProperty:c,rootData:n})||(s=s===null?d1.validate.errors:s.concat(d1.validate.errors),o=s.length);var a=u===o;if(!a)break}}}else return Er.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;return Er.errors=s,o===0}var Ez=Af().default;function Y(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:n=e}={}){let s=null,o=0;if(!(e&&typeof e=="object"&&!Array.isArray(e))&&typeof e!="boolean")return Y.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:P_e.type},message:"must be object,boolean"}],!1;if(o===0&&e&&typeof e=="object"&&!Array.isArray(e)){if(e.$id!==void 0){let v=e.$id,g=o;if(o===g&&o===g)if(typeof v=="string"){if(!Sz.test(v))return Y.errors=[{instancePath:t+"/$id",schemaPath:"#/properties/%24id/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'}],!1}else return Y.errors=[{instancePath:t+"/$id",schemaPath:"#/properties/%24id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===o}else var a=!0;if(a){if(e.$schema!==void 0){let v=e.$schema,g=o;if(o===g&&o===g)if(typeof v=="string"){if(!I_e(v))return Y.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'}],!1}else return Y.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===o}else var a=!0;if(a){if(e.$ref!==void 0){let v=e.$ref,g=o;if(o===g&&o===g)if(typeof v=="string"){if(!Sz.test(v))return Y.errors=[{instancePath:t+"/$ref",schemaPath:"#/properties/%24ref/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'}],!1}else return Y.errors=[{instancePath:t+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===o}else var a=!0;if(a){if(e.$comment!==void 0){let v=o;if(typeof e.$comment!="string")return Y.errors=[{instancePath:t+"/$comment",schemaPath:"#/properties/%24comment/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.title!==void 0){let v=o;if(typeof e.title!="string")return Y.errors=[{instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.description!==void 0){let v=o;if(typeof e.description!="string")return Y.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.readOnly!==void 0){let v=o;if(typeof e.readOnly!="boolean")return Y.errors=[{instancePath:t+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=v===o}else var a=!0;if(a){if(e.examples!==void 0){let v=o;if(o===v&&!Array.isArray(e.examples))return Y.errors=[{instancePath:t+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===o}else var a=!0;if(a){if(e.multipleOf!==void 0){let v=e.multipleOf,g=o;if(o===g)if(typeof v=="number"&&isFinite(v)){if(v<=0||isNaN(v))return Y.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"}],!1}else return Y.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=g===o}else var a=!0;if(a){if(e.maximum!==void 0){let v=e.maximum,g=o;if(!(typeof v=="number"&&isFinite(v)))return Y.errors=[{instancePath:t+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=g===o}else var a=!0;if(a){if(e.exclusiveMaximum!==void 0){let v=e.exclusiveMaximum,g=o;if(!(typeof v=="number"&&isFinite(v)))return Y.errors=[{instancePath:t+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=g===o}else var a=!0;if(a){if(e.minimum!==void 0){let v=e.minimum,g=o;if(!(typeof v=="number"&&isFinite(v)))return Y.errors=[{instancePath:t+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=g===o}else var a=!0;if(a){if(e.exclusiveMinimum!==void 0){let v=e.exclusiveMinimum,g=o;if(!(typeof v=="number"&&isFinite(v)))return Y.errors=[{instancePath:t+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=g===o}else var a=!0;if(a){if(e.maxLength!==void 0){let v=e.maxLength,g=o,T=o;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Y.errors=[{instancePath:t+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===T&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Y.errors=[{instancePath:t+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=g===o}else var a=!0;if(a){if(e.minLength!==void 0){let v=o;hi(e.minLength,{instancePath:t+"/minLength",parentData:e,parentDataProperty:"minLength",rootData:n})||(s=s===null?hi.errors:s.concat(hi.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.pattern!==void 0){let v=e.pattern,g=o;if(o===g&&o===g)if(typeof v=="string"){if(!xz(v))return Y.errors=[{instancePath:t+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return Y.errors=[{instancePath:t+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===o}else var a=!0;if(a){if(e.additionalItems!==void 0){let v=o;Y(e.additionalItems,{instancePath:t+"/additionalItems",parentData:e,parentDataProperty:"additionalItems",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.items!==void 0){let v=e.items,g=o,T=o,N=!1,R=o;Y(v,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var l=R===o;if(N=N||l,!N){let C=o;Er(v,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:n})||(s=s===null?Er.errors:s.concat(Er.errors),o=s.length);var l=C===o;N=N||l}if(N)o=T,s!==null&&(T?s.length=T:s=null);else{let C={instancePath:t+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[C]:s.push(C),o++,Y.errors=s,!1}var a=g===o}else var a=!0;if(a){if(e.maxItems!==void 0){let v=e.maxItems,g=o,T=o;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Y.errors=[{instancePath:t+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===T&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Y.errors=[{instancePath:t+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=g===o}else var a=!0;if(a){if(e.minItems!==void 0){let v=o;hi(e.minItems,{instancePath:t+"/minItems",parentData:e,parentDataProperty:"minItems",rootData:n})||(s=s===null?hi.errors:s.concat(hi.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.uniqueItems!==void 0){let v=o;if(typeof e.uniqueItems!="boolean")return Y.errors=[{instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=v===o}else var a=!0;if(a){if(e.contains!==void 0){let v=o;Y(e.contains,{instancePath:t+"/contains",parentData:e,parentDataProperty:"contains",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.maxProperties!==void 0){let v=e.maxProperties,g=o,T=o;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Y.errors=[{instancePath:t+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===T&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Y.errors=[{instancePath:t+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=g===o}else var a=!0;if(a){if(e.minProperties!==void 0){let v=o;hi(e.minProperties,{instancePath:t+"/minProperties",parentData:e,parentDataProperty:"minProperties",rootData:n})||(s=s===null?hi.errors:s.concat(hi.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.required!==void 0){let v=e.required,g=o;if(o===o)if(Array.isArray(v)){var c=!0;let R=v.length;for(let A=0;A<R;A++){let C=o;if(typeof v[A]!="string")return Y.errors=[{instancePath:t+"/required/"+A,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=C===o;if(!c)break}if(c){let A=v.length,C;if(A>1){let k={};for(;A--;){let P=v[A];if(typeof P=="string"){if(typeof k[P]=="number"){return C=k[P],Y.errors=[{instancePath:t+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:A,j:C},message:"must NOT have duplicate items (items ## "+C+" and "+A+" are identical)"}],!1;break}k[P]=A}}}}}else return Y.errors=[{instancePath:t+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=g===o}else var a=!0;if(a){if(e.additionalProperties!==void 0){let v=o;Y(e.additionalProperties,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.definitions!==void 0){let v=e.definitions,g=o;if(o===g)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let R=o;Y(v[N],{instancePath:t+"/definitions/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var u=R===o;if(!u)break}else return Y.errors=[{instancePath:t+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=g===o}else var a=!0;if(a){if(e.properties!==void 0){let v=e.properties,g=o;if(o===g)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let R=o;Y(v[N],{instancePath:t+"/properties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var f=R===o;if(!f)break}else return Y.errors=[{instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=g===o}else var a=!0;if(a){if(e.patternProperties!==void 0){let v=e.patternProperties,g=o;if(o===g)if(v&&typeof v=="object"&&!Array.isArray(v)){for(let N in v){let R=o;if(o===R&&typeof N=="string"&&!xz(N)){let A={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:N};s===null?s=[A]:s.push(A),o++}var h=R===o;if(!h){let A={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:N},message:"property name must be valid"};return s===null?s=[A]:s.push(A),o++,Y.errors=s,!1;break}}if(h)for(let N in v){let R=o;Y(v[N],{instancePath:t+"/patternProperties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var d=R===o;if(!d)break}}else return Y.errors=[{instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=g===o}else var a=!0;if(a){if(e.dependencies!==void 0){let v=e.dependencies,g=o;if(o===g)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let R=v[N],A=o,C=o,k=!1,P=o;Y(R,{instancePath:t+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var p=P===o;if(k=k||p,!k){let L=o;if(o===o)if(Array.isArray(R)){var m=!0;let X=R.length;for(let H=0;H<X;H++){let W=o;if(typeof R[H]!="string"){let V={instancePath:t+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+H,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),o++}var m=W===o;if(!m)break}if(m){let H=R.length,W;if(H>1){let ae={};for(;H--;){let V=R[H];if(typeof V=="string"){if(typeof ae[V]=="number"){W=ae[V];let Ve={instancePath:t+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:H,j:W},message:"must NOT have duplicate items (items ## "+W+" and "+H+" are identical)"};s===null?s=[Ve]:s.push(Ve),o++;break}ae[V]=H}}}}}else{let X={instancePath:t+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[X]:s.push(X),o++}var p=L===o;k=k||p}if(k)o=C,s!==null&&(C?s.length=C:s=null);else{let L={instancePath:t+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[L]:s.push(L),o++,Y.errors=s,!1}var y=A===o;if(!y)break}else return Y.errors=[{instancePath:t+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=g===o}else var a=!0;if(a){if(e.propertyNames!==void 0){let v=o;Y(e.propertyNames,{instancePath:t+"/propertyNames",parentData:e,parentDataProperty:"propertyNames",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.enum!==void 0){let v=e.enum,g=o;if(o===g)if(Array.isArray(v)){if(v.length<1)return Y.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let N=v.length,R;if(N>1){e:for(;N--;)for(R=N;R--;)if(Ez(v[N],v[R])){return Y.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:N,j:R},message:"must NOT have duplicate items (items ## "+R+" and "+N+" are identical)"}],!1;break e}}}}else return Y.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=g===o}else var a=!0;if(a){if(e.type!==void 0){let v=e.type,g=o,T=o,N=!1,R=o;if(!(v==="array"||v==="boolean"||v==="integer"||v==="null"||v==="number"||v==="object"||v==="string")){let C={instancePath:t+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:wz.enum},message:"must be equal to one of the allowed values"};s===null?s=[C]:s.push(C),o++}var _=R===o;if(N=N||_,!N){let C=o;if(o===C)if(Array.isArray(v))if(v.length<1){let P={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};s===null?s=[P]:s.push(P),o++}else{var w=!0;let P=v.length;for(let L=0;L<P;L++){let q=v[L],G=o;if(!(q==="array"||q==="boolean"||q==="integer"||q==="null"||q==="number"||q==="object"||q==="string")){let H={instancePath:t+"/type/"+L,schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:wz.enum},message:"must be equal to one of the allowed values"};s===null?s=[H]:s.push(H),o++}var w=G===o;if(!w)break}if(w){let L=v.length,q;if(L>1){e:for(;L--;)for(q=L;q--;)if(Ez(v[L],v[q])){let G={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:L,j:q},message:"must NOT have duplicate items (items ## "+q+" and "+L+" are identical)"};s===null?s=[G]:s.push(G),o++;break e}}}}else{let P={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[P]:s.push(P),o++}var _=C===o;N=N||_}if(N)o=T,s!==null&&(T?s.length=T:s=null);else{let C={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[C]:s.push(C),o++,Y.errors=s,!1}var a=g===o}else var a=!0;if(a){if(e.format!==void 0){let v=o;if(typeof e.format!="string")return Y.errors=[{instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.contentMediaType!==void 0){let v=o;if(typeof e.contentMediaType!="string")return Y.errors=[{instancePath:t+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.contentEncoding!==void 0){let v=o;if(typeof e.contentEncoding!="string")return Y.errors=[{instancePath:t+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(e.if!==void 0){let v=o;Y(e.if,{instancePath:t+"/if",parentData:e,parentDataProperty:"if",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.then!==void 0){let v=o;Y(e.then,{instancePath:t+"/then",parentData:e,parentDataProperty:"then",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.else!==void 0){let v=o;Y(e.else,{instancePath:t+"/else",parentData:e,parentDataProperty:"else",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.allOf!==void 0){let v=o;Er(e.allOf,{instancePath:t+"/allOf",parentData:e,parentDataProperty:"allOf",rootData:n})||(s=s===null?Er.errors:s.concat(Er.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.anyOf!==void 0){let v=o;Er(e.anyOf,{instancePath:t+"/anyOf",parentData:e,parentDataProperty:"anyOf",rootData:n})||(s=s===null?Er.errors:s.concat(Er.errors),o=s.length);var a=v===o}else var a=!0;if(a){if(e.oneOf!==void 0){let v=o;Er(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:n})||(s=s===null?Er.errors:s.concat(Er.errors),o=s.length);var a=v===o}else var a=!0;if(a)if(e.not!==void 0){let v=o;Y(e.not,{instancePath:t+"/not",parentData:e,parentDataProperty:"not",rootData:n})||(s=s===null?Y.errors:s.concat(Y.errors),o=s.length);var a=v===o}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return Y.errors=s,o===0}});var v1=b((z3e,Rz)=>{"use strict";var m1=class extends Error{constructor(t,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Failed to merge "${t}" keyword schemas.`,this.schemas=r}},g1=class extends Error{constructor(t,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Resolver for "${t}" keyword not found.`,this.schemas=r}},y1=class extends Error{constructor(t){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Invalid "onConflict" option: "${t}".`}};Rz.exports={MergeError:m1,ResolverNotFoundError:g1,InvalidOnConflictOptionError:y1}});var Az=b((U3e,Oz)=>{"use strict";var N_e=Ms(),{MergeError:_1}=v1();function Tz(e){let t=e[0];for(let r=1;r<e.length;r++)t=t.filter(i=>e[r].includes(i));return t}function $_e(e,t,r){let i=Tz(t);if(i.length===0)throw new _1(e,t);r[e]=i}function F_e(e,t,r){for(let n=0;n<t.length;n++)Array.isArray(t[n])||(t[n]=[t[n]]);let i=Tz(t);if(i.length===0)throw new _1(e,t);i.length===1?r[e]=i[0]:r[e]=i}function L_e(e,t,r){let i=[];for(let n of t)for(let s of n)i.includes(s)||i.push(s);r[e]=i}function D_e(e,t,r){r[e]=Math.min(...t)}function j_e(e,t,r){r[e]=Math.max(...t)}function q_e(e,t,r){let i=(a,l)=>l?i(l,a%l):a,n=(a,l)=>a*l/i(a,l),s=1;for(let a of t)for(;a*s%1!==0;)s*=10;let o=t[0]*s;for(let a of t)o=n(o,a*s);r[e]=o/s}function M_e(e,t,r){let i=t[0];for(let n=1;n<t.length;n++)if(!N_e(t[n],i))throw new _1(e,t);r[e]=i}function z_e(){}function U_e(e,t,r){for(let i of t)if(i===!1){r[e]=!1;return}r[e]=!0}function B_e(e,t,r){for(let i of t)if(i===!0){r[e]=!0;return}r[e]=!1}Oz.exports={arraysIntersection:$_e,hybridArraysIntersection:F_e,arraysUnion:L_e,minNumber:D_e,maxNumber:j_e,commonMultiple:q_e,allEqual:M_e,booleanAnd:U_e,booleanOr:B_e,skip:z_e}});var Fz=b((B3e,$z)=>{"use strict";var H_e=Ms(),et=Az(),n0=v1(),Iz={$id:et.skip,type:et.hybridArraysIntersection,enum:et.arraysIntersection,minLength:et.maxNumber,maxLength:et.minNumber,minimum:et.maxNumber,maximum:et.minNumber,multipleOf:et.commonMultiple,exclusiveMinimum:et.maxNumber,exclusiveMaximum:et.minNumber,minItems:et.maxNumber,maxItems:et.minNumber,maxProperties:et.minNumber,minProperties:et.maxNumber,const:et.allEqual,default:et.allEqual,format:et.allEqual,required:et.arraysUnion,properties:J_e,patternProperties:i0,additionalProperties:r0,items:G_e,additionalItems:Y_e,definitions:i0,$defs:i0,nullable:et.booleanAnd,oneOf:Cz,anyOf:Cz,allOf:et.arraysUnion,not:r0,if:Z_e,then:et.skip,else:et.skip,dependencies:Pz,dependentRequired:Pz,dependentSchemas:i0,propertyNames:r0,uniqueItems:et.booleanOr,contains:r0};function r0(e,t,r,i,n){r[e]=Di(t,n)}function V_e(e){let t=[[]];for(let r of e){let i=[];for(let n of t)for(let s of r)i.push([...n,s]);t=i}return t}function Cz(e,t,r,i,n){if(t.length===1){r[e]=t[0];return}let s=V_e(t),o=[];for(let a of s)try{let l=Di(a,n);l!==void 0&&o.push(l)}catch(l){if(l instanceof n0.MergeError)continue;throw l}r[e]=o}function W_e(e,t){let{items:r,additionalItems:i}=e;return Array.isArray(r)?t<r.length?r[t]:i:r!==void 0?r:i}function G_e(e,t,r,i,n){let s=0;for(let a of t)Array.isArray(a)&&(s=Math.max(s,a.length));if(s===0){r[e]=Di(t,n);return}let o=[];for(let a=0;a<s;a++){let l=[];for(let c of i){let u=W_e(c,a);u!==void 0&&l.push(u)}o[a]=Di(l,n)}r[e]=o}function Y_e(e,t,r,i,n){let s=!1;for(let a of i)if(Array.isArray(a.items)){s=!0;break}if(!s){r[e]=Di(t,n);return}let o=[];for(let a of i){let l=a.additionalItems;l===void 0&&!Array.isArray(a.items)&&(l=a.items),l!==void 0&&o.push(l)}r[e]=Di(o,n)}function K_e(e,t){let{properties:r,patternProperties:i,additionalProperties:n}=e;if(r?.[t]!==void 0)return r[t];for(let s of Object.keys(i??{}))if(new RegExp(s).test(t))return i[s];return n}function J_e(e,t,r,i,n){let s={};for(let a of i){let l=a.properties??{};for(let c of Object.keys(l)){if(s[c]!==void 0)continue;let u=l[c];s[c]=[u];for(let f of i){if(a===f)continue;let h=K_e(f,c);h!==void 0&&s[c].push(h)}}}let o={};for(let a of Object.keys(s)){let l=s[a];o[a]=Di(l,n)}r[e]=o}function i0(e,t,r,i,n){let s={};for(let a of t)for(let l of Object.keys(a))s[l]===void 0&&(s[l]=[]),s[l].push(a[l]);let o={};for(let a of Object.keys(s)){let l=s[a],c=Di(l,n);o[a]=c}r[e]=o}function Z_e(e,t,r,i,n){for(let s=0;s<i.length;s++){let o={if:i[s].if,then:i[s].then,else:i[s].else};if(o.if!==void 0){if(r.if===void 0){r.if=o.if,o.then!==void 0&&(r.then=o.then),o.else!==void 0&&(r.else=o.else);continue}r.then!==void 0&&(r.then=Di([r.then,o],n)),r.else!==void 0&&(r.else=Di([r.else,o],n))}}}function Pz(e,t,r){let i={};for(let n of t)for(let s of Object.keys(n)){i[s]===void 0&&(i[s]=[]);let o=i[s];for(let a of n[s])o.includes(a)||o.push(a)}r[e]=i}function Di(e,t){if(e.length===0)return{};if(e.length===1)return e[0];let r={},i={},n=!0;for(let s of e){if(s===!1)return!1;if(s!==!0){n=!1;for(let o of Object.keys(s))i[o]===void 0&&(i[o]=[]),i[o].push(s[o])}}if(n)return!0;for(let s of Object.keys(i)){let o=i[s];(t.resolvers[s]??t.defaultResolver)(s,o,r,e,t)}return r}function Nz(e,t,r,i,n){let s=n.onConflict??"throw";if(t.length===1||s==="first"){r[e]=t[0];return}let o=!0;for(let a=1;a<t.length;a++)if(!H_e(t[a],t[0])){o=!1;break}if(o){r[e]=t[0];return}if(s==="throw")throw new n0.ResolverNotFoundError(e,t);if(s!=="skip")throw new n0.InvalidOnConflictOptionError(s)}function X_e(e,t={}){return t.defaultResolver===void 0&&(t.defaultResolver=Nz),t.resolvers={...Iz,...t.resolvers},Di(e,t)}$z.exports={mergeSchemas:X_e,keywordsResolvers:Iz,defaultResolver:Nz,...n0}});var Dz=b((H3e,Lz)=>{"use strict";var{mergeSchemas:Q_e}=Fz();function ebe(e){return Q_e(e,{onConflict:"skip"})}Lz.exports=ebe});var jz=b((V3e,b1)=>{"use strict";function tbe(e,t,r,i){let n="";t.validatorSchemasIds.size>0?(n+=`const Validator = require('fast-json-stringify/lib/validator')
`,n+=`const validatorState = ${JSON.stringify(i.getState())}
`,n+=`const validator = Validator.restoreFromState(validatorState)
`):n+=`const validator = null
`;let{schema:s,...o}=r.getState();return`
'use strict'
const Serializer = require('fast-json-stringify/lib/serializer')
const serializerState = ${JSON.stringify(o)}
const serializer = Serializer.restoreFromState(serializerState)
${n}
module.exports = ${e.toString()}(validator, serializer)`}b1.exports=tbe;b1.exports.dependencies={Serializer:Dm(),Validator:f1()}});var Gz=b((W3e,Vl)=>{"use strict";var{RefResolver:rbe}=dq(),ibe=Dm(),nbe=f1(),oa=bz(),qz=kz(),sbe=Dz(),obe=/'/g,s0=2e4,zz="default",abe=["floor","ceil","round","trunc"],Uz=["default","json-stringify"],Df=0;function w1(e,t){if(!qz(e)){t?t=`"${t}" `:t="";let r=qz.errors[0],i=new Error(`${t}schema is invalid: data${r.instancePath} ${r.message}`);throw i.errors=w1.errors,i}}function jf(e,t){let r=t.schema.$ref,i=r.indexOf("#");i===-1&&(i=r.length);let n=r.slice(0,i)||t.schemaId,s=r.slice(i)||"#",o=e.refResolver.getSchema(n,s);if(o===null)throw new Error(`Cannot find reference "${r}"`);let a=new oa(o,n,s);return o.$ref!==void 0?jf(e,a):a}function o0(e,t){let r=e.refResolver.getSchema(t,"#");return new oa(r,t,"#")}function Mz(e,t){return e.$id&&e.$id.charAt(0)!=="#"?e.$id:t}function S1(e,t){w1(e),t=t||{};let r={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:t,refResolver:new rbe,rootSchemaId:e.$id||`__fjs_root_${Df++}`,validatorSchemasIds:new Set,mergedSchemasIds:new Map},i=Mz(e,r.rootSchemaId);if(r.refResolver.hasSchema(i)||r.refResolver.addSchema(e,r.rootSchemaId),t.schema)for(let u in t.schema){let f=t.schema[u],h=Mz(f,u);r.refResolver.hasSchema(h)||(w1(f,u),r.refResolver.addSchema(f,u))}if(t.rounding&&!abe.includes(t.rounding))throw new Error(`Unsupported integer rounding method ${t.rounding}`);if(t.largeArrayMechanism)if(Uz.includes(t.largeArrayMechanism))zz=t.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${t.largeArrayMechanism}`);if(t.largeArraySize)if(typeof t.largeArraySize=="string"&&Number.isFinite(Number.parseInt(t.largeArraySize,10)))s0=Number.parseInt(t.largeArraySize,10);else if(typeof t.largeArraySize=="number"&&Number.isInteger(t.largeArraySize))s0=t.largeArraySize;else if(typeof t.largeArraySize=="bigint")s0=Number(t.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof t.largeArraySize} with value ${t.largeArraySize}`);let n=new oa(e,r.rootSchemaId),s=Gr(r,n,"input"),o=`
const JSON_STR_BEGIN_OBJECT = '{'
const JSON_STR_END_OBJECT = '}'
const JSON_STR_BEGIN_ARRAY = '['
const JSON_STR_END_ARRAY = ']'
const JSON_STR_COMMA = ','
const JSON_STR_COLONS = ':'
const JSON_STR_QUOTE = '"'
const JSON_STR_EMPTY_OBJECT = JSON_STR_BEGIN_OBJECT + JSON_STR_END_OBJECT
const JSON_STR_EMPTY_ARRAY = JSON_STR_BEGIN_ARRAY + JSON_STR_END_ARRAY
const JSON_STR_EMPTY_STRING = JSON_STR_QUOTE + JSON_STR_QUOTE
const JSON_STR_NULL = 'null'
`;s==="json += anonymous0(input)"?o+=`
${r.functions.join(`
`)}
const main = anonymous0
return main
`:o+=`
function main (input) {
let json = ''
${s}
return json
}
${r.functions.join(`
`)}
return main
`;let a=new ibe(t),l=new nbe(t.ajv);for(let u of r.validatorSchemasIds){let f=r.refResolver.getSchema(u);l.addSchema(f,u);let h=r.refResolver.getSchemaDependencies(u);for(let[d,p]of Object.entries(h))l.addSchema(p,d)}if(t.debugMode&&(t.mode="debug"),t.mode==="debug")return{validator:l,serializer:a,code:`validator
serializer
${o}`,ajv:l.ajv};let c=new Function("validator","serializer",o);return t.mode==="standalone"?jz()(c,r,a,l):c(l,a)}var lbe=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],cbe=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],ube=["maxLength","minLength","pattern"],fbe=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function hbe(e){for(var t of lbe)if(t in e)return"object";for(var t of cbe)if(t in e)return"array";for(var t of ube)if(t in e)return"string";for(var t of fbe)if(t in e)return"number";return e.type}function dbe(e,t,r){let i=t.schema,n=Object.keys(i.properties||{}),s=`
const propertiesKeys = ${JSON.stringify(n)}
for (const [key, value] of Object.entries(obj)) {
if (
propertiesKeys.includes(key) ||
value === undefined ||
typeof value === 'function' ||
typeof value === 'symbol'
) continue
`,o=t.getPropertyLocation("patternProperties"),a=o.schema;if(a!==void 0)for(let u in a){let f=o.getPropertyLocation(u);s+=`
if (/${u.replace(/\\*\//g,"\\/")}/.test(key)) {
${r}
json += serializer.asString(key) + JSON_STR_COLONS
${Gr(e,f,"value")}
continue
}
`}let c=t.getPropertyLocation("additionalProperties").schema;if(c!==void 0)if(c===!0)s+=`
${r}
json += serializer.asString(key) + JSON_STR_COLONS + JSON.stringify(value)
`;else{let u=t.getPropertyLocation("additionalProperties");s+=`
${r}
json += serializer.asString(key) + JSON_STR_COLONS
${Gr(e,u,"value")}
`}return s+=`
}
`,s}function pbe(e,t){let r=t.schema,i=t.getPropertyLocation("properties"),n=r.required||[],s=Object.keys(r.properties||{}).sort((c,u)=>{let f=n.includes(c),h=n.includes(u);return f===h?0:f?-1:1}),o=n.includes(s[0]),a=`let value
`;for(let c of n)if(!s.includes(c)){let u=JSON.stringify(c);a+=`if (obj[${u}] === undefined) throw new Error('${u.replace(/'/g,"\\'")} is required!')
`}a+=`let json = JSON_STR_BEGIN_OBJECT
`;let l="";o||(a+=`let addComma = false
`,l="!addComma && (addComma = true) || (json += JSON_STR_COMMA)");for(let c of s){let u=i.getPropertyLocation(c);u.schema.$ref&&(u=jf(e,u));let f=JSON.stringify(c),h=u.schema.default,d=n.includes(c);a+=`
value = obj[${f}]
if (value !== undefined) {
${l}
json += ${JSON.stringify(f+":")}
${Gr(e,u,"value")}
}`,h!==void 0?a+=` else {
${l}
json += ${JSON.stringify(f+":"+JSON.stringify(h))}
}
`:d?a+=` else {
throw new Error('${f.replace(/'/g,"\\'")} is required!')
}
`:a+=`
`,o&&(l="json += ','")}return(r.patternProperties||r.additionalProperties)&&(a+=dbe(e,t,l)),a+=`
return json + JSON_STR_END_OBJECT
`,a}function a0(e,t,r){for(let o=0;o<r.length;o++){let a=r[o];a.schema.$ref&&(r[o]=jf(e,a))}let i=[];for(let o of r){let a=Bz(e,o.schema,o.schemaId);delete a.$id,i.push(a)}let n=sbe(i),s=new oa(n,t);return e.refResolver.addSchema(n,t),s}function Bz(e,t,r){let i=Array.isArray(t)?[]:{};t.$id!==void 0&&t.$id.charAt(0)!=="#"&&(r=t.$id);let n=e.mergedSchemasIds.get(t);n&&e.mergedSchemasIds.set(i,n);for(let s in t){let o=t[s];s==="$ref"&&typeof o=="string"&&o.charAt(0)==="#"&&(o=r+o),typeof o=="object"&&o!==null&&(o=Bz(e,o,r)),i[s]=o}return i}function mbe(e){return`(${e} && typeof ${e}.toJSON === 'function')
? ${e}.toJSON()
: ${e}
`}function gbe(e,t){let r=t.schema;if(e.functionsNamesBySchema.has(r))return e.functionsNamesBySchema.get(r);let i=Vz(e);e.functionsNamesBySchema.set(r,i);let n=t.getSchemaRef();n.startsWith(e.rootSchemaId)&&(n=n.replace(e.rootSchemaId,""));let s=`
`,o=r.nullable===!0;return s+=`
// ${n}
function ${i} (input) {
const obj = ${mbe("input")}
${o?"":"if (obj === null) return JSON_STR_EMPTY_OBJECT"}
${pbe(e,t)}
}
`,e.functions.push(s),i}function ybe(e,t){let r=t.schema,i=t.getPropertyLocation("items");i.schema=i.schema||{},i.schema.$ref&&(i=jf(e,i));let n=i.schema;if(e.functionsNamesBySchema.has(r))return e.functionsNamesBySchema.get(r);let s=Vz(e);e.functionsNamesBySchema.set(r,s);let o=t.getSchemaRef();o.startsWith(e.rootSchemaId)&&(o=o.replace(e.rootSchemaId,""));let a=`
function ${s} (obj) {
// ${o}
`,l=r.nullable===!0;if(a+=`
${l?"":"if (obj === null) return JSON_STR_EMPTY_ARRAY"}
if (!Array.isArray(obj)) {
throw new TypeError(\`The value of '${o}' does not match schema definition.\`)
}
const arrayLength = obj.length
`,!r.additionalItems&&Array.isArray(n)&&(a+=`
if (arrayLength > ${n.length}) {
throw new Error(\`Item at ${n.length} does not match schema definition.\`)
}
`),zz==="json-stringify"&&(a+=`if (arrayLength >= ${s0}) return JSON.stringify(obj)
`),a+=`
const arrayEnd = arrayLength - 1
let value
let json = ''
`,Array.isArray(n)){for(let c=0;c<n.length;c++){let u=n[c];a+=`value = obj[${c}]`;let f=Gr(e,i.getPropertyLocation(c),"value");a+=`
if (${c} < arrayLength) {
if (${Hz(u.type,`[${c}]`)}) {
${f}
if (${c} < arrayEnd) {
json += JSON_STR_COMMA
}
} else {
throw new Error(\`Item at ${c} does not match schema definition.\`)
}
}
`}r.additionalItems&&(a+=`
for (let i = ${n.length}; i < arrayLength; i++) {
json += JSON.stringify(obj[i])
if (i < arrayEnd) {
json += JSON_STR_COMMA
}
}`)}else{let c=Gr(e,i,"obj[i]");a+=`
for (let i = 0; i < arrayLength; i++) {
${c}
if (i < arrayEnd) {
json += JSON_STR_COMMA
}
}`}return a+=`
return JSON_STR_BEGIN_ARRAY + json + JSON_STR_END_ARRAY
}`,e.functions.push(a),s}function Hz(e,t){let r;switch(e){case"null":r="value === null";break;case"string":r=`typeof value === 'string' ||
value === null ||
value instanceof Date ||
value instanceof RegExp ||
(
typeof value === "object" &&
typeof value.toString === "function" &&
value.toString !== Object.prototype.toString
)`;break;case"integer":r="Number.isInteger(value)";break;case"number":r="Number.isFinite(value)";break;case"boolean":r="typeof value === 'boolean'";break;case"object":r="value && typeof value === 'object' && value.constructor === Object";break;case"array":r="Array.isArray(value)";break;default:Array.isArray(e)&&(r=`(${e.map(n=>Hz(n,t)).join(" || ")})`)}return r}function Vz(e){return"anonymous"+e.functionsCounter++}function vbe(e,t,r){let n=t.schema.type.sort(a=>a==="null"?-1:1),s="";n.forEach((a,l)=>{t.schema={...t.schema,type:a};let c=Wz(e,t,r),u=l===0?"if":"else if";switch(a){case"null":s+=`
${u} (${r} === null)
${c}
`;break;case"string":{s+=`
${u}(
typeof ${r} === "string" ||
${r} === null ||
${r} instanceof Date ||
${r} instanceof RegExp ||
(
typeof ${r} === "object" &&
typeof ${r}.toString === "function" &&
${r}.toString !== Object.prototype.toString
)
)
${c}
`;break}case"array":{s+=`
${u}(Array.isArray(${r}))
${c}
`;break}case"integer":{s+=`
${u}(Number.isInteger(${r}) || ${r} === null)
${c}
`;break}default:{s+=`
${u}(typeof ${r} === "${a}" || ${r} === null)
${c}
`;break}}});let o=t.getSchemaRef();return o.startsWith(e.rootSchemaId)&&(o=o.replace(e.rootSchemaId,"")),s+=`
else throw new TypeError(\`The value of '${o}' does not match schema definition.\`)
`,s}function Wz(e,t,r){let i=t.schema;switch(i.type){case"null":return"json += JSON_STR_NULL";case"string":return i.format==="date-time"?`json += serializer.asDateTime(${r})`:i.format==="date"?`json += serializer.asDate(${r})`:i.format==="time"?`json += serializer.asTime(${r})`:i.format==="unsafe"?`json += serializer.asUnsafeString(${r})`:`
if (typeof ${r} !== 'string') {
if (${r} === null) {
json += JSON_STR_EMPTY_STRING
} else if (${r} instanceof Date) {
json += JSON_STR_QUOTE + ${r}.toISOString() + JSON_STR_QUOTE
} else if (${r} instanceof RegExp) {
json += serializer.asString(${r}.source)
} else {
json += serializer.asString(${r}.toString())
}
} else {
json += serializer.asString(${r})
}
`;case"integer":return`json += serializer.asInteger(${r})`;case"number":return`json += serializer.asNumber(${r})`;case"boolean":return`json += serializer.asBoolean(${r})`;case"object":return`json += ${gbe(e,t)}(${r})`;case"array":return`json += ${ybe(e,t)}(${r})`;case void 0:return`json += JSON.stringify(${r})`;default:throw new Error(`${i.type} unsupported`)}}function _be(e,t){let r=e.schema,i=r.type,n=Array.isArray(i)&&i.includes("null"),s="";return n&&(s+=`
if (${t} === null) {
json += JSON_STR_NULL
} else {
`),s+=`json += '${JSON.stringify(r.const).replace(obe,"\\'")}'`,n&&(s+=`
}
`),s}function bbe(e,t,r){let i=t.schema,n=e.mergedSchemasIds.get(i);if(n){let u=o0(e,n);return Gr(e,u,r)}n=`__fjs_merged_${Df++}`,e.mergedSchemasIds.set(i,n);let{allOf:s,...o}=t.schema,a=[new oa(o,t.schemaId,t.jsonPointer)],l=t.getPropertyLocation("allOf");for(let u=0;u<s.length;u++)a.push(l.getPropertyLocation(u));let c=a0(e,n,a);return Gr(e,c,r)}function wbe(e,t,r){e.validatorSchemasIds.add(t.schemaId);let n=t.schema.anyOf?"anyOf":"oneOf",{[n]:s,...o}=t.schema,a=new oa(o,t.schemaId,t.jsonPointer),l=t.getPropertyLocation(n),c="";for(let f=0;f<s.length;f++){let h=l.getPropertyLocation(f),d=h.schema,p=e.mergedSchemasIds.get(d),m=null;p?m=o0(e,p):(p=`__fjs_merged_${Df++}`,e.mergedSchemasIds.set(d,p),m=a0(e,p,[a,h]));let y=Gr(e,m,r),_=h.getSchemaRef();c+=`
${f===0?"if":"else if"}(validator.validate("${_}", ${r}))
${y}
`}let u=t.getSchemaRef();return u.startsWith(e.rootSchemaId)&&(u=u.replace(e.rootSchemaId,"")),c+=`
else throw new TypeError(\`The value of '${u}' does not match schema definition.\`)
`,c}function Sbe(e,t,r){e.validatorSchemasIds.add(t.schemaId);let{if:i,then:n,else:s,...o}=t.schema,a=new oa(o,t.schemaId,t.jsonPointer),c=t.getPropertyLocation("if").getSchemaRef(),u=t.getPropertyLocation("then"),f=e.mergedSchemasIds.get(n),h=null;if(f?h=o0(e,f):(f=`__fjs_merged_${Df++}`,e.mergedSchemasIds.set(n,f),h=a0(e,f,[a,u])),!s)return`
if (validator.validate("${c}", ${r})) {
${Gr(e,h,r)}
} else {
${Gr(e,a,r)}
}
`;let d=t.getPropertyLocation("else"),p=e.mergedSchemasIds.get(s),m=null;return p?m=o0(e,p):(p=`__fjs_merged_${Df++}`,e.mergedSchemasIds.set(s,p),m=a0(e,p,[a,d])),`
if (validator.validate("${c}", ${r})) {
${Gr(e,h,r)}
} else {
${Gr(e,m,r)}
}
`}function Gr(e,t,r){let i=t.schema;if(typeof i=="boolean")return`json += JSON.stringify(${r})`;if(i.$ref&&(t=jf(e,t),i=t.schema),i.allOf)return bbe(e,t,r);if(i.anyOf||i.oneOf)return wbe(e,t,r);if(i.if&&i.then)return Sbe(e,t,r);if(i.type===void 0){let a=hbe(i);a&&(i.type=a)}let n="",s=i.type,o=i.nullable===!0;return o&&(n+=`
if (${r} === null) {
json += JSON_STR_NULL
} else {
`),i.const!==void 0?n+=_be(t,r):Array.isArray(s)?n+=vbe(e,t,r):n+=Wz(e,t,r),o&&(n+=`
}
`),n}Vl.exports=S1;Vl.exports.default=S1;Vl.exports.build=S1;Vl.exports.validLargeArrayMechanisms=Uz;Vl.exports.restore=function({code:e,validator:t,serializer:r}){return Function.apply(null,["validator","serializer",e]).apply(null,[t,r])}});var Kz=b((G3e,x1)=>{"use strict";var xbe=E1();function Yz(e={readMode:!0}){if(e.readMode===!0&&typeof e.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(e.readMode!==!0&&typeof e.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(e.readMode===!0)return function(){return function(i){return e.restoreFunction(i)}};let t=xbe();return function(i,n={}){n.mode="standalone";let s=t(i,n);return function(o){let a=s(o);return e.storeFunction(o,a),new Function(a)}}}x1.exports=Yz;x1.exports.default=Yz});var E1=b((Y3e,qf)=>{"use strict";var Ebe=Gz();function k1(){return function(t,r){let i=Object.assign({},r,{schema:t});return kbe.bind(null,i)}}function kbe(e,{schema:t}){return e.schema&&t.$id&&e.schema[t.$id]&&(e.schema={...e.schema},delete e.schema[t.$id]),Ebe(t,e)}qf.exports=k1;qf.exports.default=k1;qf.exports.SerializerSelector=k1;qf.exports.StandaloneSerializer=Kz()});var Qn=b(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.checkMetadata=void 0;var Rbe=ge(),Tbe={keyword:"metadata",schemaType:"object",code(e){Jz(e);let{gen:t,schema:r,it:i}=e;if((0,Rbe.alwaysValidSchema)(i,r))return;let n=t.name("valid");e.subschema({keyword:"metadata",jtdMetadata:!0},n),e.ok(n)}};function Jz({it:e,keyword:t},r){if(e.jtdMetadata!==r)throw new Error(`JTD: "${t}" cannot be used in this schema location`)}Mf.checkMetadata=Jz;Mf.default=Tbe});var l0=b(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.hasRef=void 0;var Zz=ra(),zf=ue(),Obe=Jn(),Xz=ci(),Qz=cx(),Abe=Qn(),Cbe={keyword:"ref",schemaType:"string",code(e){(0,Abe.checkMetadata)(e);let{gen:t,data:r,schema:i,parentSchema:n,it:s}=e,{schemaEnv:{root:o}}=s,a=t.name("valid");n.nullable?(t.var(a,(0,zf._)`${r} === null`),t.if((0,zf.not)(a),l)):(t.var(a,!1),l()),e.ok(a);function l(){var f;let h=(f=o.schema.definitions)===null||f===void 0?void 0:f[i];if(!h)throw new Obe.default(s.opts.uriResolver,"",i,`No definition ${i}`);R1(h)||!s.opts.inlineRefs?c(h):u(h)}function c(f){let h=Zz.compileSchema.call(s.self,new Zz.SchemaEnv({schema:f,root:o,schemaPath:`/definitions/${i}`})),d=(0,Qz.getValidate)(e,h),p=t.const("_errs",Xz.default.errors);(0,Qz.callRef)(e,d,h,h.$async),t.assign(a,(0,zf._)`${p} === ${Xz.default.errors}`)}function u(f){let h=t.scopeValue("schema",s.opts.code.source===!0?{ref:f,code:(0,zf.stringify)(f)}:{ref:f});e.subschema({schema:f,dataTypes:[],schemaPath:zf.nil,topSchemaRef:h,errSchemaPath:`/definitions/${i}`},a)}}};function R1(e){for(let t in e){let r;if(t==="ref"||typeof(r=e[t])=="object"&&R1(r))return!0}return!1}Uf.hasRef=R1;Uf.default=Cbe});var O1=b(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});var Pbe=/t|\s/i,Ibe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Nbe=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,$be=[0,31,28,31,30,31,30,31,31,30,31,30,31];function t4(e,t){let r=e.split(Pbe);return r.length===2&&e4(r[0])&&Fbe(r[1])||t&&r.length===1&&e4(r[0])}T1.default=t4;function e4(e){let t=Ibe.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&(n<=$be[i]||i===2&&n===29&&(r%100===0?r%400===0:r%4===0))}function Fbe(e){let t=Nbe.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3],s=+(t[4]||0),o=+(t[5]||0);return r<=23&&i<=59&&n<=59||r-s===23&&i-o===59&&n===60}t4.code='require("ajv/dist/runtime/timestamp").default'});var Wl=b(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.typeErrorParams=Ks.typeErrorMessage=Ks.typeError=void 0;var Lbe=ue();function Dbe(e){return{message:t=>r4(t,e),params:t=>i4(t,e)}}Ks.typeError=Dbe;function r4({parentSchema:e},t){return e?.nullable?`must be ${t} or null`:`must be ${t}`}Ks.typeErrorMessage=r4;function i4({parentSchema:e},t){return(0,Lbe._)`{type: ${t}, nullable: ${!!e?.nullable}}`}Ks.typeErrorParams=i4});var A1=b(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.intRange=void 0;var Yr=ue(),jbe=O1(),qbe=ge(),Mbe=Qn(),n4=Wl();Gl.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var zbe={message:e=>(0,n4.typeErrorMessage)(e,e.schema),params:e=>(0,n4.typeErrorParams)(e,e.schema)};function Ube(e){let{gen:t,data:r,it:i}=e,{timestamp:n,allowDate:s}=i.opts;if(n==="date")return(0,Yr._)`${r} instanceof Date `;let o=(0,qbe.useFunc)(t,jbe.default),a=s?(0,Yr._)`, true`:Yr.nil,l=(0,Yr._)`typeof ${r} == "string" && ${o}(${r}${a})`;return n==="string"?l:(0,Yr.or)((0,Yr._)`${r} instanceof Date`,l)}var Bbe={keyword:"type",schemaType:"string",error:zbe,code(e){(0,Mbe.checkMetadata)(e);let{data:t,schema:r,parentSchema:i,it:n}=e,s;switch(r){case"boolean":case"string":s=(0,Yr._)`typeof ${t} == ${r}`;break;case"timestamp":{s=Ube(e);break}case"float32":case"float64":s=(0,Yr._)`typeof ${t} == "number"`;break;default:{let o=r;if(s=(0,Yr._)`typeof ${t} == "number" && isFinite(${t}) && !(${t} % 1)`,!n.opts.int32range&&(o==="int32"||o==="uint32"))o==="uint32"&&(s=(0,Yr._)`${s} && ${t} >= 0`);else{let[a,l]=Gl.intRange[o];s=(0,Yr._)`${s} && ${t} >= ${a} && ${t} <= ${l}`}}}e.pass(i.nullable?(0,Yr.or)((0,Yr._)`${t} === null`,s):s)}};Gl.default=Bbe});var Kl=b(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.checkNullableObject=Yl.checkNullable=void 0;var c0=ue();function s4({gen:e,data:t,parentSchema:r},i=c0.nil){let n=e.name("valid");return r.nullable?(e.let(n,(0,c0._)`${t} === null`),i=(0,c0.not)(n)):e.let(n,!1),[n,i]}Yl.checkNullable=s4;function Hbe(e,t){let[r,i]=s4(e,t);return[r,(0,c0._)`${i} && typeof ${e.data} == "object" && !Array.isArray(${e.data})`]}Yl.checkNullableObject=Hbe});var o4=b(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});var Js=ue(),Vbe=Qn(),Wbe=Kl(),Gbe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Js._)`{allowedValues: ${e}}`},Ybe={keyword:"enum",schemaType:"array",error:Gbe,code(e){(0,Vbe.checkMetadata)(e);let{gen:t,data:r,schema:i,schemaValue:n,parentSchema:s,it:o}=e;if(i.length===0)throw new Error("enum must have non-empty array");if(i.length!==new Set(i).size)throw new Error("enum items must be unique");let a,l=(0,Js._)`typeof ${r} == "string"`;if(i.length>=o.opts.loopEnum){let u;[a,u]=(0,Wbe.checkNullable)(e,l),t.if(u,c)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");a=(0,Js.and)(l,(0,Js.or)(...i.map(u=>(0,Js._)`${r} === ${u}`))),s.nullable&&(a=(0,Js.or)((0,Js._)`${r} === null`,a))}e.pass(a);function c(){t.forOf("v",n,u=>t.if((0,Js._)`${a} = ${r} === ${u}`,()=>t.break()))}}};C1.default=Ybe});var l4=b(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0});var Kbe=ge(),Jbe=Ut(),a4=ue(),Zbe=Qn(),Xbe=Kl(),Qbe=Wl(),ewe={keyword:"elements",schemaType:"object",error:(0,Qbe.typeError)("array"),code(e){(0,Zbe.checkMetadata)(e);let{gen:t,data:r,schema:i,it:n}=e;if((0,Kbe.alwaysValidSchema)(n,i))return;let[s]=(0,Xbe.checkNullable)(e);t.if((0,a4.not)(s),()=>t.if((0,a4._)`Array.isArray(${r})`,()=>t.assign(s,(0,Jbe.validateArray)(e)),()=>e.error())),e.ok(s)}};P1.default=ewe});var N1=b(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.validateProperties=Zs.error=void 0;var I1=Ut(),c4=ge(),es=ue(),twe=Qn(),rwe=Kl(),u4=Wl(),Jl;(function(e){e.Additional="additional",e.Missing="missing"})(Jl||(Jl={}));Zs.error={message:e=>{let{params:t}=e;return t.propError?t.propError===Jl.Additional?"must NOT have additional properties":`must have property '${t.missingProperty}'`:(0,u4.typeErrorMessage)(e,"object")},params:e=>{let{params:t}=e;return t.propError?t.propError===Jl.Additional?(0,es._)`{error: ${t.propError}, additionalProperty: ${t.additionalProperty}}`:(0,es._)`{error: ${t.propError}, missingProperty: ${t.missingProperty}}`:(0,u4.typeErrorParams)(e,"object")}};var iwe={keyword:"properties",schemaType:"object",error:Zs.error,code:f4};function f4(e){(0,twe.checkMetadata)(e);let{gen:t,data:r,parentSchema:i,it:n}=e,{additionalProperties:s,nullable:o}=i;if(n.jtdDiscriminator&&o)throw new Error("JTD: nullable inside discriminator mapping");if(d())throw new Error("JTD: properties and optionalProperties have common members");let[a,l]=p("properties"),[c,u]=p("optionalProperties");if(l.length===0&&u.length===0&&s)return;let[f,h]=n.jtdDiscriminator===void 0?(0,rwe.checkNullableObject)(e,r):[t.let("valid",!1),!0];t.if(h,()=>t.assign(f,!0).block(()=>{m(l,"properties",!0),m(u,"optionalProperties"),s||_()})),e.pass(f);function d(){let v=i.properties,g=i.optionalProperties;if(!(v&&g))return!1;for(let T in v)if(Object.prototype.hasOwnProperty.call(g,T))return!0;return!1}function p(v){let g=i[v],T=g?(0,I1.allSchemaProperties)(g):[];if(n.jtdDiscriminator&&T.some(R=>R===n.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${v}`);let N=T.filter(R=>!(0,c4.alwaysValidSchema)(n,g[R]));return[T,N]}function m(v,g,T){let N=t.var("valid");for(let A of v)t.if((0,I1.propertyInData)(t,r,A,n.opts.ownProperties),()=>y(A,g,N),()=>R(A)),e.ok(N);function R(A){T?(t.assign(N,!1),e.error(!1,{propError:Jl.Missing,missingProperty:A},{schemaPath:A})):t.assign(N,!0)}}function y(v,g,T){e.subschema({keyword:g,schemaProp:v,dataProp:v},T)}function _(){t.forIn("key",r,v=>{let g=w(v,a,"properties",n.jtdDiscriminator),T=w(v,c,"optionalProperties"),N=g===!0?T:T===!0?g:(0,es.and)(g,T);t.if(N,()=>{n.opts.removeAdditional?t.code((0,es._)`delete ${r}[${v}]`):(e.error(!1,{propError:Jl.Additional,additionalProperty:v},{instancePath:v,parentSchema:!0}),n.opts.allErrors||t.break())})})}function w(v,g,T,N){let R;if(g.length>8){let A=(0,c4.schemaRefOrVal)(n,i[T],T);R=(0,es.not)((0,I1.isOwnProperty)(t,A,v)),N!==void 0&&(R=(0,es.and)(R,(0,es._)`${v} !== ${N}`))}else if(g.length||N!==void 0){let A=N===void 0?g:[N].concat(g);R=(0,es.and)(...A.map(C=>(0,es._)`${v} !== ${C}`))}else R=!0;return R}}Zs.validateProperties=f4;Zs.default=iwe});var d4=b($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});var h4=N1(),nwe={keyword:"optionalProperties",schemaType:"object",error:h4.error,code(e){e.parentSchema.properties||(0,h4.validateProperties)(e)}};$1.default=nwe});var m4=b(F1=>{"use strict";Object.defineProperty(F1,"__esModule",{value:!0});var aa=ue(),swe=Qn(),owe=Kl(),p4=Wl(),u0=Kx(),awe={message:e=>{let{schema:t,params:r}=e;return r.discrError?r.discrError===u0.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in mapping`:(0,p4.typeErrorMessage)(e,"object")},params:e=>{let{schema:t,params:r}=e;return r.discrError?(0,aa._)`{error: ${r.discrError}, tag: ${t}, tagValue: ${r.tag}}`:(0,p4.typeErrorParams)(e,"object")}},lwe={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:awe,code(e){(0,swe.checkMetadata)(e);let{gen:t,data:r,schema:i,parentSchema:n}=e,[s,o]=(0,owe.checkNullableObject)(e,r);t.if(o),a(),t.elseIf((0,aa.not)(s)),e.error(),t.endIf(),e.ok(s);function a(){let u=t.const("tag",(0,aa._)`${r}${(0,aa.getProperty)(i)}`);t.if((0,aa._)`${u} === undefined`),e.error(!1,{discrError:u0.DiscrError.Tag,tag:u}),t.elseIf((0,aa._)`typeof ${u} == "string"`),l(u),t.else(),e.error(!1,{discrError:u0.DiscrError.Tag,tag:u},{instancePath:i}),t.endIf()}function l(u){t.if(!1);for(let f in n.mapping)t.elseIf((0,aa._)`${u} === ${f}`),t.assign(s,c(f));t.else(),e.error(!1,{discrError:u0.DiscrError.Mapping,tag:u},{instancePath:i,schemaPath:"mapping",parentSchema:!0}),t.endIf()}function c(u){let f=t.name("valid");return e.subschema({keyword:"mapping",schemaProp:u,jtdDiscriminator:i},f),f}}};F1.default=lwe});var y4=b(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});var g4=ge(),f0=ue(),cwe=Qn(),uwe=Kl(),fwe=Wl(),hwe={keyword:"values",schemaType:"object",error:(0,fwe.typeError)("object"),code(e){(0,cwe.checkMetadata)(e);let{gen:t,data:r,schema:i,it:n}=e,[s,o]=(0,uwe.checkNullableObject)(e,r);(0,g4.alwaysValidSchema)(n,i)?t.if((0,f0.not)((0,f0.or)(o,s)),()=>e.error()):(t.if(o),t.assign(s,a()),t.elseIf((0,f0.not)(s)),e.error(),t.endIf()),e.ok(s);function a(){let l=t.name("valid");if(n.allErrors){let u=t.let("valid",!0);return c(()=>t.assign(u,!1)),u}return t.var(l,!0),c(()=>t.break()),l;function c(u){t.forIn("key",r,f=>{e.subschema({keyword:"values",dataProp:f,dataPropType:g4.Type.Str},l),t.if((0,f0.not)(l),u)})}}}};L1.default=hwe});var v4=b(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});var dwe=Ut(),pwe={keyword:"union",schemaType:"array",trackErrors:!0,code:dwe.validateUnion,error:{message:"must match a schema in union"}};D1.default=pwe});var _4=b(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var mwe=l0(),gwe=A1(),ywe=o4(),vwe=l4(),_we=N1(),bwe=d4(),wwe=m4(),Swe=y4(),xwe=v4(),Ewe=Qn(),kwe=["definitions",mwe.default,gwe.default,ywe.default,vwe.default,_we.default,bwe.default,wwe.default,Swe.default,xwe.default,Ewe.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];j1.default=kwe});var x4=b(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0});var ts=e=>{let t={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return e&&(t.definitions={values:{ref:"schema"}}),t},Rwe=e=>({optionalProperties:ts(e)}),Twe=e=>({properties:{ref:{type:"string"}},optionalProperties:ts(e)}),Owe=e=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:ts(e)}),Awe=e=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:ts(e)}),Cwe=e=>({properties:{elements:{ref:"schema"}},optionalProperties:ts(e)}),w4=e=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...ts(e)}}),S4=e=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...ts(e)}}),Pwe=e=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[w4(!1),S4(!1)]}}}},optionalProperties:ts(e)}),Iwe=e=>({properties:{values:{ref:"schema"}},optionalProperties:ts(e)}),b4=e=>({metadata:{union:[Rwe,Twe,Owe,Awe,Cwe,w4,S4,Pwe,Iwe].map(t=>t(e))}}),Nwe={definitions:{schema:b4(!1)},...b4(!0)};q1.default=Nwe});var M1=b(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.jtdForms=void 0;h0.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var k4=b(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});var z1=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$we={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function E4(e){return z1.lastIndex=0,'"'+(z1.test(e)?e.replace(z1,t=>{let r=$we[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}):e)+'"'}U1.default=E4;E4.code='require("ajv/dist/runtime/quote").default'});var P4=b(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0});var Fwe=M1(),T4=ra(),xe=ue(),Lwe=Jn(),Ue=ci(),Dwe=Ut(),jwe=l0(),qwe=ge(),Mwe=k4(),zwe={elements:Bwe,values:Hwe,discriminator:Vwe,properties:R4,optionalProperties:R4,enum:Bf,type:Wwe,ref:Ywe};function O4(e,t){let r=T4.getCompilingSchema.call(this,e);if(r)return r;let{es5:i,lines:n}=this.opts.code,{ownProperties:s}=this.opts,o=new xe.CodeGen(this.scope,{es5:i,lines:n,ownProperties:s}),a=o.scopeName("serialize"),l={self:this,gen:o,schema:e.schema,schemaEnv:e,definitions:t,data:Ue.default.data},c;try{this._compilations.add(e),e.serializeName=a,o.func(a,Ue.default.data,!1,()=>{o.let(Ue.default.json,(0,xe.str)``),Hf(l),o.return(Ue.default.json)}),o.optimize(this.opts.code.optimize);let u=o.toString();c=`${o.scopeRefs(Ue.default.scope)}return ${u}`;let h=new Function(`${Ue.default.scope}`,c)(this.scope.get());this.scope.value(a,{ref:h}),e.serialize=h}catch(u){throw c&&this.logger.error("Error compiling serializer, function code:",c),delete e.serialize,delete e.serializeName,u}finally{this._compilations.delete(e)}return e}H1.default=O4;function Hf(e){let t;for(let r of Fwe.jtdForms)if(r in e.schema){t=r;break}Uwe(e,t?zwe[t]:Jwe)}function Uwe(e,t){let{gen:r,schema:i,data:n}=e;if(!i.nullable)return t(e);r.if((0,xe._)`${n} === undefined || ${n} === null`,()=>r.add(Ue.default.json,(0,xe._)`"null"`),()=>t(e))}function Bwe(e){let{gen:t,schema:r,data:i}=e;t.add(Ue.default.json,(0,xe.str)`[`);let n=t.let("first",!0);t.forOf("el",i,s=>{B1(e,n),Hf({...e,schema:r.elements,data:s})}),t.add(Ue.default.json,(0,xe.str)`]`)}function Hwe(e){let{gen:t,schema:r,data:i}=e;t.add(Ue.default.json,(0,xe.str)`{`);let n=t.let("first",!0);t.forIn("key",i,s=>A4(e,s,r.values,n)),t.add(Ue.default.json,(0,xe.str)`}`)}function A4(e,t,r,i){let{gen:n,data:s}=e;B1(e,i),Bf({...e,data:t}),n.add(Ue.default.json,(0,xe.str)`:`);let o=n.const("value",(0,xe._)`${s}${(0,xe.getProperty)(t)}`);Hf({...e,schema:r,data:o})}function Vwe(e){let{gen:t,schema:r,data:i}=e,{discriminator:n}=r;t.add(Ue.default.json,(0,xe.str)`{${JSON.stringify(n)}:`);let s=t.const("tag",(0,xe._)`${i}${(0,xe.getProperty)(n)}`);Bf({...e,data:s}),t.if(!1);for(let o in r.mapping){t.elseIf((0,xe._)`${s} === ${o}`);let a=r.mapping[o];C4({...e,schema:a},n)}t.endIf(),t.add(Ue.default.json,(0,xe.str)`}`)}function R4(e){let{gen:t}=e;t.add(Ue.default.json,(0,xe.str)`{`),C4(e),t.add(Ue.default.json,(0,xe.str)`}`)}function C4(e,t){let{gen:r,schema:i,data:n}=e,{properties:s,optionalProperties:o}=i,a=h(s),l=h(o),c=d(a.concat(l)),u=!t,f;for(let _ of a)u?u=!1:r.add(Ue.default.json,(0,xe.str)`,`),m(_,s[_],p(_));u&&(f=r.let("first",!0));for(let _ of l){let w=p(_);r.if((0,xe.and)((0,xe._)`${w} !== undefined`,(0,Dwe.isOwnProperty)(r,n,_)),()=>{B1(e,f),m(_,o[_],w)})}i.additionalProperties&&r.forIn("key",n,_=>r.if(y(_,c),()=>A4(e,_,{},f)));function h(_){return _?Object.keys(_):[]}function d(_){if(t&&_.push(t),new Set(_).size!==_.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return _}function p(_){return r.const("value",(0,xe._)`${n}${(0,xe.getProperty)(_)}`)}function m(_,w,v){r.add(Ue.default.json,(0,xe.str)`${JSON.stringify(_)}:`),Hf({...e,schema:w,data:v})}function y(_,w){return w.length?(0,xe.and)(...w.map(v=>(0,xe._)`${_} !== ${v}`)):!0}}function Wwe(e){let{gen:t,schema:r,data:i}=e;switch(r.type){case"boolean":t.add(Ue.default.json,(0,xe._)`${i} ? "true" : "false"`);break;case"string":Bf(e);break;case"timestamp":t.if((0,xe._)`${i} instanceof Date`,()=>t.add(Ue.default.json,(0,xe._)`'"' + ${i}.toISOString() + '"'`),()=>Bf(e));break;default:Gwe(e)}}function Bf({gen:e,data:t}){e.add(Ue.default.json,(0,xe._)`${(0,qwe.useFunc)(e,Mwe.default)}(${t})`)}function Gwe({gen:e,data:t}){e.add(Ue.default.json,(0,xe._)`"" + ${t}`)}function Ywe(e){let{gen:t,self:r,data:i,definitions:n,schema:s,schemaEnv:o}=e,{ref:a}=s,l=n[a];if(!l)throw new Lwe.default(r.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,jwe.hasRef)(l))return Hf({...e,schema:l});let{root:c}=o,u=O4.call(r,new T4.SchemaEnv({schema:l,root:c}),n);t.add(Ue.default.json,(0,xe._)`${Kwe(t,u)}(${i})`)}function Kwe(e,t){return t.serialize?e.scopeValue("serialize",{ref:t.serialize}):(0,xe._)`${e.scopeValue("wrapper",{ref:t})}.serialize`}function Jwe({gen:e,data:t}){e.add(Ue.default.json,(0,xe._)`JSON.stringify(${t})`)}function B1({gen:e},t){t?e.if(t,()=>e.assign(t,!1),()=>e.add(Ue.default.json,(0,xe.str)`,`)):e.add(Ue.default.json,(0,xe.str)`,`)}});var N4=b(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.parseJsonString=Qs.parseJsonNumber=Qs.parseJson=void 0;var Zwe=/position\s(\d+)(?: \(line \d+ column \d+\))?$/;function rs(e,t){let r;rs.message=void 0;let i;t&&(e=e.slice(t));try{return rs.position=t+e.length,JSON.parse(e)}catch(n){if(i=Zwe.exec(n.message),!i){rs.message="unexpected end";return}r=+i[1];let s=e[r];e=e.slice(0,r),rs.position=t+r;try{return JSON.parse(e)}catch{rs.message=`unexpected token ${s}`;return}}}Qs.parseJson=rs;rs.message=void 0;rs.position=0;rs.code='require("ajv/dist/runtime/parseJson").parseJson';function is(e,t,r){let i="",n;if(is.message=void 0,e[t]==="-"&&(i+="-",t++),e[t]==="0")i+="0",t++;else if(!s(r)){o();return}if(r)return is.position=t,+i;if(e[t]==="."&&(i+=".",t++,!s())){o();return}if(n=e[t],(n==="e"||n==="E")&&(i+="e",t++,n=e[t],(n==="+"||n==="-")&&(i+=n,t++),!s())){o();return}return is.position=t,+i;function s(a){let l=!1;for(;n=e[t],n>="0"&&n<="9"&&(a===void 0||a-- >0);)l=!0,i+=n,t++;return l}function o(){is.position=t,is.message=t<e.length?`unexpected token ${e[t]}`:"unexpected end"}}Qs.parseJsonNumber=is;is.message=void 0;is.position=0;is.code='require("ajv/dist/runtime/parseJson").parseJsonNumber';var I4={b:"\b",f:"\f",n:`
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},Xwe=97,Qwe=48;function Xs(e,t){let r="",i;for(Xs.message=void 0;i=e[t++],i!=='"';)if(i==="\\")if(i=e[t],i in I4)r+=I4[i],t++;else if(i==="u"){t++;let s=4,o=0;for(;s--;){if(o<<=4,i=e[t],i===void 0){n("unexpected end");return}if(i=i.toLowerCase(),i>="a"&&i<="f")o+=i.charCodeAt(0)-Xwe+10;else if(i>="0"&&i<="9")o+=i.charCodeAt(0)-Qwe;else{n(`unexpected token ${i}`);return}t++}r+=String.fromCharCode(o)}else{n(`unexpected token ${i}`);return}else if(i===void 0){n("unexpected end");return}else if(i.charCodeAt(0)>=32)r+=i;else{n(`unexpected token ${i}`);return}return Xs.position=t,r;function n(s){Xs.position=t,Xs.message=s}}Qs.parseJsonString=Xs;Xs.message=void 0;Xs.position=0;Xs.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var H4=b(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});var eSe=M1(),D4=ra(),le=ue(),tSe=Jn(),Se=ci(),rSe=Ut(),iSe=l0(),nSe=A1(),G1=N4(),j4=ge(),sSe=O1(),oSe={elements:uSe,values:fSe,discriminator:dSe,properties:$4,optionalProperties:$4,enum:mSe,type:pSe,ref:gSe};function q4(e,t){let r=D4.getCompilingSchema.call(this,e);if(r)return r;let{es5:i,lines:n}=this.opts.code,{ownProperties:s}=this.opts,o=new le.CodeGen(this.scope,{es5:i,lines:n,ownProperties:s}),a=o.scopeName("parse"),l={self:this,gen:o,schema:e.schema,schemaEnv:e,definitions:t,data:Se.default.data,parseName:a,char:o.name("c")},c;try{this._compilations.add(e),e.parseName=a,aSe(l),o.optimize(this.opts.code.optimize);let u=o.toString();c=`${o.scopeRefs(Se.default.scope)}return ${u}`;let h=new Function(`${Se.default.scope}`,c)(this.scope.get());this.scope.value(a,{ref:h}),e.parse=h}catch(u){throw c&&this.logger.error("Error compiling parser, function code:",c),delete e.parse,delete e.parseName,u}finally{this._compilations.delete(e)}return e}X1.default=q4;var W1=(0,le._)`undefined`;function aSe(e){let{gen:t,parseName:r,char:i}=e;t.func(r,(0,le._)`${Se.default.json}, ${Se.default.jsonPos}, ${Se.default.jsonPart}`,!1,()=>{t.let(Se.default.data),t.let(i),t.assign((0,le._)`${r}.message`,W1),t.assign((0,le._)`${r}.position`,W1),t.assign(Se.default.jsonPos,(0,le._)`${Se.default.jsonPos} || 0`),t.const(Se.default.jsonLen,(0,le._)`${Se.default.json}.length`),d0(e),Z1(e),t.if(Se.default.jsonPart,()=>{t.assign((0,le._)`${r}.position`,Se.default.jsonPos),t.return(Se.default.data)}),t.if((0,le._)`${Se.default.jsonPos} === ${Se.default.jsonLen}`,()=>t.return(Se.default.data)),Zl(e)})}function d0(e){let t;for(let r of eSe.jtdForms)if(r in e.schema){t=r;break}t?cSe(e,oSe[t]):K1(e)}var lSe=L4(!0,L4(!1,Zl));function cSe(e,t){let{gen:r,schema:i,data:n}=e;if(!i.nullable)return t(e);Vf(e,"null",t,()=>r.assign(n,null))}function uSe(e){let{gen:t,schema:r,data:i}=e;vn(e,"[");let n=t.let("i",0);t.assign(i,(0,le._)`[]`),Y1(e,"]",()=>{let s=t.let("el");d0({...e,schema:r.elements,data:s}),t.assign((0,le._)`${i}[${n}++]`,s)})}function fSe(e){let{gen:t,schema:r,data:i}=e;vn(e,"{"),t.assign(i,(0,le._)`{}`),Y1(e,"}",()=>hSe(e,r.values))}function Y1(e,t,r){M4(e,t,r),vn(e,t)}function M4(e,t,r){let{gen:i}=e;i.for((0,le._)`;${Se.default.jsonPos}<${Se.default.jsonLen} && ${p0(1)}!==${t};`,()=>{r(),Vf(e,",",()=>i.break(),n)});function n(){Vf(e,t,()=>{},Zl)}}function hSe(e,t){let{gen:r}=e,i=r.let("key");la({...e,data:i}),vn(e,":"),U4(e,i,t)}function dSe(e){let{gen:t,data:r,schema:i}=e,{discriminator:n,mapping:s}=i;vn(e,"{"),t.assign(r,(0,le._)`{}`);let o=t.const("pos",Se.default.jsonPos),a=t.let("value"),l=t.let("tag");M4(e,"}",()=>{let c=t.let("key");la({...e,data:c}),vn(e,":"),t.if((0,le._)`${c} === ${n}`,()=>{la({...e,data:l}),t.assign((0,le._)`${r}[${c}]`,l),t.break()},()=>K1({...e,data:a}))}),t.assign(Se.default.jsonPos,o),t.if((0,le._)`${l} === undefined`),ns(e,(0,le.str)`discriminator tag not found`);for(let c in s)t.elseIf((0,le._)`${l} === ${c}`),z4({...e,schema:s[c]},n);t.else(),ns(e,(0,le.str)`discriminator value not in schema`),t.endIf()}function $4(e){let{gen:t,data:r}=e;vn(e,"{"),t.assign(r,(0,le._)`{}`),z4(e)}function z4(e,t){let{gen:r,schema:i,data:n}=e,{properties:s,optionalProperties:o,additionalProperties:a}=i;if(Y1(e,"}",()=>{let l=r.let("key");if(la({...e,data:l}),vn(e,":"),r.if(!1),F4(e,l,s),F4(e,l,o),t){r.elseIf((0,le._)`${l} === ${t}`);let c=r.let("tag");la({...e,data:c})}r.else(),a?K1({...e,data:(0,le._)`${n}[${l}]`}):ns(e,(0,le.str)`property ${l} not allowed`),r.endIf()}),s){let l=(0,rSe.hasPropFunc)(r),c=(0,le.and)(...Object.keys(s).map(u=>(0,le._)`${l}.call(${n}, ${u})`));r.if((0,le.not)(c),()=>ns(e,(0,le.str)`missing required properties`))}}function F4(e,t,r={}){let{gen:i}=e;for(let n in r)i.elseIf((0,le._)`${t} === ${n}`),U4(e,t,r[n])}function U4(e,t,r){d0({...e,schema:r,data:(0,le._)`${e.data}[${t}]`})}function pSe(e){let{gen:t,schema:r,data:i,self:n}=e;switch(r.type){case"boolean":lSe(e);break;case"string":la(e);break;case"timestamp":{la(e);let s=(0,j4.useFunc)(t,sSe.default),{allowDate:o,parseDate:a}=n.opts,l=o?(0,le._)`!${s}(${i}, true)`:(0,le._)`!${s}(${i})`,c=a?(0,le.or)(l,(0,le._)`(${i} = new Date(${i}), false)`,(0,le._)`isNaN(${i}.valueOf())`):l;t.if(c,()=>ns(e,(0,le.str)`invalid timestamp`));break}case"float32":case"float64":V1(e);break;default:{let s=r.type;if(!n.opts.int32range&&(s==="int32"||s==="uint32"))V1(e,16),s==="uint32"&&t.if((0,le._)`${i} < 0`,()=>ns(e,(0,le.str)`integer out of range`));else{let[o,a,l]=nSe.intRange[s];V1(e,l),t.if((0,le._)`${i} < ${o} || ${i} > ${a}`,()=>ns(e,(0,le.str)`integer out of range`))}}}}function la(e){vn(e,'"'),J1(e,G1.parseJsonString)}function mSe(e){let{gen:t,data:r,schema:i}=e,n=i.enum;vn(e,'"'),t.if(!1);for(let s of n){let o=JSON.stringify(s).slice(1);t.elseIf((0,le._)`${p0(o.length)} === ${o}`),t.assign(r,(0,le.str)`${s}`),t.add(Se.default.jsonPos,o.length)}t.else(),Zl(e),t.endIf()}function V1(e,t){let{gen:r}=e;Z1(e),r.if((0,le._)`"-0123456789".indexOf(${p0(1)}) < 0`,()=>Zl(e),()=>J1(e,G1.parseJsonNumber,t))}function L4(e,t){return r=>{let{gen:i,data:n}=r;Vf(r,`${e}`,()=>t(r),()=>i.assign(n,e))}}function gSe(e){let{gen:t,self:r,definitions:i,schema:n,schemaEnv:s}=e,{ref:o}=n,a=i[o];if(!a)throw new tSe.default(r.opts.uriResolver,"",o,`No definition ${o}`);if(!(0,iSe.hasRef)(a))return d0({...e,schema:a});let{root:l}=s,c=q4.call(r,new D4.SchemaEnv({schema:a,root:l}),i);B4(e,ySe(t,c),!0)}function ySe(e,t){return t.parse?e.scopeValue("parse",{ref:t.parse}):(0,le._)`${e.scopeValue("wrapper",{ref:t})}.parse`}function K1(e){J1(e,G1.parseJson)}function J1(e,t,r){B4(e,(0,j4.useFunc)(e.gen,t),r)}function B4(e,t,r){let{gen:i,data:n}=e;i.assign(n,(0,le._)`${t}(${Se.default.json}, ${Se.default.jsonPos}${r?(0,le._)`, ${r}`:le.nil})`),i.assign(Se.default.jsonPos,(0,le._)`${t}.position`),i.if((0,le._)`${n} === undefined`,()=>ns(e,(0,le._)`${t}.message`))}function vn(e,t){Vf(e,t,Zl)}function Vf(e,t,r,i){let{gen:n}=e,s=t.length;Z1(e),n.if((0,le._)`${p0(s)} === ${t}`,()=>{n.add(Se.default.jsonPos,s),i?.(e)},()=>r(e))}function Z1({gen:e,char:t}){e.code((0,le._)`while((${t}=${Se.default.json}[${Se.default.jsonPos}],${t}===" "||${t}==="\\n"||${t}==="\\r"||${t}==="\\t"))${Se.default.jsonPos}++;`)}function p0(e){return e===1?(0,le._)`${Se.default.json}[${Se.default.jsonPos}]`:(0,le._)`${Se.default.json}.slice(${Se.default.jsonPos}, ${Se.default.jsonPos}+${e})`}function Zl(e){ns(e,(0,le._)`"unexpected token " + ${Se.default.json}[${Se.default.jsonPos}]`)}function ns({gen:e,parseName:t},r){e.assign((0,le._)`${t}.message`,r),e.assign((0,le._)`${t}.position`,Se.default.jsonPos),e.return(W1)}});var tE=b((Ke,eE)=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.MissingRefError=Ke.ValidationError=Ke.CodeGen=Ke.Name=Ke.nil=Ke.stringify=Ke.str=Ke._=Ke.KeywordCxt=Ke.Ajv=void 0;var vSe=ax(),_Se=_4(),bSe=x4(),wSe=P4(),SSe=H4(),Q1="JTD-meta-schema",Xl=class extends vSe.default{constructor(t={}){super({...t,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(_Se.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(bSe.default,Q1,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Q1)?Q1:void 0)}compileSerializer(t){let r=this._addSchema(t);return r.serialize||this._compileSerializer(r)}compileParser(t){let r=this._addSchema(t);return r.parse||this._compileParser(r)}_compileSerializer(t){if(wSe.default.call(this,t,t.schema.definitions||{}),!t.serialize)throw new Error("ajv implementation error");return t.serialize}_compileParser(t){if(SSe.default.call(this,t,t.schema.definitions||{}),!t.parse)throw new Error("ajv implementation error");return t.parse}};Ke.Ajv=Xl;eE.exports=Ke=Xl;eE.exports.Ajv=Xl;Object.defineProperty(Ke,"__esModule",{value:!0});Ke.default=Xl;var xSe=Fl();Object.defineProperty(Ke,"KeywordCxt",{enumerable:!0,get:function(){return xSe.KeywordCxt}});var Ql=ue();Object.defineProperty(Ke,"_",{enumerable:!0,get:function(){return Ql._}});Object.defineProperty(Ke,"str",{enumerable:!0,get:function(){return Ql.str}});Object.defineProperty(Ke,"stringify",{enumerable:!0,get:function(){return Ql.stringify}});Object.defineProperty(Ke,"nil",{enumerable:!0,get:function(){return Ql.nil}});Object.defineProperty(Ke,"Name",{enumerable:!0,get:function(){return Ql.Name}});Object.defineProperty(Ke,"CodeGen",{enumerable:!0,get:function(){return Ql.CodeGen}});var ESe=_f();Object.defineProperty(Ke,"ValidationError",{enumerable:!0,get:function(){return ESe.default}});var kSe=Jn();Object.defineProperty(Ke,"MissingRefError",{enumerable:!0,get:function(){return kSe.default}})});var rE=b((mze,V4)=>{"use strict";var RSe=r1();V4.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:RSe,addUsedSchema:!1,allErrors:!1})});var Z4=b(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.formatNames=_n.fastFormats=_n.fullFormats=void 0;function ec(e,t){return{validate:e,compare:t}}_n.fullFormats={date:ec(Y4,sE),time:ec(K4,oE),"date-time":ec(CSe,J4),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:NSe,"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:MSe,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:$Se,int32:{type:"number",validate:DSe},int64:{type:"number",validate:jSe},float:{type:"number",validate:G4},double:{type:"number",validate:G4},password:!0,binary:!0};_n.fastFormats={..._n.fullFormats,date:ec(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,sE),time:ec(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,oE),"date-time":ec(/^\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,J4),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};_n.formatNames=Object.keys(_n.fullFormats);function TSe(e){return e%4===0&&(e%100!==0||e%400===0)}var OSe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ASe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Y4(e){let t=OSe.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&TSe(r)?29:ASe[i])}function sE(e,t){if(e&&t)return e>t?1:e<t?-1:0}var iE=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function K4(e,t){let r=iE.exec(e);if(!r)return!1;let i=+r[1],n=+r[2],s=+r[3],o=r[5];return(i<=23&&n<=59&&s<=59||i===23&&n===59&&s===60)&&(!t||o!=="")}function oE(e,t){if(!(e&&t))return;let r=iE.exec(e),i=iE.exec(t);if(r&&i)return e=r[1]+r[2]+r[3]+(r[4]||""),t=i[1]+i[2]+i[3]+(i[4]||""),e>t?1:e<t?-1:0}var nE=/t|\s/i;function CSe(e){let t=e.split(nE);return t.length===2&&Y4(t[0])&&K4(t[1],!0)}function J4(e,t){if(!(e&&t))return;let[r,i]=e.split(nE),[n,s]=t.split(nE),o=sE(r,n);if(o!==void 0)return o||oE(i,s)}var PSe=/\/|:/,ISe=/^(?:[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 NSe(e){return PSe.test(e)&&ISe.test(e)}var W4=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function $Se(e){return W4.lastIndex=0,W4.test(e)}var FSe=-(2**31),LSe=2**31-1;function DSe(e){return Number.isInteger(e)&&e<=LSe&&e>=FSe}function jSe(e){return Number.isInteger(e)}function G4(){return!0}var qSe=/[^\\]\\Z/;function MSe(e){if(qSe.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var X4=b(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.formatLimitDefinition=void 0;var zSe=$f(),ji=ue(),eo=ji.operators,m0={formatMaximum:{okStr:"<=",ok:eo.LTE,fail:eo.GT},formatMinimum:{okStr:">=",ok:eo.GTE,fail:eo.LT},formatExclusiveMaximum:{okStr:"<",ok:eo.LT,fail:eo.GTE},formatExclusiveMinimum:{okStr:">",ok:eo.GT,fail:eo.LTE}},USe={message:({keyword:e,schemaCode:t})=>ji.str`should be ${m0[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>ji._`{comparison: ${m0[e].okStr}, limit: ${t}}`};tc.formatLimitDefinition={keyword:Object.keys(m0),type:"string",schemaType:"string",$data:!0,error:USe,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:s}=e,{opts:o,self:a}=s;if(!o.validateFormats)return;let l=new zSe.KeywordCxt(s,a.RULES.all.format.definition,"format");l.$data?c():u();function c(){let h=t.scopeValue("formats",{ref:a.formats,code:o.code.formats}),d=t.const("fmt",ji._`${h}[${l.schemaCode}]`);e.fail$data(ji.or(ji._`typeof ${d} != "object"`,ji._`${d} instanceof RegExp`,ji._`typeof ${d}.compare != "function"`,f(d)))}function u(){let h=l.schema,d=a.formats[h];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${n}": format "${h}" does not define "compare" function`);let p=t.scopeValue("formats",{key:h,ref:d,code:o.code.formats?ji._`${o.code.formats}${ji.getProperty(h)}`:void 0});e.fail$data(f(p))}function f(h){return ji._`${h}.compare(${r}, ${i}) ${m0[n].fail} 0`}},dependencies:["format"]};var BSe=e=>(e.addKeyword(tc.formatLimitDefinition),e);tc.default=BSe});var r5=b((Wf,t5)=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var rc=Z4(),HSe=X4(),aE=ue(),Q4=new aE.Name("fullFormats"),VSe=new aE.Name("fastFormats"),lE=(e,t={keywords:!0})=>{if(Array.isArray(t))return e5(e,t,rc.fullFormats,Q4),e;let[r,i]=t.mode==="fast"?[rc.fastFormats,VSe]:[rc.fullFormats,Q4],n=t.formats||rc.formatNames;return e5(e,n,r,i),t.keywords&&HSe.default(e),e};lE.get=(e,t="full")=>{let i=(t==="fast"?rc.fastFormats:rc.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function e5(e,t,r,i){var n,s;(n=(s=e.opts.code).formats)!==null&&n!==void 0||(s.formats=aE._`require("ajv-formats/dist/formats").${i}`);for(let o of t)e.addFormat(o,r[o])}t5.exports=Wf=lE;Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=lE});var s5=b((vze,n5)=>{"use strict";var WSe=$f().default,GSe=tE(),i5=rE(),cE=class{constructor(t,r){r.mode==="JTD"?this.ajv=new GSe(Object.assign({},i5,r.customOptions)):this.ajv=new WSe(Object.assign({},i5,r.customOptions));let i=!0;if(r.plugins&&r.plugins.length>0)for(let s of r.plugins)Array.isArray(s)?(i=i&&s[0].name!=="formatsPlugin",s[0](this.ajv,s[1])):(i=i&&s.name!=="formatsPlugin",s(this.ajv));i&&r5()(this.ajv),r.onCreate?.(this.ajv);let n=Object.values(t);for(let s of n)this.ajv.addSchema(s)}buildValidatorFunction({schema:t}){if(t.$id){let r=this.ajv.getSchema(t.$id);if(r)return r}return this.ajv.compile(t)}};n5.exports=cE});var a5=b((_ze,o5)=>{"use strict";var YSe=tE(),KSe=rE(),uE=class{constructor(t,r){this.ajv=new YSe(Object.assign({},KSe,r))}buildSerializerFunction({schema:t}){return this.ajv.compileSerializer(t)}};o5.exports=uE});var u5=b((Yf,c5)=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var Gf=Sg(),qi=Tl();function l5(e,t){if(!e.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:r}=e.scope.opts;return typeof t=="function"?n(t.source):t!==void 0?s(t,i):s(e.schemas,a=>a.meta?void 0:e.compile(a.schema));function i(a){let l=e.getSchema(a);if(!l)throw new Error(`moduleCode: no schema with id ${a}`);return l}function n(a){let l={},c=a?.validateName,u=o(l,a);return e.opts.code.esm?`"use strict";${r}export const validate = ${c};${r}export default ${c};${r}${u}`:`"use strict";${r}module.exports = ${c};${r}module.exports.default = ${c};${r}${u}`}function s(a,l){var c;let u={},f=(0,qi._)`"use strict";`;for(let h in a){let d=l(a[h]);if(d){let p=o(u,d.source),m=e.opts.code.esm?(0,qi._)`export const ${(0,qi.getEsmExportName)(h)}`:(0,qi._)`exports${(0,qi.getProperty)(h)}`;f=(0,qi._)`${f}${r}${m} = ${(c=d.source)===null||c===void 0?void 0:c.validateName};${r}${p}`}}return`${f}`}function o(a,l){if(!l)throw new Error('moduleCode: function does not have "source" property');if(h(l.validateName)===Gf.UsedValueState.Completed)return qi.nil;d(l.validateName,Gf.UsedValueState.Started);let c=e.scope.scopeCode(l.scopeValues,a,f),u=new qi._Code(`${c}${r}${l.validateCode}`);return l.evaluated?(0,qi._)`${u}${l.validateName}.evaluated = ${l.evaluated};${r}`:u;function f(p){var m;let y=(m=p.value)===null||m===void 0?void 0:m.ref;if(p.prefix==="validate"&&typeof y=="function")return o(a,y.source);if((p.prefix==="root"||p.prefix==="wrapper")&&typeof y=="object"){let{validate:_,validateName:w}=y;if(!w)throw new Error("ajv internal error");let v=e.opts.code.es5?Gf.varKinds.var:Gf.varKinds.const,g=(0,qi._)`${v} ${p} = {validate: ${w}};`;if(h(w)===Gf.UsedValueState.Started)return g;let T=o(a,_?.source);return(0,qi._)`${g}${r}${T}`}}function h(p){var m;return(m=a[p.prefix])===null||m===void 0?void 0:m.get(p)}function d(p,m){let{prefix:y}=p;(a[y]=a[y]||new Map).set(p,m)}}}c5.exports=Yf=l5;Object.defineProperty(Yf,"__esModule",{value:!0});Yf.default=l5});var d5=b((bze,h5)=>{"use strict";var f5=fE(),JSe=u5().default;function ZSe(e={readMode:!0}){if(e.readMode===!0&&!e.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(e.readMode!==!0&&!e.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(e.readMode===!0)return function(){return function(i){return e.restoreFunction(i)}};let t=f5();return function(i,n={}){(!n.customOptions||!n.customOptions.code)&&(n.customOptions=Object.assign({},n.customOptions,{code:{source:!0}}));let s=t(i,n);return function(o){let a=s(o),l=JSe(s[f5.AjvReference].ajv,a);return e.storeFunction(o,l),a}}}h5.exports=ZSe});var fE=b((wze,ic)=>{"use strict";var m5=Symbol.for("fastify.ajv-compiler.reference"),XSe=s5(),QSe=a5();function hE(e){let t=new Map,r=new Map;return e&&e.jtdSerializer===!0?function(n,s){let o=p5({},s);if(r.has(o))return r.get(o);let a=new QSe(n,s),l=a.buildSerializerFunction.bind(a);return r.set(o,l),l}:function(n,s){let o=p5(n,s.customOptions);if(t.has(o))return t.get(o);let a=new XSe(n,s),l=a.buildValidatorFunction.bind(a);return t.set(o,l),s.customOptions.code!==void 0&&(l[m5]=a),l}}function p5(e,t){let r=JSON.stringify(e),i=JSON.stringify(t);return`${r}${i}`}ic.exports=hE;ic.exports.default=hE;ic.exports.AjvCompiler=hE;ic.exports.AjvReference=m5;ic.exports.StandaloneValidator=d5()});var dE=b((Sze,g5)=>{"use strict";var{buildSchemas:exe}=Bu(),txe=E1(),rxe=fE();function ixe(e,t){if(e)return new nc(e,t);let r=Object.assign({buildValidator:null,buildSerializer:null},t?.compilersFactory);r.buildValidator||(r.buildValidator=rxe()),r.buildSerializer||(r.buildSerializer=txe());let i={bucket:t&&t.bucket||exe,compilersFactory:r,isCustomValidatorCompiler:typeof t?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof t?.compilersFactory?.buildValidator=="function"};return new nc(void 0,i)}var nc=class{constructor(t,r){this.opts=r||t?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,t?(this.schemaBucket=this.opts.bucket(t.getSchemas()),this.validatorCompiler=t.getValidatorCompiler(),this.serializerCompiler=t.getSerializerCompiler(),this.isCustomValidatorCompiler=t.isCustomValidatorCompiler,this.isCustomSerializerCompiler=t.isCustomSerializerCompiler,this.parent=t):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(t){return this.addedSchemas=!0,this.schemaBucket.add(t)}getSchema(t){return this.schemaBucket.getSchema(t)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(t){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>t}),this.validatorCompiler=t,this.isCustomValidatorCompiler=!0}setSerializerCompiler(t){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>t}),this.serializerCompiler=t,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(t){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),t.ajv))}setupSerializer(t){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),t.serializerOpts))}};nc.buildSchemaController=ixe;g5.exports=nc});var _E=b((xze,vE)=>{"use strict";var pE=Yw(),gE=require("node:assert"),yE=Symbol.for("registered-plugin"),{kTestInternals:nxe}=Pt(),{exist:sxe,existReply:oxe,existRequest:axe}=nS(),{FST_ERR_PLUGIN_VERSION_MISMATCH:lxe,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:cxe}=rr(),{FSTWRN002:uxe}=sn();function Kf(e){return e[Symbol.for("plugin-meta")]}function y5(e){let t=v5(e);if(t)return t;let r=require.cache;if(r){let i=Object.keys(r);for(let n=0;n<i.length;n++){let s=i[n];if(r[s].exports===e)return s}}return e.name?e.name:null}function fxe(e){return e.toString().split(`
`).slice(0,2).map(t=>t.trim()).join(" -- ")}function v5(e){return e[Symbol.for("fastify.display-name")]}function _5(e){return!!e[Symbol.for("skip-override")]}function b5(e){let t=Kf(e);if(!t)return;let r=t.dependencies;r&&(gE(Array.isArray(r),"The dependencies should be an array of strings"),r.forEach(i=>{gE(this[yE].indexOf(i)>-1,`The dependency '${i}' of plugin '${t.name}' is not registered`)}))}function w5(e){let t=Kf(e);if(!t)return;let{decorators:r,name:i}=t;r&&(r.fastify&&mE(this,"Fastify",r.fastify,i),r.reply&&mE(this,"Reply",r.reply,i),r.request&&mE(this,"Request",r.request,i))}var hxe={Fastify:sxe,Request:axe,Reply:oxe};function mE(e,t,r,i){gE(Array.isArray(r),"The decorators should be an array of strings"),r.forEach(n=>{let s=typeof i=="string"?` required by '${i}'`:"";if(!hxe[t].call(e,n))throw new cxe(n,s,t)})}function dxe(e){let t=Kf(e);if(!t)return;let r=t.fastify,i=/-rc.+$/.test(this.version);if(!(i===!0&&pE.gt(this.version,pE.coerce(r))===!0)&&r&&pE.satisfies(this.version,r,{includePrerelease:i})===!1)throw new lxe(t.name,r,this.version)}function pxe(e){let t=Kf(e);if(!t)return;let r=t.name;if(r)return this[yE].push(r),r}function mxe(e,t){e.constructor.name==="AsyncFunction"&&e.length===3&&uxe(t||"anonymous")}function gxe(e){let t=pxe.call(this,e)||y5(e);return mxe.call(this,e,t),dxe.call(this,e),w5.call(this,e),b5.call(this,e),_5(e)}vE.exports={getPluginName:y5,getFuncPreview:fxe,kRegisteredPlugins:yE,getDisplayName:v5,registerPlugin:gxe};vE.exports[nxe]={shouldSkipOverride:_5,getMeta:Kf,checkDecorators:w5,checkDependencies:b5}});var g0=b((Eze,S5)=>{"use strict";function yxe(e,t){let r=t||_xe();return e?bxe(e,r):r}function vxe(e,t){return e.genReqId(t)}function _xe(){let t=0;return function(){return t=t+1&2147483647,`req-${t.toString(36)}`}}function bxe(e,t){return function(r){return r.headers[e]||t(r)}}S5.exports={getGenReqId:vxe,reqIdGenFactory:yxe}});var wE=b((kze,k5)=>{"use strict";var x5=12,wxe=0,bE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function Sxe(e){var t=e.indexOf("%");if(t===-1)return e;for(var r=e.length,i="",n=0,s=0,o=t,a=x5;t>-1&&t<r;){var l=E5(e[t+1],4),c=E5(e[t+2],0),u=l|c,f=bE[u];if(a=bE[256+a+f],s=s<<6|u&bE[364+f],a===x5)i+=e.slice(n,o),i+=s<=65535?String.fromCharCode(s):String.fromCharCode(55232+(s>>10),56320+(s&1023)),s=0,n=t+3,t=o=e.indexOf("%",n);else{if(a===wxe)return null;if(t+=3,t<r&&e.charCodeAt(t)===37)continue;return null}}return i+e.slice(n)}var xxe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function E5(e,t){var r=xxe[e];return r===void 0?255:r<<t}k5.exports=Sxe});var C5=b((Rze,A5)=>{"use strict";var R5=wE(),T5=/\+/g,O5=function(){};O5.prototype=Object.create(null);function Exe(e){let t=new O5;if(typeof e!="string")return t;let r=e.length,i="",n="",s=-1,o=-1,a=!1,l=!1,c=!1,u=!1,f=!1,h=0;for(let d=0;d<r+1;d++)if(h=d!==r?e.charCodeAt(d):38,h===38){if(f=o>s,f||(o=d),i=e.slice(s+1,o),f||i.length>0){c&&(i=i.replace(T5," ")),a&&(i=R5(i)||i),f&&(n=e.slice(o+1,d),u&&(n=n.replace(T5," ")),l&&(n=R5(n)||n));let p=t[i];p===void 0?t[i]=n:p.pop?p.push(n):t[i]=[p,n]}n="",s=d,o=d,a=!1,l=!1,c=!1,u=!1}else h===61?o<=s?o=d:l=!0:h===43?o>s?u=!0:c=!0:h===37&&(o>s?l=!0:a=!0);return t}A5.exports=Exe});var I5=b((Tze,P5)=>{var bn=Array.from({length:256},(e,t)=>"%"+((t<16?"0":"")+t.toString(16)).toUpperCase()),kxe=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function Rxe(e){let t=e.length;if(t===0)return"";let r="",i=0,n=0;e:for(;n<t;n++){let s=e.charCodeAt(n);for(;s<128;){if(kxe[s]!==1&&(i<n&&(r+=e.slice(i,n)),i=n+1,r+=bn[s]),++n===t)break e;s=e.charCodeAt(n)}if(i<n&&(r+=e.slice(i,n)),s<2048){i=n+1,r+=bn[192|s>>6]+bn[128|s&63];continue}if(s<55296||s>=57344){i=n+1,r+=bn[224|s>>12]+bn[128|s>>6&63]+bn[128|s&63];continue}if(++n,n>=t)throw new Error("URI malformed");let o=e.charCodeAt(n)&1023;i=n+1,s=65536+((s&1023)<<10|o),r+=bn[240|s>>18]+bn[128|s>>12&63]+bn[128|s>>6&63]+bn[128|s&63]}return i===0?e:i<t?r+e.slice(i):r}P5.exports={encodeString:Rxe}});var F5=b((Oze,$5)=>{"use strict";var{encodeString:SE}=I5();function N5(e){let t=typeof e;return t==="string"?SE(e):t==="bigint"?e.toString():t==="boolean"?e?"true":"false":t==="number"&&Number.isFinite(e)?e<1e21?""+e:SE(""+e):""}function Txe(e){let t="";if(e===null||typeof e!="object")return t;let r="&",i=Object.keys(e),n=i.length,s=0;for(let o=0;o<n;o++){let a=i[o],l=e[a],c=SE(a)+"=";if(o&&(t+=r),Array.isArray(l)){s=l.length;for(let u=0;u<s;u++)u&&(t+=r),t+=c,t+=N5(l[u])}else t+=c,t+=N5(l)}return t}$5.exports=Txe});var q5=b((Aze,Jf)=>{"use strict";var L5=C5(),D5=F5(),j5={parse:L5,stringify:D5};Jf.exports=j5;Jf.exports.default=j5;Jf.exports.parse=L5;Jf.exports.stringify=D5});var z5=b(M5=>{"use strict";Object.defineProperty(M5,"__esModule",{value:!0})});var U5=b(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.types=void 0;var Oxe;(function(e){e[e.ROOT=0]="ROOT",e[e.GROUP=1]="GROUP",e[e.POSITION=2]="POSITION",e[e.SET=3]="SET",e[e.RANGE=4]="RANGE",e[e.REPETITION=5]="REPETITION",e[e.REFERENCE=6]="REFERENCE",e[e.CHAR=7]="CHAR"})(Oxe=Zf.types||(Zf.types={}))});var H5=b(B5=>{"use strict";Object.defineProperty(B5,"__esModule",{value:!0})});var os=b(ss=>{"use strict";var Axe=ss&&ss.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),xE=ss&&ss.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Axe(t,e,r)};Object.defineProperty(ss,"__esModule",{value:!0});xE(z5(),ss);xE(U5(),ss);xE(H5(),ss)});var y0=b(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.anyChar=lr.notWhitespace=lr.whitespace=lr.notInts=lr.ints=lr.notWords=lr.words=void 0;var Ne=os(),V5=()=>[{type:Ne.types.RANGE,from:48,to:57}],W5=()=>[{type:Ne.types.CHAR,value:95},{type:Ne.types.RANGE,from:97,to:122},{type:Ne.types.RANGE,from:65,to:90},{type:Ne.types.RANGE,from:48,to:57}],G5=()=>[{type:Ne.types.CHAR,value:9},{type:Ne.types.CHAR,value:10},{type:Ne.types.CHAR,value:11},{type:Ne.types.CHAR,value:12},{type:Ne.types.CHAR,value:13},{type:Ne.types.CHAR,value:32},{type:Ne.types.CHAR,value:160},{type:Ne.types.CHAR,value:5760},{type:Ne.types.RANGE,from:8192,to:8202},{type:Ne.types.CHAR,value:8232},{type:Ne.types.CHAR,value:8233},{type:Ne.types.CHAR,value:8239},{type:Ne.types.CHAR,value:8287},{type:Ne.types.CHAR,value:12288},{type:Ne.types.CHAR,value:65279}],Cxe=()=>[{type:Ne.types.CHAR,value:10},{type:Ne.types.CHAR,value:13},{type:Ne.types.CHAR,value:8232},{type:Ne.types.CHAR,value:8233}];lr.words=()=>({type:Ne.types.SET,set:W5(),not:!1});lr.notWords=()=>({type:Ne.types.SET,set:W5(),not:!0});lr.ints=()=>({type:Ne.types.SET,set:V5(),not:!1});lr.notInts=()=>({type:Ne.types.SET,set:V5(),not:!0});lr.whitespace=()=>({type:Ne.types.SET,set:G5(),not:!1});lr.notWhitespace=()=>({type:Ne.types.SET,set:G5(),not:!0});lr.anyChar=()=>({type:Ne.types.SET,set:Cxe(),not:!0})});var K5=b(di=>{"use strict";var Pxe=di&&di.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Ixe=di&&di.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Nxe=di&&di.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Pxe(t,e,r);return Ixe(t,e),t};Object.defineProperty(di,"__esModule",{value:!0});di.tokenizeClass=di.strToChars=void 0;var Y5=os(),sc=Nxe(y0()),$xe="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";di.strToChars=e=>{let t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return e.replace(t,(r,i,n,s,o,a,l)=>{if(n)return r;let c=i?8:s?parseInt(s,16):o?parseInt(o,16):a?$xe.indexOf(a):{0:0,t:9,n:10,v:11,f:12,r:13}[l],u=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(u)?`\\${u}`:u})};di.tokenizeClass=(e,t)=>{var r,i,n,s,o,a,l;let c=[],u,f,h=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(((?:\\)])|(((?:\\)?([^\]])))))|(\])|(?:\\)?([^])/g;for(;(u=h.exec(e))!==null;){let d=(l=(a=(o=(s=(n=(i=(r=u[1]&&sc.words())!==null&&r!==void 0?r:u[2]&&sc.ints())!==null&&i!==void 0?i:u[3]&&sc.whitespace())!==null&&n!==void 0?n:u[4]&&sc.notWords())!==null&&s!==void 0?s:u[5]&&sc.notInts())!==null&&o!==void 0?o:u[6]&&sc.notWhitespace())!==null&&a!==void 0?a:u[7]&&{type:Y5.types.RANGE,from:(u[8]||u[9]).charCodeAt(0),to:(f=u[10]).charCodeAt(f.length-1)})!==null&&l!==void 0?l:(f=u[16])&&{type:Y5.types.CHAR,value:f.charCodeAt(0)};if(d)c.push(d);else return[c,h.lastIndex]}throw new SyntaxError(`Invalid regular expression: /${t}/: Unterminated character class`)}});var EE=b(wn=>{"use strict";var Fxe=wn&&wn.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Lxe=wn&&wn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Z5=wn&&wn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Fxe(t,e,r);return Lxe(t,e),t};Object.defineProperty(wn,"__esModule",{value:!0});wn.tokenizer=void 0;var J5=Z5(K5()),Vt=os(),ca=Z5(y0());wn.tokenizer=e=>{let t=0,r,i={type:Vt.types.ROOT,stack:[]},n=i,s=i.stack,o=[],a=[],l=0,c=f=>{throw new SyntaxError(`Invalid regular expression: /${e}/: Nothing to repeat at column ${f-1}`)},u=J5.strToChars(e);for(;t<u.length;)switch(r=u[t++]){case"\\":if(t===u.length)throw new SyntaxError(`Invalid regular expression: /${e}/: \\ at end of pattern`);switch(r=u[t++]){case"b":s.push({type:Vt.types.POSITION,value:"b"});break;case"B":s.push({type:Vt.types.POSITION,value:"B"});break;case"w":s.push(ca.words());break;case"W":s.push(ca.notWords());break;case"d":s.push(ca.ints());break;case"D":s.push(ca.notInts());break;case"s":s.push(ca.whitespace());break;case"S":s.push(ca.notWhitespace());break;default:if(/\d/.test(r)){let f=r;for(;t<u.length&&/\d/.test(u[t]);)f+=u[t++];let h=parseInt(f,10),d={type:Vt.types.REFERENCE,value:h};s.push(d),a.push({reference:d,stack:s,index:s.length-1})}else s.push({type:Vt.types.CHAR,value:r.charCodeAt(0)})}break;case"^":s.push({type:Vt.types.POSITION,value:"^"});break;case"$":s.push({type:Vt.types.POSITION,value:"$"});break;case"[":{let f;u[t]==="^"?(f=!0,t++):f=!1;let h=J5.tokenizeClass(u.slice(t),e);t+=h[1],s.push({type:Vt.types.SET,set:h[0],not:f});break}case".":s.push(ca.anyChar());break;case"(":{let f={type:Vt.types.GROUP,stack:[],remember:!0};if(u[t]==="?"){if(r=u[t+1],t+=2,r==="=")f.followedBy=!0;else if(r==="!")f.notFollowedBy=!0;else if(r!==":")throw new SyntaxError(`Invalid regular expression: /${e}/: Invalid group, character '${r}' after '?' at column ${t-1}`);f.remember=!1}else l+=1;s.push(f),o.push(n),n=f,s=f.stack;break}case")":if(o.length===0)throw new SyntaxError(`Invalid regular expression: /${e}/: Unmatched ) at column ${t-1}`);n=o.pop(),s=n.options?n.options[n.options.length-1]:n.stack;break;case"|":{n.options||(n.options=[n.stack],delete n.stack);let f=[];n.options.push(f),s=f;break}case"{":{let f=/^(\d+)(,(\d+)?)?\}/.exec(u.slice(t)),h,d;f!==null?(s.length===0&&c(t),h=parseInt(f[1],10),d=f[2]?f[3]?parseInt(f[3],10):1/0:h,t+=f[0].length,s.push({type:Vt.types.REPETITION,min:h,max:d,value:s.pop()})):s.push({type:Vt.types.CHAR,value:123});break}case"?":s.length===0&&c(t),s.push({type:Vt.types.REPETITION,min:0,max:1,value:s.pop()});break;case"+":s.length===0&&c(t),s.push({type:Vt.types.REPETITION,min:1,max:1/0,value:s.pop()});break;case"*":s.length===0&&c(t),s.push({type:Vt.types.REPETITION,min:0,max:1/0,value:s.pop()});break;default:s.push({type:Vt.types.CHAR,value:r.charCodeAt(0)})}if(o.length!==0)throw new SyntaxError(`Invalid regular expression: /${e}/: Unterminated group`);return Dxe(a,l),i};function Dxe(e,t){for(let r of e.reverse())if(t<r.reference.value){r.reference.type=Vt.types.CHAR;let i=r.reference.value.toString();if(r.reference.value=parseInt(i,8),!/^[0-7]+$/.test(i)){let n=0;for(;i[n]!=="8"&&i[n]!=="9";)n+=1;if(n===0?(r.reference.value=i.charCodeAt(0),n+=1):r.reference.value=parseInt(i.slice(0,n),8),i.length>n){let s=r.stack.splice(r.index+1);for(let o of i.slice(n))r.stack.push({type:Vt.types.CHAR,value:o.charCodeAt(0)});r.stack.push(...s)}}}}});var Q5=b(cr=>{"use strict";var jxe=cr&&cr.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),qxe=cr&&cr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Mxe=cr&&cr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&jxe(t,e,r);return qxe(t,e),t};Object.defineProperty(cr,"__esModule",{value:!0});cr.NOTANYCHAR=cr.WHITESPACE=cr.WORDS=cr.INTS=void 0;var v0=Mxe(y0()),X5=os();function _0(e){let t={},r=0;for(let i of e)i.type===X5.types.CHAR&&(t[i.value]=!0),i.type===X5.types.RANGE&&(t[`${i.from}-${i.to}`]=!0),r+=1;return{lookup:()=>Object.assign({},t),len:r}}cr.INTS=_0(v0.ints().set);cr.WORDS=_0(v0.words().set);cr.WHITESPACE=_0(v0.whitespace().set);cr.NOTANYCHAR=_0(v0.anyChar().set)});var tU=b(pi=>{"use strict";var zxe=pi&&pi.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Uxe=pi&&pi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Bxe=pi&&pi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&zxe(t,e,r);return Uxe(t,e),t};Object.defineProperty(pi,"__esModule",{value:!0});pi.writeSetTokens=pi.setChar=void 0;var x0=os(),b0=Bxe(Q5());function S0(e){return e===94?"\\^":e===92?"\\\\":e===93?"\\]":e===45?"\\-":String.fromCharCode(e)}pi.setChar=S0;function w0(e,{lookup:t,len:r}){if(r!==e.length)return!1;let i=t();for(let n of e){if(n.type===x0.types.SET)return!1;let s=n.type===x0.types.CHAR?n.value:`${n.from}-${n.to}`;if(i[s])i[s]=!1;else return!1}return!0}function eU(e,t=!1){if(w0(e.set,b0.INTS))return e.not?"\\D":"\\d";if(w0(e.set,b0.WORDS))return e.not?"\\W":"\\w";if(e.not&&w0(e.set,b0.NOTANYCHAR))return".";if(w0(e.set,b0.WHITESPACE))return e.not?"\\S":"\\s";let r="";for(let n=0;n<e.set.length;n++){let s=e.set[n];r+=Hxe(s)}let i=`${e.not?"^":""}${r}`;return t?i:`[${i}]`}pi.writeSetTokens=eU;function Hxe(e){return e.type===x0.types.CHAR?S0(e.value):e.type===x0.types.RANGE?`${S0(e.from)}-${S0(e.to)}`:eU(e,!0)}});var RE=b(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.reconstruct=void 0;var to=os(),kE=tU(),rU=e=>e.map(oc.reconstruct).join(""),iU=e=>{if("options"in e)return e.options.map(rU).join("|");if("stack"in e)return rU(e.stack);throw new Error("options or stack must be Root or Group token")};oc.reconstruct=e=>{switch(e.type){case to.types.ROOT:return iU(e);case to.types.CHAR:{let t=String.fromCharCode(e.value);return(/[[\\{}$^.|?*+()]/.test(t)?"\\":"")+t}case to.types.POSITION:return e.value==="^"||e.value==="$"?e.value:`\\${e.value}`;case to.types.REFERENCE:return`\\${e.value}`;case to.types.SET:return kE.writeSetTokens(e);case to.types.GROUP:return`(${e.remember?"":e.followedBy?"?=":e.notFollowedBy?"?!":"?:"}${iU(e)})`;case to.types.REPETITION:{let{min:t,max:r}=e,i;return t===0&&r===1?i="?":t===1&&r===1/0?i="+":t===0&&r===1/0?i="*":r===1/0?i=`{${t},}`:t===r?i=`{${t}}`:i=`{${t},${r}}`,`${oc.reconstruct(e.value)}${i}`}case to.types.RANGE:return`${kE.setChar(e.from)}-${kE.setChar(e.to)}`;default:throw new Error(`Invalid token type ${e}`)}}});var oU=b((mi,E0)=>{"use strict";var Vxe=mi&&mi.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),TE=mi&&mi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Vxe(t,e,r)};Object.defineProperty(mi,"__esModule",{value:!0});mi.types=void 0;var nU=os();Object.defineProperty(mi,"types",{enumerable:!0,get:function(){return nU.types}});TE(EE(),mi);TE(RE(),mi);var sU=EE(),Wxe=RE();TE(os(),mi);mi.default=sU.tokenizer;E0.exports=sU.tokenizer;E0.exports.types=nU.types;E0.exports.reconstruct=Wxe.reconstruct});var lU=b((Mze,k0)=>{"use strict";var aU=oU(),Gxe=aU.types;function OE(e,t){t||(t={});let r=t.limit===void 0?25:t.limit;Yxe(e)?e=e.source:typeof e!="string"&&(e=String(e));try{e=aU(e)}catch{return!1}let i=0;return function n(s,o){let a,l,c;if(s.type===Gxe.REPETITION&&(o++,i++,o>1||i>r))return!1;if(s.options){for(a=0,c=s.options.length;a<c;a++)if(l=n({stack:s.options[a]},o),!l)return!1}let u=s.stack||s.value&&s.value.stack;if(!u)return!0;for(a=0;a<u.length;a++)if(l=n(u[a],o),!l)return!1;return!0}(e,0)}function Yxe(e){return{}.toString.call(e)==="[object RegExp]"}k0.exports=OE;k0.exports.default=OE;k0.exports.safeRegex=OE});var R0=b((zze,cU)=>{"use strict";cU.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let e={};return{get:t=>e[t]||null,set:(t,r)=>{e[t]=r}}},deriveConstraint:e=>e.method,mustMatchWhenDerived:!0}});var gU=b((Uze,mU)=>{"use strict";var uU=Ms(),fU=R0(),hU=Symbol("treeData");function dU(e,t=""){let r="",i=Object.keys(e);for(let n=0;n<i.length;n++){let s=i[n],o=e[s],a=n===i.length-1,l=a?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ",c=a?" ":"\u2502 ",f=(o[hU]||"").split(`
`).join(`
`+t+c);r+=t+l+s+f+`
`,r+=dU(o,t+c)}return r}function Kxe(e){let t=e.name||"";return t=t.replace("bound","").trim(),t=(t||"anonymous")+"()",t}function pU(e){return Array.isArray(e)?e.map(t=>pU(t)):typeof e=="symbol"?e.toString():typeof e=="function"?Kxe(e):e}function Jxe(e,t){if(!t.includeMeta)return{};let r=t.buildPrettyMeta(e),i={},n=t.includeMeta;Array.isArray(n)||(n=Reflect.ownKeys(r));for(let s of n){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let o=s.toString(),a=r[s];if(a!=null){let l=JSON.stringify(pU(a));i[o]=l}}return i}function Zxe(e){let t="";for(let[r,i]of Object.entries(e))t+=`
\u2022 (${r}) ${i}`;return t}function Xxe(e){let t={...e.opts.constraints},r=t[fU.name];return delete t[fU.name],{...e,method:r,opts:{constraints:t}}}function Qxe(e){let t=` (${e.method})`,r=e.opts.constraints||{};return Object.keys(r).length!==0&&(t+=" "+JSON.stringify(r)),t+=Zxe(e.metaData),t}function e1e(e){return e.reduce((t,r)=>{for(let i of t)if(uU(r.opts.constraints,i.opts.constraints)&&uU(r.metaData,i.metaData))return i.method+=", "+r.method,t;return t.push(r),t},[])}function t1e(e,t,r){let i=e.routes;return r.method===void 0&&(i=i.map(Xxe)),i=i.map(n=>(n.metaData=Jxe(n,r),n)),r.method===void 0&&(i=e1e(i)),i.map(Qxe).join(`
${t}`)}function T0(e,t,r,i){if((e.isLeafNode||i.commonPrefix!==!1)&&(r=r||"(empty root node)",t=t[r]={},e.isLeafNode&&(t[hU]=t1e(e,r,i)),r=""),e.staticChildren)for(let n of Object.values(e.staticChildren))T0(n,t,r+n.prefix,i);if(e.parametricChildren)for(let n of Object.values(e.parametricChildren)){let s=Array.from(n.nodePaths).join("|");T0(n,t,r+s,i)}e.wildcardChild&&T0(e.wildcardChild,t,"*",i)}function r1e(e,t){let r={};return T0(e,r,e.prefix,t),dU(r)}mU.exports={prettyPrintTree:r1e}});var vU=b((Bze,yU)=>{"use strict";var i1e=R0(),AE=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(t){return t===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(t)}addHandler(t,r){let i=r.params,n=r.opts.constraints||{},s={params:i,constraints:n,handler:r.handler,store:r.store||null,_createParamsObject:this._compileCreateParamsObject(i)},o=Object.keys(n);o.length===0&&(this.unconstrainedHandler=s);for(let l of o)this.constraints.includes(l)||(l==="version"?this.constraints.unshift(l):this.constraints.push(l));let a=o.includes(i1e.name);if(!a&&this.handlers.length>=31)throw new Error("find-my-way supports a maximum of 31 route handlers per node when there are constraints, limit reached");this.handlers.push(s),this.handlers.sort((l,c)=>Object.keys(l.constraints).length-Object.keys(c.constraints).length),a||this._compileGetHandlerMatchingConstraints(t,n)}_compileCreateParamsObject(t){let r=[];for(let i=0;i<t.length;i++)r.push(`'${t[i]}': paramsArray[${i}]`);return new Function("paramsArray",`return {${r.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(t,r){for(let i=0;i<this.handlers.length;i++){let s=this.handlers[i].constraints[r];if(s!==void 0){let o=t.get(s)||0;o|=1<<i,t.set(s,o)}}}_constrainedIndexBitmask(t){let r=0;for(let i=0;i<this.handlers.length;i++)this.handlers[i].constraints[t]!==void 0&&(r|=1<<i);return~r}_compileGetHandlerMatchingConstraints(t){this.constrainedHandlerStores={};for(let i of this.constraints){let n=t.newStoreForConstraint(i);this.constrainedHandlerStores[i]=n,this._buildConstraintStore(n,i)}let r=[];r.push(`
let candidates = ${(1<<this.handlers.length)-1}
let mask, matches
`);for(let i of this.constraints){r.push(`
mask = ${this._constrainedIndexBitmask(i)}
value = derivedConstraints.${i}
`);let s=t.strategies[i].mustMatchWhenDerived?"matches":"(matches | mask)";r.push(`
if (value === undefined) {
candidates &= mask
} else {
matches = this.constrainedHandlerStores.${i}.get(value) || 0
candidates &= ${s}
}
if (candidates === 0) return null;
`)}for(let i in t.strategies)t.strategies[i].mustMatchWhenDerived&&!this.constraints.includes(i)&&r.push(`if (derivedConstraints.${i} !== undefined) return null`);r.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",r.join(`
`))}};yU.exports=AE});var bU=b((Hze,_U)=>{"use strict";var n1e=vU(),N0={STATIC:0,PARAMETRIC:1,WILDCARD:2},O0=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(t,r){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new n1e),this.isLeafNode=!0,this.routes.push(t),this.handlerStorage.addHandler(r,t)}},A0=class extends O0{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(t,r){let i=this.staticChildren[t.charAt(r)];return i===void 0||!i.matchPrefix(t,r)?null:i}getStaticChild(t,r=0){if(t.length===r)return this;let i=this.findStaticMatchingChild(t,r);return i?i.getStaticChild(t,r+i.prefix.length):null}createStaticChild(t){if(t.length===0)return this;let r=this.staticChildren[t.charAt(0)];if(r){let n=1;for(;n<r.prefix.length;n++)if(t.charCodeAt(n)!==r.prefix.charCodeAt(n)){r=r.split(this,n);break}return r.createStaticChild(t.slice(n))}let i=t.charAt(0);return this.staticChildren[i]=new C0(t),this.staticChildren[i]}},C0=class e extends A0{constructor(t){super(),this.prefix=t,this.wildcardChild=null,this.parametricChildren=[],this.kind=N0.STATIC,this._compilePrefixMatch()}getParametricChild(t){let r=t&&t.source,i=this.parametricChildren.find(n=>(n.regex&&n.regex.source)===r);return i||null}createParametricChild(t,r,i){let n=this.getParametricChild(t);return n?(n.nodePaths.add(i),n):(n=new P0(t,r,i),this.parametricChildren.push(n),this.parametricChildren.sort((s,o)=>s.isRegex?o.isRegex?s.staticSuffix===null?1:o.staticSuffix===null?-1:o.staticSuffix.endsWith(s.staticSuffix)?1:s.staticSuffix.endsWith(o.staticSuffix)?-1:0:-1:1),n)}getWildcardChild(){return this.wildcardChild}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new I0,this.wildcardChild}split(t,r){let i=this.prefix.slice(0,r),n=this.prefix.slice(r);this.prefix=n,this._compilePrefixMatch();let s=new e(i);return s.staticChildren[n.charAt(0)]=this,t.staticChildren[i.charAt(0)]=s,s}getNextNode(t,r,i,n){let s=this.findStaticMatchingChild(t,r),o=0;if(s===null){if(this.parametricChildren.length===0)return this.wildcardChild;s=this.parametricChildren[0],o=1}this.wildcardChild!==null&&i.push({paramsCount:n,brotherPathIndex:r,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=o;a--)i.push({paramsCount:n,brotherPathIndex:r,brotherNode:this.parametricChildren[a]});return s}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let t=[];for(let r=1;r<this.prefix.length;r++){let i=this.prefix.charCodeAt(r);t.push(`path.charCodeAt(i + ${r}) === ${i}`)}this.matchPrefix=new Function("path","i",`return ${t.join(" && ")}`)}},P0=class extends A0{constructor(t,r,i){super(),this.isRegex=!!t,this.regex=t||null,this.staticSuffix=r||null,this.kind=N0.PARAMETRIC,this.nodePaths=new Set([i])}getNextNode(t,r){return this.findStaticMatchingChild(t,r)}},I0=class extends O0{constructor(){super(),this.kind=N0.WILDCARD}getNextNode(){return null}};_U.exports={StaticNode:C0,ParametricNode:P0,WildcardNode:I0,NODE_TYPES:N0}});var SU=b((Vze,wU)=>{"use strict";var s1e=require("node:assert");function Xf(){if(!(this instanceof Xf))return new Xf;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}Xf.prototype.set=function(e,t){if(typeof e!="string")throw new TypeError("Version should be a string");let[r,i,n]=e.split(".");if(isNaN(r))throw new TypeError("Major version must be a numeric value");return r=Number(r),i=Number(i)||0,n=Number(n)||0,r>=this.maxMajor&&(this.maxMajor=r,this.store.x=t,this.store["*"]=t,this.store["x.x"]=t,this.store["x.x.x"]=t),i>=(this.maxMinors[r]||0)&&(this.maxMinors[r]=i,this.store[`${r}.x`]=t,this.store[`${r}.x.x`]=t),n>=(this.maxPatches[`${r}.${i}`]||0)&&(this.maxPatches[`${r}.${i}`]=n,this.store[`${r}.${i}.x`]=t),this.store[`${r}.${i}.${n}`]=t,this};Xf.prototype.get=function(e){return this.store[e]};wU.exports={name:"version",mustMatchWhenDerived:!0,storage:Xf,validate(e){s1e(typeof e=="string","Version should be a string")}}});var EU=b((Wze,xU)=>{"use strict";var o1e=require("node:assert");function a1e(){let e={},t=[];return{get:r=>{let i=e[r];if(i)return i;for(let n of t)if(n.host.test(r))return n.value},set:(r,i)=>{r instanceof RegExp?t.push({host:r,value:i}):e[r]=i}}}xU.exports={name:"host",mustMatchWhenDerived:!1,storage:a1e,validate(e){o1e(typeof e=="string"||Object.prototype.toString.call(e)==="[object RegExp]","Host should be a string or a RegExp")}}});var RU=b((Gze,kU)=>{"use strict";var l1e=SU(),c1e=EU(),CE=require("node:assert"),PE=class{constructor(t){if(this.strategies={version:l1e,host:c1e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,t)for(let r of Object.values(t))this.addConstraintStrategy(r)}isStrategyUsed(t){return this.strategiesInUse.has(t)||this.asyncStrategiesInUse.has(t)}hasConstraintStrategy(t){let r=this.strategies[t];return r!==void 0?r.isCustom||this.isStrategyUsed(t):!1}addConstraintStrategy(t){if(CE(typeof t.name=="string"&&t.name!=="","strategy.name is required."),CE(t.storage&&typeof t.storage=="function","strategy.storage function is required."),CE(t.deriveConstraint&&typeof t.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[t.name]&&this.strategies[t.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${t.name}.`);if(this.isStrategyUsed(t.name))throw new Error(`There already exists a route with ${t.name} constraint.`);t.isCustom=!0,t.isAsync=t.deriveConstraint.length===3,this.strategies[t.name]=t,t.mustMatchWhenDerived&&this.noteUsage({[t.name]:t})}deriveConstraints(t,r,i){let n=this.deriveSyncConstraints(t,r);if(i===void 0)return n;this.deriveAsyncConstraints(n,t,r,i)}deriveSyncConstraints(t,r){}noteUsage(t){if(t){let r=this.strategiesInUse.size;for(let i in t)this.strategies[i].isAsync?this.asyncStrategiesInUse.add(i):this.strategiesInUse.add(i);r!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(t){if(!this.strategies[t])throw new Error(`No strategy registered for constraint key ${t}`);return this.strategies[t].storage()}validateConstraints(t){for(let r in t){let i=t[r];if(typeof i>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let n=this.strategies[r];if(!n)throw new Error(`No strategy registered for constraint key ${r}`);n.validate&&n.validate(i)}}deriveAsyncConstraints(t,r,i,n){let s=this.asyncStrategiesInUse.size;if(s===0){n(null,t);return}t=t||{};for(let o of this.asyncStrategiesInUse)this.strategies[o].deriveConstraint(r,i,(l,c)=>{if(l!==null){n(l);return}t[o]=c,--s===0&&n(null,t)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let t=["return {"];for(let r of this.strategiesInUse){let i=this.strategies[r];i.isCustom?t.push(` ${i.name}: this.strategies.${r}.deriveConstraint(req, ctx),`):r==="version"?t.push(" version: req.headers['accept-version'],"):t.push(" host: req.headers.host || req.headers[':authority'],")}t.push("}"),this.deriveSyncConstraints=new Function("req","ctx",t.join(`
`)).bind(this)}};kU.exports=PE});var OU=b((Yze,TU)=>{"use strict";var u1e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];TU.exports=u1e});var PU=b((Kze,CU)=>{"use strict";function AU(e,t){return e===50?t===53?"%":t===51?"#":t===52?"$":t===54?"&":t===66||t===98?"+":t===67||t===99?",":t===70||t===102?"/":null:e===51?t===65||t===97?":":t===66||t===98?";":t===68||t===100?"=":t===70||t===102?"?":null:e===52&&t===48?"@":null}function f1e(e,t){let r=!1,i=!1,n="";for(let o=1;o<e.length;o++){let a=e.charCodeAt(o);if(a===37){let l=e.charCodeAt(o+1),c=e.charCodeAt(o+2);AU(l,c)===null?r=!0:(i=!0,l===50&&c===53&&(r=!0,e=e.slice(0,o+1)+"25"+e.slice(o+1),o+=2),o+=2)}else if(a===63||a===35||a===59&&t){n=e.slice(o+1),e=e.slice(0,o);break}}return{path:r?decodeURI(e):e,querystring:n,shouldDecodeParam:i}}function h1e(e){let t=e.indexOf("%");if(t===-1)return e;let r="",i=t;for(let n=t;n<e.length;n++)if(e.charCodeAt(n)===37){let s=e.charCodeAt(n+1),o=e.charCodeAt(n+2),a=AU(s,o);r+=e.slice(i,n)+a,i=n+3}return e.slice(0,t)+r+e.slice(i)}CU.exports={safeDecodeURI:f1e,safeDecodeURIComponent:h1e}});var LE=b((Jze,qU)=>{"use strict";var ht=require("node:assert"),d1e=q5(),$0=lU(),NE=Ms(),{prettyPrintTree:p1e}=gU(),{StaticNode:IU,NODE_TYPES:NU}=bU(),m1e=RU(),ac=OU(),IE=R0(),{safeDecodeURI:g1e,safeDecodeURIComponent:$U}=PU(),FU=/^https?:\/\/.*?\//,ua=/(\/:[^/()]*?)\?(\/?)/;if(!$0(FU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!$0(ua))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function ot(e){if(!(this instanceof ot))return new ot(e);e=e||{},this._opts=e,e.defaultRoute?(ht(typeof e.defaultRoute=="function","The default route must be a function"),this.defaultRoute=e.defaultRoute):this.defaultRoute=null,e.onBadUrl?(ht(typeof e.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=e.onBadUrl):this.onBadUrl=null,e.buildPrettyMeta?(ht(typeof e.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=e.buildPrettyMeta):this.buildPrettyMeta=y1e,e.querystringParser?(ht(typeof e.querystringParser=="function","querystringParser must be a function"),this.querystringParser=e.querystringParser):this.querystringParser=t=>t===""?{}:d1e.parse(t),this.caseSensitive=e.caseSensitive===void 0?!0:e.caseSensitive,this.ignoreTrailingSlash=e.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=e.ignoreDuplicateSlashes||!1,this.maxParamLength=e.maxParamLength||100,this.allowUnsafeRegex=e.allowUnsafeRegex||!1,this.constrainer=new m1e(e.constraints),this.useSemicolonDelimiter=e.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}ot.prototype.on=function(t,r,i,n,s){typeof i=="function"&&(n!==void 0&&(s=n),n=i,i={}),ht(typeof r=="string","Path should be a string"),ht(r.length>0,"The path could not be empty"),ht(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),ht(typeof n=="function","Handler should be a function");let o=r.match(ua);if(o){ht(r.length===o.index+o[0].length,"Optional Parameter needs to be the last parameter of the path");let c=r.replace(ua,"$1$2"),u=r.replace(ua,"$2")||"/";this.on(t,c,i,n,s),this.on(t,u,i,n,s);return}let a=r;this.ignoreDuplicateSlashes&&(r=$E(r)),this.ignoreTrailingSlash&&(r=FE(r));let l=Array.isArray(t)?t:[t];for(let c of l)ht(typeof c=="string","Method should be a string"),ht(ac.includes(c),`Method '${c}' is not an http method.`),this._on(c,r,i,n,s,a)};ot.prototype._on=function(t,r,i,n,s){let o={};i.constraints!==void 0&&(ht(typeof i.constraints=="object"&&i.constraints!==null,"Constraints should be an object"),Object.keys(i.constraints).length!==0&&(o=i.constraints)),this.constrainer.validateConstraints(o),this.constrainer.noteUsage(o),this.trees[t]===void 0&&(this.trees[t]=new IU("/"));let a=r;if(a==="*"&&this.trees[t].prefix.length!==0){let h=this.trees[t];this.trees[t]=new IU(""),this.trees[t].staticChildren["/"]=h}let l=this.trees[t],c=l.prefix.length,u=[];for(let h=0;h<=a.length;h++){if(a.charCodeAt(h)===58&&a.charCodeAt(h+1)===58){h++;continue}let d=a.charCodeAt(h)===58&&a.charCodeAt(h+1)!==58,p=a.charCodeAt(h)===42;if(d||p||h===a.length&&h!==c){let m=a.slice(c,h);this.caseSensitive||(m=m.toLowerCase()),m=m.split("::").join(":"),m=m.split("%").join("%25"),l=l.createStaticChild(m)}if(d){let m=!1,y=!0,_="",w=[],v=h+1;for(let g=v;;g++){let T=a.charCodeAt(g),N=T===40,R=T===45||T===46,A=T===47||g===a.length;if(N||R||A){let C=a.slice(v,g);if(u.push(C),m=m||N||R,N){let L=jU(a,g),q=a.slice(g,L+1);this.allowUnsafeRegex||ht($0(new RegExp(q)),`The regex '${q}' is not safe!`),w.push(DU(q)),g=L+1,y=!0}else w.push(y?"(.*?)":`(${_}|(?:(?!${_}).)*)`),y=!1;let k=g;for(;g<a.length;g++){let L=a.charCodeAt(g);if(L===47)break;if(L===58)if(a.charCodeAt(g+1)===58)g++;else break}let P=a.slice(k,g);if(P&&(P=P.split("::").join(":"),P=P.split("%").join("%25"),w.push(_=LU(P))),v=g+1,A||a.charCodeAt(g)===47||g===a.length){let L=m?"()"+P:P,q=a.slice(h,g);a=a.slice(0,h+1)+L+a.slice(g),h+=L.length;let G=m?new RegExp("^"+w.join("")+"$"):null;l=l.createParametricChild(G,P||null,q),c=h+1;break}}}}else if(p&&(u.push("*"),l=l.createWildcardChild(),c=h+1,h!==a.length-1))throw new Error("Wildcard must be the last character in the route")}this.caseSensitive||(a=a.toLowerCase()),a==="*"&&(a="/*");for(let h of this.routes){let d=h.opts.constraints||{};if(h.method===t&&h.pattern===a&&NE(d,o))throw new Error(`Method '${t}' already declared for route '${a}' with constraints '${JSON.stringify(o)}'`)}let f={method:t,path:r,pattern:a,params:u,opts:i,handler:n,store:s};this.routes.push(f),l.addRoute(f,this.constrainer)};ot.prototype.hasRoute=function(t,r,i){return this.findRoute(t,r,i)!==null};ot.prototype.findRoute=function(t,r,i={}){if(this.trees[t]===void 0)return null;let n=r,s=this.trees[t],o=s.prefix.length,a=[];for(let l=0;l<=n.length;l++){if(n.charCodeAt(l)===58&&n.charCodeAt(l+1)===58){l++;continue}let c=n.charCodeAt(l)===58&&n.charCodeAt(l+1)!==58,u=n.charCodeAt(l)===42;if(c||u||l===n.length&&l!==o){let f=n.slice(o,l);if(this.caseSensitive||(f=f.toLowerCase()),f=f.split("::").join(":"),f=f.split("%").join("%25"),s=s.getStaticChild(f),s===null)return null}if(c){let f=!1,h=!0,d="",p=[],m=l+1;for(let y=m;;y++){let _=n.charCodeAt(y),w=_===40,v=_===45||_===46,g=_===47||y===n.length;if(w||v||g){let T=n.slice(m,y);if(a.push(T),f=f||w||v,w){let A=jU(n,y),C=n.slice(y,A+1);this.allowUnsafeRegex||ht($0(new RegExp(C)),`The regex '${C}' is not safe!`),p.push(DU(C)),y=A+1,h=!1}else p.push(h?"(.*?)":`(${d}|(?:(?!${d}).)*)`),h=!1;let N=y;for(;y<n.length;y++){let A=n.charCodeAt(y);if(A===47)break;if(A===58)if(n.charCodeAt(y+1)===58)y++;else break}let R=n.slice(N,y);if(R&&(R=R.split("::").join(":"),R=R.split("%").join("%25"),p.push(d=LU(R))),m=y+1,g||n.charCodeAt(y)===47||y===n.length){let A=f?"()"+R:R,C=n.slice(l,y);n=n.slice(0,l+1)+A+n.slice(y),l+=A.length;let k=f?new RegExp("^"+p.join("")+"$"):null;if(s=s.getParametricChild(k,R||null,C),s===null)return null;o=l+1;break}}}}else if(u&&(a.push("*"),s=s.getWildcardChild(),o=l+1,l!==n.length-1))throw new Error("Wildcard must be the last character in the route")}this.caseSensitive||(n=n.toLowerCase());for(let l of this.routes){let c=l.opts.constraints||{};if(l.method===t&&l.pattern===n&&NE(c,i))return{handler:l.handler,store:l.store,params:l.params}}return null};ot.prototype.hasConstraintStrategy=function(e){return this.constrainer.hasConstraintStrategy(e)};ot.prototype.addConstraintStrategy=function(e){this.constrainer.addConstraintStrategy(e),this._rebuild(this.routes)};ot.prototype.reset=function(){this.trees={},this.routes=[]};ot.prototype.off=function(t,r,i){ht(typeof r=="string","Path should be a string"),ht(r.length>0,"The path could not be empty"),ht(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),ht(typeof i>"u"||typeof i=="object"&&!Array.isArray(i)&&i!==null,"Constraints should be an object or undefined.");let n=r.match(ua);if(n){ht(r.length===n.index+n[0].length,"Optional Parameter needs to be the last parameter of the path");let o=r.replace(ua,"$1$2"),a=r.replace(ua,"$2");this.off(t,o,i),this.off(t,a,i);return}this.ignoreDuplicateSlashes&&(r=$E(r)),this.ignoreTrailingSlash&&(r=FE(r));let s=Array.isArray(t)?t:[t];for(let o of s)this._off(o,r,i)};ot.prototype._off=function(t,r,i){ht(typeof t=="string","Method should be a string"),ht(ac.includes(t),`Method '${t}' is not an http method.`);function n(l){return t!==l.method||r!==l.path}function s(l){return n(l)||!NE(i,l.opts.constraints||{})}let o=i?s:n,a=this.routes.filter(o);this._rebuild(a)};ot.prototype.lookup=function(t,r,i,n){if(typeof i=="function"&&(n=i,i=void 0),n===void 0){let s=this.constrainer.deriveConstraints(t,i),o=this.find(t.method,t.url,s);return this.callHandler(o,t,r,i)}this.constrainer.deriveConstraints(t,i,(s,o)=>{if(s!==null){n(s);return}try{let a=this.find(t.method,t.url,o),l=this.callHandler(a,t,r,i);n(null,l)}catch(a){n(a)}})};ot.prototype.callHandler=function(t,r,i,n){return t===null?this._defaultRoute(r,i,n):n===void 0?t.handler(r,i,t.params,t.store,t.searchParams):t.handler.call(n,r,i,t.params,t.store,t.searchParams)};ot.prototype.find=function(t,r,i){let n=this.trees[t];if(n===void 0)return null;r.charCodeAt(0)!==47&&(r=r.replace(FU,"/")),this.ignoreDuplicateSlashes&&(r=$E(r));let s,o,a;try{s=g1e(r,this.useSemicolonDelimiter),r=s.path,o=s.querystring,a=s.shouldDecodeParam}catch{return this._onBadUrl(r)}this.ignoreTrailingSlash&&(r=FE(r));let l=r;this.caseSensitive===!1&&(r=r.toLowerCase());let c=this.maxParamLength,u=n.prefix.length,f=[],h=r.length,d=[];for(;;){if(u===h&&n.isLeafNode){let _=n.handlerStorage.getMatchingHandler(i);if(_!==null)return{handler:_.handler,store:_.store,params:_._createParamsObject(f),searchParams:this.querystringParser(o)}}let p=n.getNextNode(r,u,d,f.length);if(p===null){if(d.length===0)return null;let _=d.pop();u=_.brotherPathIndex,f.splice(_.paramsCount),p=_.brotherNode}if(n=p,n.kind===NU.STATIC){u+=n.prefix.length;continue}if(n.kind===NU.WILDCARD){let _=l.slice(u);a&&(_=$U(_)),f.push(_),u=h;continue}let m=l.indexOf("/",u);m===-1&&(m=h);let y=l.slice(u,m);if(a&&(y=$U(y)),n.isRegex){let _=n.regex.exec(y);if(_===null)continue;for(let w=1;w<_.length;w++){let v=_[w];if(v.length>c)return null;f.push(v)}}else{if(y.length>c)return null;f.push(y)}u=m}};ot.prototype._rebuild=function(e){this.reset();for(let t of e){let{method:r,path:i,opts:n,handler:s,store:o}=t;this._on(r,i,n,s,o)}};ot.prototype._defaultRoute=function(e,t,r){if(this.defaultRoute!==null)return r===void 0?this.defaultRoute(e,t):this.defaultRoute.call(r,e,t);t.statusCode=404,t.end()};ot.prototype._onBadUrl=function(e){if(this.onBadUrl===null)return null;let t=this.onBadUrl;return{handler:(r,i,n)=>t(e,r,i),params:{},store:null}};ot.prototype.prettyPrint=function(e={}){let t=e.method;e.buildPrettyMeta=this.buildPrettyMeta.bind(this);let r=null;if(t===void 0){let{version:i,host:n,...s}=this.constrainer.strategies;s[IE.name]=IE;let o=new ot({...this._opts,constraints:s}),a=this.routes.map(l=>{let c={...l.opts.constraints,[IE.name]:l.method};return{...l,method:"MERGED",opts:{constraints:c}}});o._rebuild(a),r=o.trees.MERGED}else r=this.trees[t];return r==null?"(empty tree)":p1e(r,e)};for(let e in ac){if(!ac.hasOwnProperty(e))continue;let t=ac[e],r=t.toLowerCase();ot.prototype[r]=function(i,n,s){return this.on(t,i,n,s)}}ot.prototype.all=function(e,t,r){this.on(ac,e,t,r)};qU.exports=ot;function LU(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $E(e){return e.replace(/\/\/+/g,"/")}function FE(e){return e.length>1&&e.charCodeAt(e.length-1)===47?e.slice(0,-1):e}function DU(e){return e.charCodeAt(1)===94&&(e=e.slice(0,1)+e.slice(2)),e.charCodeAt(e.length-2)===36&&(e=e.slice(0,e.length-2)+e.slice(e.length-1)),e}function jU(e,t){let r=1;for(;t<e.length;){if(t++,e[t]==="\\"){t++;continue}if(e[t]===")"?r--:e[t]==="("&&r++,!r)return t}throw new TypeError('Invalid regexp expression in "'+e+'"')}function y1e(e){return e?e.store?Object.assign({},e.store):{}:{}}});var zU=b((Zze,MU)=>{"use strict";function DE(e,t,r,i){if(r===void 0)return t.header("content-length","0"),i(null,null);if(typeof r.resume=="function")return r.on("error",s=>{t.log.error({err:s},"Error on Stream found for HEAD route")}),r.resume(),i(null,null);let n=""+Buffer.byteLength(r);t.header("content-length",n),i(null,null)}function v1e(e){return e==null?DE:Array.isArray(e)?[...e,DE]:[e,DE]}MU.exports={parseHeadOnSendHandlers:v1e}});var nB=b((Xze,iB)=>{"use strict";var _1e=LE(),b1e=cg(),UU=xb(),{onRequestAbortHookRunner:w1e,lifecycleHooks:BU,preParsingHookRunner:S1e,onTimeoutHookRunner:x1e,onRequestHookRunner:E1e}=Ns(),{supportedMethods:k1e}=Qw(),{normalizeSchema:R1e}=Bu(),{parseHeadOnSendHandlers:T1e}=zU(),{FSTDEP007:O1e,FSTDEP008:A1e,FSTDEP014:HU}=sn(),{compileSchemasForValidation:C1e,compileSchemasForSerialization:P1e}=vb(),{FST_ERR_SCH_VALIDATION_BUILD:I1e,FST_ERR_SCH_SERIALIZATION_BUILD:N1e,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:$1e,FST_ERR_DUPLICATED_ROUTE:F1e,FST_ERR_INVALID_URL:L1e,FST_ERR_HOOK_INVALID_HANDLER:VU,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:D1e,FST_ERR_ROUTE_DUPLICATED_HANDLER:j1e,FST_ERR_ROUTE_HANDLER_NOT_FN:WU,FST_ERR_ROUTE_MISSING_HANDLER:q1e,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:M1e,FST_ERR_ROUTE_METHOD_INVALID:z1e,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:U1e,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:B1e,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:jE}=rr(),{kRoutePrefix:H1e,kLogLevel:V1e,kLogSerializers:GU,kHooks:YU,kSchemaController:W1e,kOptions:KU,kReplySerializerDefault:qE,kReplyIsError:G1e,kRequestPayloadStream:Y1e,kDisableRequestLogging:K1e,kSchemaErrorFormatter:J1e,kErrorHandler:JU,kHasBeenDecorated:ZU,kRequestAcceptVersion:ME,kRouteByFastify:zE,kRouteContext:XU}=Pt(),{buildErrorHandler:Z1e}=Hu(),{createChildLogger:X1e}=Uu(),{getGenReqId:Q1e}=g0();function eEe(e){let t=_1e(e.config),r,i,n,s,o,a,l,c,u,f,h,d,p,m=!1;return{setup(A,C){r=C.avvio,i=C.fourOhFour,n=C.logger,s=C.hasLogger,o=C.setupResponseListeners,a=C.throwIfAlreadyStarted,d=C.validateHTTPVersion,h=A.exposeHeadRoutes,l=A.disableRequestLogging,c=A.ignoreTrailingSlash,u=A.ignoreDuplicateSlashes,f=Object.prototype.hasOwnProperty.call(A,"return503OnClosing")?A.return503OnClosing:!0,p=C.keepAliveConnections},routing:t.lookup.bind(t),route:N,hasRoute:g,prepareRoute:v,getDefaultRoute:function(){return HU(),t.defaultRoute},setDefaultRoute:function(A){if(HU(),typeof A!="function")throw new $1e;t.defaultRoute=A},routeHandler:R,closeRoutes:()=>{m=!0},printRoutes:t.prettyPrint.bind(t),addConstraintStrategy:y,hasConstraintStrategy:_,isAsyncConstraint:w,findRoute:T};function y(A){return a("Cannot add constraint strategy!"),t.addConstraintStrategy(A)}function _(A){return t.hasConstraintStrategy(A)}function w(){return t.constrainer.asyncStrategiesInUse.size>0}function v({method:A,url:C,options:k,handler:P,isFastify:L}){if(typeof C!="string")throw new L1e(typeof C);if(!P&&typeof k=="function")P=k,k={};else if(P&&typeof P=="function"){if(Object.prototype.toString.call(k)!=="[object Object]")throw new D1e(A,C);if(k.handler)throw typeof k.handler=="function"?new j1e(A,C):new WU(A,C)}return k=Object.assign({},k,{method:A,url:C,path:C,handler:P||k&&k.handler}),N.call(this,{options:k,isFastify:L})}function g({options:A}){let C=A.method?.toUpperCase()??"";return T({...A,method:C})!==null}function T(A){let C=t.find(A.method,A.url||"",A.constraints);return C?{handler:C.handler,params:C.params,searchParams:C.searchParams}:null}function N({options:A,isFastify:C}){let k={...A},{exposeHeadRoute:P}=k,q=P!=null?P:h,G=k.method==="GET"||Array.isArray(k.method)&&k.method.includes("GET"),X=k.method==="HEAD"||Array.isArray(k.method)&&k.method.includes("HEAD"),H=q&&G?{...A}:null;a("Cannot add route!");let W=k.url||k.path||"";if(Array.isArray(k.method))for(var ae=0;ae<k.method.length;++ae)k.method[ae]=QU(k.method[ae]),eB(k.method[ae],W,k.schema);else k.method=QU(k.method),eB(k.method,W,k.schema);if(!k.handler)throw new q1e(k.method,W);if(k.errorHandler!==void 0&&typeof k.errorHandler!="function")throw new WU(k.method,W);rB(k.bodyLimit);let V=this[H1e];if(W==="/"&&V.length>0&&k.method!=="HEAD")switch(k.prefixTrailingSlash){case"slash":Ve.call(this,{path:W,isFastify:C});break;case"no-slash":Ve.call(this,{path:"",isFastify:C});break;case"both":default:Ve.call(this,{path:"",isFastify:C}),c!==!0&&(u!==!0||!V.endsWith("/"))&&Ve.call(this,{path:W,prefixing:!0,isFastify:C})}else W[0]==="/"&&V.endsWith("/")?Ve.call(this,{path:W.slice(1),isFastify:C}):Ve.call(this,{path:W,isFastify:C});return this;function Ve({path:re,prefixing:Ie=!1,isFastify:ii=!1}){let Hr=V+re;if(k.url=Hr,k.path=Hr,k.routePath=re,k.prefix=V,k.logLevel=k.logLevel||this[V1e],(this[GU]||k.logSerializers)&&(k.logSerializers=Object.assign(Object.create(this[GU]),k.logSerializers)),k.attachValidation==null&&(k.attachValidation=!1),Ie===!1)for(let U of this[YU].onRoute)U.call(this,k);for(let U of BU)if(k&&U in k){if(Array.isArray(k[U]))for(let D of k[U]){if(typeof D!="function")throw new VU(U,Object.prototype.toString.call(D));if(U==="onSend"||U==="preSerialization"||U==="onError"||U==="preParsing"){if(D.constructor.name==="AsyncFunction"&&D.length===4)throw new jE}else if(U==="onRequestAbort"){if(D.constructor.name==="AsyncFunction"&&D.length!==1)throw new jE}else if(D.constructor.name==="AsyncFunction"&&D.length===3)throw new jE}else if(k[U]!==void 0&&typeof k[U]!="function")throw new VU(U,Object.prototype.toString.call(k[U]))}let K=k.constraints||{},E={...k.config,url:Hr,method:k.method},x=new b1e({schema:k.schema,handler:k.handler.bind(this),config:E,errorHandler:k.errorHandler,childLoggerFactory:k.childLoggerFactory,bodyLimit:k.bodyLimit,logLevel:k.logLevel,logSerializers:k.logSerializers,attachValidation:k.attachValidation,schemaErrorFormatter:k.schemaErrorFormatter,replySerializer:this[qE],validatorCompiler:k.validatorCompiler,serializerCompiler:k.serializerCompiler,exposeHeadRoute:q,prefixTrailingSlash:k.prefixTrailingSlash||"both",server:this,isFastify:ii});k.version&&(A1e(),K.version=k.version);let S=t.findRoute("HEAD",k.url,K),O=S!==null;X&&O&&!x[zE]&&S.store[zE]&&t.off("HEAD",k.url,K);try{t.on(k.method,k.url,{constraints:K},R,x)}catch(U){if(!x[zE])throw U.message.includes(`Method '${k.method}' already declared for route`)?new F1e(k.method,k.url):U}if(this.after((U,D)=>{x.errorHandler=k.errorHandler?Z1e(this[JU],k.errorHandler):this[JU],x._parserOptions.limit=k.bodyLimit||null,x.logLevel=k.logLevel,x.logSerializers=k.logSerializers,x.attachValidation=k.attachValidation,x[qE]=this[qE],x.schemaErrorFormatter=k.schemaErrorFormatter||this[J1e]||x.schemaErrorFormatter,r.once("preReady",()=>{for(let I of BU){let $=this[YU][I].concat(k[I]||[]).map(z=>z.bind(this));x[I]=$.length?$:null}for(;!x.Request[ZU]&&x.Request.parent;)x.Request=x.Request.parent;for(;!x.Reply[ZU]&&x.Reply.parent;)x.Reply=x.Reply.parent;if(i.setContext(this,x),k.schema){x.schema=R1e(k,x.schema,this.initialConfig);let I=this[W1e];!k.validatorCompiler&&(k.schema.body||k.schema.headers||k.schema.querystring||k.schema.params)&&I.setupValidator(this[KU]);try{let $=typeof k?.validatorCompiler=="function"||I.isCustomValidatorCompiler;C1e(x,k.validatorCompiler||I.validatorCompiler,$)}catch($){throw new I1e(k.method,Hr,$.message)}k.schema.response&&!k.serializerCompiler&&I.setupSerializer(this[KU]);try{P1e(x,k.serializerCompiler||I.serializerCompiler)}catch($){throw new N1e(k.method,Hr,$.message)}}}),D(U)}),q&&G&&!X&&!O){let U=T1e(H.onSend);v.call(this,{method:"HEAD",url:re,options:{...H,onSend:U},isFastify:!0})}else O&&P&&O1e()}}function R(A,C,k,P,L){let q=Q1e(P.server,A),G={level:P.logLevel};P.logSerializers&&(G.serializers=P.logSerializers);let X=X1e(P,n,A,q,G);if(X[K1e]=l,!d(A.httpVersion)){X.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let V='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',Ve={"Content-Type":"application/json","Content-Length":V.length};C.writeHead(505,Ve),C.end(V);return}if(m===!0&&(A.httpVersionMajor!==2&&C.setHeader("Connection","close"),f)){let V={"Content-Type":"application/json","Content-Length":"80"};C.writeHead(503,V),C.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),X.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(A.headers.connection||"")==="keep-alive"&&p.has(A.socket)===!1&&(p.add(A.socket),A.socket.on("close",iEe.bind({keepAliveConnections:p,socket:A.socket}))),A.headers[ME]!==void 0&&(A.headers["accept-version"]=A.headers[ME],A.headers[ME]=void 0);let W=new P.Request(q,k,A,L,X,P),ae=new P.Reply(C,W,X);l===!1&&X.info({req:W},"incoming request"),(s===!0||P.onResponse!==null)&&o(ae),P.onRequest!==null?E1e(P.onRequest,W,ae,tB):tB(null,W,ae),P.onRequestAbort!==null&&A.on("close",()=>{A.aborted&&w1e(P.onRequestAbort,W,tEe.bind(null,ae))}),P.onTimeout!==null&&(W.raw.socket._meta||W.raw.socket.on("timeout",rEe),W.raw.socket._meta={context:P,request:W,reply:ae})}}function tEe(e,t){t&&e.log.error({err:t},"onRequestAborted hook failed")}function rEe(){let{context:e,request:t,reply:r}=this._meta;x1e(e.onTimeout,t,r,nEe)}function QU(e){if(typeof e!="string")throw new z1e;if(e=e.toUpperCase(),k1e.indexOf(e)===-1)throw new M1e(e);return e}function eB(e,t,r){if((e==="GET"||e==="HEAD")&&r&&r.body)throw new U1e(e,t)}function rB(e){if(e!==void 0&&(!Number.isInteger(e)||e<=0))throw new B1e(e)}function tB(e,t,r){if(r.sent!==!0){if(e!=null){r[G1e]=!0,r.send(e);return}t[Y1e]=t.raw,t[XU].preParsing!==null?S1e(t[XU].preParsing,t,r,UU):UU(null,t,r)}}function iEe(){this.keepAliveConnections.delete(this.socket)}function nEe(){}iB.exports={buildRouting:eEe,validateBodyLimitOption:rB}});var fB=b((Qze,uB)=>{"use strict";var sEe=LE(),sB=Vm(),oB=lg(),oEe=cg(),{kRoutePrefix:aEe,kCanSetNotFoundHandler:Qf,kFourOhFourLevelInstance:eh,kFourOhFourContext:Sn,kHooks:lEe,kErrorHandler:aB}=Pt(),{lifecycleHooks:cEe}=Ns(),{buildErrorHandler:uEe}=Hu(),{FST_ERR_NOT_FOUND:fEe}=rr(),{createChildLogger:lB}=Uu(),{getGenReqId:cB}=g0();function hEe(e){let{logger:t,disableRequestLogging:r}=e,i=sEe({onBadUrl:a(),defaultRoute:f}),n=null;return{router:i,setNotFoundHandler:c,setContext:l,arrange404:s};function s(h){h[eh]=h,h[Qf]=!0,i.onBadUrl=i.onBadUrl.bind(h),i.defaultRoute=i.defaultRoute.bind(h)}function o(h,d){let{url:p,method:m}=h.raw,y=`Route ${m}:${p} not found`;r||h.log.info(y),d.code(404).send({message:y,error:"Not Found",statusCode:404})}function a(){return function(d,p,m){let y=this[eh][Sn],_=cB(y.server,p),w=lB(y,t,p,_),v=new oB(_,null,p,null,w,y),g=new sB(m,v,w);n(v,g)}}function l(h,d){let p=Object.assign({},h[Sn]);p.onSend=d.onSend,d[Sn]=p}function c(h,d,p,m){this[Qf]===void 0&&(this[Qf]=!0),this[Sn]===void 0&&(this[Sn]=null);let y=this,_=this[aEe]||"/";if(this[Qf]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${_}'`);typeof h=="object"&&(h.preHandler&&(Array.isArray(h.preHandler)?h.preHandler=h.preHandler.map(w=>w.bind(y)):h.preHandler=h.preHandler.bind(y)),h.preValidation&&(Array.isArray(h.preValidation)?h.preValidation=h.preValidation.map(w=>w.bind(y)):h.preValidation=h.preValidation.bind(y))),typeof h=="function"&&(d=h,h=void 0),h=h||{},d?(this[eh][Qf]=!1,d=d.bind(this),n=d):(d=o,n=o),this.after((w,v)=>{u.call(this,_,h,d,p,m),v(w)})}function u(h,d,p,m,y){let _=new oEe({schema:d.schema,handler:p,config:d.config||{},server:this});if(m.once("preReady",()=>{let w=this[Sn];for(let v of cEe){let g=this[lEe][v].concat(d[v]||[]).map(T=>T.bind(this));w[v]=g.length?g:null}w.errorHandler=d.errorHandler?uEe(this[aB],d.errorHandler):this[aB]}),this[Sn]!==null&&h==="/"){Object.assign(this[Sn],_);return}this[eh][Sn]=_,i.all(h+(h.endsWith("/")?"*":"/*"),y,_),i.all(h,y,_)}function f(h,d){let p=this[eh][Sn],m=cB(p.server,h),y=lB(p,t,h,m);y.info({req:h},"incoming request");let _=new oB(m,null,h,null,y,p),w=new sB(d,_,y);_.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),_.log.warn(i.prettyPrint()),w.code(404).send(new fEe)}}uB.exports=hEe});var dB=b((e4e,F0)=>{"use strict";F0.exports=Ce;F0.exports.default=Ce;var hB={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},dEe=Object.prototype.hasOwnProperty,pEe=new RegExp("idle","u");function Ce(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:n=e}={}){let s=null,o=0;if(o===0)if(e&&typeof e=="object"&&!Array.isArray(e)){e.connectionTimeout===void 0&&(e.connectionTimeout=0),e.keepAliveTimeout===void 0&&(e.keepAliveTimeout=72e3),e.maxRequestsPerSocket===void 0&&(e.maxRequestsPerSocket=0),e.requestTimeout===void 0&&(e.requestTimeout=0),e.bodyLimit===void 0&&(e.bodyLimit=1048576),e.caseSensitive===void 0&&(e.caseSensitive=!0),e.allowUnsafeRegex===void 0&&(e.allowUnsafeRegex=!1),e.ignoreTrailingSlash===void 0&&(e.ignoreTrailingSlash=!1),e.ignoreDuplicateSlashes===void 0&&(e.ignoreDuplicateSlashes=!1),e.disableRequestLogging===void 0&&(e.disableRequestLogging=!1),e.jsonShorthand===void 0&&(e.jsonShorthand=!0),e.maxParamLength===void 0&&(e.maxParamLength=100),e.onProtoPoisoning===void 0&&(e.onProtoPoisoning="error"),e.onConstructorPoisoning===void 0&&(e.onConstructorPoisoning="error"),e.pluginTimeout===void 0&&(e.pluginTimeout=1e4),e.requestIdHeader===void 0&&(e.requestIdHeader="request-id"),e.requestIdLogLabel===void 0&&(e.requestIdLogLabel="reqId"),e.http2SessionTimeout===void 0&&(e.http2SessionTimeout=72e3),e.exposeHeadRoutes===void 0&&(e.exposeHeadRoutes=!0),e.useSemicolonDelimiter===void 0&&(e.useSemicolonDelimiter=!0);let p=o;for(let m in e)dEe.call(hB.properties,m)||delete e[m];if(p===o){let m=e.connectionTimeout,y=o;if(!(typeof m=="number"&&!(m%1)&&!isNaN(m)&&isFinite(m))){let _=typeof m,w;if(w===void 0)if(_==="boolean"||m===null||_==="string"&&m&&m==+m&&!(m%1))w=+m;else return Ce.errors=[{instancePath:t+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;w!==void 0&&(m=w,e!==void 0&&(e.connectionTimeout=w))}var a=y===o;if(a){let _=e.keepAliveTimeout,w=o;if(!(typeof _=="number"&&!(_%1)&&!isNaN(_)&&isFinite(_))){let g=typeof _,T;if(T===void 0)if(g==="boolean"||_===null||g==="string"&&_&&_==+_&&!(_%1))T=+_;else return Ce.errors=[{instancePath:t+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;T!==void 0&&(_=T,e!==void 0&&(e.keepAliveTimeout=T))}var a=w===o;if(a){if(e.forceCloseConnections!==void 0){let g=e.forceCloseConnections,T=o,N=o,R=!1,A=null,C=o;if(typeof g!="string"){let L=typeof g,q;if(q===void 0)if(L=="number"||L=="boolean")q=""+g;else if(g===null)q="";else{let G={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),o++}q!==void 0&&(g=q,e!==void 0&&(e.forceCloseConnections=q))}if(o===C&&typeof g=="string"&&!pEe.test(g)){let L={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};s===null?s=[L]:s.push(L),o++}var l=C===o;l&&(R=!0,A=0);let k=o;if(typeof g!="boolean"){let L;if(L===void 0)if(g==="false"||g===0||g===null)L=!1;else if(g==="true"||g===1)L=!0;else{let q={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[q]:s.push(q),o++}L!==void 0&&(g=L,e!==void 0&&(e.forceCloseConnections=L))}var l=k===o;if(l&&R?(R=!1,A=[A,1]):l&&(R=!0,A=1),R)o=N,s!==null&&(N?s.length=N:s=null);else{let L={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[L]:s.push(L),o++,Ce.errors=s,!1}var a=T===o}else var a=!0;if(a){let g=e.maxRequestsPerSocket,T=o;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g))&&g!==null){let R=typeof g,A;if(A===void 0)if(R==="boolean"||g===null||R==="string"&&g&&g==+g&&!(g%1))A=+g;else if(g===""||g===0||g===!1)A=null;else return Ce.errors=[{instancePath:t+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;A!==void 0&&(g=A,e!==void 0&&(e.maxRequestsPerSocket=A))}var a=T===o;if(a){let R=e.requestTimeout,A=o;if(!(typeof R=="number"&&!(R%1)&&!isNaN(R)&&isFinite(R))){let k=typeof R,P;if(P===void 0)if(k==="boolean"||R===null||k==="string"&&R&&R==+R&&!(R%1))P=+R;else return Ce.errors=[{instancePath:t+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;P!==void 0&&(R=P,e!==void 0&&(e.requestTimeout=P))}var a=A===o;if(a){let k=e.bodyLimit,P=o;if(!(typeof k=="number"&&!(k%1)&&!isNaN(k)&&isFinite(k))){let q=typeof k,G;if(G===void 0)if(q==="boolean"||k===null||q==="string"&&k&&k==+k&&!(k%1))G=+k;else return Ce.errors=[{instancePath:t+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;G!==void 0&&(k=G,e!==void 0&&(e.bodyLimit=G))}var a=P===o;if(a){let q=e.caseSensitive,G=o;if(typeof q!="boolean"){let H;if(H===void 0)if(q==="false"||q===0||q===null)H=!1;else if(q==="true"||q===1)H=!0;else return Ce.errors=[{instancePath:t+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;H!==void 0&&(q=H,e!==void 0&&(e.caseSensitive=H))}var a=G===o;if(a){let H=e.allowUnsafeRegex,W=o;if(typeof H!="boolean"){let V;if(V===void 0)if(H==="false"||H===0||H===null)V=!1;else if(H==="true"||H===1)V=!0;else return Ce.errors=[{instancePath:t+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;V!==void 0&&(H=V,e!==void 0&&(e.allowUnsafeRegex=V))}var a=W===o;if(a){if(e.http2!==void 0){let V=e.http2,Ve=o;if(typeof V!="boolean"){let Ie;if(Ie===void 0)if(V==="false"||V===0||V===null)Ie=!1;else if(V==="true"||V===1)Ie=!0;else return Ce.errors=[{instancePath:t+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ie!==void 0&&(V=Ie,e!==void 0&&(e.http2=Ie))}var a=Ve===o}else var a=!0;if(a){if(e.https!==void 0){let V=e.https,Ve=o,re=o,Ie=!0,ii=o,Hr=o,K=o,E=o,x=!1,S=null,O=o;if(typeof V!="boolean"){let I;if(I===void 0)if(V==="false"||V===0||V===null)I=!1;else if(V==="true"||V===1)I=!0;else{let $={};s===null?s=[$]:s.push($),o++}I!==void 0&&(V=I,e!==void 0&&(e.https=I))}var c=O===o;c&&(x=!0,S=0);let U=o;if(V!==null){let I;if(I===void 0)if(V===""||V===0||V===!1)I=null;else{let $={};s===null?s=[$]:s.push($),o++}I!==void 0&&(V=I,e!==void 0&&(e.https=I))}var c=U===o;if(c&&x)x=!1,S=[S,1];else{c&&(x=!0,S=1);let I=o;if(o===I)if(V&&typeof V=="object"&&!Array.isArray(V)){let z;if(V.allowHTTP1===void 0&&(z="allowHTTP1")){let j={};s===null?s=[j]:s.push(j),o++}else{let j=o;for(let F in V)F!=="allowHTTP1"&&delete V[F];if(j===o&&V.allowHTTP1!==void 0){let F=V.allowHTTP1;if(typeof F!="boolean"){let M;if(M===void 0)if(F==="false"||F===0||F===null)M=!1;else if(F==="true"||F===1)M=!0;else{let J={};s===null?s=[J]:s.push(J),o++}M!==void 0&&(F=M,V!==void 0&&(V.allowHTTP1=M))}}}}else{let z={};s===null?s=[z]:s.push(z),o++}var c=I===o;c&&x?(x=!1,S=[S,2]):c&&(x=!0,S=2)}if(x)o=E,s!==null&&(E?s.length=E:s=null);else{let I={};s===null?s=[I]:s.push(I),o++}var u=K===o;if(u){let I={};s===null?s=[I]:s.push(I),o++}else o=Hr,s!==null&&(Hr?s.length=Hr:s=null);var f=ii===o;if(o=re,s!==null&&(re?s.length=re:s=null),f){let I=o;e.https=!0;var f=I===o;Ie=f}if(!Ie){let I={instancePath:t+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return s===null?s=[I]:s.push(I),o++,Ce.errors=s,!1}var a=Ve===o}else var a=!0;if(a){let V=e.ignoreTrailingSlash,Ve=o;if(typeof V!="boolean"){let Ie;if(Ie===void 0)if(V==="false"||V===0||V===null)Ie=!1;else if(V==="true"||V===1)Ie=!0;else return Ce.errors=[{instancePath:t+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ie!==void 0&&(V=Ie,e!==void 0&&(e.ignoreTrailingSlash=Ie))}var a=Ve===o;if(a){let Ie=e.ignoreDuplicateSlashes,ii=o;if(typeof Ie!="boolean"){let K;if(K===void 0)if(Ie==="false"||Ie===0||Ie===null)K=!1;else if(Ie==="true"||Ie===1)K=!0;else return Ce.errors=[{instancePath:t+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;K!==void 0&&(Ie=K,e!==void 0&&(e.ignoreDuplicateSlashes=K))}var a=ii===o;if(a){let K=e.disableRequestLogging,E=o;if(typeof K!="boolean"){let S;if(S===void 0)if(K==="false"||K===0||K===null)S=!1;else if(K==="true"||K===1)S=!0;else return Ce.errors=[{instancePath:t+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;S!==void 0&&(K=S,e!==void 0&&(e.disableRequestLogging=S))}var a=E===o;if(a){let S=e.jsonShorthand,O=o;if(typeof S!="boolean"){let D;if(D===void 0)if(S==="false"||S===0||S===null)D=!1;else if(S==="true"||S===1)D=!0;else return Ce.errors=[{instancePath:t+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;D!==void 0&&(S=D,e!==void 0&&(e.jsonShorthand=D))}var a=O===o;if(a){let D=e.maxParamLength,I=o;if(!(typeof D=="number"&&!(D%1)&&!isNaN(D)&&isFinite(D))){let z=typeof D,j;if(j===void 0)if(z==="boolean"||D===null||z==="string"&&D&&D==+D&&!(D%1))j=+D;else return Ce.errors=[{instancePath:t+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;j!==void 0&&(D=j,e!==void 0&&(e.maxParamLength=j))}var a=I===o;if(a){let z=e.onProtoPoisoning,j=o;if(typeof z!="string"){let M=typeof z,J;if(J===void 0)if(M=="number"||M=="boolean")J=""+z;else if(z===null)J="";else return Ce.errors=[{instancePath:t+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;J!==void 0&&(z=J,e!==void 0&&(e.onProtoPoisoning=J))}var a=j===o;if(a){let M=e.onConstructorPoisoning,J=o;if(typeof M!="string"){let Q=typeof M,he;if(he===void 0)if(Q=="number"||Q=="boolean")he=""+M;else if(M===null)he="";else return Ce.errors=[{instancePath:t+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he!==void 0&&(M=he,e!==void 0&&(e.onConstructorPoisoning=he))}var a=J===o;if(a){let Q=e.pluginTimeout,he=o;if(!(typeof Q=="number"&&!(Q%1)&&!isNaN(Q)&&isFinite(Q))){let we=typeof Q,ke;if(ke===void 0)if(we==="boolean"||Q===null||we==="string"&&Q&&Q==+Q&&!(Q%1))ke=+Q;else return Ce.errors=[{instancePath:t+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ke!==void 0&&(Q=ke,e!==void 0&&(e.pluginTimeout=ke))}var a=he===o;if(a){let we=e.requestIdHeader,ke=o,Fe=o,Ze=!1,De=o;if(we!==!1){let Jt={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:hB.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};s===null?s=[Jt]:s.push(Jt),o++}var h=De===o;if(Ze=Ze||h,!Ze){let Jt=o;if(typeof we!="string"){let xO=typeof we,it;if(it===void 0)if(xO=="number"||xO=="boolean")it=""+we;else if(we===null)it="";else{let Ti={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ti]:s.push(Ti),o++}it!==void 0&&(we=it,e!==void 0&&(e.requestIdHeader=it))}var h=Jt===o;Ze=Ze||h}if(Ze)o=Fe,s!==null&&(Fe?s.length=Fe:s=null);else{let Jt={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Jt]:s.push(Jt),o++,Ce.errors=s,!1}var a=ke===o;if(a){let Jt=e.requestIdLogLabel,oY=o;if(typeof Jt!="string"){let it=typeof Jt,Ti;if(Ti===void 0)if(it=="number"||it=="boolean")Ti=""+Jt;else if(Jt===null)Ti="";else return Ce.errors=[{instancePath:t+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ti!==void 0&&(Jt=Ti,e!==void 0&&(e.requestIdLogLabel=Ti))}var a=oY===o;if(a){let it=e.http2SessionTimeout,Ti=o;if(!(typeof it=="number"&&!(it%1)&&!isNaN(it)&&isFinite(it))){let Xi=typeof it,Ro;if(Ro===void 0)if(Xi==="boolean"||it===null||Xi==="string"&&it&&it==+it&&!(it%1))Ro=+it;else return Ce.errors=[{instancePath:t+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Ro!==void 0&&(it=Ro,e!==void 0&&(e.http2SessionTimeout=Ro))}var a=Ti===o;if(a){let Xi=e.exposeHeadRoutes,Ro=o;if(typeof Xi!="boolean"){let Ir;if(Ir===void 0)if(Xi==="false"||Xi===0||Xi===null)Ir=!1;else if(Xi==="true"||Xi===1)Ir=!0;else return Ce.errors=[{instancePath:t+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ir!==void 0&&(Xi=Ir,e!==void 0&&(e.exposeHeadRoutes=Ir))}var a=Ro===o;if(a){let Ir=e.useSemicolonDelimiter,aY=o;if(typeof Ir!="boolean"){let Tt;if(Tt===void 0)if(Ir==="false"||Ir===0||Ir===null)Tt=!1;else if(Ir==="true"||Ir===1)Tt=!0;else return Ce.errors=[{instancePath:t+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Tt!==void 0&&(Ir=Tt,e!==void 0&&(e.useSemicolonDelimiter=Tt))}var a=aY===o;if(a){if(e.versioning!==void 0){let Tt=e.versioning,iu=o;if(o===iu)if(Tt&&typeof Tt=="object"&&!Array.isArray(Tt)){let qn;if(Tt.storage===void 0&&(qn="storage")||Tt.deriveVersion===void 0&&(qn="deriveVersion"))return Ce.errors=[{instancePath:t+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:qn},message:"must have required property '"+qn+"'"}],!1}else return Ce.errors=[{instancePath:t+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=iu===o}else var a=!0;if(a)if(e.constraints!==void 0){let Tt=e.constraints,iu=o;if(o===iu)if(Tt&&typeof Tt=="object"&&!Array.isArray(Tt))for(let qn in Tt){let Oi=Tt[qn],EO=o;if(o===EO)if(Oi&&typeof Oi=="object"&&!Array.isArray(Oi)){let qa;if(Oi.name===void 0&&(qa="name")||Oi.storage===void 0&&(qa="storage")||Oi.validate===void 0&&(qa="validate")||Oi.deriveConstraint===void 0&&(qa="deriveConstraint"))return Ce.errors=[{instancePath:t+"/constraints/"+qn.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:qa},message:"must have required property '"+qa+"'"}],!1;if(Oi.name!==void 0){let nu=Oi.name;if(typeof nu!="string"){let kO=typeof nu,Ma;if(Ma===void 0)if(kO=="number"||kO=="boolean")Ma=""+nu;else if(nu===null)Ma="";else return Ce.errors=[{instancePath:t+"/constraints/"+qn.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ma!==void 0&&(nu=Ma,Oi!==void 0&&(Oi.name=Ma))}}}else return Ce.errors=[{instancePath:t+"/constraints/"+qn.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=EO===o;if(!d)break}else return Ce.errors=[{instancePath:t+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=iu===o}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return Ce.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ce.errors=s,o===0}F0.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var pB=b((t4e,D0)=>{"use strict";var L0=dB(),mEe=$m()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:gEe}=rr();function yEe(e){let t=mEe(e);if(!L0(t)){let r=new gEe(JSON.stringify(L0.errors.map(i=>i.message)));throw r.errors=L0.errors,r}return UE(t)}function UE(e){let t=Object.getOwnPropertyNames(e);for(let r of t){let i=e[r];ArrayBuffer.isView(i)&&!(i instanceof DataView)||(e[r]=i&&typeof i=="object"?UE(i):i)}return Object.freeze(e)}D0.exports=yEe;D0.exports.defaultInitOptions=L0.defaultInitOptions;D0.exports.utils={deepFreezeObject:UE}});var xB=b((r4e,SB)=>{"use strict";var{kAvvioBoot:vEe,kChildren:mB,kRoutePrefix:gB,kLogLevel:yB,kLogSerializers:BE,kHooks:HE,kSchemaController:lc,kContentTypeParser:vB,kReply:_B,kRequest:bB,kFourOhFour:_Ee,kPluginNameChain:wB}=Pt(),bEe=Vm(),wEe=lg(),SEe=dE(),xEe=dS(),{buildHooks:EEe}=Ns(),th=_E();SB.exports=function(t,r,i){let n=th.registerPlugin.call(t,r),s=th.getPluginName(r)||th.getFuncPreview(r);if(n)return t[wB].push(s),t;let o=Object.create(t);t[mB].push(o),o.ready=t[vEe].bind(o),o[mB]=[],o[_B]=bEe.buildReply(o[_B]),o[bB]=wEe.buildRequest(o[bB]),o[vB]=xEe.helpers.buildContentTypeParser(o[vB]),o[HE]=EEe(o[HE]),o[gB]=kEe(o[gB],i.prefix),o[yB]=i.logLevel||o[yB],o[lc]=SEe.buildSchemaController(t[lc]),o.getSchema=o[lc].getSchema.bind(o[lc]),o.getSchemas=o[lc].getSchemas.bind(o[lc]),o[th.kRegisteredPlugins]=Object.create(o[th.kRegisteredPlugins]),o[wB]=[s],(o[BE]||i.logSerializers)&&(o[BE]=Object.assign(Object.create(o[BE]),i.logSerializers)),i.prefix&&o[_Ee].arrange404(o);for(let a of o[HE].onRegister)a.call(this,o,i);return o};function kEe(e,t){return t?(e.endsWith("/")&&t[0]==="/"?t=t.slice(1):t[0]!=="/"&&(t="/"+t),e+t):e}});var kB=b((i4e,EB)=>{"use strict";EB.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var OB=b(VE=>{"use strict";VE.parse=IEe;VE.serialize=NEe;var REe=Object.prototype.toString,TEe=Object.prototype.hasOwnProperty,OEe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,AEe=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,CEe=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,PEe=/^[\u0020-\u003A\u003D-\u007E]*$/;function IEe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var n=t&&t.decode||$Ee,s=0,o=0,a=0;do{if(o=e.indexOf("=",s),o===-1)break;if(a=e.indexOf(";",s),a===-1)a=i;else if(o>a){s=e.lastIndexOf(";",o-1)+1;continue}var l=RB(e,s,o),c=TB(e,o,l),u=e.slice(l,c);if(!TEe.call(r,u)){var f=RB(e,o+1,a),h=TB(e,a,f);e.charCodeAt(f)===34&&e.charCodeAt(h-1)===34&&(f++,h--);var d=e.slice(f,h);r[u]=LEe(d,n)}s=a+1}while(s<i);return r}function RB(e,t,r){do{var i=e.charCodeAt(t);if(i!==32&&i!==9)return t}while(++t<r);return r}function TB(e,t,r){for(;t>r;){var i=e.charCodeAt(--t);if(i!==32&&i!==9)return t+1}return r}function NEe(e,t,r){var i=r&&r.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!OEe.test(e))throw new TypeError("argument name is invalid");var n=i(t);if(!AEe.test(n))throw new TypeError("argument val is invalid");var s=e+"="+n;if(!r)return s;if(r.maxAge!=null){var o=Math.floor(r.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+o}if(r.domain){if(!CEe.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!PEe.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!FEe(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var l=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(l){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function $Ee(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function FEe(e){return REe.call(e)==="[object Date]"}function LEe(e,t){try{return t(e)}catch{return e}}});var PB=b((s4e,CB)=>{"use strict";var{URL:AB}=require("node:url"),WE="http://localhost";CB.exports=function(t,r){(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]")&&t.startsWith("//")&&(t=WE+t);let i=typeof t=="object"?Object.assign(new AB(WE),t):new AB(t,WE);if(typeof r=="string"){r=new URLSearchParams(r);for(let n of r.keys()){i.searchParams.delete(n);for(let s of r.getAll(n))i.searchParams.append(n,s)}}else{let n=Object.assign({},t.query,r);for(let s in n){let o=n[s];if(Array.isArray(o)){i.searchParams.delete(s);for(let a of o)i.searchParams.append(s,a)}else i.searchParams.set(s,o)}}return i}});var IB=b((o4e,GE)=>{"use strict";var{randomUUID:DEe}=require("node:crypto"),{Readable:jEe}=require("node:stream"),cc;function qEe(e){return e&&typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&e[Symbol.toStringTag]==="FormData"}function MEe(e){cc=cc??new TextEncoder;let t=`----formdata-${DEe()}`,r=`--${t}\r
Content-Disposition: form-data`;let i=l=>l.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),n=l=>l.replace(/\r?\n|\r/g,`\r
`),s=new Uint8Array([13,10]);async function*o(){for(let[l,c]of e)if(typeof c=="string")yield cc.encode(`${r}; name="${i(n(l))}"\r
\r
`),yield cc.encode(`${n(c)}\r
`);else{let u=`${r}; name="${i(n(l))}"`;c.name&&(u+=`; filename="${i(c.name)}"`),u+=`\r
Content-Type: ${c.type||"application/octet-stream"}\r
\r
`,yield cc.encode(u),c.stream?yield*c.stream():yield c,yield s}yield cc.encode(`--${t}--`)}return{stream:jEe.from(o()),contentType:`multipart/form-data; boundary=${t}`}}GE.exports.isFormDataLike=qEe;GE.exports.formDataToStream=MEe});var FB=b((a4e,j0)=>{"use strict";var{Readable:NB,addAbortSignal:zEe}=require("node:stream"),KE=require("node:util"),UEe=OB(),BEe=require("node:assert"),{createDeprecation:HEe}=db(),VEe=PB(),{isFormDataLike:WEe,formDataToStream:GEe}=IB(),{EventEmitter:YEe}=require("node:events"),KEe=HEe({name:"FastifyDeprecationLightMyRequest",code:"FST_LIGHTMYREQUEST_DEP01",message:'You are accessing "request.connection", use "request.socket" instead.'});function JEe(e){return e.port?e.host:e.hostname+(e.protocol==="https:"?":443":":80")}var YE=class extends YEe{constructor(t){super(),this.remoteAddress=t}};function $B(e){return new t(this);function t(r){xn.call(r,{...e,Request:void 0}),Object.assign(this,r);for(let i of Object.keys(xn.prototype))this.constructor.prototype[i]=xn.prototype[i];return KE.inherits(this.constructor,e.Request),this}}function xn(e){NB.call(this,{autoDestroy:!1});let t=VEe(e.url||e.path,e.query);this.url=t.pathname+t.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=e.method?e.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let r=e.headers||{};for(let o in r){let a=o.toLowerCase();if((a==="user-agent"||a==="content-type")&&r[o]===void 0){this.headers[a]=void 0;continue}let l=r[o];BEe(l!==void 0,'invalid value "undefined" for header '+o),this.headers[a]=""+l}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||e.authority||JEe(t),e.cookies){let{cookies:o}=e,a=Object.keys(o).map(l=>UEe.serialize(l,o[l]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new YE(e.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return KEe(),this.socket},configurable:!0});let i=e.payload||e.body||null,n=i&&typeof i.resume=="function";if(WEe(i)){let o=GEe(i);i=o.stream,n=!0,this.headers["content-type"]=o.contentType}i&&typeof i!="string"&&!n&&!Buffer.isBuffer(i)&&(i=JSON.stringify(i),"content-type"in this.headers||(this.headers["content-type"]="application/json")),i&&!n&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(i)?i.length:Buffer.byteLength(i)).toString());for(let o of Object.keys(this.headers))this.rawHeaders.push(o,this.headers[o]);this._lightMyRequest={payload:i,isDone:!1,simulate:e.simulate||{}};let s=e.signal;return s&&zEe(s,this),this}KE.inherits(xn,NB);KE.inherits($B,xn);xn.prototype.prepare=function(e){let t=this._lightMyRequest.payload;if(!t||typeof t.resume!="function")return e();let r=[];t.on("data",i=>r.push(Buffer.from(i))),t.on("end",()=>{let i=Buffer.concat(r);return this.headers["content-length"]=this.headers["content-length"]||""+i.length,this._lightMyRequest.payload=i,e()}),t.resume()};xn.prototype._read=function(e){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};xn.prototype.destroy=function(e){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,e&&(this._error=!0,process.nextTick(()=>this.emit("error",e))),process.nextTick(()=>this.emit("close")))};j0.exports=xn;j0.exports.Request=xn;j0.exports.CustomRequest=$B});var DB=b((l4e,rh)=>{"use strict";var q0={decodeValues:!0,map:!1,silent:!1};function JE(e){return typeof e=="string"&&!!e.trim()}function ZE(e,t){var r=e.split(";").filter(JE),i=r.shift(),n=ZEe(i),s=n.name,o=n.value;t=t?Object.assign({},q0,t):q0;try{o=t.decodeValues?decodeURIComponent(o):o}catch(l){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+o+"'. Set options.decodeValues to false to disable this feature.",l)}var a={name:s,value:o};return r.forEach(function(l){var c=l.split("="),u=c.shift().trimLeft().toLowerCase(),f=c.join("=");u==="expires"?a.expires=new Date(f):u==="max-age"?a.maxAge=parseInt(f,10):u==="secure"?a.secure=!0:u==="httponly"?a.httpOnly=!0:u==="samesite"?a.sameSite=f:u==="partitioned"?a.partitioned=!0:a[u]=f}),a}function ZEe(e){var t="",r="",i=e.split("=");return i.length>1?(t=i.shift(),r=i.join("=")):r=e,{name:t,value:r}}function LB(e,t){if(t=t?Object.assign({},q0,t):q0,!e)return t.map?{}:[];if(e.headers)if(typeof e.headers.getSetCookie=="function")e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var r=e.headers[Object.keys(e.headers).find(function(n){return n.toLowerCase()==="set-cookie"})];!r&&e.headers.cookie&&!t.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=r}if(Array.isArray(e)||(e=[e]),t.map){var i={};return e.filter(JE).reduce(function(n,s){var o=ZE(s,t);return n[o.name]=o,n},i)}else return e.filter(JE).map(function(n){return ZE(n,t)})}function XEe(e){if(Array.isArray(e))return e;if(typeof e!="string")return[];var t=[],r=0,i,n,s,o,a;function l(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function c(){return n=e.charAt(r),n!=="="&&n!==";"&&n!==","}for(;r<e.length;){for(i=r,a=!1;l();)if(n=e.charAt(r),n===","){for(s=r,r+=1,l(),o=r;r<e.length&&c();)r+=1;r<e.length&&e.charAt(r)==="="?(a=!0,r=o,t.push(e.substring(i,s)),i=r):r=s+1}else r+=1;(!a||r>=e.length)&&t.push(e.substring(i,e.length))}return t}rh.exports=LB;rh.exports.parse=LB;rh.exports.parseString=ZE;rh.exports.splitCookiesString=XEe});var MB=b((c4e,qB)=>{"use strict";var ih=require("node:http"),{Writable:QEe,Readable:eke}=require("node:stream"),tke=require("node:util"),rke=DB();function ro(e,t,r){ih.ServerResponse.call(this,e),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(nke()),this._promiseCallback=typeof r=="function";let i=!1,n=o=>{if(i=!0,this._promiseCallback)return process.nextTick(()=>t(o));process.nextTick(()=>t(null,o))},s=o=>{if(!i){if(i=!0,this._promiseCallback)return process.nextTick(()=>r(o));process.nextTick(()=>t(o,null))}};this.once("finish",()=>{let o=ike(this);o.raw.req=e,n(o)}),this.connection.once("error",s),this.once("error",s),this.once("close",s)}tke.inherits(ro,ih.ServerResponse);ro.prototype.setTimeout=function(e,t){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},e),this.on("timeout",t),this};ro.prototype.writeHead=function(){let e=ih.ServerResponse.prototype.writeHead.apply(this,arguments);return jB(this),e};ro.prototype.write=function(e,t,r){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),ih.ServerResponse.prototype.write.call(this,e,t,r),this._lightMyRequest.payloadChunks.push(Buffer.from(e,t)),!0};ro.prototype.end=function(e,t,r){e&&this.write(e,t),ih.ServerResponse.prototype.end.call(this,r),this.emit("finish"),this.destroy()};ro.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&process.nextTick(()=>this.emit("error",e)),process.nextTick(()=>this.emit("close")))};ro.prototype.addTrailers=function(e){for(let t in e)this._lightMyRequest.trailers[t.toLowerCase().trim()]=e[t].toString().trim()};function ike(e){e._lightMyRequest.headers===null&&jB(e),ske(e);let t={raw:{res:e},headers:e._lightMyRequest.headers,statusCode:e.statusCode,statusMessage:e.statusMessage,trailers:{},get cookies(){return rke.parse(this)}},r=Buffer.concat(e._lightMyRequest.payloadChunks);return t.rawPayload=r,t.payload=r.toString(),t.body=t.payload,t.trailers=e._lightMyRequest.trailers,t.json=function(){return JSON.parse(t.payload)},t.stream=function(){return eke.from(e._lightMyRequest.payloadChunks)},t}function nke(){return new QEe({write(e,t,r){setImmediate(r)}})}function ske(e){let t=e._lightMyRequest.headers;for(let r of Object.keys(t)){let i=t[r];Array.isArray(i)?t[r]=i.map(n=>""+n):t[r]=""+i}}function jB(e){e._lightMyRequest.headers=Object.assign({},e.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(t=>{let r=new RegExp("\\r\\n"+t+": ([^\\r]*)\\r\\n"),i=e._header.match(r);i&&(e._lightMyRequest.headers[t.toLowerCase()]=i[1])})}qB.exports=ro});var zB=b((u4e,XE)=>{"use strict";XE.exports=_t;XE.exports.default=_t;var oke={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function _t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:n=e}={}){let s=null,o=0,a=o,l=!1,c=null,u=o;if(e&&typeof e=="object"&&!Array.isArray(e)){let g;if(e.url===void 0&&(g="url")){let T={instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"};s===null?s=[T]:s.push(T),o++}}var h=u===o;h&&(l=!0,c=0);let f=o;if(e&&typeof e=="object"&&!Array.isArray(e)){let g;if(e.path===void 0&&(g="path")){let T={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"};s===null?s=[T]:s.push(T),o++}}var h=f===o;if(h&&l?(l=!1,c=[c,1]):h&&(l=!0,c=1),l)o=a,s!==null&&(a?s.length=a:s=null);else{let g={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};return s===null?s=[g]:s.push(g),o++,_t.errors=s,!1}if(o===0)if(e&&typeof e=="object"&&!Array.isArray(e)){if(e.url!==void 0){let g=e.url,T=o,N=o,R=!1,A=null,C=o;if(typeof g!="string"){let P=typeof g,L;if(L===void 0)if(P=="number"||P=="boolean")L=""+g;else if(g===null)L="";else{let q={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),o++}L!==void 0&&(g=L,e!==void 0&&(e.url=L))}var p=C===o;p&&(R=!0,A=0);let k=o;if(o===k)if(g&&typeof g=="object"&&!Array.isArray(g)){let P;if(g.pathname===void 0&&(P="pathname")){let L={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[L]:s.push(L),o++}else{if(g.protocol!==void 0){let L=g.protocol,q=o;if(typeof L!="string"){let G=typeof L,X;if(X===void 0)if(G=="number"||G=="boolean")X=""+L;else if(L===null)X="";else{let H={instancePath:t+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[H]:s.push(H),o++}X!==void 0&&(L=X,g!==void 0&&(g.protocol=X))}var d=q===o}else var d=!0;if(d){if(g.hostname!==void 0){let L=g.hostname,q=o;if(typeof L!="string"){let X=typeof L,H;if(H===void 0)if(X=="number"||X=="boolean")H=""+L;else if(L===null)H="";else{let W={instancePath:t+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[W]:s.push(W),o++}H!==void 0&&(L=H,g!==void 0&&(g.hostname=H))}var d=q===o}else var d=!0;if(d)if(g.pathname!==void 0){let L=g.pathname,q=o;if(typeof L!="string"){let X=typeof L,H;if(H===void 0)if(X=="number"||X=="boolean")H=""+L;else if(L===null)H="";else{let W={instancePath:t+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[W]:s.push(W),o++}H!==void 0&&(L=H,g!==void 0&&(g.pathname=H))}var d=q===o}else var d=!0}}}else{let P={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),o++}var p=k===o;if(p&&R?(R=!1,A=[A,1]):p&&(R=!0,A=1),R)o=N,s!==null&&(N?s.length=N:s=null);else{let P={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[P]:s.push(P),o++,_t.errors=s,!1}var m=T===o}else var m=!0;if(m){if(e.path!==void 0){let g=e.path,T=o,N=o,R=!1,A=null,C=o;if(typeof g!="string"){let L=typeof g,q;if(q===void 0)if(L=="number"||L=="boolean")q=""+g;else if(g===null)q="";else{let G={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),o++}q!==void 0&&(g=q,e!==void 0&&(e.path=q))}var _=C===o;_&&(R=!0,A=0);let k=o;if(o===k)if(g&&typeof g=="object"&&!Array.isArray(g)){let L;if(g.pathname===void 0&&(L="pathname")){let q={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};s===null?s=[q]:s.push(q),o++}else{if(g.protocol!==void 0){let q=g.protocol,G=o;if(typeof q!="string"){let X=typeof q,H;if(H===void 0)if(X=="number"||X=="boolean")H=""+q;else if(q===null)H="";else{let W={instancePath:t+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[W]:s.push(W),o++}H!==void 0&&(q=H,g!==void 0&&(g.protocol=H))}var y=G===o}else var y=!0;if(y){if(g.hostname!==void 0){let q=g.hostname,G=o;if(typeof q!="string"){let H=typeof q,W;if(W===void 0)if(H=="number"||H=="boolean")W=""+q;else if(q===null)W="";else{let ae={instancePath:t+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ae]:s.push(ae),o++}W!==void 0&&(q=W,g!==void 0&&(g.hostname=W))}var y=G===o}else var y=!0;if(y)if(g.pathname!==void 0){let q=g.pathname,G=o;if(typeof q!="string"){let H=typeof q,W;if(W===void 0)if(H=="number"||H=="boolean")W=""+q;else if(q===null)W="";else{let ae={instancePath:t+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ae]:s.push(ae),o++}W!==void 0&&(q=W,g!==void 0&&(g.pathname=W))}var y=G===o}else var y=!0}}}else{let L={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[L]:s.push(L),o++}var _=k===o;if(_&&R?(R=!1,A=[A,1]):_&&(R=!0,A=1),R)o=N,s!==null&&(N?s.length=N:s=null);else{let L={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[L]:s.push(L),o++,_t.errors=s,!1}var m=T===o}else var m=!0;if(m){if(e.cookies!==void 0){let g=e.cookies,T=o;if(o===T&&!(g&&typeof g=="object"&&!Array.isArray(g)))return _t.errors=[{instancePath:t+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===o}else var m=!0;if(m){if(e.headers!==void 0){let g=e.headers,T=o;if(o===T&&!(g&&typeof g=="object"&&!Array.isArray(g)))return _t.errors=[{instancePath:t+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===o}else var m=!0;if(m){if(e.query!==void 0){let g=e.query,T=o,N=o,R=!1,A=o;if(o===A&&!(g&&typeof g=="object"&&!Array.isArray(g))){let k={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[k]:s.push(k),o++}var w=A===o;if(R=R||w,!R){let k=o;if(typeof g!="string"){let L=typeof g,q;if(q===void 0)if(L=="number"||L=="boolean")q=""+g;else if(g===null)q="";else{let G={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),o++}q!==void 0&&(g=q,e!==void 0&&(e.query=q))}var w=k===o;R=R||w}if(R)o=N,s!==null&&(N?s.length=N:s=null);else{let k={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[k]:s.push(k),o++,_t.errors=s,!1}var m=T===o}else var m=!0;if(m){if(e.simulate!==void 0){let g=e.simulate,T=o;if(o===T)if(g&&typeof g=="object"&&!Array.isArray(g)){if(g.end!==void 0){let R=g.end,A=o;if(typeof R!="boolean"){let C;if(C===void 0)if(R==="false"||R===0||R===null)C=!1;else if(R==="true"||R===1)C=!0;else return _t.errors=[{instancePath:t+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;C!==void 0&&(R=C,g!==void 0&&(g.end=C))}var v=A===o}else var v=!0;if(v){if(g.split!==void 0){let R=g.split,A=o;if(typeof R!="boolean"){let k;if(k===void 0)if(R==="false"||R===0||R===null)k=!1;else if(R==="true"||R===1)k=!0;else return _t.errors=[{instancePath:t+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;k!==void 0&&(R=k,g!==void 0&&(g.split=k))}var v=A===o}else var v=!0;if(v){if(g.error!==void 0){let R=g.error,A=o;if(typeof R!="boolean"){let k;if(k===void 0)if(R==="false"||R===0||R===null)k=!1;else if(R==="true"||R===1)k=!0;else return _t.errors=[{instancePath:t+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;k!==void 0&&(R=k,g!==void 0&&(g.error=k))}var v=A===o}else var v=!0;if(v)if(g.close!==void 0){let R=g.close,A=o;if(typeof R!="boolean"){let k;if(k===void 0)if(R==="false"||R===0||R===null)k=!1;else if(R==="true"||R===1)k=!0;else return _t.errors=[{instancePath:t+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;k!==void 0&&(R=k,g!==void 0&&(g.close=k))}var v=A===o}else var v=!0}}}else return _t.errors=[{instancePath:t+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===o}else var m=!0;if(m){if(e.authority!==void 0){let g=e.authority,T=o;if(typeof g!="string"){let R=typeof g,A;if(A===void 0)if(R=="number"||R=="boolean")A=""+g;else if(g===null)A="";else return _t.errors=[{instancePath:t+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(g=A,e!==void 0&&(e.authority=A))}var m=T===o}else var m=!0;if(m){if(e.remoteAddress!==void 0){let g=e.remoteAddress,T=o;if(typeof g!="string"){let R=typeof g,A;if(A===void 0)if(R=="number"||R=="boolean")A=""+g;else if(g===null)A="";else return _t.errors=[{instancePath:t+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(g=A,e!==void 0&&(e.remoteAddress=A))}var m=T===o}else var m=!0;if(m){if(e.method!==void 0){let g=e.method,T=o;if(typeof g!="string"){let R=typeof g,A;if(A===void 0)if(R=="number"||R=="boolean")A=""+g;else if(g===null)A="";else return _t.errors=[{instancePath:t+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(g=A,e!==void 0&&(e.method=A))}if(!(g==="ACL"||g==="BIND"||g==="CHECKOUT"||g==="CONNECT"||g==="COPY"||g==="DELETE"||g==="GET"||g==="HEAD"||g==="LINK"||g==="LOCK"||g==="M-SEARCH"||g==="MERGE"||g==="MKACTIVITY"||g==="MKCALENDAR"||g==="MKCOL"||g==="MOVE"||g==="NOTIFY"||g==="OPTIONS"||g==="PATCH"||g==="POST"||g==="PROPFIND"||g==="PROPPATCH"||g==="PURGE"||g==="PUT"||g==="REBIND"||g==="REPORT"||g==="SEARCH"||g==="SOURCE"||g==="SUBSCRIBE"||g==="TRACE"||g==="UNBIND"||g==="UNLINK"||g==="UNLOCK"||g==="UNSUBSCRIBE"||g==="acl"||g==="bind"||g==="checkout"||g==="connect"||g==="copy"||g==="delete"||g==="get"||g==="head"||g==="link"||g==="lock"||g==="m-search"||g==="merge"||g==="mkactivity"||g==="mkcalendar"||g==="mkcol"||g==="move"||g==="notify"||g==="options"||g==="patch"||g==="post"||g==="propfind"||g==="proppatch"||g==="purge"||g==="put"||g==="rebind"||g==="report"||g==="search"||g==="source"||g==="subscribe"||g==="trace"||g==="unbind"||g==="unlink"||g==="unlock"||g==="unsubscribe"))return _t.errors=[{instancePath:t+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:oke.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var m=T===o}else var m=!0;if(m)if(e.validate!==void 0){let g=e.validate,T=o;if(typeof g!="boolean"){let R;if(R===void 0)if(g==="false"||g===0||g===null)R=!1;else if(g==="true"||g===1)R=!0;else return _t.errors=[{instancePath:t+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;R!==void 0&&(g=R,e!==void 0&&(e.validate=R))}var m=T===o}else var m=!0}}}}}}}}}else return _t.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _t.errors=s,o===0}});var HB=b((f4e,sh)=>{"use strict";var ake=require("node:assert"),QE=FB(),M0=MB(),U0="The dispatch function has already been invoked",UB=zB();function ek(e,t,r){return r===void 0?new nh(e,t):z0(e,t,r)}function BB(e,t,r,i){return r.once("error",function(n){this.destroyed&&i.destroy(n)}),r.once("close",function(){this.destroyed&&!this._error&&i.destroy()}),r.prepare(()=>e.call(t,r,i))}function z0(e,t,r){if(t=typeof t=="string"?{url:t}:t,t.validate!==!1&&(ake(typeof e=="function","dispatchFunc should be a function"),!UB(t)))throw new Error(UB.errors.map(o=>o.message));let i=t.server||{},n=t.Request?QE.CustomRequest:QE;if(e.request&&e.request.app===e&&(Object.setPrototypeOf(Object.getPrototypeOf(e.request),n.prototype),Object.setPrototypeOf(Object.getPrototypeOf(e.response),M0.prototype)),typeof r=="function"){let s=new n(t),o=new M0(s,r);return BB(e,i,s,o)}else return new Promise((s,o)=>{let a=new n(t),l=new M0(a,s,o);BB(e,i,a,l)})}function nh(e,t){typeof t=="string"?this.option={url:t}:this.option=Object.assign({},t),this.dispatch=e,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var lke=["delete","get","head","options","patch","post","put","trace"];lke.forEach(e=>{nh.prototype[e]=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(U0);return this.option.url=t,this.option.method=e.toUpperCase(),this}});var cke=["body","cookies","headers","payload","query"];cke.forEach(e=>{nh.prototype[e]=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(U0);return this.option[e]=t,this}});nh.prototype.end=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(U0);if(this._hasInvoked=!0,typeof e=="function")z0(this.dispatch,this.option,e);else return this._promise=z0(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(e=>{e!=="constructor"&&(nh.prototype[e]=function(...t){if(!this._promise){if(this._hasInvoked===!0)throw new Error(U0);this._hasInvoked=!0,this._promise=z0(this.dispatch,this.option)}return this._promise[e](...t)})});function uke(e){return e instanceof QE||e instanceof M0||e&&e.constructor&&e.constructor.name==="_CustomLMRRequest"}sh.exports=ek;sh.exports.default=ek;sh.exports.inject=ek;sh.exports.isInjection=uke});var sH=b((h4e,uh)=>{"use strict";var fke="4.29.1",hke=hN(),tk=require("node:http"),oh,{kAvvioBoot:ah,kChildren:rk,kServerBindings:VB,kBodyLimit:dke,kRoutePrefix:WB,kLogLevel:pke,kLogSerializers:mke,kHooks:ik,kSchemaController:io,kRequestAcceptVersion:gke,kReplySerializerDefault:GB,kContentTypeParser:yke,kReply:vke,kRequest:_ke,kFourOhFour:bke,kState:dt,kOptions:nk,kPluginNameChain:lh,kSchemaErrorFormatter:sk,kErrorHandler:B0,kKeepAliveConnections:ok,kChildLoggerFactory:ak,kGenReqId:lk}=Pt(),{createServer:wke,compileValidateHTTPVersion:Ske}=FN(),ch=Vm(),H0=lg(),xke=cg(),{supportedMethods:Eke}=Qw(),uc=nS(),fa=dS(),YB=dE(),{Hooks:kke,hookRunnerApplication:KB,supportedHooks:ck}=Ns(),{createLogger:Rke,createChildLogger:JB,defaultChildLoggerFactory:Tke}=Uu(),ZB=_E(),{getGenReqId:XB,reqIdGenFactory:QB}=g0(),{buildRouting:Oke,validateBodyLimitOption:Ake}=nB(),Cke=fB(),nH=pB(),Pke=xB(),{FSTDEP009:Ike}=sn(),Nke=kB(),{appendStackTrace:$ke,AVVIO_ERRORS_MAP:eH,...ha}=rr(),{defaultInitOptions:Ur}=nH,{FST_ERR_ASYNC_CONSTRAINT:Fke,FST_ERR_BAD_URL:Lke,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:Dke,FST_ERR_OPTIONS_NOT_OBJ:jke,FST_ERR_QSP_NOT_FN:qke,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:Mke,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:zke,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Uke,FST_ERR_VERSION_CONSTRAINT_NOT_STR:Bke,FST_ERR_INSTANCE_ALREADY_LISTENING:Hke,FST_ERR_REOPENED_CLOSE_SERVER:Vke,FST_ERR_ROUTE_REWRITE_NOT_STR:Wke,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:tH,FST_ERR_ERROR_HANDLER_NOT_FN:Gke}=ha,{buildErrorHandler:rH}=Hu();function Yke(e){let t={};return["errorHandler","logLevel","logSerializers"].concat(ck).forEach(i=>{t[i]=e.store[i]}),Object.assign({},t)}function uk(e){if(e=e||{},typeof e!="object")throw new jke;if(e.querystringParser&&typeof e.querystringParser!="function")throw new qke(typeof e.querystringParser);if(e.schemaController&&e.schemaController.bucket&&typeof e.schemaController.bucket!="function")throw new Mke(typeof e.schemaController.bucket);Ake(e.bodyLimit);let t=e.requestIdHeader===!1?!1:(e.requestIdHeader||Ur.requestIdHeader).toLowerCase(),r=QB(t,e.genReqId),i=e.requestIdLogLabel||"reqId",n=e.bodyLimit||Ur.bodyLimit,s=e.disableRequestLogging||!1,o=Object.assign({customOptions:{},plugins:[]},e.ajv),a=e.frameworkErrors;if(!o.customOptions||Object.prototype.toString.call(o.customOptions)!=="[object Object]")throw new zke(typeof o.customOptions);if(!o.plugins||!Array.isArray(o.plugins))throw new Uke(typeof o.plugins);let{logger:l,hasLogger:c}=Rke(e);e.connectionTimeout=e.connectionTimeout||Ur.connectionTimeout,e.keepAliveTimeout=e.keepAliveTimeout||Ur.keepAliveTimeout,e.maxRequestsPerSocket=e.maxRequestsPerSocket||Ur.maxRequestsPerSocket,e.requestTimeout=e.requestTimeout||Ur.requestTimeout,e.logger=l,e.requestIdHeader=t,e.requestIdLogLabel=i,e.disableRequestLogging=s,e.ajv=o,e.clientErrorHandler=e.clientErrorHandler||W;let u=nH(e);e.exposeHeadRoutes=u.exposeHeadRoutes;let f=e.constraints;e.versioning&&(Ike(),f={...f,version:{name:"version",mustMatchWhenDerived:!0,storage:e.versioning.storage,deriveConstraint:e.versioning.deriveVersion,validate(I){if(typeof I!="string")throw new Bke}}});let h=Oke({config:{defaultRoute:ae,onBadUrl:V,constraints:f,ignoreTrailingSlash:e.ignoreTrailingSlash||Ur.ignoreTrailingSlash,ignoreDuplicateSlashes:e.ignoreDuplicateSlashes||Ur.ignoreDuplicateSlashes,maxParamLength:e.maxParamLength||Ur.maxParamLength,caseSensitive:e.caseSensitive,allowUnsafeRegex:e.allowUnsafeRegex||Ur.allowUnsafeRegex,buildPrettyMeta:Yke,querystringParser:e.querystringParser,useSemicolonDelimiter:e.useSemicolonDelimiter??Ur.useSemicolonDelimiter}}),d=Cke(e),p=U(h,e);e.http2SessionTimeout=u.http2SessionTimeout;let{server:m,listen:y}=wke(e,p),_=typeof m.closeAllConnections=="function",w=typeof m.closeIdleConnections=="function",v=e.forceCloseConnections;if(v==="idle"&&!w)throw new Dke;typeof v!="boolean"&&(v=w?"idle":!1);let g=!_&&v===!0?new Set:Nke(),T=ch.setupResponseListeners,N=YB.buildSchemaController(null,e.schemaController),R={[dt]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[ok]:g,[nk]:e,[rk]:[],[VB]:[],[dke]:n,[WB]:"",[pke]:"",[mke]:null,[ik]:new kke,[io]:N,[sk]:null,[B0]:rH(),[ak]:Tke,[GB]:null,[yke]:new fa(n,e.onProtoPoisoning||Ur.onProtoPoisoning,e.onConstructorPoisoning||Ur.onConstructorPoisoning),[vke]:ch.buildReply(ch),[_ke]:H0.buildRequest(H0,e.trustProxy),[bke]:d,[ZB.kRegisteredPlugins]:[],[lh]:["fastify"],[ah]:null,[lk]:r,routing:p,getDefaultRoute:h.getDefaultRoute.bind(h),setDefaultRoute:h.setDefaultRoute.bind(h),delete:function($,z,j){return h.prepareRoute.call(this,{method:"DELETE",url:$,options:z,handler:j})},get:function($,z,j){return h.prepareRoute.call(this,{method:"GET",url:$,options:z,handler:j})},head:function($,z,j){return h.prepareRoute.call(this,{method:"HEAD",url:$,options:z,handler:j})},patch:function($,z,j){return h.prepareRoute.call(this,{method:"PATCH",url:$,options:z,handler:j})},post:function($,z,j){return h.prepareRoute.call(this,{method:"POST",url:$,options:z,handler:j})},put:function($,z,j){return h.prepareRoute.call(this,{method:"PUT",url:$,options:z,handler:j})},options:function($,z,j){return h.prepareRoute.call(this,{method:"OPTIONS",url:$,options:z,handler:j})},all:function($,z,j){return h.prepareRoute.call(this,{method:Eke,url:$,options:z,handler:j})},route:function($){return h.route.call(this,{options:$})},hasRoute:function($){return h.hasRoute.call(this,{options:$})},findRoute:function($){return h.findRoute($)},log:l,withTypeProvider:G,addHook:X,addSchema:H,getSchema:N.getSchema.bind(N),getSchemas:N.getSchemas.bind(N),setValidatorCompiler:Ie,setSerializerCompiler:Hr,setSchemaController:K,setReplySerializer:E,setSchemaErrorFormatter:ii,setGenReqId:D,addContentTypeParser:fa.helpers.addContentTypeParser,hasContentTypeParser:fa.helpers.hasContentTypeParser,getDefaultJsonParser:fa.defaultParsers.getDefaultJsonParser,defaultTextParser:fa.defaultParsers.defaultTextParser,removeContentTypeParser:fa.helpers.removeContentTypeParser,removeAllContentTypeParsers:fa.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(I){return this[ZB.kRegisteredPlugins].includes(I)||this[lh].includes(I)},listen:y,server:m,addresses:function(){let I=this[VB].map($=>$.address());return I.push(this.server.address()),I.filter($=>$)},decorate:uc.add,hasDecorator:uc.exist,decorateReply:uc.decorateReply,decorateRequest:uc.decorateRequest,hasRequestDecorator:uc.existRequest,hasReplyDecorator:uc.existReply,inject:L,printRoutes:O,setNotFoundHandler:re,setErrorHandler:x,setChildLoggerFactory:S,initialConfig:u,addConstraintStrategy:h.addConstraintStrategy.bind(h),hasConstraintStrategy:h.hasConstraintStrategy.bind(h)};Object.defineProperties(R,{listeningOrigin:{get(){let I=this.addresses().slice(-1).pop();if(typeof I=="string")return I;let $=I.family==="IPv6"?`[${I.address}]`:I.address;return`${this[nk].https?"https":"http"}://${$}:${I.port}`}},pluginName:{configurable:!0,get(){return this[lh].length>1?this[lh].join(" -> "):this[lh][0]}},prefix:{configurable:!0,get(){return this[WB]}},validatorCompiler:{configurable:!0,get(){return this[io].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[io].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[ak]}},version:{configurable:!0,get(){return fke}},errorHandler:{configurable:!0,get(){return this[B0].func}},genReqId:{configurable:!0,get(){return this[lk]}}}),e.schemaErrorFormatter&&(iH(e.schemaErrorFormatter),R[sk]=e.schemaErrorFormatter.bind(R));let A=Number(e.pluginTimeout),C=hke(R,{autostart:!1,timeout:isNaN(A)===!1?A:Ur.pluginTimeout,expose:{use:"register"}});C.override=Pke,C.on("start",()=>R[dt].started=!0),R[ah]=R.ready,R.ready=q,R.printPlugins=C.prettyPrint.bind(C),C.once("preReady",()=>{R.onClose((I,$)=>{R[dt].closing=!0,h.closeRoutes(),KB("preClose",R[ah],R,function(){if(R[dt].listening){if(v==="idle")I.server.closeIdleConnections();else if(_&&v)I.server.closeAllConnections();else if(v===!0)for(let z of R[ok])z.destroy(),R[ok].delete(z)}!e.serverFactory||R[dt].listening?I.server.close(function(z){z&&z.code!=="ERR_SERVER_NOT_RUNNING"?$(null):$()}):process.nextTick($,null)})})});let k=new xke({server:R,config:{}});R.setNotFoundHandler(),d.arrange404(R),h.setup(e,{avvio:C,fourOhFour:d,logger:l,hasLogger:c,setupResponseListeners:T,throwIfAlreadyStarted:P,validateHTTPVersion:Ske(e),keepAliveConnections:g}),m.on("clientError",e.clientErrorHandler.bind(R));try{let $=require("node:diagnostics_channel").channel("fastify.initialization");$.hasSubscribers&&$.publish({fastify:R})}catch{}return"asyncDispose"in Symbol&&(R[Symbol.asyncDispose]=function(){return R.close()}),R;function P(I){if(R[dt].started)throw new Hke(I)}function L(I,$){if(oh===void 0&&(oh=HB()),R[dt].started){if(R[dt].closing){let z=new Vke;if($){$(z);return}else return Promise.reject(z)}return oh(p,I,$)}if($)this.ready(z=>{z?$(z,null):oh(p,I,$)});else return oh((z,j)=>{this.ready(function(F){if(F){j.emit("error",F);return}p(z,j)})},I)}function q(I){if(this[dt].readyPromise!==null){if(I!=null){this[dt].readyPromise.then(()=>I(null,R),I);return}return this[dt].readyPromise}let $,z;if(process.nextTick(j),this[dt].readyPromise=new Promise(function(M,J){$=M,z=J}),I)this[dt].readyPromise.then(()=>I(null,R),I);else return this[dt].readyPromise;function j(){R[ah]((M,J)=>{M||R[dt].started||R[dt].ready||R[dt].booting?F(M):(R[dt].booting=!0,KB("onReady",R[ah],R,F)),J()})}function F(M){if(M=M!=null&&eH[M.code]!=null?$ke(M,new eH[M.code](M.message)):M,M)return z(M);$(R),R[dt].booting=!1,R[dt].ready=!0,R[dt].promise=null}}function G(){return this}function X(I,$){if(P('Cannot call "addHook"!'),$==null)throw new ha.FST_ERR_HOOK_INVALID_HANDLER(I,$);if(I==="onSend"||I==="preSerialization"||I==="onError"||I==="preParsing"){if($.constructor.name==="AsyncFunction"&&$.length===4)throw new ha.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(I==="onReady"||I==="onListen"){if($.constructor.name==="AsyncFunction"&&$.length!==0)throw new ha.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(I==="onRequestAbort"){if($.constructor.name==="AsyncFunction"&&$.length!==1)throw new ha.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if($.constructor.name==="AsyncFunction"&&$.length===3)throw new ha.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return I==="onClose"?this.onClose($.bind(this)):I==="onReady"||I==="onListen"||I==="onRoute"?this[ik].add(I,$):this.after((j,F)=>{z.call(this,I,$),F(j)}),this;function z(j,F){this[ik].add(j,F),this[rk].forEach(M=>z.call(M,j,F))}}function H(I){return P('Cannot call "addSchema"!'),this[io].add(I),this[rk].forEach($=>$.addSchema(I)),this}function W(I,$){if(I.code==="ECONNRESET"||$.destroyed)return;let z,j,F,M;I.code==="ERR_HTTP_REQUEST_TIMEOUT"?(j="408",F=tk.STATUS_CODES[j],z=`{"error":"${F}","message":"Client Timeout","statusCode":408}`,M="timeout"):I.code==="HPE_HEADER_OVERFLOW"?(j="431",F=tk.STATUS_CODES[j],z=`{"error":"${F}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,M="header_overflow"):(j="400",F=tk.STATUS_CODES[j],z=`{"error":"${F}","message":"Client Error","statusCode":400}`,M="error"),this.log.trace({err:I},`client ${M}`),$.writable&&$.write(`HTTP/1.1 ${j} ${F}\r
Content-Length: ${z.length}\r
Content-Type: application/json\r
\r
${z}`),$.destroy(I)}function ae(I,$){I.headers["accept-version"]!==void 0&&(I.headers[gke]=I.headers["accept-version"],I.headers["accept-version"]=void 0),d.router.lookup(I,$)}function V(I,$,z){if(a){let F=XB(k.server,$),M=JB(k,l,$,F),J=new H0(F,null,$,null,M,k),ve=new ch(z,J,M);return s===!1&&M.info({req:J},"incoming request"),a(new Lke(I),J,ve)}let j=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${I}' is not a valid url component","statusCode":400}`;z.writeHead(400,{"Content-Type":"application/json","Content-Length":j.length}),z.end(j)}function Ve(I,$,z){if(I!==!1)return function(F){if(F){if(a){let J=XB(k.server,$),ve=JB(k,l,$,J),Q=new H0(J,null,$,null,ve,k),he=new ch(z,Q,ve);return s===!1&&ve.info({req:Q},"incoming request"),a(new Fke,Q,he)}let M='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';z.writeHead(500,{"Content-Type":"application/json","Content-Length":M.length}),z.end(M)}}}function re(I,$){return P('Cannot call "setNotFoundHandler"!'),d.setNotFoundHandler.call(this,I,$,C,h.routeHandler),this}function Ie(I){return P('Cannot call "setValidatorCompiler"!'),this[io].setValidatorCompiler(I),this}function ii(I){return P('Cannot call "setSchemaErrorFormatter"!'),iH(I),this[sk]=I.bind(this),this}function Hr(I){return P('Cannot call "setSerializerCompiler"!'),this[io].setSerializerCompiler(I),this}function K(I){P('Cannot call "setSchemaController"!');let $=this[io],z=YB.buildSchemaController($,Object.assign({},$.opts,I));return this[io]=z,this.getSchema=z.getSchema.bind(z),this.getSchemas=z.getSchemas.bind(z),this}function E(I){return P('Cannot call "setReplySerializer"!'),this[GB]=I,this}function x(I){if(P('Cannot call "setErrorHandler"!'),typeof I!="function")throw new Gke;return this[B0]=rH(this[B0],I.bind(this)),this}function S(I){return P('Cannot call "setChildLoggerFactory"!'),this[ak]=I,this}function O(I={}){return I.includeMeta=I.includeHooks?I.includeMeta?ck.concat(I.includeMeta):ck:I.includeMeta,h.printRoutes(I)}function U(I,{rewriteUrl:$,logger:z}){let j;return function(M,J){if(j===void 0&&(j=I.isAsyncConstraint()),$){M.originalUrl=M.url;let ve=$.call(R,M);if(typeof ve=="string")M.url=ve;else{let Q=new Wke(M.url,typeof ve);M.destroy(Q)}}I.routing(M,J,Ve(j,M,J))}}function D(I){return P('Cannot call "setGenReqId"!'),this[lk]=QB(this[nk].requestIdHeader,I),this}}function iH(e){if(typeof e!="function")throw new tH(typeof e);if(e.constructor.name==="AsyncFunction")throw new tH("AsyncFunction")}uh.exports=uk;uh.exports.errorCodes=ha;uh.exports.fastify=uk;uh.exports.default=uk});var uH=b((d4e,cH)=>{"use strict";cH.exports=aH;function aH(e,t,r){e instanceof RegExp&&(e=oH(e,r)),t instanceof RegExp&&(t=oH(t,r));var i=lH(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function oH(e,t){var r=t.match(e);return r?r[0]:null}aH.range=lH;function lH(e,t,r){var i,n,s,o,a,l=r.indexOf(e),c=r.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(i=[],s=r.length;u>=0&&!a;)u==l?(i.push(u),l=r.indexOf(e,u+1)):i.length==1?a=[i.pop(),c]:(n=i.pop(),n<s&&(s=n,o=c),c=r.indexOf(t,u+1)),u=l<c&&l>=0?l:c;i.length&&(a=[s,o])}return a}});var dk=b((p4e,yH)=>{var fH=uH();yH.exports=Zke;var hH="\0SLASH"+Math.random()+"\0",dH="\0OPEN"+Math.random()+"\0",hk="\0CLOSE"+Math.random()+"\0",pH="\0COMMA"+Math.random()+"\0",mH="\0PERIOD"+Math.random()+"\0";function fk(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Kke(e){return e.split("\\\\").join(hH).split("\\{").join(dH).split("\\}").join(hk).split("\\,").join(pH).split("\\.").join(mH)}function Jke(e){return e.split(hH).join("\\").split(dH).join("{").split(hk).join("}").split(pH).join(",").split(mH).join(".")}function gH(e){if(!e)return[""];var t=[],r=fH("{","}",e);if(!r)return e.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=gH(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function Zke(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),fh(Kke(e),!0).map(Jke)):[]}function Xke(e){return"{"+e+"}"}function Qke(e){return/^-?0\d/.test(e)}function eRe(e,t){return e<=t}function tRe(e,t){return e>=t}function fh(e,t){var r=[],i=fH("{","}",e);if(!i)return[e];var n=i.pre,s=i.post.length?fh(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),u=l||c,f=i.body.indexOf(",")>=0;if(!u&&!f)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+hk+i.post,fh(e)):[e];var h;if(u)h=i.body.split(/\.\./);else if(h=gH(i.body),h.length===1&&(h=fh(h[0],!1).map(Xke),h.length===1))return s.map(function(k){return i.pre+h[0]+k});var d;if(u){var p=fk(h[0]),m=fk(h[1]),y=Math.max(h[0].length,h[1].length),_=h.length==3?Math.abs(fk(h[2])):1,w=eRe,v=m<p;v&&(_*=-1,w=tRe);var g=h.some(Qke);d=[];for(var T=p;w(T,m);T+=_){var N;if(c)N=String.fromCharCode(T),N==="\\"&&(N="");else if(N=String(T),g){var R=y-N.length;if(R>0){var A=new Array(R+1).join("0");T<0?N="-"+A+N.slice(1):N=A+N}}d.push(N)}}else{d=[];for(var C=0;C<h.length;C++)d.push.apply(d,fh(h[C],!1))}for(var C=0;C<d.length;C++)for(var o=0;o<s.length;o++){var a=n+d[C]+s[o];(!t||u||a)&&r.push(a)}}return r}});var vH=b(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.assertValidPattern=void 0;var rRe=1024*64,iRe=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>rRe)throw new TypeError("pattern is too long")};V0.assertValidPattern=iRe});var bH=b(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.parseClass=void 0;var nRe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hh=e=>e.replace(/[[\]\\-]/g,"\\$&"),sRe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),_H=e=>e.join(""),oRe=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,c=!1,u=r,f="";e:for(;s<e.length;){let m=e.charAt(s);if((m==="!"||m==="^")&&s===r+1){c=!0,s++;continue}if(m==="]"&&o&&!l){u=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[y,[_,w,v]]of Object.entries(nRe))if(e.startsWith(y,s)){if(f)return["$.",!1,e.length-r,!0];s+=y.length,v?n.push(_):i.push(_),a=a||w;continue e}}if(l=!1,f){m>f?i.push(hh(f)+"-"+hh(m)):m===f&&i.push(hh(m)),f="",s++;continue}if(e.startsWith("-]",s+1)){i.push(hh(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){f=m,s+=2;continue}i.push(hh(m)),s++}if(u<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,e.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!c){let m=i[0].length===2?i[0].slice(-1):i[0];return[sRe(m),!1,u-r,!1]}let h="["+(c?"^":"")+_H(i)+"]",d="["+(c?"":"^")+_H(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,u-r,!0]};W0.parseClass=oRe});var Y0=b(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.unescape=void 0;var aRe=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");G0.unescape=aRe});var gk=b(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});Z0.AST=void 0;var lRe=bH(),K0=Y0(),cRe=new Set(["!","?","+","*","@"]),wH=e=>cRe.has(e),uRe="(?!(?:^|/)\\.\\.?(?:$|/))",J0="(?!\\.)",fRe=new Set(["[","."]),hRe=new Set(["..","."]),dRe=new Set("().*{}+?[]^$\\!"),pRe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mk="[^/]",SH=mk+"*?",xH=mk+"+?",pk=class e{type;#e;#t;#s=!1;#i=[];#o;#v;#p;#a=!1;#u;#l;#c=!1;constructor(t,r,i={}){this.type=t,t&&(this.#t=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#u=this.#e===this?i:this.#e.#u,this.#p=this.#e===this?[]:this.#e.#p,t==="!"&&!this.#e.#a&&this.#p.push(this),this.#v=this.#o?this.#o.#i.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let t of this.#i)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#i.map(t=>String(t)).join("|")+")":this.#l=this.#i.map(t=>String(t)).join("")}#r(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let t;for(;t=this.#p.pop();){if(t.type!=="!")continue;let r=t,i=r.#o;for(;i;){for(let n=r.#v+1;!i.type&&n<i.#i.length;n++)for(let s of t.#i){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#i[n])}r=i,i=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#i.push(r)}}toJSON(){let t=this.type===null?this.#i.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#i.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#v===0)return!0;let t=this.#o;for(let r=0;r<this.#v;r++){let i=t.#i[r];if(!(i instanceof e&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#i.length:0;return this.#v===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let i of this.#i)r.copyIn(i);return r}static#h(t,r,i,n){let s=!1,o=!1,a=-1,l=!1;if(r.type===null){let d=i,p="";for(;d<t.length;){let m=t.charAt(d++);if(s||m==="\\"){s=!s,p+=m;continue}if(o){d===a+1?(m==="^"||m==="!")&&(l=!0):m==="]"&&!(d===a+2&&l)&&(o=!1),p+=m;continue}else if(m==="["){o=!0,a=d,l=!1,p+=m;continue}if(!n.noext&&wH(m)&&t.charAt(d)==="("){r.push(p),p="";let y=new e(m,r);d=e.#h(t,y,d,n),r.push(y);continue}p+=m}return r.push(p),d}let c=i+1,u=new e(null,r),f=[],h="";for(;c<t.length;){let d=t.charAt(c++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){c===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(c===a+2&&l)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=c,l=!1,h+=d;continue}if(wH(d)&&t.charAt(c)==="("){u.push(h),h="";let p=new e(d,u);u.push(p),c=e.#h(t,p,c,n);continue}if(d==="|"){u.push(h),h="",f.push(u),u=new e(null,r);continue}if(d===")")return h===""&&r.#i.length===0&&(r.#c=!0),u.push(h),h="",r.push(...f,u),c;h+=d}return r.type=null,r.#t=void 0,r.#i=[t.substring(i-1)],c}static fromGlob(t,r={}){let i=new e(null,void 0,r);return e.#h(t,i,0,r),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#t||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;let a=(this.#u.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#u}toRegExpSource(t){let r=t??!!this.#u.dot;if(this.#e===this&&this.#r(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#i.map(d=>{let[p,m,y,_]=typeof d=="string"?e.#m(d,this.#t,l):d.toRegExpSource(t);return this.#t=this.#t||y,this.#s=this.#s||_,p}).join(""),u="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&hRe.has(this.#i[0]))){let p=fRe,m=r&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),y=!r&&!t&&p.has(c.charAt(0));u=m?uRe:y?J0:""}let f="";return this.isEnd()&&this.#e.#a&&this.#o?.type==="!"&&(f="(?:$|\\/)"),[u+c+f,(0,K0.unescape)(c),this.#t=!!this.#t,this.#s]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#_(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString();return this.#i=[l],this.type=null,this.#t=void 0,[l,(0,K0.unescape)(this.toString()),!1,!1]}let o=!i||t||r||!J0?"":this.#_(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#c)a=(this.isStart()&&!r?J0:"")+xH;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?J0:"")+SH+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,K0.unescape)(s),this.#t=!!this.#t,this.#s]}#_(t){return this.#i.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(t);return this.#s=this.#s||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#m(t,r,i=!1){let n=!1,s="",o=!1;for(let a=0;a<t.length;a++){let l=t.charAt(a);if(n){n=!1,s+=(dRe.has(l)?"\\":"")+l;continue}if(l==="\\"){a===t.length-1?s+="\\\\":n=!0;continue}if(l==="["){let[c,u,f,h]=(0,lRe.parseClass)(t,a);if(f){s+=c,o=o||u,a+=f-1,r=r||h;continue}}if(l==="*"){i&&t==="*"?s+=xH:s+=SH,r=!0;continue}if(l==="?"){s+=mk,r=!0;continue}s+=pRe(l)}return[s,(0,K0.unescape)(t),!!r,o]}};Z0.AST=pk});var yk=b(X0=>{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.escape=void 0;var mRe=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");X0.escape=mRe});var no=b(ie=>{"use strict";var gRe=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ie,"__esModule",{value:!0});ie.unescape=ie.escape=ie.AST=ie.Minimatch=ie.match=ie.makeRe=ie.braceExpand=ie.defaults=ie.filter=ie.GLOBSTAR=ie.sep=ie.minimatch=void 0;var yRe=gRe(dk()),Q0=vH(),RH=gk(),vRe=yk(),_Re=Y0(),bRe=(e,t,r={})=>((0,Q0.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new da(t,r).match(e));ie.minimatch=bRe;var wRe=/^\*+([^+@!?\*\[\(]*)$/,SRe=e=>t=>!t.startsWith(".")&&t.endsWith(e),xRe=e=>t=>t.endsWith(e),ERe=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),kRe=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),RRe=/^\*+\.\*+$/,TRe=e=>!e.startsWith(".")&&e.includes("."),ORe=e=>e!=="."&&e!==".."&&e.includes("."),ARe=/^\.\*+$/,CRe=e=>e!=="."&&e!==".."&&e.startsWith("."),PRe=/^\*+$/,IRe=e=>e.length!==0&&!e.startsWith("."),NRe=e=>e.length!==0&&e!=="."&&e!=="..",$Re=/^\?+([^+@!?\*\[\(]*)?$/,FRe=([e,t=""])=>{let r=TH([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},LRe=([e,t=""])=>{let r=OH([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},DRe=([e,t=""])=>{let r=OH([e]);return t?i=>r(i)&&i.endsWith(t):r},jRe=([e,t=""])=>{let r=TH([e]);return t?i=>r(i)&&i.endsWith(t):r},TH=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},OH=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},AH=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",EH={win32:{sep:"\\"},posix:{sep:"/"}};ie.sep=AH==="win32"?EH.win32.sep:EH.posix.sep;ie.minimatch.sep=ie.sep;ie.GLOBSTAR=Symbol("globstar **");ie.minimatch.GLOBSTAR=ie.GLOBSTAR;var qRe="[^/]",MRe=qRe+"*?",zRe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",URe="(?:(?!(?:\\/|^)\\.).)*?",BRe=(e,t={})=>r=>(0,ie.minimatch)(r,e,t);ie.filter=BRe;ie.minimatch.filter=ie.filter;var gi=(e,t={})=>Object.assign({},e,t),HRe=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ie.minimatch;let t=ie.minimatch;return Object.assign((i,n,s={})=>t(i,n,gi(e,s)),{Minimatch:class extends t.Minimatch{constructor(n,s={}){super(n,gi(e,s))}static defaults(n){return t.defaults(gi(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,s,o={}){super(n,s,gi(e,o))}static fromGlob(n,s={}){return t.AST.fromGlob(n,gi(e,s))}},unescape:(i,n={})=>t.unescape(i,gi(e,n)),escape:(i,n={})=>t.escape(i,gi(e,n)),filter:(i,n={})=>t.filter(i,gi(e,n)),defaults:i=>t.defaults(gi(e,i)),makeRe:(i,n={})=>t.makeRe(i,gi(e,n)),braceExpand:(i,n={})=>t.braceExpand(i,gi(e,n)),match:(i,n,s={})=>t.match(i,n,gi(e,s)),sep:t.sep,GLOBSTAR:ie.GLOBSTAR})};ie.defaults=HRe;ie.minimatch.defaults=ie.defaults;var VRe=(e,t={})=>((0,Q0.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,yRe.default)(e));ie.braceExpand=VRe;ie.minimatch.braceExpand=ie.braceExpand;var WRe=(e,t={})=>new da(e,t).makeRe();ie.makeRe=WRe;ie.minimatch.makeRe=ie.makeRe;var GRe=(e,t,r={})=>{let i=new da(t,r);return e=e.filter(n=>i.match(n)),i.options.nonull&&!e.length&&e.push(t),e};ie.match=GRe;ie.minimatch.match=ie.match;var kH=/[?*]|[+@!]\(.*?\)|\[|\]/,YRe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),da=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,Q0.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||AH,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!kH.test(s[2]))&&!kH.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(c)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let n=0;n<t[i].length;n++)t[i][n]==="**"&&(t[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){let s=t[n];n===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(n,1),n--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){let n=t[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],c=i[n+3];if(a!==".."||!l||l==="."||l===".."||!c||c==="."||c==="..")continue;r=!0,i.splice(n,1);let u=i.slice(0);u[n]="**",t.push(u),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){let n=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(n){t[r]=[],t[i]=n;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let n=0,s=0,o=[],a="";for(;n<t.length&&s<r.length;)if(t[n]===r[s])o.push(a==="b"?r[s]:t[n]),n++,s++;else if(i&&t[n]==="**"&&r[s]===t[n+1])o.push(t[n]),n++;else if(i&&r[s]==="**"&&t[n]===r[s+1])o.push(r[s]),s++;else if(t[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[n]),n++,s++}else if(r[s]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,i=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let n=this.options;if(this.isWindows){let m=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!m&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),_=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!_&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),v=y?3:m?0:void 0,g=w?3:_?0:void 0;if(typeof v=="number"&&typeof g=="number"){let[T,N]=[t[v],r[g]];T.toLowerCase()===N.toLowerCase()&&(r[g]=T,g>v?r=r.slice(g):v>g&&(t=t.slice(v)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,l=t.length,c=r.length;o<l&&a<c;o++,a++){this.debug("matchOne loop");var u=r[a],f=t[o];if(this.debug(r,u,f),u===!1)return!1;if(u===ie.GLOBSTAR){this.debug("GLOBSTAR",[r,u,f]);var h=o,d=a+1;if(d===c){for(this.debug("** at the end");o<l;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<l;){var p=t[h];if(this.debug(`
globstar while`,t,h,r,d,p),this.matchOne(t.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,l,p),!0;if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,t,h,r,d),h===l))}let m;if(typeof u=="string"?(m=f===u,this.debug("string match",u,f,m)):(m=u.test(f),this.debug("pattern match",u,f,m)),!m)return!1}if(o===l&&a===c)return!0;if(o===l)return i;if(a===c)return o===l-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ie.braceExpand)(this.pattern,this.options)}parse(t){(0,Q0.assertValidPattern)(t);let r=this.options;if(t==="**")return ie.GLOBSTAR;if(t==="")return"";let i,n=null;(i=t.match(PRe))?n=r.dot?NRe:IRe:(i=t.match(wRe))?n=(r.nocase?r.dot?kRe:ERe:r.dot?xRe:SRe)(i[1]):(i=t.match($Re))?n=(r.nocase?r.dot?LRe:FRe:r.dot?DRe:jRe)(i):(i=t.match(RRe))?n=r.dot?ORe:TRe:(i=t.match(ARe))&&(n=CRe);let s=RH.AST.fromGlob(t,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?MRe:r.dot?zRe:URe,n=new Set(r.nocase?["i"]:[]),s=t.map(l=>{let c=l.map(u=>{if(u instanceof RegExp)for(let f of u.flags.split(""))n.add(f);return typeof u=="string"?YRe(u):u===ie.GLOBSTAR?ie.GLOBSTAR:u._src});return c.forEach((u,f)=>{let h=c[f+1],d=c[f-1];u!==ie.GLOBSTAR||d===ie.GLOBSTAR||(d===void 0?h!==void 0&&h!==ie.GLOBSTAR?c[f+1]="(?:\\/|"+i+"\\/)?"+h:c[f]=i:h===void 0?c[f-1]=d+"(?:\\/|"+i+")?":h!==ie.GLOBSTAR&&(c[f-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,c[f+1]=ie.GLOBSTAR))}),c.filter(u=>u!==ie.GLOBSTAR).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let i=this.options;this.isWindows&&(t=t.split("\\").join("/"));let n=this.slashSplit(t);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],c=n;if(i.matchBase&&l.length===1&&(c=[o]),this.matchOne(c,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return ie.minimatch.defaults(t).Minimatch}};ie.Minimatch=da;var KRe=gk();Object.defineProperty(ie,"AST",{enumerable:!0,get:function(){return KRe.AST}});var JRe=yk();Object.defineProperty(ie,"escape",{enumerable:!0,get:function(){return JRe.escape}});var ZRe=Y0();Object.defineProperty(ie,"unescape",{enumerable:!0,get:function(){return ZRe.unescape}});ie.minimatch.AST=RH.AST;ie.minimatch.Minimatch=da;ie.minimatch.escape=vRe.escape;ie.minimatch.unescape=_Re.unescape});var $H=b(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.LRUCache=void 0;var fc=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,PH=new Set,vk=typeof process=="object"&&process?process:{},IH=(e,t,r,i)=>{typeof vk.emitWarning=="function"?vk.emitWarning(e,t,r,i):console.error(`[${r}] ${t}: ${e}`)},ey=globalThis.AbortController,CH=globalThis.AbortSignal;if(typeof ey>"u"){CH=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},ey=class{constructor(){t()}signal=new CH;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let e=vk.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,IH("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var XRe=e=>!PH.has(e),k4e=Symbol("type"),so=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),NH=e=>so(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?hc:null:null,hc=class extends Array{constructor(t){super(t),this.fill(0)}},_k=class e{heap;length;static#e=!1;static create(t){let r=NH(t);if(!r)return[];e.#e=!0;let i=new e(t,r);return e.#e=!1,i}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},bk=class e{#e;#t;#s;#i;#o;#v;#p;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#u;#l;#c;#r;#h;#_;#m;#g;#T;#y;#O;#S;#w;#b;#k;#d;#C;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#w,sizes:t.#O,keyMap:t.#l,keyList:t.#c,valList:t.#r,next:t.#h,prev:t.#_,get head(){return t.#m},get tail(){return t.#g},free:t.#T,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,i,n,s)=>t.#F(r,i,n,s),moveToTail:r=>t.#j(r),indexes:r=>t.#R(r),rindexes:r=>t.#A(r),isStale:r=>t.#E(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#u}get size(){return this.#a}get fetchMethod(){return this.#v}get memoMethod(){return this.#p}get dispose(){return this.#s}get onInsert(){return this.#i}get disposeAfter(){return this.#o}constructor(t){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,onInsert:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:y,fetchMethod:_,memoMethod:w,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:N,ignoreFetchAbort:R}=t;if(r!==0&&!so(r))throw new TypeError("max option must be a nonnegative integer");let A=r?NH(r):Array;if(!A)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#p=w,_!==void 0&&typeof _!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#v=_,this.#k=!!_,this.#l=new Map,this.#c=new Array(r).fill(void 0),this.#r=new Array(r).fill(void 0),this.#h=new A(r),this.#_=new A(r),this.#m=0,this.#g=0,this.#T=_k.create(r),this.#a=0,this.#u=0,typeof c=="function"&&(this.#s=c),typeof u=="function"&&(this.#i=u),typeof f=="function"?(this.#o=f,this.#y=[]):(this.#o=void 0,this.#y=void 0),this.#b=!!this.#s,this.#C=!!this.#i,this.#d=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!R,this.maxEntrySize!==0){if(this.#t!==0&&!so(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!so(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=so(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!so(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#n()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let C="LRU_CACHE_UNBOUNDED";XRe(C)&&(PH.add(C),IH("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",C,e))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#n(){let t=new hc(this.#e),r=new hc(this.#e);this.#w=t,this.#S=r,this.#P=(s,o,a=fc.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#E(s)&&this.#I(this.#c[s],"expire")},o+1);l.unref&&l.unref()}},this.#N=s=>{r[s]=t[s]!==0?fc.now():0},this.#x=(s,o)=>{if(t[o]){let a=t[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let c=s.now-l;s.remainingTTL=a-c}};let i=0,n=()=>{let s=fc.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=t[o],l=r[o];if(!a||!l)return 1/0;let c=(i||n())-l;return a-c},this.#E=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(i||n())-o>a}}#N=()=>{};#x=()=>{};#P=()=>{};#E=()=>!1;#M(){let t=new hc(this.#e);this.#u=0,this.#O=t,this.#$=r=>{this.#u-=t[r],t[r]=0},this.#z=(r,i,n,s)=>{if(this.#f(i))return 0;if(!so(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!so(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#L=(r,i,n)=>{if(t[r]=i,this.#t){let s=this.#t-t[r];for(;this.#u>s;)this.#D(!0)}this.#u+=t[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#u)}}#$=t=>{};#L=(t,r,i)=>{};#z=(t,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#g;!(!this.#U(r)||((t||!this.#E(r))&&(yield r),r===this.#m));)r=this.#_[r]}*#A({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#m;!(!this.#U(r)||((t||!this.#E(r))&&(yield r),r===this.#g));)r=this.#h[r]}#U(t){return t!==void 0&&this.#l.get(this.#c[t])===t}*entries(){for(let t of this.#R())this.#r[t]!==void 0&&this.#c[t]!==void 0&&!this.#f(this.#r[t])&&(yield[this.#c[t],this.#r[t]])}*rentries(){for(let t of this.#A())this.#r[t]!==void 0&&this.#c[t]!==void 0&&!this.#f(this.#r[t])&&(yield[this.#c[t],this.#r[t]])}*keys(){for(let t of this.#R()){let r=this.#c[t];r!==void 0&&!this.#f(this.#r[t])&&(yield r)}}*rkeys(){for(let t of this.#A()){let r=this.#c[t];r!==void 0&&!this.#f(this.#r[t])&&(yield r)}}*values(){for(let t of this.#R())this.#r[t]!==void 0&&!this.#f(this.#r[t])&&(yield this.#r[t])}*rvalues(){for(let t of this.#A())this.#r[t]!==void 0&&!this.#f(this.#r[t])&&(yield this.#r[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let i of this.#R()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&t(s,this.#c[i],this))return this.get(this.#c[i],r)}}forEach(t,r=this){for(let i of this.#R()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&t.call(r,s,this.#c[i],this)}}rforEach(t,r=this){for(let i of this.#A()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&t.call(r,s,this.#c[i],this)}}purgeStale(){let t=!1;for(let r of this.#A({allowStale:!0}))this.#E(r)&&(this.#I(this.#c[r],"expire"),t=!0);return t}info(t){let r=this.#l.get(t);if(r===void 0)return;let i=this.#r[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#w&&this.#S){let o=this.#w[r],a=this.#S[r];if(o&&a){let l=o-(fc.now()-a);s.ttl=l,s.start=Date.now()}}return this.#O&&(s.size=this.#O[r]),s}dump(){let t=[];for(let r of this.#R({allowStale:!0})){let i=this.#c[r],n=this.#r[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#w&&this.#S){o.ttl=this.#w[r];let a=fc.now()-this.#S[r];o.start=Math.floor(Date.now()-a)}this.#O&&(o.size=this.#O[r]),t.unshift([i,o])}return t}load(t){this.clear();for(let[r,i]of t){if(i.start){let n=Date.now()-i.start;i.start=fc.now()-n}this.set(r,i.value,i)}}set(t,r,i={}){if(r===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,u=this.#z(t,r,i.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#I(t,"set"),this;let f=this.#a===0?void 0:this.#l.get(t);if(f===void 0)f=this.#a===0?this.#g:this.#T.length!==0?this.#T.pop():this.#a===this.#e?this.#D(!1):this.#a,this.#c[f]=t,this.#r[f]=r,this.#l.set(t,f),this.#h[this.#g]=f,this.#_[f]=this.#g,this.#g=f,this.#a++,this.#L(f,u,l),l&&(l.set="add"),c=!1,this.#C&&this.#i?.(r,t,"add");else{this.#j(f);let h=this.#r[f];if(r!==h){if(this.#k&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#b&&this.#s?.(d,t,"set"),this.#d&&this.#y?.push([d,t,"set"]))}else o||(this.#b&&this.#s?.(h,t,"set"),this.#d&&this.#y?.push([h,t,"set"]));if(this.#$(f),this.#L(f,u,l),this.#r[f]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update");this.#C&&this.onInsert?.(r,t,r===h?"update":"replace")}if(n!==0&&!this.#w&&this.#n(),this.#w&&(c||this.#P(f,n,s),l&&this.#x(l,f)),!o&&this.#d&&this.#y){let h=this.#y,d;for(;d=h?.shift();)this.#o?.(...d)}return this}pop(){try{for(;this.#a;){let t=this.#r[this.#m];if(this.#D(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#d&&this.#y){let t=this.#y,r;for(;r=t?.shift();)this.#o?.(...r)}}}#D(t){let r=this.#m,i=this.#c[r],n=this.#r[r];return this.#k&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#b||this.#d)&&(this.#b&&this.#s?.(n,i,"evict"),this.#d&&this.#y?.push([n,i,"evict"])),this.#$(r),t&&(this.#c[r]=void 0,this.#r[r]=void 0,this.#T.push(r)),this.#a===1?(this.#m=this.#g=0,this.#T.length=0):this.#m=this.#h[r],this.#l.delete(i),this.#a--,r}has(t,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(t);if(s!==void 0){let o=this.#r[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#E(s))n&&(n.has="stale",this.#x(n,s));else return i&&this.#N(s),n&&(n.has="hit",this.#x(n,s)),!0}else n&&(n.has="miss");return!1}peek(t,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(t);if(n===void 0||!i&&this.#E(n))return;let s=this.#r[n];return this.#f(s)?s.__staleWhileFetching:s}#F(t,r,i,n){let s=r===void 0?void 0:this.#r[r];if(this.#f(s))return s;let o=new ey,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},c=(m,y=!1)=>{let{aborted:_}=o.signal,w=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(_&&!y?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,w&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),_&&!w&&!y)return f(o.signal.reason);let v=d;return this.#r[r]===d&&(m===void 0?v.__staleWhileFetching?this.#r[r]=v.__staleWhileFetching:this.#I(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),f(m)),f=m=>{let{aborted:y}=o.signal,_=y&&i.allowStaleOnFetchAbort,w=_||i.allowStaleOnFetchRejection,v=w||i.noDeleteOnFetchRejection,g=d;if(this.#r[r]===d&&(!v||g.__staleWhileFetching===void 0?this.#I(t,"fetch"):_||(this.#r[r]=g.__staleWhileFetching)),w)return i.status&&g.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),g.__staleWhileFetching;if(g.__returned===g)throw m},h=(m,y)=>{let _=this.#v?.(t,s,l);_&&_ instanceof Promise&&_.then(w=>m(w===void 0?void 0:w),y),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=w=>c(w,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(c,u),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...l.options,status:void 0}),r=this.#l.get(t)):this.#r[r]=p,p}#f(t){if(!this.#k)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof ey}async fetch(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:y=!1,status:_,signal:w}=r;if(!this.#k)return _&&(_.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:_});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:_,signal:w},g=this.#l.get(t);if(g===void 0){_&&(_.fetch="miss");let T=this.#F(t,g,v,m);return T.__returned=T}else{let T=this.#r[g];if(this.#f(T)){let k=i&&T.__staleWhileFetching!==void 0;return _&&(_.fetch="inflight",k&&(_.returnedStale=!0)),k?T.__staleWhileFetching:T.__returned=T}let N=this.#E(g);if(!y&&!N)return _&&(_.fetch="hit"),this.#j(g),n&&this.#N(g),_&&this.#x(_,g),T;let R=this.#F(t,g,v,m),C=R.__staleWhileFetching!==void 0&&i;return _&&(_.fetch=N?"stale":"refresh",C&&N&&(_.returnedStale=!0)),C?R.__staleWhileFetching:R.__returned=R}}async forceFetch(t,r={}){let i=await this.fetch(t,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(t,r={}){let i=this.#p;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let l=i(t,a,{options:o,context:n});return this.set(t,l,o),l}get(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(t);if(a!==void 0){let l=this.#r[a],c=this.#f(l);return o&&this.#x(o,a),this.#E(a)?(o&&(o.get="stale"),c?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#I(t,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(this.#j(a),n&&this.#N(a),l))}else o&&(o.get="miss")}#B(t,r){this.#_[r]=t,this.#h[t]=r}#j(t){t!==this.#g&&(t===this.#m?this.#m=this.#h[t]:this.#B(this.#_[t],this.#h[t]),this.#B(this.#g,t),this.#g=t)}delete(t){return this.#I(t,"delete")}#I(t,r){let i=!1;if(this.#a!==0){let n=this.#l.get(t);if(n!==void 0)if(i=!0,this.#a===1)this.#q(r);else{this.#$(n);let s=this.#r[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#b||this.#d)&&(this.#b&&this.#s?.(s,t,r),this.#d&&this.#y?.push([s,t,r])),this.#l.delete(t),this.#c[n]=void 0,this.#r[n]=void 0,n===this.#g)this.#g=this.#_[n];else if(n===this.#m)this.#m=this.#h[n];else{let o=this.#_[n];this.#h[o]=this.#h[n];let a=this.#h[n];this.#_[a]=this.#_[n]}this.#a--,this.#T.push(n)}}if(this.#d&&this.#y?.length){let n=this.#y,s;for(;s=n?.shift();)this.#o?.(...s)}return i}clear(){return this.#q("delete")}#q(t){for(let r of this.#A({allowStale:!0})){let i=this.#r[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#c[r];this.#b&&this.#s?.(i,n,t),this.#d&&this.#y?.push([i,n,t])}}if(this.#l.clear(),this.#r.fill(void 0),this.#c.fill(void 0),this.#w&&this.#S&&(this.#w.fill(0),this.#S.fill(0)),this.#O&&this.#O.fill(0),this.#m=0,this.#g=0,this.#T.length=0,this.#u=0,this.#a=0,this.#d&&this.#y){let r=this.#y,i;for(;i=r?.shift();)this.#o?.(...i)}}};ty.LRUCache=bk});var Ok=b(Rr=>{"use strict";var QRe=Rr&&Rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Minipass=Rr.isWritable=Rr.isReadable=Rr.isStream=void 0;var FH=typeof process=="object"&&process?process:{stdout:null,stderr:null},Tk=require("node:events"),qH=QRe(require("node:stream")),eTe=require("node:string_decoder"),tTe=e=>!!e&&typeof e=="object"&&(e instanceof ly||e instanceof qH.default||(0,Rr.isReadable)(e)||(0,Rr.isWritable)(e));Rr.isStream=tTe;var rTe=e=>!!e&&typeof e=="object"&&e instanceof Tk.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==qH.default.Writable.prototype.pipe;Rr.isReadable=rTe;var iTe=e=>!!e&&typeof e=="object"&&e instanceof Tk.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";Rr.isWritable=iTe;var as=Symbol("EOF"),ls=Symbol("maybeEmitEnd"),oo=Symbol("emittedEnd"),ry=Symbol("emittingEnd"),dh=Symbol("emittedError"),iy=Symbol("closed"),LH=Symbol("read"),ny=Symbol("flush"),DH=Symbol("flushChunk"),Mi=Symbol("encoding"),dc=Symbol("decoder"),$t=Symbol("flowing"),ph=Symbol("paused"),pc=Symbol("resume"),Ft=Symbol("buffer"),kr=Symbol("pipes"),Lt=Symbol("bufferLength"),wk=Symbol("bufferPush"),sy=Symbol("bufferShift"),ur=Symbol("objectMode"),pt=Symbol("destroyed"),Sk=Symbol("error"),xk=Symbol("emitData"),jH=Symbol("emitEnd"),Ek=Symbol("emitEnd2"),En=Symbol("async"),kk=Symbol("abort"),oy=Symbol("aborted"),mh=Symbol("signal"),pa=Symbol("dataListeners"),Kr=Symbol("discarded"),gh=e=>Promise.resolve().then(e),nTe=e=>e(),sTe=e=>e==="end"||e==="finish"||e==="prefinish",oTe=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,aTe=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ay=class{src;dest;opts;ondrain;constructor(t,r,i){this.src=t,this.dest=r,this.opts=i,this.ondrain=()=>t[pc](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Rk=class extends ay{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,i){super(t,r,i),this.proxyErrors=n=>r.emit("error",n),t.on("error",this.proxyErrors)}},lTe=e=>!!e.objectMode,cTe=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",ly=class extends Tk.EventEmitter{[$t]=!1;[ph]=!1;[kr]=[];[Ft]=[];[ur];[Mi];[En];[dc];[as]=!1;[oo]=!1;[ry]=!1;[iy]=!1;[dh]=null;[Lt]=0;[pt]=!1;[mh];[oy]=!1;[pa]=0;[Kr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");lTe(r)?(this[ur]=!0,this[Mi]=null):cTe(r)?(this[Mi]=r.encoding,this[ur]=!1):(this[ur]=!1,this[Mi]=null),this[En]=!!r.async,this[dc]=this[Mi]?new eTe.StringDecoder(this[Mi]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ft]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[kr]});let{signal:i}=r;i&&(this[mh]=i,i.aborted?this[kk]():i.addEventListener("abort",()=>this[kk]()))}get bufferLength(){return this[Lt]}get encoding(){return this[Mi]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ur]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[En]}set async(t){this[En]=this[En]||!!t}[kk](){this[oy]=!0,this.emit("abort",this[mh]?.reason),this.destroy(this[mh]?.reason)}get aborted(){return this[oy]}set aborted(t){}write(t,r,i){if(this[oy])return!1;if(this[as])throw new Error("write after end");if(this[pt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[En]?gh:nTe;if(!this[ur]&&!Buffer.isBuffer(t)){if(aTe(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(oTe(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ur]?(this[$t]&&this[Lt]!==0&&this[ny](!0),this[$t]?this.emit("data",t):this[wk](t),this[Lt]!==0&&this.emit("readable"),i&&n(i),this[$t]):t.length?(typeof t=="string"&&!(r===this[Mi]&&!this[dc]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Mi]&&(t=this[dc].write(t)),this[$t]&&this[Lt]!==0&&this[ny](!0),this[$t]?this.emit("data",t):this[wk](t),this[Lt]!==0&&this.emit("readable"),i&&n(i),this[$t]):(this[Lt]!==0&&this.emit("readable"),i&&n(i),this[$t])}read(t){if(this[pt])return null;if(this[Kr]=!1,this[Lt]===0||t===0||t&&t>this[Lt])return this[ls](),null;this[ur]&&(t=null),this[Ft].length>1&&!this[ur]&&(this[Ft]=[this[Mi]?this[Ft].join(""):Buffer.concat(this[Ft],this[Lt])]);let r=this[LH](t||null,this[Ft][0]);return this[ls](),r}[LH](t,r){if(this[ur])this[sy]();else{let i=r;t===i.length||t===null?this[sy]():typeof i=="string"?(this[Ft][0]=i.slice(t),r=i.slice(0,t),this[Lt]-=t):(this[Ft][0]=i.subarray(t),r=i.subarray(0,t),this[Lt]-=t)}return this.emit("data",r),!this[Ft].length&&!this[as]&&this.emit("drain"),r}end(t,r,i){return typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r="utf8"),t!==void 0&&this.write(t,r),i&&this.once("end",i),this[as]=!0,this.writable=!1,(this[$t]||!this[ph])&&this[ls](),this}[pc](){this[pt]||(!this[pa]&&!this[kr].length&&(this[Kr]=!0),this[ph]=!1,this[$t]=!0,this.emit("resume"),this[Ft].length?this[ny]():this[as]?this[ls]():this.emit("drain"))}resume(){return this[pc]()}pause(){this[$t]=!1,this[ph]=!0,this[Kr]=!1}get destroyed(){return this[pt]}get flowing(){return this[$t]}get paused(){return this[ph]}[wk](t){this[ur]?this[Lt]+=1:this[Lt]+=t.length,this[Ft].push(t)}[sy](){return this[ur]?this[Lt]-=1:this[Lt]-=this[Ft][0].length,this[Ft].shift()}[ny](t=!1){do;while(this[DH](this[sy]())&&this[Ft].length);!t&&!this[Ft].length&&!this[as]&&this.emit("drain")}[DH](t){return this.emit("data",t),this[$t]}pipe(t,r){if(this[pt])return t;this[Kr]=!1;let i=this[oo];return r=r||{},t===FH.stdout||t===FH.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&t.end():(this[kr].push(r.proxyErrors?new Rk(this,t,r):new ay(this,t,r)),this[En]?gh(()=>this[pc]()):this[pc]()),t}unpipe(t){let r=this[kr].find(i=>i.dest===t);r&&(this[kr].length===1?(this[$t]&&this[pa]===0&&(this[$t]=!1),this[kr]=[]):this[kr].splice(this[kr].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let i=super.on(t,r);if(t==="data")this[Kr]=!1,this[pa]++,!this[kr].length&&!this[$t]&&this[pc]();else if(t==="readable"&&this[Lt]!==0)super.emit("readable");else if(sTe(t)&&this[oo])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[dh]){let n=r;this[En]?gh(()=>n.call(this,this[dh])):n.call(this,this[dh])}return i}removeListener(t,r){return this.off(t,r)}off(t,r){let i=super.off(t,r);return t==="data"&&(this[pa]=this.listeners("data").length,this[pa]===0&&!this[Kr]&&!this[kr].length&&(this[$t]=!1)),i}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[pa]=0,!this[Kr]&&!this[kr].length&&(this[$t]=!1)),r}get emittedEnd(){return this[oo]}[ls](){!this[ry]&&!this[oo]&&!this[pt]&&this[Ft].length===0&&this[as]&&(this[ry]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[iy]&&this.emit("close"),this[ry]=!1)}emit(t,...r){let i=r[0];if(t!=="error"&&t!=="close"&&t!==pt&&this[pt])return!1;if(t==="data")return!this[ur]&&!i?!1:this[En]?(gh(()=>this[xk](i)),!0):this[xk](i);if(t==="end")return this[jH]();if(t==="close"){if(this[iy]=!0,!this[oo]&&!this[pt])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[dh]=i,super.emit(Sk,i);let s=!this[mh]||this.listeners("error").length?super.emit("error",i):!1;return this[ls](),s}else if(t==="resume"){let s=super.emit("resume");return this[ls](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let n=super.emit(t,...r);return this[ls](),n}[xk](t){for(let i of this[kr])i.dest.write(t)===!1&&this.pause();let r=this[Kr]?!1:super.emit("data",t);return this[ls](),r}[jH](){return this[oo]?!1:(this[oo]=!0,this.readable=!1,this[En]?(gh(()=>this[Ek]()),!0):this[Ek]())}[Ek](){if(this[dc]){let r=this[dc].end();if(r){for(let i of this[kr])i.dest.write(r);this[Kr]||super.emit("data",r)}}for(let r of this[kr])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[ur]||(t.dataLength=0);let r=this.promise();return this.on("data",i=>{t.push(i),this[ur]||(t.dataLength+=i.length)}),await r,t}async concat(){if(this[ur])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Mi]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(pt,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[Kr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[as])return r();let s,o,a=f=>{this.off("data",l),this.off("end",c),this.off(pt,u),r(),o(f)},l=f=>{this.off("error",a),this.off("end",c),this.off(pt,u),this.pause(),s({value:f,done:!!this[as]})},c=()=>{this.off("error",a),this.off("data",l),this.off(pt,u),r(),s({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{o=h,s=f,this.once(pt,u),this.once("error",a),this.once("end",c),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Kr]=!1;let t=!1,r=()=>(this.pause(),this.off(Sk,r),this.off(pt,r),this.off("end",r),t=!0,{done:!0,value:void 0}),i=()=>{if(t)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(Sk,r),this.once(pt,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[pt])return t?this.emit("error",t):this.emit(pt),this;this[pt]=!0,this[Kr]=!0,this[Ft].length=0,this[Lt]=0;let r=this;return typeof r.close=="function"&&!this[iy]&&r.close(),t?this.emit("error",t):this.emit(pt),this}static get isStream(){return Rr.isStream}};Rr.Minipass=ly});var e8=b(Le=>{"use strict";var uTe=Le&&Le.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),fTe=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hTe=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&uTe(t,e,r);return fTe(t,e),t};Object.defineProperty(Le,"__esModule",{value:!0});Le.PathScurry=Le.Path=Le.PathScurryDarwin=Le.PathScurryPosix=Le.PathScurryWin32=Le.PathScurryBase=Le.PathPosix=Le.PathWin32=Le.PathBase=Le.ChildrenCache=Le.ResolveCache=void 0;var VH=$H(),dy=require("node:path"),dTe=require("node:url"),vh=require("fs"),pTe=hTe(require("node:fs")),mTe=vh.realpathSync.native,cy=require("node:fs/promises"),MH=Ok(),_h={lstatSync:vh.lstatSync,readdir:vh.readdir,readdirSync:vh.readdirSync,readlinkSync:vh.readlinkSync,realpathSync:mTe,promises:{lstat:cy.lstat,readdir:cy.readdir,readlink:cy.readlink,realpath:cy.realpath}},WH=e=>!e||e===_h||e===pTe?_h:{..._h,...e,promises:{..._h.promises,...e.promises||{}}},GH=/^\\\\\?\\([a-z]:)\\?$/i,gTe=e=>e.replace(/\//g,"\\").replace(GH,"$1\\"),yTe=/[\\\/]/,vi=0,YH=1,KH=2,kn=4,JH=6,ZH=8,ma=10,XH=12,yi=15,yh=~yi,Ak=16,zH=32,bh=64,zi=128,uy=256,hy=512,UH=bh|zi|hy,vTe=1023,Ck=e=>e.isFile()?ZH:e.isDirectory()?kn:e.isSymbolicLink()?ma:e.isCharacterDevice()?KH:e.isBlockDevice()?JH:e.isSocket()?XH:e.isFIFO()?YH:vi,BH=new Map,wh=e=>{let t=BH.get(e);if(t)return t;let r=e.normalize("NFKD");return BH.set(e,r),r},HH=new Map,fy=e=>{let t=HH.get(e);if(t)return t;let r=wh(e.toLowerCase());return HH.set(e,r),r},Sh=class extends VH.LRUCache{constructor(){super({max:256})}};Le.ResolveCache=Sh;var py=class extends VH.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};Le.ChildrenCache=py;var QH=Symbol("PathScurry setAsCwd"),Wt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#s;get mode(){return this.#s}#i;get nlink(){return this.#i}#o;get uid(){return this.#o}#v;get gid(){return this.#v}#p;get rdev(){return this.#p}#a;get blksize(){return this.#a}#u;get ino(){return this.#u}#l;get size(){return this.#l}#c;get blocks(){return this.#c}#r;get atimeMs(){return this.#r}#h;get mtimeMs(){return this.#h}#_;get ctimeMs(){return this.#_}#m;get birthtimeMs(){return this.#m}#g;get atime(){return this.#g}#T;get mtime(){return this.#T}#y;get ctime(){return this.#y}#O;get birthtime(){return this.#O}#S;#w;#b;#k;#d;#C;#n;#N;#x;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=vi,i,n,s,o,a){this.name=t,this.#S=s?fy(t):wh(t),this.#n=r&vTe,this.nocase=s,this.roots=n,this.root=i||this,this.#N=o,this.#b=a.fullpath,this.#d=a.relative,this.#C=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=WH(a.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#N}resolve(t){if(!t)return this;let r=this.getRootString(t),n=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#E(n):this.#E(n)}#E(t){let r=this;for(let i of t)r=r.child(i);return r}children(){let t=this.#N.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#N.set(this,r),this.#n&=~Ak,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let i=this.children(),n=this.nocase?fy(t):wh(t);for(let l of i)if(l.#S===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+t:void 0,a=this.newChild(t,vi,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#n|=zi),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#d!==void 0)return this.#d;let t=this.name,r=this.parent;if(!r)return this.#d=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let t=this.name,r=this.parent;if(!r)return this.#C=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+t}fullpath(){if(this.#b!==void 0)return this.#b;let t=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+t;return this.#b=n}fullpathPosix(){if(this.#k!==void 0)return this.#k;if(this.sep==="/")return this.#k=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#k=`//?/${n}`:this.#k=n}let t=this.parent,r=t.fullpathPosix(),i=r+(!r||!t.parent?"":"/")+this.name;return this.#k=i}isUnknown(){return(this.#n&yi)===vi}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#n&yi)===ZH}isDirectory(){return(this.#n&yi)===kn}isCharacterDevice(){return(this.#n&yi)===KH}isBlockDevice(){return(this.#n&yi)===JH}isFIFO(){return(this.#n&yi)===YH}isSocket(){return(this.#n&yi)===XH}isSymbolicLink(){return(this.#n&ma)===ma}lstatCached(){return this.#n&zH?this:void 0}readlinkCached(){return this.#x}realpathCached(){return this.#P}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#x)return!0;if(!this.parent)return!1;let t=this.#n&yi;return!(t!==vi&&t!==ma||this.#n&uy||this.#n&zi)}calledReaddir(){return!!(this.#n&Ak)}isENOENT(){return!!(this.#n&zi)}isNamed(t){return this.nocase?this.#S===fy(t):this.#S===wh(t)}async readlink(){let t=this.#x;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#x=i}catch(r){this.#D(r.code);return}}readlinkSync(){let t=this.#x;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#x=i}catch(r){this.#D(r.code);return}}#M(t){this.#n|=Ak;for(let r=t.provisional;r<t.length;r++){let i=t[r];i&&i.#$()}}#$(){this.#n&zi||(this.#n=(this.#n|zi)&yh,this.#L())}#L(){let t=this.children();t.provisional=0;for(let r of t)r.#$()}#z(){this.#n|=hy,this.#R()}#R(){if(this.#n&bh)return;let t=this.#n;(t&yi)===kn&&(t&=yh),this.#n=t|bh,this.#L()}#A(t=""){t==="ENOTDIR"||t==="EPERM"?this.#R():t==="ENOENT"?this.#$():this.children().provisional=0}#U(t=""){t==="ENOTDIR"?this.parent.#R():t==="ENOENT"&&this.#$()}#D(t=""){let r=this.#n;r|=uy,t==="ENOENT"&&(r|=zi),(t==="EINVAL"||t==="UNKNOWN")&&(r&=yh),this.#n=r,t==="ENOTDIR"&&this.parent&&this.parent.#R()}#F(t,r){return this.#B(t,r)||this.#f(t,r)}#f(t,r){let i=Ck(t),n=this.newChild(t.name,i,{parent:this}),s=n.#n&yi;return s!==kn&&s!==ma&&s!==vi&&(n.#n|=bh),r.unshift(n),r.provisional++,n}#B(t,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?fy(t.name):wh(t.name))===n.#S)return this.#j(t,n,i,r)}}#j(t,r,i,n){let s=r.name;return r.#n=r.#n&yh|Ck(t),s!==t.name&&(r.name=t.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#n&zi)===0)try{return this.#I(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#U(t.code)}}lstatSync(){if((this.#n&zi)===0)try{return this.#I(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#U(t.code)}}#I(t){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:c,dev:u,gid:f,ino:h,mode:d,mtime:p,mtimeMs:m,nlink:y,rdev:_,size:w,uid:v}=t;this.#g=r,this.#r=i,this.#O=n,this.#m=s,this.#a=o,this.#c=a,this.#y=l,this.#_=c,this.#t=u,this.#v=f,this.#u=h,this.#s=d,this.#T=p,this.#h=m,this.#i=y,this.#p=_,this.#l=w,this.#o=v;let g=Ck(t);this.#n=this.#n&yh|g|zH,g!==vi&&g!==kn&&g!==ma&&(this.#n|=bh)}#q=[];#V=!1;#W(t){this.#V=!1;let r=this.#q.slice();this.#q.length=0,r.forEach(i=>i(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#q.push(t),this.#V)return;this.#V=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#A(s.code),i.provisional=0;else{for(let a of o)this.#F(a,i);this.#M(i)}this.#W(i.slice(0,i.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let i=()=>{};this.#H=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#F(n,t);this.#M(t)}catch(n){this.#A(n.code),t.provisional=0}this.#H=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#F(i,t);this.#M(t)}catch(i){this.#A(i.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#n&UH)return!1;let t=yi&this.#n;return t===vi||t===kn||t===ma}shouldWalk(t,r){return(this.#n&kn)===kn&&!(this.#n&UH)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#P)return this.#P;if(!((hy|uy|zi)&this.#n))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#P=this.resolve(t)}catch{this.#z()}}realpathSync(){if(this.#P)return this.#P;if(!((hy|uy|zi)&this.#n))try{let t=this.#e.realpathSync(this.fullpath());return this.#P=this.resolve(t)}catch{this.#z()}}[QH](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#d=i.join(this.sep),n.#C=i.join("/"),n=n.parent,i.push("..");for(n=t;n&&n.parent&&!r.has(n);)n.#d=void 0,n.#C=void 0,n=n.parent}};Le.PathBase=Wt;var xh=class e extends Wt{sep="\\";splitSep=yTe;constructor(t,r=vi,i,n,s,o,a){super(t,r,i,n,s,o,a)}newChild(t,r=vi,i={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return dy.win32.parse(t).root}getRoot(t){if(t=gTe(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=i;return this.roots[t]=new Rh(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(GH,"$1\\"),t===r}};Le.PathWin32=xh;var Eh=class e extends Wt{splitSep="/";sep="/";constructor(t,r=vi,i,n,s,o,a){super(t,r,i,n,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=vi,i={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};Le.PathPosix=Eh;var kh=class{root;rootPath;roots;cwd;#e;#t;#s;nocase;#i;constructor(t=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=_h}={}){this.#i=WH(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,dTe.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Sh,this.#t=new Sh,this.#s=new py(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#i),this.roots[this.rootPath]=this.root;let c=this.root,u=l.length-1,f=r.sep,h=this.rootPath,d=!1;for(let p of l){let m=u--;c=c.child(p,{relative:new Array(m).fill("..").join(f),relativePosix:new Array(m).fill("..").join("/"),fullpath:h+=(d?"":f)+p}),d=!0}this.cwd=c}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#s}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#t.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#t.set(r,n),n}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i}=r;if(t.canReaddir()){let n=await t.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0}=r;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map(n=>n.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t.withFileTypes,t=this.cwd);let i=await t.readlink();return r?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t.withFileTypes,t=this.cwd);let i=t.readlinkSync();return r?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t.withFileTypes,t=this.cwd);let i=await t.realpath();return r?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t.withFileTypes,t=this.cwd);let i=t.realpathSync();return r?i:i?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(i?t:t.fullpath());let l=new Set,c=(f,h)=>{l.add(f),f.readdirCB((d,p)=>{if(d)return h(d);let m=p.length;if(!m)return h();let y=()=>{--m===0&&h()};for(let _ of p)(!s||s(_))&&a.push(i?_:_.fullpath()),n&&_.isSymbolicLink()?_.realpath().then(w=>w?.isUnknown()?w.lstat():w).then(w=>w?.shouldWalk(l,o)?c(w,y):y()):_.shouldWalk(l,o)?c(_,y):y()},!0)},u=t;return new Promise((f,h)=>{c(u,d=>{if(d)return h(d);f(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(i?t:t.fullpath());let l=new Set([t]);for(let c of l){let u=c.readdirSync();for(let f of u){(!s||s(f))&&a.push(i?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield i?t:t.fullpath());let a=new Set([t]);for(let l of a){let c=l.readdirSync();for(let u of c){(!s||s(u))&&(yield i?u:u.fullpath());let f=u;if(u.isSymbolicLink()){if(!(n&&(f=u.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,o)&&a.add(f)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new MH.Minipass({objectMode:!0});(!s||s(t))&&a.write(i?t:t.fullpath());let l=new Set,c=[t],u=0,f=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){u===0&&a.end();return}u++,l.add(d);let p=(y,_,w=!1)=>{if(y)return a.emit("error",y);if(n&&!w){let v=[];for(let g of _)g.isSymbolicLink()&&v.push(g.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>p(null,_,!0));return}}for(let v of _)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));u--;for(let v of _){let g=v.realpathCached()||v;g.shouldWalk(l,o)&&c.push(g)}h&&!a.flowing?a.once("drain",f):m||f()},m=!0;d.readdirCB(p,!0),m=!1}};return f(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Wt||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new MH.Minipass({objectMode:!0}),l=new Set;(!s||s(t))&&a.write(i?t:t.fullpath());let c=[t],u=0,f=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){u===0&&a.end();return}u++,l.add(d);let p=d.readdirSync();for(let m of p)(!s||s(m))&&(a.write(i?m:m.fullpath())||(h=!0));u--;for(let m of p){let y=m;if(m.isSymbolicLink()){if(!(n&&(y=m.realpathSync())))continue;y.isUnknown()&&y.lstatSync()}y.shouldWalk(l,o)&&c.push(y)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[QH](r)}};Le.PathScurryBase=kh;var Rh=class extends kh{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:i=!0}=r;super(t,dy.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(t){return dy.win32.parse(t).root.toUpperCase()}newRoot(t){return new xh(this.rootPath,kn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};Le.PathScurryWin32=Rh;var Th=class extends kh{sep="/";constructor(t=process.cwd(),r={}){let{nocase:i=!1}=r;super(t,dy.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Eh(this.rootPath,kn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};Le.PathScurryPosix=Th;var my=class extends Th{constructor(t=process.cwd(),r={}){let{nocase:i=!0}=r;super(t,{...r,nocase:i})}};Le.PathScurryDarwin=my;Le.Path=process.platform==="win32"?xh:Eh;Le.PathScurry=process.platform==="win32"?Rh:process.platform==="darwin"?my:Th});var Ik=b(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.Pattern=void 0;var _Te=no(),bTe=e=>e.length>=1,wTe=e=>e.length>=1,Pk=class e{#e;#t;#s;length;#i;#o;#v;#p;#a;#u;#l=!0;constructor(t,r,i,n){if(!bTe(t))throw new TypeError("empty pattern list");if(!wTe(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#t=r,this.#s=i,this.#i=n,this.#s===0){if(this.isUNC()){let[s,o,a,l,...c]=this.#e,[u,f,h,d,...p]=this.#t;c[0]===""&&(c.shift(),p.shift());let m=[s,o,a,l,""].join("/"),y=[u,f,h,d,""].join("/");this.#e=[m,...c],this.#t=[y,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let c=s+"/",u=a+"/";this.#e=[c,...o],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#s]}isString(){return typeof this.#e[this.#s]=="string"}isGlobstar(){return this.#e[this.#s]===_Te.GLOBSTAR}isRegExp(){return this.#e[this.#s]instanceof RegExp}globString(){return this.#v=this.#v||(this.#s===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#s).join("/"))}hasMore(){return this.length>this.#s+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#t,this.#s+1,this.#i),this.#o.#u=this.#u,this.#o.#a=this.#a,this.#o.#p=this.#p,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#i==="win32"&&this.#s===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#p!==void 0?this.#p:this.#p=this.#i==="win32"&&this.#s===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#u!==void 0?this.#u:this.#u=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#s===0?t:""}checkFollowGlobstar(){return!(this.#s===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#s===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};gy.Pattern=Pk});var $k=b(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.Ignore=void 0;var t8=no(),STe=Ik(),xTe=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Nk=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=xTe}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new t8.Minimatch(t,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new STe.Pattern(n,s,0,this.platform),a=new t8.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),i=`${r}/`,n=t.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",i=(t.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};yy.Ignore=Nk});var i8=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.Processor=Rn.SubWalks=Rn.MatchRecord=Rn.HasWalkedCache=void 0;var r8=no(),vy=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let i=t.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};Rn.HasWalkedCache=vy;var _y=class{store=new Map;add(t,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(t);this.store.set(t,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Rn.MatchRecord=_y;var by=class{store=new Map;add(t,r){if(!t.canReaddir())return;let i=this.store.get(t);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Rn.SubWalks=by;var Fk=class e{hasWalkedCache;matches=new _y;subwalks=new by;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new vy}processPatterns(t,r){this.patterns=r;let i=r.map(n=>[t,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=s.rest();if(f)s=f;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,c,u=!1;for(;typeof(l=s.pattern())=="string"&&(c=s.rest());)n=n.resolve(l),s=c,u=!0;if(l=s.pattern(),c=s.rest(),u){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,f);continue}else if(l===r8.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let f=c?.pattern(),h=c?.rest();if(!c||(f===""||f===".")&&!h)this.matches.add(n,a,f===""||f===".");else if(f===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let i=this.subwalks.get(t),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),c=o.rest();l===r8.GLOBSTAR?n.testGlobstar(s,o,c,a):l instanceof RegExp?n.testRegExp(s,l,c,a):n.testString(s,l,c,a)}return n}testGlobstar(t,r,i,n){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(t,i):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,i.rest(),n);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(t,s,i.rest(),n)}}testRegExp(t,r,i,n){r.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}testString(t,r,i,n){t.isNamed(r)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}};Rn.Processor=Fk});var o8=b(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.GlobStream=ao.GlobWalker=ao.GlobUtil=void 0;var ETe=Ok(),n8=$k(),s8=i8(),kTe=(e,t)=>typeof e=="string"?new n8.Ignore([e],t):Array.isArray(e)?new n8.Ignore(e,t):e,Oh=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#s;signal;maxDepth;includeChildMatches;constructor(t,r,i){if(this.patterns=t,this.path=r,this.opts=i,this.#s=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=kTe(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#i(t){return this.seen.has(t)||!!this.#t?.ignored?.(t)}#o(t){return!!this.#t?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#i(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#i(t))return;if(!this.includeChildMatches&&this.#t?.add){let s=`${t.relativePosix()}/**`;this.#t.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let n=this.opts.mark&&t.isDirectory()?this.#s:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#s)?"."+this.#s:"";this.matchEmit(s?o+s+n:"."+n)}}async match(t,r,i){let n=await this.matchCheck(t,i);n&&this.matchFinish(n,r)}matchSync(t,r,i){let n=this.matchCheckSync(t,i);n&&this.matchFinish(n,r)}walkCB(t,r,i){this.signal?.aborted&&i(),this.walkCB2(t,r,new s8.Processor(this.opts),i)}walkCB2(t,r,i,n){if(this.#o(t))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(t,r,i,n));return}i.processPatterns(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||(s++,this.match(a,l,c).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((c,u)=>this.walkCB3(a,u,i,o),!0)}o()}walkCB3(t,r,i,n){i=i.filterEntries(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||(s++,this.match(a,l,c).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(t,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,r,new s8.Processor(this.opts),i)}walkCB2Sync(t,r,i,n){if(this.#o(t))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,i,n));return}i.processPatterns(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||this.matchSync(a,l,c);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(t,r,i,n){i=i.filterEntries(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||this.matchSync(a,l,c);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};ao.GlobUtil=Oh;var Lk=class extends Oh{matches=new Set;constructor(t,r,i){super(t,r,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};ao.GlobWalker=Lk;var Dk=class extends Oh{results;constructor(t,r,i){super(t,r,i),this.results=new ETe.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};ao.GlobStream=Dk});var qk=b(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.Glob=void 0;var RTe=no(),TTe=require("node:url"),wy=e8(),OTe=Ik(),Sy=o8(),ATe=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",jk=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,TTe.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=t,this.platform=r.platform||ATe,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?wy.PathScurryWin32:r.platform==="darwin"?wy.PathScurryDarwin:r.platform?wy.PathScurryPosix:wy.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new RTe.Minimatch(l,n)),[o,a]=s.reduce((l,c)=>(l[0].push(...c.set),l[1].push(...c.globParts),l),[[],[]]);this.patterns=o.map((l,c)=>{let u=a[c];if(!u)throw new Error("invalid pattern object");return new OTe.Pattern(l,u,0,this.platform)})}async walk(){return[...await new Sy.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Sy.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Sy.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Sy.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};xy.Glob=jk});var Mk=b(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.hasMagic=void 0;var CTe=no(),PTe=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new CTe.Minimatch(r,t).hasMagic())return!0;return!1};Ey.hasMagic=PTe});var u8=b(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.glob=Ee.sync=Ee.iterate=Ee.iterateSync=Ee.stream=Ee.streamSync=Ee.Ignore=Ee.hasMagic=Ee.Glob=Ee.unescape=Ee.escape=void 0;Ee.globStreamSync=Ah;Ee.globStream=zk;Ee.globSync=Uk;Ee.globIterateSync=Ch;Ee.globIterate=Bk;var a8=no(),ga=qk(),ITe=Mk(),c8=no();Object.defineProperty(Ee,"escape",{enumerable:!0,get:function(){return c8.escape}});Object.defineProperty(Ee,"unescape",{enumerable:!0,get:function(){return c8.unescape}});var NTe=qk();Object.defineProperty(Ee,"Glob",{enumerable:!0,get:function(){return NTe.Glob}});var $Te=Mk();Object.defineProperty(Ee,"hasMagic",{enumerable:!0,get:function(){return $Te.hasMagic}});var FTe=$k();Object.defineProperty(Ee,"Ignore",{enumerable:!0,get:function(){return FTe.Ignore}});function Ah(e,t={}){return new ga.Glob(e,t).streamSync()}function zk(e,t={}){return new ga.Glob(e,t).stream()}function Uk(e,t={}){return new ga.Glob(e,t).walkSync()}async function l8(e,t={}){return new ga.Glob(e,t).walk()}function Ch(e,t={}){return new ga.Glob(e,t).iterateSync()}function Bk(e,t={}){return new ga.Glob(e,t).iterate()}Ee.streamSync=Ah;Ee.stream=Object.assign(zk,{sync:Ah});Ee.iterateSync=Ch;Ee.iterate=Object.assign(Bk,{sync:Ch});Ee.sync=Object.assign(Uk,{stream:Ah,iterate:Ch});Ee.glob=Object.assign(l8,{glob:l8,globSync:Uk,sync:Ee.sync,globStream:zk,stream:Ee.stream,globStreamSync:Ah,streamSync:Ee.streamSync,globIterate:Bk,iterate:Ee.iterate,globIterateSync:Ch,iterateSync:Ee.iterateSync,Glob:ga.Glob,hasMagic:ITe.hasMagic,escape:a8.escape,unescape:a8.unescape});Ee.glob.glob=Ee.glob});var h8=b((L4e,Hk)=>{"use strict";var LTe=/at\s{1}(?:.*\.)?plugin\s{1}.*\n\s*(.*)/,DTe=/(\w*(\.\w*)*)\..*/;Hk.exports=function(t){if(t.name.length>0)return t.name;let r=Error.stackTraceLimit;Error.stackTraceLimit=10;try{throw new Error("anonymous function")}catch(i){return Error.stackTraceLimit=r,f8(i.stack)}};function f8(e){let t=e.match(LTe);return t?t[1].split(/[/\\]/).slice(-1)[0].match(DTe)[1]:"anonymous"}Hk.exports.extractPluginName=f8});var p8=b((D4e,d8)=>{"use strict";d8.exports=function(t){return t[0]==="@"&&(t=t.slice(1).replace("/","-")),t.replace(/-(.)/g,function(i,n){return n.toUpperCase()})}});var m8=b((j4e,ky)=>{"use strict";var jTe=h8(),qTe=p8(),MTe=0;function Vk(e,t={}){let r=!1;if(typeof e.default<"u"&&(e=e.default),typeof e!="function")throw new TypeError(`fastify-plugin expects a function, instead got a '${typeof e}'`);if(typeof t=="string"&&(t={fastify:t}),typeof t!="object"||Array.isArray(t)||t===null)throw new TypeError("The options object should be an object");if(t.fastify!==void 0&&typeof t.fastify!="string")throw new TypeError(`fastify-plugin expects a version string, instead got '${typeof t.fastify}'`);t.name||(r=!0,t.name=jTe(e)+"-auto-"+MTe++),e[Symbol.for("skip-override")]=t.encapsulate!==!0,e[Symbol.for("fastify.display-name")]=t.name,e[Symbol.for("plugin-meta")]=t,e.default||(e.default=e);let i=qTe(t.name);return!r&&!e[i]&&(e[i]=e),e}ky.exports=Vk;ky.exports.default=Vk;ky.exports.fastifyPlugin=Vk});var Wk=b((q4e,g8)=>{"use strict";function zTe(e){let t=e.length;return t>21&&e.indexOf("application/javascript")===0||t>14&&e.indexOf("application/json")===0||t>5&&e.indexOf("text/")===0}g8.exports.isUtf8MimeType=zTe});var v8=b((M4e,y8)=>{"use strict";function Ry(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Ry.prototype.define=function(e,t){for(let r in e){let i=e[r].map(function(n){return n.toLowerCase()});r=r.toLowerCase();for(let n=0;n<i.length;n++){let s=i[n];if(s[0]!=="*"){if(!t&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+r+'".');this._types[s]=r}}if(t||!this._extensions[r]){let n=i[0];this._extensions[r]=n[0]!=="*"?n:n.substr(1)}}};Ry.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),i=t.length<e.length;return(r.length<t.length-1||!i)&&this._types[r]||null};Ry.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null};y8.exports=Ry});var b8=b((z4e,_8)=>{_8.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var S8=b((U4e,w8)=>{w8.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var Gk=b((B4e,x8)=>{"use strict";var UTe=v8();x8.exports=new UTe(b8(),S8())});var k8=b((H4e,E8)=>{"use strict";var BTe=/["'&<>]/;E8.exports=HTe;function HTe(e){var t=""+e,r=BTe.exec(t);if(!r)return t;var i,n="",s=0,o=0;for(s=r.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==s&&(n+=t.substring(o,s)),o=s+1,n+=i}return o!==s?n+t.substring(o,s):n}});var R8=b(Kk=>{var VTe=/^(-?(?:\d+)?\.?\d+) *(m(?:illiseconds?|s(?:ecs?)?))?(s(?:ec(?:onds?|s)?)?)?(m(?:in(?:utes?|s)?)?)?(h(?:ours?|rs?)?)?(d(?:ays?)?)?(w(?:eeks?|ks?)?)?(y(?:ears?|rs?)?)?$/,Ty=1e3,Oy=Ty*60,Ay=Oy*60,Ih=Ay*24,Yk=Ih*365.25;function WTe(e){var t,r=e.toLowerCase().match(VTe);if(r!=null&&(t=parseFloat(r[1])))return r[3]!=null?t*Ty:r[4]!=null?t*Oy:r[5]!=null?t*Ay:r[6]!=null?t*Ih:r[7]!=null?t*Ih*7:r[8]!=null?t*Yk:t}function Ph(e,t,r,i){var n=(e|0)===e?e:~~(e+.5);return t+n+(i?" "+r+(n!=1?"s":""):r[0])}function GTe(e,t){var r=e<0?"-":"",i=e<0?-e:e;return i<Ty?e+(t?" ms":"ms"):i<Oy?Ph(i/Ty,r,"second",t):i<Ay?Ph(i/Oy,r,"minute",t):i<Ih?Ph(i/Ay,r,"hour",t):i<Yk?Ph(i/Ih,r,"day",t):Ph(i/Yk,r,"year",t)}Kk.format=GTe;Kk.parse=WTe});var O8=b(T8=>{"use strict";function YTe(e){let t=e.getHeaderNames();for(let r=0;r<t.length;r++)e.removeHeader(t[r])}T8.clearHeaders=YTe});var C8=b((G4e,A8)=>{"use strict";function KTe(e){if(e[0]!=="/"||e[1]!=="/")return e;for(let t=2,r=e.length;t<r;++t)if(e[t]!=="/")return e.slice(t-1)}A8.exports.collapseLeadingSlashes=KTe});var I8=b((Y4e,P8)=>{"use strict";function JTe(e){for(let t=0,r=e.length;t<r;++t)if(e[t].length!==1&&e[t][0]===".")return!0;return!1}P8.exports.containsDotFile=JTe});var $8=b(N8=>{"use strict";function ZTe(e,t,r){return e+" "+(r?r.start+"-"+r.end:"*")+"/"+t}N8.contentRange=ZTe});var L8=b(F8=>{"use strict";function XTe(e,t){let r=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>`+e+`</title>
</head>
<body>
<pre>`+t+`</pre>
</body>
</html>
`;return[r,Buffer.byteLength(r)]}F8.createHtmlDocument=XTe});var z8=b((Z4e,M8)=>{var QTe=require("path").relative;M8.exports=nOe;var eOe=process.cwd();function j8(e,t){for(var r=e.split(/[ ,]+/),i=String(t).toLowerCase(),n=0;n<r.length;n++){var s=r[n];if(s&&(s==="*"||s.toLowerCase()===i))return!0}return!1}function tOe(e,t,r){var i=Object.getOwnPropertyDescriptor(e,t),n=i.value;return i.get=function(){return n},i.writable&&(i.set=function(o){return n=o}),delete i.value,delete i.writable,Object.defineProperty(e,t,i),i}function rOe(e){for(var t="",r=0;r<e;r++)t+=", arg"+r;return t.substr(2)}function iOe(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var r=0;r<e.length;r++)t+=`
at `+e[r].toString();return t}function nOe(e){if(!e)throw new TypeError("argument namespace is required");var t=Py(),r=mc(t[1]),i=r[0];function n(s){Cy.call(n,s)}return n._file=i,n._ignored=oOe(e),n._namespace=e,n._traced=aOe(e),n._warned=Object.create(null),n.function=fOe,n.property=hOe,n}function sOe(e,t){var r=typeof e.listenerCount!="function"?e.listeners(t).length:e.listenerCount(t);return r>0}function oOe(e){if(process.noDeprecation)return!0;var t=process.env.NO_DEPRECATION||"";return j8(t,e)}function aOe(e){if(process.traceDeprecation)return!0;var t=process.env.TRACE_DEPRECATION||"";return j8(t,e)}function Cy(e,t){var r=sOe(process,"deprecation");if(!(!r&&this._ignored)){var i,n,s,o,a=0,l=!1,c=Py(),u=this._file;for(t?(o=t,s=mc(c[1]),s.name=o.name,u=s[0]):(a=2,o=mc(c[a]),s=o);a<c.length;a++)if(i=mc(c[a]),n=i[0],n===u)l=!0;else if(n===this._file)u=this._file;else if(l)break;var f=i?o.join(":")+"__"+i.join(":"):void 0;if(!(f!==void 0&&f in this._warned)){this._warned[f]=!0;var h=e;if(h||(h=s===o||!s.name?D8(o):D8(s)),r){var d=q8(this._namespace,h,c.slice(a));process.emit("deprecation",d);return}var p=process.stderr.isTTY?cOe:lOe,m=p.call(this,h,i,c.slice(a));process.stderr.write(m+`
`,"utf8")}}}function mc(e){var t=e.getFileName()||"<anonymous>",r=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var n=[t,r,i];return n.callSite=e,n.name=e.getFunctionName(),n}function D8(e){var t=e.callSite,r=e.name;r||(r="<anonymous@"+Jk(e)+">");var i=t.getThis(),n=i&&t.getTypeName();return n==="Object"&&(n=void 0),n==="Function"&&(n=i.name||n),n&&t.getMethodName()?n+"."+r:r}function lOe(e,t,r){var i=new Date().toUTCString(),n=i+" "+this._namespace+" deprecated "+e;if(this._traced){for(var s=0;s<r.length;s++)n+=`
at `+r[s].toString();return n}return t&&(n+=" at "+Jk(t)),n}function cOe(e,t,r){var i="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var n=0;n<r.length;n++)i+=`
\x1B[36mat `+r[n].toString()+"\x1B[39m";return i}return t&&(i+=" \x1B[36m"+Jk(t)+"\x1B[39m"),i}function Jk(e){return QTe(eOe,e[0])+":"+e[1]+":"+e[2]}function Py(){var e=Error.stackTraceLimit,t={},r=Error.prepareStackTrace;Error.prepareStackTrace=uOe,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var i=t.stack.slice(1);return Error.prepareStackTrace=r,Error.stackTraceLimit=e,i}function uOe(e,t){return t}function fOe(e,t){if(typeof e!="function")throw new TypeError("argument fn must be a function");var r=rOe(e.length),i=Py(),n=mc(i[1]);n.name=e.name;var s=new Function("fn","log","deprecate","message","site",`"use strict"
return function (`+r+`) {log.call(deprecate, message, site)
return fn.apply(this, arguments)
}`)(e,Cy,this,t,n);return s}function hOe(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,t);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable");var n=this,s=Py(),o=mc(s[1]);o.name=t,"value"in i&&(i=tOe(e,t,r));var a=i.get,l=i.set;typeof a=="function"&&(i.get=function(){return Cy.call(n,r,o),a.apply(this,arguments)}),typeof l=="function"&&(i.set=function(){return Cy.call(n,r,o),l.apply(this,arguments)}),Object.defineProperty(e,t,i)}function q8(e,t,r){var i=new Error,n;return Object.defineProperty(i,"constructor",{value:q8}),Object.defineProperty(i,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(i,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(i,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(i,"stack",{configurable:!0,enumerable:!1,get:function(){return n!==void 0?n:n=iOe.call(this,r)},set:function(o){n=o}}),i}});var B8=b((X4e,U8)=>{"use strict";U8.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?dOe:pOe);function dOe(e,t){return e.__proto__=t,e}function pOe(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e}});var H8=b((Q4e,mOe)=>{mOe.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var G8=b((e5e,W8)=>{"use strict";var Zk=H8();W8.exports=Ui;Ui.message=Zk;Ui.code=gOe(Zk);Ui.codes=yOe(Zk);Ui.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};Ui.empty={204:!0,205:!0,304:!0};Ui.retry={502:!0,503:!0,504:!0};function gOe(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i],s=Number(i);t[n.toLowerCase()]=s}),t}function yOe(e){return Object.keys(e).map(function(r){return Number(r)})}function vOe(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(Ui.code,t))throw new Error('invalid status message: "'+e+'"');return Ui.code[t]}function V8(e){if(!Object.prototype.hasOwnProperty.call(Ui.message,e))throw new Error("invalid status code: "+e);return Ui.message[e]}function Ui(e){if(typeof e=="number")return V8(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?vOe(e):V8(t)}});var Y8=b((t5e,Xk)=>{typeof Object.create=="function"?Xk.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xk.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ya=b((r5e,eR)=>{try{if(Qk=require("util"),typeof Qk.inherits!="function")throw"";eR.exports=Qk.inherits}catch{eR.exports=Y8()}var Qk});var J8=b((i5e,K8)=>{"use strict";K8.exports=_Oe;function _Oe(e){return e.split(" ").map(function(t){return t.slice(0,1).toUpperCase()+t.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var t6=b((n5e,va)=>{"use strict";var bOe=z8()("http-errors"),Z8=B8(),gc=G8(),tR=ya(),wOe=J8();va.exports=Iy;va.exports.HttpError=SOe();va.exports.isHttpError=EOe(va.exports.HttpError);ROe(va.exports,gc.codes,va.exports.HttpError);function X8(e){return+(String(e).charAt(0)+"00")}function Iy(){for(var e,t,r=500,i={},n=0;n<arguments.length;n++){var s=arguments[n],o=typeof s;if(o==="object"&&s instanceof Error)e=s,r=e.status||e.statusCode||r;else if(o==="number"&&n===0)r=s;else if(o==="string")t=s;else if(o==="object")i=s;else throw new TypeError("argument #"+(n+1)+" unsupported type "+o)}typeof r=="number"&&(r<400||r>=600)&&bOe("non-error status code; use only 4xx or 5xx status codes"),(typeof r!="number"||!gc.message[r]&&(r<400||r>=600))&&(r=500);var a=Iy[r]||Iy[X8(r)];e||(e=a?new a(t):new Error(t||gc.message[r]),Error.captureStackTrace(e,Iy)),(!a||!(e instanceof a)||e.status!==r)&&(e.expose=r<500,e.status=e.statusCode=r);for(var l in i)l!=="status"&&l!=="statusCode"&&(e[l]=i[l]);return e}function SOe(){function e(){throw new TypeError("cannot construct abstract class")}return tR(e,Error),e}function xOe(e,t,r){var i=e6(t);function n(s){var o=s??gc.message[r],a=new Error(o);return Error.captureStackTrace(a,n),Z8(a,n.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:o,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),a}return tR(n,e),Q8(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!0,n}function EOe(e){return function(r){return!r||typeof r!="object"?!1:r instanceof e?!0:r instanceof Error&&typeof r.expose=="boolean"&&typeof r.statusCode=="number"&&r.status===r.statusCode}}function kOe(e,t,r){var i=e6(t);function n(s){var o=s??gc.message[r],a=new Error(o);return Error.captureStackTrace(a,n),Z8(a,n.prototype),Object.defineProperty(a,"message",{enumerable:!0,configurable:!0,value:o,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),a}return tR(n,e),Q8(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!1,n}function Q8(e,t){var r=Object.getOwnPropertyDescriptor(e,"name");r&&r.configurable&&(r.value=t,Object.defineProperty(e,"name",r))}function ROe(e,t,r){t.forEach(function(n){var s,o=wOe(gc.message[n]);switch(X8(n)){case 400:s=xOe(r,o,n);break;case 500:s=kOe(r,o,n);break}s&&(e[n]=s,e[o]=s)})}function e6(e){return e.substr(-5)!=="Error"?e+"Error":e}});var i6=b((s5e,r6)=>{"use strict";var rR=t6();function TOe(e,t){return t?t instanceof Error?rR(e,t,{expose:!1}):rR(e,t):rR(e)}r6.exports.createHttpError=TOe});var s6=b((o5e,n6)=>{"use strict";function OOe(e,t){if(typeof e=="string")return[e];if(e===!1)return[];if(Array.isArray(e)){for(let r=0,i=e.length;r<i;++r)if(typeof e[r]!="string")throw new TypeError(t+" must be array of strings or false");return e}else throw new TypeError(t+" must be array of strings or false")}n6.exports.normalizeList=OOe});var a6=b((a5e,o6)=>{"use strict";function AOe(e,t){let r=t.slice(t.indexOf("=")+1),i=[],n=r.length,s=0,o=0,a=0,l,c,u=r.indexOf(","),f=r.indexOf("-"),h=-1;for(;u===-1&&(u=n),l=parseInt(r.slice(h+1,f),10),c=parseInt(r.slice(f+1,u),10),l!==l?(l=e-c,c=e-1):(c!==c||c>e-1)&&(c=e-1),l===l&&c===c&&l>-1&&l<=c&&i.push({start:l,end:c,index:a++}),u!==n;)h=u++,f=r.indexOf("-",u),u=r.indexOf(",",u);if(a<2)return i;for(i.sort(POe),o=a,a=0,s=1;s<o;){let d=i[s++],p=i[a];d.start>p.end+1?i[++a]=d:d.end>p.end&&(p.end=d.end,p.index>d.index&&(p.index=d.index))}return i.length=a+1,i.sort(COe),i}function COe(e,t){return e.index-t.index}function POe(e,t){return e.start-t.start}o6.exports.parseBytesRange=AOe});var u6=b((l5e,c6)=>{"use strict";var l6=String.prototype.slice;function IOe(e,t){let r=0,i=0,n;for(let s=0,o=e.length;s<o;s++)switch(e.charCodeAt(s)){case 32:i===r&&(i=r=s+1);break;case 44:if(i!==r&&(n=t(l6.call(e,i,r)),n!==void 0))return n;i=r=s+1;break;default:r=s+1;break}if(i!==r)return t(l6.call(e,i,r))}c6.exports.parseTokenList=IOe});var h6=b((c5e,f6)=>{"use strict";function NOe(e,t){let r=Object.keys(t);for(let i=0;i<r.length;i++){let n=r[i];e.setHeader(n,t[n])}}f6.exports.setHeaders=NOe});var S6=b((u5e,w6)=>{"use strict";var $y=require("node:fs"),Nh=require("node:path"),v6=require("node:stream"),$Oe=require("node:util"),at=require("node:util").debuglog("send"),FOe=wE(),d6=k8(),p6=Gk(),LOe=R8(),{clearHeaders:DOe}=O8(),{collapseLeadingSlashes:jOe}=C8(),{containsDotFile:qOe}=I8(),{contentRange:m6}=$8(),{createHtmlDocument:_a}=L8(),{createHttpError:MOe}=i6(),{isUtf8MimeType:zOe}=Wk(),{normalizeList:g6}=s6(),{parseBytesRange:UOe}=a6(),{parseTokenList:_6}=u6(),{setHeaders:BOe}=h6(),HOe=Nh.extname,b6=Nh.join,iR=Nh.normalize,nR=Nh.resolve,Ny=Nh.sep,VOe=/^ *bytes=/,WOe=60*60*24*365*1e3,y6=/(?:^|[\\/])\.\.(?:[\\/]|$)/,GOe={400:_a("Error","Bad Request"),403:_a("Error","Forbidden"),404:_a("Error","Not Found"),412:_a("Error","Precondition Failed"),416:_a("Error","Range Not Satisfiable"),500:_a("Error","Internal Server Error")},YOe=["allow","ignore","deny"];function tt(e,t,r){if(!new.target)return new tt(e,t,r);v6.call(this);let i=r||{};if(this.options=i,this.path=t,this.req=e,this._acceptRanges=i.acceptRanges!==void 0?!!i.acceptRanges:!0,this._cacheControl=i.cacheControl!==void 0?!!i.cacheControl:!0,this._etag=i.etag!==void 0?!!i.etag:!0,this._dotfiles=i.dotfiles!==void 0?YOe.indexOf(i.dotfiles):1,this._dotfiles===-1)throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._extensions=i.extensions!==void 0?g6(i.extensions,"extensions option"):[],this._immutable=i.immutable!==void 0?!!i.immutable:!1,this._index=i.index!==void 0?g6(i.index,"index option"):["index.html"],this._lastModified=i.lastModified!==void 0?!!i.lastModified:!0,this._maxage=i.maxAge||i.maxage,this._maxage=typeof this._maxage=="string"?LOe.parse(this._maxage):Number(this._maxage),this._maxage=this._maxage===this._maxage?Math.min(Math.max(0,this._maxage),WOe):0,this._root=i.root?nR(i.root):null}$Oe.inherits(tt,v6);tt.prototype.root=function(t){return this._root=nR(String(t)),at("root %s",this._root),this};tt.prototype.error=function(t,r){if(this.listenerCount("error")>0)return this.emit("error",MOe(t,r));let i=this.res;DOe(i),r&&r.headers&&BOe(i,r.headers);let n=GOe[t];i.statusCode=t,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",n[1]),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(n[0])};tt.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]==="/"};tt.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]};tt.prototype.isNotModifiedFailure=function(){let t=this.req,r=this.res;if("cache-control"in t.headers&&t.headers["cache-control"].indexOf("no-cache")!==-1)return!1;if("if-none-match"in t.headers){let i=t.headers["if-none-match"];if(i==="*")return!0;let n=r.getHeader("etag");if(typeof n!="string")return!1;let s=n.length;return!!_6(i,function(a){let l=a.length;if(s===l&&a===n||s>l&&"W/"+a===n)return!0})}if("if-modified-since"in t.headers){let i=t.headers["if-modified-since"],n=r.getHeader("last-modified");if(!n||Date.parse(n)<=Date.parse(i))return!0}return!1};tt.prototype.isPreconditionFailure=function(){let t=this.req,r=this.res,i=t.headers["if-match"];if(i){let n=r.getHeader("ETag");if(i!=="*"&&(_6(i,function(o){if(o===n||"W/"+o===n)return!0})||!1)!==!0)return!0}if("if-unmodified-since"in t.headers){let n=t.headers["if-unmodified-since"],s=Date.parse(n);if(s===s){let o=Date.parse(r.getHeader("Last-Modified"));if(o!==o||o>s)return!0}}return!1};tt.prototype.removeContentHeaderFields=function(){let t=this.res;t.removeHeader("Content-Encoding"),t.removeHeader("Content-Language"),t.removeHeader("Content-Length"),t.removeHeader("Content-Range"),t.removeHeader("Content-Type")};tt.prototype.notModified=function(){let t=this.res;at("not modified"),this.removeContentHeaderFields(),t.statusCode=304,t.end()};tt.prototype.headersAlreadySent=function(){let t=new Error("Can't set headers after they are sent.");at("headers already sent"),this.error(500,t)};tt.prototype.isCachable=function(){let t=this.res.statusCode;return t>=200&&t<300||t===304};tt.prototype.onStatError=function(t){switch(t.code){case"ENAMETOOLONG":case"ENOTDIR":case"ENOENT":this.error(404,t);break;default:this.error(500,t);break}};tt.prototype.isRangeFresh=function(){if(!("if-range"in this.req.headers))return!0;let t=this.req.headers["if-range"];if(t.indexOf('"')!==-1){let n=this.res.getHeader("ETag");return n&&t.indexOf(n)!==-1||!1}let r=Date.parse(t);if(r!==r)return!1;let i=Date.parse(this.res.getHeader("Last-Modified"));return i!==i||i<=r};tt.prototype.redirect=function(t){let r=this.res;if(this.listenerCount("directory")>0){this.emit("directory",r,t);return}if(this.hasTrailingSlash()){this.error(403);return}let i=encodeURI(jOe(this.path+"/")),n=_a("Redirecting",'Redirecting to <a href="'+d6(i)+'">'+d6(i)+"</a>");r.statusCode=301,r.setHeader("Content-Type","text/html; charset=UTF-8"),r.setHeader("Content-Length",n[1]),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Location",i),r.end(n[0])};tt.prototype.pipe=function(t){let r=this._root;this.res=t;let i=FOe(this.path);if(i===null)return this.error(400),t;if(~i.indexOf("\0"))return this.error(400),t;let n;if(r!==null){if(i&&(i=iR("."+Ny+i)),y6.test(i))return at('malicious path "%s"',i),this.error(403),t;n=i.split(Ny),i=iR(b6(r,i))}else{if(y6.test(i))return at('malicious path "%s"',i),this.error(403),t;n=iR(i).split(Ny),i=nR(i)}if((at.enabled||this._dotfiles!==0)&&qOe(n))switch(this._dotfiles){case 0:at('allow dotfile "%s"',i);break;case 2:return at('deny dotfile "%s"',i),this.error(403),t;case 1:default:return at('ignore dotfile "%s"',i),this.error(404),t}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(i),t):(this.sendFile(i),t)};tt.prototype.send=function(t,r){let i=r.size,n=this.options,s={},o=this.res,a=this.req,l=n.start||0;if(o.headersSent){this.headersAlreadySent();return}if(at('pipe "%s"',t),this.setHeader(t,r),this.type(t),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isNotModifiedFailure()){this.notModified();return}}if(i=Math.max(0,i-l),n.end!==void 0){let c=n.end-l+1;i>c&&(i=c)}if(this._acceptRanges){let c=a.headers.range;if(c!==void 0&&VOe.test(c))if(this.isRangeFresh()){let u=UOe(i,c);if(u.length===0)return at("range unsatisfiable"),o.setHeader("Content-Range",m6("bytes",i)),this.error(416,{headers:{"Content-Range":o.getHeader("Content-Range")}});u.length===1&&(at("range %j",u),o.statusCode=206,o.setHeader("Content-Range",m6("bytes",i,u[0])),l+=u[0].start,i=u[0].end-u[0].start+1)}else at("range stale")}for(let c in n)s[c]=n[c];if(s.start=l,s.end=Math.max(l,l+i-1),o.setHeader("Content-Length",i),a.method==="HEAD"){o.end();return}this.stream(t,s)};tt.prototype.sendFile=function(t){let r=0,i=this;at('stat "%s"',t),$y.stat(t,function(o,a){if(o&&o.code==="ENOENT"&&!HOe(t)&&t[t.length-1]!==Ny)return n(o);if(o)return i.onStatError(o);if(a.isDirectory())return i.redirect(t);i.emit("file",t,a),i.send(t,a)});function n(s){if(i._extensions.length<=r)return s?i.onStatError(s):i.error(404);let o=t+"."+i._extensions[r++];at('stat "%s"',o),$y.stat(o,function(a,l){if(a)return n(a);if(l.isDirectory())return n();i.emit("file",o,l),i.send(o,l)})}};tt.prototype.sendIndex=function(t){let r=-1,i=this;function n(s){if(++r>=i._index.length)return s?i.onStatError(s):i.error(404);let o=b6(t,i._index[r]);at('stat "%s"',o),$y.stat(o,function(a,l){if(a)return n(a);if(l.isDirectory())return n();i.emit("file",o,l),i.send(o,l)})}n()};tt.prototype.stream=function(t,r){let i=this,n=this.res,s=$y.createReadStream(t,r);this.emit("stream",s),s.pipe(n);let o=!1;function a(){o||(o=!0,s.destroy())}n.once("finish",a),s.on("error",function(c){a(),i.onStatError(c)}),s.on("end",function(){i.emit("end")})};tt.prototype.type=function(t){let r=this.res;if(r.getHeader("Content-Type"))return;let i=p6.getType(t)||p6.default_type;if(!i){at("no content-type");return}at("content-type %s",i),zOe(i)?r.setHeader("Content-Type",i+"; charset=UTF-8"):r.setHeader("Content-Type",i)};tt.prototype.setHeader=function(t,r){let i=this.res;if(this.emit("headers",i,t,r),this._acceptRanges&&!i.getHeader("Accept-Ranges")&&(at("accept ranges"),i.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!i.getHeader("Cache-Control")){let n="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(n+=", immutable"),at("cache-control %s",n),i.setHeader("Cache-Control",n)}if(this._lastModified&&!i.getHeader("Last-Modified")){let n=r.mtime.toUTCString();at("modified %s",n),i.setHeader("Last-Modified",n)}if(this._etag&&!i.getHeader("ETag")){let n='W/"'+r.size.toString(16)+"-"+r.mtime.getTime().toString(16)+'"';at("etag %s",n),i.setHeader("ETag",n)}};w6.exports=tt});var E6=b((f5e,ba)=>{"use strict";var KOe=Wk().isUtf8MimeType,JOe=Gk(),x6=S6();function sR(e,t,r){return new x6(e,t,r)}ba.exports=sR;ba.exports.default=sR;ba.exports.send=sR;ba.exports.SendStream=x6;ba.exports.isUtf8MimeType=KOe;ba.exports.mime=JOe});var k6=b((h5e,Dh)=>{"use strict";function aR(e){if(!new.target)return new aR(e);let{supportedValues:t=[],cache:r}=e&&typeof e=="object"&&e||{};this.supportedValues=t,this.cache=r}aR.prototype.negotiate=function(e){return typeof e!="string"?null:this.cache?(this.cache.has(e)||this.cache.set(e,Lh(e,this.supportedValues)),this.cache.get(e)):Lh(e,this.supportedValues)};function Lh(e,t){if(!e||!Array.isArray(t)||t.length===0)return null;if(e==="*")return t[0];let r=null,i=1/0,n=0;function s(o,a){if(a===0||n>a)return!1;let l=o==="*"&&t[0]||o,c=t.indexOf(l);return c===-1?!1:c===0&&a===1?(r=l,!0):((n<a||i>c)&&(r=l,i=c,n=a),!1)}return ZOe(e,s),r}var $h=0,Fh=1,Fy=2,oR=3;function ZOe(e,t){let r="",i,n=$h;for(let s=0,o=e.length;s<o;++s){let a=e[s];if(!(a===" "||a===" ")){if(a===";"){n===Fh&&(n=Fy,i="");continue}else if(a===","){if(n===Fh){if(t(r,1)){n=oR;break}n=$h,r=""}else if(n===Fy){if(t(r,parseFloat(i)||0)){n=oR;break}n=$h,r="",i=""}continue}else if(n===Fy){if(a==="q"||a==="=")continue;if(a==="."||a==="1"||a==="0"||a==="2"||a==="3"||a==="4"||a==="5"||a==="6"||a==="7"||a==="8"||a==="9"){i+=a;continue}}else if(n===$h){n=Fh,r+=a;continue}if(n===Fh){let l=e[s-1];(l===" "||l===" ")&&(r=""),r+=a;continue}if(t(r,parseFloat(i)||0)){n=oR;break}n=$h,r=a,i=""}}n===Fh?t(r,1):n===Fy&&t(r,parseFloat(i)||0)}Dh.exports=Lh;Dh.exports.default=Lh;Dh.exports.negotiate=Lh;Dh.exports.Negotiator=aR});var O6=b((lR,T6)=>{var Ly=require("buffer"),Tn=Ly.Buffer;function R6(e,t){for(var r in e)t[r]=e[r]}Tn.from&&Tn.alloc&&Tn.allocUnsafe&&Tn.allocUnsafeSlow?T6.exports=Ly:(R6(Ly,lR),lR.Buffer=wa);function wa(e,t,r){return Tn(e,t,r)}wa.prototype=Object.create(Tn.prototype);R6(Tn,wa);wa.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tn(e,t,r)};wa.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Tn(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};wa.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tn(e)};wa.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ly.SlowBuffer(e)}});var $6=b((d5e,cR)=>{"use strict";cR.exports=lAe;cR.exports.parse=hAe;var A6=require("path").basename,XOe=O6().Buffer,QOe=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,eAe=/%[0-9A-Fa-f]{2}/,tAe=/%([0-9A-Fa-f]{2})/g,P6=/[^\x20-\x7e\xa0-\xff]/g,rAe=/\\([\u0000-\u007f])/g,iAe=/([\\"])/g,C6=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,nAe=/^[\x20-\x7e\x80-\xff]+$/,sAe=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,oAe=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,aAe=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function lAe(e,t){var r=t||{},i=r.type||"attachment",n=cAe(e,r.fallback);return uAe(new N6(i,n))}function cAe(e,t){if(e!==void 0){var r={};if(typeof e!="string")throw new TypeError("filename must be a string");if(t===void 0&&(t=!0),typeof t!="string"&&typeof t!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof t=="string"&&P6.test(t))throw new TypeError("fallback must be ISO-8859-1 string");var i=A6(e),n=nAe.test(i),s=typeof t!="string"?t&&I6(i):A6(t),o=typeof s=="string"&&s!==i;return(o||!n||eAe.test(i))&&(r["filename*"]=i),(n||o)&&(r.filename=o?s:i),r}}function uAe(e){var t=e.parameters,r=e.type;if(!r||typeof r!="string"||!sAe.test(r))throw new TypeError("invalid type");var i=String(r).toLowerCase();if(t&&typeof t=="object")for(var n,s=Object.keys(t).sort(),o=0;o<s.length;o++){n=s[o];var a=n.substr(-1)==="*"?gAe(t[n]):mAe(t[n]);i+="; "+n+"="+a}return i}function fAe(e){var t=oAe.exec(e);if(!t)throw new TypeError("invalid extended field value");var r=t[1].toLowerCase(),i=t[2],n,s=i.replace(tAe,dAe);switch(r){case"iso-8859-1":n=I6(s);break;case"utf-8":n=XOe.from(s,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return n}function I6(e){return String(e).replace(P6,"?")}function hAe(e){if(!e||typeof e!="string")throw new TypeError("argument string is required");var t=aAe.exec(e);if(!t)throw new TypeError("invalid type format");var r=t[0].length,i=t[1].toLowerCase(),n,s=[],o={},a;for(r=C6.lastIndex=t[0].substr(-1)===";"?r-1:r;t=C6.exec(e);){if(t.index!==r)throw new TypeError("invalid parameter format");if(r+=t[0].length,n=t[1].toLowerCase(),a=t[2],s.indexOf(n)!==-1)throw new TypeError("invalid duplicate parameter");if(s.push(n),n.indexOf("*")+1===n.length){n=n.slice(0,-1),a=fAe(a),o[n]=a;continue}typeof o[n]!="string"&&(a[0]==='"'&&(a=a.substr(1,a.length-2).replace(rAe,"$1")),o[n]=a)}if(r!==-1&&r!==e.length)throw new TypeError("invalid parameter format");return new N6(i,o)}function dAe(e,t){return String.fromCharCode(parseInt(t,16))}function pAe(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}function mAe(e){var t=String(e);return'"'+t.replace(iAe,"\\$1")+'"'}function gAe(e){var t=String(e),r=encodeURIComponent(t).replace(QOe,pAe);return"UTF-8''"+r}function N6(e,t){this.type=e,this.parameters=t}});var j6=b((p5e,D6)=>{"use strict";var yAe=require("node:os"),Jr=require("node:path"),Dy=require("node:fs/promises"),F6=tb(),L6=Math.max(1,yAe.cpus().length-1),Sa={_getExtendedInfo:async function(e,t){let r=e.split(Jr.sep).length,i=await Dy.readdir(e),n=async o=>{let a=Jr.join(e,o),l;try{l=await Dy.stat(a)}catch{return}l.isDirectory()?(t.totalFolderCount++,a.split(Jr.sep).length===r+1&&t.folderCount++,await Sa._getExtendedInfo(a,t)):(t.totalSize+=l.size,t.totalFileCount++,a.split(Jr.sep).length===r+1&&t.fileCount++,t.lastModified=Math.max(t.lastModified,l.mtimeMs))},s=F6.promise(n,L6);await Promise.all(i.map(o=>s.push(o)))},getExtendedInfo:async function(e){let t={totalSize:0,fileCount:0,totalFileCount:0,folderCount:0,totalFolderCount:0,lastModified:0};return await Sa._getExtendedInfo(e,t),t},list:async function(e,t,r){let i={dirs:[],files:[]},n=await Dy.readdir(e);if((r==="deny"||r==="ignore")&&(n=n.filter(a=>a.charAt(0)!==".")),n.length<1)return i;let s=async a=>{let l;try{l=await Dy.stat(Jr.join(e,a))}catch{return}let c={name:a,stats:l};l.isDirectory()?(t.extendedFolderInfo&&(c.extendedInfo=await Sa.getExtendedInfo(Jr.join(e,a))),i.dirs.push(c)):i.files.push(c)},o=F6.promise(s,L6);return await Promise.all(n.map(a=>o.push(a))),i.dirs.sort((a,l)=>a.name.localeCompare(l.name)),i.files.sort((a,l)=>a.name.localeCompare(l.name)),i},send:async function({reply:e,dir:t,options:r,route:i,prefix:n,dotfiles:s}){if(e.request.query.format==="html"&&typeof r.render!="function")throw new Error("The `list.render` option must be a function and is required with the URL parameter `format=html`");let o;try{o=await Sa.list(t,r,s)}catch{return e.callNotFound()}if((e.request.query.format||r.format)!=="html"){if(r.jsonFormat!=="extended"){let c={dirs:[],files:[]};o.dirs.forEach(u=>c.dirs.push(u.name)),o.files.forEach(u=>c.files.push(u.name)),e.send(c)}else e.send(o);return}let l=r.render(o.dirs.map(c=>Sa.htmlInfo(c,i,n,r)),o.files.map(c=>Sa.htmlInfo(c,i,n,r)));e.type("text/html").send(l)},htmlInfo:function(e,t,r,i){return i.names?.includes(Jr.basename(t))&&(t=Jr.normalize(Jr.join(t,".."))),{href:encodeURI(Jr.join(r,t,e.name).replace(/\\/gu,"/")),name:e.name,stats:e.stats,extendedInfo:e.extendedInfo}},handle:function(e,t){return t.names?.includes(Jr.basename(e))||((t.names?.includes("/")&&e[e.length-1]==="/")??!1)},path:function(e,t){let r=t[t.length-1]==="/"?t+"none":t;return Jr.dirname(Jr.join(e,r))},validateOptions:function(e){if(e.list){if(Array.isArray(e.root))return new TypeError("multi-root with list option is not supported");if(e.list.format&&e.list.format!=="json"&&e.list.format!=="html")return new TypeError("The `list.format` option must be json or html");if(e.list.names&&!Array.isArray(e.list.names))return new TypeError("The `list.names` option must be an array");if(e.list.jsonFormat!=null&&e.list.jsonFormat!=="names"&&e.list.jsonFormat!=="extended")return new TypeError("The `list.jsonFormat` option must be name or extended");if(e.list.format==="html"&&typeof e.list.render!="function")return new TypeError("The `list.render` option must be a function and is required with html format")}}};D6.exports=Sa});var V6=b((m5e,jy)=>{"use strict";var{PassThrough:vAe}=require("node:stream"),lo=require("node:path"),{fileURLToPath:q6}=require("node:url"),{statSync:H6}=require("node:fs"),{glob:_Ae}=u8(),bAe=m8(),qh=E6(),wAe=k6(),SAe=$6(),jh=j6(),M6=/\/$/u,xAe=/\*/gu,EAe=["br","gzip","deflate"];qh.mime.default_type="application/octet-stream";async function fR(e,t){t.root=kAe(t.root),RAe(e,t.root);let r=t.setHeaders;if(r!==void 0&&typeof r!="function")throw new TypeError("The `setHeaders` option must be a function");let i=jh.validateOptions(t);if(i)throw i;t.dotfiles===void 0&&(t.dotfiles="allow");let n={root:t.root,acceptRanges:t.acceptRanges,cacheControl:t.cacheControl,dotfiles:t.dotfiles,etag:t.etag,extensions:t.extensions,immutable:t.immutable,index:t.index,lastModified:t.lastModified,maxAge:t.maxAge},s=t.prefix??(t.prefix="/");t.prefixAvoidTrailingSlash||(s=s[s.length-1]==="/"?s:s+"/");let o={constraints:t.constraints,schema:{hide:t.schemaHide!==void 0?t.schemaHide:!0},errorHandler(f,h,d){if(f?.code==="ERR_STREAM_PREMATURE_CLOSE"){d.request.raw.destroy();return}e.errorHandler(f,h,d)}};if(t.decorateReply!==!1&&(e.decorateReply("sendFile",function(f,h,d){let p=typeof h=="object"?h:d,m=typeof h=="string"?h:p&&p.root;return l(this.request,this,f,m||n.root,0,p),this}),e.decorateReply("download",function(f,h,d={}){let{root:p,...m}=typeof h=="object"?h:d;return h=typeof h=="string"?h:f,this.header("content-disposition",SAe(h)),l(this.request,this,f,p,0,m),this})),t.serve!==!1){if(t.wildcard&&typeof t.wildcard!="boolean")throw new Error('"wildcard" option must be a boolean');if(t.wildcard===void 0||t.wildcard===!0)e.route({...o,method:["HEAD","GET"],path:s+"*",handler(f,h){l(f,h,"/"+f.params["*"],n.root)}}),t.redirect===!0&&s!==t.prefix&&e.get(t.prefix,o,(f,h)=>{h.redirect(301,B6(f.raw.url))});else{let f=t.index===void 0?["index.html"]:[].concat(t.index),h=new Map,d=new Set,p=Array.isArray(n.root)?n.root:[n.root];for(let m of p){m=m.split(lo.win32.sep).join(lo.posix.sep),!m.endsWith("/")&&(m+="/");let y=await _Ae("**/**",{cwd:m,absolute:!1,follow:!0,nodir:!0,dot:t.serveDotFiles});for(let _ of y){_=_.split(lo.win32.sep).join(lo.posix.sep);let w=s+_;if(d.has(w))continue;d.add(w),c(o,w,`/${_}`,m);let v=lo.posix.basename(w);f.includes(v)&&!h.has(v)&&h.set(lo.posix.dirname(w),m)}}for(let[m,y]of h.entries()){let _=m+(m.endsWith("/")?"":"/"),w="/"+_.replace(s,"");c(o,_,w,y),t.redirect===!0&&c(o,_.replace(M6,""),w.replace(M6,""),y)}}}let a=t.allowedPath;function l(f,h,d,p,m=0,y,_){let w=d,v=Object.assign({},n,y);if(p&&(Array.isArray(p)?v.root=p[m]:v.root=p),a&&!a(d,v.root,f))return h.callNotFound();let g,T=d;if(t.preCompressed&&(_||(_=new Set),g=OAe(f.headers,_),g))if(d.endsWith("/")){if(d=uR(d,v.root,v.index),!d)return h.callNotFound();T=T+d+"."+U6(g)}else T=d+"."+U6(g);let N=qh(f.raw,encodeURI(T),v),R;N.on("file",function(C){R=C});let A=new vAe({flush(C){this.finished=!0,h.raw.statusCode===304&&h.send(""),C()}});A.getHeader=h.getHeader.bind(h),A.setHeader=h.header.bind(h),A.removeHeader=()=>{},A.finished=!1,Object.defineProperty(A,"filename",{get(){return R}}),Object.defineProperty(A,"statusCode",{get(){return h.raw.statusCode},set(C){h.code(C)}}),f.method==="HEAD"?A.on("finish",h.send.bind(h)):A.on("pipe",function(){g&&(h.header("content-type",TAe(d)),h.header("content-encoding",g)),h.send(A)}),r!==void 0&&N.on("headers",r),N.on("directory",function(C,k){if(t.list){jh.send({reply:h,dir:k,options:t.list,route:d,prefix:s,dotfiles:t.dotfiles}).catch(P=>h.send(P));return}if(t.redirect===!0)try{h.redirect(301,B6(f.raw.url))}catch(P){h.send(P)}else{if(!d.endsWith("/")&&uR(d,v.root,v.index))return l(f,h,d+"/",p,void 0,void 0,_);h.callNotFound()}}),N.on("error",function(C){if(C.code==="ENOENT"){if(t.preCompressed&&g&&uR(d,v.root,v.index))return l(f,h,d+"/",p,void 0,void 0,_);if(t.list&&jh.handle(d,t.list)){jh.send({reply:h,dir:jh.path(t.root,d),options:t.list,route:d,prefix:s,dotfiles:t.dotfiles}).catch(k=>h.send(k));return}return Array.isArray(p)&&m<p.length-1?l(f,h,d,p,m+1):t.preCompressed&&!_.has(g)?(_.add(g),l(f,h,w,p,m,void 0,_)):h.callNotFound()}if(C.status===404)return h.callNotFound();h.send(C)}),N.pipe(A)}function c(f,h,d,p){let m=Object.assign({},f,{method:["HEAD","GET"],url:h,handler:u});m.config=m.config||{},m.config.file=d,m.config.rootPath=p,e.route(m)}function u(f,h){let d=f.routeOptions?.config||f.routeConfig;l(f,h,d.file,d.rootPath)}}function kAe(e){if(e===void 0)return e;if(e instanceof URL&&e.protocol==="file:")return q6(e);if(Array.isArray(e)){let t=[];for(let r=0,i=e.length;r<i;++r)e[r]instanceof URL&&e[r].protocol==="file:"?t.push(q6(e[r])):t.push(e[r]);return t}return e}function RAe(e,t){if(t===void 0)throw new Error('"root" option is required');if(Array.isArray(t)){if(!t.length)throw new Error('"root" option array requires one or more paths');if(new Set(t).size!==t.length)throw new Error('"root" option array contains one or more duplicate paths');t.map(r=>z6(e,r));return}if(typeof t=="string")return z6(e,t);throw new Error('"root" option must be a string or array of strings')}function z6(e,t){if(typeof t!="string")throw new Error('"root" option must be a string');if(lo.isAbsolute(t)===!1)throw new Error('"root" option must be an absolute path');let r;try{r=H6(t)}catch(i){if(i.code==="ENOENT"){e.log.warn(`"root" path "${t}" must exist`);return}throw i}if(r.isDirectory()===!1)throw new Error('"root" option must point to a directory')}function TAe(e){let t=qh.mime.getType(e)||qh.mime.default_type;return qh.isUtf8MimeType(t)?`${t}; charset=UTF-8`:t}function uR(e,t,r=["index.html"]){return Array.isArray(r)?r.find(i=>{let n=lo.join(t,e,i);try{return!H6(n).isDirectory()}catch{return!1}}):!1}function OAe(e,t){if(!("accept-encoding"in e))return;let r=e["accept-encoding"].toLowerCase().replace(xAe,"gzip");return wAe.negotiate(r,EAe.filter(i=>!t.has(i)))}function U6(e){switch(e){case"br":return"br";case"gzip":return"gz"}}function B6(e){let t=0;for(;t<e.length&&!(e[t]!=="/"&&e[t]!=="\\");++t);e="/"+e.substr(t);try{let r=new URL(e,"http://localhost.com/"),i=r.pathname;return i+(i[i.length-1]!=="/"?"/":"")+(r.search||"")}catch{let r=new Error(`Invalid redirect URL: ${e}`);throw r.statusCode=400,r}}jy.exports=bAe(fR,{fastify:"4.x",name:"@fastify/static"});jy.exports.default=fR;jy.exports.fastifyStatic=fR});var F9=b((PR,IR)=>{(function(e,t){typeof PR=="object"&&typeof IR<"u"?IR.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).RevealMarkdown=t()})(PR,function(){"use strict";function e(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let t={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},r=/[&<>"']/,i=new RegExp(r.source,"g"),n=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,s=new RegExp(n.source,"g"),o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=K=>o[K];function l(K,E){if(E){if(r.test(K))return K.replace(i,a)}else if(n.test(K))return K.replace(s,a);return K}let c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(K){return K.replace(c,(E,x)=>(x=x.toLowerCase())==="colon"?":":x.charAt(0)==="#"?x.charAt(1)==="x"?String.fromCharCode(parseInt(x.substring(2),16)):String.fromCharCode(+x.substring(1)):"")}let f=/(^|[^\[])\^/g;function h(K,E){K=typeof K=="string"?K:K.source,E=E||"";let x={replace:(S,O)=>(O=(O=O.source||O).replace(f,"$1"),K=K.replace(S,O),x),getRegex:()=>new RegExp(K,E)};return x}let d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(K,E,x){if(K){let S;try{S=decodeURIComponent(u(x)).replace(d,"").toLowerCase()}catch{return null}if(S.indexOf("javascript:")===0||S.indexOf("vbscript:")===0||S.indexOf("data:")===0)return null}E&&!p.test(x)&&(x=function(S,O){y[" "+S]||(_.test(S)?y[" "+S]=S+"/":y[" "+S]=N(S,"/",!0)),S=y[" "+S];let U=S.indexOf(":")===-1;return O.substring(0,2)==="//"?U?O:S.replace(w,"$1")+O:O.charAt(0)==="/"?U?O:S.replace(v,"$1")+O:S+O}(E,x));try{x=encodeURI(x).replace(/%25/g,"%")}catch{return null}return x}let y={},_=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/,g={exec:function(){}};function T(K,E){let x=K.replace(/\|/g,(O,U,D)=>{let I=!1,$=U;for(;--$>=0&&D[$]==="\\";)I=!I;return I?"|":" |"}).split(/ \|/),S=0;if(x[0].trim()||x.shift(),x.length>0&&!x[x.length-1].trim()&&x.pop(),x.length>E)x.splice(E);else for(;x.length<E;)x.push("");for(;S<x.length;S++)x[S]=x[S].trim().replace(/\\\|/g,"|");return x}function N(K,E,x){let S=K.length;if(S===0)return"";let O=0;for(;O<S;){let U=K.charAt(S-O-1);if(U!==E||x){if(U===E||!x)break;O++}else O++}return K.slice(0,S-O)}function R(K,E){if(E<1)return"";let x="";for(;E>1;)1&E&&(x+=K),E>>=1,K+=K;return x+K}function A(K,E,x,S){let O=E.href,U=E.title?l(E.title):null,D=K[1].replace(/\\([\[\]])/g,"$1");if(K[0].charAt(0)!=="!"){S.state.inLink=!0;let I={type:"link",raw:x,href:O,title:U,text:D,tokens:S.inlineTokens(D)};return S.state.inLink=!1,I}return{type:"image",raw:x,href:O,title:U,text:l(D)}}class C{constructor(E){this.options=E||t}space(E){let x=this.rules.block.newline.exec(E);if(x&&x[0].length>0)return{type:"space",raw:x[0]}}code(E){let x=this.rules.block.code.exec(E);if(x){let S=x[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:x[0],codeBlockStyle:"indented",text:this.options.pedantic?S:N(S,`
`)}}}fences(E){let x=this.rules.block.fences.exec(E);if(x){let S=x[0],O=function(U,D){let I=U.match(/^(\s+)(?:```)/);if(I===null)return D;let $=I[1];return D.split(`
`).map(z=>{let j=z.match(/^\s+/);if(j===null)return z;let[F]=j;return F.length>=$.length?z.slice($.length):z}).join(`
`)}(S,x[3]||"");return{type:"code",raw:S,lang:x[2]?x[2].trim().replace(this.rules.inline._escapes,"$1"):x[2],text:O}}}heading(E){let x=this.rules.block.heading.exec(E);if(x){let S=x[2].trim();if(/#$/.test(S)){let O=N(S,"#");this.options.pedantic?S=O.trim():O&&!/ $/.test(O)||(S=O.trim())}return{type:"heading",raw:x[0],depth:x[1].length,text:S,tokens:this.lexer.inline(S)}}}hr(E){let x=this.rules.block.hr.exec(E);if(x)return{type:"hr",raw:x[0]}}blockquote(E){let x=this.rules.block.blockquote.exec(E);if(x){let S=x[0].replace(/^ *>[ \t]?/gm,""),O=this.lexer.state.top;this.lexer.state.top=!0;let U=this.lexer.blockTokens(S);return this.lexer.state.top=O,{type:"blockquote",raw:x[0],tokens:U,text:S}}}list(E){let x=this.rules.block.list.exec(E);if(x){let S,O,U,D,I,$,z,j,F,M,J,ve,Q=x[1].trim(),he=Q.length>1,se={type:"list",raw:"",ordered:he,start:he?+Q.slice(0,-1):"",loose:!1,items:[]};Q=he?`\\d{1,9}\\${Q.slice(-1)}`:`\\${Q}`,this.options.pedantic&&(Q=he?Q:"[*+-]");let we=new RegExp(`^( {0,3}${Q})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;E&&(ve=!1,x=we.exec(E))&&!this.rules.block.hr.test(E);){if(S=x[0],E=E.substring(S.length),j=x[2].split(`
`,1)[0].replace(/^\t+/,Fe=>" ".repeat(3*Fe.length)),F=E.split(`
`,1)[0],this.options.pedantic?(D=2,J=j.trimLeft()):(D=x[2].search(/[^ ]/),D=D>4?1:D,J=j.slice(D),D+=x[1].length),$=!1,!j&&/^ *$/.test(F)&&(S+=F+`
`,E=E.substring(F.length+1),ve=!0),!ve){let Fe=new RegExp(`^ {0,${Math.min(3,D-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Ze=new RegExp(`^ {0,${Math.min(3,D-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),De=new RegExp(`^ {0,${Math.min(3,D-1)}}(?:\`\`\`|~~~)`),ko=new RegExp(`^ {0,${Math.min(3,D-1)}}#`);for(;E&&(M=E.split(`
`,1)[0],F=M,this.options.pedantic&&(F=F.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!De.test(F))&&!ko.test(F)&&!Fe.test(F)&&!Ze.test(E);){if(F.search(/[^ ]/)>=D||!F.trim())J+=`
`+F.slice(D);else{if($||j.search(/[^ ]/)>=4||De.test(j)||ko.test(j)||Ze.test(j))break;J+=`
`+F}$||F.trim()||($=!0),S+=M+`
`,E=E.substring(M.length+1),j=F.slice(D)}}se.loose||(z?se.loose=!0:/\n *\n *$/.test(S)&&(z=!0)),this.options.gfm&&(O=/^\[[ xX]\] /.exec(J),O&&(U=O[0]!=="[ ] ",J=J.replace(/^\[[ xX]\] +/,""))),se.items.push({type:"list_item",raw:S,task:!!O,checked:U,loose:!1,text:J}),se.raw+=S}se.items[se.items.length-1].raw=S.trimRight(),se.items[se.items.length-1].text=J.trimRight(),se.raw=se.raw.trimRight();let ke=se.items.length;for(I=0;I<ke;I++)if(this.lexer.state.top=!1,se.items[I].tokens=this.lexer.blockTokens(se.items[I].text,[]),!se.loose){let Fe=se.items[I].tokens.filter(De=>De.type==="space"),Ze=Fe.length>0&&Fe.some(De=>/\n.*\n/.test(De.raw));se.loose=Ze}if(se.loose)for(I=0;I<ke;I++)se.items[I].loose=!0;return se}}html(E){let x=this.rules.block.html.exec(E);if(x){let S={type:"html",raw:x[0],pre:!this.options.sanitizer&&(x[1]==="pre"||x[1]==="script"||x[1]==="style"),text:x[0]};if(this.options.sanitize){let O=this.options.sanitizer?this.options.sanitizer(x[0]):l(x[0]);S.type="paragraph",S.text=O,S.tokens=this.lexer.inline(O)}return S}}def(E){let x=this.rules.block.def.exec(E);if(x){let S=x[1].toLowerCase().replace(/\s+/g," "),O=x[2]?x[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",U=x[3]?x[3].substring(1,x[3].length-1).replace(this.rules.inline._escapes,"$1"):x[3];return{type:"def",tag:S,raw:x[0],href:O,title:U}}}table(E){let x=this.rules.block.table.exec(E);if(x){let S={type:"table",header:T(x[1]).map(O=>({text:O})),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:x[3]&&x[3].trim()?x[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(S.header.length===S.align.length){S.raw=x[0];let O,U,D,I,$=S.align.length;for(O=0;O<$;O++)/^ *-+: *$/.test(S.align[O])?S.align[O]="right":/^ *:-+: *$/.test(S.align[O])?S.align[O]="center":/^ *:-+ *$/.test(S.align[O])?S.align[O]="left":S.align[O]=null;for($=S.rows.length,O=0;O<$;O++)S.rows[O]=T(S.rows[O],S.header.length).map(z=>({text:z}));for($=S.header.length,U=0;U<$;U++)S.header[U].tokens=this.lexer.inline(S.header[U].text);for($=S.rows.length,U=0;U<$;U++)for(I=S.rows[U],D=0;D<I.length;D++)I[D].tokens=this.lexer.inline(I[D].text);return S}}}lheading(E){let x=this.rules.block.lheading.exec(E);if(x)return{type:"heading",raw:x[0],depth:x[2].charAt(0)==="="?1:2,text:x[1],tokens:this.lexer.inline(x[1])}}paragraph(E){let x=this.rules.block.paragraph.exec(E);if(x){let S=x[1].charAt(x[1].length-1)===`
`?x[1].slice(0,-1):x[1];return{type:"paragraph",raw:x[0],text:S,tokens:this.lexer.inline(S)}}}text(E){let x=this.rules.block.text.exec(E);if(x)return{type:"text",raw:x[0],text:x[0],tokens:this.lexer.inline(x[0])}}escape(E){let x=this.rules.inline.escape.exec(E);if(x)return{type:"escape",raw:x[0],text:l(x[1])}}tag(E){let x=this.rules.inline.tag.exec(E);if(x)return!this.lexer.state.inLink&&/^<a /i.test(x[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(x[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(x[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(x[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:x[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):l(x[0]):x[0]}}link(E){let x=this.rules.inline.link.exec(E);if(x){let S=x[2].trim();if(!this.options.pedantic&&/^</.test(S)){if(!/>$/.test(S))return;let D=N(S.slice(0,-1),"\\");if((S.length-D.length)%2==0)return}else{let D=function(I,$){if(I.indexOf($[1])===-1)return-1;let z=I.length,j=0,F=0;for(;F<z;F++)if(I[F]==="\\")F++;else if(I[F]===$[0])j++;else if(I[F]===$[1]&&(j--,j<0))return F;return-1}(x[2],"()");if(D>-1){let I=(x[0].indexOf("!")===0?5:4)+x[1].length+D;x[2]=x[2].substring(0,D),x[0]=x[0].substring(0,I).trim(),x[3]=""}}let O=x[2],U="";if(this.options.pedantic){let D=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(O);D&&(O=D[1],U=D[3])}else U=x[3]?x[3].slice(1,-1):"";return O=O.trim(),/^</.test(O)&&(O=this.options.pedantic&&!/>$/.test(S)?O.slice(1):O.slice(1,-1)),A(x,{href:O&&O.replace(this.rules.inline._escapes,"$1"),title:U&&U.replace(this.rules.inline._escapes,"$1")},x[0],this.lexer)}}reflink(E,x){let S;if((S=this.rules.inline.reflink.exec(E))||(S=this.rules.inline.nolink.exec(E))){let O=(S[2]||S[1]).replace(/\s+/g," ");if(O=x[O.toLowerCase()],!O){let U=S[0].charAt(0);return{type:"text",raw:U,text:U}}return A(S,O,S[0],this.lexer)}}emStrong(E,x,S=""){let O=this.rules.inline.emStrong.lDelim.exec(E);if(!O||O[3]&&S.match(/[\p{L}\p{N}]/u))return;let U=O[1]||O[2]||"";if(!U||U&&(S===""||this.rules.inline.punctuation.exec(S))){let D=O[0].length-1,I,$,z=D,j=0,F=O[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(F.lastIndex=0,x=x.slice(-1*E.length+D);(O=F.exec(x))!=null;){if(I=O[1]||O[2]||O[3]||O[4]||O[5]||O[6],!I)continue;if($=I.length,O[3]||O[4]){z+=$;continue}if((O[5]||O[6])&&D%3&&!((D+$)%3)){j+=$;continue}if(z-=$,z>0)continue;$=Math.min($,$+z+j);let M=E.slice(0,D+O.index+(O[0].length-I.length)+$);if(Math.min(D,$)%2){let ve=M.slice(1,-1);return{type:"em",raw:M,text:ve,tokens:this.lexer.inlineTokens(ve)}}let J=M.slice(2,-2);return{type:"strong",raw:M,text:J,tokens:this.lexer.inlineTokens(J)}}}}codespan(E){let x=this.rules.inline.code.exec(E);if(x){let S=x[2].replace(/\n/g," "),O=/[^ ]/.test(S),U=/^ /.test(S)&&/ $/.test(S);return O&&U&&(S=S.substring(1,S.length-1)),S=l(S,!0),{type:"codespan",raw:x[0],text:S}}}br(E){let x=this.rules.inline.br.exec(E);if(x)return{type:"br",raw:x[0]}}del(E){let x=this.rules.inline.del.exec(E);if(x)return{type:"del",raw:x[0],text:x[2],tokens:this.lexer.inlineTokens(x[2])}}autolink(E,x){let S=this.rules.inline.autolink.exec(E);if(S){let O,U;return S[2]==="@"?(O=l(this.options.mangle?x(S[1]):S[1]),U="mailto:"+O):(O=l(S[1]),U=O),{type:"link",raw:S[0],text:O,href:U,tokens:[{type:"text",raw:O,text:O}]}}}url(E,x){let S;if(S=this.rules.inline.url.exec(E)){let O,U;if(S[2]==="@")O=l(this.options.mangle?x(S[0]):S[0]),U="mailto:"+O;else{let D;do D=S[0],S[0]=this.rules.inline._backpedal.exec(S[0])[0];while(D!==S[0]);O=l(S[0]),U=S[1]==="www."?"http://"+S[0]:S[0]}return{type:"link",raw:S[0],text:O,href:U,tokens:[{type:"text",raw:O,text:O}]}}}inlineText(E,x){let S=this.rules.inline.text.exec(E);if(S){let O;return O=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(S[0]):l(S[0]):S[0]:l(this.options.smartypants?x(S[0]):S[0]),{type:"text",raw:S[0],text:O}}}}let k={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};k.def=h(k.def).replace("label",k._label).replace("title",k._title).getRegex(),k.bullet=/(?:[*+-]|\d{1,9}[.)])/,k.listItemStart=h(/^( *)(bull) */).replace("bull",k.bullet).getRegex(),k.list=h(k.list).replace(/bull/g,k.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+k.def.source+")").getRegex(),k._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",k._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,k.html=h(k.html,"i").replace("comment",k._comment).replace("tag",k._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k.paragraph=h(k._paragraph).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.blockquote=h(k.blockquote).replace("paragraph",k.paragraph).getRegex(),k.normal={...k},k.gfm={...k.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},k.gfm.table=h(k.gfm.table).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.gfm.paragraph=h(k._paragraph).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",k.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.pedantic={...k.normal,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",k._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(k.normal._paragraph).replace("hr",k.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",k.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};let P={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function L(K){return K.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function q(K){let E,x,S="",O=K.length;for(E=0;E<O;E++)x=K.charCodeAt(E),Math.random()>.5&&(x="x"+x.toString(16)),S+="&#"+x+";";return S}P._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",P.punctuation=h(P.punctuation).replace(/punctuation/g,P._punctuation).getRegex(),P.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,P.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,P._comment=h(k._comment).replace("(?:-->|$)","-->").getRegex(),P.emStrong.lDelim=h(P.emStrong.lDelim).replace(/punct/g,P._punctuation).getRegex(),P.emStrong.rDelimAst=h(P.emStrong.rDelimAst,"g").replace(/punct/g,P._punctuation).getRegex(),P.emStrong.rDelimUnd=h(P.emStrong.rDelimUnd,"g").replace(/punct/g,P._punctuation).getRegex(),P._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,P._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,P._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,P.autolink=h(P.autolink).replace("scheme",P._scheme).replace("email",P._email).getRegex(),P._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,P.tag=h(P.tag).replace("comment",P._comment).replace("attribute",P._attribute).getRegex(),P._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,P._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,P._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,P.link=h(P.link).replace("label",P._label).replace("href",P._href).replace("title",P._title).getRegex(),P.reflink=h(P.reflink).replace("label",P._label).replace("ref",k._label).getRegex(),P.nolink=h(P.nolink).replace("ref",k._label).getRegex(),P.reflinkSearch=h(P.reflinkSearch,"g").replace("reflink",P.reflink).replace("nolink",P.nolink).getRegex(),P.normal={...P},P.pedantic={...P.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",P._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P._label).getRegex()},P.gfm={...P.normal,escape:h(P.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},P.gfm.url=h(P.gfm.url,"i").replace("email",P.gfm._extended_email).getRegex(),P.breaks={...P.gfm,br:h(P.br).replace("{2,}","*").getRegex(),text:h(P.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class G{constructor(E){this.tokens=[],this.tokens.links=Object.create(null),this.options=E||t,this.options.tokenizer=this.options.tokenizer||new C,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let x={block:k.normal,inline:P.normal};this.options.pedantic?(x.block=k.pedantic,x.inline=P.pedantic):this.options.gfm&&(x.block=k.gfm,this.options.breaks?x.inline=P.breaks:x.inline=P.gfm),this.tokenizer.rules=x}static get rules(){return{block:k,inline:P}}static lex(E,x){return new G(x).lex(E)}static lexInline(E,x){return new G(x).inlineTokens(E)}lex(E){let x;for(E=E.replace(/\r\n|\r/g,`
`),this.blockTokens(E,this.tokens);x=this.inlineQueue.shift();)this.inlineTokens(x.src,x.tokens);return this.tokens}blockTokens(E,x=[]){let S,O,U,D;for(E=this.options.pedantic?E.replace(/\t/g," ").replace(/^ +$/gm,""):E.replace(/^( *)(\t+)/gm,(I,$,z)=>$+" ".repeat(z.length));E;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(I=>!!(S=I.call({lexer:this},E,x))&&(E=E.substring(S.raw.length),x.push(S),!0))))if(S=this.tokenizer.space(E))E=E.substring(S.raw.length),S.raw.length===1&&x.length>0?x[x.length-1].raw+=`
`:x.push(S);else if(S=this.tokenizer.code(E))E=E.substring(S.raw.length),O=x[x.length-1],!O||O.type!=="paragraph"&&O.type!=="text"?x.push(S):(O.raw+=`
`+S.raw,O.text+=`
`+S.text,this.inlineQueue[this.inlineQueue.length-1].src=O.text);else if(S=this.tokenizer.fences(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.heading(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.hr(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.blockquote(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.list(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.html(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.def(E))E=E.substring(S.raw.length),O=x[x.length-1],!O||O.type!=="paragraph"&&O.type!=="text"?this.tokens.links[S.tag]||(this.tokens.links[S.tag]={href:S.href,title:S.title}):(O.raw+=`
`+S.raw,O.text+=`
`+S.raw,this.inlineQueue[this.inlineQueue.length-1].src=O.text);else if(S=this.tokenizer.table(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.lheading(E))E=E.substring(S.raw.length),x.push(S);else{if(U=E,this.options.extensions&&this.options.extensions.startBlock){let I=1/0,$=E.slice(1),z;this.options.extensions.startBlock.forEach(function(j){z=j.call({lexer:this},$),typeof z=="number"&&z>=0&&(I=Math.min(I,z))}),I<1/0&&I>=0&&(U=E.substring(0,I+1))}if(this.state.top&&(S=this.tokenizer.paragraph(U)))O=x[x.length-1],D&&O.type==="paragraph"?(O.raw+=`
`+S.raw,O.text+=`
`+S.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=O.text):x.push(S),D=U.length!==E.length,E=E.substring(S.raw.length);else if(S=this.tokenizer.text(E))E=E.substring(S.raw.length),O=x[x.length-1],O&&O.type==="text"?(O.raw+=`
`+S.raw,O.text+=`
`+S.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=O.text):x.push(S);else if(E){let I="Infinite loop on byte: "+E.charCodeAt(0);if(this.options.silent){console.error(I);break}throw new Error(I)}}return this.state.top=!0,x}inline(E,x=[]){return this.inlineQueue.push({src:E,tokens:x}),x}inlineTokens(E,x=[]){let S,O,U,D,I,$,z=E;if(this.tokens.links){let j=Object.keys(this.tokens.links);if(j.length>0)for(;(D=this.tokenizer.rules.inline.reflinkSearch.exec(z))!=null;)j.includes(D[0].slice(D[0].lastIndexOf("[")+1,-1))&&(z=z.slice(0,D.index)+"["+R("a",D[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(D=this.tokenizer.rules.inline.blockSkip.exec(z))!=null;)z=z.slice(0,D.index)+"["+R("a",D[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(D=this.tokenizer.rules.inline.escapedEmSt.exec(z))!=null;)z=z.slice(0,D.index+D[0].length-2)+"++"+z.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;E;)if(I||($=""),I=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(j=>!!(S=j.call({lexer:this},E,x))&&(E=E.substring(S.raw.length),x.push(S),!0))))if(S=this.tokenizer.escape(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.tag(E))E=E.substring(S.raw.length),O=x[x.length-1],O&&S.type==="text"&&O.type==="text"?(O.raw+=S.raw,O.text+=S.text):x.push(S);else if(S=this.tokenizer.link(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.reflink(E,this.tokens.links))E=E.substring(S.raw.length),O=x[x.length-1],O&&S.type==="text"&&O.type==="text"?(O.raw+=S.raw,O.text+=S.text):x.push(S);else if(S=this.tokenizer.emStrong(E,z,$))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.codespan(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.br(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.del(E))E=E.substring(S.raw.length),x.push(S);else if(S=this.tokenizer.autolink(E,q))E=E.substring(S.raw.length),x.push(S);else if(this.state.inLink||!(S=this.tokenizer.url(E,q))){if(U=E,this.options.extensions&&this.options.extensions.startInline){let j=1/0,F=E.slice(1),M;this.options.extensions.startInline.forEach(function(J){M=J.call({lexer:this},F),typeof M=="number"&&M>=0&&(j=Math.min(j,M))}),j<1/0&&j>=0&&(U=E.substring(0,j+1))}if(S=this.tokenizer.inlineText(U,L))E=E.substring(S.raw.length),S.raw.slice(-1)!=="_"&&($=S.raw.slice(-1)),I=!0,O=x[x.length-1],O&&O.type==="text"?(O.raw+=S.raw,O.text+=S.text):x.push(S);else if(E){let j="Infinite loop on byte: "+E.charCodeAt(0);if(this.options.silent){console.error(j);break}throw new Error(j)}}else E=E.substring(S.raw.length),x.push(S);return x}}class X{constructor(E){this.options=E||t}code(E,x,S){let O=(x||"").match(/\S*/)[0];if(this.options.highlight){let U=this.options.highlight(E,O);U!=null&&U!==E&&(S=!0,E=U)}return E=E.replace(/\n$/,"")+`
`,O?'<pre><code class="'+this.options.langPrefix+l(O)+'">'+(S?E:l(E,!0))+`</code></pre>
`:"<pre><code>"+(S?E:l(E,!0))+`</code></pre>
`}blockquote(E){return`<blockquote>
${E}</blockquote>
`}html(E){return E}heading(E,x,S,O){return this.options.headerIds?`<h${x} id="${this.options.headerPrefix+O.slug(S)}">${E}</h${x}>
`:`<h${x}>${E}</h${x}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(E,x,S){let O=x?"ol":"ul";return"<"+O+(x&&S!==1?' start="'+S+'"':"")+`>
`+E+"</"+O+`>
`}listitem(E){return`<li>${E}</li>
`}checkbox(E){return"<input "+(E?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(E){return`<p>${E}</p>
`}table(E,x){return x&&(x=`<tbody>${x}</tbody>`),`<table>
<thead>
`+E+`</thead>
`+x+`</table>
`}tablerow(E){return`<tr>
${E}</tr>
`}tablecell(E,x){let S=x.header?"th":"td";return(x.align?`<${S} align="${x.align}">`:`<${S}>`)+E+`</${S}>
`}strong(E){return`<strong>${E}</strong>`}em(E){return`<em>${E}</em>`}codespan(E){return`<code>${E}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(E){return`<del>${E}</del>`}link(E,x,S){if((E=m(this.options.sanitize,this.options.baseUrl,E))===null)return S;let O='<a href="'+E+'"';return x&&(O+=' title="'+x+'"'),O+=">"+S+"</a>",O}image(E,x,S){if((E=m(this.options.sanitize,this.options.baseUrl,E))===null)return S;let O=`<img src="${E}" alt="${S}"`;return x&&(O+=` title="${x}"`),O+=this.options.xhtml?"/>":">",O}text(E){return E}}class H{strong(E){return E}em(E){return E}codespan(E){return E}del(E){return E}html(E){return E}text(E){return E}link(E,x,S){return""+S}image(E,x,S){return""+S}br(){return""}}class W{constructor(){this.seen={}}serialize(E){return E.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(E,x){let S=E,O=0;if(this.seen.hasOwnProperty(S)){O=this.seen[E];do O++,S=E+"-"+O;while(this.seen.hasOwnProperty(S))}return x||(this.seen[E]=O,this.seen[S]=0),S}slug(E,x={}){let S=this.serialize(E);return this.getNextSafeSlug(S,x.dryrun)}}class ae{constructor(E){this.options=E||t,this.options.renderer=this.options.renderer||new X,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new H,this.slugger=new W}static parse(E,x){return new ae(x).parse(E)}static parseInline(E,x){return new ae(x).parseInline(E)}parse(E,x=!0){let S,O,U,D,I,$,z,j,F,M,J,ve,Q,he,se,we,ke,Fe,Ze,De="",ko=E.length;for(S=0;S<ko;S++)if(M=E[S],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]&&(Ze=this.options.extensions.renderers[M.type].call({parser:this},M),Ze!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(M.type)))De+=Ze||"";else switch(M.type){case"space":continue;case"hr":De+=this.renderer.hr();continue;case"heading":De+=this.renderer.heading(this.parseInline(M.tokens),M.depth,u(this.parseInline(M.tokens,this.textRenderer)),this.slugger);continue;case"code":De+=this.renderer.code(M.text,M.lang,M.escaped);continue;case"table":for(j="",z="",D=M.header.length,O=0;O<D;O++)z+=this.renderer.tablecell(this.parseInline(M.header[O].tokens),{header:!0,align:M.align[O]});for(j+=this.renderer.tablerow(z),F="",D=M.rows.length,O=0;O<D;O++){for($=M.rows[O],z="",I=$.length,U=0;U<I;U++)z+=this.renderer.tablecell(this.parseInline($[U].tokens),{header:!1,align:M.align[U]});F+=this.renderer.tablerow(z)}De+=this.renderer.table(j,F);continue;case"blockquote":F=this.parse(M.tokens),De+=this.renderer.blockquote(F);continue;case"list":for(J=M.ordered,ve=M.start,Q=M.loose,D=M.items.length,F="",O=0;O<D;O++)se=M.items[O],we=se.checked,ke=se.task,he="",se.task&&(Fe=this.renderer.checkbox(we),Q?se.tokens.length>0&&se.tokens[0].type==="paragraph"?(se.tokens[0].text=Fe+" "+se.tokens[0].text,se.tokens[0].tokens&&se.tokens[0].tokens.length>0&&se.tokens[0].tokens[0].type==="text"&&(se.tokens[0].tokens[0].text=Fe+" "+se.tokens[0].tokens[0].text)):se.tokens.unshift({type:"text",text:Fe}):he+=Fe),he+=this.parse(se.tokens,Q),F+=this.renderer.listitem(he,ke,we);De+=this.renderer.list(F,J,ve);continue;case"html":De+=this.renderer.html(M.text);continue;case"paragraph":De+=this.renderer.paragraph(this.parseInline(M.tokens));continue;case"text":for(F=M.tokens?this.parseInline(M.tokens):M.text;S+1<ko&&E[S+1].type==="text";)M=E[++S],F+=`
`+(M.tokens?this.parseInline(M.tokens):M.text);De+=x?this.renderer.paragraph(F):F;continue;default:{let Jt='Token with "'+M.type+'" type was not found.';if(this.options.silent)return void console.error(Jt);throw new Error(Jt)}}return De}parseInline(E,x){x=x||this.renderer;let S,O,U,D="",I=E.length;for(S=0;S<I;S++)if(O=E[S],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[O.type]&&(U=this.options.extensions.renderers[O.type].call({parser:this},O),U!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(O.type)))D+=U||"";else switch(O.type){case"escape":case"text":D+=x.text(O.text);break;case"html":D+=x.html(O.text);break;case"link":D+=x.link(O.href,O.title,this.parseInline(O.tokens,x));break;case"image":D+=x.image(O.href,O.title,O.text);break;case"strong":D+=x.strong(this.parseInline(O.tokens,x));break;case"em":D+=x.em(this.parseInline(O.tokens,x));break;case"codespan":D+=x.codespan(O.text);break;case"br":D+=x.br();break;case"del":D+=x.del(this.parseInline(O.tokens,x));break;default:{let $='Token with "'+O.type+'" type was not found.';if(this.options.silent)return void console.error($);throw new Error($)}}return D}}class V{constructor(E){this.options=E||t}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(E){return E}postprocess(E){return E}}function Ve(K,E){return(x,S,O)=>{typeof S=="function"&&(O=S,S=null);let U={...S},D=function(I,$,z){return j=>{if(j.message+=`
Please report this to https://github.com/markedjs/marked.`,I){let F="<p>An error occurred:</p><pre>"+l(j.message+"",!0)+"</pre>";return $?Promise.resolve(F):z?void z(null,F):F}if($)return Promise.reject(j);if(!z)throw j;z(j)}}((S={...re.defaults,...U}).silent,S.async,O);if(x==null)return D(new Error("marked(): input parameter is undefined or null"));if(typeof x!="string")return D(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(x)+", string expected"));if(function(I){I&&I.sanitize&&!I.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(S),S.hooks&&(S.hooks.options=S),O){let I=S.highlight,$;try{S.hooks&&(x=S.hooks.preprocess(x)),$=K(x,S)}catch(F){return D(F)}let z=function(F){let M;if(!F)try{S.walkTokens&&re.walkTokens($,S.walkTokens),M=E($,S),S.hooks&&(M=S.hooks.postprocess(M))}catch(J){F=J}return S.highlight=I,F?D(F):O(null,M)};if(!I||I.length<3||(delete S.highlight,!$.length))return z();let j=0;return re.walkTokens($,function(F){F.type==="code"&&(j++,setTimeout(()=>{I(F.text,F.lang,function(M,J){if(M)return z(M);J!=null&&J!==F.text&&(F.text=J,F.escaped=!0),j--,j===0&&z()})},0))}),void(j===0&&z())}if(S.async)return Promise.resolve(S.hooks?S.hooks.preprocess(x):x).then(I=>K(I,S)).then(I=>S.walkTokens?Promise.all(re.walkTokens(I,S.walkTokens)).then(()=>I):I).then(I=>E(I,S)).then(I=>S.hooks?S.hooks.postprocess(I):I).catch(D);try{S.hooks&&(x=S.hooks.preprocess(x));let I=K(x,S);S.walkTokens&&re.walkTokens(I,S.walkTokens);let $=E(I,S);return S.hooks&&($=S.hooks.postprocess($)),$}catch(I){return D(I)}}}function re(K,E,x){return Ve(G.lex,ae.parse)(K,E,x)}re.options=re.setOptions=function(K){var E;return re.defaults={...re.defaults,...K},E=re.defaults,t=E,re},re.getDefaults=e,re.defaults=t,re.use=function(...K){let E=re.defaults.extensions||{renderers:{},childTokens:{}};K.forEach(x=>{let S={...x};if(S.async=re.defaults.async||S.async||!1,x.extensions&&(x.extensions.forEach(O=>{if(!O.name)throw new Error("extension name required");if(O.renderer){let U=E.renderers[O.name];E.renderers[O.name]=U?function(...D){let I=O.renderer.apply(this,D);return I===!1&&(I=U.apply(this,D)),I}:O.renderer}if(O.tokenizer){if(!O.level||O.level!=="block"&&O.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");E[O.level]?E[O.level].unshift(O.tokenizer):E[O.level]=[O.tokenizer],O.start&&(O.level==="block"?E.startBlock?E.startBlock.push(O.start):E.startBlock=[O.start]:O.level==="inline"&&(E.startInline?E.startInline.push(O.start):E.startInline=[O.start]))}O.childTokens&&(E.childTokens[O.name]=O.childTokens)}),S.extensions=E),x.renderer){let O=re.defaults.renderer||new X;for(let U in x.renderer){let D=O[U];O[U]=(...I)=>{let $=x.renderer[U].apply(O,I);return $===!1&&($=D.apply(O,I)),$}}S.renderer=O}if(x.tokenizer){let O=re.defaults.tokenizer||new C;for(let U in x.tokenizer){let D=O[U];O[U]=(...I)=>{let $=x.tokenizer[U].apply(O,I);return $===!1&&($=D.apply(O,I)),$}}S.tokenizer=O}if(x.hooks){let O=re.defaults.hooks||new V;for(let U in x.hooks){let D=O[U];V.passThroughHooks.has(U)?O[U]=I=>{if(re.defaults.async)return Promise.resolve(x.hooks[U].call(O,I)).then(z=>D.call(O,z));let $=x.hooks[U].call(O,I);return D.call(O,$)}:O[U]=(...I)=>{let $=x.hooks[U].apply(O,I);return $===!1&&($=D.apply(O,I)),$}}S.hooks=O}if(x.walkTokens){let O=re.defaults.walkTokens;S.walkTokens=function(U){let D=[];return D.push(x.walkTokens.call(this,U)),O&&(D=D.concat(O.call(this,U))),D}}re.setOptions(S)})},re.walkTokens=function(K,E){let x=[];for(let S of K)switch(x=x.concat(E.call(re,S)),S.type){case"table":for(let O of S.header)x=x.concat(re.walkTokens(O.tokens,E));for(let O of S.rows)for(let U of O)x=x.concat(re.walkTokens(U.tokens,E));break;case"list":x=x.concat(re.walkTokens(S.items,E));break;default:re.defaults.extensions&&re.defaults.extensions.childTokens&&re.defaults.extensions.childTokens[S.type]?re.defaults.extensions.childTokens[S.type].forEach(function(O){x=x.concat(re.walkTokens(S[O],E))}):S.tokens&&(x=x.concat(re.walkTokens(S.tokens,E)))}return x},re.parseInline=Ve(G.lexInline,ae.parseInline),re.Parser=ae,re.parser=ae.parse,re.Renderer=X,re.TextRenderer=H,re.Lexer=G,re.lexer=G.lex,re.Tokenizer=C,re.Slugger=W,re.Hooks=V,re.parse=re,re.options,re.setOptions,re.use,re.walkTokens,re.parseInline,ae.parse,G.lex;let Ie="__SCRIPT_END__",ii=/\[\s*((\d*):)?\s*([\s\d,|-]*)\]/,Hr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return()=>{let K;function E(j){let F=(j.querySelector("[data-template]")||j.querySelector("script")||j).textContent;F=F.replace(new RegExp(Ie,"g"),"</script>");let M=F.match(/^\n?(\s*)/)[1].length,J=F.match(/^\n?(\t*)/)[1].length;return J>0?F=F.replace(new RegExp("\\n?\\t{"+J+"}(.*)","g"),function(ve,Q){return`
`+Q}):M>1&&(F=F.replace(new RegExp("\\n? {"+M+"}(.*)","g"),function(ve,Q){return`
`+Q})),F}function x(j){let F=j.attributes,M=[];for(let J=0,ve=F.length;J<ve;J++){let Q=F[J].name,he=F[J].value;/data\-(markdown|separator|vertical|notes)/gi.test(Q)||(he?M.push(Q+'="'+he+'"'):M.push(Q))}return M.join(" ")}function S(j){let F=K?.getConfig?.().markdown;return(j=j||{}).separator=j.separator||F?.separator||`\r?
---\r?
`,j.verticalSeparator=j.verticalSeparator||F?.verticalSeparator||null,j.notesSeparator=j.notesSeparator||F?.notesSeparator||"^s*notes?:",j.attributes=j.attributes||"",j}function O(j,F){F=S(F);let M=j.split(new RegExp(F.notesSeparator,"mgi"));return M.length===2&&(j=M[0]+'<aside class="notes">'+re(M[1].trim())+"</aside>"),'<script type="text/template">'+(j=j.replace(/<\/script>/g,Ie))+"</script>"}function U(j,F){F=S(F);let M=new RegExp(F.separator+(F.verticalSeparator?"|"+F.verticalSeparator:""),"mg"),J=new RegExp(F.separator),ve,Q,he,se=0,we=!0,ke=[];for(;ve=M.exec(j);)Q=J.test(ve[0]),!Q&&we&&ke.push([]),he=j.substring(se,ve.index),Q&&we?ke.push(he):ke[ke.length-1].push(he),se=M.lastIndex,we=Q;(we?ke:ke[ke.length-1]).push(j.substring(se));let Fe="";for(let Ze=0,De=ke.length;Ze<De;Ze++)ke[Ze]instanceof Array?(Fe+="<section "+F.attributes+">",ke[Ze].forEach(function(ko){Fe+="<section data-markdown>"+O(ko,F)+"</section>"}),Fe+="</section>"):Fe+="<section "+F.attributes+" data-markdown>"+O(ke[Ze],F)+"</section>";return Fe}function D(j){return new Promise(function(F){let M=[];[].slice.call(j.querySelectorAll("section[data-markdown]:not([data-markdown-parsed])")).forEach(function(J,ve){J.getAttribute("data-markdown").length?M.push(function(Q){return new Promise(function(he,se){let we=new XMLHttpRequest,ke=Q.getAttribute("data-markdown"),Fe=Q.getAttribute("data-charset");Fe!==null&&Fe!==""&&we.overrideMimeType("text/html; charset="+Fe),we.onreadystatechange=function(Ze,De){De.readyState===4&&(De.status>=200&&De.status<300||De.status===0?he(De,ke):se(De,ke))}.bind(this,Q,we),we.open("GET",ke,!0);try{we.send()}catch(Ze){console.warn("Failed to get the Markdown file "+ke+". Make sure that the presentation and the file are served by a HTTP server and the file can be found there. "+Ze),he(we,ke)}})}(J).then(function(Q,he){J.outerHTML=U(Q.responseText,{separator:J.getAttribute("data-separator"),verticalSeparator:J.getAttribute("data-separator-vertical"),notesSeparator:J.getAttribute("data-separator-notes"),attributes:x(J)})},function(Q,he){J.outerHTML='<section data-state="alert">ERROR: The attempt to fetch '+he+" failed with HTTP status "+Q.status+".Check your browser's JavaScript console for more details.<p>Remember that you need to serve the presentation HTML from a HTTP server.</p></section>"})):J.outerHTML=U(E(J),{separator:J.getAttribute("data-separator"),verticalSeparator:J.getAttribute("data-separator-vertical"),notesSeparator:J.getAttribute("data-separator-notes"),attributes:x(J)})}),Promise.all(M).then(F)})}function I(j,F,M){let J=new RegExp(M,"mg"),ve=new RegExp('([^"= ]+?)="([^"]+?)"|(data-[^"= ]+?)(?=[" ])',"mg"),Q,he,se=j.nodeValue;if(Q=J.exec(se)){let we=Q[1];for(se=se.substring(0,Q.index)+se.substring(J.lastIndex),j.nodeValue=se;he=ve.exec(we);)he[2]?F.setAttribute(he[1],he[2]):F.setAttribute(he[3],"");return!0}return!1}function $(j,F,M,J,ve){if(F!==null&&F.childNodes!==void 0&&F.childNodes.length>0){let Q=F;for(let he=0;he<F.childNodes.length;he++){let se=F.childNodes[he];if(he>0){let ke=he-1;for(;ke>=0;){let Fe=F.childNodes[ke];if(typeof Fe.setAttribute=="function"&&Fe.tagName!=="BR"){Q=Fe;break}ke-=1}}let we=j;se.nodeName==="section"&&(we=se,Q=se),typeof se.setAttribute!="function"&&se.nodeType!==Node.COMMENT_NODE||$(we,se,Q,J,ve)}}F.nodeType===Node.COMMENT_NODE&&I(F,M,J)===!1&&I(F,j,ve)}function z(){let j=K.getRevealElement().querySelectorAll("[data-markdown]:not([data-markdown-parsed])");return[].slice.call(j).forEach(function(F){F.setAttribute("data-markdown-parsed",!0);let M=F.querySelector("aside.notes"),J=E(F);F.innerHTML=re(J),$(F,F,null,F.getAttribute("data-element-attributes")||F.parentNode.getAttribute("data-element-attributes")||"\\.element\\s*?(.+?)$",F.getAttribute("data-attributes")||F.parentNode.getAttribute("data-attributes")||"\\.slide:\\s*?(\\S.+?)$"),M&&F.appendChild(M)}),Promise.resolve()}return{id:"markdown",init:function(j){K=j;let{renderer:F,animateLists:M,...J}=K.getConfig().markdown||{};return F||(F=new re.Renderer,F.code=(ve,Q)=>{let he="",se="";if(ii.test(Q)){let we=Q.match(ii)[2];we&&(he=`data-ln-start-from="${we.trim()}"`),se=Q.match(ii)[3].trim(),se=`data-line-numbers="${se}"`,Q=Q.replace(ii,"").trim()}return`<pre><code ${se} ${he} class="${Q}">${ve=ve.replace(/([&<>'"])/g,we=>Hr[we])}</code></pre>`}),M===!0&&(F.listitem=ve=>`<li class="fragment">${ve}</li>`),re.setOptions({renderer:F,...J}),D(K.getRevealElement()).then(z)},processSlides:D,convertSlides:z,slidify:U,marked:re}}})});var nd=b((OUe,$R)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?$R.exports={nextTick:ePe}:$R.exports=process;function ePe(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){e.apply(null,s)})}}});var U9=b((AUe,z9)=>{var tPe={}.toString;z9.exports=Array.isArray||function(e){return tPe.call(e)=="[object Array]"}});var FR=b((CUe,B9)=>{B9.exports=require("stream")});var uv=b((LR,V9)=>{var cv=require("buffer"),fs=cv.Buffer;function H9(e,t){for(var r in e)t[r]=e[r]}fs.from&&fs.alloc&&fs.allocUnsafe&&fs.allocUnsafeSlow?V9.exports=cv:(H9(cv,LR),LR.Buffer=Pc);function Pc(e,t,r){return fs(e,t,r)}H9(fs,Pc);Pc.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return fs(e,t,r)};Pc.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=fs(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Pc.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fs(e)};Pc.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cv.SlowBuffer(e)}});var Ic=b(pr=>{function rPe(e){return Array.isArray?Array.isArray(e):fv(e)==="[object Array]"}pr.isArray=rPe;function iPe(e){return typeof e=="boolean"}pr.isBoolean=iPe;function nPe(e){return e===null}pr.isNull=nPe;function sPe(e){return e==null}pr.isNullOrUndefined=sPe;function oPe(e){return typeof e=="number"}pr.isNumber=oPe;function aPe(e){return typeof e=="string"}pr.isString=aPe;function lPe(e){return typeof e=="symbol"}pr.isSymbol=lPe;function cPe(e){return e===void 0}pr.isUndefined=cPe;function uPe(e){return fv(e)==="[object RegExp]"}pr.isRegExp=uPe;function fPe(e){return typeof e=="object"&&e!==null}pr.isObject=fPe;function hPe(e){return fv(e)==="[object Date]"}pr.isDate=hPe;function dPe(e){return fv(e)==="[object Error]"||e instanceof Error}pr.isError=dPe;function pPe(e){return typeof e=="function"}pr.isFunction=pPe;function mPe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}pr.isPrimitive=mPe;pr.isBuffer=require("buffer").Buffer.isBuffer;function fv(e){return Object.prototype.toString.call(e)}});var G9=b((IUe,DR)=>{"use strict";function gPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var W9=uv().Buffer,sd=require("util");function yPe(e,t,r){e.copy(t,r)}DR.exports=function(){function e(){gPe(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return W9.alloc(0);for(var i=W9.allocUnsafe(r>>>0),n=this.head,s=0;n;)yPe(n.data,i,s),s+=n.data.length,n=n.next;return i},e}();sd&&sd.inspect&&sd.inspect.custom&&(DR.exports.prototype[sd.inspect.custom]=function(){var e=sd.inspect({length:this.length});return this.constructor.name+" "+e})});var jR=b((NUe,Y9)=>{"use strict";var hv=nd();function vPe(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,hv.nextTick(dv,this,e)):hv.nextTick(dv,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,hv.nextTick(dv,r,s)):hv.nextTick(dv,r,s):t&&t(s)}),this)}function _Pe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dv(e,t){e.emit("error",t)}Y9.exports={destroy:vPe,undestroy:_Pe}});var J9=b(($Ue,K9)=>{K9.exports=require("util").deprecate});var MR=b((FUe,nV)=>{"use strict";var ka=nd();nV.exports=bt;function X9(e){var t=this;this.next=null,this.entry=null,this.finish=function(){DPe(t,e)}}var bPe=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:ka.nextTick,Nc;bt.WritableState=ad;var Q9=Object.create(Ic());Q9.inherits=ya();var wPe={deprecate:J9()},eV=FR(),mv=uv().Buffer,SPe=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xPe(e){return mv.from(e)}function EPe(e){return mv.isBuffer(e)||e instanceof SPe}var tV=jR();Q9.inherits(bt,eV);function kPe(){}function ad(e,t){Nc=Nc||Ra(),e=e||{};var r=t instanceof Nc;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){IPe(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new X9(this)}ad.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ad.prototype,"buffer",{get:wPe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var pv;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(pv=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(e){return pv.call(this,e)?!0:this!==bt?!1:e&&e._writableState instanceof ad}})):pv=function(e){return e instanceof this};function bt(e){if(Nc=Nc||Ra(),!pv.call(bt,this)&&!(this instanceof Nc))return new bt(e);this._writableState=new ad(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),eV.call(this)}bt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function RPe(e,t){var r=new Error("write after end");e.emit("error",r),ka.nextTick(t,r)}function TPe(e,t,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),ka.nextTick(i,s),n=!1),n}bt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,s=!i.objectMode&&EPe(e);return s&&!mv.isBuffer(e)&&(e=xPe(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=kPe),i.ended?RPe(this,r):(s||TPe(this,i,e,r))&&(i.pendingcb++,n=APe(this,i,s,e,t,r)),n};bt.prototype.cork=function(){var e=this._writableState;e.corked++};bt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&rV(this,e))};bt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function OPe(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=mv.from(t,r)),t}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function APe(e,t,r,i,n,s){if(!r){var o=OPe(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else qR(e,t,!1,a,i,n,s);return l}function qR(e,t,r,i,n,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function CPe(e,t,r,i,n){--t.pendingcb,r?(ka.nextTick(n,i),ka.nextTick(od,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),od(e,t))}function PPe(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function IPe(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(PPe(r),t)CPe(e,r,i,t,n);else{var s=iV(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&rV(e,r),i?bPe(Z9,e,r,s,n):Z9(e,r,s,n)}}function Z9(e,t,r,i){r||NPe(e,t),t.pendingcb--,i(),od(e,t)}function NPe(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function rV(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,qR(e,t,!0,t.length,n,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new X9(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=t.objectMode?1:l.length;if(qR(e,t,!1,f,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}bt.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};bt.prototype._writev=null;bt.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||LPe(this,i,r)};function iV(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function $Pe(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),od(e,t)})}function FPe(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,ka.nextTick($Pe,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function od(e,t){var r=iV(t);return r&&(FPe(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function LPe(e,t,r){t.ending=!0,od(e,t),r&&(t.finished?ka.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function DPe(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(bt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});bt.prototype.destroy=tV.destroy;bt.prototype._undestroy=tV.undestroy;bt.prototype._destroy=function(e,t){this.end(),t(e)}});var Ra=b((LUe,lV)=>{"use strict";var sV=nd(),jPe=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};lV.exports=hs;var oV=Object.create(Ic());oV.inherits=ya();var aV=BR(),UR=MR();oV.inherits(hs,aV);for(zR=jPe(UR.prototype),gv=0;gv<zR.length;gv++)yv=zR[gv],hs.prototype[yv]||(hs.prototype[yv]=UR.prototype[yv]);var zR,yv,gv;function hs(e){if(!(this instanceof hs))return new hs(e);aV.call(this,e),UR.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",qPe)}Object.defineProperty(hs.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qPe(){this.allowHalfOpen||this._writableState.ended||sV.nextTick(MPe,this)}function MPe(e){e.end()}Object.defineProperty(hs.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});hs.prototype._destroy=function(e,t){this.push(null),this.end(),sV.nextTick(t,e)}});var BR=b((jUe,bV)=>{"use strict";var Fc=nd();bV.exports=Je;var zPe=U9(),ld;Je.ReadableState=mV;var DUe=require("events").EventEmitter,hV=function(e,t){return e.listeners(t).length},YR=FR(),cd=uv().Buffer,UPe=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function BPe(e){return cd.from(e)}function HPe(e){return cd.isBuffer(e)||e instanceof UPe}var dV=Object.create(Ic());dV.inherits=ya();var HR=require("util"),$e=void 0;HR&&HR.debuglog?$e=HR.debuglog("stream"):$e=function(){};var VPe=G9(),pV=jR(),$c;dV.inherits(Je,YR);var VR=["error","close","destroy","pause","resume"];function WPe(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):zPe(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function mV(e,t){ld=ld||Ra(),e=e||{};var r=t instanceof ld;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new VPe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&($c||($c=require("string_decoder/").StringDecoder),this.decoder=new $c(e.encoding),this.encoding=e.encoding)}function Je(e){if(ld=ld||Ra(),!(this instanceof Je))return new Je(e);this._readableState=new mV(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),YR.call(this)}Object.defineProperty(Je.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Je.prototype.destroy=pV.destroy;Je.prototype._undestroy=pV.undestroy;Je.prototype._destroy=function(e,t){this.push(null),t(e)};Je.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=cd.from(e,t),t=""),i=!0),gV(this,e,t,!1,i)};Je.prototype.unshift=function(e){return gV(this,e,null,!0,!1)};function gV(e,t,r,i,n){var s=e._readableState;if(t===null)s.reading=!1,JPe(e,s);else{var o;n||(o=GPe(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==cd.prototype&&(t=BPe(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):WR(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?WR(e,s,t,!1):yV(e,s)):WR(e,s,t,!1))):i||(s.reading=!1)}return YPe(s)}function WR(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&vv(e)),yV(e,t)}function GPe(e,t){var r;return!HPe(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function YPe(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Je.prototype.isPaused=function(){return this._readableState.flowing===!1};Je.prototype.setEncoding=function(e){return $c||($c=require("string_decoder/").StringDecoder),this._readableState.decoder=new $c(e),this._readableState.encoding=e,this};var cV=8388608;function KPe(e){return e>=cV?e=cV:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function uV(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=KPe(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Je.prototype.read=function(e){$e("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return $e("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?GR(this):vv(this),null;if(e=uV(e,t),e===0&&t.ended)return t.length===0&&GR(this),null;var i=t.needReadable;$e("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,$e("length less than watermark",i)),t.ended||t.reading?(i=!1,$e("reading or ended",i)):i&&($e("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=uV(r,t)));var n;return e>0?n=vV(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&GR(this)),n!==null&&this.emit("data",n),n};function JPe(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,vv(e)}}function vv(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||($e("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Fc.nextTick(fV,e):fV(e))}function fV(e){$e("emit readable"),e.emit("readable"),KR(e)}function yV(e,t){t.readingMore||(t.readingMore=!0,Fc.nextTick(ZPe,e,t))}function ZPe(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&($e("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Je.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Je.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,$e("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=n?a:y;i.endEmitted?Fc.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(_,w){$e("onunpipe"),_===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,u())}function a(){$e("onend"),e.end()}var l=XPe(r);e.on("drain",l);var c=!1;function u(){$e("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",h),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var f=!1;r.on("data",h);function h(_){$e("ondata"),f=!1;var w=e.write(_);w===!1&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&_V(i.pipes,e)!==-1)&&!c&&($e("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function d(_){$e("onerror",_),y(),e.removeListener("error",d),hV(e,"error")===0&&e.emit("error",_)}WPe(e,"error",d);function p(){e.removeListener("finish",m),y()}e.once("close",p);function m(){$e("onfinish"),e.removeListener("close",p),y()}e.once("finish",m);function y(){$e("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||($e("pipe resume"),r.resume()),e};function XPe(e){return function(){var t=e._readableState;$e("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&hV(e,"data")&&(t.flowing=!0,KR(e))}}Je.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=_V(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Je.prototype.on=function(e,t){var r=YR.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&vv(this):Fc.nextTick(QPe,this))}return r};Je.prototype.addListener=Je.prototype.on;function QPe(e){$e("readable nexttick read 0"),e.read(0)}Je.prototype.resume=function(){var e=this._readableState;return e.flowing||($e("resume"),e.flowing=!0,eIe(this,e)),this};function eIe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Fc.nextTick(tIe,e,t))}function tIe(e,t){t.reading||($e("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),KR(e),t.flowing&&!t.reading&&e.read(0)}Je.prototype.pause=function(){return $e("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($e("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function KR(e){var t=e._readableState;for($e("flow",t.flowing);t.flowing&&e.read()!==null;);}Je.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if($e("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if($e("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(o){return function(){return e[o].apply(e,arguments)}}(n));for(var s=0;s<VR.length;s++)e.on(VR[s],this.emit.bind(this,VR[s]));return this._read=function(o){$e("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(Je.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Je._fromList=vV;function vV(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=rIe(e,t.buffer,t.decoder),r}function rIe(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?iIe(e,t):nIe(e,t),i}function iIe(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?n+=s:n+=s.slice(0,e),e-=o,e===0){o===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++i}return t.length-=i,n}function nIe(e,t){var r=cd.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,e===0){o===s.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(o));break}++n}return t.length-=n,r}function GR(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Fc.nextTick(sIe,t,e))}function sIe(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function _V(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var JR=b((qUe,xV)=>{"use strict";xV.exports=ds;var _v=Ra(),SV=Object.create(Ic());SV.inherits=ya();SV.inherits(ds,_v);function oIe(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ds(e){if(!(this instanceof ds))return new ds(e);_v.call(this,e),this._transformState={afterTransform:oIe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",aIe)}function aIe(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){wV(e,t,r)}):wV(this,null,null)}ds.prototype.push=function(e,t){return this._transformState.needTransform=!1,_v.prototype.push.call(this,e,t)};ds.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ds.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ds.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ds.prototype._destroy=function(e,t){var r=this;_v.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function wV(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var TV=b((MUe,RV)=>{"use strict";RV.exports=ud;var EV=JR(),kV=Object.create(Ic());kV.inherits=ya();kV.inherits(ud,EV);function ud(e){if(!(this instanceof ud))return new ud(e);EV.call(this,e)}ud.prototype._transform=function(e,t,r){r(null,e)}});var ZR=b((Yt,bv)=>{var In=require("stream");process.env.READABLE_STREAM==="disable"&&In?(bv.exports=In,Yt=bv.exports=In.Readable,Yt.Readable=In.Readable,Yt.Writable=In.Writable,Yt.Duplex=In.Duplex,Yt.Transform=In.Transform,Yt.PassThrough=In.PassThrough,Yt.Stream=In):(Yt=bv.exports=BR(),Yt.Stream=In||Yt,Yt.Readable=Yt,Yt.Writable=MR(),Yt.Duplex=Ra(),Yt.Transform=JR(),Yt.PassThrough=TV())});var ps=b(ei=>{"use strict";ei.base64=!0;ei.array=!0;ei.string=!0;ei.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ei.nodebuffer=typeof Buffer<"u";ei.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ei.blob=!1;else{XR=new ArrayBuffer(0);try{ei.blob=new Blob([XR],{type:"application/zip"}).size===0}catch{try{OV=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,QR=new OV,QR.append(XR),ei.blob=QR.getBlob("application/zip").size===0}catch{ei.blob=!1}}}var XR,OV,QR;try{ei.nodestream=!!ZR().Readable}catch{ei.nodestream=!1}});var tT=b(eT=>{"use strict";var lIe=rt(),cIe=ps(),Nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";eT.encode=function(e){for(var t=[],r,i,n,s,o,a,l,c=0,u=e.length,f=u,h=lIe.getTypeOf(e)!=="string";c<e.length;)f=u-c,h?(r=e[c++],i=c<u?e[c++]:0,n=c<u?e[c++]:0):(r=e.charCodeAt(c++),i=c<u?e.charCodeAt(c++):0,n=c<u?e.charCodeAt(c++):0),s=r>>2,o=(r&3)<<4|i>>4,a=f>1?(i&15)<<2|n>>6:64,l=f>2?n&63:64,t.push(Nn.charAt(s)+Nn.charAt(o)+Nn.charAt(a)+Nn.charAt(l));return t.join("")};eT.decode=function(e){var t,r,i,n,s,o,a,l=0,c=0,u="data:";if(e.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===Nn.charAt(64)&&f--,e.charAt(e.length-2)===Nn.charAt(64)&&f--,f%1!==0)throw new Error("Invalid base64 input, bad content length.");var h;for(cIe.uint8array?h=new Uint8Array(f|0):h=new Array(f|0);l<e.length;)n=Nn.indexOf(e.charAt(l++)),s=Nn.indexOf(e.charAt(l++)),o=Nn.indexOf(e.charAt(l++)),a=Nn.indexOf(e.charAt(l++)),t=n<<2|s>>4,r=(s&15)<<4|o>>2,i=(o&3)<<6|a,h[c++]=t,o!==64&&(h[c++]=r),a!==64&&(h[c++]=i);return h}});var fd=b((BUe,AV)=>{"use strict";AV.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var NV=b((HUe,IV)=>{"use strict";var CV=global.MutationObserver||global.WebKitMutationObserver,Lc;process.browser?CV?(rT=0,PV=new CV(hd),iT=global.document.createTextNode(""),PV.observe(iT,{characterData:!0}),Lc=function(){iT.data=rT=++rT%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(nT=new global.MessageChannel,nT.port1.onmessage=hd,Lc=function(){nT.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?Lc=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){hd(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:Lc=function(){setTimeout(hd,0)}:Lc=function(){process.nextTick(hd)};var rT,PV,iT,nT,sT,dd=[];function hd(){sT=!0;for(var e,t,r=dd.length;r;){for(t=dd,dd=[],e=-1;++e<r;)t[e]();r=dd.length}sT=!1}IV.exports=uIe;function uIe(e){dd.push(e)===1&&!sT&&Lc()}});var MV=b((VUe,qV)=>{"use strict";var $V=NV();function Dc(){}var mr={},FV=["REJECTED"],oT=["FULFILLED"],LV=["PENDING"];process.browser||(pd=["UNHANDLED"]);var pd;qV.exports=po;function po(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=LV,this.queue=[],this.outcome=void 0,process.browser||(this.handled=pd),e!==Dc&&DV(this,e)}po.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function s(){return n}return t.resolve(e()).then(s)}function i(n){function s(){throw n}return t.resolve(e()).then(s)}};po.prototype.catch=function(e){return this.then(null,e)};po.prototype.then=function(e,t){if(typeof e!="function"&&this.state===oT||typeof t!="function"&&this.state===FV)return this;var r=new this.constructor(Dc);if(process.browser||this.handled===pd&&(this.handled=null),this.state!==LV){var i=this.state===oT?e:t;aT(r,i,this.outcome)}else this.queue.push(new md(r,e,t));return r};function md(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}md.prototype.callFulfilled=function(e){mr.resolve(this.promise,e)};md.prototype.otherCallFulfilled=function(e){aT(this.promise,this.onFulfilled,e)};md.prototype.callRejected=function(e){mr.reject(this.promise,e)};md.prototype.otherCallRejected=function(e){aT(this.promise,this.onRejected,e)};function aT(e,t,r){$V(function(){var i;try{i=t(r)}catch(n){return mr.reject(e,n)}i===e?mr.reject(e,new TypeError("Cannot resolve promise with itself")):mr.resolve(e,i)})}mr.resolve=function(e,t){var r=jV(fIe,t);if(r.status==="error")return mr.reject(e,r.value);var i=r.value;if(i)DV(e,i);else{e.state=oT,e.outcome=t;for(var n=-1,s=e.queue.length;++n<s;)e.queue[n].callFulfilled(t)}return e};mr.reject=function(e,t){e.state=FV,e.outcome=t,process.browser||e.handled===pd&&$V(function(){e.handled===pd&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function fIe(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function DV(e,t){var r=!1;function i(a){r||(r=!0,mr.reject(e,a))}function n(a){r||(r=!0,mr.resolve(e,a))}function s(){t(n,i)}var o=jV(s);o.status==="error"&&i(o.value)}function jV(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}po.resolve=hIe;function hIe(e){return e instanceof this?e:mr.resolve(new this(Dc),e)}po.reject=dIe;function dIe(e){var t=new this(Dc);return mr.reject(t,e)}po.all=pIe;function pIe(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=new Array(r),s=0,o=-1,a=new this(Dc);++o<r;)l(e[o],o);return a;function l(c,u){t.resolve(c).then(f,function(h){i||(i=!0,mr.reject(a,h))});function f(h){n[u]=h,++s===r&&!i&&(i=!0,mr.resolve(a,n))}}}po.race=mIe;function mIe(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=-1,s=new this(Dc);++n<r;)o(e[n]);return s;function o(a){t.resolve(a).then(function(l){i||(i=!0,mr.resolve(s,l))},function(l){i||(i=!0,mr.reject(s,l))})}}});var jc=b((WUe,zV)=>{"use strict";var lT=null;typeof Promise<"u"?lT=Promise:lT=MV();zV.exports={Promise:lT}});var BV=b(UV=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,s=e.document,o;function a(w){typeof w!="function"&&(w=new Function(""+w));for(var v=new Array(arguments.length-1),g=0;g<v.length;g++)v[g]=arguments[g+1];var T={callback:w,args:v};return i[r]=T,o(r),r++}function l(w){delete i[w]}function c(w){var v=w.callback,g=w.args;switch(g.length){case 0:v();break;case 1:v(g[0]);break;case 2:v(g[0],g[1]);break;case 3:v(g[0],g[1],g[2]);break;default:v.apply(t,g);break}}function u(w){if(n)setTimeout(u,0,w);else{var v=i[w];if(v){n=!0;try{c(v)}finally{l(w),n=!1}}}}function f(){o=function(w){process.nextTick(function(){u(w)})}}function h(){if(e.postMessage&&!e.importScripts){var w=!0,v=e.onmessage;return e.onmessage=function(){w=!1},e.postMessage("","*"),e.onmessage=v,w}}function d(){var w="setImmediate$"+Math.random()+"$",v=function(g){g.source===e&&typeof g.data=="string"&&g.data.indexOf(w)===0&&u(+g.data.slice(w.length))};e.addEventListener?e.addEventListener("message",v,!1):e.attachEvent("onmessage",v),o=function(g){e.postMessage(w+g,"*")}}function p(){var w=new MessageChannel;w.port1.onmessage=function(v){var g=v.data;u(g)},o=function(v){w.port2.postMessage(v)}}function m(){var w=s.documentElement;o=function(v){var g=s.createElement("script");g.onreadystatechange=function(){u(v),g.onreadystatechange=null,w.removeChild(g),g=null},w.appendChild(g)}}function y(){o=function(w){setTimeout(u,0,w)}}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}.toString.call(e.process)==="[object process]"?f():h()?d():e.MessageChannel?p():s&&"onreadystatechange"in s.createElement("script")?m():y(),_.setImmediate=a,_.clearImmediate=l})(typeof self>"u"?typeof global>"u"?UV:global:self)});var rt=b(wt=>{"use strict";var mo=ps(),gIe=tT(),qc=fd(),cT=jc();BV();function yIe(e){var t=null;return mo.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Sv(e,t)}wt.newBlob=function(e,t){wt.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function gd(e){return e}function Sv(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var wv={stringifyByChunk:function(e,t,r){var i=[],n=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;n<s;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,s)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,s)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return mo.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return mo.nodebuffer&&String.fromCharCode.apply(null,qc.allocBuffer(1)).length===1}catch{return!1}}()}};function yd(e){var t=65536,r=wt.getTypeOf(e),i=!0;if(r==="uint8array"?i=wv.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=wv.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return wv.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return wv.stringifyByChar(e)}wt.applyFromCharCode=yd;function xv(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var go={};go.string={string:gd,array:function(e){return Sv(e,new Array(e.length))},arraybuffer:function(e){return go.string.uint8array(e).buffer},uint8array:function(e){return Sv(e,new Uint8Array(e.length))},nodebuffer:function(e){return Sv(e,qc.allocBuffer(e.length))}};go.array={string:yd,array:gd,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return qc.newBufferFrom(e)}};go.arraybuffer={string:function(e){return yd(new Uint8Array(e))},array:function(e){return xv(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:gd,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return qc.newBufferFrom(new Uint8Array(e))}};go.uint8array={string:yd,array:function(e){return xv(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:gd,nodebuffer:function(e){return qc.newBufferFrom(e)}};go.nodebuffer={string:yd,array:function(e){return xv(e,new Array(e.length))},arraybuffer:function(e){return go.nodebuffer.uint8array(e).buffer},uint8array:function(e){return xv(e,new Uint8Array(e.length))},nodebuffer:gd};wt.transformTo=function(e,t){if(t||(t=""),!e)return t;wt.checkSupport(e);var r=wt.getTypeOf(t),i=go[r][e](t);return i};wt.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};wt.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(mo.nodebuffer&&qc.isBuffer(e))return"nodebuffer";if(mo.uint8array&&e instanceof Uint8Array)return"uint8array";if(mo.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};wt.checkSupport=function(e){var t=mo[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};wt.MAX_VALUE_16BITS=65535;wt.MAX_VALUE_32BITS=-1;wt.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};wt.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};wt.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r};wt.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};wt.prepareContent=function(e,t,r,i,n){var s=cT.Promise.resolve(t).then(function(o){var a=mo.blob&&(o instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(o))!==-1);return a&&typeof FileReader<"u"?new cT.Promise(function(l,c){var u=new FileReader;u.onload=function(f){l(f.target.result)},u.onerror=function(f){c(f.target.error)},u.readAsArrayBuffer(o)}):o});return s.then(function(o){var a=wt.getTypeOf(o);return a?(a==="arraybuffer"?o=wt.transformTo("uint8array",o):a==="string"&&(n?o=gIe.decode(o):r&&i!==!0&&(o=yIe(o))),o):cT.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var ti=b((KUe,VV)=>{"use strict";function HV(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}HV.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};VV.exports=HV});var zc=b(yo=>{"use strict";var Mc=rt(),Ta=ps(),vIe=fd(),Ev=ti(),vd=new Array(256);for(ms=0;ms<256;ms++)vd[ms]=ms>=252?6:ms>=248?5:ms>=240?4:ms>=224?3:ms>=192?2:1;var ms;vd[254]=vd[254]=1;var _Ie=function(e){var t,r,i,n,s,o=e.length,a=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(Ta.uint8array?t=new Uint8Array(a):t=new Array(a),s=0,n=0;s<a;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t},bIe=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+vd[e[r]]>t?r:t},wIe=function(e){var t,r,i,n,s=e.length,o=new Array(s*2);for(r=0,t=0;t<s;){if(i=e[t++],i<128){o[r++]=i;continue}if(n=vd[i],n>4){o[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<s;)i=i<<6|e[t++]&63,n--;if(n>1){o[r++]=65533;continue}i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|i&1023)}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),Mc.applyFromCharCode(o)};yo.utf8encode=function(t){return Ta.nodebuffer?vIe.newBufferFrom(t,"utf-8"):_Ie(t)};yo.utf8decode=function(t){return Ta.nodebuffer?Mc.transformTo("nodebuffer",t).toString("utf-8"):(t=Mc.transformTo(Ta.uint8array?"uint8array":"array",t),wIe(t))};function kv(){Ev.call(this,"utf-8 decode"),this.leftOver=null}Mc.inherits(kv,Ev);kv.prototype.processChunk=function(e){var t=Mc.transformTo(Ta.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ta.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=bIe(t),n=t;i!==t.length&&(Ta.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:yo.utf8decode(n),meta:e.meta})};kv.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:yo.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};yo.Utf8DecodeWorker=kv;function uT(){Ev.call(this,"utf-8 encode")}Mc.inherits(uT,Ev);uT.prototype.processChunk=function(e){this.push({data:yo.utf8encode(e.data),meta:e.meta})};yo.Utf8EncodeWorker=uT});var KV=b((ZUe,YV)=>{"use strict";var WV=ti(),GV=rt();function fT(e){WV.call(this,"ConvertWorker to "+e),this.destType=e}GV.inherits(fT,WV);fT.prototype.processChunk=function(e){this.push({data:GV.transformTo(this.destType,e.data),meta:e.meta})};YV.exports=fT});var XV=b((XUe,ZV)=>{"use strict";var JV=ZR().Readable,SIe=rt();SIe.inherits(hT,JV);function hT(e,t,r){JV.call(this,t),this._helper=e;var i=this;e.on("data",function(n,s){i.push(n)||i._helper.pause(),r&&r(s)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}hT.prototype._read=function(){this._helper.resume()};ZV.exports=hT});var dT=b((QUe,tW)=>{"use strict";var Oa=rt(),xIe=KV(),EIe=ti(),kIe=tT(),RIe=ps(),TIe=jc(),QV=null;if(RIe.nodestream)try{QV=XV()}catch{}function OIe(e,t,r){switch(e){case"blob":return Oa.newBlob(Oa.transformTo("arraybuffer",t),r);case"base64":return kIe.encode(t);default:return Oa.transformTo(e,t)}}function AIe(e,t){var r,i=0,n=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(s),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function CIe(e,t){return new TIe.Promise(function(r,i){var n=[],s=e._internalType,o=e._outputType,a=e._mimeType;e.on("data",function(l,c){n.push(l),t&&t(c)}).on("error",function(l){n=[],i(l)}).on("end",function(){try{var l=OIe(o,AIe(s,n),a);r(l)}catch(c){i(c)}n=[]}).resume()})}function eW(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Oa.checkSupport(i),this._worker=e.pipe(new xIe(i)),e.lock()}catch(n){this._worker=new EIe("error"),this._worker.error(n)}}eW.prototype={accumulate:function(e){return CIe(this,e)},on:function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Oa.delay(t,arguments,r)}),this},resume:function(){return Oa.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Oa.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new QV(this,{objectMode:this._outputType!=="nodebuffer"},e)}};tW.exports=eW});var pT=b(Gi=>{"use strict";Gi.base64=!1;Gi.binary=!1;Gi.dir=!1;Gi.createFolders=!0;Gi.date=null;Gi.compression=null;Gi.compressionOptions=null;Gi.comment=null;Gi.unixPermissions=null;Gi.dosPermissions=null});var mT=b((tBe,rW)=>{"use strict";var Rv=rt(),Tv=ti(),PIe=16*1024;function Uc(e){Tv.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=Rv.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Rv.inherits(Uc,Tv);Uc.prototype.cleanUp=function(){Tv.prototype.cleanUp.call(this),this.data=null};Uc.prototype.resume=function(){return Tv.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Rv.delay(this._tickAndRepeat,[],this)),!0):!1};Uc.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Rv.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};Uc.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=PIe,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};rW.exports=Uc});var Ov=b((rBe,nW)=>{"use strict";var IIe=rt();function NIe(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var iW=NIe();function $Ie(e,t,r,i){var n=iW,s=i+r;e=e^-1;for(var o=i;o<s;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}function FIe(e,t,r,i){var n=iW,s=i+r;e=e^-1;for(var o=i;o<s;o++)e=e>>>8^n[(e^t.charCodeAt(o))&255];return e^-1}nW.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=IIe.getTypeOf(t)!=="string";return i?$Ie(r|0,t,t.length,0):FIe(r|0,t,t.length,0)}});var yT=b((iBe,oW)=>{"use strict";var sW=ti(),LIe=Ov(),DIe=rt();function gT(){sW.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}DIe.inherits(gT,sW);gT.prototype.processChunk=function(e){this.streamInfo.crc32=LIe(e.data,this.streamInfo.crc32||0),this.push(e)};oW.exports=gT});var lW=b((nBe,aW)=>{"use strict";var jIe=rt(),vT=ti();function _T(e){vT.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}jIe.inherits(_T,vT);_T.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}vT.prototype.processChunk.call(this,e)};aW.exports=_T});var Av=b((sBe,fW)=>{"use strict";var cW=jc(),uW=mT(),qIe=yT(),bT=lW();function wT(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}wT.prototype={getContentWorker:function(){var e=new uW(cW.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new bT("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new uW(cW.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};wT.createWorkerFrom=function(e,t,r){return e.pipe(new qIe).pipe(new bT("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new bT("compressedSize")).withStreamInfo("compression",t)};fW.exports=wT});var mW=b((oBe,pW)=>{"use strict";var MIe=dT(),zIe=mT(),ST=zc(),xT=Av(),hW=ti(),ET=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};ET.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new ST.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new ST.Utf8DecodeWorker))}catch(s){t=new hW("error"),t.error(s)}return new MIe(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof xT&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new ST.Utf8EncodeWorker)),xT.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof xT?this._data.getContentWorker():this._data instanceof hW?this._data:new zIe(this._data)}};var dW=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],UIe=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Cv=0;Cv<dW.length;Cv++)ET.prototype[dW[Cv]]=UIe;var Cv;pW.exports=ET});var gs=b(Cr=>{"use strict";var BIe=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function HIe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Cr.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)HIe(r,i)&&(e[i]=r[i])}}return e};Cr.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var VIe={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var s=0;s<i;s++)e[n+s]=t[r+s]},flattenChunks:function(e){var t,r,i,n,s,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)s=e[t],o.set(s,n),n+=s.length;return o}},WIe={arraySet:function(e,t,r,i,n){for(var s=0;s<i;s++)e[n+s]=t[r+s]},flattenChunks:function(e){return[].concat.apply([],e)}};Cr.setTyped=function(e){e?(Cr.Buf8=Uint8Array,Cr.Buf16=Uint16Array,Cr.Buf32=Int32Array,Cr.assign(Cr,VIe)):(Cr.Buf8=Array,Cr.Buf16=Array,Cr.Buf32=Array,Cr.assign(Cr,WIe))};Cr.setTyped(BIe)});var jW=b(Vc=>{"use strict";var GIe=gs(),YIe=4,gW=0,yW=1,KIe=2;function Hc(e){for(var t=e.length;--t>=0;)e[t]=0}var JIe=0,xW=1,ZIe=2,XIe=3,QIe=258,PT=29,Ed=256,bd=Ed+1+PT,Bc=30,IT=19,EW=2*bd+1,Aa=15,kT=16,e2e=7,NT=256,kW=16,RW=17,TW=18,AT=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Pv=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],t2e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],OW=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],r2e=512,ys=new Array((bd+2)*2);Hc(ys);var _d=new Array(Bc*2);Hc(_d);var wd=new Array(r2e);Hc(wd);var Sd=new Array(QIe-XIe+1);Hc(Sd);var $T=new Array(PT);Hc($T);var Iv=new Array(Bc);Hc(Iv);function RT(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var AW,CW,PW;function TT(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function IW(e){return e<256?wd[e]:wd[256+(e>>>7)]}function xd(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Br(e,t,r){e.bi_valid>kT-r?(e.bi_buf|=t<<e.bi_valid&65535,xd(e,e.bi_buf),e.bi_buf=t>>kT-e.bi_valid,e.bi_valid+=r-kT):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function $n(e,t,r){Br(e,r[t*2],r[t*2+1])}function NW(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function i2e(e){e.bi_valid===16?(xd(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function n2e(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,c,u,f,h,d,p,m=0;for(h=0;h<=Aa;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<EW;c++)u=e.heap[c],h=r[r[u*2+1]*2+1]+1,h>l&&(h=l,m++),r[u*2+1]=h,!(u>i)&&(e.bl_count[h]++,d=0,u>=a&&(d=o[u-a]),p=r[u*2],e.opt_len+=p*(h+d),s&&(e.static_len+=p*(n[u*2+1]+d)));if(m!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,m-=2}while(m>0);for(h=l;h!==0;h--)for(u=e.bl_count[h];u!==0;)f=e.heap[--c],!(f>i)&&(r[f*2+1]!==h&&(e.opt_len+=(h-r[f*2+1])*r[f*2],r[f*2+1]=h),u--)}}function $W(e,t,r){var i=new Array(Aa+1),n=0,s,o;for(s=1;s<=Aa;s++)i[s]=n=n+r[s-1]<<1;for(o=0;o<=t;o++){var a=e[o*2+1];a!==0&&(e[o*2]=NW(i[a]++,a))}}function s2e(){var e,t,r,i,n,s=new Array(Aa+1);for(r=0,i=0;i<PT-1;i++)for($T[i]=r,e=0;e<1<<AT[i];e++)Sd[r++]=i;for(Sd[r-1]=i,n=0,i=0;i<16;i++)for(Iv[i]=n,e=0;e<1<<Pv[i];e++)wd[n++]=i;for(n>>=7;i<Bc;i++)for(Iv[i]=n<<7,e=0;e<1<<Pv[i]-7;e++)wd[256+n++]=i;for(t=0;t<=Aa;t++)s[t]=0;for(e=0;e<=143;)ys[e*2+1]=8,e++,s[8]++;for(;e<=255;)ys[e*2+1]=9,e++,s[9]++;for(;e<=279;)ys[e*2+1]=7,e++,s[7]++;for(;e<=287;)ys[e*2+1]=8,e++,s[8]++;for($W(ys,bd+1,s),e=0;e<Bc;e++)_d[e*2+1]=5,_d[e*2]=NW(e,5);AW=new RT(ys,AT,Ed+1,bd,Aa),CW=new RT(_d,Pv,0,Bc,Aa),PW=new RT(new Array(0),t2e,0,IT,e2e)}function FW(e){var t;for(t=0;t<bd;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Bc;t++)e.dyn_dtree[t*2]=0;for(t=0;t<IT;t++)e.bl_tree[t*2]=0;e.dyn_ltree[NT*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function LW(e){e.bi_valid>8?xd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function o2e(e,t,r,i){LW(e),i&&(xd(e,r),xd(e,~r)),GIe.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function vW(e,t,r,i){var n=t*2,s=r*2;return e[n]<e[s]||e[n]===e[s]&&i[t]<=i[r]}function OT(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&vW(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!vW(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function _W(e,t,r){var i,n,s=0,o,a;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],n=e.pending_buf[e.l_buf+s],s++,i===0?$n(e,n,t):(o=Sd[n],$n(e,o+Ed+1,t),a=AT[o],a!==0&&(n-=$T[o],Br(e,n,a)),i--,o=IW(i),$n(e,o,r),a=Pv[o],a!==0&&(i-=Iv[o],Br(e,i,a)));while(s<e.last_lit);$n(e,NT,t)}function CT(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems,o,a,l=-1,c;for(e.heap_len=0,e.heap_max=EW,o=0;o<s;o++)r[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,r[c*2]=1,e.depth[c]=0,e.opt_len--,n&&(e.static_len-=i[c*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)OT(e,r,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],OT(e,r,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,r[c*2]=r[o*2]+r[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,r[o*2+1]=r[a*2+1]=c,e.heap[1]=c++,OT(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],n2e(e,t),$W(r,l,e.bl_count)}function bW(e,t,r){var i,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=o,o=t[(i+1)*2+1],!(++a<l&&s===o)&&(a<c?e.bl_tree[s*2]+=a:s!==0?(s!==n&&e.bl_tree[s*2]++,e.bl_tree[kW*2]++):a<=10?e.bl_tree[RW*2]++:e.bl_tree[TW*2]++,a=0,n=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))}function wW(e,t,r){var i,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),i=0;i<=r;i++)if(s=o,o=t[(i+1)*2+1],!(++a<l&&s===o)){if(a<c)do $n(e,s,e.bl_tree);while(--a!==0);else s!==0?(s!==n&&($n(e,s,e.bl_tree),a--),$n(e,kW,e.bl_tree),Br(e,a-3,2)):a<=10?($n(e,RW,e.bl_tree),Br(e,a-3,3)):($n(e,TW,e.bl_tree),Br(e,a-11,7));a=0,n=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}}function a2e(e){var t;for(bW(e,e.dyn_ltree,e.l_desc.max_code),bW(e,e.dyn_dtree,e.d_desc.max_code),CT(e,e.bl_desc),t=IT-1;t>=3&&e.bl_tree[OW[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function l2e(e,t,r,i){var n;for(Br(e,t-257,5),Br(e,r-1,5),Br(e,i-4,4),n=0;n<i;n++)Br(e,e.bl_tree[OW[n]*2+1],3);wW(e,e.dyn_ltree,t-1),wW(e,e.dyn_dtree,r-1)}function c2e(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return gW;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return yW;for(r=32;r<Ed;r++)if(e.dyn_ltree[r*2]!==0)return yW;return gW}var SW=!1;function u2e(e){SW||(s2e(),SW=!0),e.l_desc=new TT(e.dyn_ltree,AW),e.d_desc=new TT(e.dyn_dtree,CW),e.bl_desc=new TT(e.bl_tree,PW),e.bi_buf=0,e.bi_valid=0,FW(e)}function DW(e,t,r,i){Br(e,(JIe<<1)+(i?1:0),3),o2e(e,t,r,!0)}function f2e(e){Br(e,xW<<1,3),$n(e,NT,ys),i2e(e)}function h2e(e,t,r,i){var n,s,o=0;e.level>0?(e.strm.data_type===KIe&&(e.strm.data_type=c2e(e)),CT(e,e.l_desc),CT(e,e.d_desc),o=a2e(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=r+5,r+4<=n&&t!==-1?DW(e,t,r,i):e.strategy===YIe||s===n?(Br(e,(xW<<1)+(i?1:0),3),_W(e,ys,_d)):(Br(e,(ZIe<<1)+(i?1:0),3),l2e(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),_W(e,e.dyn_ltree,e.dyn_dtree)),FW(e),i&&LW(e)}function d2e(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Sd[r]+Ed+1)*2]++,e.dyn_dtree[IW(t)*2]++),e.last_lit===e.lit_bufsize-1}Vc._tr_init=u2e;Vc._tr_stored_block=DW;Vc._tr_flush_block=h2e;Vc._tr_tally=d2e;Vc._tr_align=f2e});var FT=b((cBe,qW)=>{"use strict";function p2e(e,t,r,i){for(var n=e&65535|0,s=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0}qW.exports=p2e});var LT=b((uBe,MW)=>{"use strict";function m2e(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var g2e=m2e();function y2e(e,t,r,i){var n=g2e,s=i+r;e^=-1;for(var o=i;o<s;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}MW.exports=y2e});var Nv=b((fBe,zW)=>{"use strict";zW.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var JW=b(Dn=>{"use strict";var Pr=gs(),xi=jW(),VW=FT(),vo=LT(),v2e=Nv(),Na=0,_2e=1,b2e=3,xo=4,UW=5,Ln=0,BW=1,Ei=-2,w2e=-3,DT=-5,S2e=-1,x2e=1,$v=2,E2e=3,k2e=4,R2e=0,T2e=2,jv=8,O2e=9,A2e=15,C2e=8,P2e=29,I2e=256,qT=I2e+1+P2e,N2e=30,$2e=19,F2e=2*qT+1,L2e=15,Te=3,wo=258,Yi=wo+Te+1,D2e=32,qv=42,MT=69,Fv=73,Lv=91,Dv=103,Ca=113,Rd=666,Rt=1,Td=2,Pa=3,Yc=4,j2e=3;function So(e,t){return e.msg=v2e[t],t}function HW(e){return(e<<1)-(e>4?9:0)}function bo(e){for(var t=e.length;--t>=0;)e[t]=0}function _o(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Pr.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Kt(e,t){xi._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_o(e.strm)}function Pe(e,t){e.pending_buf[e.pending++]=t}function kd(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function q2e(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,Pr.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=VW(e.adler,t,n,r):e.state.wrap===2&&(e.adler=vo(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function WW(e,t){var r=e.max_chain_length,i=e.strstart,n,s,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-Yi?e.strstart-(e.w_size-Yi):0,c=e.window,u=e.w_mask,f=e.prev,h=e.strstart+wo,d=c[i+o-1],p=c[i+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==p||c[n+o-1]!==d||c[n]!==c[i]||c[++n]!==c[i+1])){i+=2,n++;do;while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(s=wo-(h-i),i=h-wo,s>o){if(e.match_start=t,o=s,s>=a)break;d=c[i+o-1],p=c[i+o]}}while((t=f[t&u])>l&&--r!==0);return o<=e.lookahead?o:e.lookahead}function Ia(e){var t=e.w_size,r,i,n,s,o;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Yi)){Pr.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=q2e(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=Te)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+Te-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<Te)););}while(e.lookahead<Yi&&e.strm.avail_in!==0)}function M2e(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ia(e),e.lookahead===0&&t===Na)return Rt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Kt(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Yi&&(Kt(e,!1),e.strm.avail_out===0))return Rt}return e.insert=0,t===xo?(Kt(e,!0),e.strm.avail_out===0?Pa:Yc):(e.strstart>e.block_start&&(Kt(e,!1),e.strm.avail_out===0),Rt)}function jT(e,t){for(var r,i;;){if(e.lookahead<Yi){if(Ia(e),e.lookahead<Yi&&t===Na)return Rt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Te&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Te-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Yi&&(e.match_length=WW(e,r)),e.match_length>=Te)if(i=xi._tr_tally(e,e.strstart-e.match_start,e.match_length-Te),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Te){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Te-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=xi._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Kt(e,!1),e.strm.avail_out===0))return Rt}return e.insert=e.strstart<Te-1?e.strstart:Te-1,t===xo?(Kt(e,!0),e.strm.avail_out===0?Pa:Yc):e.last_lit&&(Kt(e,!1),e.strm.avail_out===0)?Rt:Td}function Wc(e,t){for(var r,i,n;;){if(e.lookahead<Yi){if(Ia(e),e.lookahead<Yi&&t===Na)return Rt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Te&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Te-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Te-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Yi&&(e.match_length=WW(e,r),e.match_length<=5&&(e.strategy===x2e||e.match_length===Te&&e.strstart-e.match_start>4096)&&(e.match_length=Te-1)),e.prev_length>=Te&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-Te,i=xi._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Te),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Te-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Te-1,e.strstart++,i&&(Kt(e,!1),e.strm.avail_out===0))return Rt}else if(e.match_available){if(i=xi._tr_tally(e,0,e.window[e.strstart-1]),i&&Kt(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Rt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=xi._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Te-1?e.strstart:Te-1,t===xo?(Kt(e,!0),e.strm.avail_out===0?Pa:Yc):e.last_lit&&(Kt(e,!1),e.strm.avail_out===0)?Rt:Td}function z2e(e,t){for(var r,i,n,s,o=e.window;;){if(e.lookahead<=wo){if(Ia(e),e.lookahead<=wo&&t===Na)return Rt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Te&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){s=e.strstart+wo;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<s);e.match_length=wo-(s-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Te?(r=xi._tr_tally(e,1,e.match_length-Te),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=xi._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Kt(e,!1),e.strm.avail_out===0))return Rt}return e.insert=0,t===xo?(Kt(e,!0),e.strm.avail_out===0?Pa:Yc):e.last_lit&&(Kt(e,!1),e.strm.avail_out===0)?Rt:Td}function U2e(e,t){for(var r;;){if(e.lookahead===0&&(Ia(e),e.lookahead===0)){if(t===Na)return Rt;break}if(e.match_length=0,r=xi._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Kt(e,!1),e.strm.avail_out===0))return Rt}return e.insert=0,t===xo?(Kt(e,!0),e.strm.avail_out===0?Pa:Yc):e.last_lit&&(Kt(e,!1),e.strm.avail_out===0)?Rt:Td}function Fn(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var Gc;Gc=[new Fn(0,0,0,0,M2e),new Fn(4,4,8,4,jT),new Fn(4,5,16,8,jT),new Fn(4,6,32,32,jT),new Fn(4,4,16,16,Wc),new Fn(8,16,32,32,Wc),new Fn(8,16,128,128,Wc),new Fn(8,32,128,256,Wc),new Fn(32,128,258,1024,Wc),new Fn(32,258,258,4096,Wc)];function B2e(e){e.window_size=2*e.w_size,bo(e.head),e.max_lazy_match=Gc[e.level].max_lazy,e.good_match=Gc[e.level].good_length,e.nice_match=Gc[e.level].nice_length,e.max_chain_length=Gc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Te-1,e.match_available=0,e.ins_h=0}function H2e(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=jv,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Pr.Buf16(F2e*2),this.dyn_dtree=new Pr.Buf16((2*N2e+1)*2),this.bl_tree=new Pr.Buf16((2*$2e+1)*2),bo(this.dyn_ltree),bo(this.dyn_dtree),bo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Pr.Buf16(L2e+1),this.heap=new Pr.Buf16(2*qT+1),bo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Pr.Buf16(2*qT+1),bo(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function GW(e){var t;return!e||!e.state?So(e,Ei):(e.total_in=e.total_out=0,e.data_type=T2e,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?qv:Ca,e.adler=t.wrap===2?0:1,t.last_flush=Na,xi._tr_init(t),Ln)}function YW(e){var t=GW(e);return t===Ln&&B2e(e.state),t}function V2e(e,t){return!e||!e.state||e.state.wrap!==2?Ei:(e.state.gzhead=t,Ln)}function KW(e,t,r,i,n,s){if(!e)return Ei;var o=1;if(t===S2e&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>O2e||r!==jv||i<8||i>15||t<0||t>9||s<0||s>k2e)return So(e,Ei);i===8&&(i=9);var a=new H2e;return e.state=a,a.strm=e,a.wrap=o,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=n+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Te-1)/Te),a.window=new Pr.Buf8(a.w_size*2),a.head=new Pr.Buf16(a.hash_size),a.prev=new Pr.Buf16(a.w_size),a.lit_bufsize=1<<n+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Pr.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=s,a.method=r,YW(e)}function W2e(e,t){return KW(e,t,jv,A2e,C2e,R2e)}function G2e(e,t){var r,i,n,s;if(!e||!e.state||t>UW||t<0)return e?So(e,Ei):Ei;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Rd&&t!==xo)return So(e,e.avail_out===0?DT:Ei);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===qv)if(i.wrap===2)e.adler=0,Pe(i,31),Pe(i,139),Pe(i,8),i.gzhead?(Pe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Pe(i,i.gzhead.time&255),Pe(i,i.gzhead.time>>8&255),Pe(i,i.gzhead.time>>16&255),Pe(i,i.gzhead.time>>24&255),Pe(i,i.level===9?2:i.strategy>=$v||i.level<2?4:0),Pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Pe(i,i.gzhead.extra.length&255),Pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=vo(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=MT):(Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,i.level===9?2:i.strategy>=$v||i.level<2?4:0),Pe(i,j2e),i.status=Ca);else{var o=jv+(i.w_bits-8<<4)<<8,a=-1;i.strategy>=$v||i.level<2?a=0:i.level<6?a=1:i.level===6?a=2:a=3,o|=a<<6,i.strstart!==0&&(o|=D2e),o+=31-o%31,i.status=Ca,kd(i,o),i.strstart!==0&&(kd(i,e.adler>>>16),kd(i,e.adler&65535)),e.adler=1}if(i.status===MT)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),_o(e),n=i.pending,i.pending===i.pending_buf_size));)Pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Fv)}else i.status=Fv;if(i.status===Fv)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),_o(e),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),s===0&&(i.gzindex=0,i.status=Lv)}else i.status=Lv;if(i.status===Lv)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),_o(e),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=vo(e.adler,i.pending_buf,i.pending-n,n)),s===0&&(i.status=Dv)}else i.status=Dv;if(i.status===Dv&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&_o(e),i.pending+2<=i.pending_buf_size&&(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),e.adler=0,i.status=Ca)):i.status=Ca),i.pending!==0){if(_o(e),e.avail_out===0)return i.last_flush=-1,Ln}else if(e.avail_in===0&&HW(t)<=HW(r)&&t!==xo)return So(e,DT);if(i.status===Rd&&e.avail_in!==0)return So(e,DT);if(e.avail_in!==0||i.lookahead!==0||t!==Na&&i.status!==Rd){var l=i.strategy===$v?U2e(i,t):i.strategy===E2e?z2e(i,t):Gc[i.level].func(i,t);if((l===Pa||l===Yc)&&(i.status=Rd),l===Rt||l===Pa)return e.avail_out===0&&(i.last_flush=-1),Ln;if(l===Td&&(t===_2e?xi._tr_align(i):t!==UW&&(xi._tr_stored_block(i,0,0,!1),t===b2e&&(bo(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),_o(e),e.avail_out===0))return i.last_flush=-1,Ln}return t!==xo?Ln:i.wrap<=0?BW:(i.wrap===2?(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),Pe(i,e.adler>>16&255),Pe(i,e.adler>>24&255),Pe(i,e.total_in&255),Pe(i,e.total_in>>8&255),Pe(i,e.total_in>>16&255),Pe(i,e.total_in>>24&255)):(kd(i,e.adler>>>16),kd(i,e.adler&65535)),_o(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Ln:BW)}function Y2e(e){var t;return!e||!e.state?Ei:(t=e.state.status,t!==qv&&t!==MT&&t!==Fv&&t!==Lv&&t!==Dv&&t!==Ca&&t!==Rd?So(e,Ei):(e.state=null,t===Ca?So(e,w2e):Ln))}function K2e(e,t){var r=t.length,i,n,s,o,a,l,c,u;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==qv||i.lookahead))return Ei;for(o===1&&(e.adler=VW(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(bo(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new Pr.Buf8(i.w_size),Pr.arraySet(u,t,r-i.w_size,i.w_size,0),t=u,r=i.w_size),a=e.avail_in,l=e.next_in,c=e.input,e.avail_in=r,e.next_in=0,e.input=t,Ia(i);i.lookahead>=Te;){n=i.strstart,s=i.lookahead-(Te-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+Te-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--s);i.strstart=n,i.lookahead=Te-1,Ia(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Te-1,i.match_available=0,e.next_in=l,e.input=c,e.avail_in=a,i.wrap=o,Ln}Dn.deflateInit=W2e;Dn.deflateInit2=KW;Dn.deflateReset=YW;Dn.deflateResetKeep=GW;Dn.deflateSetHeader=V2e;Dn.deflate=G2e;Dn.deflateEnd=Y2e;Dn.deflateSetDictionary=K2e;Dn.deflateInfo="pako deflate (from Nodeca project)"});var zT=b(Kc=>{"use strict";var Mv=gs(),ZW=!0,XW=!0;try{String.fromCharCode.apply(null,[0])}catch{ZW=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{XW=!1}var Od=new Mv.Buf8(256);for(vs=0;vs<256;vs++)Od[vs]=vs>=252?6:vs>=248?5:vs>=240?4:vs>=224?3:vs>=192?2:1;var vs;Od[254]=Od[254]=1;Kc.string2buf=function(e){var t,r,i,n,s,o=e.length,a=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Mv.Buf8(a),s=0,n=0;s<a;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function QW(e,t){if(t<65534&&(e.subarray&&XW||!e.subarray&&ZW))return String.fromCharCode.apply(null,Mv.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Kc.buf2binstring=function(e){return QW(e,e.length)};Kc.binstring2buf=function(e){for(var t=new Mv.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Kc.buf2string=function(e,t){var r,i,n,s,o=t||e.length,a=new Array(o*2);for(i=0,r=0;r<o;){if(n=e[r++],n<128){a[i++]=n;continue}if(s=Od[n],s>4){a[i++]=65533,r+=s-1;continue}for(n&=s===2?31:s===3?15:7;s>1&&r<o;)n=n<<6|e[r++]&63,s--;if(s>1){a[i++]=65533;continue}n<65536?a[i++]=n:(n-=65536,a[i++]=55296|n>>10&1023,a[i++]=56320|n&1023)}return QW(a,i)};Kc.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Od[e[r]]>t?r:t}});var UT=b((pBe,eG)=>{"use strict";function J2e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}eG.exports=J2e});var nG=b(Pd=>{"use strict";var Ad=JW(),Cd=gs(),HT=zT(),VT=Nv(),Z2e=UT(),iG=Object.prototype.toString,X2e=0,BT=4,Jc=0,tG=1,rG=2,Q2e=-1,eNe=0,tNe=8;function $a(e){if(!(this instanceof $a))return new $a(e);this.options=Cd.assign({level:Q2e,method:tNe,chunkSize:16384,windowBits:15,memLevel:8,strategy:eNe,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Z2e,this.strm.avail_out=0;var r=Ad.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Jc)throw new Error(VT[r]);if(t.header&&Ad.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=HT.string2buf(t.dictionary):iG.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Ad.deflateSetDictionary(this.strm,i),r!==Jc)throw new Error(VT[r]);this._dict_set=!0}}$a.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,s;if(this.ended)return!1;s=t===~~t?t:t===!0?BT:X2e,typeof e=="string"?r.input=HT.string2buf(e):iG.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Cd.Buf8(i),r.next_out=0,r.avail_out=i),n=Ad.deflate(r,s),n!==tG&&n!==Jc)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===BT||s===rG))&&(this.options.to==="string"?this.onData(HT.buf2binstring(Cd.shrinkBuf(r.output,r.next_out))):this.onData(Cd.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==tG);return s===BT?(n=Ad.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Jc):(s===rG&&(this.onEnd(Jc),r.avail_out=0),!0)};$a.prototype.onData=function(e){this.chunks.push(e)};$a.prototype.onEnd=function(e){e===Jc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function WT(e,t){var r=new $a(t);if(r.push(e,!0),r.err)throw r.msg||VT[r.err];return r.result}function rNe(e,t){return t=t||{},t.raw=!0,WT(e,t)}function iNe(e,t){return t=t||{},t.gzip=!0,WT(e,t)}Pd.Deflate=$a;Pd.deflate=WT;Pd.deflateRaw=rNe;Pd.gzip=iNe});var oG=b((gBe,sG)=>{"use strict";var zv=30,nNe=12;sG.exports=function(t,r){var i,n,s,o,a,l,c,u,f,h,d,p,m,y,_,w,v,g,T,N,R,A,C,k,P;i=t.state,n=t.next_in,k=t.input,s=n+(t.avail_in-5),o=t.next_out,P=t.output,a=o-(r-t.avail_out),l=o+(t.avail_out-257),c=i.dmax,u=i.wsize,f=i.whave,h=i.wnext,d=i.window,p=i.hold,m=i.bits,y=i.lencode,_=i.distcode,w=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;e:do{m<15&&(p+=k[n++]<<m,m+=8,p+=k[n++]<<m,m+=8),g=y[p&w];t:for(;;){if(T=g>>>24,p>>>=T,m-=T,T=g>>>16&255,T===0)P[o++]=g&65535;else if(T&16){N=g&65535,T&=15,T&&(m<T&&(p+=k[n++]<<m,m+=8),N+=p&(1<<T)-1,p>>>=T,m-=T),m<15&&(p+=k[n++]<<m,m+=8,p+=k[n++]<<m,m+=8),g=_[p&v];r:for(;;){if(T=g>>>24,p>>>=T,m-=T,T=g>>>16&255,T&16){if(R=g&65535,T&=15,m<T&&(p+=k[n++]<<m,m+=8,m<T&&(p+=k[n++]<<m,m+=8)),R+=p&(1<<T)-1,R>c){t.msg="invalid distance too far back",i.mode=zv;break e}if(p>>>=T,m-=T,T=o-a,R>T){if(T=R-T,T>f&&i.sane){t.msg="invalid distance too far back",i.mode=zv;break e}if(A=0,C=d,h===0){if(A+=u-T,T<N){N-=T;do P[o++]=d[A++];while(--T);A=o-R,C=P}}else if(h<T){if(A+=u+h-T,T-=h,T<N){N-=T;do P[o++]=d[A++];while(--T);if(A=0,h<N){T=h,N-=T;do P[o++]=d[A++];while(--T);A=o-R,C=P}}}else if(A+=h-T,T<N){N-=T;do P[o++]=d[A++];while(--T);A=o-R,C=P}for(;N>2;)P[o++]=C[A++],P[o++]=C[A++],P[o++]=C[A++],N-=3;N&&(P[o++]=C[A++],N>1&&(P[o++]=C[A++]))}else{A=o-R;do P[o++]=P[A++],P[o++]=P[A++],P[o++]=P[A++],N-=3;while(N>2);N&&(P[o++]=P[A++],N>1&&(P[o++]=P[A++]))}}else if((T&64)===0){g=_[(g&65535)+(p&(1<<T)-1)];continue r}else{t.msg="invalid distance code",i.mode=zv;break e}break}}else if((T&64)===0){g=y[(g&65535)+(p&(1<<T)-1)];continue t}else if(T&32){i.mode=nNe;break e}else{t.msg="invalid literal/length code",i.mode=zv;break e}break}}while(n<s&&o<l);N=m>>3,n-=N,m-=N<<3,p&=(1<<m)-1,t.next_in=n,t.next_out=o,t.avail_in=n<s?5+(s-n):5-(n-s),t.avail_out=o<l?257+(l-o):257-(o-l),i.hold=p,i.bits=m}});var dG=b((yBe,hG)=>{"use strict";var aG=gs(),Zc=15,lG=852,cG=592,uG=0,GT=1,fG=2,sNe=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],oNe=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],aNe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],lNe=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];hG.exports=function(t,r,i,n,s,o,a,l){var c=l.bits,u=0,f=0,h=0,d=0,p=0,m=0,y=0,_=0,w=0,v=0,g,T,N,R,A,C=null,k=0,P,L=new aG.Buf16(Zc+1),q=new aG.Buf16(Zc+1),G=null,X=0,H,W,ae;for(u=0;u<=Zc;u++)L[u]=0;for(f=0;f<n;f++)L[r[i+f]]++;for(p=c,d=Zc;d>=1&&L[d]===0;d--);if(p>d&&(p=d),d===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,l.bits=1,0;for(h=1;h<d&&L[h]===0;h++);for(p<h&&(p=h),_=1,u=1;u<=Zc;u++)if(_<<=1,_-=L[u],_<0)return-1;if(_>0&&(t===uG||d!==1))return-1;for(q[1]=0,u=1;u<Zc;u++)q[u+1]=q[u]+L[u];for(f=0;f<n;f++)r[i+f]!==0&&(a[q[r[i+f]]++]=f);if(t===uG?(C=G=a,P=19):t===GT?(C=sNe,k-=257,G=oNe,X-=257,P=256):(C=aNe,G=lNe,P=-1),v=0,f=0,u=h,A=o,m=p,y=0,N=-1,w=1<<p,R=w-1,t===GT&&w>lG||t===fG&&w>cG)return 1;for(;;){H=u-y,a[f]<P?(W=0,ae=a[f]):a[f]>P?(W=G[X+a[f]],ae=C[k+a[f]]):(W=96,ae=0),g=1<<u-y,T=1<<m,h=T;do T-=g,s[A+(v>>y)+T]=H<<24|W<<16|ae|0;while(T!==0);for(g=1<<u-1;v&g;)g>>=1;if(g!==0?(v&=g-1,v+=g):v=0,f++,--L[u]===0){if(u===d)break;u=r[i+a[f]]}if(u>p&&(v&R)!==N){for(y===0&&(y=p),A+=h,m=u-y,_=1<<m;m+y<d&&(_-=L[m+y],!(_<=0));)m++,_<<=1;if(w+=1<<m,t===GT&&w>lG||t===fG&&w>cG)return 1;N=v&R,s[N]=p<<24|m<<16|A-o|0}}return v!==0&&(s[A+v]=u-y<<24|64<<16|0),l.bits=p,0}});var YG=b(Ki=>{"use strict";var ri=gs(),QT=FT(),jn=LT(),cNe=oG(),Id=dG(),uNe=0,qG=1,MG=2,pG=4,fNe=5,Uv=6,Fa=0,hNe=1,dNe=2,ki=-2,zG=-3,eO=-4,pNe=-5,mG=8,UG=1,gG=2,yG=3,vG=4,_G=5,bG=6,wG=7,SG=8,xG=9,EG=10,Vv=11,_s=12,YT=13,kG=14,KT=15,RG=16,TG=17,OG=18,AG=19,Bv=20,Hv=21,CG=22,PG=23,IG=24,NG=25,$G=26,JT=27,FG=28,LG=29,Xe=30,tO=31,mNe=32,gNe=852,yNe=592,vNe=15,_Ne=vNe;function DG(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function bNe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ri.Buf16(320),this.work=new ri.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function BG(e){var t;return!e||!e.state?ki:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=UG,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new ri.Buf32(gNe),t.distcode=t.distdyn=new ri.Buf32(yNe),t.sane=1,t.back=-1,Fa)}function HG(e){var t;return!e||!e.state?ki:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,BG(e))}function VG(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ki:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,HG(e))}function WG(e,t){var r,i;return e?(i=new bNe,e.state=i,i.window=null,r=VG(e,t),r!==Fa&&(e.state=null),r):ki}function wNe(e){return WG(e,_Ne)}var jG=!0,ZT,XT;function SNe(e){if(jG){var t;for(ZT=new ri.Buf32(512),XT=new ri.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Id(qG,e.lens,0,288,ZT,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Id(MG,e.lens,0,32,XT,0,e.work,{bits:5}),jG=!1}e.lencode=ZT,e.lenbits=9,e.distcode=XT,e.distbits=5}function GG(e,t,r,i){var n,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new ri.Buf8(s.wsize)),i>=s.wsize?(ri.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),ri.arraySet(s.window,t,r-i,n,s.wnext),i-=n,i?(ri.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0}function xNe(e,t){var r,i,n,s,o,a,l,c,u,f,h,d,p,m,y=0,_,w,v,g,T,N,R,A,C=new ri.Buf8(4),k,P,L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ki;r=e.state,r.mode===_s&&(r.mode=YT),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,i=e.input,a=e.avail_in,c=r.hold,u=r.bits,f=a,h=l,A=Fa;e:for(;;)switch(r.mode){case UG:if(r.wrap===0){r.mode=YT;break}for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(r.wrap&2&&c===35615){r.check=0,C[0]=c&255,C[1]=c>>>8&255,r.check=jn(r.check,C,2,0),c=0,u=0,r.mode=gG;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=Xe;break}if((c&15)!==mG){e.msg="unknown compression method",r.mode=Xe;break}if(c>>>=4,u-=4,R=(c&15)+8,r.wbits===0)r.wbits=R;else if(R>r.wbits){e.msg="invalid window size",r.mode=Xe;break}r.dmax=1<<R,e.adler=r.check=1,r.mode=c&512?EG:_s,c=0,u=0;break;case gG:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(r.flags=c,(r.flags&255)!==mG){e.msg="unknown compression method",r.mode=Xe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Xe;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&(C[0]=c&255,C[1]=c>>>8&255,r.check=jn(r.check,C,2,0)),c=0,u=0,r.mode=yG;case yG:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.head&&(r.head.time=c),r.flags&512&&(C[0]=c&255,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,r.check=jn(r.check,C,4,0)),c=0,u=0,r.mode=vG;case vG:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&(C[0]=c&255,C[1]=c>>>8&255,r.check=jn(r.check,C,2,0)),c=0,u=0,r.mode=_G;case _G:if(r.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&(C[0]=c&255,C[1]=c>>>8&255,r.check=jn(r.check,C,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=bG;case bG:if(r.flags&1024&&(d=r.length,d>a&&(d=a),d&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),ri.arraySet(r.head.extra,i,s,d,R)),r.flags&512&&(r.check=jn(r.check,i,d,s)),a-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=wG;case wG:if(r.flags&2048){if(a===0)break e;d=0;do R=i[s+d++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R));while(R&&d<a);if(r.flags&512&&(r.check=jn(r.check,i,d,s)),a-=d,s+=d,R)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=SG;case SG:if(r.flags&4096){if(a===0)break e;d=0;do R=i[s+d++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R));while(R&&d<a);if(r.flags&512&&(r.check=jn(r.check,i,d,s)),a-=d,s+=d,R)break e}else r.head&&(r.head.comment=null);r.mode=xG;case xG:if(r.flags&512){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Xe;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=_s;break;case EG:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}e.adler=r.check=DG(c),c=0,u=0,r.mode=Vv;case Vv:if(r.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,r.hold=c,r.bits=u,dNe;e.adler=r.check=1,r.mode=_s;case _s:if(t===fNe||t===Uv)break e;case YT:if(r.last){c>>>=u&7,u-=u&7,r.mode=JT;break}for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}switch(r.last=c&1,c>>>=1,u-=1,c&3){case 0:r.mode=kG;break;case 1:if(SNe(r),r.mode=Bv,t===Uv){c>>>=2,u-=2;break e}break;case 2:r.mode=TG;break;case 3:e.msg="invalid block type",r.mode=Xe}c>>>=2,u-=2;break;case kG:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Xe;break}if(r.length=c&65535,c=0,u=0,r.mode=KT,t===Uv)break e;case KT:r.mode=RG;case RG:if(d=r.length,d){if(d>a&&(d=a),d>l&&(d=l),d===0)break e;ri.arraySet(n,i,s,d,o),a-=d,s+=d,l-=d,o+=d,r.length-=d;break}r.mode=_s;break;case TG:for(;u<14;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(r.nlen=(c&31)+257,c>>>=5,u-=5,r.ndist=(c&31)+1,c>>>=5,u-=5,r.ncode=(c&15)+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Xe;break}r.have=0,r.mode=OG;case OG:for(;r.have<r.ncode;){for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.lens[L[r.have++]]=c&7,c>>>=3,u-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},A=Id(uNe,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,A){e.msg="invalid code lengths set",r.mode=Xe;break}r.have=0,r.mode=AG;case AG:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[c&(1<<r.lenbits)-1],_=y>>>24,w=y>>>16&255,v=y&65535,!(_<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(v<16)c>>>=_,u-=_,r.lens[r.have++]=v;else{if(v===16){for(P=_+2;u<P;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c>>>=_,u-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=Xe;break}R=r.lens[r.have-1],d=3+(c&3),c>>>=2,u-=2}else if(v===17){for(P=_+3;u<P;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=_,u-=_,R=0,d=3+(c&7),c>>>=3,u-=3}else{for(P=_+7;u<P;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=_,u-=_,R=0,d=11+(c&127),c>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Xe;break}for(;d--;)r.lens[r.have++]=R}}if(r.mode===Xe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Xe;break}if(r.lenbits=9,k={bits:r.lenbits},A=Id(qG,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,A){e.msg="invalid literal/lengths set",r.mode=Xe;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},A=Id(MG,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,A){e.msg="invalid distances set",r.mode=Xe;break}if(r.mode=Bv,t===Uv)break e;case Bv:r.mode=Hv;case Hv:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,r.hold=c,r.bits=u,cNe(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,i=e.input,a=e.avail_in,c=r.hold,u=r.bits,r.mode===_s&&(r.back=-1);break}for(r.back=0;y=r.lencode[c&(1<<r.lenbits)-1],_=y>>>24,w=y>>>16&255,v=y&65535,!(_<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(w&&(w&240)===0){for(g=_,T=w,N=v;y=r.lencode[N+((c&(1<<g+T)-1)>>g)],_=y>>>24,w=y>>>16&255,v=y&65535,!(g+_<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=_,u-=_,r.back+=_,r.length=v,w===0){r.mode=$G;break}if(w&32){r.back=-1,r.mode=_s;break}if(w&64){e.msg="invalid literal/length code",r.mode=Xe;break}r.extra=w&15,r.mode=CG;case CG:if(r.extra){for(P=r.extra;u<P;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=PG;case PG:for(;y=r.distcode[c&(1<<r.distbits)-1],_=y>>>24,w=y>>>16&255,v=y&65535,!(_<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((w&240)===0){for(g=_,T=w,N=v;y=r.distcode[N+((c&(1<<g+T)-1)>>g)],_=y>>>24,w=y>>>16&255,v=y&65535,!(g+_<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=_,u-=_,r.back+=_,w&64){e.msg="invalid distance code",r.mode=Xe;break}r.offset=v,r.extra=w&15,r.mode=IG;case IG:if(r.extra){for(P=r.extra;u<P;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Xe;break}r.mode=NG;case NG:if(l===0)break e;if(d=h-l,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Xe;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=n,p=o-r.offset,d=r.length;d>l&&(d=l),l-=d,r.length-=d;do n[o++]=m[p++];while(--d);r.length===0&&(r.mode=Hv);break;case $G:if(l===0)break e;n[o++]=r.length,l--,r.mode=Hv;break;case JT:if(r.wrap){for(;u<32;){if(a===0)break e;a--,c|=i[s++]<<u,u+=8}if(h-=l,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?jn(r.check,n,h,o-h):QT(r.check,n,h,o-h)),h=l,(r.flags?c:DG(c))!==r.check){e.msg="incorrect data check",r.mode=Xe;break}c=0,u=0}r.mode=FG;case FG:if(r.wrap&&r.flags){for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Xe;break}c=0,u=0}r.mode=LG;case LG:A=hNe;break e;case Xe:A=zG;break e;case tO:return eO;case mNe:default:return ki}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,r.hold=c,r.bits=u,(r.wsize||h!==e.avail_out&&r.mode<Xe&&(r.mode<JT||t!==pG))&&GG(e,e.output,e.next_out,h-e.avail_out)?(r.mode=tO,eO):(f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?jn(r.check,n,h,e.next_out-h):QT(r.check,n,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===_s?128:0)+(r.mode===Bv||r.mode===KT?256:0),(f===0&&h===0||t===pG)&&A===Fa&&(A=pNe),A)}function ENe(e){if(!e||!e.state)return ki;var t=e.state;return t.window&&(t.window=null),e.state=null,Fa}function kNe(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ki:(r.head=t,t.done=!1,Fa)}function RNe(e,t){var r=t.length,i,n,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Vv)?ki:i.mode===Vv&&(n=1,n=QT(n,t,r,0),n!==i.check)?zG:(s=GG(e,t,r,r),s?(i.mode=tO,eO):(i.havedict=1,Fa))}Ki.inflateReset=HG;Ki.inflateReset2=VG;Ki.inflateResetKeep=BG;Ki.inflateInit=wNe;Ki.inflateInit2=WG;Ki.inflate=xNe;Ki.inflateEnd=ENe;Ki.inflateGetHeader=kNe;Ki.inflateSetDictionary=RNe;Ki.inflateInfo="pako inflate (from Nodeca project)"});var rO=b((_Be,KG)=>{"use strict";KG.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var ZG=b((bBe,JG)=>{"use strict";function TNe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}JG.exports=TNe});var QG=b($d=>{"use strict";var Xc=YG(),Nd=gs(),Wv=zT(),gt=rO(),iO=Nv(),ONe=UT(),ANe=ZG(),XG=Object.prototype.toString;function La(e){if(!(this instanceof La))return new La(e);this.options=Nd.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ONe,this.strm.avail_out=0;var r=Xc.inflateInit2(this.strm,t.windowBits);if(r!==gt.Z_OK)throw new Error(iO[r]);if(this.header=new ANe,Xc.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Wv.string2buf(t.dictionary):XG.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Xc.inflateSetDictionary(this.strm,t.dictionary),r!==gt.Z_OK)))throw new Error(iO[r])}La.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,s,o,a,l,c,u=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?gt.Z_FINISH:gt.Z_NO_FLUSH,typeof e=="string"?r.input=Wv.binstring2buf(e):XG.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Nd.Buf8(i),r.next_out=0,r.avail_out=i),s=Xc.inflate(r,gt.Z_NO_FLUSH),s===gt.Z_NEED_DICT&&n&&(s=Xc.inflateSetDictionary(this.strm,n)),s===gt.Z_BUF_ERROR&&u===!0&&(s=gt.Z_OK,u=!1),s!==gt.Z_STREAM_END&&s!==gt.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===gt.Z_STREAM_END||r.avail_in===0&&(o===gt.Z_FINISH||o===gt.Z_SYNC_FLUSH))&&(this.options.to==="string"?(a=Wv.utf8border(r.output,r.next_out),l=r.next_out-a,c=Wv.buf2string(r.output,a),r.next_out=l,r.avail_out=i-l,l&&Nd.arraySet(r.output,r.output,a,l,0),this.onData(c)):this.onData(Nd.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(u=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==gt.Z_STREAM_END);return s===gt.Z_STREAM_END&&(o=gt.Z_FINISH),o===gt.Z_FINISH?(s=Xc.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===gt.Z_OK):(o===gt.Z_SYNC_FLUSH&&(this.onEnd(gt.Z_OK),r.avail_out=0),!0)};La.prototype.onData=function(e){this.chunks.push(e)};La.prototype.onEnd=function(e){e===gt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nd.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function nO(e,t){var r=new La(t);if(r.push(e,!0),r.err)throw r.msg||iO[r.err];return r.result}function CNe(e,t){return t=t||{},t.raw=!0,nO(e,t)}$d.Inflate=La;$d.inflate=nO;$d.inflateRaw=CNe;$d.ungzip=nO});var r7=b((SBe,t7)=>{"use strict";var PNe=gs().assign,INe=nG(),NNe=QG(),$Ne=rO(),e7={};PNe(e7,INe,NNe,$Ne);t7.exports=e7});var n7=b(Yv=>{"use strict";var FNe=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",LNe=r7(),i7=rt(),Gv=ti(),DNe=FNe?"uint8array":"array";Yv.magic="\b\0";function Da(e,t){Gv.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}i7.inherits(Da,Gv);Da.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(i7.transformTo(DNe,e.data),!1)};Da.prototype.flush=function(){Gv.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Da.prototype.cleanUp=function(){Gv.prototype.cleanUp.call(this),this._pako=null};Da.prototype._createPako=function(){this._pako=new LNe[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Yv.compressWorker=function(e){return new Da("Deflate",e)};Yv.uncompressWorker=function(){return new Da("Inflate",{})}});var oO=b(sO=>{"use strict";var s7=ti();sO.STORE={magic:"\0\0",compressWorker:function(){return new s7("STORE compression")},uncompressWorker:function(){return new s7("STORE decompression")}};sO.DEFLATE=n7()});var aO=b(ja=>{"use strict";ja.LOCAL_FILE_HEADER="PK";ja.CENTRAL_FILE_HEADER="PK";ja.CENTRAL_DIRECTORY_END="PK";ja.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";ja.ZIP64_CENTRAL_DIRECTORY_END="PK";ja.DATA_DESCRIPTOR="PK\x07\b"});var c7=b((RBe,l7)=>{"use strict";var Qc=rt(),eu=ti(),lO=zc(),o7=Ov(),Kv=aO(),Be=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},jNe=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},qNe=function(e){return(e||0)&63},a7=function(e,t,r,i,n,s){var o=e.file,a=e.compression,l=s!==lO.utf8encode,c=Qc.transformTo("string",s(o.name)),u=Qc.transformTo("string",lO.utf8encode(o.name)),f=o.comment,h=Qc.transformTo("string",s(f)),d=Qc.transformTo("string",lO.utf8encode(f)),p=u.length!==o.name.length,m=d.length!==f.length,y,_,w="",v="",g="",T=o.dir,N=o.date,R={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),!l&&(p||m)&&(A|=2048);var C=0,k=0;T&&(C|=16),n==="UNIX"?(k=798,C|=jNe(o.unixPermissions,T)):(k=20,C|=qNe(o.dosPermissions,T)),y=N.getUTCHours(),y=y<<6,y=y|N.getUTCMinutes(),y=y<<5,y=y|N.getUTCSeconds()/2,_=N.getUTCFullYear()-1980,_=_<<4,_=_|N.getUTCMonth()+1,_=_<<5,_=_|N.getUTCDate(),p&&(v=Be(1,1)+Be(o7(c),4)+u,w+="up"+Be(v.length,2)+v),m&&(g=Be(1,1)+Be(o7(h),4)+d,w+="uc"+Be(g.length,2)+g);var P="";P+=`
\0`,P+=Be(A,2),P+=a.magic,P+=Be(y,2),P+=Be(_,2),P+=Be(R.crc32,4),P+=Be(R.compressedSize,4),P+=Be(R.uncompressedSize,4),P+=Be(c.length,2),P+=Be(w.length,2);var L=Kv.LOCAL_FILE_HEADER+P+c+w,q=Kv.CENTRAL_FILE_HEADER+Be(k,2)+P+Be(h.length,2)+"\0\0\0\0"+Be(C,4)+Be(i,4)+c+w+h;return{fileRecord:L,dirRecord:q}},MNe=function(e,t,r,i,n){var s="",o=Qc.transformTo("string",n(i));return s=Kv.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Be(e,2)+Be(e,2)+Be(t,4)+Be(r,4)+Be(o.length,2)+o,s},zNe=function(e){var t="";return t=Kv.DATA_DESCRIPTOR+Be(e.crc32,4)+Be(e.compressedSize,4)+Be(e.uncompressedSize,4),t};function Ji(e,t,r,i){eu.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Qc.inherits(Ji,eu);Ji.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,eu.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};Ji.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=a7(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};Ji.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=a7(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:zNe(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};Ji.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=MNe(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};Ji.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};Ji.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};Ji.prototype.resume=function(){if(!eu.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};Ji.prototype.error=function(e){var t=this._sources;if(!eu.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};Ji.prototype.lock=function(){eu.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};l7.exports=Ji});var f7=b(u7=>{"use strict";var UNe=oO(),BNe=c7(),HNe=function(e,t){var r=e||t,i=UNe[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};u7.generateWorker=function(e,t,r){var i=new BNe(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(s,o){n++;var a=HNe(o.options.compression,t.compression),l=o.options.compressionOptions||t.compressionOptions||{},c=o.dir,u=o.date;o._compressWorker(a,l).withStreamInfo("file",{name:s,dir:c,date:u,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(s){i.error(s)}return i}});var d7=b((OBe,h7)=>{"use strict";var VNe=rt(),Jv=ti();function Fd(e,t){Jv.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}VNe.inherits(Fd,Jv);Fd.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};Fd.prototype.pause=function(){return Jv.prototype.pause.call(this)?(this._stream.pause(),!0):!1};Fd.prototype.resume=function(){return Jv.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};h7.exports=Fd});var x7=b((ABe,S7)=>{"use strict";var WNe=zc(),Ld=rt(),y7=ti(),GNe=dT(),v7=pT(),p7=Av(),YNe=mW(),KNe=f7(),m7=fd(),JNe=d7(),_7=function(e,t,r){var i=Ld.getTypeOf(t),n,s=Ld.extend(r||{},v7);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions=="string"&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&s.unixPermissions&16384&&(s.dir=!0),s.dosPermissions&&s.dosPermissions&16&&(s.dir=!0),s.dir&&(e=b7(e)),s.createFolders&&(n=ZNe(e))&&w7.call(this,n,!0);var o=i==="string"&&s.binary===!1&&s.base64===!1;(!r||typeof r.binary>"u")&&(s.binary=!o);var a=t instanceof p7&&t.uncompressedSize===0;(a||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var l=null;t instanceof p7||t instanceof y7?l=t:m7.isNode&&m7.isStream(t)?l=new JNe(e,t):l=Ld.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var c=new YNe(e,l,s);this.files[e]=c},ZNe=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},b7=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},w7=function(e,t){return t=typeof t<"u"?t:v7.createFolders,e=b7(e),this.files[e]||_7.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g7(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var XNe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},file:function(e,t,r){if(arguments.length===1)if(g7(e)){var i=e;return this.filter(function(s,o){return!o.dir&&i.test(s)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,_7.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(g7(e))return this.filter(function(n,s){return s.dir&&e.test(n)});var t=this.root+e,r=w7.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(n,s){return s.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=Ld.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:WNe.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");Ld.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=KNe.generateWorker(this,r,i)}catch(n){t=new y7("error"),t.error(n)}return new GNe(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};S7.exports=XNe});var cO=b((CBe,k7)=>{"use strict";var QNe=rt();function E7(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}E7.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return QNe.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};k7.exports=E7});var uO=b((PBe,T7)=>{"use strict";var R7=cO(),e$e=rt();function tu(e){R7.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}e$e.inherits(tu,R7);tu.prototype.byteAt=function(e){return this.data[this.zero+e]};tu.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n)return s-this.zero;return-1};tu.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&n===s[3]};tu.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};T7.exports=tu});var C7=b((IBe,A7)=>{"use strict";var O7=cO(),t$e=rt();function ru(e){O7.call(this,e)}t$e.inherits(ru,O7);ru.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};ru.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};ru.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};ru.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};A7.exports=ru});var hO=b((NBe,I7)=>{"use strict";var P7=uO(),r$e=rt();function fO(e){P7.call(this,e)}r$e.inherits(fO,P7);fO.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};I7.exports=fO});var F7=b(($Be,$7)=>{"use strict";var N7=hO(),i$e=rt();function dO(e){N7.call(this,e)}i$e.inherits(dO,N7);dO.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};$7.exports=dO});var pO=b((FBe,D7)=>{"use strict";var Zv=rt(),L7=ps(),n$e=uO(),s$e=C7(),o$e=F7(),a$e=hO();D7.exports=function(e){var t=Zv.getTypeOf(e);return Zv.checkSupport(t),t==="string"&&!L7.uint8array?new s$e(e):t==="nodebuffer"?new o$e(e):L7.uint8array?new a$e(Zv.transformTo("uint8array",e)):new n$e(Zv.transformTo("array",e))}});var z7=b((LBe,M7)=>{"use strict";var mO=pO(),Eo=rt(),l$e=Av(),j7=Ov(),Xv=zc(),Qv=oO(),c$e=ps(),u$e=0,f$e=3,h$e=function(e){for(var t in Qv)if(Object.prototype.hasOwnProperty.call(Qv,t)&&Qv[t].magic===e)return Qv[t];return null};function q7(e,t){this.options=e,this.loadOptions=t}q7.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=h$e(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Eo.pretty(this.compressionMethod)+" unknown (inner file : "+Eo.transformTo("string",this.fileName)+")");this.decompressed=new l$e(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===u$e&&(this.dosPermissions=this.externalFileAttributes&63),e===f$e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=mO(this.extraFields[1].value);this.uncompressedSize===Eo.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Eo.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Eo.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Eo.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},handleUTF8:function(){var e=c$e.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Xv.utf8decode(this.fileName),this.fileCommentStr=Xv.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=Eo.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=Eo.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=mO(e.value);return t.readInt(1)!==1||j7(this.fileName)!==t.readInt(4)?null:Xv.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=mO(e.value);return t.readInt(1)!==1||j7(this.fileComment)!==t.readInt(4)?null:Xv.utf8decode(t.readData(e.length-5))}return null}};M7.exports=q7});var H7=b((DBe,B7)=>{"use strict";var d$e=pO(),bs=rt(),Zi=aO(),p$e=z7(),m$e=ps();function U7(e){this.files=[],this.loadOptions=e}U7.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+bs.pretty(t)+", expected "+bs.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=m$e.uint8array?"uint8array":"array",r=bs.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Zi.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Zi.CENTRAL_FILE_HEADER);)e=new p$e({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(Zi.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Zi.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Zi.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===bs.MAX_VALUE_16BITS||this.diskWithCentralDirStart===bs.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===bs.MAX_VALUE_16BITS||this.centralDirRecords===bs.MAX_VALUE_16BITS||this.centralDirSize===bs.MAX_VALUE_32BITS||this.centralDirOffset===bs.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Zi.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Zi.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Zi.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Zi.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Zi.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,Zi.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=d$e(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};B7.exports=U7});var G7=b((jBe,W7)=>{"use strict";var gO=rt(),e_=jc(),g$e=zc(),y$e=H7(),v$e=yT(),V7=fd();function _$e(e){return new e_.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new v$e);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}W7.exports=function(e,t){var r=this;return t=gO.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g$e.utf8decode}),V7.isNode&&V7.isStream(e)?e_.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):gO.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new y$e(t);return n.load(i),n}).then(function(n){var s=[e_.Promise.resolve(n)],o=n.files;if(t.checkCRC32)for(var a=0;a<o.length;a++)s.push(_$e(o[a]));return e_.Promise.all(s)}).then(function(n){for(var s=n.shift(),o=s.files,a=0;a<o.length;a++){var l=o[a],c=l.fileNameStr,u=gO.resolve(l.fileNameStr);r.file(u,l.decompressed,{binary:!0,optimizedBinaryString:!0,date:l.date,dir:l.dir,comment:l.fileCommentStr.length?l.fileCommentStr:null,unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions,createFolders:t.createFolders}),l.dir||(r.file(u).unsafeOriginalName=c)}return s.zipComment.length&&(r.comment=s.zipComment),r})}});var K7=b((qBe,Y7)=>{"use strict";function Ri(){if(!(this instanceof Ri))return new Ri;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new Ri;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}Ri.prototype=x7();Ri.prototype.loadAsync=G7();Ri.support=ps();Ri.defaults=pT();Ri.version="3.10.1";Ri.loadAsync=function(e,t){return new Ri().loadAsync(e,t)};Ri.external=jc();Y7.exports=Ri});var bO=b((zBe,tY)=>{"use strict";var vO=Object.defineProperty,b$e=Object.getOwnPropertyDescriptor,w$e=Object.getOwnPropertyNames,S$e=Object.prototype.hasOwnProperty,x$e=(e,t)=>{for(var r in t)vO(e,r,{get:t[r],enumerable:!0})},E$e=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of w$e(t))!S$e.call(e,n)&&n!==r&&vO(e,n,{get:()=>t[n],enumerable:!(i=b$e(t,n))||i.enumerable});return e},k$e=e=>E$e(vO({},"__esModule",{value:!0}),e),eY={};x$e(eY,{FileInputSuggest:()=>T$e,FolderInputSuggest:()=>R$e,FuzzyInputSuggest:()=>_O,setNodeIcon:()=>C$e});tY.exports=k$e(eY);var yO=require("obsidian"),_O=class extends yO.AbstractInputSuggest{constructor(e,t,r){super(e,t.inputEl),this.items=r}getSuggestions(e){let t=(0,yO.prepareSimpleSearch)(e),r=[];for(let i of this.items){let n=t(this.getItemText(i));n&&r.push({item:i,match:n})}return r}renderSuggestion(e,t){t.addClass("mod-complex");let r=t.createDiv({cls:"suggestion-content"});if(!e?.item){r.setText("No match found"),r.parentElement?.addClass("is-selected");return}let i=r.createDiv("suggestion-title");this.renderTitle(i,e);let n=r.createDiv("suggestion-note");this.renderNote(n,e)}renderMatches(e,t,r,i){(0,yO.renderMatches)(e,t,r,i)}},X7=require("obsidian"),R$e=class extends _O{getItemText(e){return e.path}renderNote(e,t){let{item:r,match:i}=t;(0,X7.renderMatches)(e,r.path,i.matches)}renderTitle(e,t){let{item:r,match:i}=t;(0,X7.renderMatches)(e,r.name,i.matches,r.path.length-r.name.length)}},Q7=require("obsidian"),T$e=class extends _O{getItemText(e){return e.path}renderNote(e,t){let{item:r,match:i}=t;(0,Q7.renderMatches)(e,r.path,i.matches)}renderTitle(e,t){let{item:r,match:i}=t;(0,Q7.renderMatches)(e,r.name,i.matches,r.path.length-r.name.length)}},O$e=require("obsidian"),A$e={"has-node-icon":"helpers_has-node-icon","x-small":"helpers_x-small",small:"helpers_small",medium:"helpers_medium",large:"helpers_large","x-large":"helpers_x-large"};function C$e(e,t){e.addClass(A$e["has-node-icon"]),(0,O$e.setIcon)(e,t)}});var $$e={};dY($$e,{default:()=>N$e});module.exports=pY($$e);var jd=require("obsidian");function UO(e){return typeof e>"u"||e===null}function mY(e){return typeof e=="object"&&e!==null}function gY(e){return Array.isArray(e)?e:UO(e)?[]:[e]}function yY(e,t){var r,i,n,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)n=s[r],e[n]=t[n];return e}function vY(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function _Y(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var bY=UO,wY=mY,SY=gY,xY=vY,EY=_Y,kY=yY,xt={isNothing:bY,isObject:wY,toArray:SY,repeat:xY,isNegativeZero:EY,extend:kY};function BO(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
`+e.mark.snippet),i+" "+r):i}function ou(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=BO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ou.prototype=Object.create(Error.prototype);ou.prototype.constructor=ou;ou.prototype.toString=function(t){return this.name+": "+BO(this,t)};var Nr=ou;function s_(e,t,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-t>a&&(s=" ... ",t=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:i-t+s.length}}function o_(e,t){return xt.repeat(" ",t-e.length)+e}function RY(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(e.buffer);)n.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,c,u=Math.min(e.line+t.linesAfter,n.length).toString().length,f=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=s_(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),f),a=xt.repeat(" ",t.indent)+o_((e.line-l+1).toString(),u)+" | "+c.str+`
`+a;for(c=s_(e.buffer,i[o],n[o],e.position,f),a+=xt.repeat(" ",t.indent)+o_((e.line+1).toString(),u)+" | "+c.str+`
`,a+=xt.repeat("-",t.indent+u+3+c.pos)+`^
`,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)c=s_(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),f),a+=xt.repeat(" ",t.indent)+o_((e.line+l+1).toString(),u)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var TY=RY,OY=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AY=["scalar","sequence","mapping"];function CY(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function PY(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(OY.indexOf(r)===-1)throw new Nr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=CY(t.styleAliases||null),AY.indexOf(this.kind)===-1)throw new Nr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Zt=PY;function TO(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function IY(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function l_(e){return this.extend(e)}l_.prototype.extend=function(t){var r=[],i=[];if(t instanceof Zt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Nr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Zt))throw new Nr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Nr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Nr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Zt))throw new Nr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(l_.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=TO(n,"implicit"),n.compiledExplicit=TO(n,"explicit"),n.compiledTypeMap=IY(n.compiledImplicit,n.compiledExplicit),n};var NY=l_,$Y=new Zt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),FY=new Zt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),LY=new Zt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),DY=new NY({explicit:[$Y,FY,LY]});function jY(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function qY(){return null}function MY(e){return e===null}var zY=new Zt("tag:yaml.org,2002:null",{kind:"scalar",resolve:jY,construct:qY,predicate:MY,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function UY(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function BY(e){return e==="true"||e==="True"||e==="TRUE"}function HY(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var VY=new Zt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:UY,construct:BY,predicate:HY,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function WY(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function GY(e){return 48<=e&&e<=55}function YY(e){return 48<=e&&e<=57}function KY(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!WY(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!GY(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!YY(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function JY(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function ZY(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!xt.isNegativeZero(e)}var XY=new Zt("tag:yaml.org,2002:int",{kind:"scalar",resolve:KY,construct:JY,predicate:ZY,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),QY=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eK(e){return!(e===null||!QY.test(e)||e[e.length-1]==="_")}function tK(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var rK=/^[-+]?[0-9]+e/;function iK(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(xt.isNegativeZero(e))return"-0.0";return r=e.toString(10),rK.test(r)?r.replace("e",".e"):r}function nK(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||xt.isNegativeZero(e))}var sK=new Zt("tag:yaml.org,2002:float",{kind:"scalar",resolve:eK,construct:tK,predicate:nK,represent:iK,defaultStyle:"lowercase"}),oK=DY.extend({implicit:[zY,VY,XY,sK]}),aK=oK,HO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),VO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lK(e){return e===null?!1:HO.exec(e)!==null||VO.exec(e)!==null}function cK(e){var t,r,i,n,s,o,a,l=0,c=null,u,f,h;if(t=HO.exec(e),t===null&&(t=VO.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],f=+(t[11]||0),c=(u*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,i,n,s,o,a,l)),c&&h.setTime(h.getTime()-c),h}function uK(e){return e.toISOString()}var fK=new Zt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lK,construct:cK,instanceOf:Date,represent:uK});function hK(e){return e==="<<"||e===null}var dK=new Zt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:hK}),d_=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function pK(e){if(e===null)return!1;var t,r,i=0,n=e.length,s=d_;for(r=0;r<n;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function mK(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,s=d_,o=0,a=[];for(t=0;t<n;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(t));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function gK(e){var t="",r=0,i,n,s=e.length,o=d_;for(i=0;i<s;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=s%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function yK(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var vK=new Zt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pK,construct:mK,predicate:yK,represent:gK}),_K=Object.prototype.hasOwnProperty,bK=Object.prototype.toString;function wK(e){if(e===null)return!0;var t=[],r,i,n,s,o,a=e;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,bK.call(n)!=="[object Object]")return!1;for(s in n)if(_K.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function SK(e){return e!==null?e:[]}var xK=new Zt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wK,construct:SK}),EK=Object.prototype.toString;function kK(e){if(e===null)return!0;var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],EK.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[t]=[n[0],i[n[0]]]}return!0}function RK(e){if(e===null)return[];var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),s[t]=[n[0],i[n[0]]];return s}var TK=new Zt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kK,construct:RK}),OK=Object.prototype.hasOwnProperty;function AK(e){if(e===null)return!0;var t,r=e;for(t in r)if(OK.call(r,t)&&r[t]!==null)return!1;return!0}function CK(e){return e!==null?e:{}}var PK=new Zt("tag:yaml.org,2002:set",{kind:"mapping",resolve:AK,construct:CK}),WO=aK.extend({implicit:[fK,dK],explicit:[vK,xK,TK,PK]}),xs=Object.prototype.hasOwnProperty,Md=1,GO=2,YO=3,zd=4,a_=1,IK=2,OO=3,NK=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$K=/[\x85\u2028\u2029]/,FK=/[,\[\]\{\}]/,KO=/^(?:!|!!|![a-z\-]+!)$/i,JO=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function AO(e){return Object.prototype.toString.call(e)}function Qi(e){return e===10||e===13}function Oo(e){return e===9||e===32}function $r(e){return e===9||e===32||e===10||e===13}function Ua(e){return e===44||e===91||e===93||e===123||e===125}function LK(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function DK(e){return e===120?2:e===117?4:e===85?8:0}function jK(e){return 48<=e&&e<=57?e-48:-1}function CO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function qK(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ZO=new Array(256),XO=new Array(256);for(To=0;To<256;To++)ZO[To]=CO(To)?1:0,XO[To]=CO(To);var To;function MK(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||WO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function QO(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=TY(r),new Nr(t,r)}function ce(e,t){throw QO(e,t)}function Ud(e,t){e.onWarning&&e.onWarning.call(null,QO(e,t))}var PO={YAML:function(t,r,i){var n,s,o;t.version!==null&&ce(t,"duplication of %YAML directive"),i.length!==1&&ce(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&ce(t,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&ce(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ud(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var n,s;i.length!==2&&ce(t,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],KO.test(n)||ce(t,"ill-formed tag handle (first argument) of the TAG directive"),xs.call(t.tagMap,n)&&ce(t,'there is a previously declared suffix for "'+n+'" tag handle'),JO.test(s)||ce(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ce(t,"tag prefix is malformed: "+s)}t.tagMap[n]=s}};function Ss(e,t,r,i){var n,s,o,a;if(t<r){if(a=e.input.slice(t,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||ce(e,"expected valid JSON character");else NK.test(a)&&ce(e,"the stream contains non-printable characters");e.result+=a}}function IO(e,t,r,i){var n,s,o,a;for(xt.isObject(r)||ce(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],xs.call(t,s)||(t[s]=r[s],i[s]=!0)}function Ba(e,t,r,i,n,s,o,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&ce(e,"nested arrays are not supported inside keys"),typeof n=="object"&&AO(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&AO(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)IO(e,t,s[c],r);else IO(e,t,s,r);else!e.json&&!xs.call(r,n)&&xs.call(t,n)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,ce(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[n]=s,delete r[n];return t}function p_(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ce(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function yt(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Oo(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Qi(n))for(p_(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Ud(e,"deficient indentation"),i}function Vd(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||$r(r)))}function m_(e,t){t===1?e.result+=" ":t>1&&(e.result+=xt.repeat(`
`,t-1))}function zK(e,t,r){var i,n,s,o,a,l,c,u,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),$r(d)||Ua(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),$r(n)||r&&Ua(n)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),$r(n)||r&&Ua(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),$r(i))break}else{if(e.position===e.lineStart&&Vd(e)||r&&Ua(d))break;if(Qi(d))if(l=e.line,c=e.lineStart,u=e.lineIndent,yt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}a&&(Ss(e,s,o,!1),m_(e,e.line-l),s=o=e.position,a=!1),Oo(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ss(e,s,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function UK(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ss(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Qi(r)?(Ss(e,i,n,!0),m_(e,yt(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Vd(e)?ce(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);ce(e,"unexpected end of the stream within a single quoted scalar")}function BK(e,t){var r,i,n,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Ss(e,r,e.position,!0),e.position++,!0;if(a===92){if(Ss(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Qi(a))yt(e,!1,t);else if(a<256&&ZO[a])e.result+=XO[a],e.position++;else if((o=DK(a))>0){for(n=o,s=0;n>0;n--)a=e.input.charCodeAt(++e.position),(o=LK(a))>=0?s=(s<<4)+o:ce(e,"expected hexadecimal character");e.result+=qK(s),e.position++}else ce(e,"unknown escape sequence");r=i=e.position}else Qi(a)?(Ss(e,r,i,!0),m_(e,yt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Vd(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}function HK(e,t){var r=!0,i,n,s,o=e.tag,a,l=e.anchor,c,u,f,h,d,p=Object.create(null),m,y,_,w;if(w=e.input.charCodeAt(e.position),w===91)u=93,d=!1,a=[];else if(w===123)u=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),w=e.input.charCodeAt(++e.position);w!==0;){if(yt(e,!0,t),w=e.input.charCodeAt(e.position),w===u)return e.position++,e.tag=o,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=a,!0;r?w===44&&ce(e,"expected the node content, but found ','"):ce(e,"missed comma between flow collection entries"),y=m=_=null,f=h=!1,w===63&&(c=e.input.charCodeAt(e.position+1),$r(c)&&(f=h=!0,e.position++,yt(e,!0,t))),i=e.line,n=e.lineStart,s=e.position,Ha(e,t,Md,!1,!0),y=e.tag,m=e.result,yt(e,!0,t),w=e.input.charCodeAt(e.position),(h||e.line===i)&&w===58&&(f=!0,w=e.input.charCodeAt(++e.position),yt(e,!0,t),Ha(e,t,Md,!1,!0),_=e.result),d?Ba(e,a,p,y,m,_,i,n,s):f?a.push(Ba(e,null,p,y,m,_,i,n,s)):a.push(m),yt(e,!0,t),w=e.input.charCodeAt(e.position),w===44?(r=!0,w=e.input.charCodeAt(++e.position)):r=!1}ce(e,"unexpected end of the stream within a flow collection")}function VK(e,t){var r,i,n=a_,s=!1,o=!1,a=t,l=0,c=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)a_===n?n=f===43?OO:IK:ce(e,"repeat of a chomping mode identifier");else if((u=jK(f))>=0)u===0?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ce(e,"repeat of an indentation width identifier"):(a=t+u-1,o=!0);else break;if(Oo(f)){do f=e.input.charCodeAt(++e.position);while(Oo(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Qi(f)&&f!==0)}for(;f!==0;){for(p_(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Qi(f)){l++;continue}if(e.lineIndent<a){n===OO?e.result+=xt.repeat(`
`,s?1+l:l):n===a_&&s&&(e.result+=`
`);break}for(i?Oo(f)?(c=!0,e.result+=xt.repeat(`
`,s?1+l:l)):c?(c=!1,e.result+=xt.repeat(`
`,l+1)):l===0?s&&(e.result+=" "):e.result+=xt.repeat(`
`,l):e.result+=xt.repeat(`
`,s?1+l:l),s=!0,o=!0,l=0,r=e.position;!Qi(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Ss(e,r,e.position,!1)}return!0}function NO(e,t){var r,i=e.tag,n=e.anchor,s=[],o,a=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!$r(o))));){if(a=!0,e.position++,yt(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Ha(e,t,YO,!1,!0),s.push(e.result),yt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)ce(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=s,!0):!1}function WK(e,t,r){var i,n,s,o,a,l,c=e.tag,u=e.anchor,f={},h=Object.create(null),d=null,p=null,m=null,y=!1,_=!1,w;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),w=e.input.charCodeAt(e.position);w!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(w===63||w===58)&&$r(i))w===63?(y&&(Ba(e,f,h,d,p,null,o,a,l),d=p=m=null),_=!0,y=!0,n=!0):y?(y=!1,n=!0):ce(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,w=i;else{if(o=e.line,a=e.lineStart,l=e.position,!Ha(e,r,GO,!1,!0))break;if(e.line===s){for(w=e.input.charCodeAt(e.position);Oo(w);)w=e.input.charCodeAt(++e.position);if(w===58)w=e.input.charCodeAt(++e.position),$r(w)||ce(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Ba(e,f,h,d,p,null,o,a,l),d=p=m=null),_=!0,y=!1,n=!1,d=e.tag,p=e.result;else if(_)ce(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(_)ce(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===s||e.lineIndent>t)&&(y&&(o=e.line,a=e.lineStart,l=e.position),Ha(e,t,zd,!0,n)&&(y?p=e.result:m=e.result),y||(Ba(e,f,h,d,p,m,o,a,l),d=p=m=null),yt(e,!0,-1),w=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&w!==0)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Ba(e,f,h,d,p,null,o,a,l),_&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),_}function GK(e){var t,r=!1,i=!1,n,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ce(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ce(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!$r(o);)o===33&&(i?ce(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),KO.test(n)||ce(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),FK.test(s)&&ce(e,"tag suffix cannot contain flow indicator characters")}s&&!JO.test(s)&&ce(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ce(e,"tag name is malformed: "+s)}return r?e.tag=s:xs.call(e.tagMap,n)?e.tag=e.tagMap[n]+s:n==="!"?e.tag="!"+s:n==="!!"?e.tag="tag:yaml.org,2002:"+s:ce(e,'undeclared tag handle "'+n+'"'),!0}function YK(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ce(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$r(r)&&!Ua(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function KK(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!$r(i)&&!Ua(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),xs.call(e.anchorMap,r)||ce(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],yt(e,!0,-1),!0}function Ha(e,t,r,i,n){var s,o,a,l=1,c=!1,u=!1,f,h,d,p,m,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=zd===r||YO===r,i&&yt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;GK(e)||YK(e);)yt(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||zd===r)&&(Md===r||GO===r?m=t:m=t+1,y=e.position-e.lineStart,l===1?a&&(NO(e,y)||WK(e,y,m))||HK(e,m)?u=!0:(o&&VK(e,m)||UK(e,m)||BK(e,m)?u=!0:KK(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ce(e,"alias node should not have any properties")):zK(e,m,Md===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=a&&NO(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ce(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(p=e.implicitTypes[f],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(xs.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(e.tag.slice(0,d[f].tag.length)===d[f].tag){p=d[f];break}p||ce(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function JK(e){var t=e.position,r,i,n,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(yt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!$r(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&ce(e,"directive name must not be less than one character in length");o!==0;){for(;Oo(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Qi(o));break}if(Qi(o))break;for(r=e.position;o!==0&&!$r(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&p_(e),xs.call(PO,i)?PO[i](e,i,n):Ud(e,'unknown document directive "'+i+'"')}if(yt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,yt(e,!0,-1)):s&&ce(e,"directives end mark is expected"),Ha(e,e.lineIndent-1,zd,!1,!0),yt(e,!0,-1),e.checkLineBreaks&&$K.test(e.input.slice(t,e.position))&&Ud(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Vd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,yt(e,!0,-1));return}if(e.position<e.length-1)ce(e,"end of the stream or a document separator is expected");else return}function eA(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new MK(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,ce(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)JK(r);return r.documents}function ZK(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=eA(e,r);if(typeof t!="function")return i;for(var n=0,s=i.length;n<s;n+=1)t(i[n])}function XK(e,t){var r=eA(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Nr("expected a single document in the stream, but found more")}}var QK=ZK,eJ=XK,tA={loadAll:QK,load:eJ},rA=Object.prototype.toString,iA=Object.prototype.hasOwnProperty,g_=65279,tJ=9,au=10,rJ=13,iJ=32,nJ=33,sJ=34,c_=35,oJ=37,aJ=38,lJ=39,cJ=42,nA=44,uJ=45,Bd=58,fJ=61,hJ=62,dJ=63,pJ=64,sA=91,oA=93,mJ=96,aA=123,gJ=124,lA=125,Xt={};Xt[0]="\\0";Xt[7]="\\a";Xt[8]="\\b";Xt[9]="\\t";Xt[10]="\\n";Xt[11]="\\v";Xt[12]="\\f";Xt[13]="\\r";Xt[27]="\\e";Xt[34]='\\"';Xt[92]="\\\\";Xt[133]="\\N";Xt[160]="\\_";Xt[8232]="\\L";Xt[8233]="\\P";var yJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],vJ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _J(e,t){var r,i,n,s,o,a,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&iA.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}function bJ(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Nr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+xt.repeat("0",i-t.length)+t}var wJ=1,lu=2;function SJ(e){this.schema=e.schema||WO,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=xt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=_J(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?lu:wJ,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $O(e,t){for(var r=xt.repeat(" ",t),i=0,n=-1,s="",o,a=e.length;i<a;)n=e.indexOf(`
`,i),n===-1?(o=e.slice(i),i=a):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function u_(e,t){return`
`+xt.repeat(" ",e.indent*t)}function xJ(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function Hd(e){return e===iJ||e===tJ}function cu(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==g_||65536<=e&&e<=1114111}function FO(e){return cu(e)&&e!==g_&&e!==rJ&&e!==au}function LO(e,t,r){var i=FO(e),n=i&&!Hd(e);return(r?i:i&&e!==nA&&e!==sA&&e!==oA&&e!==aA&&e!==lA)&&e!==c_&&!(t===Bd&&!n)||FO(t)&&!Hd(t)&&e===c_||t===Bd&&n}function EJ(e){return cu(e)&&e!==g_&&!Hd(e)&&e!==uJ&&e!==dJ&&e!==Bd&&e!==nA&&e!==sA&&e!==oA&&e!==aA&&e!==lA&&e!==c_&&e!==aJ&&e!==cJ&&e!==nJ&&e!==gJ&&e!==fJ&&e!==hJ&&e!==lJ&&e!==sJ&&e!==oJ&&e!==pJ&&e!==mJ}function kJ(e){return!Hd(e)&&e!==Bd}function su(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function cA(e){var t=/^\n* /;return t.test(e)}var uA=1,f_=2,fA=3,hA=4,za=5;function RJ(e,t,r,i,n,s,o,a){var l,c=0,u=null,f=!1,h=!1,d=i!==-1,p=-1,m=EJ(su(e,0))&&kJ(su(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=su(e,l),!cu(c))return za;m=m&&LO(c,u,a),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=su(e,l),c===au)f=!0,d&&(h=h||l-p-1>i&&e[p+1]!==" ",p=l);else if(!cu(c))return za;m=m&&LO(c,u,a),u=c}h=h||d&&l-p-1>i&&e[p+1]!==" "}return!f&&!h?m&&!o&&!n(e)?uA:s===lu?za:f_:r>9&&cA(e)?za:o?s===lu?za:f_:h?hA:fA}function TJ(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===lu?'""':"''";if(!e.noCompatMode&&(yJ.indexOf(t)!==-1||vJ.test(t)))return e.quotingType===lu?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return xJ(e,c)}switch(RJ(t,a,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case uA:return t;case f_:return"'"+t.replace(/'/g,"''")+"'";case fA:return"|"+DO(t,e.indent)+jO($O(t,s));case hA:return">"+DO(t,e.indent)+jO($O(OJ(t,o),s));case za:return'"'+AJ(t)+'"';default:throw new Nr("impossible error: invalid scalar style")}}()}function DO(e,t){var r=cA(e)?String(t):"",i=e[e.length-1]===`
`,n=i&&(e[e.length-2]===`
`||e===`
`),s=n?"+":i?"":"-";return r+s+`
`}function jO(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function OJ(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,r.lastIndex=c,qO(e.slice(0,c),t)}(),n=e[0]===`
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
`:"")+qO(l,t),n=s}return i}function qO(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(e);)a=i.index,a-n>t&&(s=o>n?o:a,l+=`
`+e.slice(n,s),n=s+1),o=a;return l+=`
`,e.length-n>t&&o>n?l+=e.slice(n,o)+`
`+e.slice(o+1):l+=e.slice(n),l.slice(1)}function AJ(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=su(e,n),i=Xt[r],!i&&cu(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||bJ(r);return t}function CJ(e,t,r){var i="",n=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Mn(e,t,a,!1,!1)||typeof a>"u"&&Mn(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function MO(e,t,r,i){var n="",s=e.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(Mn(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Mn(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=u_(e,t)),e.dump&&au===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=s,e.dump=n||"[]"}function PJ(e,t,r){var i="",n=e.tag,s=Object.keys(r),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",i!==""&&(u+=", "),e.condenseFlow&&(u+='"'),l=s[o],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),Mn(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mn(e,t,c,!1,!1)&&(u+=e.dump,i+=u));e.tag=n,e.dump="{"+i+"}"}function IJ(e,t,r,i){var n="",s=e.tag,o=Object.keys(r),a,l,c,u,f,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Nr("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)h="",(!i||n!=="")&&(h+=u_(e,t)),c=o[a],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),Mn(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&au===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=u_(e,t)),Mn(e,t+1,u,!0,f)&&(e.dump&&au===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,n+=h));e.tag=s,e.dump=n||"{}"}function zO(e,t,r){var i,n,s,o,a,l;for(n=r?e.explicitTypes:e.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,rA.call(a.represent)==="[object Function]")i=a.represent(t,l);else if(iA.call(a.represent,l))i=a.represent[l](t,l);else throw new Nr("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}function Mn(e,t,r,i,n,s,o){e.tag=null,e.dump=r,zO(e,r,!1)||zO(e,r,!0);var a=rA.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",f,h;if(u&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(n=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(u&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(e.dump).length!==0?(IJ(e,t,e.dump,n),h&&(e.dump="&ref_"+f+e.dump)):(PJ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?MO(e,t-1,e.dump,n):MO(e,t,e.dump,n),h&&(e.dump="&ref_"+f+e.dump)):(CJ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&TJ(e,e.dump,t,s,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Nr("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function NJ(e,t){var r=[],i=[],n,s;for(h_(e,r,i),n=0,s=i.length;n<s;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(s)}function h_(e,t,r){var i,n,s;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,s=e.length;n<s;n+=1)h_(e[n],t,r);else for(i=Object.keys(e),n=0,s=i.length;n<s;n+=1)h_(e[i[n]],t,r)}function $J(e,t){t=t||{};var r=new SJ(t);r.noRefs||NJ(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Mn(r,0,i,!0,!0)?r.dump+`
`:""}var FJ=$J,LJ={dump:FJ};function y_(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var dA=tA.load,L$e=tA.loadAll,D$e=LJ.dump;var j$e=y_("safeLoad","load"),q$e=y_("safeLoadAll","loadAll"),M$e=y_("safeDump","dump");var Wd=class{plugin;constructor(t){this.plugin=t}handler=async(t,r)=>{try{let i=this.readParameters(t),n=i.page?`${i.page}`:"0",s=new URL(`http://localhost:${this.plugin.settings.port}/embed/${i.slide}#/${n}`);s.searchParams.append("embed","true");let o=r.createDiv();o.empty(),o.addClass("reveal-preview-view"),o.createEl("iframe",{attr:{src:s.toString(),sandbox:"allow-scripts allow-same-origin allow-popups"}})}catch(i){r.createEl("h2",{text:`Parameters invalid: ${i.message}`})}};readParameters(t){let r=dA(t),i=this.plugin.obsidianUtils.findFile(r.slide.toString());return i?.endsWith(".md")?r.slide=i:i&&(r.slide=`${i}.md`),r}};var tn=St(require("node:path")),FP=St(ip()),nl=require("obsidian");var aP='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path fill="currentColor" stroke="currentColor" d="M100 74.242V1.516H0v72.726h45.453v15.153H31.816v9.09h36.368v-9.09H54.547V74.242Zm-90.91-9.09V10.605h81.82v54.547Zm0 0"/><path fill="currentColor" stroke="currentColor" d="M54.547 19.695h9.09V56.06h-9.09ZM72.727 25.758h9.09v30.305h-9.09ZM36.363 31.816h9.09V56.06h-9.09ZM18.184 22.727h9.09v33.335h-9.09Zm0 0"/></svg>',lP='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path fill="currentColor" stroke="currentColor" d="M70.691 87.988a38.342 38.342 0 0 1-3.414 1.125 1.885 1.885 0 1 0 1.012 3.633 41.67 41.67 0 0 0 3.75-1.234 1.886 1.886 0 1 0-1.348-3.524ZM80.14 82.82a41.04 41.04 0 0 1-2.984 2.008c-.89.54-1.176 1.7-.633 2.59a1.88 1.88 0 0 0 2.59.633 43.628 43.628 0 0 0 3.278-2.203 1.891 1.891 0 0 0 .39-2.637 1.884 1.884 0 0 0-2.64-.39ZM60.2 90.402c-1.184.11-2.395.164-3.595.164a1.883 1.883 0 0 0-1.886 1.887c0 1.043.84 1.887 1.886 1.887 1.313 0 2.637-.059 3.934-.176a1.89 1.89 0 0 0 1.711-2.05c-.094-1.04-1.027-1.821-2.05-1.712ZM95.73 64.96a1.884 1.884 0 0 0-2.46 1.032 38.605 38.605 0 0 1-1.52 3.262 1.893 1.893 0 0 0 .8 2.547c.278.144.579.21.872.21.68 0 1.34-.366 1.676-1.011a43.077 43.077 0 0 0 1.664-3.574 1.892 1.892 0 0 0-1.032-2.465ZM98.055 53.91c-1.016-.133-1.973.621-2.094 1.653a39.641 39.641 0 0 1-.578 3.554 1.886 1.886 0 1 0 3.691.774c.27-1.278.48-2.582.637-3.891a1.887 1.887 0 0 0-1.656-2.09ZM87.86 75.3a41.33 41.33 0 0 1-2.344 2.735 1.889 1.889 0 0 0 2.754 2.582 40.924 40.924 0 0 0 2.562-2.996 1.88 1.88 0 0 0-.328-2.644 1.88 1.88 0 0 0-2.645.324ZM98.113 50.945a1.886 1.886 0 0 0 1.887-1.89C100 25.125 80.535 5.66 56.605 5.66c-22.468 0-40.996 17.16-43.18 39.059L3.224 34.516a1.884 1.884 0 0 0-2.668 0 1.884 1.884 0 0 0 0 2.668L13.758 50.39c.176.172.383.312.617.406a1.836 1.836 0 0 0 1.441 0c.23-.094.442-.234.614-.406l13.207-13.207a1.884 1.884 0 0 0 0-2.668 1.884 1.884 0 0 0-2.668 0l-9.653 9.652c2.418-19.547 19.098-34.734 39.29-34.734 21.843 0 39.62 17.777 39.62 39.62 0 1.048.844 1.891 1.887 1.891Zm0 0"/></svg>',cP={port:"3000",autoReload:!0,autoStart:!0,exportDirectory:"/export",enableChalkboard:!1,enableOverview:!1,enableMenu:!1,enablePointer:!1,enableTimeBar:!1,theme:"black",highlightTheme:"zenburn",transition:"slide",transitionSpeed:"default",controls:!0,progress:!0,slideNumber:!1,showGrid:!1,autoComplete:"inPreview",paneMode:"split",themeDirectory:"",center:!0},np={bg:"",center:!0,css:"",defaultTemplate:"",enableCustomControls:!0,enableLinks:!1,height:700,highlightTheme:"zenburn",log:!1,margin:.04,notesSeparator:"note:",remoteCSS:"",separator:`\r?
---\r?
`,showGrid:!1,template:"reveal.html",theme:"black",timeForPresentation:120,title:"",transition:"slide",verticalSeparator:`\r?
--\r?
`,width:960},uP={addMedia(e){},getAll(){return[]},shouldCollect(){return!1}};var Os=class e{static instance;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}options};var sp=class{regex=/<(\s*?([\w]*)[^>]*?)\/(?<=\/)>/gm;process(t){return this.transformBlock(t)}transformBlock(t){return t=t.replaceAll(this.regex,"<$1></$2>"),t}};var op=class{process(t){return this.transformBlock(t)}transformBlock(t){return t=t.replaceAll(/:::\sblock\s*/g,`<div class="block">
`),t=t.replaceAll(":::",`</div>
`),t}};var ap=class{regex=/>\s?\[!([^\]]+)\]-* *(.*)/;process(t){let r=t.split(`
`),i=[],n=-1,s=!0;for(let o=0;o<r.length;o++){let a=r[o];if(a.trim().startsWith(">")&&n===-1)n=o,s=!1;else if(!a.trim().startsWith(">")&&n>-1){let l=this.transformBlock(r,n,o-1);for(let c=0;c<l.length;c++){let u=l[c];i.push(u)}n=-1,s=!0}s&&i.push(r[o])}return i.join(`
`)}transformBlock(t,r,i){let n=[];if(this.regex.test(t[r])){let[,s,o]=this.regex.exec(t[r]),a=this.iconFrom(s),l=this.titleFrom(s,o),c=this.colorFrom(s);if(n.push(`<div class="callout ${c}" data-type="${s}">`),n.push('<div class="callout-title">'),n.push('<div class="callout-icon">'),n.push(a),n.push("</div>"),n.push('<div class="callout-title-inner">'),n.push(l),n.push("</div>"),n.push("</div>"),r!==i){n.push('<div class="callout-content">');for(let u=r+1;u<=i;u++){let f=t[u].trim().substring(1).trim();n.push(f)}n.push("</div>")}n.push("</div>")}else for(let s=r;s<=i;s++){let o=t[s];n.push(o)}return n}colorFrom(t){switch(t.toLowerCase()){case"abstract":case"summary":case"tldr":case"info":return"callout-color1";case"todo":case"tip":case"hint":case"important":return"callout-color2";case"success":case"check":case"done":return"callout-color3";case"question":case"help":case"faq":return"callout-color4";case"warning":case"caution":case"attention":return"callout-color5";case"failure":case"fail":case"missing":return"callout-color6";case"danger":case"error":case"bug":return"callout-color7";case"example":return"callout-color8";case"quote":case"cite":return"callout-color9";default:return"callout-color-default"}}titleFrom(t,r){return r||t[0].toUpperCase()+t.substring(1).toLowerCase()}iconFrom(t){switch(t.toLowerCase()){case"abstract":case"summary":case"tldr":return":fas_clipboard-list:";case"info":return":fas_info-circle:";case"todo":return":fas_check-circle:";case"tip":case"hint":case"important":return":fas_fire-alt:";case"success":case"check":case"done":return":fas_check:";case"question":case"help":case"faq":return":fas_question-circle:";case"warning":case"caution":case"attention":return":fas_exclamation-triangle:";case"failure":case"fail":case"missing":return":fas_times:";case"danger":case"error":return":fas_bolt:";case"bug":return":fas_bug:";case"example":return":fas_list:";case"quote":case"cite":return":fas_quote-left:";default:return":fas_pencil-alt:"}}};var lp=class{typeRegex=/type:\s(\w*)/;labelRegex=/labels:\s(.*)/;datasetRegex=/title:\s(.*)\s*data:\s(.*)/g;spanGapsRegex=/(spanGaps):\s(.*)/;tensionRegex=/(tension):\s(.*)/;beginAtZeroRegex=/(beginAtZero):\s(.*)/;legendRegex=/(legend):\s(.*)/;legendPositionRegex=/(legendPosition):\s(.*)/;stackedRegex=/(stacked):\s(.*)/;heightRegex=/(height):\s(.*)/;useThemeColorsRegex=/(useThemeColors):\s(.*)/;colorMap=["#4285f4","#ea4335","#fbbc05","#34a853","#673ab7","#cccccc","#777777"];process(t,r){return this.transformChart(t,r)}transformChart(t,r){let i=t.indexOf("```chart");if(i<0)return t;let n=t.indexOf("```",i+11);if(n<0)return t;let s=[...this.colorMap],o=t.substring(0,i),a=t.substring(n+3),l=t.substring(i+8,n);if(this.typeRegex.test(l)){let[,c]=this.typeRegex.exec(l),u={data:{datasets:[],labels:[]},options:{elements:{}}};if(this.useThemeColorsRegex.test(l)){let[,,f]=this.useThemeColorsRegex.exec(l);if(f.trim()==="true")for(let h=0;h<7;h++){let d=getComputedStyle(document.body).getPropertyValue(`--chart-color-${h+1}`);d!==""&&(s[h]=d)}}if(this.labelRegex.test(l)){let[,f]=this.labelRegex.exec(l);u.data.labels=jX(f),this.datasetRegex.lastIndex=0;let h=0;for(;;){let m=this.datasetRegex.exec(l);if(m==null)break;m.index===this.datasetRegex.lastIndex&&this.datasetRegex.lastIndex++;let[,y,_]=m;u.data.datasets.push({data:JSON.parse(_),label:y,backgroundColor:s[h]}),h++}if(u.options.elements[c]={},this.spanGapsRegex.test(l)){let[,m,y]=this.spanGapsRegex.exec(l);u.options.elements[c][m]=JSON.parse(y)}if(this.tensionRegex.test(l)){let[,m,y]=this.tensionRegex.exec(l);u.options.elements[c][m]=JSON.parse(y)}if(this.beginAtZeroRegex.test(l)){let[,m,y]=this.beginAtZeroRegex.exec(l);u.options.scales||(u.options.scales={}),u.options.scales.y||(u.options.scales.y={}),u.options.scales.y[m]=JSON.parse(y)}if(this.legendRegex.test(l)){let[,,m]=this.legendRegex.exec(l);u.options.plugins||(u.options.plugins={}),u.options.plugins.legend||(u.options.plugins.legend={}),u.options.plugins.legend.display=JSON.parse(m)}if(this.legendPositionRegex.test(l)){let[,,m]=this.legendPositionRegex.exec(l);u.options.plugins||(u.options.plugins={}),u.options.plugins.legend||(u.options.plugins.legend={}),u.options.plugins.legend.position=m}if(this.stackedRegex.test(l)){let[,m,y]=this.stackedRegex.exec(l);u.options.scales||(u.options.scales={}),u.options.scales.y||(u.options.scales.y={}),u.options.scales.x||(u.options.scales.x={}),u.options.scales.x[m]=JSON.parse(y),u.options.scales.y[m]=JSON.parse(y)}if(this.heightRegex.test(l)){let[,,m]=this.heightRegex.exec(l);r.height=+m}let d=`<canvas style="max-height:${r.height}px" data-chart="${c}" >
<!--
${JSON.stringify(u)}-->
</canvas>`,p=`${o.trimEnd()}
${d}
${a.trimStart()}`;return this.transformChart(p,r)}}return t}};function jX(e){return e.substring(1,e.length-1).split(",").map(t=>{let r=t.trim();return(r.startsWith("'")||r.startsWith('"'))&&(r=r.substring(1)),(r.endsWith("'")||r.endsWith('"'))&&(r=r.substring(0,r.length-1)),`${r.trim()}`})}var cp=class{transform(t){let r=t.getAttribute("data-background-image");r!==void 0&&Po().shouldCollect()&&Po().addMedia(r)}};var CP=St(AP()),pp=class{transform(t){let r=t.getAttribute("bg"),i=t.getAttribute("onTarget");if(r!==void 0){let n=this.readColor(r);n?(n.isLight()?(t.addClass("has-light-background"),t.deleteClass("has-dark-background")):(t.addClass("has-dark-background"),t.deleteClass("has-light-background")),t.deleteAttribute("bg"),i&&i==="slide"?(t.deleteAttribute("data-background-image"),t.deleteAttribute("data-background-color"),t.addAttribute("data-background-color",r)):t.addStyle("background-color",r)):(t.deleteAttribute("bg"),i&&i==="slide"&&(t.deleteAttribute("data-background-color"),t.deleteAttribute("data-background-image"),t.addAttribute("data-background-image",r)))}}readColor(t){try{return(0,CP.default)(t)}catch{return null}}};var mp=class{transform(t){let r=t.getAttribute("border");r!==void 0&&(t.addStyle("border",r),t.addStyle("box-sizing","border-box"),t.deleteAttribute("border"))}};var gp=class{from;constructor(t){this.from=t}transform(t){let r=t.getAttribute(this.from);if(r!==void 0){for(let i of r.split(" "))i.trim().length>0&&t.addClass(i.trim());t.deleteAttribute(this.from)}}};var yp=class{transform(t){let r=t.getAttribute("class");if(r!==void 0){for(let i of r.split(" "))i.trim().length>0&&t.addClass(i.trim());t.deleteAttribute("class")}}};var vp=class{transform(t){let r=t.getAttribute("frag");r!==void 0&&(t.addClass("fragment"),t.deleteAttribute("frag"),t.addAttribute("data-fragment-index",r))}};var _p=class{maxWidth;maxHeight;isCenter;constructor(){this.maxWidth=Os.getInstance().options.width,this.maxHeight=Os.getInstance().options.height,this.isCenter=Os.getInstance().options.center}gridAttributeRegex=/^(?:(-?\d*(?:px)?)(?:\s*|x)(-?\d*(?:px)?)|(center|top|bottom|left|right|topleft|topright|bottomleft|bottomright))$/m;transform(t){let r,i,n=t.getAttribute("absolute")==="true";n?(r="480px 700px",i="px"):(r="50 100",i="%");let s=t.getAttribute("drop");if(s!==void 0){let o=t.getAttribute("drag")??r,a=this.read(o,s,n);if(a!==void 0){let l=this.leftOf(a)+i,c=this.topOf(a)+i,u=this.heightOf(a)+i,f=this.widthOf(a)+i;t.addStyle("position","absolute"),t.addStyle("left",l),t.addStyle("top",c),t.addStyle("height",u),t.addStyle("width",f),n&&t.addStyle("min-height",u)}t.deleteAttribute("drag"),t.deleteAttribute("drop")}if(t.getAttribute("align")||s){let o=t.getAttribute("flow"),[a,l,c,u]=this.getAlignment(t.getAttribute("align"),o),f=t.getAttribute("justify-content")??c;switch(a&&t.addAttribute("align",a,!1),u&&t.addClass(u),o){case"row":t.addStyle("display","flex"),t.addStyle("flex-direction","row"),t.addStyle("align-items",l),t.addStyle("justify-content",f),t.addClass("flex-even");break;default:t.addStyle("display","flex"),t.addStyle("flex-direction","column"),t.addStyle("align-items",l),t.addStyle("justify-content",f);break}this.isCenter!==void 0&&!this.isCenter&&t.addStyle("align-items","start"),t.deleteAttribute("flow"),t.deleteAttribute("justify-content")}}getAlignment(t,r){let i=r??"col";switch(t){case"topleft":return i==="col"?["left","flex-start","flex-start",void 0]:["left","flex-start","space-evenly",void 0];case"topright":return i==="col"?["right","flex-end","flex-start",void 0]:["right","flex-start","space-evenly",void 0];case"bottomright":return i==="col"?["right","flex-end","flex-end",void 0]:["right","flex-end","space-evenly",void 0];case"bottomleft":return i==="col"?["left","flex-start","flex-end",void 0]:["left","flex-end","space-evenly",void 0];case"left":return i==="col"?["left","flex-start","space-evenly",void 0]:["left","center","space-evenly",void 0];case"right":return i==="col"?["right","flex-end","space-evenly",void 0]:["right","center","space-evenly",void 0];case"top":return i==="col"?[void 0,"center","flex-start",void 0]:[void 0,"flex-start","space-evenly",void 0];case"bottom":return i==="col"?[void 0,"center","flex-end",void 0]:[void 0,"flex-end","space-evenly",void 0];case"stretch":return i==="col"?[void 0,"center","space-evenly","stretch-column"]:[void 0,"center","space-evenly","stretch-row"];case"block":case"justify":return["justify","center","space-evenly",void 0];default:return[void 0,"center","center",void 0]}}read(t,r,i){try{let n=new Map;return n.set("slideWidth",this.maxWidth),n.set("slideHeight",this.maxHeight),i?(n.set("maxWidth",this.maxWidth),n.set("maxHeight",this.maxHeight),this.readValues(t,r,n,this.toPixel)):(n.set("maxWidth",100),n.set("maxHeight",100),this.readValues(t,r,n,this.toRelativeValue))}catch{return}}readValues(t,r,i,n){try{let[,s,o]=this.gridAttributeRegex.exec(t),[,a,l,c]=this.gridAttributeRegex.exec(r);if(s&&i.set("width",n(i.get("slideWidth"),s)),o&&i.set("height",n(i.get("slideHeight"),o)),c){let[u,f]=this.getXYof(c,i.get("width"),i.get("height"),i.get("maxWidth"),i.get("maxHeight"));i.set("x",u),i.set("y",f)}else a&&i.set("x",n(i.get("slideWidth"),a)),l&&i.set("y",n(i.get("slideHeight"),l));return i}catch{return}}toRelativeValue(t,r){return r.toLowerCase().endsWith("px")?Number(r.toLowerCase().replace("px","").trim())/t*100:Number(r)}toPixel(t,r){return r.toLowerCase().endsWith("px")?Number(r.toLowerCase().replace("px","").trim()):t/100*Number(r)}getXYof(t,r,i,n,s){switch(t){case"topleft":return[0,0];case"topright":return[n-r,0];case"bottomleft":return[0,s-i];case"bottomright":return[n-r,s-i];case"left":return[0,(s-i)/2];case"right":return[n-r,(s-i)/2];case"top":return[(n-r)/2,0];case"bottom":return[(n-r)/2,s-i];case"center":return[(n-r)/2,(s-i)/2];default:return[0,0]}}leftOf(t){return t.get("x")<0?t.get("maxWidth")+t.get("x")-t.get("width"):t.get("x")}topOf(t){return t.get("y")<0?t.get("maxHeight")+t.get("y")-t.get("height"):t.get("y")}heightOf(t){return t.get("height")}widthOf(t){return t.get("width")}};var bp=class{transform(t){let r=t.getAttribute("pad");r!==void 0&&(t.addStyle("padding",r),t.addStyle("box-sizing","border-box"),t.deleteAttribute("pad"))}};var wp=class{transform(t){let r=t.getAttribute("rotate");if(r!==void 0){let i=r.endsWith("deg")?r:`${r}deg`;t.addStyle("transform",`rotate(${i})`),t.deleteAttribute("rotate")}}};var bu=class{from;to;constructor(t,r){this.from=t,this.to=r}transform(t){let r=t.getAttribute(this.from);r!==void 0&&(t.addStyle(this.to,r),t.deleteAttribute(this.from))}};var Sp=class{transform(t){let r=t.getAttribute("style");if(r!==void 0){for(let i of r.split(";")){let n=i.trim();if(n.length>0){let[s,o]=n.split(":");s&&s.length>0&&o&&t.addStyle(s.trim(),o.trim())}}t.deleteAttribute("style")}}};var Xa=class{transformer;style;class;attributes;addClass(t){return this.class.add(t),this}deleteClass(t){return this.class.delete(t),this}hasClass(t){return this.class.has(t)}addStyle(t,r){return this.style.set(t,r),this}deleteStyle(t){return this.style.delete(t),this}hasStyle(t){return this.style.has(t)}addAttribute(t,r,i=!0){return this.attributes.set(t,r),i&&this.transformer.transform(this),this}deleteAttribute(t){return this.attributes.delete(t),this}hasAttribute(t){return this.attributes.has(t)}getAttribute(t){return this.attributes.get(t)}constructor(t){this.style=new Map,this.class=new Set,this.attributes=t,this.transformer=new D_,this.transformer.transform(this)}getClasses(){return Array.from(this.class).join(" ")}getStyles(){let t=Array();for(let[r,i]of this.style)t.push(`${r}: ${i}`);return t.join("; ")}getAttributes(){let t=Array();for(let[r,i]of this.attributes)r!=="onTarget"&&t.push(`${r}="${i}"`);return t.join(" ")}},D_=class{allTransformers=new Array;constructor(){this.allTransformers.push(new yp),this.allTransformers.push(new Sp),this.allTransformers.push(new pp),this.allTransformers.push(new bp),this.allTransformers.push(new gp("animate")),this.allTransformers.push(new vp),this.allTransformers.push(new bu("opacity","opacity")),this.allTransformers.push(new mp),this.allTransformers.push(new bu("filter","filter")),this.allTransformers.push(new wp),this.allTransformers.push(new _p),this.allTransformers.push(new cp)}transform(t){for(let r=0;r<this.allTransformers.length;r++)this.allTransformers[r].transform(t)}};var xp=class e extends Xa{type;constructor(t,r){r.set("onTarget",t),super(r),this.type=t}static of(t,r=[],i=[],n=new Map){if(i&&i.length>0){let s=n.get("class");if(s){let o=s.split(" ");o.push(...i),n.set("class",o.join(" "))}else n.set("class",i.join(" "))}if(r&&r.length>0){let s=n.get("style");if(s){let o=s.split(";").map(a=>a.trim());o.push(...r),n.set("style",o.join("; "))}else n.set("style",r.join("; "))}return new e(t,n)}},er=class{readCommentRegex=/<!--.*?-->/s;parseRegex=/<!--\s*(?:\.)?(element|slide):?\s*(.*)-->/s;parsePropertiesRegex=/([^=]*)\s*=\s*"([^"]*)"\s*|([^=]*)\s*=\s*'([^']*)'\s*|([^ ]*)\s*/g;commentToString(t){return`<!-- .${t.type}: ${this.buildAttributes(t)} -->`}buildAttributes(t){let r=t.getStyles(),i=t.getClasses(),n=r.length>0?`style="${r}" `:"",s=i.length>0?`class="${i}" `:"";return`${n}${s}${t.getAttributes()}`.trim()}parseLine(t){return this.lineHasComment(t)?this.parseComment(this.readCommentStringFromLine(t)):null}parseComment(t){try{let[,r,i]=this.parseRegex.exec(t),n=this.parseAttributes(i);return new xp(r,n)}catch{return console.error(`ERROR: Cannot parse comment: ${t}`),null}}buildComment(t,r=[],i=[],n=new Map){return xp.of(t,r,i,n)}lineHasComment(t){return this.parseRegex.test(t)}replace(t,r){return t.replace(this.readCommentRegex,this.commentToString(r))}readCommentStringFromLine(t){return this.readCommentRegex.exec(t)?.[0]??""}parseAttributes(t){let r=new Map;for(;;){let i=this.parsePropertiesRegex.exec(t);if(i==null)break;i.index===this.parsePropertiesRegex.lastIndex&&this.parsePropertiesRegex.lastIndex++;let n,s;i.forEach((o,a)=>{(a===1||a===3)&&(n=o),(a===2||a===4)&&(s=o,r.set(n,s)),a===5&&o&&r.set(o,"true")})}return r.delete(void 0),r}};var Ep=class{parser=new er;process(t){return t.split(`
`).map(r=>{let i=this.parser.parseLine(r);return i?this.parser.replace(r,i):r}).join(`
`)}};var kp=class{process(t,r){let i=t;return r.showGrid&&t.split(new RegExp(r.separator,"gmi")).map((n,s)=>n.split(new RegExp(r.verticalSeparator,"gmi")).map((o,a)=>{let[l,c]=this.extractNotes(o,r),u=this.addDebugCode(l);return c.length>0&&(u+=`
${c}`),i=i.replace(o,u),u}).join(r.verticalSeparator)).join(r.separator),i}addDebugCode(t){let r="";return r+=`<grid drag="100 10" drop="0 0" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 10" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 20" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 30" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 40" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 50" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 60" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 70" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 80" border="thin dotted blue"/>
`,r+=`<grid drag="100 10" drop="0 90" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="0 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="10 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="20 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="30 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="40 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="50 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="60 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="70 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="80 0" border="thin dotted blue"/>
`,r+=`<grid drag="10 100" drop="90 0" border="thin dotted blue"/>
`,`${t}
${r}`}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let n=t.indexOf(i);return n>0?[t.substring(0,n),t.substring(n)]:[t,""]}};var Rp=class{slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;parser=new er;process(t,r){let i=t;return r?.bg&&((r?.bg==="transparent"||r?.bg==="rgba(0,0,0,0)")&&(i=`<style>
body {
background-color: rgba(0,0,0,0) !important;
}
</style>
${i}`),t.split(new RegExp(r.separator,"gmi")).map(n=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(s=>{if(s){let o=this.transformSlide(s,r?.bg);return i=i.split(s).join(o),o}return s}).join(r.verticalSeparator)).join(r.separator)),i}transformSlide(t,r){if(this.slideCommentRegex.test(t)){let[i]=this.slideCommentRegex.exec(t),n=this.parser.parseLine(i);return!n.hasAttribute("data-background-image")&&!n.hasAttribute("data-background-color")&&n.addAttribute("bg",r),t.replace(this.slideCommentRegex,this.parser.commentToString(n))}return`${t}
<!-- slide bg="${r}" -->
`}};var Tp=class{slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;parser=new er;process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map(n=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(s=>{if(s.trim().length>0){let o=this.transformSlide(s,r),a=i.split(s);if(a.length===2)i=a.join(o);else{let l=a.splice(1).join(s);i=[a[0],l].join(o)}return o}return s}).join(r.verticalSeparator)).join(r.separator),i}transformSlide(t,r){let[i,n]=this.extractNotes(t,r),s,o;if(this.slideCommentRegex.test(i)){let[l]=this.slideCommentRegex.exec(i),c=this.parser.parseLine(l);c.addClass("drop"),s=i.replace(this.slideCommentRegex,""),s=s.trim(),o=this.parser.commentToString(c)}else s=i.trim(),o='<!-- .slide: class="drop" -->';let a=`${o}
<grid absolute="true" drag="100 100" drop="0 0">
${s}
</grid>`;return n.length>0&&(a+=`
${n}`),a}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let n=t.indexOf(i);return n>0?[t.substring(0,n),t.substring(n)]:[t,""]}};var eQ={":100:":"\u{1F4AF}",":1234:":"\u{1F522}",":+1:":"\u{1F44D}",":-1:":"\u{1F44E}",":1st_place_medal:":"\u{1F947}",":2nd_place_medal:":"\u{1F948}",":3rd_place_medal:":"\u{1F949}",":8ball:":"\u{1F3B1}",":a:":"\u{1F170}",":ab:":"\u{1F18E}",":abacus:":"\u{1F9EE}",":abc:":"\u{1F524}",":abcd:":"\u{1F521}",":accept:":"\u{1F251}",":accordion:":"\u{1FA97}",":adhesive_bandage:":"\u{1FA79}",":adult:":"\u{1F9D1}",":aerial_tramway:":"\u{1F6A1}",":afghanistan:":"\u{1F1E6}\u200D\u{1F1EB}",":airplane:":"\u2708",":aland_islands:":"\u{1F1E6}\u200D\u{1F1FD}",":alarm_clock:":"\u23F0",":albania:":"\u{1F1E6}\u200D\u{1F1F1}",":alembic:":"\u2697",":algeria:":"\u{1F1E9}\u200D\u{1F1FF}",":alien:":"\u{1F47D}",":ambulance:":"\u{1F691}",":american_samoa:":"\u{1F1E6}\u200D\u{1F1F8}",":amphora:":"\u{1F3FA}",":anatomical_heart:":"\u{1FAC0}",":anchor:":"\u2693",":andorra:":"\u{1F1E6}\u200D\u{1F1E9}",":angel:":"\u{1F47C}",":anger:":"\u{1F4A2}",":angola:":"\u{1F1E6}\u200D\u{1F1F4}",":angry:":"\u{1F620}",":anguilla:":"\u{1F1E6}\u200D\u{1F1EE}",":anguished:":"\u{1F627}",":ant:":"\u{1F41C}",":antarctica:":"\u{1F1E6}\u200D\u{1F1F6}",":antigua_barbuda:":"\u{1F1E6}\u200D\u{1F1EC}",":apple:":"\u{1F34E}",":aquarius:":"\u2652",":argentina:":"\u{1F1E6}\u200D\u{1F1F7}",":aries:":"\u2648",":armenia:":"\u{1F1E6}\u200D\u{1F1F2}",":arrow_backward:":"\u25C0",":arrow_double_down:":"\u23EC",":arrow_double_up:":"\u23EB",":arrow_down:":"\u2B07",":arrow_down_small:":"\u{1F53D}",":arrow_forward:":"\u25B6",":arrow_heading_down:":"\u2935",":arrow_heading_up:":"\u2934",":arrow_left:":"\u2B05",":arrow_lower_left:":"\u2199",":arrow_lower_right:":"\u2198",":arrow_right:":"\u27A1",":arrow_right_hook:":"\u21AA",":arrow_up:":"\u2B06",":arrow_up_down:":"\u2195",":arrow_up_small:":"\u{1F53C}",":arrow_upper_left:":"\u2196",":arrow_upper_right:":"\u2197",":arrows_clockwise:":"\u{1F503}",":arrows_counterclockwise:":"\u{1F504}",":art:":"\u{1F3A8}",":articulated_lorry:":"\u{1F69B}",":artificial_satellite:":"\u{1F6F0}",":artist:":"\u{1F9D1}\u200D\u{1F3A8}",":aruba:":"\u{1F1E6}\u200D\u{1F1FC}",":ascension_island:":"\u{1F1E6}\u200D\u{1F1E8}",":asterisk:":"*\u200D\u20E3",":astonished:":"\u{1F632}",":astronaut:":"\u{1F9D1}\u200D\u{1F680}",":athletic_shoe:":"\u{1F45F}",":atm:":"\u{1F3E7}",":atom_symbol:":"\u269B",":australia:":"\u{1F1E6}\u200D\u{1F1FA}",":austria:":"\u{1F1E6}\u200D\u{1F1F9}",":auto_rickshaw:":"\u{1F6FA}",":avocado:":"\u{1F951}",":axe:":"\u{1FA93}",":azerbaijan:":"\u{1F1E6}\u200D\u{1F1FF}",":b:":"\u{1F171}",":baby:":"\u{1F476}",":baby_bottle:":"\u{1F37C}",":baby_chick:":"\u{1F424}",":baby_symbol:":"\u{1F6BC}",":back:":"\u{1F519}",":bacon:":"\u{1F953}",":badger:":"\u{1F9A1}",":badminton:":"\u{1F3F8}",":bagel:":"\u{1F96F}",":baggage_claim:":"\u{1F6C4}",":baguette_bread:":"\u{1F956}",":bahamas:":"\u{1F1E7}\u200D\u{1F1F8}",":bahrain:":"\u{1F1E7}\u200D\u{1F1ED}",":balance_scale:":"\u2696",":bald_man:":"\u{1F468}\u200D\u{1F9B2}",":bald_woman:":"\u{1F469}\u200D\u{1F9B2}",":ballet_shoes:":"\u{1FA70}",":balloon:":"\u{1F388}",":ballot_box:":"\u{1F5F3}",":ballot_box_with_check:":"\u2611",":bamboo:":"\u{1F38D}",":banana:":"\u{1F34C}",":bangbang:":"\u203C",":bangladesh:":"\u{1F1E7}\u200D\u{1F1E9}",":banjo:":"\u{1FA95}",":bank:":"\u{1F3E6}",":bar_chart:":"\u{1F4CA}",":barbados:":"\u{1F1E7}\u200D\u{1F1E7}",":barber:":"\u{1F488}",":baseball:":"\u26BE",":basket:":"\u{1F9FA}",":basketball:":"\u{1F3C0}",":basketball_man:":"\u26F9\u200D\u2642",":basketball_woman:":"\u26F9\u200D\u2640",":bat:":"\u{1F987}",":bath:":"\u{1F6C0}",":bathtub:":"\u{1F6C1}",":battery:":"\u{1F50B}",":beach_umbrella:":"\u{1F3D6}",":bear:":"\u{1F43B}",":bearded_person:":"\u{1F9D4}",":beaver:":"\u{1F9AB}",":bed:":"\u{1F6CF}",":bee:":"\u{1F41D}",":beer:":"\u{1F37A}",":beers:":"\u{1F37B}",":beetle:":"\u{1FAB2}",":beginner:":"\u{1F530}",":belarus:":"\u{1F1E7}\u200D\u{1F1FE}",":belgium:":"\u{1F1E7}\u200D\u{1F1EA}",":belize:":"\u{1F1E7}\u200D\u{1F1FF}",":bell:":"\u{1F514}",":bell_pepper:":"\u{1FAD1}",":bellhop_bell:":"\u{1F6CE}",":benin:":"\u{1F1E7}\u200D\u{1F1EF}",":bento:":"\u{1F371}",":bermuda:":"\u{1F1E7}\u200D\u{1F1F2}",":beverage_box:":"\u{1F9C3}",":bhutan:":"\u{1F1E7}\u200D\u{1F1F9}",":bicyclist:":"\u{1F6B4}",":bike:":"\u{1F6B2}",":biking_man:":"\u{1F6B4}\u200D\u2642",":biking_woman:":"\u{1F6B4}\u200D\u2640",":bikini:":"\u{1F459}",":billed_cap:":"\u{1F9E2}",":biohazard:":"\u2623",":bird:":"\u{1F426}",":birthday:":"\u{1F382}",":bison:":"\u{1F9AC}",":black_cat:":"\u{1F408}\u200D\u2B1B",":black_circle:":"\u26AB",":black_flag:":"\u{1F3F4}",":black_heart:":"\u{1F5A4}",":black_joker:":"\u{1F0CF}",":black_large_square:":"\u2B1B",":black_medium_small_square:":"\u25FE",":black_medium_square:":"\u25FC",":black_nib:":"\u2712",":black_small_square:":"\u25AA",":black_square_button:":"\u{1F532}",":blond_haired_man:":"\u{1F471}\u200D\u2642",":blond_haired_person:":"\u{1F471}",":blond_haired_woman:":"\u{1F471}\u200D\u2640",":blonde_woman:":"\u{1F471}\u200D\u2640",":blossom:":"\u{1F33C}",":blowfish:":"\u{1F421}",":blue_book:":"\u{1F4D8}",":blue_car:":"\u{1F699}",":blue_heart:":"\u{1F499}",":blue_square:":"\u{1F7E6}",":blueberries:":"\u{1FAD0}",":blush:":"\u{1F60A}",":boar:":"\u{1F417}",":boat:":"\u26F5",":bolivia:":"\u{1F1E7}\u200D\u{1F1F4}",":bomb:":"\u{1F4A3}",":bone:":"\u{1F9B4}",":book:":"\u{1F4D6}",":bookmark:":"\u{1F516}",":bookmark_tabs:":"\u{1F4D1}",":books:":"\u{1F4DA}",":boom:":"\u{1F4A5}",":boomerang:":"\u{1FA83}",":boot:":"\u{1F462}",":bosnia_herzegovina:":"\u{1F1E7}\u200D\u{1F1E6}",":botswana:":"\u{1F1E7}\u200D\u{1F1FC}",":bouncing_ball_man:":"\u26F9\u200D\u2642",":bouncing_ball_person:":"\u26F9",":bouncing_ball_woman:":"\u26F9\u200D\u2640",":bouquet:":"\u{1F490}",":bouvet_island:":"\u{1F1E7}\u200D\u{1F1FB}",":bow:":"\u{1F647}",":bow_and_arrow:":"\u{1F3F9}",":bowing_man:":"\u{1F647}\u200D\u2642",":bowing_woman:":"\u{1F647}\u200D\u2640",":bowl_with_spoon:":"\u{1F963}",":bowling:":"\u{1F3B3}",":boxing_glove:":"\u{1F94A}",":boy:":"\u{1F466}",":brain:":"\u{1F9E0}",":brazil:":"\u{1F1E7}\u200D\u{1F1F7}",":bread:":"\u{1F35E}",":breast_feeding:":"\u{1F931}",":bricks:":"\u{1F9F1}",":bride_with_veil:":"\u{1F470}\u200D\u2640",":bridge_at_night:":"\u{1F309}",":briefcase:":"\u{1F4BC}",":british_indian_ocean_territory:":"\u{1F1EE}\u200D\u{1F1F4}",":british_virgin_islands:":"\u{1F1FB}\u200D\u{1F1EC}",":broccoli:":"\u{1F966}",":broken_heart:":"\u{1F494}",":broom:":"\u{1F9F9}",":brown_circle:":"\u{1F7E4}",":brown_heart:":"\u{1F90E}",":brown_square:":"\u{1F7EB}",":brunei:":"\u{1F1E7}\u200D\u{1F1F3}",":bubble_tea:":"\u{1F9CB}",":bucket:":"\u{1FAA3}",":bug:":"\u{1F41B}",":building_construction:":"\u{1F3D7}",":bulb:":"\u{1F4A1}",":bulgaria:":"\u{1F1E7}\u200D\u{1F1EC}",":bullettrain_front:":"\u{1F685}",":bullettrain_side:":"\u{1F684}",":burkina_faso:":"\u{1F1E7}\u200D\u{1F1EB}",":burrito:":"\u{1F32F}",":burundi:":"\u{1F1E7}\u200D\u{1F1EE}",":bus:":"\u{1F68C}",":business_suit_levitating:":"\u{1F574}",":busstop:":"\u{1F68F}",":bust_in_silhouette:":"\u{1F464}",":busts_in_silhouette:":"\u{1F465}",":butter:":"\u{1F9C8}",":butterfly:":"\u{1F98B}",":cactus:":"\u{1F335}",":cake:":"\u{1F370}",":calendar:":"\u{1F4C6}",":call_me_hand:":"\u{1F919}",":calling:":"\u{1F4F2}",":cambodia:":"\u{1F1F0}\u200D\u{1F1ED}",":camel:":"\u{1F42B}",":camera:":"\u{1F4F7}",":camera_flash:":"\u{1F4F8}",":cameroon:":"\u{1F1E8}\u200D\u{1F1F2}",":camping:":"\u{1F3D5}",":canada:":"\u{1F1E8}\u200D\u{1F1E6}",":canary_islands:":"\u{1F1EE}\u200D\u{1F1E8}",":cancer:":"\u264B",":candle:":"\u{1F56F}",":candy:":"\u{1F36C}",":canned_food:":"\u{1F96B}",":canoe:":"\u{1F6F6}",":cape_verde:":"\u{1F1E8}\u200D\u{1F1FB}",":capital_abcd:":"\u{1F520}",":capricorn:":"\u2651",":car:":"\u{1F697}",":card_file_box:":"\u{1F5C3}",":card_index:":"\u{1F4C7}",":card_index_dividers:":"\u{1F5C2}",":caribbean_netherlands:":"\u{1F1E7}\u200D\u{1F1F6}",":carousel_horse:":"\u{1F3A0}",":carpentry_saw:":"\u{1FA9A}",":carrot:":"\u{1F955}",":cartwheeling:":"\u{1F938}",":cat:":"\u{1F431}",":cat2:":"\u{1F408}",":cayman_islands:":"\u{1F1F0}\u200D\u{1F1FE}",":cd:":"\u{1F4BF}",":central_african_republic:":"\u{1F1E8}\u200D\u{1F1EB}",":ceuta_melilla:":"\u{1F1EA}\u200D\u{1F1E6}",":chad:":"\u{1F1F9}\u200D\u{1F1E9}",":chains:":"\u26D3",":chair:":"\u{1FA91}",":champagne:":"\u{1F37E}",":chart:":"\u{1F4B9}",":chart_with_downwards_trend:":"\u{1F4C9}",":chart_with_upwards_trend:":"\u{1F4C8}",":checkered_flag:":"\u{1F3C1}",":cheese:":"\u{1F9C0}",":cherries:":"\u{1F352}",":cherry_blossom:":"\u{1F338}",":chess_pawn:":"\u265F",":chestnut:":"\u{1F330}",":chicken:":"\u{1F414}",":child:":"\u{1F9D2}",":children_crossing:":"\u{1F6B8}",":chile:":"\u{1F1E8}\u200D\u{1F1F1}",":chipmunk:":"\u{1F43F}",":chocolate_bar:":"\u{1F36B}",":chopsticks:":"\u{1F962}",":christmas_island:":"\u{1F1E8}\u200D\u{1F1FD}",":christmas_tree:":"\u{1F384}",":church:":"\u26EA",":cinema:":"\u{1F3A6}",":circus_tent:":"\u{1F3AA}",":city_sunrise:":"\u{1F307}",":city_sunset:":"\u{1F306}",":cityscape:":"\u{1F3D9}",":cl:":"\u{1F191}",":clamp:":"\u{1F5DC}",":clap:":"\u{1F44F}",":clapper:":"\u{1F3AC}",":classical_building:":"\u{1F3DB}",":climbing:":"\u{1F9D7}",":climbing_man:":"\u{1F9D7}\u200D\u2642",":climbing_woman:":"\u{1F9D7}\u200D\u2640",":clinking_glasses:":"\u{1F942}",":clipboard:":"\u{1F4CB}",":clipperton_island:":"\u{1F1E8}\u200D\u{1F1F5}",":clock1:":"\u{1F550}",":clock10:":"\u{1F559}",":clock1030:":"\u{1F565}",":clock11:":"\u{1F55A}",":clock1130:":"\u{1F566}",":clock12:":"\u{1F55B}",":clock1230:":"\u{1F567}",":clock130:":"\u{1F55C}",":clock2:":"\u{1F551}",":clock230:":"\u{1F55D}",":clock3:":"\u{1F552}",":clock330:":"\u{1F55E}",":clock4:":"\u{1F553}",":clock430:":"\u{1F55F}",":clock5:":"\u{1F554}",":clock530:":"\u{1F560}",":clock6:":"\u{1F555}",":clock630:":"\u{1F561}",":clock7:":"\u{1F556}",":clock730:":"\u{1F562}",":clock8:":"\u{1F557}",":clock830:":"\u{1F563}",":clock9:":"\u{1F558}",":clock930:":"\u{1F564}",":closed_book:":"\u{1F4D5}",":closed_lock_with_key:":"\u{1F510}",":closed_umbrella:":"\u{1F302}",":cloud:":"\u2601",":cloud_with_lightning:":"\u{1F329}",":cloud_with_lightning_and_rain:":"\u26C8",":cloud_with_rain:":"\u{1F327}",":cloud_with_snow:":"\u{1F328}",":clown_face:":"\u{1F921}",":clubs:":"\u2663",":cn:":"\u{1F1E8}\u200D\u{1F1F3}",":coat:":"\u{1F9E5}",":cockroach:":"\u{1FAB3}",":cocktail:":"\u{1F378}",":coconut:":"\u{1F965}",":cocos_islands:":"\u{1F1E8}\u200D\u{1F1E8}",":coffee:":"\u2615",":coffin:":"\u26B0",":coin:":"\u{1FA99}",":cold_face:":"\u{1F976}",":cold_sweat:":"\u{1F630}",":collision:":"\u{1F4A5}",":colombia:":"\u{1F1E8}\u200D\u{1F1F4}",":comet:":"\u2604",":comoros:":"\u{1F1F0}\u200D\u{1F1F2}",":compass:":"\u{1F9ED}",":computer:":"\u{1F4BB}",":computer_mouse:":"\u{1F5B1}",":confetti_ball:":"\u{1F38A}",":confounded:":"\u{1F616}",":confused:":"\u{1F615}",":congo_brazzaville:":"\u{1F1E8}\u200D\u{1F1EC}",":congo_kinshasa:":"\u{1F1E8}\u200D\u{1F1E9}",":congratulations:":"\u3297",":construction:":"\u{1F6A7}",":construction_worker:":"\u{1F477}",":construction_worker_man:":"\u{1F477}\u200D\u2642",":construction_worker_woman:":"\u{1F477}\u200D\u2640",":control_knobs:":"\u{1F39B}",":convenience_store:":"\u{1F3EA}",":cook:":"\u{1F9D1}\u200D\u{1F373}",":cook_islands:":"\u{1F1E8}\u200D\u{1F1F0}",":cookie:":"\u{1F36A}",":cool:":"\u{1F192}",":cop:":"\u{1F46E}",":copyright:":"\xA9",":corn:":"\u{1F33D}",":costa_rica:":"\u{1F1E8}\u200D\u{1F1F7}",":cote_divoire:":"\u{1F1E8}\u200D\u{1F1EE}",":couch_and_lamp:":"\u{1F6CB}",":couple:":"\u{1F46B}",":couple_with_heart:":"\u{1F491}",":couple_with_heart_man_man:":"\u{1F468}\u200D\u2764\u200D\u{1F468}",":couple_with_heart_woman_man:":"\u{1F469}\u200D\u2764\u200D\u{1F468}",":couple_with_heart_woman_woman:":"\u{1F469}\u200D\u2764\u200D\u{1F469}",":couplekiss:":"\u{1F48F}",":couplekiss_man_man:":"\u{1F468}\u200D\u2764\u200D\u{1F48B}\u200D\u{1F468}",":couplekiss_man_woman:":"\u{1F469}\u200D\u2764\u200D\u{1F48B}\u200D\u{1F468}",":couplekiss_woman_woman:":"\u{1F469}\u200D\u2764\u200D\u{1F48B}\u200D\u{1F469}",":cow:":"\u{1F42E}",":cow2:":"\u{1F404}",":cowboy_hat_face:":"\u{1F920}",":crab:":"\u{1F980}",":crayon:":"\u{1F58D}",":credit_card:":"\u{1F4B3}",":crescent_moon:":"\u{1F319}",":cricket:":"\u{1F997}",":cricket_game:":"\u{1F3CF}",":croatia:":"\u{1F1ED}\u200D\u{1F1F7}",":crocodile:":"\u{1F40A}",":croissant:":"\u{1F950}",":crossed_fingers:":"\u{1F91E}",":crossed_flags:":"\u{1F38C}",":crossed_swords:":"\u2694",":crown:":"\u{1F451}",":cry:":"\u{1F622}",":crying_cat_face:":"\u{1F63F}",":crystal_ball:":"\u{1F52E}",":cuba:":"\u{1F1E8}\u200D\u{1F1FA}",":cucumber:":"\u{1F952}",":cup_with_straw:":"\u{1F964}",":cupcake:":"\u{1F9C1}",":cupid:":"\u{1F498}",":curacao:":"\u{1F1E8}\u200D\u{1F1FC}",":curling_stone:":"\u{1F94C}",":curly_haired_man:":"\u{1F468}\u200D\u{1F9B1}",":curly_haired_woman:":"\u{1F469}\u200D\u{1F9B1}",":curly_loop:":"\u27B0",":currency_exchange:":"\u{1F4B1}",":curry:":"\u{1F35B}",":cursing_face:":"\u{1F92C}",":custard:":"\u{1F36E}",":customs:":"\u{1F6C3}",":cut_of_meat:":"\u{1F969}",":cyclone:":"\u{1F300}",":cyprus:":"\u{1F1E8}\u200D\u{1F1FE}",":czech_republic:":"\u{1F1E8}\u200D\u{1F1FF}",":dagger:":"\u{1F5E1}",":dancer:":"\u{1F483}",":dancers:":"\u{1F46F}",":dancing_men:":"\u{1F46F}\u200D\u2642",":dancing_women:":"\u{1F46F}\u200D\u2640",":dango:":"\u{1F361}",":dark_sunglasses:":"\u{1F576}",":dart:":"\u{1F3AF}",":dash:":"\u{1F4A8}",":date:":"\u{1F4C5}",":de:":"\u{1F1E9}\u200D\u{1F1EA}",":deaf_man:":"\u{1F9CF}\u200D\u2642",":deaf_person:":"\u{1F9CF}",":deaf_woman:":"\u{1F9CF}\u200D\u2640",":deciduous_tree:":"\u{1F333}",":deer:":"\u{1F98C}",":denmark:":"\u{1F1E9}\u200D\u{1F1F0}",":department_store:":"\u{1F3EC}",":derelict_house:":"\u{1F3DA}",":desert:":"\u{1F3DC}",":desert_island:":"\u{1F3DD}",":desktop_computer:":"\u{1F5A5}",":detective:":"\u{1F575}",":diamond_shape_with_a_dot_inside:":"\u{1F4A0}",":diamonds:":"\u2666",":diego_garcia:":"\u{1F1E9}\u200D\u{1F1EC}",":disappointed:":"\u{1F61E}",":disappointed_relieved:":"\u{1F625}",":disguised_face:":"\u{1F978}",":diving_mask:":"\u{1F93F}",":diya_lamp:":"\u{1FA94}",":dizzy:":"\u{1F4AB}",":dizzy_face:":"\u{1F635}",":djibouti:":"\u{1F1E9}\u200D\u{1F1EF}",":dna:":"\u{1F9EC}",":do_not_litter:":"\u{1F6AF}",":dodo:":"\u{1F9A4}",":dog:":"\u{1F436}",":dog2:":"\u{1F415}",":dollar:":"\u{1F4B5}",":dolls:":"\u{1F38E}",":dolphin:":"\u{1F42C}",":dominica:":"\u{1F1E9}\u200D\u{1F1F2}",":dominican_republic:":"\u{1F1E9}\u200D\u{1F1F4}",":door:":"\u{1F6AA}",":doughnut:":"\u{1F369}",":dove:":"\u{1F54A}",":dragon:":"\u{1F409}",":dragon_face:":"\u{1F432}",":dress:":"\u{1F457}",":dromedary_camel:":"\u{1F42A}",":drooling_face:":"\u{1F924}",":drop_of_blood:":"\u{1FA78}",":droplet:":"\u{1F4A7}",":drum:":"\u{1F941}",":duck:":"\u{1F986}",":dumpling:":"\u{1F95F}",":dvd:":"\u{1F4C0}",":e-mail:":"\u{1F4E7}",":eagle:":"\u{1F985}",":ear:":"\u{1F442}",":ear_of_rice:":"\u{1F33E}",":ear_with_hearing_aid:":"\u{1F9BB}",":earth_africa:":"\u{1F30D}",":earth_americas:":"\u{1F30E}",":earth_asia:":"\u{1F30F}",":ecuador:":"\u{1F1EA}\u200D\u{1F1E8}",":egg:":"\u{1F95A}",":eggplant:":"\u{1F346}",":egypt:":"\u{1F1EA}\u200D\u{1F1EC}",":eight:":"8\u200D\u20E3",":eight_pointed_black_star:":"\u2734",":eight_spoked_asterisk:":"\u2733",":eject_button:":"\u23CF",":el_salvador:":"\u{1F1F8}\u200D\u{1F1FB}",":electric_plug:":"\u{1F50C}",":elephant:":"\u{1F418}",":elevator:":"\u{1F6D7}",":elf:":"\u{1F9DD}",":elf_man:":"\u{1F9DD}\u200D\u2642",":elf_woman:":"\u{1F9DD}\u200D\u2640",":email:":"\u{1F4E7}",":end:":"\u{1F51A}",":england:":"\u{1F3F4}\u200D\u{E0067}\u200D\u{E0062}\u200D\u{E0065}\u200D\u{E006E}\u200D\u{E0067}\u200D\u{E007F}",":envelope:":"\u2709",":envelope_with_arrow:":"\u{1F4E9}",":equatorial_guinea:":"\u{1F1EC}\u200D\u{1F1F6}",":eritrea:":"\u{1F1EA}\u200D\u{1F1F7}",":es:":"\u{1F1EA}\u200D\u{1F1F8}",":estonia:":"\u{1F1EA}\u200D\u{1F1EA}",":ethiopia:":"\u{1F1EA}\u200D\u{1F1F9}",":eu:":"\u{1F1EA}\u200D\u{1F1FA}",":euro:":"\u{1F4B6}",":european_castle:":"\u{1F3F0}",":european_post_office:":"\u{1F3E4}",":european_union:":"\u{1F1EA}\u200D\u{1F1FA}",":evergreen_tree:":"\u{1F332}",":exclamation:":"\u2757",":exploding_head:":"\u{1F92F}",":expressionless:":"\u{1F611}",":eye:":"\u{1F441}",":eye_speech_bubble:":"\u{1F441}\u200D\u{1F5E8}",":eyeglasses:":"\u{1F453}",":eyes:":"\u{1F440}",":face_exhaling:":"\u{1F62E}\u200D\u{1F4A8}",":face_in_clouds:":"\u{1F636}\u200D\u{1F32B}",":face_with_head_bandage:":"\u{1F915}",":face_with_spiral_eyes:":"\u{1F635}\u200D\u{1F4AB}",":face_with_thermometer:":"\u{1F912}",":facepalm:":"\u{1F926}",":facepunch:":"\u{1F44A}",":factory:":"\u{1F3ED}",":factory_worker:":"\u{1F9D1}\u200D\u{1F3ED}",":fairy:":"\u{1F9DA}",":fairy_man:":"\u{1F9DA}\u200D\u2642",":fairy_woman:":"\u{1F9DA}\u200D\u2640",":falafel:":"\u{1F9C6}",":falkland_islands:":"\u{1F1EB}\u200D\u{1F1F0}",":fallen_leaf:":"\u{1F342}",":family:":"\u{1F46A}",":family_man_boy:":"\u{1F468}\u200D\u{1F466}",":family_man_boy_boy:":"\u{1F468}\u200D\u{1F466}\u200D\u{1F466}",":family_man_girl:":"\u{1F468}\u200D\u{1F467}",":family_man_girl_boy:":"\u{1F468}\u200D\u{1F467}\u200D\u{1F466}",":family_man_girl_girl:":"\u{1F468}\u200D\u{1F467}\u200D\u{1F467}",":family_man_man_boy:":"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}",":family_man_man_boy_boy:":"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}\u200D\u{1F466}",":family_man_man_girl:":"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}",":family_man_man_girl_boy:":"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F466}",":family_man_man_girl_girl:":"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F467}",":family_man_woman_boy:":"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}",":family_man_woman_boy_boy:":"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",":family_man_woman_girl:":"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}",":family_man_woman_girl_boy:":"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",":family_man_woman_girl_girl:":"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",":family_woman_boy:":"\u{1F469}\u200D\u{1F466}",":family_woman_boy_boy:":"\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",":family_woman_girl:":"\u{1F469}\u200D\u{1F467}",":family_woman_girl_boy:":"\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",":family_woman_girl_girl:":"\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",":family_woman_woman_boy:":"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}",":family_woman_woman_boy_boy:":"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}",":family_woman_woman_girl:":"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}",":family_woman_woman_girl_boy:":"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}",":family_woman_woman_girl_girl:":"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}",":farmer:":"\u{1F9D1}\u200D\u{1F33E}",":faroe_islands:":"\u{1F1EB}\u200D\u{1F1F4}",":fast_forward:":"\u23E9",":fax:":"\u{1F4E0}",":fearful:":"\u{1F628}",":feather:":"\u{1FAB6}",":feet:":"\u{1F43E}",":female_detective:":"\u{1F575}\u200D\u2640",":female_sign:":"\u2640",":ferris_wheel:":"\u{1F3A1}",":ferry:":"\u26F4",":field_hockey:":"\u{1F3D1}",":fiji:":"\u{1F1EB}\u200D\u{1F1EF}",":file_cabinet:":"\u{1F5C4}",":file_folder:":"\u{1F4C1}",":film_projector:":"\u{1F4FD}",":film_strip:":"\u{1F39E}",":finland:":"\u{1F1EB}\u200D\u{1F1EE}",":fire:":"\u{1F525}",":fire_engine:":"\u{1F692}",":fire_extinguisher:":"\u{1F9EF}",":firecracker:":"\u{1F9E8}",":firefighter:":"\u{1F9D1}\u200D\u{1F692}",":fireworks:":"\u{1F386}",":first_quarter_moon:":"\u{1F313}",":first_quarter_moon_with_face:":"\u{1F31B}",":fish:":"\u{1F41F}",":fish_cake:":"\u{1F365}",":fishing_pole_and_fish:":"\u{1F3A3}",":fist:":"\u270A",":fist_left:":"\u{1F91B}",":fist_oncoming:":"\u{1F44A}",":fist_raised:":"\u270A",":fist_right:":"\u{1F91C}",":five:":"5\u200D\u20E3",":flags:":"\u{1F38F}",":flamingo:":"\u{1F9A9}",":flashlight:":"\u{1F526}",":flat_shoe:":"\u{1F97F}",":flatbread:":"\u{1FAD3}",":fleur_de_lis:":"\u269C",":flight_arrival:":"\u{1F6EC}",":flight_departure:":"\u{1F6EB}",":flipper:":"\u{1F42C}",":floppy_disk:":"\u{1F4BE}",":flower_playing_cards:":"\u{1F3B4}",":flushed:":"\u{1F633}",":fly:":"\u{1FAB0}",":flying_disc:":"\u{1F94F}",":flying_saucer:":"\u{1F6F8}",":fog:":"\u{1F32B}",":foggy:":"\u{1F301}",":fondue:":"\u{1FAD5}",":foot:":"\u{1F9B6}",":football:":"\u{1F3C8}",":footprints:":"\u{1F463}",":fork_and_knife:":"\u{1F374}",":fortune_cookie:":"\u{1F960}",":fountain:":"\u26F2",":fountain_pen:":"\u{1F58B}",":four:":"4\u200D\u20E3",":four_leaf_clover:":"\u{1F340}",":fox_face:":"\u{1F98A}",":fr:":"\u{1F1EB}\u200D\u{1F1F7}",":framed_picture:":"\u{1F5BC}",":free:":"\u{1F193}",":french_guiana:":"\u{1F1EC}\u200D\u{1F1EB}",":french_polynesia:":"\u{1F1F5}\u200D\u{1F1EB}",":french_southern_territories:":"\u{1F1F9}\u200D\u{1F1EB}",":fried_egg:":"\u{1F373}",":fried_shrimp:":"\u{1F364}",":fries:":"\u{1F35F}",":frog:":"\u{1F438}",":frowning:":"\u{1F626}",":frowning_face:":"\u2639",":frowning_man:":"\u{1F64D}\u200D\u2642",":frowning_person:":"\u{1F64D}",":frowning_woman:":"\u{1F64D}\u200D\u2640",":fu:":"\u{1F595}",":fuelpump:":"\u26FD",":full_moon:":"\u{1F315}",":full_moon_with_face:":"\u{1F31D}",":funeral_urn:":"\u26B1",":gabon:":"\u{1F1EC}\u200D\u{1F1E6}",":gambia:":"\u{1F1EC}\u200D\u{1F1F2}",":game_die:":"\u{1F3B2}",":garlic:":"\u{1F9C4}",":gb:":"\u{1F1EC}\u200D\u{1F1E7}",":gear:":"\u2699",":gem:":"\u{1F48E}",":gemini:":"\u264A",":genie:":"\u{1F9DE}",":genie_man:":"\u{1F9DE}\u200D\u2642",":genie_woman:":"\u{1F9DE}\u200D\u2640",":georgia:":"\u{1F1EC}\u200D\u{1F1EA}",":ghana:":"\u{1F1EC}\u200D\u{1F1ED}",":ghost:":"\u{1F47B}",":gibraltar:":"\u{1F1EC}\u200D\u{1F1EE}",":gift:":"\u{1F381}",":gift_heart:":"\u{1F49D}",":giraffe:":"\u{1F992}",":girl:":"\u{1F467}",":globe_with_meridians:":"\u{1F310}",":gloves:":"\u{1F9E4}",":goal_net:":"\u{1F945}",":goat:":"\u{1F410}",":goggles:":"\u{1F97D}",":golf:":"\u26F3",":golfing:":"\u{1F3CC}",":golfing_man:":"\u{1F3CC}\u200D\u2642",":golfing_woman:":"\u{1F3CC}\u200D\u2640",":gorilla:":"\u{1F98D}",":grapes:":"\u{1F347}",":greece:":"\u{1F1EC}\u200D\u{1F1F7}",":green_apple:":"\u{1F34F}",":green_book:":"\u{1F4D7}",":green_circle:":"\u{1F7E2}",":green_heart:":"\u{1F49A}",":green_salad:":"\u{1F957}",":green_square:":"\u{1F7E9}",":greenland:":"\u{1F1EC}\u200D\u{1F1F1}",":grenada:":"\u{1F1EC}\u200D\u{1F1E9}",":grey_exclamation:":"\u2755",":grey_question:":"\u2754",":grimacing:":"\u{1F62C}",":grin:":"\u{1F601}",":grinning:":"\u{1F600}",":guadeloupe:":"\u{1F1EC}\u200D\u{1F1F5}",":guam:":"\u{1F1EC}\u200D\u{1F1FA}",":guard:":"\u{1F482}",":guardsman:":"\u{1F482}\u200D\u2642",":guardswoman:":"\u{1F482}\u200D\u2640",":guatemala:":"\u{1F1EC}\u200D\u{1F1F9}",":guernsey:":"\u{1F1EC}\u200D\u{1F1EC}",":guide_dog:":"\u{1F9AE}",":guinea:":"\u{1F1EC}\u200D\u{1F1F3}",":guinea_bissau:":"\u{1F1EC}\u200D\u{1F1FC}",":guitar:":"\u{1F3B8}",":gun:":"\u{1F52B}",":guyana:":"\u{1F1EC}\u200D\u{1F1FE}",":haircut:":"\u{1F487}",":haircut_man:":"\u{1F487}\u200D\u2642",":haircut_woman:":"\u{1F487}\u200D\u2640",":haiti:":"\u{1F1ED}\u200D\u{1F1F9}",":hamburger:":"\u{1F354}",":hammer:":"\u{1F528}",":hammer_and_pick:":"\u2692",":hammer_and_wrench:":"\u{1F6E0}",":hamster:":"\u{1F439}",":hand:":"\u270B",":hand_over_mouth:":"\u{1F92D}",":handbag:":"\u{1F45C}",":handball_person:":"\u{1F93E}",":handshake:":"\u{1F91D}",":hankey:":"\u{1F4A9}",":hash:":"#\u200D\u20E3",":hatched_chick:":"\u{1F425}",":hatching_chick:":"\u{1F423}",":headphones:":"\u{1F3A7}",":headstone:":"\u{1FAA6}",":health_worker:":"\u{1F9D1}\u200D\u2695",":hear_no_evil:":"\u{1F649}",":heard_mcdonald_islands:":"\u{1F1ED}\u200D\u{1F1F2}",":heart:":"\u2764",":heart_decoration:":"\u{1F49F}",":heart_eyes:":"\u{1F60D}",":heart_eyes_cat:":"\u{1F63B}",":heart_on_fire:":"\u2764\u200D\u{1F525}",":heartbeat:":"\u{1F493}",":heartpulse:":"\u{1F497}",":hearts:":"\u2665",":heavy_check_mark:":"\u2714",":heavy_division_sign:":"\u2797",":heavy_dollar_sign:":"\u{1F4B2}",":heavy_exclamation_mark:":"\u2757",":heavy_heart_exclamation:":"\u2763",":heavy_minus_sign:":"\u2796",":heavy_multiplication_x:":"\u2716",":heavy_plus_sign:":"\u2795",":hedgehog:":"\u{1F994}",":helicopter:":"\u{1F681}",":herb:":"\u{1F33F}",":hibiscus:":"\u{1F33A}",":high_brightness:":"\u{1F506}",":high_heel:":"\u{1F460}",":hiking_boot:":"\u{1F97E}",":hindu_temple:":"\u{1F6D5}",":hippopotamus:":"\u{1F99B}",":hocho:":"\u{1F52A}",":hole:":"\u{1F573}",":honduras:":"\u{1F1ED}\u200D\u{1F1F3}",":honey_pot:":"\u{1F36F}",":honeybee:":"\u{1F41D}",":hong_kong:":"\u{1F1ED}\u200D\u{1F1F0}",":hook:":"\u{1FA9D}",":horse:":"\u{1F434}",":horse_racing:":"\u{1F3C7}",":hospital:":"\u{1F3E5}",":hot_face:":"\u{1F975}",":hot_pepper:":"\u{1F336}",":hotdog:":"\u{1F32D}",":hotel:":"\u{1F3E8}",":hotsprings:":"\u2668",":hourglass:":"\u231B",":hourglass_flowing_sand:":"\u23F3",":house:":"\u{1F3E0}",":house_with_garden:":"\u{1F3E1}",":houses:":"\u{1F3D8}",":hugs:":"\u{1F917}",":hungary:":"\u{1F1ED}\u200D\u{1F1FA}",":hushed:":"\u{1F62F}",":hut:":"\u{1F6D6}",":ice_cream:":"\u{1F368}",":ice_cube:":"\u{1F9CA}",":ice_hockey:":"\u{1F3D2}",":ice_skate:":"\u26F8",":icecream:":"\u{1F366}",":iceland:":"\u{1F1EE}\u200D\u{1F1F8}",":id:":"\u{1F194}",":ideograph_advantage:":"\u{1F250}",":imp:":"\u{1F47F}",":inbox_tray:":"\u{1F4E5}",":incoming_envelope:":"\u{1F4E8}",":india:":"\u{1F1EE}\u200D\u{1F1F3}",":indonesia:":"\u{1F1EE}\u200D\u{1F1E9}",":infinity:":"\u267E",":information_desk_person:":"\u{1F481}",":information_source:":"\u2139",":innocent:":"\u{1F607}",":interrobang:":"\u2049",":iphone:":"\u{1F4F1}",":iran:":"\u{1F1EE}\u200D\u{1F1F7}",":iraq:":"\u{1F1EE}\u200D\u{1F1F6}",":ireland:":"\u{1F1EE}\u200D\u{1F1EA}",":isle_of_man:":"\u{1F1EE}\u200D\u{1F1F2}",":israel:":"\u{1F1EE}\u200D\u{1F1F1}",":it:":"\u{1F1EE}\u200D\u{1F1F9}",":izakaya_lantern:":"\u{1F3EE}",":jack_o_lantern:":"\u{1F383}",":jamaica:":"\u{1F1EF}\u200D\u{1F1F2}",":japan:":"\u{1F5FE}",":japanese_castle:":"\u{1F3EF}",":japanese_goblin:":"\u{1F47A}",":japanese_ogre:":"\u{1F479}",":jeans:":"\u{1F456}",":jersey:":"\u{1F1EF}\u200D\u{1F1EA}",":jigsaw:":"\u{1F9E9}",":jordan:":"\u{1F1EF}\u200D\u{1F1F4}",":joy:":"\u{1F602}",":joy_cat:":"\u{1F639}",":joystick:":"\u{1F579}",":jp:":"\u{1F1EF}\u200D\u{1F1F5}",":judge:":"\u{1F9D1}\u200D\u2696",":juggling_person:":"\u{1F939}",":kaaba:":"\u{1F54B}",":kangaroo:":"\u{1F998}",":kazakhstan:":"\u{1F1F0}\u200D\u{1F1FF}",":kenya:":"\u{1F1F0}\u200D\u{1F1EA}",":key:":"\u{1F511}",":keyboard:":"\u2328",":keycap_ten:":"\u{1F51F}",":kick_scooter:":"\u{1F6F4}",":kimono:":"\u{1F458}",":kiribati:":"\u{1F1F0}\u200D\u{1F1EE}",":kiss:":"\u{1F48B}",":kissing:":"\u{1F617}",":kissing_cat:":"\u{1F63D}",":kissing_closed_eyes:":"\u{1F61A}",":kissing_heart:":"\u{1F618}",":kissing_smiling_eyes:":"\u{1F619}",":kite:":"\u{1FA81}",":kiwi_fruit:":"\u{1F95D}",":kneeling_man:":"\u{1F9CE}\u200D\u2642",":kneeling_person:":"\u{1F9CE}",":kneeling_woman:":"\u{1F9CE}\u200D\u2640",":knife:":"\u{1F52A}",":knot:":"\u{1FAA2}",":koala:":"\u{1F428}",":koko:":"\u{1F201}",":kosovo:":"\u{1F1FD}\u200D\u{1F1F0}",":kr:":"\u{1F1F0}\u200D\u{1F1F7}",":kuwait:":"\u{1F1F0}\u200D\u{1F1FC}",":kyrgyzstan:":"\u{1F1F0}\u200D\u{1F1EC}",":lab_coat:":"\u{1F97C}",":label:":"\u{1F3F7}",":lacrosse:":"\u{1F94D}",":ladder:":"\u{1FA9C}",":lady_beetle:":"\u{1F41E}",":lantern:":"\u{1F3EE}",":laos:":"\u{1F1F1}\u200D\u{1F1E6}",":large_blue_circle:":"\u{1F535}",":large_blue_diamond:":"\u{1F537}",":large_orange_diamond:":"\u{1F536}",":last_quarter_moon:":"\u{1F317}",":last_quarter_moon_with_face:":"\u{1F31C}",":latin_cross:":"\u271D",":latvia:":"\u{1F1F1}\u200D\u{1F1FB}",":laughing:":"\u{1F606}",":leafy_green:":"\u{1F96C}",":leaves:":"\u{1F343}",":lebanon:":"\u{1F1F1}\u200D\u{1F1E7}",":ledger:":"\u{1F4D2}",":left_luggage:":"\u{1F6C5}",":left_right_arrow:":"\u2194",":left_speech_bubble:":"\u{1F5E8}",":leftwards_arrow_with_hook:":"\u21A9",":leg:":"\u{1F9B5}",":lemon:":"\u{1F34B}",":leo:":"\u264C",":leopard:":"\u{1F406}",":lesotho:":"\u{1F1F1}\u200D\u{1F1F8}",":level_slider:":"\u{1F39A}",":liberia:":"\u{1F1F1}\u200D\u{1F1F7}",":libra:":"\u264E",":libya:":"\u{1F1F1}\u200D\u{1F1FE}",":liechtenstein:":"\u{1F1F1}\u200D\u{1F1EE}",":light_rail:":"\u{1F688}",":link:":"\u{1F517}",":lion:":"\u{1F981}",":lips:":"\u{1F444}",":lipstick:":"\u{1F484}",":lithuania:":"\u{1F1F1}\u200D\u{1F1F9}",":lizard:":"\u{1F98E}",":llama:":"\u{1F999}",":lobster:":"\u{1F99E}",":lock:":"\u{1F512}",":lock_with_ink_pen:":"\u{1F50F}",":lollipop:":"\u{1F36D}",":long_drum:":"\u{1FA98}",":loop:":"\u27BF",":lotion_bottle:":"\u{1F9F4}",":lotus_position:":"\u{1F9D8}",":lotus_position_man:":"\u{1F9D8}\u200D\u2642",":lotus_position_woman:":"\u{1F9D8}\u200D\u2640",":loud_sound:":"\u{1F50A}",":loudspeaker:":"\u{1F4E2}",":love_hotel:":"\u{1F3E9}",":love_letter:":"\u{1F48C}",":love_you_gesture:":"\u{1F91F}",":low_brightness:":"\u{1F505}",":luggage:":"\u{1F9F3}",":lungs:":"\u{1FAC1}",":luxembourg:":"\u{1F1F1}\u200D\u{1F1FA}",":lying_face:":"\u{1F925}",":m:":"\u24C2",":macau:":"\u{1F1F2}\u200D\u{1F1F4}",":macedonia:":"\u{1F1F2}\u200D\u{1F1F0}",":madagascar:":"\u{1F1F2}\u200D\u{1F1EC}",":mag:":"\u{1F50D}",":mag_right:":"\u{1F50E}",":mage:":"\u{1F9D9}",":mage_man:":"\u{1F9D9}\u200D\u2642",":mage_woman:":"\u{1F9D9}\u200D\u2640",":magic_wand:":"\u{1FA84}",":magnet:":"\u{1F9F2}",":mahjong:":"\u{1F004}",":mailbox:":"\u{1F4EB}",":mailbox_closed:":"\u{1F4EA}",":mailbox_with_mail:":"\u{1F4EC}",":mailbox_with_no_mail:":"\u{1F4ED}",":malawi:":"\u{1F1F2}\u200D\u{1F1FC}",":malaysia:":"\u{1F1F2}\u200D\u{1F1FE}",":maldives:":"\u{1F1F2}\u200D\u{1F1FB}",":male_detective:":"\u{1F575}\u200D\u2642",":male_sign:":"\u2642",":mali:":"\u{1F1F2}\u200D\u{1F1F1}",":malta:":"\u{1F1F2}\u200D\u{1F1F9}",":mammoth:":"\u{1F9A3}",":man:":"\u{1F468}",":man_artist:":"\u{1F468}\u200D\u{1F3A8}",":man_astronaut:":"\u{1F468}\u200D\u{1F680}",":man_beard:":"\u{1F9D4}\u200D\u2642",":man_cartwheeling:":"\u{1F938}\u200D\u2642",":man_cook:":"\u{1F468}\u200D\u{1F373}",":man_dancing:":"\u{1F57A}",":man_facepalming:":"\u{1F926}\u200D\u2642",":man_factory_worker:":"\u{1F468}\u200D\u{1F3ED}",":man_farmer:":"\u{1F468}\u200D\u{1F33E}",":man_feeding_baby:":"\u{1F468}\u200D\u{1F37C}",":man_firefighter:":"\u{1F468}\u200D\u{1F692}",":man_health_worker:":"\u{1F468}\u200D\u2695",":man_in_manual_wheelchair:":"\u{1F468}\u200D\u{1F9BD}",":man_in_motorized_wheelchair:":"\u{1F468}\u200D\u{1F9BC}",":man_in_tuxedo:":"\u{1F935}\u200D\u2642",":man_judge:":"\u{1F468}\u200D\u2696",":man_juggling:":"\u{1F939}\u200D\u2642",":man_mechanic:":"\u{1F468}\u200D\u{1F527}",":man_office_worker:":"\u{1F468}\u200D\u{1F4BC}",":man_pilot:":"\u{1F468}\u200D\u2708",":man_playing_handball:":"\u{1F93E}\u200D\u2642",":man_playing_water_polo:":"\u{1F93D}\u200D\u2642",":man_scientist:":"\u{1F468}\u200D\u{1F52C}",":man_shrugging:":"\u{1F937}\u200D\u2642",":man_singer:":"\u{1F468}\u200D\u{1F3A4}",":man_student:":"\u{1F468}\u200D\u{1F393}",":man_teacher:":"\u{1F468}\u200D\u{1F3EB}",":man_technologist:":"\u{1F468}\u200D\u{1F4BB}",":man_with_gua_pi_mao:":"\u{1F472}",":man_with_probing_cane:":"\u{1F468}\u200D\u{1F9AF}",":man_with_turban:":"\u{1F473}\u200D\u2642",":man_with_veil:":"\u{1F470}\u200D\u2642",":mandarin:":"\u{1F34A}",":mango:":"\u{1F96D}",":mans_shoe:":"\u{1F45E}",":mantelpiece_clock:":"\u{1F570}",":manual_wheelchair:":"\u{1F9BD}",":maple_leaf:":"\u{1F341}",":marshall_islands:":"\u{1F1F2}\u200D\u{1F1ED}",":martial_arts_uniform:":"\u{1F94B}",":martinique:":"\u{1F1F2}\u200D\u{1F1F6}",":mask:":"\u{1F637}",":massage:":"\u{1F486}",":massage_man:":"\u{1F486}\u200D\u2642",":massage_woman:":"\u{1F486}\u200D\u2640",":mate:":"\u{1F9C9}",":mauritania:":"\u{1F1F2}\u200D\u{1F1F7}",":mauritius:":"\u{1F1F2}\u200D\u{1F1FA}",":mayotte:":"\u{1F1FE}\u200D\u{1F1F9}",":meat_on_bone:":"\u{1F356}",":mechanic:":"\u{1F9D1}\u200D\u{1F527}",":mechanical_arm:":"\u{1F9BE}",":mechanical_leg:":"\u{1F9BF}",":medal_military:":"\u{1F396}",":medal_sports:":"\u{1F3C5}",":medical_symbol:":"\u2695",":mega:":"\u{1F4E3}",":melon:":"\u{1F348}",":memo:":"\u{1F4DD}",":men_wrestling:":"\u{1F93C}\u200D\u2642",":mending_heart:":"\u2764\u200D\u{1FA79}",":menorah:":"\u{1F54E}",":mens:":"\u{1F6B9}",":mermaid:":"\u{1F9DC}\u200D\u2640",":merman:":"\u{1F9DC}\u200D\u2642",":merperson:":"\u{1F9DC}",":metal:":"\u{1F918}",":metro:":"\u{1F687}",":mexico:":"\u{1F1F2}\u200D\u{1F1FD}",":microbe:":"\u{1F9A0}",":micronesia:":"\u{1F1EB}\u200D\u{1F1F2}",":microphone:":"\u{1F3A4}",":microscope:":"\u{1F52C}",":middle_finger:":"\u{1F595}",":military_helmet:":"\u{1FA96}",":milk_glass:":"\u{1F95B}",":milky_way:":"\u{1F30C}",":minibus:":"\u{1F690}",":minidisc:":"\u{1F4BD}",":mirror:":"\u{1FA9E}",":mobile_phone_off:":"\u{1F4F4}",":moldova:":"\u{1F1F2}\u200D\u{1F1E9}",":monaco:":"\u{1F1F2}\u200D\u{1F1E8}",":money_mouth_face:":"\u{1F911}",":money_with_wings:":"\u{1F4B8}",":moneybag:":"\u{1F4B0}",":mongolia:":"\u{1F1F2}\u200D\u{1F1F3}",":monkey:":"\u{1F412}",":monkey_face:":"\u{1F435}",":monocle_face:":"\u{1F9D0}",":monorail:":"\u{1F69D}",":montenegro:":"\u{1F1F2}\u200D\u{1F1EA}",":montserrat:":"\u{1F1F2}\u200D\u{1F1F8}",":moon:":"\u{1F314}",":moon_cake:":"\u{1F96E}",":morocco:":"\u{1F1F2}\u200D\u{1F1E6}",":mortar_board:":"\u{1F393}",":mosque:":"\u{1F54C}",":mosquito:":"\u{1F99F}",":motor_boat:":"\u{1F6E5}",":motor_scooter:":"\u{1F6F5}",":motorcycle:":"\u{1F3CD}",":motorized_wheelchair:":"\u{1F9BC}",":motorway:":"\u{1F6E3}",":mount_fuji:":"\u{1F5FB}",":mountain:":"\u26F0",":mountain_bicyclist:":"\u{1F6B5}",":mountain_biking_man:":"\u{1F6B5}\u200D\u2642",":mountain_biking_woman:":"\u{1F6B5}\u200D\u2640",":mountain_cableway:":"\u{1F6A0}",":mountain_railway:":"\u{1F69E}",":mountain_snow:":"\u{1F3D4}",":mouse:":"\u{1F42D}",":mouse2:":"\u{1F401}",":mouse_trap:":"\u{1FAA4}",":movie_camera:":"\u{1F3A5}",":moyai:":"\u{1F5FF}",":mozambique:":"\u{1F1F2}\u200D\u{1F1FF}",":mrs_claus:":"\u{1F936}",":muscle:":"\u{1F4AA}",":mushroom:":"\u{1F344}",":musical_keyboard:":"\u{1F3B9}",":musical_note:":"\u{1F3B5}",":musical_score:":"\u{1F3BC}",":mute:":"\u{1F507}",":mx_claus:":"\u{1F9D1}\u200D\u{1F384}",":myanmar:":"\u{1F1F2}\u200D\u{1F1F2}",":nail_care:":"\u{1F485}",":name_badge:":"\u{1F4DB}",":namibia:":"\u{1F1F3}\u200D\u{1F1E6}",":national_park:":"\u{1F3DE}",":nauru:":"\u{1F1F3}\u200D\u{1F1F7}",":nauseated_face:":"\u{1F922}",":nazar_amulet:":"\u{1F9FF}",":necktie:":"\u{1F454}",":negative_squared_cross_mark:":"\u274E",":nepal:":"\u{1F1F3}\u200D\u{1F1F5}",":nerd_face:":"\u{1F913}",":nesting_dolls:":"\u{1FA86}",":netherlands:":"\u{1F1F3}\u200D\u{1F1F1}",":neutral_face:":"\u{1F610}",":new:":"\u{1F195}",":new_caledonia:":"\u{1F1F3}\u200D\u{1F1E8}",":new_moon:":"\u{1F311}",":new_moon_with_face:":"\u{1F31A}",":new_zealand:":"\u{1F1F3}\u200D\u{1F1FF}",":newspaper:":"\u{1F4F0}",":newspaper_roll:":"\u{1F5DE}",":next_track_button:":"\u23ED",":ng:":"\u{1F196}",":ng_man:":"\u{1F645}\u200D\u2642",":ng_woman:":"\u{1F645}\u200D\u2640",":nicaragua:":"\u{1F1F3}\u200D\u{1F1EE}",":niger:":"\u{1F1F3}\u200D\u{1F1EA}",":nigeria:":"\u{1F1F3}\u200D\u{1F1EC}",":night_with_stars:":"\u{1F303}",":nine:":"9\u200D\u20E3",":ninja:":"\u{1F977}",":niue:":"\u{1F1F3}\u200D\u{1F1FA}",":no_bell:":"\u{1F515}",":no_bicycles:":"\u{1F6B3}",":no_entry:":"\u26D4",":no_entry_sign:":"\u{1F6AB}",":no_good:":"\u{1F645}",":no_good_man:":"\u{1F645}\u200D\u2642",":no_good_woman:":"\u{1F645}\u200D\u2640",":no_mobile_phones:":"\u{1F4F5}",":no_mouth:":"\u{1F636}",":no_pedestrians:":"\u{1F6B7}",":no_smoking:":"\u{1F6AD}",":non-potable_water:":"\u{1F6B1}",":norfolk_island:":"\u{1F1F3}\u200D\u{1F1EB}",":north_korea:":"\u{1F1F0}\u200D\u{1F1F5}",":northern_mariana_islands:":"\u{1F1F2}\u200D\u{1F1F5}",":norway:":"\u{1F1F3}\u200D\u{1F1F4}",":nose:":"\u{1F443}",":notebook:":"\u{1F4D3}",":notebook_with_decorative_cover:":"\u{1F4D4}",":notes:":"\u{1F3B6}",":nut_and_bolt:":"\u{1F529}",":o:":"\u2B55",":o2:":"\u{1F17E}",":ocean:":"\u{1F30A}",":octopus:":"\u{1F419}",":oden:":"\u{1F362}",":office:":"\u{1F3E2}",":office_worker:":"\u{1F9D1}\u200D\u{1F4BC}",":oil_drum:":"\u{1F6E2}",":ok:":"\u{1F197}",":ok_hand:":"\u{1F44C}",":ok_man:":"\u{1F646}\u200D\u2642",":ok_person:":"\u{1F646}",":ok_woman:":"\u{1F646}\u200D\u2640",":old_key:":"\u{1F5DD}",":older_adult:":"\u{1F9D3}",":older_man:":"\u{1F474}",":older_woman:":"\u{1F475}",":olive:":"\u{1FAD2}",":om:":"\u{1F549}",":oman:":"\u{1F1F4}\u200D\u{1F1F2}",":on:":"\u{1F51B}",":oncoming_automobile:":"\u{1F698}",":oncoming_bus:":"\u{1F68D}",":oncoming_police_car:":"\u{1F694}",":oncoming_taxi:":"\u{1F696}",":one:":"1\u200D\u20E3",":one_piece_swimsuit:":"\u{1FA71}",":onion:":"\u{1F9C5}",":open_book:":"\u{1F4D6}",":open_file_folder:":"\u{1F4C2}",":open_hands:":"\u{1F450}",":open_mouth:":"\u{1F62E}",":open_umbrella:":"\u2602",":ophiuchus:":"\u26CE",":orange:":"\u{1F34A}",":orange_book:":"\u{1F4D9}",":orange_circle:":"\u{1F7E0}",":orange_heart:":"\u{1F9E1}",":orange_square:":"\u{1F7E7}",":orangutan:":"\u{1F9A7}",":orthodox_cross:":"\u2626",":otter:":"\u{1F9A6}",":outbox_tray:":"\u{1F4E4}",":owl:":"\u{1F989}",":ox:":"\u{1F402}",":oyster:":"\u{1F9AA}",":package:":"\u{1F4E6}",":page_facing_up:":"\u{1F4C4}",":page_with_curl:":"\u{1F4C3}",":pager:":"\u{1F4DF}",":paintbrush:":"\u{1F58C}",":pakistan:":"\u{1F1F5}\u200D\u{1F1F0}",":palau:":"\u{1F1F5}\u200D\u{1F1FC}",":palestinian_territories:":"\u{1F1F5}\u200D\u{1F1F8}",":palm_tree:":"\u{1F334}",":palms_up_together:":"\u{1F932}",":panama:":"\u{1F1F5}\u200D\u{1F1E6}",":pancakes:":"\u{1F95E}",":panda_face:":"\u{1F43C}",":paperclip:":"\u{1F4CE}",":paperclips:":"\u{1F587}",":papua_new_guinea:":"\u{1F1F5}\u200D\u{1F1EC}",":parachute:":"\u{1FA82}",":paraguay:":"\u{1F1F5}\u200D\u{1F1FE}",":parasol_on_ground:":"\u26F1",":parking:":"\u{1F17F}",":parrot:":"\u{1F99C}",":part_alternation_mark:":"\u303D",":partly_sunny:":"\u26C5",":partying_face:":"\u{1F973}",":passenger_ship:":"\u{1F6F3}",":passport_control:":"\u{1F6C2}",":pause_button:":"\u23F8",":paw_prints:":"\u{1F43E}",":peace_symbol:":"\u262E",":peach:":"\u{1F351}",":peacock:":"\u{1F99A}",":peanuts:":"\u{1F95C}",":pear:":"\u{1F350}",":pen:":"\u{1F58A}",":pencil:":"\u{1F4DD}",":pencil2:":"\u270F",":penguin:":"\u{1F427}",":pensive:":"\u{1F614}",":people_holding_hands:":"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}",":people_hugging:":"\u{1FAC2}",":performing_arts:":"\u{1F3AD}",":persevere:":"\u{1F623}",":person_bald:":"\u{1F9D1}\u200D\u{1F9B2}",":person_curly_hair:":"\u{1F9D1}\u200D\u{1F9B1}",":person_feeding_baby:":"\u{1F9D1}\u200D\u{1F37C}",":person_fencing:":"\u{1F93A}",":person_in_manual_wheelchair:":"\u{1F9D1}\u200D\u{1F9BD}",":person_in_motorized_wheelchair:":"\u{1F9D1}\u200D\u{1F9BC}",":person_in_tuxedo:":"\u{1F935}",":person_red_hair:":"\u{1F9D1}\u200D\u{1F9B0}",":person_white_hair:":"\u{1F9D1}\u200D\u{1F9B3}",":person_with_probing_cane:":"\u{1F9D1}\u200D\u{1F9AF}",":person_with_turban:":"\u{1F473}",":person_with_veil:":"\u{1F470}",":peru:":"\u{1F1F5}\u200D\u{1F1EA}",":petri_dish:":"\u{1F9EB}",":philippines:":"\u{1F1F5}\u200D\u{1F1ED}",":phone:":"\u260E",":pick:":"\u26CF",":pickup_truck:":"\u{1F6FB}",":pie:":"\u{1F967}",":pig:":"\u{1F437}",":pig2:":"\u{1F416}",":pig_nose:":"\u{1F43D}",":pill:":"\u{1F48A}",":pilot:":"\u{1F9D1}\u200D\u2708",":pinata:":"\u{1FA85}",":pinched_fingers:":"\u{1F90C}",":pinching_hand:":"\u{1F90F}",":pineapple:":"\u{1F34D}",":ping_pong:":"\u{1F3D3}",":pirate_flag:":"\u{1F3F4}\u200D\u2620",":pisces:":"\u2653",":pitcairn_islands:":"\u{1F1F5}\u200D\u{1F1F3}",":pizza:":"\u{1F355}",":placard:":"\u{1FAA7}",":place_of_worship:":"\u{1F6D0}",":plate_with_cutlery:":"\u{1F37D}",":play_or_pause_button:":"\u23EF",":pleading_face:":"\u{1F97A}",":plunger:":"\u{1FAA0}",":point_down:":"\u{1F447}",":point_left:":"\u{1F448}",":point_right:":"\u{1F449}",":point_up:":"\u261D",":point_up_2:":"\u{1F446}",":poland:":"\u{1F1F5}\u200D\u{1F1F1}",":polar_bear:":"\u{1F43B}\u200D\u2744",":police_car:":"\u{1F693}",":police_officer:":"\u{1F46E}",":policeman:":"\u{1F46E}\u200D\u2642",":policewoman:":"\u{1F46E}\u200D\u2640",":poodle:":"\u{1F429}",":poop:":"\u{1F4A9}",":popcorn:":"\u{1F37F}",":portugal:":"\u{1F1F5}\u200D\u{1F1F9}",":post_office:":"\u{1F3E3}",":postal_horn:":"\u{1F4EF}",":postbox:":"\u{1F4EE}",":potable_water:":"\u{1F6B0}",":potato:":"\u{1F954}",":potted_plant:":"\u{1FAB4}",":pouch:":"\u{1F45D}",":poultry_leg:":"\u{1F357}",":pound:":"\u{1F4B7}",":pout:":"\u{1F621}",":pouting_cat:":"\u{1F63E}",":pouting_face:":"\u{1F64E}",":pouting_man:":"\u{1F64E}\u200D\u2642",":pouting_woman:":"\u{1F64E}\u200D\u2640",":pray:":"\u{1F64F}",":prayer_beads:":"\u{1F4FF}",":pregnant_woman:":"\u{1F930}",":pretzel:":"\u{1F968}",":previous_track_button:":"\u23EE",":prince:":"\u{1F934}",":princess:":"\u{1F478}",":printer:":"\u{1F5A8}",":probing_cane:":"\u{1F9AF}",":puerto_rico:":"\u{1F1F5}\u200D\u{1F1F7}",":punch:":"\u{1F44A}",":purple_circle:":"\u{1F7E3}",":purple_heart:":"\u{1F49C}",":purple_square:":"\u{1F7EA}",":purse:":"\u{1F45B}",":pushpin:":"\u{1F4CC}",":put_litter_in_its_place:":"\u{1F6AE}",":qatar:":"\u{1F1F6}\u200D\u{1F1E6}",":question:":"\u2753",":rabbit:":"\u{1F430}",":rabbit2:":"\u{1F407}",":raccoon:":"\u{1F99D}",":racehorse:":"\u{1F40E}",":racing_car:":"\u{1F3CE}",":radio:":"\u{1F4FB}",":radio_button:":"\u{1F518}",":radioactive:":"\u2622",":rage:":"\u{1F621}",":railway_car:":"\u{1F683}",":railway_track:":"\u{1F6E4}",":rainbow:":"\u{1F308}",":rainbow_flag:":"\u{1F3F3}\u200D\u{1F308}",":raised_back_of_hand:":"\u{1F91A}",":raised_eyebrow:":"\u{1F928}",":raised_hand:":"\u270B",":raised_hand_with_fingers_splayed:":"\u{1F590}",":raised_hands:":"\u{1F64C}",":raising_hand:":"\u{1F64B}",":raising_hand_man:":"\u{1F64B}\u200D\u2642",":raising_hand_woman:":"\u{1F64B}\u200D\u2640",":ram:":"\u{1F40F}",":ramen:":"\u{1F35C}",":rat:":"\u{1F400}",":razor:":"\u{1FA92}",":receipt:":"\u{1F9FE}",":record_button:":"\u23FA",":recycle:":"\u267B",":red_car:":"\u{1F697}",":red_circle:":"\u{1F534}",":red_envelope:":"\u{1F9E7}",":red_haired_man:":"\u{1F468}\u200D\u{1F9B0}",":red_haired_woman:":"\u{1F469}\u200D\u{1F9B0}",":red_square:":"\u{1F7E5}",":registered:":"\xAE",":relaxed:":"\u263A",":relieved:":"\u{1F60C}",":reminder_ribbon:":"\u{1F397}",":repeat:":"\u{1F501}",":repeat_one:":"\u{1F502}",":rescue_worker_helmet:":"\u26D1",":restroom:":"\u{1F6BB}",":reunion:":"\u{1F1F7}\u200D\u{1F1EA}",":revolving_hearts:":"\u{1F49E}",":rewind:":"\u23EA",":rhinoceros:":"\u{1F98F}",":ribbon:":"\u{1F380}",":rice:":"\u{1F35A}",":rice_ball:":"\u{1F359}",":rice_cracker:":"\u{1F358}",":rice_scene:":"\u{1F391}",":right_anger_bubble:":"\u{1F5EF}",":ring:":"\u{1F48D}",":ringed_planet:":"\u{1FA90}",":robot:":"\u{1F916}",":rock:":"\u{1FAA8}",":rocket:":"\u{1F680}",":rofl:":"\u{1F923}",":roll_eyes:":"\u{1F644}",":roll_of_paper:":"\u{1F9FB}",":roller_coaster:":"\u{1F3A2}",":roller_skate:":"\u{1F6FC}",":romania:":"\u{1F1F7}\u200D\u{1F1F4}",":rooster:":"\u{1F413}",":rose:":"\u{1F339}",":rosette:":"\u{1F3F5}",":rotating_light:":"\u{1F6A8}",":round_pushpin:":"\u{1F4CD}",":rowboat:":"\u{1F6A3}",":rowing_man:":"\u{1F6A3}\u200D\u2642",":rowing_woman:":"\u{1F6A3}\u200D\u2640",":ru:":"\u{1F1F7}\u200D\u{1F1FA}",":rugby_football:":"\u{1F3C9}",":runner:":"\u{1F3C3}",":running:":"\u{1F3C3}",":running_man:":"\u{1F3C3}\u200D\u2642",":running_shirt_with_sash:":"\u{1F3BD}",":running_woman:":"\u{1F3C3}\u200D\u2640",":rwanda:":"\u{1F1F7}\u200D\u{1F1FC}",":sa:":"\u{1F202}",":safety_pin:":"\u{1F9F7}",":safety_vest:":"\u{1F9BA}",":sagittarius:":"\u2650",":sailboat:":"\u26F5",":sake:":"\u{1F376}",":salt:":"\u{1F9C2}",":samoa:":"\u{1F1FC}\u200D\u{1F1F8}",":san_marino:":"\u{1F1F8}\u200D\u{1F1F2}",":sandal:":"\u{1F461}",":sandwich:":"\u{1F96A}",":santa:":"\u{1F385}",":sao_tome_principe:":"\u{1F1F8}\u200D\u{1F1F9}",":sari:":"\u{1F97B}",":sassy_man:":"\u{1F481}\u200D\u2642",":sassy_woman:":"\u{1F481}\u200D\u2640",":satellite:":"\u{1F4E1}",":satisfied:":"\u{1F606}",":saudi_arabia:":"\u{1F1F8}\u200D\u{1F1E6}",":sauna_man:":"\u{1F9D6}\u200D\u2642",":sauna_person:":"\u{1F9D6}",":sauna_woman:":"\u{1F9D6}\u200D\u2640",":sauropod:":"\u{1F995}",":saxophone:":"\u{1F3B7}",":scarf:":"\u{1F9E3}",":school:":"\u{1F3EB}",":school_satchel:":"\u{1F392}",":scientist:":"\u{1F9D1}\u200D\u{1F52C}",":scissors:":"\u2702",":scorpion:":"\u{1F982}",":scorpius:":"\u264F",":scotland:":"\u{1F3F4}\u200D\u{E0067}\u200D\u{E0062}\u200D\u{E0073}\u200D\u{E0063}\u200D\u{E0074}\u200D\u{E007F}",":scream:":"\u{1F631}",":scream_cat:":"\u{1F640}",":screwdriver:":"\u{1FA9B}",":scroll:":"\u{1F4DC}",":seal:":"\u{1F9AD}",":seat:":"\u{1F4BA}",":secret:":"\u3299",":see_no_evil:":"\u{1F648}",":seedling:":"\u{1F331}",":selfie:":"\u{1F933}",":senegal:":"\u{1F1F8}\u200D\u{1F1F3}",":serbia:":"\u{1F1F7}\u200D\u{1F1F8}",":service_dog:":"\u{1F415}\u200D\u{1F9BA}",":seven:":"7\u200D\u20E3",":sewing_needle:":"\u{1FAA1}",":seychelles:":"\u{1F1F8}\u200D\u{1F1E8}",":shallow_pan_of_food:":"\u{1F958}",":shamrock:":"\u2618",":shark:":"\u{1F988}",":shaved_ice:":"\u{1F367}",":sheep:":"\u{1F411}",":shell:":"\u{1F41A}",":shield:":"\u{1F6E1}",":shinto_shrine:":"\u26E9",":ship:":"\u{1F6A2}",":shirt:":"\u{1F455}",":shit:":"\u{1F4A9}",":shoe:":"\u{1F45E}",":shopping:":"\u{1F6CD}",":shopping_cart:":"\u{1F6D2}",":shorts:":"\u{1FA73}",":shower:":"\u{1F6BF}",":shrimp:":"\u{1F990}",":shrug:":"\u{1F937}",":shushing_face:":"\u{1F92B}",":sierra_leone:":"\u{1F1F8}\u200D\u{1F1F1}",":signal_strength:":"\u{1F4F6}",":singapore:":"\u{1F1F8}\u200D\u{1F1EC}",":singer:":"\u{1F9D1}\u200D\u{1F3A4}",":sint_maarten:":"\u{1F1F8}\u200D\u{1F1FD}",":six:":"6\u200D\u20E3",":six_pointed_star:":"\u{1F52F}",":skateboard:":"\u{1F6F9}",":ski:":"\u{1F3BF}",":skier:":"\u26F7",":skull:":"\u{1F480}",":skull_and_crossbones:":"\u2620",":skunk:":"\u{1F9A8}",":sled:":"\u{1F6F7}",":sleeping:":"\u{1F634}",":sleeping_bed:":"\u{1F6CC}",":sleepy:":"\u{1F62A}",":slightly_frowning_face:":"\u{1F641}",":slightly_smiling_face:":"\u{1F642}",":slot_machine:":"\u{1F3B0}",":sloth:":"\u{1F9A5}",":slovakia:":"\u{1F1F8}\u200D\u{1F1F0}",":slovenia:":"\u{1F1F8}\u200D\u{1F1EE}",":small_airplane:":"\u{1F6E9}",":small_blue_diamond:":"\u{1F539}",":small_orange_diamond:":"\u{1F538}",":small_red_triangle:":"\u{1F53A}",":small_red_triangle_down:":"\u{1F53B}",":smile:":"\u{1F604}",":smile_cat:":"\u{1F638}",":smiley:":"\u{1F603}",":smiley_cat:":"\u{1F63A}",":smiling_face_with_tear:":"\u{1F972}",":smiling_face_with_three_hearts:":"\u{1F970}",":smiling_imp:":"\u{1F608}",":smirk:":"\u{1F60F}",":smirk_cat:":"\u{1F63C}",":smoking:":"\u{1F6AC}",":snail:":"\u{1F40C}",":snake:":"\u{1F40D}",":sneezing_face:":"\u{1F927}",":snowboarder:":"\u{1F3C2}",":snowflake:":"\u2744",":snowman:":"\u26C4",":snowman_with_snow:":"\u2603",":soap:":"\u{1F9FC}",":sob:":"\u{1F62D}",":soccer:":"\u26BD",":socks:":"\u{1F9E6}",":softball:":"\u{1F94E}",":solomon_islands:":"\u{1F1F8}\u200D\u{1F1E7}",":somalia:":"\u{1F1F8}\u200D\u{1F1F4}",":soon:":"\u{1F51C}",":sos:":"\u{1F198}",":sound:":"\u{1F509}",":south_africa:":"\u{1F1FF}\u200D\u{1F1E6}",":south_georgia_south_sandwich_islands:":"\u{1F1EC}\u200D\u{1F1F8}",":south_sudan:":"\u{1F1F8}\u200D\u{1F1F8}",":space_invader:":"\u{1F47E}",":spades:":"\u2660",":spaghetti:":"\u{1F35D}",":sparkle:":"\u2747",":sparkler:":"\u{1F387}",":sparkles:":"\u2728",":sparkling_heart:":"\u{1F496}",":speak_no_evil:":"\u{1F64A}",":speaker:":"\u{1F508}",":speaking_head:":"\u{1F5E3}",":speech_balloon:":"\u{1F4AC}",":speedboat:":"\u{1F6A4}",":spider:":"\u{1F577}",":spider_web:":"\u{1F578}",":spiral_calendar:":"\u{1F5D3}",":spiral_notepad:":"\u{1F5D2}",":sponge:":"\u{1F9FD}",":spoon:":"\u{1F944}",":squid:":"\u{1F991}",":sri_lanka:":"\u{1F1F1}\u200D\u{1F1F0}",":st_barthelemy:":"\u{1F1E7}\u200D\u{1F1F1}",":st_helena:":"\u{1F1F8}\u200D\u{1F1ED}",":st_kitts_nevis:":"\u{1F1F0}\u200D\u{1F1F3}",":st_lucia:":"\u{1F1F1}\u200D\u{1F1E8}",":st_martin:":"\u{1F1F2}\u200D\u{1F1EB}",":st_pierre_miquelon:":"\u{1F1F5}\u200D\u{1F1F2}",":st_vincent_grenadines:":"\u{1F1FB}\u200D\u{1F1E8}",":stadium:":"\u{1F3DF}",":standing_man:":"\u{1F9CD}\u200D\u2642",":standing_person:":"\u{1F9CD}",":standing_woman:":"\u{1F9CD}\u200D\u2640",":star:":"\u2B50",":star2:":"\u{1F31F}",":star_and_crescent:":"\u262A",":star_of_david:":"\u2721",":star_struck:":"\u{1F929}",":stars:":"\u{1F320}",":station:":"\u{1F689}",":statue_of_liberty:":"\u{1F5FD}",":steam_locomotive:":"\u{1F682}",":stethoscope:":"\u{1FA7A}",":stew:":"\u{1F372}",":stop_button:":"\u23F9",":stop_sign:":"\u{1F6D1}",":stopwatch:":"\u23F1",":straight_ruler:":"\u{1F4CF}",":strawberry:":"\u{1F353}",":stuck_out_tongue:":"\u{1F61B}",":stuck_out_tongue_closed_eyes:":"\u{1F61D}",":stuck_out_tongue_winking_eye:":"\u{1F61C}",":student:":"\u{1F9D1}\u200D\u{1F393}",":studio_microphone:":"\u{1F399}",":stuffed_flatbread:":"\u{1F959}",":sudan:":"\u{1F1F8}\u200D\u{1F1E9}",":sun_behind_large_cloud:":"\u{1F325}",":sun_behind_rain_cloud:":"\u{1F326}",":sun_behind_small_cloud:":"\u{1F324}",":sun_with_face:":"\u{1F31E}",":sunflower:":"\u{1F33B}",":sunglasses:":"\u{1F60E}",":sunny:":"\u2600",":sunrise:":"\u{1F305}",":sunrise_over_mountains:":"\u{1F304}",":superhero:":"\u{1F9B8}",":superhero_man:":"\u{1F9B8}\u200D\u2642",":superhero_woman:":"\u{1F9B8}\u200D\u2640",":supervillain:":"\u{1F9B9}",":supervillain_man:":"\u{1F9B9}\u200D\u2642",":supervillain_woman:":"\u{1F9B9}\u200D\u2640",":surfer:":"\u{1F3C4}",":surfing_man:":"\u{1F3C4}\u200D\u2642",":surfing_woman:":"\u{1F3C4}\u200D\u2640",":suriname:":"\u{1F1F8}\u200D\u{1F1F7}",":sushi:":"\u{1F363}",":suspension_railway:":"\u{1F69F}",":svalbard_jan_mayen:":"\u{1F1F8}\u200D\u{1F1EF}",":swan:":"\u{1F9A2}",":swaziland:":"\u{1F1F8}\u200D\u{1F1FF}",":sweat:":"\u{1F613}",":sweat_drops:":"\u{1F4A6}",":sweat_smile:":"\u{1F605}",":sweden:":"\u{1F1F8}\u200D\u{1F1EA}",":sweet_potato:":"\u{1F360}",":swim_brief:":"\u{1FA72}",":swimmer:":"\u{1F3CA}",":swimming_man:":"\u{1F3CA}\u200D\u2642",":swimming_woman:":"\u{1F3CA}\u200D\u2640",":switzerland:":"\u{1F1E8}\u200D\u{1F1ED}",":symbols:":"\u{1F523}",":synagogue:":"\u{1F54D}",":syria:":"\u{1F1F8}\u200D\u{1F1FE}",":syringe:":"\u{1F489}",":t-rex:":"\u{1F996}",":taco:":"\u{1F32E}",":tada:":"\u{1F389}",":taiwan:":"\u{1F1F9}\u200D\u{1F1FC}",":tajikistan:":"\u{1F1F9}\u200D\u{1F1EF}",":takeout_box:":"\u{1F961}",":tamale:":"\u{1FAD4}",":tanabata_tree:":"\u{1F38B}",":tangerine:":"\u{1F34A}",":tanzania:":"\u{1F1F9}\u200D\u{1F1FF}",":taurus:":"\u2649",":taxi:":"\u{1F695}",":tea:":"\u{1F375}",":teacher:":"\u{1F9D1}\u200D\u{1F3EB}",":teapot:":"\u{1FAD6}",":technologist:":"\u{1F9D1}\u200D\u{1F4BB}",":teddy_bear:":"\u{1F9F8}",":telephone:":"\u260E",":telephone_receiver:":"\u{1F4DE}",":telescope:":"\u{1F52D}",":tennis:":"\u{1F3BE}",":tent:":"\u26FA",":test_tube:":"\u{1F9EA}",":thailand:":"\u{1F1F9}\u200D\u{1F1ED}",":thermometer:":"\u{1F321}",":thinking:":"\u{1F914}",":thong_sandal:":"\u{1FA74}",":thought_balloon:":"\u{1F4AD}",":thread:":"\u{1F9F5}",":three:":"3\u200D\u20E3",":thumbsdown:":"\u{1F44E}",":thumbsup:":"\u{1F44D}",":ticket:":"\u{1F3AB}",":tickets:":"\u{1F39F}",":tiger:":"\u{1F42F}",":tiger2:":"\u{1F405}",":timer_clock:":"\u23F2",":timor_leste:":"\u{1F1F9}\u200D\u{1F1F1}",":tipping_hand_man:":"\u{1F481}\u200D\u2642",":tipping_hand_person:":"\u{1F481}",":tipping_hand_woman:":"\u{1F481}\u200D\u2640",":tired_face:":"\u{1F62B}",":tm:":"\u2122",":togo:":"\u{1F1F9}\u200D\u{1F1EC}",":toilet:":"\u{1F6BD}",":tokelau:":"\u{1F1F9}\u200D\u{1F1F0}",":tokyo_tower:":"\u{1F5FC}",":tomato:":"\u{1F345}",":tonga:":"\u{1F1F9}\u200D\u{1F1F4}",":tongue:":"\u{1F445}",":toolbox:":"\u{1F9F0}",":tooth:":"\u{1F9B7}",":toothbrush:":"\u{1FAA5}",":top:":"\u{1F51D}",":tophat:":"\u{1F3A9}",":tornado:":"\u{1F32A}",":tr:":"\u{1F1F9}\u200D\u{1F1F7}",":trackball:":"\u{1F5B2}",":tractor:":"\u{1F69C}",":traffic_light:":"\u{1F6A5}",":train:":"\u{1F68B}",":train2:":"\u{1F686}",":tram:":"\u{1F68A}",":transgender_flag:":"\u{1F3F3}\u200D\u26A7",":transgender_symbol:":"\u26A7",":triangular_flag_on_post:":"\u{1F6A9}",":triangular_ruler:":"\u{1F4D0}",":trident:":"\u{1F531}",":trinidad_tobago:":"\u{1F1F9}\u200D\u{1F1F9}",":tristan_da_cunha:":"\u{1F1F9}\u200D\u{1F1E6}",":triumph:":"\u{1F624}",":trolleybus:":"\u{1F68E}",":trophy:":"\u{1F3C6}",":tropical_drink:":"\u{1F379}",":tropical_fish:":"\u{1F420}",":truck:":"\u{1F69A}",":trumpet:":"\u{1F3BA}",":tshirt:":"\u{1F455}",":tulip:":"\u{1F337}",":tumbler_glass:":"\u{1F943}",":tunisia:":"\u{1F1F9}\u200D\u{1F1F3}",":turkey:":"\u{1F983}",":turkmenistan:":"\u{1F1F9}\u200D\u{1F1F2}",":turks_caicos_islands:":"\u{1F1F9}\u200D\u{1F1E8}",":turtle:":"\u{1F422}",":tuvalu:":"\u{1F1F9}\u200D\u{1F1FB}",":tv:":"\u{1F4FA}",":twisted_rightwards_arrows:":"\u{1F500}",":two:":"2\u200D\u20E3",":two_hearts:":"\u{1F495}",":two_men_holding_hands:":"\u{1F46C}",":two_women_holding_hands:":"\u{1F46D}",":u5272:":"\u{1F239}",":u5408:":"\u{1F234}",":u55b6:":"\u{1F23A}",":u6307:":"\u{1F22F}",":u6708:":"\u{1F237}",":u6709:":"\u{1F236}",":u6e80:":"\u{1F235}",":u7121:":"\u{1F21A}",":u7533:":"\u{1F238}",":u7981:":"\u{1F232}",":u7a7a:":"\u{1F233}",":uganda:":"\u{1F1FA}\u200D\u{1F1EC}",":uk:":"\u{1F1EC}\u200D\u{1F1E7}",":ukraine:":"\u{1F1FA}\u200D\u{1F1E6}",":umbrella:":"\u2614",":unamused:":"\u{1F612}",":underage:":"\u{1F51E}",":unicorn:":"\u{1F984}",":united_arab_emirates:":"\u{1F1E6}\u200D\u{1F1EA}",":united_nations:":"\u{1F1FA}\u200D\u{1F1F3}",":unlock:":"\u{1F513}",":up:":"\u{1F199}",":upside_down_face:":"\u{1F643}",":uruguay:":"\u{1F1FA}\u200D\u{1F1FE}",":us:":"\u{1F1FA}\u200D\u{1F1F8}",":us_outlying_islands:":"\u{1F1FA}\u200D\u{1F1F2}",":us_virgin_islands:":"\u{1F1FB}\u200D\u{1F1EE}",":uzbekistan:":"\u{1F1FA}\u200D\u{1F1FF}",":v:":"\u270C",":vampire:":"\u{1F9DB}",":vampire_man:":"\u{1F9DB}\u200D\u2642",":vampire_woman:":"\u{1F9DB}\u200D\u2640",":vanuatu:":"\u{1F1FB}\u200D\u{1F1FA}",":vatican_city:":"\u{1F1FB}\u200D\u{1F1E6}",":venezuela:":"\u{1F1FB}\u200D\u{1F1EA}",":vertical_traffic_light:":"\u{1F6A6}",":vhs:":"\u{1F4FC}",":vibration_mode:":"\u{1F4F3}",":video_camera:":"\u{1F4F9}",":video_game:":"\u{1F3AE}",":vietnam:":"\u{1F1FB}\u200D\u{1F1F3}",":violin:":"\u{1F3BB}",":virgo:":"\u264D",":volcano:":"\u{1F30B}",":volleyball:":"\u{1F3D0}",":vomiting_face:":"\u{1F92E}",":vs:":"\u{1F19A}",":vulcan_salute:":"\u{1F596}",":waffle:":"\u{1F9C7}",":wales:":"\u{1F3F4}\u200D\u{E0067}\u200D\u{E0062}\u200D\u{E0077}\u200D\u{E006C}\u200D\u{E0073}\u200D\u{E007F}",":walking:":"\u{1F6B6}",":walking_man:":"\u{1F6B6}\u200D\u2642",":walking_woman:":"\u{1F6B6}\u200D\u2640",":wallis_futuna:":"\u{1F1FC}\u200D\u{1F1EB}",":waning_crescent_moon:":"\u{1F318}",":waning_gibbous_moon:":"\u{1F316}",":warning:":"\u26A0",":wastebasket:":"\u{1F5D1}",":watch:":"\u231A",":water_buffalo:":"\u{1F403}",":water_polo:":"\u{1F93D}",":watermelon:":"\u{1F349}",":wave:":"\u{1F44B}",":wavy_dash:":"\u3030",":waxing_crescent_moon:":"\u{1F312}",":waxing_gibbous_moon:":"\u{1F314}",":wc:":"\u{1F6BE}",":weary:":"\u{1F629}",":wedding:":"\u{1F492}",":weight_lifting:":"\u{1F3CB}",":weight_lifting_man:":"\u{1F3CB}\u200D\u2642",":weight_lifting_woman:":"\u{1F3CB}\u200D\u2640",":western_sahara:":"\u{1F1EA}\u200D\u{1F1ED}",":whale:":"\u{1F433}",":whale2:":"\u{1F40B}",":wheel_of_dharma:":"\u2638",":wheelchair:":"\u267F",":white_check_mark:":"\u2705",":white_circle:":"\u26AA",":white_flag:":"\u{1F3F3}",":white_flower:":"\u{1F4AE}",":white_haired_man:":"\u{1F468}\u200D\u{1F9B3}",":white_haired_woman:":"\u{1F469}\u200D\u{1F9B3}",":white_heart:":"\u{1F90D}",":white_large_square:":"\u2B1C",":white_medium_small_square:":"\u25FD",":white_medium_square:":"\u25FB",":white_small_square:":"\u25AB",":white_square_button:":"\u{1F533}",":wilted_flower:":"\u{1F940}",":wind_chime:":"\u{1F390}",":wind_face:":"\u{1F32C}",":window:":"\u{1FA9F}",":wine_glass:":"\u{1F377}",":wink:":"\u{1F609}",":wolf:":"\u{1F43A}",":woman:":"\u{1F469}",":woman_artist:":"\u{1F469}\u200D\u{1F3A8}",":woman_astronaut:":"\u{1F469}\u200D\u{1F680}",":woman_beard:":"\u{1F9D4}\u200D\u2640",":woman_cartwheeling:":"\u{1F938}\u200D\u2640",":woman_cook:":"\u{1F469}\u200D\u{1F373}",":woman_dancing:":"\u{1F483}",":woman_facepalming:":"\u{1F926}\u200D\u2640",":woman_factory_worker:":"\u{1F469}\u200D\u{1F3ED}",":woman_farmer:":"\u{1F469}\u200D\u{1F33E}",":woman_feeding_baby:":"\u{1F469}\u200D\u{1F37C}",":woman_firefighter:":"\u{1F469}\u200D\u{1F692}",":woman_health_worker:":"\u{1F469}\u200D\u2695",":woman_in_manual_wheelchair:":"\u{1F469}\u200D\u{1F9BD}",":woman_in_motorized_wheelchair:":"\u{1F469}\u200D\u{1F9BC}",":woman_in_tuxedo:":"\u{1F935}\u200D\u2640",":woman_judge:":"\u{1F469}\u200D\u2696",":woman_juggling:":"\u{1F939}\u200D\u2640",":woman_mechanic:":"\u{1F469}\u200D\u{1F527}",":woman_office_worker:":"\u{1F469}\u200D\u{1F4BC}",":woman_pilot:":"\u{1F469}\u200D\u2708",":woman_playing_handball:":"\u{1F93E}\u200D\u2640",":woman_playing_water_polo:":"\u{1F93D}\u200D\u2640",":woman_scientist:":"\u{1F469}\u200D\u{1F52C}",":woman_shrugging:":"\u{1F937}\u200D\u2640",":woman_singer:":"\u{1F469}\u200D\u{1F3A4}",":woman_student:":"\u{1F469}\u200D\u{1F393}",":woman_teacher:":"\u{1F469}\u200D\u{1F3EB}",":woman_technologist:":"\u{1F469}\u200D\u{1F4BB}",":woman_with_headscarf:":"\u{1F9D5}",":woman_with_probing_cane:":"\u{1F469}\u200D\u{1F9AF}",":woman_with_turban:":"\u{1F473}\u200D\u2640",":woman_with_veil:":"\u{1F470}\u200D\u2640",":womans_clothes:":"\u{1F45A}",":womans_hat:":"\u{1F452}",":women_wrestling:":"\u{1F93C}\u200D\u2640",":womens:":"\u{1F6BA}",":wood:":"\u{1FAB5}",":woozy_face:":"\u{1F974}",":world_map:":"\u{1F5FA}",":worm:":"\u{1FAB1}",":worried:":"\u{1F61F}",":wrench:":"\u{1F527}",":wrestling:":"\u{1F93C}",":writing_hand:":"\u270D",":x:":"\u274C",":yarn:":"\u{1F9F6}",":yawning_face:":"\u{1F971}",":yellow_circle:":"\u{1F7E1}",":yellow_heart:":"\u{1F49B}",":yellow_square:":"\u{1F7E8}",":yemen:":"\u{1F1FE}\u200D\u{1F1EA}",":yen:":"\u{1F4B4}",":yin_yang:":"\u262F",":yo_yo:":"\u{1FA80}",":yum:":"\u{1F60B}",":zambia:":"\u{1F1FF}\u200D\u{1F1F2}",":zany_face:":"\u{1F92A}",":zap:":"\u26A1",":zebra:":"\u{1F993}",":zero:":"0\u200D\u20E3",":zimbabwe:":"\u{1F1FF}\u200D\u{1F1FC}",":zipper_mouth_face:":"\u{1F910}",":zombie:":"\u{1F9DF}",":zombie_man:":"\u{1F9DF}\u200D\u2642",":zombie_woman:":"\u{1F9DF}\u200D\u2640",":zzz:":"\u{1F4A4}"},Op=class{process(t){return this.transformEmoji(t)}transformEmoji(t){return t.replace(/(:(\w|\+|-)+:)(?=|[!.?]|$)/gim,r=>eQ[r]??r)}};var PP=require("obsidian"),Ap=class{excalidrawImageRegex=/!\[\[(.*\.excalidraw)\|?([^\]]*)??\]\]\s?(<!--.*-->)?/i;utils;constructor(t){this.utils=t}process(t){return t.split(`
`).map(r=>this.excalidrawImageRegex.test(r)?this.transformLine(r):r).join(`
`)}transformLine(t){let[,r,i,n]=this.excalidrawImageRegex.exec(t),s=this.utils.findMediaFile(r);return s===null?(new PP.Notice(`Cannot find Image for ${r}. Make sure to activate Auto-export SVG/PNG in Excalidraw Settings.`,8e3),t):`![[${s}${i===void 0?"":`|${i}`}]] ${n??""}`}};var Qa=class{regex=/\[\^([^\]]*)]/im;process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map((n,s)=>n.split(new RegExp(r.verticalSeparator,"gmi")).map((o,a)=>{if(this.regex.test(o)){let l=this.transformFootNotes(o);return i=i.replace(o,l),l}return o}).join(r.verticalSeparator)).join(r.separator),i}transformFootNotes(t){if(!this.regex.test(t))return t;let r=t,i=1,n=new Map;for(;;){let a=this.regex.exec(r);if(!a)break;r=r.split(`
`).map((l,c)=>{if(l.includes(a[0])){if(l.includes(`${a[0]}: `))return n.has(a[1])||n.set(a[1],l.split(`${a[0]}: `)[1]),"";let u=l.split(a[0]),f=u[0].trim();return f+=`<sup id="fnref:${a[1]}" role="doc-noteref">${i}</sup>`,f+=u[1].trim(),i=i+1,f}return l}).join(`
`)}let s="";s+=`<div class="footnotes" role="doc-endnotes">
`,s+=`<ol>
`,n.forEach((a,l)=>{s+=`<li id="fn:${l}" role="doc-endnote" class="footnote"><p>
${a}
</p></li>`}),s+=`</ol>
`,s+=`</div>
`;let o="<%? footnotes %>";return r.includes(o)?r.replaceAll(o,s):`${r}
${s}`}};var Cp=class{boldRegex=/(?<=[^_]|^)__([^_]+)__(?!_)/gm;markRegex=/==([^=]*)==/gm;commentRegex=/%%([^%]*)%%/gm;process(t,r){let i=t;return el(t,r,n=>{let s=n;return s=Pp(n,o=>this.formatText(o)),i=i.replace(n,()=>s),s}),i}formatText(t){return t.replaceAll(this.boldRegex,(r,i)=>`**${i.trim()}**`).replaceAll(this.markRegex,"<mark>$1</mark>").replaceAll(this.commentRegex,"")}};var Ip=class{parser;fragmentCounter=1;orderedListRegex=/^\d\) /g;codeBlockRegex=/```[^\n]*(?:\n[^`]*\n)```/g;constructor(){this.parser=new er}process(t,r){let i=new RegExp(`${r.separator}|${r.verticalSeparator}`,"gmi"),n=Array.from(t.matchAll(this.codeBlockRegex)).map(({0:o,index:a})=>({from:t.substring(0,a).split(`
`).length-1,to:t.substring(0,a+o.length).split(`
`).length-1}));return t.split(`
`).map((o,a)=>`
${o}
`.match(i)?(this.fragmentCounter=1,o):n.some(({from:c,to:u})=>a>=c&&a<=u)?o:o.trim().startsWith("+ ")||this.orderedListRegex.test(o.trim())?this.transformLine(o):o).join(`
`)}transformLine(t){let r=this.parser.parseLine(t)??this.parser.buildComment("element");t.includes("<!--")&&(t=t.substring(0,t.indexOf("<!--"))),r.hasAttribute("data-fragment-index")||(r.addAttribute("data-fragment-index",this.fragmentCounter.toString()),r.hasClass("fragment")||r.addClass("fragment"),this.fragmentCounter++);let i=`&shy;${this.parser.commentToString(r)}`;return t=t.replace("+ ",`- ${i}`),t=t.replaceAll(this.orderedListRegex,`1. ${i}`),t}};var Np=class{gridBlockRegex=/<\s*grid(?:(?!(<grid|<\/grid>)).)*<\/grid>/gs;gridRegex=/<\s*grid([^>]+)>(.*?)<\/grid>/s;gridPropertiesRegex=/([^=]*)\s*=\s*"([^"]*)"\s*|([^=]*)\s*=\s*'([^']*)'\s*/g;process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map(n=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(s=>{if(this.gridBlockRegex.test(s)){let o=this.transformSlide(s),a;for(;a!==o;)a&&(o=a),a=this.transformSlide(o);return i=i.split(s).join(a),a}return s}).join(r.verticalSeparator)).join(r.separator),i}transformSlide(t){let r=new Map;for(this.gridBlockRegex.lastIndex=0;;){let i=this.gridBlockRegex.exec(t);if(i==null)break;i.index===this.gridBlockRegex.lastIndex&&this.gridBlockRegex.lastIndex++;let n=i[0],[s,o,a]=this.gridRegex.exec(n);r.set(s,this.transformGrid(o,a))}for(let[i,n]of r)n&&(t=t.split(i).join(n));return t}transformGrid(t,r){let i=this.parseAttributes(t.trim()),n=new Xa(i);return`<div class="${n.getClasses()}" style="${n.getStyles()}" ${n.getAttributes()}>
${r}</div>`}parseAttributes(t){let r=new Map;for(this.gridPropertiesRegex.lastIndex=0;;){let i=this.gridPropertiesRegex.exec(t);if(i==null)break;i.index===this.gridPropertiesRegex.lastIndex&&this.gridPropertiesRegex.lastIndex++;let[,n,s]=i;r.set(n,s)}return r}};var $p=class{regex=/:(fas|far|fal|fad|fab)_([\w-]+):/g;process(t){return this.transformIconShortcode(t)}transformIconShortcode(t){return t=t.replaceAll(this.regex,"![]($1 fa-$2)"),t}};var Fp=class{utils;constructor(t){this.utils=t}regex=/(?<=[^!]|^)\[\[(?:(.*?)\|)?([^\]]*)\]\]/gm;process(t,r){return r.enableLinks?t.replaceAll(this.regex,(i,n,s)=>`[${s}](obsidian://open?vault=${encodeURI(this.utils.vaultName)}&file=${encodeURI(n===void 0?s:n)})`):t.replaceAll(this.regex,"$2")}};var Lp=class{singleLine=/\$(.*?)\$/g;TWO_BACKSLASHES=/\\\\/g;THREE_BACKSLASHES="\\\\\\";process(t,r){let i=t;return el(t,r,n=>{let s=n;return n.includes("$")&&(s=this.skipCodeBlocks(n),i=i.replace(n,()=>s)),s}),i}skipCodeBlocks(t){if(!t.includes("$"))return t;let r=/^(\s*)(`{3,})(.*?)[\r\n][\s\S]*?(?:\r|\n|\r\n)\s*\2(?=$|[\r\n])/gm,i=/`[^`\n]+?`/g,n=[],s=[],o=t.replace(r,a=>{let l=`~~CODE~BLOCK~${n.length}~~`;return n.push(a),l});o=o.replace(i,a=>{let l=`~~INLINE~BLOCK~${s.length}~~`;return s.push(a),l}),o=this.transformLatex(o);for(let a=0;a<n.length;a++){let l=`~~CODE~BLOCK~${a}~~`;o=o.replace(l,()=>n[a])}for(let a=0;a<s.length;a++){let l=`~~INLINE~BLOCK~${a}~~`;o=o.replace(l,()=>s[a])}return o}transformLatex(t){let r=t.replaceAll("\\$","~~ESCAPED_DOLLAR~~");return r=r.replace(/\$\$([\s\S]*?)\$\$/g,(s,o)=>`%\`%$$${o.replace(/\n\s*/g,"").replace(this.TWO_BACKSLASHES,this.THREE_BACKSLASHES)}$$%\`%`),r=r.replace(/%`%(.*?)%`%/g,s=>`~~PROTECTED_MATH~~${encodeURIComponent(s)}~~END_PROTECTED~~`).replace(/\$([^$]+?)\$/g,(s,o)=>`%\`%$${o.replace(/_/g,"\\_")}$%\`%`).replace(/~~PROTECTED_MATH~~(.*?)~~END_PROTECTED~~/g,(s,o)=>decodeURIComponent(o)),r.replaceAll("~~ESCAPED_DOLLAR~~","\\$")}};var IP=require("node:path");function wu(e,t){let r=t.split(".");return!!e&&(r.length>1?wu(e[t.split(".")[0]],r.slice(1).join(".")):Object.prototype.hasOwnProperty.call(e,t))}function tl(e,t){return t.reduce((r,i)=>(e?.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}function NP(e,t){return Object.keys(e).reduce((r,i)=>(t.includes(i)||(r[i]=e[i]),r),{})}function j_(e,t){return Object.keys(e).reduce((r,i)=>(t(e[i])||(r[i]=e[i]),r),{})}function q_(e){return e==null}function Dp(e){return q_(e)||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0}function Su(e){return/^.*?:\/\//.test(e)}function xu(e){return e.startsWith("fas")||e.startsWith("far")||e.startsWith("fal")||e.startsWith("fad")||e.startsWith("fab")}function jp(e){return e.endsWith("bmp")||e.endsWith("gif")||e.endsWith("jpeg")||e.endsWith("jpg")||e.endsWith("png")||e.endsWith("svg")||e.endsWith("webp")}function rl(e){return e.endsWith("avi")||e.endsWith("mp4")||e.endsWith("mov")||e.endsWith("ogg")||e.endsWith("webm")}function $P(e){switch((0,IP.basename)(e).split(".").pop()){case"avi":return"video/x-msvideo";case"bmp":return"image/bmp";case"gif":return"image/gif";case"jpeg":return"image/jpeg";case"jpg":return"image/jpeg";case"mov":return"video/quicktime";case"mpeg":return"video/mpeg";case"mp4":return"video/mp4";case"ogv":return"video/ogg";case"png":return"image/png";case"svg":return"image/svg+xml";case"webm":return"video/webm";case"webp":return"image/webp";default:return""}}var qp=class{utils;parser;markdownMediaRegex=/(!)?\[([^\]]*)\]\((.*(?:jpg|png|jpeg|gif|bmp|webp|svg|avi|mp4|ogg|mov|webm)?)(?: ".*?")?\)\s?(<!--.*-->)?/gi;wikilinkMediaRegex=/\[\[(.*?(?:jpg|png|jpeg|webp|gif|bmp|svg|avi|mp4|ogg|mov|webm))\|?([^\]]*)??\]\]/gi;constructor(t){this.utils=t,this.parser=new er}process(t){return t.split(`
`).map(r=>r.replace(this.wikilinkMediaRegex,(i,n,s)=>`[${s??""}](${n})`)).map(r=>this.markdownMediaRegex.test(r)?this.htmlify(r):r).join(`
`)}buildComment(t,r){let i=r?this.parser.parseComment(r):this.parser.buildComment("element");if(t){let n,s;t.includes("x")?[n,s]=t.split("x"):n=t,i.addStyle("width",`${n}px`),s&&i.addStyle("height",`${s}px`)}return this.parser.commentToString(i)}htmlify(t){let r="",i=0;for(this.markdownMediaRegex.lastIndex=0;;){let n=this.markdownMediaRegex.exec(t);if(n==null)break;n.index===this.markdownMediaRegex.lastIndex&&this.markdownMediaRegex.lastIndex++;let[s,o,a,l,c]=n,u=l,f=xu(u),h=rl(u),d=Su(u)||jp(u);if(!f&&!d&&!h){r+=t.substring(i,n.index)+s,i=this.markdownMediaRegex.lastIndex;continue}(d||h)&&!Su(u)&&(u=this.utils.findMediaFile(l),this.utils.shouldCollect()&&this.utils.addMedia(u)),t.match(/^(?:[ ]{4,}|\t)!\[/)&&(o=" ");let p="";o==="!"&&(f||d||h)?p=this.createImageElement(u,a,c):p=this.updateMarkdownLink(t,s,l,u),r+=t.substring(i,n.index)+p,i=this.markdownMediaRegex.lastIndex}return r+t.substring(i)}updateMarkdownLink(t,r,i,n){let s=r.replace(i,n);return t.indexOf(`"${r}"`)>=0?n:s}createImageElement(t,r,i){let n="";if(r.match(/(?:^|\|)(\d+x?\d*)$/)){let a=r.split("|"),l=a.length>1?a[1]:a[0];a.length>1&&(r=a[0]),i=this.buildComment(l,i)??"",r=""}let s=$P(t),o=this.parser.parseLine(i)??this.parser.buildComment("element");if(xu(t))n=`<i class="${t}" ${this.parser.buildAttributes(o)}></i>
`;else{if(o.hasStyle("width")&&!o.hasStyle("object-fit")&&o.addStyle("object-fit","fill"),!o.hasStyle("align-self")&&o.hasAttribute("align")){switch(o.getAttribute("align")){case"left":o.addStyle("align-self","start");break;case"right":o.addStyle("align-self","end");break;case"center":o.addStyle("align-self","center");break;case"stretch":o.addStyle("align-self","stretch"),o.addStyle("object-fit","cover"),o.addStyle("height","100%"),o.addStyle("width","100%");break;default:break}o.deleteAttribute("align")}o.hasStyle("object-fit")||o.addStyle("object-fit","scale-down"),rl(t)&&(o.hasAttribute("controls")?o.getAttribute("controls")==="false"&&o.deleteAttribute("controls"):o.addAttribute("controls","")),n=rl(t)?`<video ${this.parser.buildAttributes(o)}><source src="${t}" alt="${r}" type="${s}" /></video>
`:`<img src="${t}" alt="${r}" ${this.parser.buildAttributes(o)}>
`}return n}};var Mp=class{process(t){return this.transformMermaid(t)}transformMermaid(t){let r=t.indexOf("```mermaid");if(r<0)return t;let i=t.indexOf("```",r+11);if(i<0)return t;let n=t.substring(0,r),s=t.substring(i+3),o=t.substring(r+11,i),a=`${n}
<div class="mermaid">
${o}
</div>
${s}`;return this.transformMermaid(a)}};var il=class{utils;regex=/!\[\[(.*?)(\|[^\]]*?)?\]\]/g;markdownRegex=/!\[.*?\]\((.*?\.md)\)/g;excalidrawRegex=/(.*\.excalidraw)/i;wikilinkFileRegex=/\[\[(file:.+?)(\|[^\]]+)?\]\]/gi;fileUrlRegex=/(\[[^\]]*?\]\()(file:.+?)((?: ".*?")?\))/gi;constructor(t){this.utils=t}process(t){return t.split(`
`).map((r,i)=>(r=r.replace(this.fileUrlRegex,(n,s,o,a)=>{let l=this.transformAbsoluteFilePath(o);return`${s}${l}${a}`}),r=r.replace(this.wikilinkFileRegex,(n,s,o)=>{let a=o||"";return`[[${this.transformAbsoluteFilePath(s)}${a}]]`}),this.regex.test(r)?this.transformContent(r,this.regex):this.markdownRegex.test(r)?this.transformContent(r,this.markdownRegex):r)).join(`
`)}transformContent(t,r){let i="";return t.includes("<!--")&&(i=t.substring(t.indexOf("<!--"))),t.replaceAll(r,(n,s)=>{let o=null;if(s.includes("#")){let u=s.split("#");s=u[0],o=u[1]}if(jp(s)||xu(s)||Su(s)||rl(s))return n;let a=this.getMarkdownFile(s);if(a===null)return n;let l=this.utils.parseFile(a,o);return l?`
<!-- begin::[${a}] -->
${this.process(l+i).trim()}
<!-- end::[${a}] -->
`:n})}getMarkdownFile(t){if(this.excalidrawRegex.test(t))return null;let r=t;return t.toLowerCase().endsWith(".md")||(r=`${r}.md`),r.replaceAll("%20"," ")}transformAbsoluteFilePath(t){let r=new URL(t);return r?`/local-file-url${r.pathname}`:(console.debug("transformAbsoluteFilePath",t,"invalid url"),t)}};var zp=class{refRegex=/\^[\w-]+\s/g;process(t,r){let i=t;return el(t,r,n=>{let s=n;return s=Pp(n,o=>this.removeBlockRef(o)),i=i.replace(n,()=>s),s}),i}removeBlockRef(t){return t.replaceAll(this.refRegex,"")}};var Up=class{slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;parser=new er;process(t,r){let i=t;return t.split(new RegExp(r.separator,"gmi")).map((n,s)=>n.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{let a=o;if(this.slideCommentRegex.test(o)){let[l]=this.slideCommentRegex.exec(o),c=this.parser.parseLine(l);c.hasAttribute("skip")&&c.getAttribute("skip")==="true"&&(a='<!-- slide data-visibility="hidden" -->')}return i=i.replace(o,()=>a),a}).join(r.verticalSeparator)).join(r.separator),i}};var Bp=class{multipleFileProcessor;footnoteProcessor;emptySlideCommentRegex=/<!--\s*(?:\.)?slide(?::)?\s*-->/g;templateCommentRegex=/<!--\s*(?:\.)?slide.*(template="\[\[([^\]]+)\]\]"\s*).*-->/;propertyRegex=/:::\s([^\n]+)\s*(.*?:::[^\n]*)/gs;slideCommentRegex=/<!--\s*(?:\.)?slide.*-->/;variableRegex=/<%\??(.*?)%>/g;optionalRegex=/<%\?.*?%>/g;utils;parser=new er;constructor(t){this.utils=t,this.multipleFileProcessor=new il(t),this.footnoteProcessor=new Qa}process(t,r){let i=t;r.defaultTemplate!=null&&t.split(new RegExp(r.separator,"gmi")).map(s=>s.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{if(this.slideCommentRegex.test(o)){let[a]=this.slideCommentRegex.exec(o),l=this.parser.parseLine(a);l.hasAttribute("template")||l.addAttribute("template",r.defaultTemplate,!1),i=i.split(o).join(o.split(a).join(this.parser.commentToString(l)))}else i=i.split(o).join(`<!-- slide template="${r.defaultTemplate}" -->
${o}`);return o}).join(r.verticalSeparator)).join(r.separator);let n=i;return i.split(new RegExp(r.separator,"gmi")).map(s=>s.split(new RegExp(r.verticalSeparator,"gmi")).map(o=>{if(this.templateCommentRegex.test(o))try{let[a,l]=this.extractNotes(o,r),c=0;for(;this.templateCommentRegex.test(a);)if(c++,a=this.transformSlide(a),c>9){console.warn("WARNING: Circuit in template hierarchy detected!");break}return a=a.replaceAll(this.emptySlideCommentRegex,""),a=a.trim(),a=this.computeVariables(a,r),l.length>0&&(a+=`
${l}`),n=n.split(o).join(a),a}catch(a){return console.error(`Cannot process template: ${a}`),o}return o}).join(r.verticalSeparator)).join(r.separator),n}extractNotes(t,r){let i="note:";r.notesSeparator&&r.notesSeparator.length>0&&(i=r.notesSeparator);let n=t.indexOf(i);return n>0?[t.substring(0,n),t.substring(n)]:[t,""]}transformSlide(t){if(this.templateCommentRegex.test(t)){let[,r,i]=this.templateCommentRegex.exec(t),n=i;n.endsWith(".md")||(n=`${n}.md`);let s=this.utils.parseFile(n,null);return s=this.multipleFileProcessor.process(s),s=s.split("<% content %>").join(t.replaceAll(r,"")),s}return t}computeVariables(t,r){let i=t;for(this.propertyRegex.lastIndex=0;;){let n=this.propertyRegex.exec(t);if(n==null)break;n.index===this.propertyRegex.lastIndex&&this.propertyRegex.lastIndex++;let[s,o,a]=n;if(o.includes("<!--")&&(o=o.substring(0,o.indexOf("<!--"))),o.trim()==="block")continue;a=`::: block
${a}`;let l=`<%? ${o.trim()} %>`;o=`<% ${o.trim()} %>`,i=i.replaceAll(l,`${a}
${l}`),i=i.replaceAll(o,a),i=i.replaceAll(s,"")}for(i=this.footnoteProcessor.transformFootNotes(i);;){let n=this.variableRegex.exec(i);if(n==null)break;let s=n[1].trim();r[s]!=null&&(i=i.replaceAll(n[0],`${r[s]}`))}for(;;){let n=this.optionalRegex.exec(i);if(n==null)break;n.index===this.optionalRegex.lastIndex&&this.optionalRegex.lastIndex++,i=i.replaceAll(n[0],"")}return i}};var Hp=class{multipleFileProcessor;blockProcessor;mediaProcessor;internalLinkProcessor;footnoteProcessor;latexProcessor;formatProcessor;excalidrawProcessor;mermaidProcessor;fragmentProcessor;gridProcessor;commentProcessor;dropProcessor;autoClosingProcessor;emojiProcessor;iconsProcessor;debugViewProcessor;calloutProcessor;templateProcessor;chartProcessor;defaultBackgroundProcessor;referenceProcessor;skipSlideProcessor;stripLatexBackTicks;constructor(t){this.multipleFileProcessor=new il(t),this.blockProcessor=new op,this.mediaProcessor=new qp(t),this.internalLinkProcessor=new Fp(t),this.footnoteProcessor=new Qa,this.latexProcessor=new Lp,this.formatProcessor=new Cp,this.excalidrawProcessor=new Ap(t),this.mermaidProcessor=new Mp,this.fragmentProcessor=new Ip,this.gridProcessor=new Np,this.commentProcessor=new Ep,this.dropProcessor=new Tp,this.autoClosingProcessor=new sp,this.emojiProcessor=new Op,this.iconsProcessor=new $p,this.debugViewProcessor=new kp,this.calloutProcessor=new ap,this.templateProcessor=new Bp(t),this.chartProcessor=new lp,this.defaultBackgroundProcessor=new Rp,this.referenceProcessor=new zp,this.skipSlideProcessor=new Up,this.stripLatexBackTicks={process:(r,i)=>r.replaceAll("%`%","")}}process(t,r){Os.getInstance().options=r;let i=this.trimEnding(t,r);return r.log&&this.log("begin",t,i),i=this.processTemplates(i,r),i=this.processSlideStructure(i,r),i=this.processContent(i,r),r.log&&this.log("end",t,i),i}processWithLog(t,r,i){let n=i.processor.process(t,r);return r.log&&this.log(i.name,t,n),n}processTemplates(t,r){let i=t,n,s=0;for(;i!==n;)if(s++,n&&(i=n),n=this.processWithLog(i,r,{name:"multipleFileProcessor",processor:this.multipleFileProcessor}),n=this.processWithLog(n,r,{name:"templateProcessor",processor:this.templateProcessor}),r.defaultTemplate=null,s>9){console.warn("WARNING: Circuit in template hierarchy detected!");break}return r.log&&this.log("merge & template",t,n),n||i}processSlideStructure(t,r){return[{name:"skipSlideProcessor",processor:this.skipSlideProcessor},{name:"debugViewProcessor",processor:this.debugViewProcessor},{name:"autoClosingProcessor",processor:this.autoClosingProcessor},{name:"defaultBackgroundProcessor",processor:this.defaultBackgroundProcessor}].reduce((i,n)=>this.processWithLog(i,r,n),t)}processContent(t,r){return[{name:"latexProcessor",processor:this.latexProcessor},{name:"calloutProcessor",processor:this.calloutProcessor},{name:"emojiProcessor",processor:this.emojiProcessor},{name:"iconsProcessor",processor:this.iconsProcessor},{name:"formatProcessor",processor:this.formatProcessor},{name:"mermaidProcessor",processor:this.mermaidProcessor},{name:"blockProcessor",processor:this.blockProcessor},{name:"footnoteProcessor",processor:this.footnoteProcessor},{name:"excalidrawProcessor",processor:this.excalidrawProcessor},{name:"mediaProcessor",processor:this.mediaProcessor},{name:"internalLinkProcessor",processor:this.internalLinkProcessor},{name:"referenceProcessor",processor:this.referenceProcessor},{name:"fragmentProcessor",processor:this.fragmentProcessor},{name:"dropProcessor",processor:this.dropProcessor},{name:"gridProcessor",processor:this.gridProcessor},{name:"commentProcessor",processor:this.commentProcessor},{name:"chartProcessor",processor:this.chartProcessor},{name:"stripLatexBackTicks",processor:this.stripLatexBackTicks}].reduce((i,n)=>this.processWithLog(i,r,n),t)}postProcess=t=>{let r=t.findAll("p");for(let i of r)i.innerText.startsWith(":::")&&i.remove()};trimEnding(t,r){let i=`${t}
`,n=new RegExp(r.separator,"gmi").exec(i);if(n!==null){let[s]=n;if(i.endsWith(s))return i.substring(0,i.lastIndexOf(s))}if(n=new RegExp(r.verticalSeparator,"gmi").exec(i),n!==null){let[s]=n;if(i.endsWith(s))return i.substring(0,i.lastIndexOf(s))}return t}log(t,r,i){r!==i&&console.debug(t,JSON.stringify({before:r,after:i}))}};var LP=uP;function Po(){return LP}function tQ(e){LP=e}function el(e,t,r){return e.split(new RegExp(t.separator,"gmi")).map(i=>i.split(new RegExp(t.verticalSeparator,"gmi")).map(n=>r(n)).join(t.verticalSeparator)).join(t.separator)}function Pp(e,t){return DP(e,r=>{let i=r.split(/(%`%[\s\S]+?%`%)/g);for(let n=0;n<i.length;n++)i[n].startsWith("%`%")||(i[n]=t(i[n]));return i.join("")})}function DP(e,t){let i=/^(\s*)(`{3,})(.*?)[\r\n][\s\S]*?(?:\r|\n|\r\n)\1\2(?=$|[\r\n])/gm.exec(e);return i?t(e.substring(0,i.index))+i[0]+DP(e.substring(i.index+i[0].length),t):t(e)}var Eu=class{app;fileSystem;settings;processor;vaultDir;pluginDir;distDir;exportDir;cssSearchPath;highlightSearchPath;themeSearchPath;htmlTemplateSearchPath;images=new Set;isCollecting=!1;yamlRegex=/^(---\n[\s\S]*?\n---\n)/;constructor(t,r){if(this.app=t,!(this.app.vault.adapter instanceof nl.FileSystemAdapter))throw new Error("Slides Extended is only supported on the desktop");if(this.fileSystem=this.app.vault.adapter,this.settings=r,this.vaultDir=`${this.fileSystem.getBasePath()}/`,this.pluginDir=tn.default.join(this.vaultDir,this.app.vault.configDir,"plugins/slides-extended/"),this.distDir=tn.default.join(this.pluginDir,"dist/"),this.exportDir=tn.default.join(this.vaultDir,this.settings.exportDirectory),this.cssSearchPath=[tn.default.join(this.pluginDir)],this.highlightSearchPath=[tn.default.join(this.pluginDir,"plugin/highlight")],this.themeSearchPath=[tn.default.join(this.pluginDir,"css"),tn.default.join(this.distDir,"theme")],this.htmlTemplateSearchPath=[tn.default.join(this.pluginDir,"template")],this.settings.themeDirectory){let i=tn.default.join(this.vaultDir,this.settings.themeDirectory);this.cssSearchPath.unshift(i),this.highlightSearchPath.unshift(i),this.themeSearchPath.unshift(i),this.htmlTemplateSearchPath.unshift(`${i}/html`)}tQ(this),this.processor=new Hp(this)}get markdownProcessor(){return this.processor}get vaultName(){return this.fileSystem.getName()}get vaultDirectory(){return this.vaultDir}get pluginDirectory(){return this.pluginDir}get distDirectory(){return this.distDir}get exportDirectory(){return this.exportDir}getLocalCssSearchPath(){return this.cssSearchPath}getThemeSearchPath(){return this.themeSearchPath}getHighlightSearchPath(){return this.highlightSearchPath}getHtmlTemplateSearchPath(){return this.htmlTemplateSearchPath}getSettings(){return this.settings}getTFile(t){t.startsWith("[[")&&t.endsWith("]]")&&(t=t.substring(2,t.length-2).trim()),t=t.replaceAll("%20"," ");let r=this.settings.exportDirectory.startsWith("/")?this.settings.exportDirectory.substring(1):this.settings.exportDirectory,n=this.app.vault.getFiles().filter(a=>!a.path.contains(r)),s=n.filter(a=>a.path.contains(t)),o=null;if(s.length===1&&(o=s.first()),!o&&t.toLowerCase().endsWith(".excalidraw")){let a=n.filter(l=>l.path.contains(`${t}.svg`));a?o=a.first():(a=n.filter(l=>l.path.contains(`${t}.png`)),a&&(o=a.first()))}if(!o&&s.length>1){let a=0;for(let l of s){let c=this.similarity(t,l.path);c>a&&(a=c,o=l)}}return o}getAbsolutePath(t){let r=this.getTFile(t);return this.absolute(r?.path)}getRelativePath(t){return t==null?null:this.getTFile(t)?.path}absolute(t){return t?this.fileSystem.getFullPath(t):null}findFile(t){let r=this.getTFile(t);return console.debug("findFile",t,r),r?r.path:t}findMediaFile(t){let r="";Po().shouldCollect()||(r="/");let i=this.getTFile(t);return console.debug("findMediaFile",t,i,r),i?r+i.path:t}parseFile(t,r){let i=this.getTFile(t);if(!i)return null;let n=this.absolute(i?.path),s=(0,FP.readFileSync)(n,{encoding:"utf-8"});if(r===null){let l=this.yamlRegex.exec(s);return l?s.slice(l[0].length):s}let o=this.app.metadataCache.getFileCache(i),a=(0,nl.resolveSubpath)(o,r);return console.log("parseFile, cache, resolved",o,a),a&&a.start&&a.start.line!=null?a.end&&a.end.line!=null?this.substring(s,a.start.line,a.start.col,a.end.line,a.end.col):this.substring(s,a.start.line,a.start.col,-1,-1):`![[${t}#${r}]]`}async fetchRemoteMarkdown(t){let r=/!\[\[(file:.+?\.md)(\|[^\]]+)?\]\]/gi,i=/(!\[[^\]]*?\]\()(file:.+?\.md(?:#.+?)?)(\))/i;if(t=t.replace(r,(n,s,o)=>{let a=s,l=o?o.slice(1):"",c=new URL(a);return`![${l}](${c})`}),i.test(t)){let n=t.split(`
`);for(let s=0;s<n.length;s++){let o=n[s],a=i.exec(o);if(a){let l=a[0],c=a[2],u=await this.readRemoteFile(c);u&&(n[s]=o.replace(l,u))}}t=n.join(`
`)}return t}async readRemoteFile(t){let r=t.indexOf("#");r>-1&&(t=t.substring(0,r));let i=t.replace("file://",nl.Platform.resourcePathPrefix),n=await fetch(i).catch(s=>new Response(null,{status:404,statusText:s.messge}));if(n.ok){if(n.blob){let o=await(await n.blob()).arrayBuffer(),a=Buffer.from(o).toString();return this.yamlRegex.test(a)?this.yamlRegex.exec(a)[1]:a}console.info("open a bug to handle this kind of response. Include this message",n)}return null}substring(t,r,i,n,s){let o="",a=t.split(`
`),l=a.length;n>-1&&(l=n);for(let c=r;c<=l;c++){let u=a[c];if(u!=null)if(c===r)o+=`${u.substring(i)}
`;else if(c===l){let f=u;s>-1&&(f=u.substring(0,s)),f.includes("^")&&(f=f.substring(0,f.lastIndexOf("^"))),o+=`${f}
`}else o+=`${u}
`}return o}similarity(t,r){let i=t,n=r;t.length<r.length&&(i=r,n=t);let s=i.length;return s===0?1:(s-this.editDistance(i,n))/s}editDistance(t,r){t=t.toLowerCase(),r=r.toLowerCase();let i=[];for(let n=0;n<=t.length;n++){let s=n;for(let o=0;o<=r.length;o++)if(n===0)i[o]=o;else if(o>0){let a=i[o-1];t.charAt(n-1)!==r.charAt(o-1)&&(a=Math.min(Math.min(a,s),i[o])+1),i[o-1]=s,s=a}n>0&&(i[r.length]=s)}return i[r.length]}resetImageCollection(){console.debug("enable image collection for exported slides, start collecting"),this.images.clear(),this.isCollecting=!0}disableImageCollection(){console.debug("stop collecting images",this.images),this.isCollecting=!1}addMedia(t){this.images.add(t)}getAll(){return Array.of(...this.images)}shouldCollect(){return this.isCollecting}};var jP=require("obsidian"),Vp=class extends jP.EditorSuggest{plugin;constructor(t,r){super(t),this.plugin=r}onTrigger(t,r,i){let n=this.plugin.getViewInstance();return n&&(n.url==="about:blank"&&this.plugin.showView(),n.onLineChanged(t.line)),null}getSuggestions(t){throw new Error("Method not implemented.")}renderSuggestion(t,r){throw new Error("Method not implemented.")}selectSuggestion(t,r){throw new Error("Method not implemented.")}};var Iu=require("obsidian");var A2=St(O2());var hl=class{settings;constructor(t){this.settings=t}getSlideOptions(t,r=!1){let i=j_(this.settings,s=>q_(s)||s===""),n=r?this.getPrintOptions():{};return Object.assign({},np,i,t,n)}getPrintOptions(){return{enableOverview:!1,enableChalkboard:!1,enableMenu:!1,enablePointer:!1,enableCustomControls:!1,enableTimeBar:!1,controls:!1}}getSlidifyOptions(t){return tl(t,["separator","verticalSeparator","notesSeparator"])}getRevealOptions(t){let r=["width","height","margin","minScale","maxScale","controls","controlsTutorial","controlsLayout","controlsBackArrows","progress","slideNumber","showSlideNumber","hashOneBasedIndex","hash","respondToHashChanges","history","keyboard","keyboardCondition","disableLayout","overview","center","touch","loop","rtl","navigationMode","shuffle","fragments","fragmentInURL","embedded","help","pause","showNotes","autoPlayMedia","preloadIframes","autoAnimate","autoAnimateMatcher","autoAnimateEasing","autoAnimateDuration","autoAnimateUnmatched","autoSlide","autoSlideStoppable","autoSlideMethod","defaultTiming","mouseWheel","previewLinks","postMessage","postMessageEvents","focusBodyOnPageVisibilityChange","transition","transitionSpeed","backgroundTransition","pdfMaxPagesPerSlide","pdfSeparateFragments","pdfPageHeightOffset","viewDistance","mobileViewDistance","display","hideInactiveCursor","hideCursorTime","markdown","mermaid"],i=tl(j_(this.settings,Dp),r),n=tl(t,r);return Object.assign({},i,n)}getTemplateSettings(t){let r=["enableOverview","enableChalkboard","enableMenu","enableCustomControls","enableTimeBar","enablePointer"],i=tl(this.settings,r),n=tl(t,r);return Object.assign({},i,n)}parseYamlFrontMatter(t){try{let r=(0,A2.loadFront)(t.replace(/^\uFEFF/,""));return{yamlOptions:NP(r,["__content"]),markdown:r.__content||t}}catch{return{yamlOptions:{},markdown:t}}}};var nn="reveal-preview-view",Nu=class extends Iu.ItemView{url="about:blank";home;onCloseListener;urlRegex=/#\/(\d*)(?:\/(\d*))?(?:\/(\d*))?/;yaml;plugin;constructor(t,r,i,n,s){super(t),this.home=r,this.yaml=new hl(n),this.plugin=i,this.onCloseListener=s,this.addAction("globe","Open in browser",()=>{window.open(r)}),this.addAction("grid","Show grid",()=>{n.showGrid=!n.showGrid,this.reloadIframe()}),this.addAction("refresh","Refresh slides",()=>{this.reloadIframe()}),n.paneMode==="sidebar"&&this.addAction("monitor-x","Close preview",()=>{this.leaf.detach()}),window.addEventListener("message",this.onMessage.bind(this))}onPaneMenu(t,r){super.onPaneMenu(t,r),r==="more-options"&&(t.addSeparator(),t.addItem(i=>{i.setIcon("document").setTitle("Print presentation").onClick(()=>{window.open(`${this.home.toString()}?print-pdf`)})}),t.addItem(i=>{i.setIcon("install").setTitle("Export as html").onClick(()=>{let n=new URL(this.url);n.searchParams.append("export","true"),this.setUrl(n.toString())})}))}onMessage(t){if(t.data.includes("?export")){this.setUrl(t.data.split("?")[0]);return}this.setUrl(t.data,!1);let r=new URL(t.data),i=decodeURI(r.pathname);i=i.substring(i.lastIndexOf("/")+1);let n=this.app.workspace.getActiveViewOfType(Iu.MarkdownView);if(n?.file.name.includes(i)){let s=this.getTargetLine(r,n.data);s&&(n.editor.setCursor(n.editor.lastLine()),n.editor.setCursor({line:s,ch:0}))}}onLineChanged(t){let r=this.app.workspace.getActiveViewOfType(Iu.MarkdownView),n=this.containerEl.children[1].getElementsByTagName("iframe")[0];if(r&&n){let[s,o]=this.getTargetSlide(t,r.data);n.contentWindow.postMessage(`{"method":"setState","args":[{"indexh":${s},"indexv":${o},"paused":false}]}`,this.url)}}getTargetSlide(t,r){let{yamlOptions:i,markdown:n}=this.yaml.parseYamlFrontMatter(r),s=this.yaml.getSlideOptions(i),o=r.indexOf(n),a=r.substring(0,o).split(/^/gm).length,l=this.getSlideLines(n,s),c=t-(a>0?a-1:0),u=null;for(let[f,h]of l.entries())if(h<=c)u=f;else break;if(u){let f=u.split(",");return[Number.parseInt(f[0]),Number.parseInt(f[1])]}return[0,0]}getTargetLine(t,r){let i=t.href.substring(t.href.lastIndexOf("#")),[,n,s]=this.urlRegex.exec(i),{yamlOptions:o,markdown:a}=this.yaml.parseYamlFrontMatter(r),l=this.yaml.getSlideOptions(o),c=r.indexOf(a),u=r.substring(0,c).split(/^/gm).length,f=this.getSlideLines(a,l),h=Number.parseInt(n)||0,d=Number.parseInt(s)||0;return f.get([h,d].join(","))+u}getSlideLines(t,r){let i=new Map,n=this.getIdxOfRegex(/^/gm,t),s=this.getIdxOfRegex(RegExp(r.separator,"gm"),t);for(let u of s)for(let f=0;f<n.length;f++)if(n[f]>u){i.set(f,"h");break}let o=this.getIdxOfRegex(RegExp(r.verticalSeparator,"gm"),t);for(let u of o)for(let f=0;f<n.length;f++)if(n[f]>u){i.set(f,"v");break}i.set(0,"h"),i=new Map([...i].sort((u,f)=>u[0]-f[0]));let a=new Map,l=-1,c=0;for(let[u,f]of i.entries())f==="h"&&(l++,c=0),f==="v"&&c++,a.set([l,c].join(","),u);return a}getIdxOfRegex(t,r){let i=new Array,n;do n=t.exec(r),n&&(n.index===t.lastIndex&&t.lastIndex++,i.push(n.index));while(n);return i}getViewType(){return nn}getDisplayText(){let t=this.plugin.getTargetName();return t?`Preview: ${t}`:"Slide preview"}getIcon(){return"slides"}setUrl(t,r=!0){this.url=t,r&&this.renderView()}onChange(){this.reloadIframe()}async onClose(){window.removeEventListener("message",this.onMessage),this.onCloseListener()}reloadIframe(){this.containerEl.children[1].getElementsByTagName("iframe")[0].contentWindow.postMessage("reload",this.url)}renderView(){let t=this.containerEl.children[1];t.empty(),t.addClass("reveal-preview-view"),t.createEl("iframe",{attr:{src:this.url,sandbox:"allow-scripts allow-same-origin allow-popups"}})}};var j9=St(sH()),q9=require("node:buffer"),M9=require("node:fs"),Cc=St(require("node:path")),NR=St(V6()),lv=require("obsidian");var Pn=St(require("node:path")),id=St(ip());var Q6=St(dk(),1);var Mh=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var AAe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},zh=e=>e.replace(/[[\]\\-]/g,"\\$&"),CAe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),W6=e=>e.join(""),G6=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,c=!1,u=r,f="";e:for(;s<e.length;){let m=e.charAt(s);if((m==="!"||m==="^")&&s===r+1){c=!0,s++;continue}if(m==="]"&&o&&!l){u=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[y,[_,w,v]]of Object.entries(AAe))if(e.startsWith(y,s)){if(f)return["$.",!1,e.length-r,!0];s+=y.length,v?n.push(_):i.push(_),a=a||w;continue e}}if(l=!1,f){m>f?i.push(zh(f)+"-"+zh(m)):m===f&&i.push(zh(m)),f="",s++;continue}if(e.startsWith("-]",s+1)){i.push(zh(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){f=m,s+=2;continue}i.push(zh(m)),s++}if(u<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,e.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!c){let m=i[0].length===2?i[0].slice(-1):i[0];return[CAe(m),!1,u-r,!1]}let h="["+(c?"^":"")+W6(i)+"]",d="["+(c?"":"^")+W6(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,u-r,!0]};var Bi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var PAe=new Set(["!","?","+","*","@"]),Y6=e=>PAe.has(e),IAe="(?!(?:^|/)\\.\\.?(?:$|/))",qy="(?!\\.)",NAe=new Set(["[","."]),$Ae=new Set(["..","."]),FAe=new Set("().*{}+?[]^$\\!"),LAe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hR="[^/]",K6=hR+"*?",J6=hR+"+?",yc=class e{type;#e;#t;#s=!1;#i=[];#o;#v;#p;#a=!1;#u;#l;#c=!1;constructor(t,r,i={}){this.type=t,t&&(this.#t=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#u=this.#e===this?i:this.#e.#u,this.#p=this.#e===this?[]:this.#e.#p,t==="!"&&!this.#e.#a&&this.#p.push(this),this.#v=this.#o?this.#o.#i.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let t of this.#i)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#i.map(t=>String(t)).join("|")+")":this.#l=this.#i.map(t=>String(t)).join("")}#r(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let t;for(;t=this.#p.pop();){if(t.type!=="!")continue;let r=t,i=r.#o;for(;i;){for(let n=r.#v+1;!i.type&&n<i.#i.length;n++)for(let s of t.#i){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#i[n])}r=i,i=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#i.push(r)}}toJSON(){let t=this.type===null?this.#i.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#i.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#v===0)return!0;let t=this.#o;for(let r=0;r<this.#v;r++){let i=t.#i[r];if(!(i instanceof e&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#i.length:0;return this.#v===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let i of this.#i)r.copyIn(i);return r}static#h(t,r,i,n){let s=!1,o=!1,a=-1,l=!1;if(r.type===null){let d=i,p="";for(;d<t.length;){let m=t.charAt(d++);if(s||m==="\\"){s=!s,p+=m;continue}if(o){d===a+1?(m==="^"||m==="!")&&(l=!0):m==="]"&&!(d===a+2&&l)&&(o=!1),p+=m;continue}else if(m==="["){o=!0,a=d,l=!1,p+=m;continue}if(!n.noext&&Y6(m)&&t.charAt(d)==="("){r.push(p),p="";let y=new e(m,r);d=e.#h(t,y,d,n),r.push(y);continue}p+=m}return r.push(p),d}let c=i+1,u=new e(null,r),f=[],h="";for(;c<t.length;){let d=t.charAt(c++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){c===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(c===a+2&&l)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=c,l=!1,h+=d;continue}if(Y6(d)&&t.charAt(c)==="("){u.push(h),h="";let p=new e(d,u);u.push(p),c=e.#h(t,p,c,n);continue}if(d==="|"){u.push(h),h="",f.push(u),u=new e(null,r);continue}if(d===")")return h===""&&r.#i.length===0&&(r.#c=!0),u.push(h),h="",r.push(...f,u),c;h+=d}return r.type=null,r.#t=void 0,r.#i=[t.substring(i-1)],c}static fromGlob(t,r={}){let i=new e(null,void 0,r);return e.#h(t,i,0,r),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#t||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;let a=(this.#u.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#u}toRegExpSource(t){let r=t??!!this.#u.dot;if(this.#e===this&&this.#r(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#i.map(d=>{let[p,m,y,_]=typeof d=="string"?e.#m(d,this.#t,l):d.toRegExpSource(t);return this.#t=this.#t||y,this.#s=this.#s||_,p}).join(""),u="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&$Ae.has(this.#i[0]))){let p=NAe,m=r&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),y=!r&&!t&&p.has(c.charAt(0));u=m?IAe:y?qy:""}let f="";return this.isEnd()&&this.#e.#a&&this.#o?.type==="!"&&(f="(?:$|\\/)"),[u+c+f,Bi(c),this.#t=!!this.#t,this.#s]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#_(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString();return this.#i=[l],this.type=null,this.#t=void 0,[l,Bi(this.toString()),!1,!1]}let o=!i||t||r||!qy?"":this.#_(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#c)a=(this.isStart()&&!r?qy:"")+J6;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?qy:"")+K6+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,Bi(s),this.#t=!!this.#t,this.#s]}#_(t){return this.#i.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(t);return this.#s=this.#s||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#m(t,r,i=!1){let n=!1,s="",o=!1;for(let a=0;a<t.length;a++){let l=t.charAt(a);if(n){n=!1,s+=(FAe.has(l)?"\\":"")+l;continue}if(l==="\\"){a===t.length-1?s+="\\\\":n=!0;continue}if(l==="["){let[c,u,f,h]=G6(t,a);if(f){s+=c,o=o||u,a+=f-1,r=r||h;continue}}if(l==="*"){i&&t==="*"?s+=J6:s+=K6,r=!0;continue}if(l==="?"){s+=hR,r=!0;continue}s+=LAe(l)}return[s,Bi(t),!!r,o]}};var vc=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var Tr=(e,t,r={})=>(Mh(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Zr(t,r).match(e)),DAe=/^\*+([^+@!?\*\[\(]*)$/,jAe=e=>t=>!t.startsWith(".")&&t.endsWith(e),qAe=e=>t=>t.endsWith(e),MAe=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),zAe=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),UAe=/^\*+\.\*+$/,BAe=e=>!e.startsWith(".")&&e.includes("."),HAe=e=>e!=="."&&e!==".."&&e.includes("."),VAe=/^\.\*+$/,WAe=e=>e!=="."&&e!==".."&&e.startsWith("."),GAe=/^\*+$/,YAe=e=>e.length!==0&&!e.startsWith("."),KAe=e=>e.length!==0&&e!=="."&&e!=="..",JAe=/^\?+([^+@!?\*\[\(]*)?$/,ZAe=([e,t=""])=>{let r=e9([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},XAe=([e,t=""])=>{let r=t9([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},QAe=([e,t=""])=>{let r=t9([e]);return t?i=>r(i)&&i.endsWith(t):r},eCe=([e,t=""])=>{let r=e9([e]);return t?i=>r(i)&&i.endsWith(t):r},e9=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},t9=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},r9=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Z6={win32:{sep:"\\"},posix:{sep:"/"}},tCe=r9==="win32"?Z6.win32.sep:Z6.posix.sep;Tr.sep=tCe;var Gt=Symbol("globstar **");Tr.GLOBSTAR=Gt;var rCe="[^/]",iCe=rCe+"*?",nCe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sCe="(?:(?!(?:\\/|^)\\.).)*?",oCe=(e,t={})=>r=>Tr(r,e,t);Tr.filter=oCe;var _i=(e,t={})=>Object.assign({},e,t),aCe=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tr;let t=Tr;return Object.assign((i,n,s={})=>t(i,n,_i(e,s)),{Minimatch:class extends t.Minimatch{constructor(n,s={}){super(n,_i(e,s))}static defaults(n){return t.defaults(_i(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,s,o={}){super(n,s,_i(e,o))}static fromGlob(n,s={}){return t.AST.fromGlob(n,_i(e,s))}},unescape:(i,n={})=>t.unescape(i,_i(e,n)),escape:(i,n={})=>t.escape(i,_i(e,n)),filter:(i,n={})=>t.filter(i,_i(e,n)),defaults:i=>t.defaults(_i(e,i)),makeRe:(i,n={})=>t.makeRe(i,_i(e,n)),braceExpand:(i,n={})=>t.braceExpand(i,_i(e,n)),match:(i,n,s={})=>t.match(i,n,_i(e,s)),sep:t.sep,GLOBSTAR:Gt})};Tr.defaults=aCe;var i9=(e,t={})=>(Mh(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Q6.default)(e));Tr.braceExpand=i9;var lCe=(e,t={})=>new Zr(e,t).makeRe();Tr.makeRe=lCe;var cCe=(e,t,r={})=>{let i=new Zr(t,r);return e=e.filter(n=>i.match(n)),i.options.nonull&&!e.length&&e.push(t),e};Tr.match=cCe;var X6=/[?*]|[+@!]\(.*?\)|\[|\]/,uCe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){Mh(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||r9,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!X6.test(s[2]))&&!X6.test(s[3]),c=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(u=>this.parse(u))];if(c)return[s[0],...s.slice(1).map(u=>this.parse(u))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let n=0;n<t[i].length;n++)t[i][n]==="**"&&(t[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){let s=t[n];n===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(n,1),n--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){let n=t[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],c=i[n+3];if(a!==".."||!l||l==="."||l===".."||!c||c==="."||c==="..")continue;r=!0,i.splice(n,1);let u=i.slice(0);u[n]="**",t.push(u),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){let n=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(n){t[r]=[],t[i]=n;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let n=0,s=0,o=[],a="";for(;n<t.length&&s<r.length;)if(t[n]===r[s])o.push(a==="b"?r[s]:t[n]),n++,s++;else if(i&&t[n]==="**"&&r[s]===t[n+1])o.push(t[n]),n++;else if(i&&r[s]==="**"&&t[n]===r[s+1])o.push(r[s]),s++;else if(t[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[n]),n++,s++}else if(r[s]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,i=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let n=this.options;if(this.isWindows){let m=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!m&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),_=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!_&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),v=y?3:m?0:void 0,g=w?3:_?0:void 0;if(typeof v=="number"&&typeof g=="number"){let[T,N]=[t[v],r[g]];T.toLowerCase()===N.toLowerCase()&&(r[g]=T,g>v?r=r.slice(g):v>g&&(t=t.slice(v)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,l=t.length,c=r.length;o<l&&a<c;o++,a++){this.debug("matchOne loop");var u=r[a],f=t[o];if(this.debug(r,u,f),u===!1)return!1;if(u===Gt){this.debug("GLOBSTAR",[r,u,f]);var h=o,d=a+1;if(d===c){for(this.debug("** at the end");o<l;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<l;){var p=t[h];if(this.debug(`
globstar while`,t,h,r,d,p),this.matchOne(t.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,l,p),!0;if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,t,h,r,d),h===l))}let m;if(typeof u=="string"?(m=f===u,this.debug("string match",u,f,m)):(m=u.test(f),this.debug("pattern match",u,f,m)),!m)return!1}if(o===l&&a===c)return!0;if(o===l)return i;if(a===c)return o===l-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return i9(this.pattern,this.options)}parse(t){Mh(t);let r=this.options;if(t==="**")return Gt;if(t==="")return"";let i,n=null;(i=t.match(GAe))?n=r.dot?KAe:YAe:(i=t.match(DAe))?n=(r.nocase?r.dot?zAe:MAe:r.dot?qAe:jAe)(i[1]):(i=t.match(JAe))?n=(r.nocase?r.dot?XAe:ZAe:r.dot?QAe:eCe)(i):(i=t.match(UAe))?n=r.dot?HAe:BAe:(i=t.match(VAe))&&(n=WAe);let s=yc.fromGlob(t,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?iCe:r.dot?nCe:sCe,n=new Set(r.nocase?["i"]:[]),s=t.map(l=>{let c=l.map(u=>{if(u instanceof RegExp)for(let f of u.flags.split(""))n.add(f);return typeof u=="string"?uCe(u):u===Gt?Gt:u._src});return c.forEach((u,f)=>{let h=c[f+1],d=c[f-1];u!==Gt||d===Gt||(d===void 0?h!==void 0&&h!==Gt?c[f+1]="(?:\\/|"+i+"\\/)?"+h:c[f]=i:h===void 0?c[f-1]=d+"(?:\\/|"+i+")?":h!==Gt&&(c[f-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,c[f+1]=Gt))}),c.filter(u=>u!==Gt).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let i=this.options;this.isWindows&&(t=t.split("\\").join("/"));let n=this.slashSplit(t);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],c=n;if(i.matchBase&&l.length===1&&(c=[o]),this.matchOne(c,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tr.defaults(t).Minimatch}};Tr.AST=yc;Tr.Minimatch=Zr;Tr.escape=vc;Tr.unescape=Bi;var T9=require("node:url");var _c=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s9=new Set,dR=typeof process=="object"&&process?process:{},o9=(e,t,r,i)=>{typeof dR.emitWarning=="function"?dR.emitWarning(e,t,r,i):console.error(`[${r}] ${t}: ${e}`)},My=globalThis.AbortController,n9=globalThis.AbortSignal;if(typeof My>"u"){n9=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},My=class{constructor(){t()}signal=new n9;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let e=dR.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,o9("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var fCe=e=>!s9.has(e),F5e=Symbol("type"),co=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),a9=e=>co(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?bc:null:null,bc=class extends Array{constructor(t){super(t),this.fill(0)}},pR=class e{heap;length;static#e=!1;static create(t){let r=a9(t);if(!r)return[];e.#e=!0;let i=new e(t,r);return e.#e=!1,i}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Uh=class e{#e;#t;#s;#i;#o;#v;#p;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#u;#l;#c;#r;#h;#_;#m;#g;#T;#y;#O;#S;#w;#b;#k;#d;#C;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#w,sizes:t.#O,keyMap:t.#l,keyList:t.#c,valList:t.#r,next:t.#h,prev:t.#_,get head(){return t.#m},get tail(){return t.#g},free:t.#T,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,i,n,s)=>t.#F(r,i,n,s),moveToTail:r=>t.#j(r),indexes:r=>t.#R(r),rindexes:r=>t.#A(r),isStale:r=>t.#E(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#u}get size(){return this.#a}get fetchMethod(){return this.#v}get memoMethod(){return this.#p}get dispose(){return this.#s}get onInsert(){return this.#i}get disposeAfter(){return this.#o}constructor(t){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,onInsert:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:y,fetchMethod:_,memoMethod:w,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:g,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:N,ignoreFetchAbort:R}=t;if(r!==0&&!co(r))throw new TypeError("max option must be a nonnegative integer");let A=r?a9(r):Array;if(!A)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#p=w,_!==void 0&&typeof _!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#v=_,this.#k=!!_,this.#l=new Map,this.#c=new Array(r).fill(void 0),this.#r=new Array(r).fill(void 0),this.#h=new A(r),this.#_=new A(r),this.#m=0,this.#g=0,this.#T=pR.create(r),this.#a=0,this.#u=0,typeof c=="function"&&(this.#s=c),typeof u=="function"&&(this.#i=u),typeof f=="function"?(this.#o=f,this.#y=[]):(this.#o=void 0,this.#y=void 0),this.#b=!!this.#s,this.#C=!!this.#i,this.#d=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!R,this.maxEntrySize!==0){if(this.#t!==0&&!co(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!co(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!g,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=co(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!co(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#n()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let C="LRU_CACHE_UNBOUNDED";fCe(C)&&(s9.add(C),o9("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",C,e))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#n(){let t=new bc(this.#e),r=new bc(this.#e);this.#w=t,this.#S=r,this.#P=(s,o,a=_c.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#E(s)&&this.#I(this.#c[s],"expire")},o+1);l.unref&&l.unref()}},this.#N=s=>{r[s]=t[s]!==0?_c.now():0},this.#x=(s,o)=>{if(t[o]){let a=t[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let c=s.now-l;s.remainingTTL=a-c}};let i=0,n=()=>{let s=_c.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=t[o],l=r[o];if(!a||!l)return 1/0;let c=(i||n())-l;return a-c},this.#E=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(i||n())-o>a}}#N=()=>{};#x=()=>{};#P=()=>{};#E=()=>!1;#M(){let t=new bc(this.#e);this.#u=0,this.#O=t,this.#$=r=>{this.#u-=t[r],t[r]=0},this.#z=(r,i,n,s)=>{if(this.#f(i))return 0;if(!co(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!co(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#L=(r,i,n)=>{if(t[r]=i,this.#t){let s=this.#t-t[r];for(;this.#u>s;)this.#D(!0)}this.#u+=t[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#u)}}#$=t=>{};#L=(t,r,i)=>{};#z=(t,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#g;!(!this.#U(r)||((t||!this.#E(r))&&(yield r),r===this.#m));)r=this.#_[r]}*#A({allowStale:t=this.allowStale}={}){if(this.#a)for(let r=this.#m;!(!this.#U(r)||((t||!this.#E(r))&&(yield r),r===this.#g));)r=this.#h[r]}#U(t){return t!==void 0&&this.#l.get(this.#c[t])===t}*entries(){for(let t of this.#R())this.#r[t]!==void 0&&this.#c[t]!==void 0&&!this.#f(this.#r[t])&&(yield[this.#c[t],this.#r[t]])}*rentries(){for(let t of this.#A())this.#r[t]!==void 0&&this.#c[t]!==void 0&&!this.#f(this.#r[t])&&(yield[this.#c[t],this.#r[t]])}*keys(){for(let t of this.#R()){let r=this.#c[t];r!==void 0&&!this.#f(this.#r[t])&&(yield r)}}*rkeys(){for(let t of this.#A()){let r=this.#c[t];r!==void 0&&!this.#f(this.#r[t])&&(yield r)}}*values(){for(let t of this.#R())this.#r[t]!==void 0&&!this.#f(this.#r[t])&&(yield this.#r[t])}*rvalues(){for(let t of this.#A())this.#r[t]!==void 0&&!this.#f(this.#r[t])&&(yield this.#r[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let i of this.#R()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&t(s,this.#c[i],this))return this.get(this.#c[i],r)}}forEach(t,r=this){for(let i of this.#R()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&t.call(r,s,this.#c[i],this)}}rforEach(t,r=this){for(let i of this.#A()){let n=this.#r[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&t.call(r,s,this.#c[i],this)}}purgeStale(){let t=!1;for(let r of this.#A({allowStale:!0}))this.#E(r)&&(this.#I(this.#c[r],"expire"),t=!0);return t}info(t){let r=this.#l.get(t);if(r===void 0)return;let i=this.#r[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#w&&this.#S){let o=this.#w[r],a=this.#S[r];if(o&&a){let l=o-(_c.now()-a);s.ttl=l,s.start=Date.now()}}return this.#O&&(s.size=this.#O[r]),s}dump(){let t=[];for(let r of this.#R({allowStale:!0})){let i=this.#c[r],n=this.#r[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#w&&this.#S){o.ttl=this.#w[r];let a=_c.now()-this.#S[r];o.start=Math.floor(Date.now()-a)}this.#O&&(o.size=this.#O[r]),t.unshift([i,o])}return t}load(t){this.clear();for(let[r,i]of t){if(i.start){let n=Date.now()-i.start;i.start=_c.now()-n}this.set(r,i.value,i)}}set(t,r,i={}){if(r===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,u=this.#z(t,r,i.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#I(t,"set"),this;let f=this.#a===0?void 0:this.#l.get(t);if(f===void 0)f=this.#a===0?this.#g:this.#T.length!==0?this.#T.pop():this.#a===this.#e?this.#D(!1):this.#a,this.#c[f]=t,this.#r[f]=r,this.#l.set(t,f),this.#h[this.#g]=f,this.#_[f]=this.#g,this.#g=f,this.#a++,this.#L(f,u,l),l&&(l.set="add"),c=!1,this.#C&&this.#i?.(r,t,"add");else{this.#j(f);let h=this.#r[f];if(r!==h){if(this.#k&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#b&&this.#s?.(d,t,"set"),this.#d&&this.#y?.push([d,t,"set"]))}else o||(this.#b&&this.#s?.(h,t,"set"),this.#d&&this.#y?.push([h,t,"set"]));if(this.#$(f),this.#L(f,u,l),this.#r[f]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update");this.#C&&this.onInsert?.(r,t,r===h?"update":"replace")}if(n!==0&&!this.#w&&this.#n(),this.#w&&(c||this.#P(f,n,s),l&&this.#x(l,f)),!o&&this.#d&&this.#y){let h=this.#y,d;for(;d=h?.shift();)this.#o?.(...d)}return this}pop(){try{for(;this.#a;){let t=this.#r[this.#m];if(this.#D(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#d&&this.#y){let t=this.#y,r;for(;r=t?.shift();)this.#o?.(...r)}}}#D(t){let r=this.#m,i=this.#c[r],n=this.#r[r];return this.#k&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#b||this.#d)&&(this.#b&&this.#s?.(n,i,"evict"),this.#d&&this.#y?.push([n,i,"evict"])),this.#$(r),t&&(this.#c[r]=void 0,this.#r[r]=void 0,this.#T.push(r)),this.#a===1?(this.#m=this.#g=0,this.#T.length=0):this.#m=this.#h[r],this.#l.delete(i),this.#a--,r}has(t,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(t);if(s!==void 0){let o=this.#r[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#E(s))n&&(n.has="stale",this.#x(n,s));else return i&&this.#N(s),n&&(n.has="hit",this.#x(n,s)),!0}else n&&(n.has="miss");return!1}peek(t,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(t);if(n===void 0||!i&&this.#E(n))return;let s=this.#r[n];return this.#f(s)?s.__staleWhileFetching:s}#F(t,r,i,n){let s=r===void 0?void 0:this.#r[r];if(this.#f(s))return s;let o=new My,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},c=(m,y=!1)=>{let{aborted:_}=o.signal,w=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(_&&!y?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,w&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),_&&!w&&!y)return f(o.signal.reason);let v=d;return this.#r[r]===d&&(m===void 0?v.__staleWhileFetching?this.#r[r]=v.__staleWhileFetching:this.#I(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),f(m)),f=m=>{let{aborted:y}=o.signal,_=y&&i.allowStaleOnFetchAbort,w=_||i.allowStaleOnFetchRejection,v=w||i.noDeleteOnFetchRejection,g=d;if(this.#r[r]===d&&(!v||g.__staleWhileFetching===void 0?this.#I(t,"fetch"):_||(this.#r[r]=g.__staleWhileFetching)),w)return i.status&&g.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),g.__staleWhileFetching;if(g.__returned===g)throw m},h=(m,y)=>{let _=this.#v?.(t,s,l);_&&_ instanceof Promise&&_.then(w=>m(w===void 0?void 0:w),y),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=w=>c(w,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(c,u),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...l.options,status:void 0}),r=this.#l.get(t)):this.#r[r]=p,p}#f(t){if(!this.#k)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof My}async fetch(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:y=!1,status:_,signal:w}=r;if(!this.#k)return _&&(_.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:_});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:_,signal:w},g=this.#l.get(t);if(g===void 0){_&&(_.fetch="miss");let T=this.#F(t,g,v,m);return T.__returned=T}else{let T=this.#r[g];if(this.#f(T)){let k=i&&T.__staleWhileFetching!==void 0;return _&&(_.fetch="inflight",k&&(_.returnedStale=!0)),k?T.__staleWhileFetching:T.__returned=T}let N=this.#E(g);if(!y&&!N)return _&&(_.fetch="hit"),this.#j(g),n&&this.#N(g),_&&this.#x(_,g),T;let R=this.#F(t,g,v,m),C=R.__staleWhileFetching!==void 0&&i;return _&&(_.fetch=N?"stale":"refresh",C&&N&&(_.returnedStale=!0)),C?R.__staleWhileFetching:R.__returned=R}}async forceFetch(t,r={}){let i=await this.fetch(t,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(t,r={}){let i=this.#p;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let l=i(t,a,{options:o,context:n});return this.set(t,l,o),l}get(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(t);if(a!==void 0){let l=this.#r[a],c=this.#f(l);return o&&this.#x(o,a),this.#E(a)?(o&&(o.get="stale"),c?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#I(t,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(this.#j(a),n&&this.#N(a),l))}else o&&(o.get="miss")}#B(t,r){this.#_[r]=t,this.#h[t]=r}#j(t){t!==this.#g&&(t===this.#m?this.#m=this.#h[t]:this.#B(this.#_[t],this.#h[t]),this.#B(this.#g,t),this.#g=t)}delete(t){return this.#I(t,"delete")}#I(t,r){let i=!1;if(this.#a!==0){let n=this.#l.get(t);if(n!==void 0)if(i=!0,this.#a===1)this.#q(r);else{this.#$(n);let s=this.#r[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#b||this.#d)&&(this.#b&&this.#s?.(s,t,r),this.#d&&this.#y?.push([s,t,r])),this.#l.delete(t),this.#c[n]=void 0,this.#r[n]=void 0,n===this.#g)this.#g=this.#_[n];else if(n===this.#m)this.#m=this.#h[n];else{let o=this.#_[n];this.#h[o]=this.#h[n];let a=this.#h[n];this.#_[a]=this.#_[n]}this.#a--,this.#T.push(n)}}if(this.#d&&this.#y?.length){let n=this.#y,s;for(;s=n?.shift();)this.#o?.(...s)}return i}clear(){return this.#q("delete")}#q(t){for(let r of this.#A({allowStale:!0})){let i=this.#r[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#c[r];this.#b&&this.#s?.(i,n,t),this.#d&&this.#y?.push([i,n,t])}}if(this.#l.clear(),this.#r.fill(void 0),this.#c.fill(void 0),this.#w&&this.#S&&(this.#w.fill(0),this.#S.fill(0)),this.#O&&this.#O.fill(0),this.#m=0,this.#g=0,this.#T.length=0,this.#u=0,this.#a=0,this.#d&&this.#y){let r=this.#y,i;for(;i=r?.shift();)this.#o?.(...i)}}};var xc=require("node:path"),y9=require("node:url"),Cn=require("fs"),wCe=St(require("node:fs"),1),ho=require("node:fs/promises");var Gy=require("node:events"),wR=St(require("node:stream"),1),h9=require("node:string_decoder"),l9=typeof process=="object"&&process?process:{stdout:null,stderr:null},hCe=e=>!!e&&typeof e=="object"&&(e instanceof fo||e instanceof wR.default||dCe(e)||pCe(e)),dCe=e=>!!e&&typeof e=="object"&&e instanceof Gy.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==wR.default.Writable.prototype.pipe,pCe=e=>!!e&&typeof e=="object"&&e instanceof Gy.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function",cs=Symbol("EOF"),us=Symbol("maybeEmitEnd"),uo=Symbol("emittedEnd"),zy=Symbol("emittingEnd"),Bh=Symbol("emittedError"),Uy=Symbol("closed"),c9=Symbol("read"),By=Symbol("flush"),u9=Symbol("flushChunk"),Hi=Symbol("encoding"),wc=Symbol("decoder"),Dt=Symbol("flowing"),Hh=Symbol("paused"),Sc=Symbol("resume"),jt=Symbol("buffer"),Or=Symbol("pipes"),qt=Symbol("bufferLength"),mR=Symbol("bufferPush"),Hy=Symbol("bufferShift"),fr=Symbol("objectMode"),mt=Symbol("destroyed"),gR=Symbol("error"),yR=Symbol("emitData"),f9=Symbol("emitEnd"),vR=Symbol("emitEnd2"),On=Symbol("async"),_R=Symbol("abort"),Vy=Symbol("aborted"),Vh=Symbol("signal"),xa=Symbol("dataListeners"),Xr=Symbol("discarded"),Wh=e=>Promise.resolve().then(e),mCe=e=>e(),gCe=e=>e==="end"||e==="finish"||e==="prefinish",yCe=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,vCe=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Wy=class{src;dest;opts;ondrain;constructor(t,r,i){this.src=t,this.dest=r,this.opts=i,this.ondrain=()=>t[Sc](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},bR=class extends Wy{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,i){super(t,r,i),this.proxyErrors=n=>r.emit("error",n),t.on("error",this.proxyErrors)}},_Ce=e=>!!e.objectMode,bCe=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",fo=class extends Gy.EventEmitter{[Dt]=!1;[Hh]=!1;[Or]=[];[jt]=[];[fr];[Hi];[On];[wc];[cs]=!1;[uo]=!1;[zy]=!1;[Uy]=!1;[Bh]=null;[qt]=0;[mt]=!1;[Vh];[Vy]=!1;[xa]=0;[Xr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");_Ce(r)?(this[fr]=!0,this[Hi]=null):bCe(r)?(this[Hi]=r.encoding,this[fr]=!1):(this[fr]=!1,this[Hi]=null),this[On]=!!r.async,this[wc]=this[Hi]?new h9.StringDecoder(this[Hi]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[jt]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Or]});let{signal:i}=r;i&&(this[Vh]=i,i.aborted?this[_R]():i.addEventListener("abort",()=>this[_R]()))}get bufferLength(){return this[qt]}get encoding(){return this[Hi]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[fr]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[On]}set async(t){this[On]=this[On]||!!t}[_R](){this[Vy]=!0,this.emit("abort",this[Vh]?.reason),this.destroy(this[Vh]?.reason)}get aborted(){return this[Vy]}set aborted(t){}write(t,r,i){if(this[Vy])return!1;if(this[cs])throw new Error("write after end");if(this[mt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[On]?Wh:mCe;if(!this[fr]&&!Buffer.isBuffer(t)){if(vCe(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(yCe(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[fr]?(this[Dt]&&this[qt]!==0&&this[By](!0),this[Dt]?this.emit("data",t):this[mR](t),this[qt]!==0&&this.emit("readable"),i&&n(i),this[Dt]):t.length?(typeof t=="string"&&!(r===this[Hi]&&!this[wc]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Hi]&&(t=this[wc].write(t)),this[Dt]&&this[qt]!==0&&this[By](!0),this[Dt]?this.emit("data",t):this[mR](t),this[qt]!==0&&this.emit("readable"),i&&n(i),this[Dt]):(this[qt]!==0&&this.emit("readable"),i&&n(i),this[Dt])}read(t){if(this[mt])return null;if(this[Xr]=!1,this[qt]===0||t===0||t&&t>this[qt])return this[us](),null;this[fr]&&(t=null),this[jt].length>1&&!this[fr]&&(this[jt]=[this[Hi]?this[jt].join(""):Buffer.concat(this[jt],this[qt])]);let r=this[c9](t||null,this[jt][0]);return this[us](),r}[c9](t,r){if(this[fr])this[Hy]();else{let i=r;t===i.length||t===null?this[Hy]():typeof i=="string"?(this[jt][0]=i.slice(t),r=i.slice(0,t),this[qt]-=t):(this[jt][0]=i.subarray(t),r=i.subarray(0,t),this[qt]-=t)}return this.emit("data",r),!this[jt].length&&!this[cs]&&this.emit("drain"),r}end(t,r,i){return typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r="utf8"),t!==void 0&&this.write(t,r),i&&this.once("end",i),this[cs]=!0,this.writable=!1,(this[Dt]||!this[Hh])&&this[us](),this}[Sc](){this[mt]||(!this[xa]&&!this[Or].length&&(this[Xr]=!0),this[Hh]=!1,this[Dt]=!0,this.emit("resume"),this[jt].length?this[By]():this[cs]?this[us]():this.emit("drain"))}resume(){return this[Sc]()}pause(){this[Dt]=!1,this[Hh]=!0,this[Xr]=!1}get destroyed(){return this[mt]}get flowing(){return this[Dt]}get paused(){return this[Hh]}[mR](t){this[fr]?this[qt]+=1:this[qt]+=t.length,this[jt].push(t)}[Hy](){return this[fr]?this[qt]-=1:this[qt]-=this[jt][0].length,this[jt].shift()}[By](t=!1){do;while(this[u9](this[Hy]())&&this[jt].length);!t&&!this[jt].length&&!this[cs]&&this.emit("drain")}[u9](t){return this.emit("data",t),this[Dt]}pipe(t,r){if(this[mt])return t;this[Xr]=!1;let i=this[uo];return r=r||{},t===l9.stdout||t===l9.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&t.end():(this[Or].push(r.proxyErrors?new bR(this,t,r):new Wy(this,t,r)),this[On]?Wh(()=>this[Sc]()):this[Sc]()),t}unpipe(t){let r=this[Or].find(i=>i.dest===t);r&&(this[Or].length===1?(this[Dt]&&this[xa]===0&&(this[Dt]=!1),this[Or]=[]):this[Or].splice(this[Or].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let i=super.on(t,r);if(t==="data")this[Xr]=!1,this[xa]++,!this[Or].length&&!this[Dt]&&this[Sc]();else if(t==="readable"&&this[qt]!==0)super.emit("readable");else if(gCe(t)&&this[uo])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[Bh]){let n=r;this[On]?Wh(()=>n.call(this,this[Bh])):n.call(this,this[Bh])}return i}removeListener(t,r){return this.off(t,r)}off(t,r){let i=super.off(t,r);return t==="data"&&(this[xa]=this.listeners("data").length,this[xa]===0&&!this[Xr]&&!this[Or].length&&(this[Dt]=!1)),i}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[xa]=0,!this[Xr]&&!this[Or].length&&(this[Dt]=!1)),r}get emittedEnd(){return this[uo]}[us](){!this[zy]&&!this[uo]&&!this[mt]&&this[jt].length===0&&this[cs]&&(this[zy]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Uy]&&this.emit("close"),this[zy]=!1)}emit(t,...r){let i=r[0];if(t!=="error"&&t!=="close"&&t!==mt&&this[mt])return!1;if(t==="data")return!this[fr]&&!i?!1:this[On]?(Wh(()=>this[yR](i)),!0):this[yR](i);if(t==="end")return this[f9]();if(t==="close"){if(this[Uy]=!0,!this[uo]&&!this[mt])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Bh]=i,super.emit(gR,i);let s=!this[Vh]||this.listeners("error").length?super.emit("error",i):!1;return this[us](),s}else if(t==="resume"){let s=super.emit("resume");return this[us](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let n=super.emit(t,...r);return this[us](),n}[yR](t){for(let i of this[Or])i.dest.write(t)===!1&&this.pause();let r=this[Xr]?!1:super.emit("data",t);return this[us](),r}[f9](){return this[uo]?!1:(this[uo]=!0,this.readable=!1,this[On]?(Wh(()=>this[vR]()),!0):this[vR]())}[vR](){if(this[wc]){let r=this[wc].end();if(r){for(let i of this[Or])i.dest.write(r);this[Xr]||super.emit("data",r)}}for(let r of this[Or])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[fr]||(t.dataLength=0);let r=this.promise();return this.on("data",i=>{t.push(i),this[fr]||(t.dataLength+=i.length)}),await r,t}async concat(){if(this[fr])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Hi]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(mt,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[Xr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[cs])return r();let s,o,a=f=>{this.off("data",l),this.off("end",c),this.off(mt,u),r(),o(f)},l=f=>{this.off("error",a),this.off("end",c),this.off(mt,u),this.pause(),s({value:f,done:!!this[cs]})},c=()=>{this.off("error",a),this.off("data",l),this.off(mt,u),r(),s({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{o=h,s=f,this.once(mt,u),this.once("error",a),this.once("end",c),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Xr]=!1;let t=!1,r=()=>(this.pause(),this.off(gR,r),this.off(mt,r),this.off("end",r),t=!0,{done:!0,value:void 0}),i=()=>{if(t)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(gR,r),this.once(mt,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[mt])return t?this.emit("error",t):this.emit(mt),this;this[mt]=!0,this[Xr]=!0,this[jt].length=0,this[qt]=0;let r=this;return typeof r.close=="function"&&!this[Uy]&&r.close(),t?this.emit("error",t):this.emit(mt),this}static get isStream(){return hCe}};var SCe=Cn.realpathSync.native,Yh={lstatSync:Cn.lstatSync,readdir:Cn.readdir,readdirSync:Cn.readdirSync,readlinkSync:Cn.readlinkSync,realpathSync:SCe,promises:{lstat:ho.lstat,readdir:ho.readdir,readlink:ho.readlink,realpath:ho.realpath}},v9=e=>!e||e===Yh||e===wCe?Yh:{...Yh,...e,promises:{...Yh.promises,...e.promises||{}}},_9=/^\\\\\?\\([a-z]:)\\?$/i,xCe=e=>e.replace(/\//g,"\\").replace(_9,"$1\\"),ECe=/[\\\/]/,wi=0,b9=1,w9=2,An=4,S9=6,x9=8,Ea=10,E9=12,bi=15,Gh=~bi,SR=16,d9=32,Kh=64,Vi=128,Yy=256,Jy=512,p9=Kh|Vi|Jy,kCe=1023,xR=e=>e.isFile()?x9:e.isDirectory()?An:e.isSymbolicLink()?Ea:e.isCharacterDevice()?w9:e.isBlockDevice()?S9:e.isSocket()?E9:e.isFIFO()?b9:wi,m9=new Map,Jh=e=>{let t=m9.get(e);if(t)return t;let r=e.normalize("NFKD");return m9.set(e,r),r},g9=new Map,Ky=e=>{let t=g9.get(e);if(t)return t;let r=Jh(e.toLowerCase());return g9.set(e,r),r},Zy=class extends Uh{constructor(){super({max:256})}},ER=class extends Uh{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}},k9=Symbol("PathScurry setAsCwd"),hr=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#s;get mode(){return this.#s}#i;get nlink(){return this.#i}#o;get uid(){return this.#o}#v;get gid(){return this.#v}#p;get rdev(){return this.#p}#a;get blksize(){return this.#a}#u;get ino(){return this.#u}#l;get size(){return this.#l}#c;get blocks(){return this.#c}#r;get atimeMs(){return this.#r}#h;get mtimeMs(){return this.#h}#_;get ctimeMs(){return this.#_}#m;get birthtimeMs(){return this.#m}#g;get atime(){return this.#g}#T;get mtime(){return this.#T}#y;get ctime(){return this.#y}#O;get birthtime(){return this.#O}#S;#w;#b;#k;#d;#C;#n;#N;#x;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=wi,i,n,s,o,a){this.name=t,this.#S=s?Ky(t):Jh(t),this.#n=r&kCe,this.nocase=s,this.roots=n,this.root=i||this,this.#N=o,this.#b=a.fullpath,this.#d=a.relative,this.#C=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=v9(a.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#N}resolve(t){if(!t)return this;let r=this.getRootString(t),n=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#E(n):this.#E(n)}#E(t){let r=this;for(let i of t)r=r.child(i);return r}children(){let t=this.#N.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#N.set(this,r),this.#n&=~SR,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let i=this.children(),n=this.nocase?Ky(t):Jh(t);for(let l of i)if(l.#S===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+t:void 0,a=this.newChild(t,wi,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#n|=Vi),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#d!==void 0)return this.#d;let t=this.name,r=this.parent;if(!r)return this.#d=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let t=this.name,r=this.parent;if(!r)return this.#C=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+t}fullpath(){if(this.#b!==void 0)return this.#b;let t=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+t;return this.#b=n}fullpathPosix(){if(this.#k!==void 0)return this.#k;if(this.sep==="/")return this.#k=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#k=`//?/${n}`:this.#k=n}let t=this.parent,r=t.fullpathPosix(),i=r+(!r||!t.parent?"":"/")+this.name;return this.#k=i}isUnknown(){return(this.#n&bi)===wi}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#n&bi)===x9}isDirectory(){return(this.#n&bi)===An}isCharacterDevice(){return(this.#n&bi)===w9}isBlockDevice(){return(this.#n&bi)===S9}isFIFO(){return(this.#n&bi)===b9}isSocket(){return(this.#n&bi)===E9}isSymbolicLink(){return(this.#n&Ea)===Ea}lstatCached(){return this.#n&d9?this:void 0}readlinkCached(){return this.#x}realpathCached(){return this.#P}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#x)return!0;if(!this.parent)return!1;let t=this.#n&bi;return!(t!==wi&&t!==Ea||this.#n&Yy||this.#n&Vi)}calledReaddir(){return!!(this.#n&SR)}isENOENT(){return!!(this.#n&Vi)}isNamed(t){return this.nocase?this.#S===Ky(t):this.#S===Jh(t)}async readlink(){let t=this.#x;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#x=i}catch(r){this.#D(r.code);return}}readlinkSync(){let t=this.#x;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#x=i}catch(r){this.#D(r.code);return}}#M(t){this.#n|=SR;for(let r=t.provisional;r<t.length;r++){let i=t[r];i&&i.#$()}}#$(){this.#n&Vi||(this.#n=(this.#n|Vi)&Gh,this.#L())}#L(){let t=this.children();t.provisional=0;for(let r of t)r.#$()}#z(){this.#n|=Jy,this.#R()}#R(){if(this.#n&Kh)return;let t=this.#n;(t&bi)===An&&(t&=Gh),this.#n=t|Kh,this.#L()}#A(t=""){t==="ENOTDIR"||t==="EPERM"?this.#R():t==="ENOENT"?this.#$():this.children().provisional=0}#U(t=""){t==="ENOTDIR"?this.parent.#R():t==="ENOENT"&&this.#$()}#D(t=""){let r=this.#n;r|=Yy,t==="ENOENT"&&(r|=Vi),(t==="EINVAL"||t==="UNKNOWN")&&(r&=Gh),this.#n=r,t==="ENOTDIR"&&this.parent&&this.parent.#R()}#F(t,r){return this.#B(t,r)||this.#f(t,r)}#f(t,r){let i=xR(t),n=this.newChild(t.name,i,{parent:this}),s=n.#n&bi;return s!==An&&s!==Ea&&s!==wi&&(n.#n|=Kh),r.unshift(n),r.provisional++,n}#B(t,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Ky(t.name):Jh(t.name))===n.#S)return this.#j(t,n,i,r)}}#j(t,r,i,n){let s=r.name;return r.#n=r.#n&Gh|xR(t),s!==t.name&&(r.name=t.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#n&Vi)===0)try{return this.#I(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#U(t.code)}}lstatSync(){if((this.#n&Vi)===0)try{return this.#I(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#U(t.code)}}#I(t){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:c,dev:u,gid:f,ino:h,mode:d,mtime:p,mtimeMs:m,nlink:y,rdev:_,size:w,uid:v}=t;this.#g=r,this.#r=i,this.#O=n,this.#m=s,this.#a=o,this.#c=a,this.#y=l,this.#_=c,this.#t=u,this.#v=f,this.#u=h,this.#s=d,this.#T=p,this.#h=m,this.#i=y,this.#p=_,this.#l=w,this.#o=v;let g=xR(t);this.#n=this.#n&Gh|g|d9,g!==wi&&g!==An&&g!==Ea&&(this.#n|=Kh)}#q=[];#V=!1;#W(t){this.#V=!1;let r=this.#q.slice();this.#q.length=0,r.forEach(i=>i(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#q.push(t),this.#V)return;this.#V=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#A(s.code),i.provisional=0;else{for(let a of o)this.#F(a,i);this.#M(i)}this.#W(i.slice(0,i.provisional))})}#H;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#H)await this.#H;else{let i=()=>{};this.#H=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#F(n,t);this.#M(t)}catch(n){this.#A(n.code),t.provisional=0}this.#H=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#F(i,t);this.#M(t)}catch(i){this.#A(i.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#n&p9)return!1;let t=bi&this.#n;return t===wi||t===An||t===Ea}shouldWalk(t,r){return(this.#n&An)===An&&!(this.#n&p9)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#P)return this.#P;if(!((Jy|Yy|Vi)&this.#n))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#P=this.resolve(t)}catch{this.#z()}}realpathSync(){if(this.#P)return this.#P;if(!((Jy|Yy|Vi)&this.#n))try{let t=this.#e.realpathSync(this.fullpath());return this.#P=this.resolve(t)}catch{this.#z()}}[k9](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#d=i.join(this.sep),n.#C=i.join("/"),n=n.parent,i.push("..");for(n=t;n&&n.parent&&!r.has(n);)n.#d=void 0,n.#C=void 0,n=n.parent}},Xy=class e extends hr{sep="\\";splitSep=ECe;constructor(t,r=wi,i,n,s,o,a){super(t,r,i,n,s,o,a)}newChild(t,r=wi,i={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return xc.win32.parse(t).root}getRoot(t){if(t=xCe(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=i;return this.roots[t]=new Ec(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(_9,"$1\\"),t===r}},Qy=class e extends hr{splitSep="/";sep="/";constructor(t,r=wi,i,n,s,o,a){super(t,r,i,n,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=wi,i={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}},ev=class{root;rootPath;roots;cwd;#e;#t;#s;nocase;#i;constructor(t=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=Yh}={}){this.#i=v9(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,y9.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Zy,this.#t=new Zy,this.#s=new ER(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#i),this.roots[this.rootPath]=this.root;let c=this.root,u=l.length-1,f=r.sep,h=this.rootPath,d=!1;for(let p of l){let m=u--;c=c.child(p,{relative:new Array(m).fill("..").join(f),relativePosix:new Array(m).fill("..").join("/"),fullpath:h+=(d?"":f)+p}),d=!0}this.cwd=c}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#s}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#t.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#t.set(r,n),n}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i}=r;if(t.canReaddir()){let n=await t.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0}=r;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map(n=>n.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t.withFileTypes,t=this.cwd);let i=await t.readlink();return r?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t.withFileTypes,t=this.cwd);let i=t.readlinkSync();return r?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t.withFileTypes,t=this.cwd);let i=await t.realpath();return r?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t.withFileTypes,t=this.cwd);let i=t.realpathSync();return r?i:i?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(i?t:t.fullpath());let l=new Set,c=(f,h)=>{l.add(f),f.readdirCB((d,p)=>{if(d)return h(d);let m=p.length;if(!m)return h();let y=()=>{--m===0&&h()};for(let _ of p)(!s||s(_))&&a.push(i?_:_.fullpath()),n&&_.isSymbolicLink()?_.realpath().then(w=>w?.isUnknown()?w.lstat():w).then(w=>w?.shouldWalk(l,o)?c(w,y):y()):_.shouldWalk(l,o)?c(_,y):y()},!0)},u=t;return new Promise((f,h)=>{c(u,d=>{if(d)return h(d);f(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(i?t:t.fullpath());let l=new Set([t]);for(let c of l){let u=c.readdirSync();for(let f of u){(!s||s(f))&&a.push(i?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield i?t:t.fullpath());let a=new Set([t]);for(let l of a){let c=l.readdirSync();for(let u of c){(!s||s(u))&&(yield i?u:u.fullpath());let f=u;if(u.isSymbolicLink()){if(!(n&&(f=u.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,o)&&a.add(f)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new fo({objectMode:!0});(!s||s(t))&&a.write(i?t:t.fullpath());let l=new Set,c=[t],u=0,f=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){u===0&&a.end();return}u++,l.add(d);let p=(y,_,w=!1)=>{if(y)return a.emit("error",y);if(n&&!w){let v=[];for(let g of _)g.isSymbolicLink()&&v.push(g.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>p(null,_,!0));return}}for(let v of _)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));u--;for(let v of _){let g=v.realpathCached()||v;g.shouldWalk(l,o)&&c.push(g)}h&&!a.flowing?a.once("drain",f):m||f()},m=!0;d.readdirCB(p,!0),m=!1}};return f(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof hr||(r=t,t=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new fo({objectMode:!0}),l=new Set;(!s||s(t))&&a.write(i?t:t.fullpath());let c=[t],u=0,f=()=>{let h=!1;for(;!h;){let d=c.shift();if(!d){u===0&&a.end();return}u++,l.add(d);let p=d.readdirSync();for(let m of p)(!s||s(m))&&(a.write(i?m:m.fullpath())||(h=!0));u--;for(let m of p){let y=m;if(m.isSymbolicLink()){if(!(n&&(y=m.realpathSync())))continue;y.isUnknown()&&y.lstatSync()}y.shouldWalk(l,o)&&c.push(y)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[k9](r)}},Ec=class extends ev{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:i=!0}=r;super(t,xc.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(t){return xc.win32.parse(t).root.toUpperCase()}newRoot(t){return new Xy(this.rootPath,An,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}},kc=class extends ev{sep="/";constructor(t=process.cwd(),r={}){let{nocase:i=!1}=r;super(t,xc.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Qy(this.rootPath,An,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}},Zh=class extends kc{constructor(t=process.cwd(),r={}){let{nocase:i=!0}=r;super(t,{...r,nocase:i})}},M5e=process.platform==="win32"?Xy:Qy,R9=process.platform==="win32"?Ec:process.platform==="darwin"?Zh:kc;var RCe=e=>e.length>=1,TCe=e=>e.length>=1,Rc=class e{#e;#t;#s;length;#i;#o;#v;#p;#a;#u;#l=!0;constructor(t,r,i,n){if(!RCe(t))throw new TypeError("empty pattern list");if(!TCe(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#t=r,this.#s=i,this.#i=n,this.#s===0){if(this.isUNC()){let[s,o,a,l,...c]=this.#e,[u,f,h,d,...p]=this.#t;c[0]===""&&(c.shift(),p.shift());let m=[s,o,a,l,""].join("/"),y=[u,f,h,d,""].join("/");this.#e=[m,...c],this.#t=[y,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let c=s+"/",u=a+"/";this.#e=[c,...o],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#s]}isString(){return typeof this.#e[this.#s]=="string"}isGlobstar(){return this.#e[this.#s]===Gt}isRegExp(){return this.#e[this.#s]instanceof RegExp}globString(){return this.#v=this.#v||(this.#s===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#s).join("/"))}hasMore(){return this.length>this.#s+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#t,this.#s+1,this.#i),this.#o.#u=this.#u,this.#o.#a=this.#a,this.#o.#p=this.#p,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#i==="win32"&&this.#s===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#p!==void 0?this.#p:this.#p=this.#i==="win32"&&this.#s===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#u!==void 0?this.#u:this.#u=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#s===0?t:""}checkFollowGlobstar(){return!(this.#s===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#s===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};var OCe=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Tc=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=OCe}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new Zr(t,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new Rc(n,s,0,this.platform),a=new Zr(o.globString(),this.mmopts),l=s[s.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),i=`${r}/`,n=t.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",i=(t.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};var kR=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let i=t.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}},RR=class{store=new Map;add(t,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(t);this.store.set(t,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}},TR=class{store=new Map;add(t,r){if(!t.canReaddir())return;let i=this.store.get(t);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}},Xh=class e{hasWalkedCache;matches=new RR;subwalks=new TR;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new kR}processPatterns(t,r){this.patterns=r;let i=r.map(n=>[t,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=s.rest();if(f)s=f;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,c,u=!1;for(;typeof(l=s.pattern())=="string"&&(c=s.rest());)n=n.resolve(l),s=c,u=!0;if(l=s.pattern(),c=s.rest(),u){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,f);continue}else if(l===Gt){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let f=c?.pattern(),h=c?.rest();if(!c||(f===""||f===".")&&!h)this.matches.add(n,a,f===""||f===".");else if(f===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let i=this.subwalks.get(t),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),c=o.rest();l===Gt?n.testGlobstar(s,o,c,a):l instanceof RegExp?n.testRegExp(s,l,c,a):n.testString(s,l,c,a)}return n}testGlobstar(t,r,i,n){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(t,i):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,i.rest(),n);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(t,s,i.rest(),n)}}testRegExp(t,r,i,n){r.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}testString(t,r,i,n){t.isNamed(r)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}};var ACe=(e,t)=>typeof e=="string"?new Tc([e],t):Array.isArray(e)?new Tc(e,t):e,tv=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#s;signal;maxDepth;includeChildMatches;constructor(t,r,i){if(this.patterns=t,this.path=r,this.opts=i,this.#s=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=ACe(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#i(t){return this.seen.has(t)||!!this.#t?.ignored?.(t)}#o(t){return!!this.#t?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#i(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#i(t))return;if(!this.includeChildMatches&&this.#t?.add){let s=`${t.relativePosix()}/**`;this.#t.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let n=this.opts.mark&&t.isDirectory()?this.#s:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#s)?"."+this.#s:"";this.matchEmit(s?o+s+n:"."+n)}}async match(t,r,i){let n=await this.matchCheck(t,i);n&&this.matchFinish(n,r)}matchSync(t,r,i){let n=this.matchCheckSync(t,i);n&&this.matchFinish(n,r)}walkCB(t,r,i){this.signal?.aborted&&i(),this.walkCB2(t,r,new Xh(this.opts),i)}walkCB2(t,r,i,n){if(this.#o(t))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(t,r,i,n));return}i.processPatterns(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||(s++,this.match(a,l,c).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((c,u)=>this.walkCB3(a,u,i,o),!0)}o()}walkCB3(t,r,i,n){i=i.filterEntries(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||(s++,this.match(a,l,c).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(t,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,r,new Xh(this.opts),i)}walkCB2Sync(t,r,i,n){if(this.#o(t))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,i,n));return}i.processPatterns(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||this.matchSync(a,l,c);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(t,r,i,n){i=i.filterEntries(t,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,c]of i.matches.entries())this.#i(a)||this.matchSync(a,l,c);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}},Qh=class extends tv{matches=new Set;constructor(t,r,i){super(t,r,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},ed=class extends tv{results;constructor(t,r,i){super(t,r,i),this.results=new fo({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var CCe=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Wi=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,T9.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=t,this.platform=r.platform||CCe,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?Ec:r.platform==="darwin"?Zh:r.platform?kc:R9;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new Zr(l,n)),[o,a]=s.reduce((l,c)=>(l[0].push(...c.set),l[1].push(...c.globParts),l),[[],[]]);this.patterns=o.map((l,c)=>{let u=a[c];if(!u)throw new Error("invalid pattern object");return new Rc(l,u,0,this.platform)})}async walk(){return[...await new Qh(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Qh(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new ed(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new ed(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var OR=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new Zr(r,t).hasMagic())return!0;return!1};function iv(e,t={}){return new Wi(e,t).streamSync()}function A9(e,t={}){return new Wi(e,t).stream()}function C9(e,t={}){return new Wi(e,t).walkSync()}async function O9(e,t={}){return new Wi(e,t).walk()}function nv(e,t={}){return new Wi(e,t).iterateSync()}function P9(e,t={}){return new Wi(e,t).iterate()}var PCe=iv,ICe=Object.assign(A9,{sync:iv}),NCe=nv,$Ce=Object.assign(P9,{sync:nv}),FCe=Object.assign(C9,{stream:iv,iterate:nv}),rv=Object.assign(O9,{glob:O9,globSync:C9,sync:FCe,globStream:A9,stream:ICe,globStreamSync:iv,streamSync:PCe,globIterate:P9,iterate:$Ce,globIterateSync:nv,iterateSync:NCe,Glob:Wi,hasMagic:OR,escape:vc,unescape:Bi});rv.glob=rv;var LCe=Object.prototype.toString,Ac=Array.isArray||function(t){return LCe.call(t)==="[object Array]"};function CR(e){return typeof e=="function"}function DCe(e){return Ac(e)?"array":typeof e}function AR(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function I9(e,t){return e!=null&&typeof e=="object"&&t in e}function jCe(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var qCe=RegExp.prototype.test;function MCe(e,t){return qCe.call(e,t)}var zCe=/\S/;function UCe(e){return!MCe(zCe,e)}var BCe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function HCe(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return BCe[r]})}var VCe=/\s*/,WCe=/\s+/,N9=/\s*=/,GCe=/\s*\}/,YCe=/#|\^|\/|>|\{|&|=|!/;function KCe(e,t){if(!e)return[];var r=!1,i=[],n=[],s=[],o=!1,a=!1,l="",c=0;function u(){if(o&&!a)for(;s.length;)delete n[s.pop()];else s=[];o=!1,a=!1}var f,h,d;function p(A){if(typeof A=="string"&&(A=A.split(WCe,2)),!Ac(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(AR(A[0])+"\\s*"),h=new RegExp("\\s*"+AR(A[1])),d=new RegExp("\\s*"+AR("}"+A[1]))}p(t||Si.tags);for(var m=new rd(e),y,_,w,v,g,T;!m.eos();){if(y=m.pos,w=m.scanUntil(f),w)for(var N=0,R=w.length;N<R;++N)v=w.charAt(N),UCe(v)?(s.push(n.length),l+=v):(a=!0,r=!0,l+=" "),n.push(["text",v,y,y+1]),y+=1,v===`
`&&(u(),l="",c=0,r=!1);if(!m.scan(f))break;if(o=!0,_=m.scan(YCe)||"name",m.scan(VCe),_==="="?(w=m.scanUntil(N9),m.scan(N9),m.scanUntil(h)):_==="{"?(w=m.scanUntil(d),m.scan(GCe),m.scanUntil(h),_="&"):w=m.scanUntil(h),!m.scan(h))throw new Error("Unclosed tag at "+m.pos);if(_==">"?g=[_,w,y,m.pos,l,c,r]:g=[_,w,y,m.pos],c++,n.push(g),_==="#"||_==="^")i.push(g);else if(_==="/"){if(T=i.pop(),!T)throw new Error('Unopened section "'+w+'" at '+y);if(T[1]!==w)throw new Error('Unclosed section "'+T[1]+'" at '+y)}else _==="name"||_==="{"||_==="&"?a=!0:_==="="&&p(w)}if(u(),T=i.pop(),T)throw new Error('Unclosed section "'+T[1]+'" at '+m.pos);return ZCe(JCe(n))}function JCe(e){for(var t=[],r,i,n=0,s=e.length;n<s;++n)r=e[n],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function ZCe(e){for(var t=[],r=t,i=[],n,s,o=0,a=e.length;o<a;++o)switch(n=e[o],n[0]){case"#":case"^":r.push(n),i.push(n),r=n[4]=[];break;case"/":s=i.pop(),s[5]=n[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(n)}return t}function rd(e){this.string=e,this.tail=e,this.pos=0}rd.prototype.eos=function(){return this.tail===""};rd.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i};rd.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function Oc(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Oc.prototype.push=function(t){return new Oc(t,this)};Oc.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var n=this,s,o,a,l=!1;n;){if(t.indexOf(".")>0)for(s=n.view,o=t.split("."),a=0;s!=null&&a<o.length;)a===o.length-1&&(l=I9(s,o[a])||jCe(s,o[a])),s=s[o[a++]];else s=n.view[t],l=I9(n.view,t);if(l){i=s;break}n=n.parent}r[t]=i}return CR(i)&&(i=i.call(this.view)),i};function Ar(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Ar.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Ar.prototype.parse=function(t,r){var i=this.templateCache,n=t+":"+(r||Si.tags).join(":"),s=typeof i<"u",o=s?i.get(n):void 0;return o==null&&(o=KCe(t,r),s&&i.set(n,o)),o};Ar.prototype.render=function(t,r,i,n){var s=this.getConfigTags(n),o=this.parse(t,s),a=r instanceof Oc?r:new Oc(r,void 0);return this.renderTokens(o,a,i,t,n)};Ar.prototype.renderTokens=function(t,r,i,n,s){for(var o="",a,l,c,u=0,f=t.length;u<f;++u)c=void 0,a=t[u],l=a[0],l==="#"?c=this.renderSection(a,r,i,n,s):l==="^"?c=this.renderInverted(a,r,i,n,s):l===">"?c=this.renderPartial(a,r,i,s):l==="&"?c=this.unescapedValue(a,r):l==="name"?c=this.escapedValue(a,r,s):l==="text"&&(c=this.rawValue(a)),c!==void 0&&(o+=c);return o};Ar.prototype.renderSection=function(t,r,i,n,s){var o=this,a="",l=r.lookup(t[1]);function c(h){return o.render(h,r,i,s)}if(l){if(Ac(l))for(var u=0,f=l.length;u<f;++u)a+=this.renderTokens(t[4],r.push(l[u]),i,n,s);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")a+=this.renderTokens(t[4],r.push(l),i,n,s);else if(CR(l)){if(typeof n!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(r.view,n.slice(t[3],t[5]),c),l!=null&&(a+=l)}else a+=this.renderTokens(t[4],r,i,n,s);return a}};Ar.prototype.renderInverted=function(t,r,i,n,s){var o=r.lookup(t[1]);if(!o||Ac(o)&&o.length===0)return this.renderTokens(t[4],r,i,n,s)};Ar.prototype.indentPartial=function(t,r,i){for(var n=r.replace(/[^ \t]/g,""),s=t.split(`
`),o=0;o<s.length;o++)s[o].length&&(o>0||!i)&&(s[o]=n+s[o]);return s.join(`
`)};Ar.prototype.renderPartial=function(t,r,i,n){if(i){var s=this.getConfigTags(n),o=CR(i)?i(t[1]):i[t[1]];if(o!=null){var a=t[6],l=t[5],c=t[4],u=o;l==0&&c&&(u=this.indentPartial(o,c,a));var f=this.parse(u,s);return this.renderTokens(f,r,i,u,n)}}};Ar.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Ar.prototype.escapedValue=function(t,r,i){var n=this.getConfigEscape(i)||Si.escape,s=r.lookup(t[1]);if(s!=null)return typeof s=="number"&&n===Si.escape?String(s):n(s)};Ar.prototype.rawValue=function(t){return t[1]};Ar.prototype.getConfigTags=function(t){return Ac(t)?t:t&&typeof t=="object"?t.tags:void 0};Ar.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Ac(t))return t.escape};var Si={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){td.templateCache=e},get templateCache(){return td.templateCache}},td=new Ar;Si.clearCache=function(){return td.clearCache()};Si.parse=function(t,r){return td.parse(t,r)};Si.render=function(t,r,i,n){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+DCe(t)+'" was given as the first argument for mustache#render(template, view, partials)');return td.render(t,r,i,n)};Si.escape=HCe;Si.Scanner=rd;Si.Context=Oc;Si.Writer=Ar;var $9=Si;var L9=(global.Reveal={registerPlugin:()=>{}},F9()());var dr=St(require("node:path")),Qr=St(ip()),D9=require("obsidian"),sv=class{pluginDirectory;exportDirectory;vaultDirectory;constructor(t){this.pluginDirectory=t.pluginDirectory,this.exportDirectory=t.exportDirectory,this.vaultDirectory=t.vaultDirectory}async export(t,r,i){let n=dr.default.extname(t),s=dr.default.basename(t).replaceAll(n,""),o=dr.default.join(this.exportDirectory,s),a=dr.default.dirname(t),l=this.vaultDirectory.replace(/\/$/,"");console.debug("export",a,l,o),await(0,Qr.emptyDir)(o),await(0,Qr.writeFile)(dr.default.join(o,"index.html"),r),await(0,Qr.copy)(dr.default.join(this.pluginDirectory,"css"),dr.default.join(o,"css")),await(0,Qr.copy)(dr.default.join(this.pluginDirectory,"dist"),dr.default.join(o,"dist")),await(0,Qr.copy)(dr.default.join(this.pluginDirectory,"plugin"),dr.default.join(o,"plugin"));for(let c of i){if(console.log("export",c),c.startsWith("http"))continue;if(c.startsWith("/local-file-url")){let f=c.replace("/local-file-url",D9.Platform.resourcePathPrefix),h=await fetch(f).catch(d=>new Response(null,{status:404,statusText:d.messge}));if(h.ok)if(h.blob){let p=await(await h.blob()).arrayBuffer();(0,Qr.outputFileSync)(dr.default.join(o,c),Buffer.from(p))}else console.info("open a bug to handle this kind of response. Include this message",h);else console.error(h.statusText);continue}let u=dr.default.join(l,c);if(a!==l){let f=dr.default.join(a,c);(0,Qr.existsSync)(f)&&(u=f)}console.debug("img",c,u,a!==l),await(0,Qr.copy)(u,dr.default.join(o,c))}window.open(`file://${o}`)}};var ov=class{processor;yaml;exporter;utils;constructor(t){this.processor=t.markdownProcessor,this.yaml=new hl(t.getSettings()),this.exporter=new sv(t),this.utils=t}async renderFile(t,r){let i=!1,n=!1,s=!1;Dp(r)||(wu(r,"export")&&(i=r?.export),wu(r,"print-pdf")&&(n=!0),wu(r,"embed")&&(s=r?.embed)),i&&this.utils.resetImageCollection();let o=(await(0,id.readFile)(t.toString())).toString(),a=await this.render(o,n,s);return i&&(this.utils.disableImageCollection(),await this.exporter.export(t,a,Po().getAll()),a=await this.render(o,n,s)),a}async render(t,r,i){let{yamlOptions:n,markdown:s}=this.yaml.parseYamlFrontMatter(t),o=this.yaml.getSlideOptions(n,r),a=this.yaml.getRevealOptions(o),{title:l}=o,c=this.getThemeUrl(o.theme),u=this.getHighlightThemeUrl(o.highlightTheme),f=this.yaml.getSlidifyOptions(o),h=await this.utils.fetchRemoteMarkdown(s),d=this.processor.process(h,o),p=this.slidify(d,f),m=this.getCssPaths(o.css),y=this.getCssPaths(o.remoteCSS),_=this.yaml.getTemplateSettings(o),{enableChalkboard:w,enableCustomControls:v,enableOverview:g,enableMenu:T,enableTimeBar:N,enablePointer:R}=_,A="";Po().shouldCollect()||(A="/");let C=Object.assign(o,{title:l,slides:p,themeUrl:c,highlightThemeUrl:u,cssPaths:m,remoteCSSPaths:y,base:A,enableCustomControls:v,enableChalkboard:w,enableOverview:g,enableMenu:T,enablePointer:R,enableTimeBar:N,revealOptionsStr:JSON.stringify(a)}),k=await this.getPageTemplate(i);return $9.render(k,C)}isValidUrl(t){try{return new URL(t),!0}catch{return!1}}getHighlightThemeUrl(t){return this.getThemeUrl(t,this.utils.getHighlightSearchPath())}getThemeUrl(t,r=this.utils.getThemeSearchPath()){if(this.isValidUrl(t))return t;for(let i of r){let n=rv.sync("*.css",{cwd:i}),s=(0,Pn.basename)(t).replace((0,Pn.extname)(t),""),o=n.find(a=>(0,Pn.basename)(a).replace((0,Pn.extname)(a),"")===s);if(o)return this.toExternalPath(Pn.default.join(i,o))}return t}toExternalPath(t){return t.replace(this.utils.pluginDirectory,"").replace(this.utils.vaultDirectory,"")}async getPageTemplate(t=!1){let r=t?"embed.html":np.template,i=this.utils.getHtmlTemplateSearchPath();for(let n of i){let s=(0,Pn.join)(n,r);if(await(0,id.exists)(s))return(await(0,id.readFile)(s.toString())).toString()}return console.error(`Template file ${r} not found in search path: ${i}.`),""}slidify(t,r){return L9.slidify(t,r)}getCssPaths(t,r=!1){let i=[];return t?(typeof t=="string"?i=t.split(","):i=t,i.map(n=>this.isValidUrl(n)?n:this.getThemeUrl(n,this.utils.getLocalCssSearchPath()))):i}};var av=class{_server;_port;_url;_revealRenderer;filePath;constructor(t,r,i){this._port=r,this._url=i,this._revealRenderer=new ov(t),this.filePath=null,this._server=(0,j9.default)({}),this._server.register(NR.fastifyStatic,{root:t.vaultDirectory,decorateReply:!0,serve:!1}),this._server.get("/",async(n,s)=>{if(this.filePath===null)s.type("text/html").send(XCe);else{let o=await this._revealRenderer.renderFile(this.filePath,n.query);s.type("text/html").send(o)}return s});for(let n of["plugin","dist","css"])this._server.register(NR.fastifyStatic,{root:Cc.default.join(t.pluginDirectory,n),prefix:`/${n}`,wildcard:!0,index:!1,decorateReply:!1,list:{format:"html",render:QCe}});this._server.get("/*",async(n,s)=>{let o=n.params["*"],a=async l=>{let c=await this._revealRenderer.renderFile(l,n.query);s.type("text/html").send(c)};if(o.startsWith("local-file-url")){let l=o.replace("local-file-url",lv.Platform.resourcePathPrefix),c=await fetch(l).catch(u=>(console.error("local file error",u),new Response(u,{status:u.status,statusText:u.messge})));if(console.debug("Serving local file",o,l,c),c.ok)if(c.blob){let u=await c.blob(),f=await u.arrayBuffer();s.type(u.type).send(q9.Buffer.from(f))}else console.info("open a bug to handle this kind of response. Include this message",c);else s.status(c.status).send(c.statusText)}else if(o.startsWith("embed/")&&o.endsWith(".md")){console.debug("fetching embed file",o);let l=Cc.default.join(t.vaultDirectory,o.replace("embed/",""));await a(l)}else if(o.endsWith(".md"))this.filePath=Cc.default.join(t.vaultDirectory,o),console.debug("New presentation: ",o,this.filePath),await a(this.filePath);else{let l=o,c=Cc.default.dirname(this.filePath);if(c!==t.vaultDirectory){let u=Cc.default.join(c,o);(0,M9.existsSync)(u)&&(l=u.replace(t.vaultDirectory,""))}console.debug("Serve file",o,c,t.vaultDirectory,l),s.sendFile(l)}return s})}get running(){return!!this._server.addresses().slice(-1).pop()}getTargetUrl(t){let r=this._url;return r.pathname=this.fixedEncodeURIComponent(t.path),r}fixedEncodeURIComponent(t){return t.replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16)}`)}async start(){if(this.running){console.debug("Slides Extended server is already running",this._server.listeningOrigin.replace(/(127\.0\.0\.1|\[::1\])/,"localhost"));return}try{await this._server.listen({host:"localhost",port:this._port}),console.info("Slides Extended is ready to go.",this._server.listeningOrigin.replace(/(127\.0\.0\.1|\[::1\])/,"localhost"))}catch(t){new lv.Notice(`Unable to start server. Is ${this._port} already in use?`),console.error("Unable to start server",t)}}async stop(){this.running?(console.info("stopping Slides Extended server",this.running),await this._server.close()):console.debug("Slides Extended server is not running")}},XCe=`
<html lang='en'><body>
<p>Open Presentation Preview in Obsidian first</p>
</body></html>`,QCe=(e,t)=>`
<html lang='en'><body>
<ul>
${e.map(r=>`<li><a href="${r.href}">${r.name}</a></li>`).join(`
`)}
</ul>
<ul>
${t.map(r=>`<li><a href="${r.href}" target="_blank">${r.name}</a></li>`).join(`
`)}
</ul>
</body></html>`;var ws=require("node:fs"),t_=St(require("node:path")),J7=St(K7()),Z7=require("obsidian"),r_=class{plugin;pluginDirectory;distDirectory;constructor(t){this.plugin=t,this.pluginDirectory=this.plugin.obsidianUtils.pluginDirectory,this.distDirectory=this.plugin.obsidianUtils.distDirectory}isOutdated(){return!(0,ws.existsSync)(this.distDirectory)||this.isOldVersion()}isOldVersion(){let t=t_.default.join(this.pluginDirectory,"distVersion.json");if(!(0,ws.existsSync)(t))return!0;let r=(0,ws.readFileSync)(t,{encoding:"utf-8"});return JSON.parse(r).version!==this.plugin.manifest.version}async update(){let r=`https://github.com/ebullient/obsidian-slides-extended/releases/download/${this.plugin.manifest.version}/slides-extended.zip`,i=await(0,Z7.requestUrl)(r);if(i.status!==200){console.error(`Failed to download ${r}`);return}let n=new J7.default,s=await n.loadAsync(i.arrayBuffer),o=this.pluginDirectory;for(let a of Object.keys(s.files))s.files[a].dir||n.file(a).async("nodebuffer").then(l=>{let c=t_.default.join(o,a),u=t_.default.dirname(c);(0,ws.mkdirSync)(u,{recursive:!0}),(0,ws.writeFileSync)(c,l)})}};var He=require("obsidian"),SO=St(bO());var rY=St(require("node:fs")),iY=St(bO()),nY=(e,t)=>e.contains("highlight")||t.contains("highlight")||t.contains("hljs"),P$e=(e,t)=>!nY(e,t),I$e=(e,t)=>{let r=new Set;for(let i of e)for(let n of rY.default.readdirSync(i))t(i,n)&&r.add(n);return r},wO=(e,t)=>{let r=t==="highlight"?e.getHighlightSearchPath():e.getThemeSearchPath();return[...I$e(r,(i,n)=>n.endsWith(".css")?t==="highlight"?nY(i,n):P$e(i,n):!1)]},Dd=class extends iY.FuzzyInputSuggest{getItemText(t){return t}renderNote(t,r){}renderTitle(t,r){this.renderMatches(t,r.item,r.match.matches)}};function sY(e){return e instanceof He.TFolder}var i_=class extends He.PluginSettingTab{plugin;newSettings;constructor(t,r){super(t,r),this.plugin=r}async save(){await this.plugin.update(this.newSettings)}hide(){this.save()}display(){this.newSettings=JSON.parse(JSON.stringify(this.plugin.settings)),this.drawElements()}drawElements(){let{containerEl:t}=this;t.empty(),new He.Setting(t).setName("Slide preview mode").setDesc("Select the slide preview pane display mode.").addDropdown(n=>{n.addOption("tab","as Tab").addOption("split","split Workspace").addOption("sidebar","right sidebar").setValue(this.newSettings.paneMode).onChange(s=>{s==="tab"||s==="split"||s==="sidebar"?this.newSettings.paneMode=s:console.debug("Invalid pane mode",s)})}),new He.Setting(t).setName("Automatically start server").setDesc("When enabled, the server for rendering slides will automatically start when Obsidian starts.").addToggle(n=>n.setValue(this.newSettings.autoStart).onChange(s=>{this.newSettings.autoStart=s})),new He.Setting(t).setName("Server port").setDesc("Specify the port number for the server to listen on. Default is 3000.").addText(n=>n.setPlaceholder("3000").setValue(this.newSettings.port).onChange(s=>{this.newSettings.port=s})),new He.Setting(t).setName("Auto reload").setDesc("When enabled, the slide preview window automatically updates upon detecting changes in the source file.").addToggle(n=>n.setValue(this.newSettings.autoReload).onChange(s=>{this.newSettings.autoReload=s})),new He.Setting(t).setName("Auto complete").setDesc('Enable auto-complete inputs. "Always" enables it everywhere, "When slide preview is active" enables it only when the slide preview is active, and "Never" disables it.').addDropdown(n=>{n.addOption("always","Always").addOption("inPreview","When slide preview is active").addOption("never","Never").setValue(this.newSettings.autoComplete).onChange(s=>{this.newSettings.autoComplete=s})}),new He.Setting(t).setName("Export directory").setDesc("Specify the directory where Slides Extended should export presentations.").addSearch(n=>{let s=this.app.vault.getAllLoadedFiles().filter(sY),o=new SO.FolderInputSuggest(this.app,n,s);o.onSelect(({item:a})=>{n.setValue(a.path),n.inputEl.trigger("input"),o.close()}),n.setPlaceholder("Folder").setValue(this.newSettings.exportDirectory).onChange(a=>{this.newSettings.exportDirectory=a})});let r={},i=(n,s)=>{let o=n==="slide"?"*":"*.highlight.css or *.hljs.css";return s?`Select the default ${o} theme. Options include ${n}.css files defined in ${s}.`:`Select the default ${o} theme.`};new He.Setting(t).setName("Theme directory").setDesc('Specify the vault directory for custom themes. Highlight themes should include "highlight" or "hljs" in their name.').addSearch(n=>{let s=this.app.vault.getAllLoadedFiles().filter(sY),o=new SO.FolderInputSuggest(this.app,n,s);o.onSelect(({item:a})=>{n.setValue(a.path),n.inputEl.trigger("input"),o.close()}),n.setPlaceholder("Folder").setValue(this.newSettings.themeDirectory).onChange(a=>{this.newSettings.themeDirectory=a;for(let l in r)r[l].setDesc(i(l,a))})}),new He.Setting(t).setName("Slides").setHeading(),r.slide=new He.Setting(t).setName("Default slide theme").setDesc(i("slide",this.newSettings.themeDirectory)).addSearch(n=>{let s=new Dd(this.app,n,wO(this.plugin.obsidianUtils,"theme")).onSelect(({item:o})=>{n.setValue(o),n.inputEl.trigger("input"),s.close()});n.setPlaceholder("black").setValue(this.newSettings.theme).onChange(o=>{this.newSettings.theme=o})}),r.highlight=new He.Setting(t).setName("Default highlight theme").setDesc(i("highlight",this.newSettings.themeDirectory)).addSearch(n=>{let s=new Dd(this.app,n,wO(this.plugin.obsidianUtils,"highlight")).onSelect(({item:o})=>{n.setValue(o),n.inputEl.trigger("input"),s.close()});n.setPlaceholder("zenburn").setValue(this.newSettings.highlightTheme).onChange(o=>{this.newSettings.highlightTheme=o})}),new He.Setting(t).setName("Center content").setDesc("When enabled, content is centered on the slide by default.").addToggle(n=>n.setValue(this.newSettings.center).onChange(s=>{this.newSettings.center=s})),new He.Setting(t).setName("Transition style").setDesc("Select a default slide transition").addDropdown(n=>{n.addOption("none","none").addOption("fade","fade").addOption("slide","slide").addOption("convex","convex").addOption("concave","concave").addOption("zoom","zoom").setValue(this.newSettings.transition).onChange(s=>{this.newSettings.transition=s})}),new He.Setting(t).setName("Transition speed").setDesc("Select a default transition speed").addDropdown(n=>{n.addOption("slow","slow").addOption("normal","default").addOption("fast","fast").setValue(this.newSettings.transitionSpeed).onChange(s=>{this.newSettings.transitionSpeed=s})}),t.createEl("h2",{text:"Plugins"}),new He.Setting(t).setName("Controls").setDesc("When enabled, display presentation control arrows.").addToggle(n=>n.setValue(this.newSettings.controls).onChange(s=>{this.newSettings.controls=s})),new He.Setting(t).setName("Chalkboard").setDesc("When enabled, the slides will contain a chalkboard.").addToggle(n=>n.setValue(this.newSettings.enableChalkboard).onChange(s=>{this.newSettings.enableChalkboard=s})),new He.Setting(t).setName("Elapsed time bar").setDesc("When enabled, display an elapsed time bar.").addToggle(n=>n.setValue(this.newSettings.enableTimeBar).onChange(s=>{this.newSettings.enableTimeBar=s})),new He.Setting(t).setName("Laser pointer").setDesc("When enabled, changes your mouse into a laser pointer (Toggle with Q).").addToggle(n=>n.setValue(this.newSettings.enablePointer).onChange(s=>{this.newSettings.enablePointer=s})),new He.Setting(t).setName("Menu").setDesc("When enabled, display a presentation menu button.").addToggle(n=>n.setValue(this.newSettings.enableMenu).onChange(s=>{this.newSettings.enableMenu=s})),new He.Setting(t).setName("Overview").setDesc("When enabled, display a presentation overview button.").addToggle(n=>n.setValue(this.newSettings.enableOverview).onChange(s=>{this.newSettings.enableOverview=s})),new He.Setting(t).setName("Progress bar").setDesc("When enabled, display a presentation progress bar.").addToggle(n=>n.setValue(this.newSettings.progress).onChange(s=>{this.newSettings.progress=s})),new He.Setting(t).setName("Slide numbers").setDesc("When enabled, display the page number of the current slide.").addToggle(n=>n.setValue(this.newSettings.slideNumber).onChange(s=>{this.newSettings.slideNumber=s}))}};var n_=class extends jd.Plugin{settings;obsidianUtils;revealServer;target;slideProcessor;port;serverUrl;async onload(){await this.loadSettings(),(0,jd.addIcon)("slides",aP),(0,jd.addIcon)("refresh",lP);let t=Number(this.settings.port);this.port=Number.isNaN(t)?3e3:t,this.serverUrl=new URL(`http://localhost:${this.port}`),this.obsidianUtils=new Eu(this.app,this.settings),this.registerView(nn,r=>new Nu(r,this.url,this,this.settings,this.hideView.bind(this))),this.registerEvent(this.app.vault.on("modify",this.onChange.bind(this))),this.registerEditorSuggest(new Vp(this.app,this)),this.addRibbonIcon("slides","Show slide preview",async()=>{await this.showView()}),this.addCommand({id:"open-preview",name:"Show slide preview",callback:async()=>this.toggleView()}),this.addCommand({id:"reload-preview",name:"Reload slide preview",callback:()=>{let r=this.getViewInstance();r&&r.onChange()}}),this.addCommand({id:"stop-server-preview",name:"Stop slide preview server",callback:async()=>this.revealServer.stop()}),this.addCommand({id:"start-server-preview",name:"Start slide preview server",callback:async()=>this.revealServer.start()}),this.addSettingTab(new i_(this.app,this)),this.app.workspace.onLayoutReady(this.layoutReady),this.slideProcessor=new Wd(this),this.registerMarkdownCodeBlockProcessor("slide",this.slideProcessor.handler),this.registerMarkdownPostProcessor(this.obsidianUtils.markdownProcessor.postProcess)}get url(){return this.serverUrl}layoutReady=async()=>{try{let t=this.manifest.version,r=new r_(this);console.log("Slides Extended v%s, needsReload=%s",t,r.isOutdated()),r.isOutdated()&&(await r.update(),console.log("Slides Extended updated to v%s",t)),this.configureServer(),await this.initServer()}catch(t){console.debug("Slides Extended caught an error",t)}};getViewInstance(){for(let t of this.app.workspace.getLeavesOfType(nn)){let r=t.view;if(r instanceof Nu)return r}return null}getTargetName(){return this.target?this.target.name:""}onChange(t){if(!this.settings.autoReload)return;let r=this.getViewInstance();r&&t===this.target&&r.onChange()}async toggleView(){this.getViewInstance()?this.app.workspace.detachLeavesOfType(nn):await this.showView()}hideView(){}async showView(){let t=this.app.workspace.getActiveFile();if(!t||t===this.target&&this.app.workspace.getLeavesOfType(nn).length>0)return;this.target=t,await this.activateView();let r=this.revealServer.getTargetUrl(this.target);await this.openUrl(r)}configureServer=()=>{this.revealServer=new av(this.obsidianUtils,this.port,this.url)};initServer=async()=>{this.settings.autoStart&&await this.revealServer.start();let t=this.getViewInstance();t&&t.url==="about:blank"&&await this.showView()};stopServer=async()=>{this.revealServer&&await this.revealServer.stop();let t=this.getViewInstance();t&&await t.onClose()};async openUrl(t){this.getViewInstance().setUrl(t.toString())}async activateView(){this.app.workspace.detachLeavesOfType(nn),this.settings.paneMode==="sidebar"?await this.app.workspace.getRightLeaf(!0).setViewState({type:nn,active:!0}):await this.app.workspace.getLeaf(this.settings.paneMode).setViewState({type:nn,active:!1}),this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(nn)[0])}async onunload(){console.debug("unloading Slides Extended"),await this.stopServer()}async loadSettings(){this.settings=Object.assign({},cP,await this.loadData())}async saveSettings(){await this.saveData(this.settings),console.debug("Slides Extended: settings saved"),await this.stopServer(),this.obsidianUtils=new Eu(this.app,this.settings),this.configureServer(),await this.initServer();let t=this.getViewInstance();t&&await t.onChange()}async update(t){this.settings=t,await this.saveSettings()}};var N$e=n_;
/*! Bundled license information:
forwarded/index.js:
(*!
* forwarded
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*)
proxy-addr/index.js:
(*!
* proxy-addr
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*)
toad-cache/dist/toad-cache.cjs:
(**
* toad-cache
*
* @copyright 2024 Igor Savin <kibertoad@gmail.com>
* @license MIT
* @version 3.7.0
*)
cookie/index.js:
(*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
light-my-request/lib/form-data.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
escape-html/index.js:
(*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*)
@fastify/send/lib/clearHeaders.js:
@fastify/send/lib/containsDotFile.js:
@fastify/send/lib/contentRange.js:
@fastify/send/lib/createHtmlDocument.js:
@fastify/send/lib/SendStream.js:
@fastify/send/index.js:
(*!
* send
* Copyright(c) 2012 TJ Holowaychuk
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*)
depd/index.js:
(*!
* depd
* Copyright(c) 2014-2018 Douglas Christopher Wilson
* MIT Licensed
*)
statuses/index.js:
(*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*)
toidentifier/index.js:
(*!
* toidentifier
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*)
http-errors/index.js:
(*!
* http-errors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*)
@fastify/send/lib/parseBytesRange.js:
(*!
* Based on range-parser
*
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* MIT Licensed
*)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
content-disposition/index.js:
(*!
* content-disposition
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*)
reveal.js/plugin/markdown/markdown.js:
(*!
* The reveal.js markdown plugin. Handles parsing of
* markdown inside of presentations as well as loading
* of external markdown documents.
*)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
mustache/mustache.mjs:
(*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*)
*/
/* nosourcemap */