Files
StudyDiary/.obsidian/plugins/slides-extended/main.js

747 lines
1.2 MiB
JavaScript
Raw Normal View History

2025-10-25 20:35:10 +08:00
/*
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&&
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
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","ensureLin
`,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
\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){retu
\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!=="Fun
`: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
`,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
`),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.
`;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,
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:fu
'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 stri
${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(),{chin
`:`
`),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)conti
`:""},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 in
|| (${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.d
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.le
`,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}, nullab
`,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,additio
`).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(
`).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 a1
`)).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=thi
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)
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),!
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(
<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
`)}}}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]
]`).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:/(?:[^?!.,:;*_'"~
`),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(fu
`+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&&(h
\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}})
`+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"});functio
\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&&(
`,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);(
`,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.inp
`),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.plugi
<!--
${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
`).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}","
`).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.s
`);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.in
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[--th
`&&(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(
<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={
/*! 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 */