From 5de646d3ee2ee002dfe2b38cdbee1b85098edabc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:32:37 +0000 Subject: [PATCH] chore(deps): update yarn to v4 --- .yarn/releases/yarn-3.7.0.cjs | 875 ---- .yarn/releases/yarn-4.5.1.cjs | 934 +++++ .yarnrc.yml | 2 +- package.json | 2 +- yarn.lock | 7120 ++++++++++++++++----------------- 5 files changed, 4496 insertions(+), 4437 deletions(-) delete mode 100755 .yarn/releases/yarn-3.7.0.cjs create mode 100755 .yarn/releases/yarn-4.5.1.cjs diff --git a/.yarn/releases/yarn-3.7.0.cjs b/.yarn/releases/yarn-3.7.0.cjs deleted file mode 100755 index d5174e5..0000000 --- a/.yarn/releases/yarn-3.7.0.cjs +++ /dev/null @@ -1,875 +0,0 @@ -#!/usr/bin/env node -/* eslint-disable */ -//prettier-ignore -(()=>{var Tge=Object.create;var cS=Object.defineProperty;var Lge=Object.getOwnPropertyDescriptor;var Oge=Object.getOwnPropertyNames;var Mge=Object.getPrototypeOf,Kge=Object.prototype.hasOwnProperty;var J=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var Uge=(r,e)=>()=>(r&&(e=r(r=0)),e);var I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ct=(r,e)=>{for(var t in e)cS(r,t,{get:e[t],enumerable:!0})},Hge=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Oge(e))!Kge.call(r,n)&&n!==t&&cS(r,n,{get:()=>e[n],enumerable:!(i=Lge(e,n))||i.enumerable});return r};var ve=(r,e,t)=>(t=r!=null?Tge(Mge(r)):{},Hge(e||!r||!r.__esModule?cS(t,"default",{value:r,enumerable:!0}):t,r));var DK=I((rZe,kK)=>{kK.exports=PK;PK.sync=Afe;var vK=J("fs");function afe(r,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var i=0;i{TK.exports=FK;FK.sync=lfe;var RK=J("fs");function FK(r,e,t){RK.stat(r,function(i,n){t(i,i?!1:NK(n,e))})}function lfe(r,e){return NK(RK.statSync(r),e)}function NK(r,e){return r.isFile()&&cfe(r,e)}function cfe(r,e){var t=r.mode,i=r.uid,n=r.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=parseInt("001",8),u=a|l,g=t&c||t&l&&n===o||t&a&&i===s||t&u&&s===0;return g}});var MK=I((sZe,OK)=>{var nZe=J("fs"),cI;process.platform==="win32"||global.TESTING_WINDOWS?cI=DK():cI=LK();OK.exports=vS;vS.sync=ufe;function vS(r,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){vS(r,e||{},function(s,o){s?n(s):i(o)})})}cI(r,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),t(i,n)})}function ufe(r,e){try{return cI.sync(r,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var qK=I((oZe,jK)=>{var Dg=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",KK=J("path"),gfe=Dg?";":":",UK=MK(),HK=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"}),GK=(r,e)=>{let t=e.colon||gfe,i=r.match(/\//)||Dg&&r.match(/\\/)?[""]:[...Dg?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],n=Dg?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Dg?n.split(t):[""];return Dg&&r.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},YK=(r,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=GK(r,e),o=[],a=c=>new Promise((u,g)=>{if(c===i.length)return e.all&&o.length?u(o):g(HK(r));let h=i[c],p=/^".*"$/.test(h)?h.slice(1,-1):h,d=KK.join(p,r),m=!p&&/^\.[\\\/]/.test(r)?r.slice(0,2)+d:d;u(l(m,c,0))}),l=(c,u,g)=>new Promise((h,p)=>{if(g===n.length)return h(a(u+1));let d=n[g];UK(c+d,{pathExt:s},(m,y)=>{if(!m&&y)if(e.all)o.push(c+d);else return h(c+d);return h(l(c,u,g+1))})});return t?a(0).then(c=>t(null,c),t):a(0)},ffe=(r,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:n}=GK(r,e),s=[];for(let o=0;o{"use strict";var JK=(r={})=>{let e=r.env||process.env;return(r.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};xS.exports=JK;xS.exports.default=JK});var ZK=I((AZe,XK)=>{"use strict";var zK=J("path"),hfe=qK(),pfe=WK();function VK(r,e){let t=r.options.env||process.env,i=process.cwd(),n=r.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(r.options.cwd)}catch{}let o;try{o=hfe.sync(r.command,{path:t[pfe({env:t})],pathExt:e?zK.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=zK.resolve(n?r.options.cwd:"",o)),o}function dfe(r){return VK(r)||VK(r,!0)}XK.exports=dfe});var _K=I((lZe,kS)=>{"use strict";var PS=/([()\][%!^"`<>&|;, *?])/g;function Cfe(r){return r=r.replace(PS,"^$1"),r}function mfe(r,e){return r=`${r}`,r=r.replace(/(\\*)"/g,'$1$1\\"'),r=r.replace(/(\\*)$/,"$1$1"),r=`"${r}"`,r=r.replace(PS,"^$1"),e&&(r=r.replace(PS,"^$1")),r}kS.exports.command=Cfe;kS.exports.argument=mfe});var eU=I((cZe,$K)=>{"use strict";$K.exports=/^#!(.*)/});var rU=I((uZe,tU)=>{"use strict";var Efe=eU();tU.exports=(r="")=>{let e=r.match(Efe);if(!e)return null;let[t,i]=e[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var nU=I((gZe,iU)=>{"use strict";var DS=J("fs"),Ife=rU();function yfe(r){let t=Buffer.alloc(150),i;try{i=DS.openSync(r,"r"),DS.readSync(i,t,0,150,0),DS.closeSync(i)}catch{}return Ife(t.toString())}iU.exports=yfe});var AU=I((fZe,aU)=>{"use strict";var wfe=J("path"),sU=ZK(),oU=_K(),Bfe=nU(),Qfe=process.platform==="win32",bfe=/\.(?:com|exe)$/i,Sfe=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function vfe(r){r.file=sU(r);let e=r.file&&Bfe(r.file);return e?(r.args.unshift(r.file),r.command=e,sU(r)):r.file}function xfe(r){if(!Qfe)return r;let e=vfe(r),t=!bfe.test(e);if(r.options.forceShell||t){let i=Sfe.test(e);r.command=wfe.normalize(r.command),r.command=oU.command(r.command),r.args=r.args.map(s=>oU.argument(s,i));let n=[r.command].concat(r.args).join(" ");r.args=["/d","/s","/c",`"${n}"`],r.command=process.env.comspec||"cmd.exe",r.options.windowsVerbatimArguments=!0}return r}function Pfe(r,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let i={command:r,args:e,options:t,file:void 0,original:{command:r,args:e}};return t.shell?i:xfe(i)}aU.exports=Pfe});var uU=I((hZe,cU)=>{"use strict";var RS=process.platform==="win32";function FS(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function kfe(r,e){if(!RS)return;let t=r.emit;r.emit=function(i,n){if(i==="exit"){let s=lU(n,e,"spawn");if(s)return t.call(r,"error",s)}return t.apply(r,arguments)}}function lU(r,e){return RS&&r===1&&!e.file?FS(e.original,"spawn"):null}function Dfe(r,e){return RS&&r===1&&!e.file?FS(e.original,"spawnSync"):null}cU.exports={hookChildProcess:kfe,verifyENOENT:lU,verifyENOENTSync:Dfe,notFoundError:FS}});var LS=I((pZe,Rg)=>{"use strict";var gU=J("child_process"),NS=AU(),TS=uU();function fU(r,e,t){let i=NS(r,e,t),n=gU.spawn(i.command,i.args,i.options);return TS.hookChildProcess(n,i),n}function Rfe(r,e,t){let i=NS(r,e,t),n=gU.spawnSync(i.command,i.args,i.options);return n.error=n.error||TS.verifyENOENTSync(n.status,i),n}Rg.exports=fU;Rg.exports.spawn=fU;Rg.exports.sync=Rfe;Rg.exports._parse=NS;Rg.exports._enoent=TS});var pU=I((dZe,hU)=>{"use strict";function Ffe(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function $l(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$l)}Ffe($l,Error);$l.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,h=1;g>",re=Ke(">>",!1),de=">&",Ze=Ke(">&",!1),vt=">",mt=Ke(">",!1),Tr="<<<",ei=Ke("<<<",!1),ci="<&",gr=Ke("<&",!1),ui="<",ti=Ke("<",!1),Ms=function(C){return{type:"argument",segments:[].concat(...C)}},fr=function(C){return C},Ei="$'",ts=Ke("$'",!1),ua="'",CA=Ke("'",!1),gg=function(C){return[{type:"text",text:C}]},rs='""',mA=Ke('""',!1),ga=function(){return{type:"text",text:""}},Bp='"',EA=Ke('"',!1),IA=function(C){return C},Ir=function(C){return{type:"arithmetic",arithmetic:C,quoted:!0}},Nl=function(C){return{type:"shell",shell:C,quoted:!0}},fg=function(C){return{type:"variable",...C,quoted:!0}},Io=function(C){return{type:"text",text:C}},hg=function(C){return{type:"arithmetic",arithmetic:C,quoted:!1}},Qp=function(C){return{type:"shell",shell:C,quoted:!1}},bp=function(C){return{type:"variable",...C,quoted:!1}},br=function(C){return{type:"glob",pattern:C}},ne=/^[^']/,yo=Ve(["'"],!0,!1),Fn=function(C){return C.join("")},pg=/^[^$"]/,yt=Ve(["$",'"'],!0,!1),Tl=`\\ -`,Nn=Ke(`\\ -`,!1),is=function(){return""},ns="\\",ut=Ke("\\",!1),wo=/^[\\$"`]/,At=Ve(["\\","$",'"',"`"],!1,!1),An=function(C){return C},b="\\a",Ft=Ke("\\a",!1),dg=function(){return"a"},Ll="\\b",Sp=Ke("\\b",!1),vp=function(){return"\b"},xp=/^[Ee]/,Pp=Ve(["E","e"],!1,!1),kp=function(){return"\x1B"},G="\\f",Et=Ke("\\f",!1),yA=function(){return"\f"},Wi="\\n",Ol=Ke("\\n",!1),ze=function(){return` -`},fa="\\r",Cg=Ke("\\r",!1),KE=function(){return"\r"},Dp="\\t",UE=Ke("\\t",!1),sr=function(){return" "},Tn="\\v",Ml=Ke("\\v",!1),Rp=function(){return"\v"},Ks=/^[\\'"?]/,ha=Ve(["\\","'",'"',"?"],!1,!1),ln=function(C){return String.fromCharCode(parseInt(C,16))},Ne="\\x",mg=Ke("\\x",!1),Kl="\\u",Us=Ke("\\u",!1),Ul="\\U",wA=Ke("\\U",!1),Eg=function(C){return String.fromCodePoint(parseInt(C,16))},Ig=/^[0-7]/,pa=Ve([["0","7"]],!1,!1),da=/^[0-9a-fA-f]/,tt=Ve([["0","9"],["a","f"],["A","f"]],!1,!1),Bo=it(),BA="{}",Fp=Ke("{}",!1),Ca=function(){return"{}"},Hl="-",Gl=Ke("-",!1),QA="+",ma=Ke("+",!1),Np=".",HE=Ke(".",!1),Yl=function(C,Q,R){return{type:"number",value:(C==="-"?-1:1)*parseFloat(Q.join("")+"."+R.join(""))}},GE=function(C,Q){return{type:"number",value:(C==="-"?-1:1)*parseInt(Q.join(""))}},Tp=function(C){return{type:"variable",...C}},jl=function(C){return{type:"variable",name:C}},Lr=function(C){return C},YE="*",Hs=Ke("*",!1),Gs="/",yg=Ke("/",!1),bA=function(C,Q,R){return{type:Q==="*"?"multiplication":"division",right:R}},D=function(C,Q){return Q.reduce((R,U)=>({left:R,...U}),C)},j=function(C,Q,R){return{type:Q==="+"?"addition":"subtraction",right:R}},pe="$((",Le=Ke("$((",!1),ke="))",Je=Ke("))",!1),pt=function(C){return C},Xt="$(",Ea=Ke("$(",!1),R1=function(C){return C},Ys="${",wg=Ke("${",!1),Wb=":-",F1=Ke(":-",!1),N1=function(C,Q){return{name:C,defaultValue:Q}},zb=":-}",T1=Ke(":-}",!1),L1=function(C){return{name:C,defaultValue:[]}},Vb=":+",O1=Ke(":+",!1),M1=function(C,Q){return{name:C,alternativeValue:Q}},Xb=":+}",K1=Ke(":+}",!1),U1=function(C){return{name:C,alternativeValue:[]}},Zb=function(C){return{name:C}},H1="$",G1=Ke("$",!1),Y1=function(C){return e.isGlobPattern(C)},j1=function(C){return C},_b=/^[a-zA-Z0-9_]/,$b=Ve([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),eS=function(){return Ie()},ql=/^[$@*?#a-zA-Z0-9_\-]/,jE=Ve(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),tS=/^[()}<>$|&; \t"']/,rS=Ve(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),iS=/^[<>&; \t"']/,qE=Ve(["<",">","&",";"," "," ",'"',"'"],!1,!1),Jl=/^[ \t]/,Bg=Ve([" "," "],!1,!1),f=0,E=0,w=[{line:1,column:1}],k=0,L=[],T=0,$;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function Ie(){return r.substring(E,f)}function Oe(){return ri(E,f)}function rt(C,Q){throw Q=Q!==void 0?Q:ri(E,f),Ln([Ii(C)],r.substring(E,f),Q)}function ot(C,Q){throw Q=Q!==void 0?Q:ri(E,f),yi(C,Q)}function Ke(C,Q){return{type:"literal",text:C,ignoreCase:Q}}function Ve(C,Q,R){return{type:"class",parts:C,inverted:Q,ignoreCase:R}}function it(){return{type:"any"}}function wt(){return{type:"end"}}function Ii(C){return{type:"other",description:C}}function cn(C){var Q=w[C],R;if(Q)return Q;for(R=C-1;!w[R];)R--;for(Q=w[R],Q={line:Q.line,column:Q.column};Rk&&(k=f,L=[]),L.push(C))}function yi(C,Q){return new $l(C,null,null,Q)}function Ln(C,Q,R){return new $l($l.buildMessage(C,Q),C,Q,R)}function Ia(){var C,Q,R;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();return Q!==t?(R=Sr(),R===t&&(R=null),R!==t?(E=C,Q=s(R),C=Q):(f=C,C=t)):(f=C,C=t),C}function Sr(){var C,Q,R,U,le;if(C=f,Q=nS(),Q!==t){for(R=[],U=Me();U!==t;)R.push(U),U=Me();R!==t?(U=q1(),U!==t?(le=Cge(),le===t&&(le=null),le!==t?(E=C,Q=o(Q,U,le),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)}else f=C,C=t;if(C===t)if(C=f,Q=nS(),Q!==t){for(R=[],U=Me();U!==t;)R.push(U),U=Me();R!==t?(U=q1(),U===t&&(U=null),U!==t?(E=C,Q=a(Q,U),C=Q):(f=C,C=t)):(f=C,C=t)}else f=C,C=t;return C}function Cge(){var C,Q,R,U,le;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t)if(R=Sr(),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();U!==t?(E=C,Q=l(R),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t;return C}function q1(){var C;return r.charCodeAt(f)===59?(C=c,f++):(C=t,T===0&&Be(u)),C===t&&(r.charCodeAt(f)===38?(C=g,f++):(C=t,T===0&&Be(h))),C}function nS(){var C,Q,R;return C=f,Q=J1(),Q!==t?(R=mge(),R===t&&(R=null),R!==t?(E=C,Q=p(Q,R),C=Q):(f=C,C=t)):(f=C,C=t),C}function mge(){var C,Q,R,U,le,Qe,ft;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t)if(R=Ege(),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();if(U!==t)if(le=nS(),le!==t){for(Qe=[],ft=Me();ft!==t;)Qe.push(ft),ft=Me();Qe!==t?(E=C,Q=d(R,le),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t;return C}function Ege(){var C;return r.substr(f,2)===m?(C=m,f+=2):(C=t,T===0&&Be(y)),C===t&&(r.substr(f,2)===B?(C=B,f+=2):(C=t,T===0&&Be(S))),C}function J1(){var C,Q,R;return C=f,Q=wge(),Q!==t?(R=Ige(),R===t&&(R=null),R!==t?(E=C,Q=P(Q,R),C=Q):(f=C,C=t)):(f=C,C=t),C}function Ige(){var C,Q,R,U,le,Qe,ft;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t)if(R=yge(),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();if(U!==t)if(le=J1(),le!==t){for(Qe=[],ft=Me();ft!==t;)Qe.push(ft),ft=Me();Qe!==t?(E=C,Q=F(R,le),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t;return C}function yge(){var C;return r.substr(f,2)===H?(C=H,f+=2):(C=t,T===0&&Be(q)),C===t&&(r.charCodeAt(f)===124?(C=_,f++):(C=t,T===0&&Be(X))),C}function JE(){var C,Q,R,U,le,Qe;if(C=f,Q=nK(),Q!==t)if(r.charCodeAt(f)===61?(R=W,f++):(R=t,T===0&&Be(Z)),R!==t)if(U=V1(),U!==t){for(le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();le!==t?(E=C,Q=A(Q,U),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t;else f=C,C=t;if(C===t)if(C=f,Q=nK(),Q!==t)if(r.charCodeAt(f)===61?(R=W,f++):(R=t,T===0&&Be(Z)),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();U!==t?(E=C,Q=se(Q),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t;return C}function wge(){var C,Q,R,U,le,Qe,ft,It,Gr,gi,ss;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t)if(r.charCodeAt(f)===40?(R=ue,f++):(R=t,T===0&&Be(ee)),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();if(U!==t)if(le=Sr(),le!==t){for(Qe=[],ft=Me();ft!==t;)Qe.push(ft),ft=Me();if(Qe!==t)if(r.charCodeAt(f)===41?(ft=O,f++):(ft=t,T===0&&Be(N)),ft!==t){for(It=[],Gr=Me();Gr!==t;)It.push(Gr),Gr=Me();if(It!==t){for(Gr=[],gi=Lp();gi!==t;)Gr.push(gi),gi=Lp();if(Gr!==t){for(gi=[],ss=Me();ss!==t;)gi.push(ss),ss=Me();gi!==t?(E=C,Q=ce(le,Gr),C=Q):(f=C,C=t)}else f=C,C=t}else f=C,C=t}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t;if(C===t){for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t)if(r.charCodeAt(f)===123?(R=he,f++):(R=t,T===0&&Be(Pe)),R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();if(U!==t)if(le=Sr(),le!==t){for(Qe=[],ft=Me();ft!==t;)Qe.push(ft),ft=Me();if(Qe!==t)if(r.charCodeAt(f)===125?(ft=De,f++):(ft=t,T===0&&Be(Re)),ft!==t){for(It=[],Gr=Me();Gr!==t;)It.push(Gr),Gr=Me();if(It!==t){for(Gr=[],gi=Lp();gi!==t;)Gr.push(gi),gi=Lp();if(Gr!==t){for(gi=[],ss=Me();ss!==t;)gi.push(ss),ss=Me();gi!==t?(E=C,Q=oe(le,Gr),C=Q):(f=C,C=t)}else f=C,C=t}else f=C,C=t}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t}else f=C,C=t;else f=C,C=t;if(C===t){for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t){for(R=[],U=JE();U!==t;)R.push(U),U=JE();if(R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();if(U!==t){if(le=[],Qe=z1(),Qe!==t)for(;Qe!==t;)le.push(Qe),Qe=z1();else le=t;if(le!==t){for(Qe=[],ft=Me();ft!==t;)Qe.push(ft),ft=Me();Qe!==t?(E=C,Q=Ae(R,le),C=Q):(f=C,C=t)}else f=C,C=t}else f=C,C=t}else f=C,C=t}else f=C,C=t;if(C===t){for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t){if(R=[],U=JE(),U!==t)for(;U!==t;)R.push(U),U=JE();else R=t;if(R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();U!==t?(E=C,Q=ye(R),C=Q):(f=C,C=t)}else f=C,C=t}else f=C,C=t}}}return C}function W1(){var C,Q,R,U,le;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t){if(R=[],U=WE(),U!==t)for(;U!==t;)R.push(U),U=WE();else R=t;if(R!==t){for(U=[],le=Me();le!==t;)U.push(le),le=Me();U!==t?(E=C,Q=ge(R),C=Q):(f=C,C=t)}else f=C,C=t}else f=C,C=t;return C}function z1(){var C,Q,R;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();if(Q!==t?(R=Lp(),R!==t?(E=C,Q=ae(R),C=Q):(f=C,C=t)):(f=C,C=t),C===t){for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();Q!==t?(R=WE(),R!==t?(E=C,Q=ae(R),C=Q):(f=C,C=t)):(f=C,C=t)}return C}function Lp(){var C,Q,R,U,le;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();return Q!==t?(je.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(ie)),R===t&&(R=null),R!==t?(U=Bge(),U!==t?(le=WE(),le!==t?(E=C,Q=Y(R,U,le),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C}function Bge(){var C;return r.substr(f,2)===fe?(C=fe,f+=2):(C=t,T===0&&Be(re)),C===t&&(r.substr(f,2)===de?(C=de,f+=2):(C=t,T===0&&Be(Ze)),C===t&&(r.charCodeAt(f)===62?(C=vt,f++):(C=t,T===0&&Be(mt)),C===t&&(r.substr(f,3)===Tr?(C=Tr,f+=3):(C=t,T===0&&Be(ei)),C===t&&(r.substr(f,2)===ci?(C=ci,f+=2):(C=t,T===0&&Be(gr)),C===t&&(r.charCodeAt(f)===60?(C=ui,f++):(C=t,T===0&&Be(ti))))))),C}function WE(){var C,Q,R;for(C=f,Q=[],R=Me();R!==t;)Q.push(R),R=Me();return Q!==t?(R=V1(),R!==t?(E=C,Q=ae(R),C=Q):(f=C,C=t)):(f=C,C=t),C}function V1(){var C,Q,R;if(C=f,Q=[],R=X1(),R!==t)for(;R!==t;)Q.push(R),R=X1();else Q=t;return Q!==t&&(E=C,Q=Ms(Q)),C=Q,C}function X1(){var C,Q;return C=f,Q=Qge(),Q!==t&&(E=C,Q=fr(Q)),C=Q,C===t&&(C=f,Q=bge(),Q!==t&&(E=C,Q=fr(Q)),C=Q,C===t&&(C=f,Q=Sge(),Q!==t&&(E=C,Q=fr(Q)),C=Q,C===t&&(C=f,Q=vge(),Q!==t&&(E=C,Q=fr(Q)),C=Q))),C}function Qge(){var C,Q,R,U;return C=f,r.substr(f,2)===Ei?(Q=Ei,f+=2):(Q=t,T===0&&Be(ts)),Q!==t?(R=kge(),R!==t?(r.charCodeAt(f)===39?(U=ua,f++):(U=t,T===0&&Be(CA)),U!==t?(E=C,Q=gg(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C}function bge(){var C,Q,R,U;return C=f,r.charCodeAt(f)===39?(Q=ua,f++):(Q=t,T===0&&Be(CA)),Q!==t?(R=xge(),R!==t?(r.charCodeAt(f)===39?(U=ua,f++):(U=t,T===0&&Be(CA)),U!==t?(E=C,Q=gg(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C}function Sge(){var C,Q,R,U;if(C=f,r.substr(f,2)===rs?(Q=rs,f+=2):(Q=t,T===0&&Be(mA)),Q!==t&&(E=C,Q=ga()),C=Q,C===t)if(C=f,r.charCodeAt(f)===34?(Q=Bp,f++):(Q=t,T===0&&Be(EA)),Q!==t){for(R=[],U=Z1();U!==t;)R.push(U),U=Z1();R!==t?(r.charCodeAt(f)===34?(U=Bp,f++):(U=t,T===0&&Be(EA)),U!==t?(E=C,Q=IA(R),C=Q):(f=C,C=t)):(f=C,C=t)}else f=C,C=t;return C}function vge(){var C,Q,R;if(C=f,Q=[],R=_1(),R!==t)for(;R!==t;)Q.push(R),R=_1();else Q=t;return Q!==t&&(E=C,Q=IA(Q)),C=Q,C}function Z1(){var C,Q;return C=f,Q=rK(),Q!==t&&(E=C,Q=Ir(Q)),C=Q,C===t&&(C=f,Q=iK(),Q!==t&&(E=C,Q=Nl(Q)),C=Q,C===t&&(C=f,Q=AS(),Q!==t&&(E=C,Q=fg(Q)),C=Q,C===t&&(C=f,Q=Pge(),Q!==t&&(E=C,Q=Io(Q)),C=Q))),C}function _1(){var C,Q;return C=f,Q=rK(),Q!==t&&(E=C,Q=hg(Q)),C=Q,C===t&&(C=f,Q=iK(),Q!==t&&(E=C,Q=Qp(Q)),C=Q,C===t&&(C=f,Q=AS(),Q!==t&&(E=C,Q=bp(Q)),C=Q,C===t&&(C=f,Q=Fge(),Q!==t&&(E=C,Q=br(Q)),C=Q,C===t&&(C=f,Q=Rge(),Q!==t&&(E=C,Q=Io(Q)),C=Q)))),C}function xge(){var C,Q,R;for(C=f,Q=[],ne.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yo));R!==t;)Q.push(R),ne.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yo));return Q!==t&&(E=C,Q=Fn(Q)),C=Q,C}function Pge(){var C,Q,R;if(C=f,Q=[],R=$1(),R===t&&(pg.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yt))),R!==t)for(;R!==t;)Q.push(R),R=$1(),R===t&&(pg.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yt)));else Q=t;return Q!==t&&(E=C,Q=Fn(Q)),C=Q,C}function $1(){var C,Q,R;return C=f,r.substr(f,2)===Tl?(Q=Tl,f+=2):(Q=t,T===0&&Be(Nn)),Q!==t&&(E=C,Q=is()),C=Q,C===t&&(C=f,r.charCodeAt(f)===92?(Q=ns,f++):(Q=t,T===0&&Be(ut)),Q!==t?(wo.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(At)),R!==t?(E=C,Q=An(R),C=Q):(f=C,C=t)):(f=C,C=t)),C}function kge(){var C,Q,R;for(C=f,Q=[],R=eK(),R===t&&(ne.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yo)));R!==t;)Q.push(R),R=eK(),R===t&&(ne.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(yo)));return Q!==t&&(E=C,Q=Fn(Q)),C=Q,C}function eK(){var C,Q,R;return C=f,r.substr(f,2)===b?(Q=b,f+=2):(Q=t,T===0&&Be(Ft)),Q!==t&&(E=C,Q=dg()),C=Q,C===t&&(C=f,r.substr(f,2)===Ll?(Q=Ll,f+=2):(Q=t,T===0&&Be(Sp)),Q!==t&&(E=C,Q=vp()),C=Q,C===t&&(C=f,r.charCodeAt(f)===92?(Q=ns,f++):(Q=t,T===0&&Be(ut)),Q!==t?(xp.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(Pp)),R!==t?(E=C,Q=kp(),C=Q):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===G?(Q=G,f+=2):(Q=t,T===0&&Be(Et)),Q!==t&&(E=C,Q=yA()),C=Q,C===t&&(C=f,r.substr(f,2)===Wi?(Q=Wi,f+=2):(Q=t,T===0&&Be(Ol)),Q!==t&&(E=C,Q=ze()),C=Q,C===t&&(C=f,r.substr(f,2)===fa?(Q=fa,f+=2):(Q=t,T===0&&Be(Cg)),Q!==t&&(E=C,Q=KE()),C=Q,C===t&&(C=f,r.substr(f,2)===Dp?(Q=Dp,f+=2):(Q=t,T===0&&Be(UE)),Q!==t&&(E=C,Q=sr()),C=Q,C===t&&(C=f,r.substr(f,2)===Tn?(Q=Tn,f+=2):(Q=t,T===0&&Be(Ml)),Q!==t&&(E=C,Q=Rp()),C=Q,C===t&&(C=f,r.charCodeAt(f)===92?(Q=ns,f++):(Q=t,T===0&&Be(ut)),Q!==t?(Ks.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(ha)),R!==t?(E=C,Q=An(R),C=Q):(f=C,C=t)):(f=C,C=t),C===t&&(C=Dge()))))))))),C}function Dge(){var C,Q,R,U,le,Qe,ft,It,Gr,gi,ss,lS;return C=f,r.charCodeAt(f)===92?(Q=ns,f++):(Q=t,T===0&&Be(ut)),Q!==t?(R=sS(),R!==t?(E=C,Q=ln(R),C=Q):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ne?(Q=Ne,f+=2):(Q=t,T===0&&Be(mg)),Q!==t?(R=f,U=f,le=sS(),le!==t?(Qe=On(),Qe!==t?(le=[le,Qe],U=le):(f=U,U=t)):(f=U,U=t),U===t&&(U=sS()),U!==t?R=r.substring(R,f):R=U,R!==t?(E=C,Q=ln(R),C=Q):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Kl?(Q=Kl,f+=2):(Q=t,T===0&&Be(Us)),Q!==t?(R=f,U=f,le=On(),le!==t?(Qe=On(),Qe!==t?(ft=On(),ft!==t?(It=On(),It!==t?(le=[le,Qe,ft,It],U=le):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t),U!==t?R=r.substring(R,f):R=U,R!==t?(E=C,Q=ln(R),C=Q):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ul?(Q=Ul,f+=2):(Q=t,T===0&&Be(wA)),Q!==t?(R=f,U=f,le=On(),le!==t?(Qe=On(),Qe!==t?(ft=On(),ft!==t?(It=On(),It!==t?(Gr=On(),Gr!==t?(gi=On(),gi!==t?(ss=On(),ss!==t?(lS=On(),lS!==t?(le=[le,Qe,ft,It,Gr,gi,ss,lS],U=le):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t)):(f=U,U=t),U!==t?R=r.substring(R,f):R=U,R!==t?(E=C,Q=Eg(R),C=Q):(f=C,C=t)):(f=C,C=t)))),C}function sS(){var C;return Ig.test(r.charAt(f))?(C=r.charAt(f),f++):(C=t,T===0&&Be(pa)),C}function On(){var C;return da.test(r.charAt(f))?(C=r.charAt(f),f++):(C=t,T===0&&Be(tt)),C}function Rge(){var C,Q,R,U,le;if(C=f,Q=[],R=f,r.charCodeAt(f)===92?(U=ns,f++):(U=t,T===0&&Be(ut)),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t),R===t&&(R=f,r.substr(f,2)===BA?(U=BA,f+=2):(U=t,T===0&&Be(Fp)),U!==t&&(E=R,U=Ca()),R=U,R===t&&(R=f,U=f,T++,le=sK(),T--,le===t?U=void 0:(f=U,U=t),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t))),R!==t)for(;R!==t;)Q.push(R),R=f,r.charCodeAt(f)===92?(U=ns,f++):(U=t,T===0&&Be(ut)),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t),R===t&&(R=f,r.substr(f,2)===BA?(U=BA,f+=2):(U=t,T===0&&Be(Fp)),U!==t&&(E=R,U=Ca()),R=U,R===t&&(R=f,U=f,T++,le=sK(),T--,le===t?U=void 0:(f=U,U=t),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t)));else Q=t;return Q!==t&&(E=C,Q=Fn(Q)),C=Q,C}function oS(){var C,Q,R,U,le,Qe;if(C=f,r.charCodeAt(f)===45?(Q=Hl,f++):(Q=t,T===0&&Be(Gl)),Q===t&&(r.charCodeAt(f)===43?(Q=QA,f++):(Q=t,T===0&&Be(ma))),Q===t&&(Q=null),Q!==t){if(R=[],je.test(r.charAt(f))?(U=r.charAt(f),f++):(U=t,T===0&&Be(ie)),U!==t)for(;U!==t;)R.push(U),je.test(r.charAt(f))?(U=r.charAt(f),f++):(U=t,T===0&&Be(ie));else R=t;if(R!==t)if(r.charCodeAt(f)===46?(U=Np,f++):(U=t,T===0&&Be(HE)),U!==t){if(le=[],je.test(r.charAt(f))?(Qe=r.charAt(f),f++):(Qe=t,T===0&&Be(ie)),Qe!==t)for(;Qe!==t;)le.push(Qe),je.test(r.charAt(f))?(Qe=r.charAt(f),f++):(Qe=t,T===0&&Be(ie));else le=t;le!==t?(E=C,Q=Yl(Q,R,le),C=Q):(f=C,C=t)}else f=C,C=t;else f=C,C=t}else f=C,C=t;if(C===t){if(C=f,r.charCodeAt(f)===45?(Q=Hl,f++):(Q=t,T===0&&Be(Gl)),Q===t&&(r.charCodeAt(f)===43?(Q=QA,f++):(Q=t,T===0&&Be(ma))),Q===t&&(Q=null),Q!==t){if(R=[],je.test(r.charAt(f))?(U=r.charAt(f),f++):(U=t,T===0&&Be(ie)),U!==t)for(;U!==t;)R.push(U),je.test(r.charAt(f))?(U=r.charAt(f),f++):(U=t,T===0&&Be(ie));else R=t;R!==t?(E=C,Q=GE(Q,R),C=Q):(f=C,C=t)}else f=C,C=t;if(C===t&&(C=f,Q=AS(),Q!==t&&(E=C,Q=Tp(Q)),C=Q,C===t&&(C=f,Q=Wl(),Q!==t&&(E=C,Q=jl(Q)),C=Q,C===t)))if(C=f,r.charCodeAt(f)===40?(Q=ue,f++):(Q=t,T===0&&Be(ee)),Q!==t){for(R=[],U=Me();U!==t;)R.push(U),U=Me();if(R!==t)if(U=tK(),U!==t){for(le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();le!==t?(r.charCodeAt(f)===41?(Qe=O,f++):(Qe=t,T===0&&Be(N)),Qe!==t?(E=C,Q=Lr(U),C=Q):(f=C,C=t)):(f=C,C=t)}else f=C,C=t;else f=C,C=t}else f=C,C=t}return C}function aS(){var C,Q,R,U,le,Qe,ft,It;if(C=f,Q=oS(),Q!==t){for(R=[],U=f,le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();if(le!==t)if(r.charCodeAt(f)===42?(Qe=YE,f++):(Qe=t,T===0&&Be(Hs)),Qe===t&&(r.charCodeAt(f)===47?(Qe=Gs,f++):(Qe=t,T===0&&Be(yg))),Qe!==t){for(ft=[],It=Me();It!==t;)ft.push(It),It=Me();ft!==t?(It=oS(),It!==t?(E=U,le=bA(Q,Qe,It),U=le):(f=U,U=t)):(f=U,U=t)}else f=U,U=t;else f=U,U=t;for(;U!==t;){for(R.push(U),U=f,le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();if(le!==t)if(r.charCodeAt(f)===42?(Qe=YE,f++):(Qe=t,T===0&&Be(Hs)),Qe===t&&(r.charCodeAt(f)===47?(Qe=Gs,f++):(Qe=t,T===0&&Be(yg))),Qe!==t){for(ft=[],It=Me();It!==t;)ft.push(It),It=Me();ft!==t?(It=oS(),It!==t?(E=U,le=bA(Q,Qe,It),U=le):(f=U,U=t)):(f=U,U=t)}else f=U,U=t;else f=U,U=t}R!==t?(E=C,Q=D(Q,R),C=Q):(f=C,C=t)}else f=C,C=t;return C}function tK(){var C,Q,R,U,le,Qe,ft,It;if(C=f,Q=aS(),Q!==t){for(R=[],U=f,le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();if(le!==t)if(r.charCodeAt(f)===43?(Qe=QA,f++):(Qe=t,T===0&&Be(ma)),Qe===t&&(r.charCodeAt(f)===45?(Qe=Hl,f++):(Qe=t,T===0&&Be(Gl))),Qe!==t){for(ft=[],It=Me();It!==t;)ft.push(It),It=Me();ft!==t?(It=aS(),It!==t?(E=U,le=j(Q,Qe,It),U=le):(f=U,U=t)):(f=U,U=t)}else f=U,U=t;else f=U,U=t;for(;U!==t;){for(R.push(U),U=f,le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();if(le!==t)if(r.charCodeAt(f)===43?(Qe=QA,f++):(Qe=t,T===0&&Be(ma)),Qe===t&&(r.charCodeAt(f)===45?(Qe=Hl,f++):(Qe=t,T===0&&Be(Gl))),Qe!==t){for(ft=[],It=Me();It!==t;)ft.push(It),It=Me();ft!==t?(It=aS(),It!==t?(E=U,le=j(Q,Qe,It),U=le):(f=U,U=t)):(f=U,U=t)}else f=U,U=t;else f=U,U=t}R!==t?(E=C,Q=D(Q,R),C=Q):(f=C,C=t)}else f=C,C=t;return C}function rK(){var C,Q,R,U,le,Qe;if(C=f,r.substr(f,3)===pe?(Q=pe,f+=3):(Q=t,T===0&&Be(Le)),Q!==t){for(R=[],U=Me();U!==t;)R.push(U),U=Me();if(R!==t)if(U=tK(),U!==t){for(le=[],Qe=Me();Qe!==t;)le.push(Qe),Qe=Me();le!==t?(r.substr(f,2)===ke?(Qe=ke,f+=2):(Qe=t,T===0&&Be(Je)),Qe!==t?(E=C,Q=pt(U),C=Q):(f=C,C=t)):(f=C,C=t)}else f=C,C=t;else f=C,C=t}else f=C,C=t;return C}function iK(){var C,Q,R,U;return C=f,r.substr(f,2)===Xt?(Q=Xt,f+=2):(Q=t,T===0&&Be(Ea)),Q!==t?(R=Sr(),R!==t?(r.charCodeAt(f)===41?(U=O,f++):(U=t,T===0&&Be(N)),U!==t?(E=C,Q=R1(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C}function AS(){var C,Q,R,U,le,Qe;return C=f,r.substr(f,2)===Ys?(Q=Ys,f+=2):(Q=t,T===0&&Be(wg)),Q!==t?(R=Wl(),R!==t?(r.substr(f,2)===Wb?(U=Wb,f+=2):(U=t,T===0&&Be(F1)),U!==t?(le=W1(),le!==t?(r.charCodeAt(f)===125?(Qe=De,f++):(Qe=t,T===0&&Be(Re)),Qe!==t?(E=C,Q=N1(R,le),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ys?(Q=Ys,f+=2):(Q=t,T===0&&Be(wg)),Q!==t?(R=Wl(),R!==t?(r.substr(f,3)===zb?(U=zb,f+=3):(U=t,T===0&&Be(T1)),U!==t?(E=C,Q=L1(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ys?(Q=Ys,f+=2):(Q=t,T===0&&Be(wg)),Q!==t?(R=Wl(),R!==t?(r.substr(f,2)===Vb?(U=Vb,f+=2):(U=t,T===0&&Be(O1)),U!==t?(le=W1(),le!==t?(r.charCodeAt(f)===125?(Qe=De,f++):(Qe=t,T===0&&Be(Re)),Qe!==t?(E=C,Q=M1(R,le),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ys?(Q=Ys,f+=2):(Q=t,T===0&&Be(wg)),Q!==t?(R=Wl(),R!==t?(r.substr(f,3)===Xb?(U=Xb,f+=3):(U=t,T===0&&Be(K1)),U!==t?(E=C,Q=U1(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.substr(f,2)===Ys?(Q=Ys,f+=2):(Q=t,T===0&&Be(wg)),Q!==t?(R=Wl(),R!==t?(r.charCodeAt(f)===125?(U=De,f++):(U=t,T===0&&Be(Re)),U!==t?(E=C,Q=Zb(R),C=Q):(f=C,C=t)):(f=C,C=t)):(f=C,C=t),C===t&&(C=f,r.charCodeAt(f)===36?(Q=H1,f++):(Q=t,T===0&&Be(G1)),Q!==t?(R=Wl(),R!==t?(E=C,Q=Zb(R),C=Q):(f=C,C=t)):(f=C,C=t)))))),C}function Fge(){var C,Q,R;return C=f,Q=Nge(),Q!==t?(E=f,R=Y1(Q),R?R=void 0:R=t,R!==t?(E=C,Q=j1(Q),C=Q):(f=C,C=t)):(f=C,C=t),C}function Nge(){var C,Q,R,U,le;if(C=f,Q=[],R=f,U=f,T++,le=oK(),T--,le===t?U=void 0:(f=U,U=t),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t),R!==t)for(;R!==t;)Q.push(R),R=f,U=f,T++,le=oK(),T--,le===t?U=void 0:(f=U,U=t),U!==t?(r.length>f?(le=r.charAt(f),f++):(le=t,T===0&&Be(Bo)),le!==t?(E=R,U=An(le),R=U):(f=R,R=t)):(f=R,R=t);else Q=t;return Q!==t&&(E=C,Q=Fn(Q)),C=Q,C}function nK(){var C,Q,R;if(C=f,Q=[],_b.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be($b)),R!==t)for(;R!==t;)Q.push(R),_b.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be($b));else Q=t;return Q!==t&&(E=C,Q=eS()),C=Q,C}function Wl(){var C,Q,R;if(C=f,Q=[],ql.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(jE)),R!==t)for(;R!==t;)Q.push(R),ql.test(r.charAt(f))?(R=r.charAt(f),f++):(R=t,T===0&&Be(jE));else Q=t;return Q!==t&&(E=C,Q=eS()),C=Q,C}function sK(){var C;return tS.test(r.charAt(f))?(C=r.charAt(f),f++):(C=t,T===0&&Be(rS)),C}function oK(){var C;return iS.test(r.charAt(f))?(C=r.charAt(f),f++):(C=t,T===0&&Be(qE)),C}function Me(){var C,Q;if(C=[],Jl.test(r.charAt(f))?(Q=r.charAt(f),f++):(Q=t,T===0&&Be(Bg)),Q!==t)for(;Q!==t;)C.push(Q),Jl.test(r.charAt(f))?(Q=r.charAt(f),f++):(Q=t,T===0&&Be(Bg));else C=t;return C}if($=n(),$!==t&&f===r.length)return $;throw $!==t&&f{"use strict";function Ofe(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function tc(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,tc)}Ofe(tc,Error);tc.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,h=1;gH&&(H=S,q=[]),q.push(ie))}function Re(ie,Y){return new tc(ie,null,null,Y)}function oe(ie,Y,fe){return new tc(tc.buildMessage(ie,Y),ie,Y,fe)}function Ae(){var ie,Y,fe,re;return ie=S,Y=ye(),Y!==t?(r.charCodeAt(S)===47?(fe=s,S++):(fe=t,_===0&&De(o)),fe!==t?(re=ye(),re!==t?(P=ie,Y=a(Y,re),ie=Y):(S=ie,ie=t)):(S=ie,ie=t)):(S=ie,ie=t),ie===t&&(ie=S,Y=ye(),Y!==t&&(P=ie,Y=l(Y)),ie=Y),ie}function ye(){var ie,Y,fe,re;return ie=S,Y=ge(),Y!==t?(r.charCodeAt(S)===64?(fe=c,S++):(fe=t,_===0&&De(u)),fe!==t?(re=je(),re!==t?(P=ie,Y=g(Y,re),ie=Y):(S=ie,ie=t)):(S=ie,ie=t)):(S=ie,ie=t),ie===t&&(ie=S,Y=ge(),Y!==t&&(P=ie,Y=h(Y)),ie=Y),ie}function ge(){var ie,Y,fe,re,de;return ie=S,r.charCodeAt(S)===64?(Y=c,S++):(Y=t,_===0&&De(u)),Y!==t?(fe=ae(),fe!==t?(r.charCodeAt(S)===47?(re=s,S++):(re=t,_===0&&De(o)),re!==t?(de=ae(),de!==t?(P=ie,Y=p(),ie=Y):(S=ie,ie=t)):(S=ie,ie=t)):(S=ie,ie=t)):(S=ie,ie=t),ie===t&&(ie=S,Y=ae(),Y!==t&&(P=ie,Y=p()),ie=Y),ie}function ae(){var ie,Y,fe;if(ie=S,Y=[],d.test(r.charAt(S))?(fe=r.charAt(S),S++):(fe=t,_===0&&De(m)),fe!==t)for(;fe!==t;)Y.push(fe),d.test(r.charAt(S))?(fe=r.charAt(S),S++):(fe=t,_===0&&De(m));else Y=t;return Y!==t&&(P=ie,Y=p()),ie=Y,ie}function je(){var ie,Y,fe;if(ie=S,Y=[],y.test(r.charAt(S))?(fe=r.charAt(S),S++):(fe=t,_===0&&De(B)),fe!==t)for(;fe!==t;)Y.push(fe),y.test(r.charAt(S))?(fe=r.charAt(S),S++):(fe=t,_===0&&De(B));else Y=t;return Y!==t&&(P=ie,Y=p()),ie=Y,ie}if(X=n(),X!==t&&S===r.length)return X;throw X!==t&&S{"use strict";function wU(r){return typeof r>"u"||r===null}function Kfe(r){return typeof r=="object"&&r!==null}function Ufe(r){return Array.isArray(r)?r:wU(r)?[]:[r]}function Hfe(r,e){var t,i,n,s;if(e)for(s=Object.keys(e),t=0,i=s.length;t{"use strict";function Zp(r,e){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Zp.prototype=Object.create(Error.prototype);Zp.prototype.constructor=Zp;Zp.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t};BU.exports=Zp});var SU=I((NZe,bU)=>{"use strict";var QU=ic();function GS(r,e,t,i,n){this.name=r,this.buffer=e,this.position=t,this.line=i,this.column=n}GS.prototype.getSnippet=function(e,t){var i,n,s,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,i="",n=this.position;n>0&&`\0\r -\x85\u2028\u2029`.indexOf(this.buffer.charAt(n-1))===-1;)if(n-=1,this.position-n>t/2-1){i=" ... ",n+=5;break}for(s="",o=this.position;ot/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(n,o),QU.repeat(" ",e)+i+a+s+` -`+QU.repeat(" ",e+this.position-n+i.length)+"^"};GS.prototype.toString=function(e){var t,i="";return this.name&&(i+='in "'+this.name+'" '),i+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(i+=`: -`+t)),i};bU.exports=GS});var ii=I((TZe,xU)=>{"use strict";var vU=Tg(),jfe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],qfe=["scalar","sequence","mapping"];function Jfe(r){var e={};return r!==null&&Object.keys(r).forEach(function(t){r[t].forEach(function(i){e[String(i)]=t})}),e}function Wfe(r,e){if(e=e||{},Object.keys(e).forEach(function(t){if(jfe.indexOf(t)===-1)throw new vU('Unknown option "'+t+'" is met in definition of "'+r+'" YAML type.')}),this.tag=r,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=Jfe(e.styleAliases||null),qfe.indexOf(this.kind)===-1)throw new vU('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}xU.exports=Wfe});var nc=I((LZe,kU)=>{"use strict";var PU=ic(),CI=Tg(),zfe=ii();function YS(r,e,t){var i=[];return r.include.forEach(function(n){t=YS(n,e,t)}),r[e].forEach(function(n){t.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&i.push(o)}),t.push(n)}),t.filter(function(n,s){return i.indexOf(s)===-1})}function Vfe(){var r={scalar:{},sequence:{},mapping:{},fallback:{}},e,t;function i(n){r[n.kind][n.tag]=r.fallback[n.tag]=n}for(e=0,t=arguments.length;e{"use strict";var Xfe=ii();DU.exports=new Xfe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})});var NU=I((MZe,FU)=>{"use strict";var Zfe=ii();FU.exports=new Zfe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})});var LU=I((KZe,TU)=>{"use strict";var _fe=ii();TU.exports=new _fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})});var mI=I((UZe,OU)=>{"use strict";var $fe=nc();OU.exports=new $fe({explicit:[RU(),NU(),LU()]})});var KU=I((HZe,MU)=>{"use strict";var ehe=ii();function the(r){if(r===null)return!0;var e=r.length;return e===1&&r==="~"||e===4&&(r==="null"||r==="Null"||r==="NULL")}function rhe(){return null}function ihe(r){return r===null}MU.exports=new ehe("tag:yaml.org,2002:null",{kind:"scalar",resolve:the,construct:rhe,predicate:ihe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var HU=I((GZe,UU)=>{"use strict";var nhe=ii();function she(r){if(r===null)return!1;var e=r.length;return e===4&&(r==="true"||r==="True"||r==="TRUE")||e===5&&(r==="false"||r==="False"||r==="FALSE")}function ohe(r){return r==="true"||r==="True"||r==="TRUE"}function ahe(r){return Object.prototype.toString.call(r)==="[object Boolean]"}UU.exports=new nhe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:she,construct:ohe,predicate:ahe,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})});var YU=I((YZe,GU)=>{"use strict";var Ahe=ic(),lhe=ii();function che(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function uhe(r){return 48<=r&&r<=55}function ghe(r){return 48<=r&&r<=57}function fhe(r){if(r===null)return!1;var e=r.length,t=0,i=!1,n;if(!e)return!1;if(n=r[t],(n==="-"||n==="+")&&(n=r[++t]),n==="0"){if(t+1===e)return!0;if(n=r[++t],n==="b"){for(t++;t=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var JU=I((jZe,qU)=>{"use strict";var jU=ic(),dhe=ii(),Che=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mhe(r){return!(r===null||!Che.test(r)||r[r.length-1]==="_")}function Ehe(r){var e,t,i,n;return e=r.replace(/_/g,"").toLowerCase(),t=e[0]==="-"?-1:1,n=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(s){n.unshift(parseFloat(s,10))}),e=0,i=1,n.forEach(function(s){e+=s*i,i*=60}),t*e):t*parseFloat(e,10)}var Ihe=/^[-+]?[0-9]+e/;function yhe(r,e){var t;if(isNaN(r))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===r)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===r)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(jU.isNegativeZero(r))return"-0.0";return t=r.toString(10),Ihe.test(t)?t.replace("e",".e"):t}function whe(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||jU.isNegativeZero(r))}qU.exports=new dhe("tag:yaml.org,2002:float",{kind:"scalar",resolve:mhe,construct:Ehe,predicate:whe,represent:yhe,defaultStyle:"lowercase"})});var jS=I((qZe,WU)=>{"use strict";var Bhe=nc();WU.exports=new Bhe({include:[mI()],implicit:[KU(),HU(),YU(),JU()]})});var qS=I((JZe,zU)=>{"use strict";var Qhe=nc();zU.exports=new Qhe({include:[jS()]})});var _U=I((WZe,ZU)=>{"use strict";var bhe=ii(),VU=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),XU=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function She(r){return r===null?!1:VU.exec(r)!==null||XU.exec(r)!==null}function vhe(r){var e,t,i,n,s,o,a,l=0,c=null,u,g,h;if(e=VU.exec(r),e===null&&(e=XU.exec(r)),e===null)throw new Error("Date resolve error");if(t=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(t,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],g=+(e[11]||0),c=(u*60+g)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(t,i,n,s,o,a,l)),c&&h.setTime(h.getTime()-c),h}function xhe(r){return r.toISOString()}ZU.exports=new bhe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:She,construct:vhe,instanceOf:Date,represent:xhe})});var e2=I((zZe,$U)=>{"use strict";var Phe=ii();function khe(r){return r==="<<"||r===null}$U.exports=new Phe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:khe})});var i2=I((VZe,r2)=>{"use strict";var sc;try{t2=J,sc=t2("buffer").Buffer}catch{}var t2,Dhe=ii(),JS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function Rhe(r){if(r===null)return!1;var e,t,i=0,n=r.length,s=JS;for(t=0;t64)){if(e<0)return!1;i+=6}return i%8===0}function Fhe(r){var e,t,i=r.replace(/[\r\n=]/g,""),n=i.length,s=JS,o=0,a=[];for(e=0;e>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return t=n%4*6,t===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):t===18?(a.push(o>>10&255),a.push(o>>2&255)):t===12&&a.push(o>>4&255),sc?sc.from?sc.from(a):new sc(a):a}function Nhe(r){var e="",t=0,i,n,s=r.length,o=JS;for(i=0;i>18&63],e+=o[t>>12&63],e+=o[t>>6&63],e+=o[t&63]),t=(t<<8)+r[i];return n=s%3,n===0?(e+=o[t>>18&63],e+=o[t>>12&63],e+=o[t>>6&63],e+=o[t&63]):n===2?(e+=o[t>>10&63],e+=o[t>>4&63],e+=o[t<<2&63],e+=o[64]):n===1&&(e+=o[t>>2&63],e+=o[t<<4&63],e+=o[64],e+=o[64]),e}function The(r){return sc&&sc.isBuffer(r)}r2.exports=new Dhe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rhe,construct:Fhe,predicate:The,represent:Nhe})});var s2=I((ZZe,n2)=>{"use strict";var Lhe=ii(),Ohe=Object.prototype.hasOwnProperty,Mhe=Object.prototype.toString;function Khe(r){if(r===null)return!0;var e=[],t,i,n,s,o,a=r;for(t=0,i=a.length;t{"use strict";var Hhe=ii(),Ghe=Object.prototype.toString;function Yhe(r){if(r===null)return!0;var e,t,i,n,s,o=r;for(s=new Array(o.length),e=0,t=o.length;e{"use strict";var qhe=ii(),Jhe=Object.prototype.hasOwnProperty;function Whe(r){if(r===null)return!0;var e,t=r;for(e in t)if(Jhe.call(t,e)&&t[e]!==null)return!1;return!0}function zhe(r){return r!==null?r:{}}A2.exports=new qhe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Whe,construct:zhe})});var Og=I((e_e,c2)=>{"use strict";var Vhe=nc();c2.exports=new Vhe({include:[qS()],implicit:[_U(),e2()],explicit:[i2(),s2(),a2(),l2()]})});var g2=I((t_e,u2)=>{"use strict";var Xhe=ii();function Zhe(){return!0}function _he(){}function $he(){return""}function epe(r){return typeof r>"u"}u2.exports=new Xhe("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Zhe,construct:_he,predicate:epe,represent:$he})});var h2=I((r_e,f2)=>{"use strict";var tpe=ii();function rpe(r){if(r===null||r.length===0)return!1;var e=r,t=/\/([gim]*)$/.exec(r),i="";return!(e[0]==="/"&&(t&&(i=t[1]),i.length>3||e[e.length-i.length-1]!=="/"))}function ipe(r){var e=r,t=/\/([gim]*)$/.exec(r),i="";return e[0]==="/"&&(t&&(i=t[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)}function npe(r){var e="/"+r.source+"/";return r.global&&(e+="g"),r.multiline&&(e+="m"),r.ignoreCase&&(e+="i"),e}function spe(r){return Object.prototype.toString.call(r)==="[object RegExp]"}f2.exports=new tpe("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:rpe,construct:ipe,predicate:spe,represent:npe})});var C2=I((i_e,d2)=>{"use strict";var EI;try{p2=J,EI=p2("esprima")}catch{typeof window<"u"&&(EI=window.esprima)}var p2,ope=ii();function ape(r){if(r===null)return!1;try{var e="("+r+")",t=EI.parse(e,{range:!0});return!(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Ape(r){var e="("+r+")",t=EI.parse(e,{range:!0}),i=[],n;if(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return t.body[0].expression.params.forEach(function(s){i.push(s.name)}),n=t.body[0].expression.body.range,t.body[0].expression.body.type==="BlockStatement"?new Function(i,e.slice(n[0]+1,n[1]-1)):new Function(i,"return "+e.slice(n[0],n[1]))}function lpe(r){return r.toString()}function cpe(r){return Object.prototype.toString.call(r)==="[object Function]"}d2.exports=new ope("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:ape,construct:Ape,predicate:cpe,represent:lpe})});var _p=I((s_e,E2)=>{"use strict";var m2=nc();E2.exports=m2.DEFAULT=new m2({include:[Og()],explicit:[g2(),h2(),C2()]})});var M2=I((o_e,$p)=>{"use strict";var Qa=ic(),S2=Tg(),upe=SU(),v2=Og(),gpe=_p(),kA=Object.prototype.hasOwnProperty,II=1,x2=2,P2=3,yI=4,WS=1,fpe=2,I2=3,hpe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ppe=/[\x85\u2028\u2029]/,dpe=/[,\[\]\{\}]/,k2=/^(?:!|!!|![a-z\-]+!)$/i,D2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function y2(r){return Object.prototype.toString.call(r)}function vo(r){return r===10||r===13}function ac(r){return r===9||r===32}function fn(r){return r===9||r===32||r===10||r===13}function Mg(r){return r===44||r===91||r===93||r===123||r===125}function Cpe(r){var e;return 48<=r&&r<=57?r-48:(e=r|32,97<=e&&e<=102?e-97+10:-1)}function mpe(r){return r===120?2:r===117?4:r===85?8:0}function Epe(r){return 48<=r&&r<=57?r-48:-1}function w2(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?` -`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"\x85":r===95?"\xA0":r===76?"\u2028":r===80?"\u2029":""}function Ipe(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var R2=new Array(256),F2=new Array(256);for(oc=0;oc<256;oc++)R2[oc]=w2(oc)?1:0,F2[oc]=w2(oc);var oc;function ype(r,e){this.input=r,this.filename=e.filename||null,this.schema=e.schema||gpe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function N2(r,e){return new S2(e,new upe(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function gt(r,e){throw N2(r,e)}function wI(r,e){r.onWarning&&r.onWarning.call(null,N2(r,e))}var B2={YAML:function(e,t,i){var n,s,o;e.version!==null&>(e,"duplication of %YAML directive"),i.length!==1&>(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&>(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&>(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&wI(e,"unsupported YAML version of the document")},TAG:function(e,t,i){var n,s;i.length!==2&>(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],k2.test(n)||gt(e,"ill-formed tag handle (first argument) of the TAG directive"),kA.call(e.tagMap,n)&>(e,'there is a previously declared suffix for "'+n+'" tag handle'),D2.test(s)||gt(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=s}};function PA(r,e,t,i){var n,s,o,a;if(e1&&(r.result+=Qa.repeat(` -`,e-1))}function wpe(r,e,t){var i,n,s,o,a,l,c,u,g=r.kind,h=r.result,p;if(p=r.input.charCodeAt(r.position),fn(p)||Mg(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=r.input.charCodeAt(r.position+1),fn(n)||t&&Mg(n)))return!1;for(r.kind="scalar",r.result="",s=o=r.position,a=!1;p!==0;){if(p===58){if(n=r.input.charCodeAt(r.position+1),fn(n)||t&&Mg(n))break}else if(p===35){if(i=r.input.charCodeAt(r.position-1),fn(i))break}else{if(r.position===r.lineStart&&BI(r)||t&&Mg(p))break;if(vo(p))if(l=r.line,c=r.lineStart,u=r.lineIndent,qr(r,!1,-1),r.lineIndent>=e){a=!0,p=r.input.charCodeAt(r.position);continue}else{r.position=o,r.line=l,r.lineStart=c,r.lineIndent=u;break}}a&&(PA(r,s,o,!1),VS(r,r.line-l),s=o=r.position,a=!1),ac(p)||(o=r.position+1),p=r.input.charCodeAt(++r.position)}return PA(r,s,o,!1),r.result?!0:(r.kind=g,r.result=h,!1)}function Bpe(r,e){var t,i,n;if(t=r.input.charCodeAt(r.position),t!==39)return!1;for(r.kind="scalar",r.result="",r.position++,i=n=r.position;(t=r.input.charCodeAt(r.position))!==0;)if(t===39)if(PA(r,i,r.position,!0),t=r.input.charCodeAt(++r.position),t===39)i=r.position,r.position++,n=r.position;else return!0;else vo(t)?(PA(r,i,n,!0),VS(r,qr(r,!1,e)),i=n=r.position):r.position===r.lineStart&&BI(r)?gt(r,"unexpected end of the document within a single quoted scalar"):(r.position++,n=r.position);gt(r,"unexpected end of the stream within a single quoted scalar")}function Qpe(r,e){var t,i,n,s,o,a;if(a=r.input.charCodeAt(r.position),a!==34)return!1;for(r.kind="scalar",r.result="",r.position++,t=i=r.position;(a=r.input.charCodeAt(r.position))!==0;){if(a===34)return PA(r,t,r.position,!0),r.position++,!0;if(a===92){if(PA(r,t,r.position,!0),a=r.input.charCodeAt(++r.position),vo(a))qr(r,!1,e);else if(a<256&&R2[a])r.result+=F2[a],r.position++;else if((o=mpe(a))>0){for(n=o,s=0;n>0;n--)a=r.input.charCodeAt(++r.position),(o=Cpe(a))>=0?s=(s<<4)+o:gt(r,"expected hexadecimal character");r.result+=Ipe(s),r.position++}else gt(r,"unknown escape sequence");t=i=r.position}else vo(a)?(PA(r,t,i,!0),VS(r,qr(r,!1,e)),t=i=r.position):r.position===r.lineStart&&BI(r)?gt(r,"unexpected end of the document within a double quoted scalar"):(r.position++,i=r.position)}gt(r,"unexpected end of the stream within a double quoted scalar")}function bpe(r,e){var t=!0,i,n=r.tag,s,o=r.anchor,a,l,c,u,g,h={},p,d,m,y;if(y=r.input.charCodeAt(r.position),y===91)l=93,g=!1,s=[];else if(y===123)l=125,g=!0,s={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=s),y=r.input.charCodeAt(++r.position);y!==0;){if(qr(r,!0,e),y=r.input.charCodeAt(r.position),y===l)return r.position++,r.tag=n,r.anchor=o,r.kind=g?"mapping":"sequence",r.result=s,!0;t||gt(r,"missed comma between flow collection entries"),d=p=m=null,c=u=!1,y===63&&(a=r.input.charCodeAt(r.position+1),fn(a)&&(c=u=!0,r.position++,qr(r,!0,e))),i=r.line,Ug(r,e,II,!1,!0),d=r.tag,p=r.result,qr(r,!0,e),y=r.input.charCodeAt(r.position),(u||r.line===i)&&y===58&&(c=!0,y=r.input.charCodeAt(++r.position),qr(r,!0,e),Ug(r,e,II,!1,!0),m=r.result),g?Kg(r,s,h,d,p,m):c?s.push(Kg(r,null,h,d,p,m)):s.push(p),qr(r,!0,e),y=r.input.charCodeAt(r.position),y===44?(t=!0,y=r.input.charCodeAt(++r.position)):t=!1}gt(r,"unexpected end of the stream within a flow collection")}function Spe(r,e){var t,i,n=WS,s=!1,o=!1,a=e,l=0,c=!1,u,g;if(g=r.input.charCodeAt(r.position),g===124)i=!1;else if(g===62)i=!0;else return!1;for(r.kind="scalar",r.result="";g!==0;)if(g=r.input.charCodeAt(++r.position),g===43||g===45)WS===n?n=g===43?I2:fpe:gt(r,"repeat of a chomping mode identifier");else if((u=Epe(g))>=0)u===0?gt(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?gt(r,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(ac(g)){do g=r.input.charCodeAt(++r.position);while(ac(g));if(g===35)do g=r.input.charCodeAt(++r.position);while(!vo(g)&&g!==0)}for(;g!==0;){for(zS(r),r.lineIndent=0,g=r.input.charCodeAt(r.position);(!o||r.lineIndenta&&(a=r.lineIndent),vo(g)){l++;continue}if(r.lineIndente)&&l!==0)gt(r,"bad indentation of a sequence entry");else if(r.lineIndente)&&(Ug(r,e,yI,!0,n)&&(d?h=r.result:p=r.result),d||(Kg(r,c,u,g,h,p,s,o),g=h=p=null),qr(r,!0,-1),y=r.input.charCodeAt(r.position)),r.lineIndent>e&&y!==0)gt(r,"bad indentation of a mapping entry");else if(r.lineIndente?l=1:r.lineIndent===e?l=0:r.lineIndente?l=1:r.lineIndent===e?l=0:r.lineIndent tag; it should be "scalar", not "'+r.kind+'"'),g=0,h=r.implicitTypes.length;g tag; it should be "'+p.kind+'", not "'+r.kind+'"'),p.resolve(r.result)?(r.result=p.construct(r.result),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):gt(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")):gt(r,"unknown tag !<"+r.tag+">");return r.listener!==null&&r.listener("close",r),r.tag!==null||r.anchor!==null||u}function Dpe(r){var e=r.position,t,i,n,s=!1,o;for(r.version=null,r.checkLineBreaks=r.legacy,r.tagMap={},r.anchorMap={};(o=r.input.charCodeAt(r.position))!==0&&(qr(r,!0,-1),o=r.input.charCodeAt(r.position),!(r.lineIndent>0||o!==37));){for(s=!0,o=r.input.charCodeAt(++r.position),t=r.position;o!==0&&!fn(o);)o=r.input.charCodeAt(++r.position);for(i=r.input.slice(t,r.position),n=[],i.length<1&>(r,"directive name must not be less than one character in length");o!==0;){for(;ac(o);)o=r.input.charCodeAt(++r.position);if(o===35){do o=r.input.charCodeAt(++r.position);while(o!==0&&!vo(o));break}if(vo(o))break;for(t=r.position;o!==0&&!fn(o);)o=r.input.charCodeAt(++r.position);n.push(r.input.slice(t,r.position))}o!==0&&zS(r),kA.call(B2,i)?B2[i](r,i,n):wI(r,'unknown document directive "'+i+'"')}if(qr(r,!0,-1),r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45?(r.position+=3,qr(r,!0,-1)):s&>(r,"directives end mark is expected"),Ug(r,r.lineIndent-1,yI,!1,!0),qr(r,!0,-1),r.checkLineBreaks&&ppe.test(r.input.slice(e,r.position))&&wI(r,"non-ASCII line breaks are interpreted as content"),r.documents.push(r.result),r.position===r.lineStart&&BI(r)){r.input.charCodeAt(r.position)===46&&(r.position+=3,qr(r,!0,-1));return}if(r.position"u"&&(t=e,e=null);var i=T2(r,t);if(typeof e!="function")return i;for(var n=0,s=i.length;n"u"&&(t=e,e=null),L2(r,e,Qa.extend({schema:v2},t))}function Fpe(r,e){return O2(r,Qa.extend({schema:v2},e))}$p.exports.loadAll=L2;$p.exports.load=O2;$p.exports.safeLoadAll=Rpe;$p.exports.safeLoad=Fpe});var aH=I((a_e,$S)=>{"use strict";var td=ic(),rd=Tg(),Npe=_p(),Tpe=Og(),J2=Object.prototype.toString,W2=Object.prototype.hasOwnProperty,Lpe=9,ed=10,Ope=13,Mpe=32,Kpe=33,Upe=34,z2=35,Hpe=37,Gpe=38,Ype=39,jpe=42,V2=44,qpe=45,X2=58,Jpe=61,Wpe=62,zpe=63,Vpe=64,Z2=91,_2=93,Xpe=96,$2=123,Zpe=124,eH=125,Ni={};Ni[0]="\\0";Ni[7]="\\a";Ni[8]="\\b";Ni[9]="\\t";Ni[10]="\\n";Ni[11]="\\v";Ni[12]="\\f";Ni[13]="\\r";Ni[27]="\\e";Ni[34]='\\"';Ni[92]="\\\\";Ni[133]="\\N";Ni[160]="\\_";Ni[8232]="\\L";Ni[8233]="\\P";var _pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function $pe(r,e){var t,i,n,s,o,a,l;if(e===null)return{};for(t={},i=Object.keys(e),n=0,s=i.length;n0?r.charCodeAt(s-1):null,h=h&&H2(o,a)}else{for(s=0;si&&r[g+1]!==" ",g=s);else if(!Hg(o))return QI;a=s>0?r.charCodeAt(s-1):null,h=h&&H2(o,a)}c=c||u&&s-g-1>i&&r[g+1]!==" "}return!l&&!c?h&&!n(r)?rH:iH:t>9&&tH(r)?QI:c?sH:nH}function sde(r,e,t,i){r.dump=function(){if(e.length===0)return"''";if(!r.noCompatMode&&_pe.indexOf(e)!==-1)return"'"+e+"'";var n=r.indent*Math.max(1,t),s=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-n),o=i||r.flowLevel>-1&&t>=r.flowLevel;function a(l){return tde(r,l)}switch(nde(e,o,r.indent,s,a)){case rH:return e;case iH:return"'"+e.replace(/'/g,"''")+"'";case nH:return"|"+G2(e,r.indent)+Y2(U2(e,n));case sH:return">"+G2(e,r.indent)+Y2(U2(ode(e,s),n));case QI:return'"'+ade(e,s)+'"';default:throw new rd("impossible error: invalid scalar style")}}()}function G2(r,e){var t=tH(r)?String(e):"",i=r[r.length-1]===` -`,n=i&&(r[r.length-2]===` -`||r===` -`),s=n?"+":i?"":"-";return t+s+` -`}function Y2(r){return r[r.length-1]===` -`?r.slice(0,-1):r}function ode(r,e){for(var t=/(\n+)([^\n]*)/g,i=function(){var c=r.indexOf(` -`);return c=c!==-1?c:r.length,t.lastIndex=c,j2(r.slice(0,c),e)}(),n=r[0]===` -`||r[0]===" ",s,o;o=t.exec(r);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?` -`:"")+j2(l,e),n=s}return i}function j2(r,e){if(r===""||r[0]===" ")return r;for(var t=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=t.exec(r);)a=i.index,a-n>e&&(s=o>n?o:a,l+=` -`+r.slice(n,s),n=s+1),o=a;return l+=` -`,r.length-n>e&&o>n?l+=r.slice(n,o)+` -`+r.slice(o+1):l+=r.slice(n),l.slice(1)}function ade(r){for(var e="",t,i,n,s=0;s=55296&&t<=56319&&(i=r.charCodeAt(s+1),i>=56320&&i<=57343)){e+=K2((t-55296)*1024+i-56320+65536),s++;continue}n=Ni[t],e+=!n&&Hg(t)?r[s]:n||K2(t)}return e}function Ade(r,e,t){var i="",n=r.tag,s,o;for(s=0,o=t.length;s1024&&(u+="? "),u+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" "),Ac(r,e,c,!1,!1)&&(u+=r.dump,i+=u));r.tag=n,r.dump="{"+i+"}"}function ude(r,e,t,i){var n="",s=r.tag,o=Object.keys(t),a,l,c,u,g,h;if(r.sortKeys===!0)o.sort();else if(typeof r.sortKeys=="function")o.sort(r.sortKeys);else if(r.sortKeys)throw new rd("sortKeys must be a boolean or a function");for(a=0,l=o.length;a1024,g&&(r.dump&&ed===r.dump.charCodeAt(0)?h+="?":h+="? "),h+=r.dump,g&&(h+=XS(r,e)),Ac(r,e+1,u,!0,g)&&(r.dump&&ed===r.dump.charCodeAt(0)?h+=":":h+=": ",h+=r.dump,n+=h));r.tag=s,r.dump=n||"{}"}function q2(r,e,t){var i,n,s,o,a,l;for(n=t?r.explicitTypes:r.implicitTypes,s=0,o=n.length;s tag resolver accepts not "'+l+'" style');r.dump=i}return!0}return!1}function Ac(r,e,t,i,n,s){r.tag=null,r.dump=t,q2(r,t,!1)||q2(r,t,!0);var o=J2.call(r.dump);i&&(i=r.flowLevel<0||r.flowLevel>e);var a=o==="[object Object]"||o==="[object Array]",l,c;if(a&&(l=r.duplicates.indexOf(t),c=l!==-1),(r.tag!==null&&r.tag!=="?"||c||r.indent!==2&&e>0)&&(n=!1),c&&r.usedDuplicates[l])r.dump="*ref_"+l;else{if(a&&c&&!r.usedDuplicates[l]&&(r.usedDuplicates[l]=!0),o==="[object Object]")i&&Object.keys(r.dump).length!==0?(ude(r,e,r.dump,n),c&&(r.dump="&ref_"+l+r.dump)):(cde(r,e,r.dump),c&&(r.dump="&ref_"+l+" "+r.dump));else if(o==="[object Array]"){var u=r.noArrayIndent&&e>0?e-1:e;i&&r.dump.length!==0?(lde(r,u,r.dump,n),c&&(r.dump="&ref_"+l+r.dump)):(Ade(r,u,r.dump),c&&(r.dump="&ref_"+l+" "+r.dump))}else if(o==="[object String]")r.tag!=="?"&&sde(r,r.dump,e,s);else{if(r.skipInvalid)return!1;throw new rd("unacceptable kind of an object to dump "+o)}r.tag!==null&&r.tag!=="?"&&(r.dump="!<"+r.tag+"> "+r.dump)}return!0}function gde(r,e){var t=[],i=[],n,s;for(ZS(r,t,i),n=0,s=i.length;n{"use strict";var bI=M2(),AH=aH();function SI(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}Dr.exports.Type=ii();Dr.exports.Schema=nc();Dr.exports.FAILSAFE_SCHEMA=mI();Dr.exports.JSON_SCHEMA=jS();Dr.exports.CORE_SCHEMA=qS();Dr.exports.DEFAULT_SAFE_SCHEMA=Og();Dr.exports.DEFAULT_FULL_SCHEMA=_p();Dr.exports.load=bI.load;Dr.exports.loadAll=bI.loadAll;Dr.exports.safeLoad=bI.safeLoad;Dr.exports.safeLoadAll=bI.safeLoadAll;Dr.exports.dump=AH.dump;Dr.exports.safeDump=AH.safeDump;Dr.exports.YAMLException=Tg();Dr.exports.MINIMAL_SCHEMA=mI();Dr.exports.SAFE_SCHEMA=Og();Dr.exports.DEFAULT_SCHEMA=_p();Dr.exports.scan=SI("scan");Dr.exports.parse=SI("parse");Dr.exports.compose=SI("compose");Dr.exports.addConstructor=SI("addConstructor")});var uH=I((l_e,cH)=>{"use strict";var hde=lH();cH.exports=hde});var fH=I((c_e,gH)=>{"use strict";function pde(r,e){function t(){this.constructor=r}t.prototype=e.prototype,r.prototype=new t}function lc(r,e,t,i){this.message=r,this.expected=e,this.found=t,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,lc)}pde(lc,Error);lc.buildMessage=function(r,e){var t={literal:function(c){return'"'+n(c.text)+'"'},class:function(c){var u="",g;for(g=0;g0){for(g=1,h=1;g({[Le]:pe})))},H=function(D){return D},q=function(D){return D},_=Ks("correct indentation"),X=" ",W=sr(" ",!1),Z=function(D){return D.length===bA*yg},A=function(D){return D.length===(bA+1)*yg},se=function(){return bA++,!0},ue=function(){return bA--,!0},ee=function(){return Cg()},O=Ks("pseudostring"),N=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,ce=Tn(["\r",` -`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),he=/^[^\r\n\t ,\][{}:#"']/,Pe=Tn(["\r",` -`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),De=function(){return Cg().replace(/^ *| *$/g,"")},Re="--",oe=sr("--",!1),Ae=/^[a-zA-Z\/0-9]/,ye=Tn([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),ge=/^[^\r\n\t :,]/,ae=Tn(["\r",` -`," "," ",":",","],!0,!1),je="null",ie=sr("null",!1),Y=function(){return null},fe="true",re=sr("true",!1),de=function(){return!0},Ze="false",vt=sr("false",!1),mt=function(){return!1},Tr=Ks("string"),ei='"',ci=sr('"',!1),gr=function(){return""},ui=function(D){return D},ti=function(D){return D.join("")},Ms=/^[^"\\\0-\x1F\x7F]/,fr=Tn(['"',"\\",["\0",""],"\x7F"],!0,!1),Ei='\\"',ts=sr('\\"',!1),ua=function(){return'"'},CA="\\\\",gg=sr("\\\\",!1),rs=function(){return"\\"},mA="\\/",ga=sr("\\/",!1),Bp=function(){return"/"},EA="\\b",IA=sr("\\b",!1),Ir=function(){return"\b"},Nl="\\f",fg=sr("\\f",!1),Io=function(){return"\f"},hg="\\n",Qp=sr("\\n",!1),bp=function(){return` -`},br="\\r",ne=sr("\\r",!1),yo=function(){return"\r"},Fn="\\t",pg=sr("\\t",!1),yt=function(){return" "},Tl="\\u",Nn=sr("\\u",!1),is=function(D,j,pe,Le){return String.fromCharCode(parseInt(`0x${D}${j}${pe}${Le}`))},ns=/^[0-9a-fA-F]/,ut=Tn([["0","9"],["a","f"],["A","F"]],!1,!1),wo=Ks("blank space"),At=/^[ \t]/,An=Tn([" "," "],!1,!1),b=Ks("white space"),Ft=/^[ \t\n\r]/,dg=Tn([" "," ",` -`,"\r"],!1,!1),Ll=`\r -`,Sp=sr(`\r -`,!1),vp=` -`,xp=sr(` -`,!1),Pp="\r",kp=sr("\r",!1),G=0,Et=0,yA=[{line:1,column:1}],Wi=0,Ol=[],ze=0,fa;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');n=i[e.startRule]}function Cg(){return r.substring(Et,G)}function KE(){return ln(Et,G)}function Dp(D,j){throw j=j!==void 0?j:ln(Et,G),Kl([Ks(D)],r.substring(Et,G),j)}function UE(D,j){throw j=j!==void 0?j:ln(Et,G),mg(D,j)}function sr(D,j){return{type:"literal",text:D,ignoreCase:j}}function Tn(D,j,pe){return{type:"class",parts:D,inverted:j,ignoreCase:pe}}function Ml(){return{type:"any"}}function Rp(){return{type:"end"}}function Ks(D){return{type:"other",description:D}}function ha(D){var j=yA[D],pe;if(j)return j;for(pe=D-1;!yA[pe];)pe--;for(j=yA[pe],j={line:j.line,column:j.column};peWi&&(Wi=G,Ol=[]),Ol.push(D))}function mg(D,j){return new lc(D,null,null,j)}function Kl(D,j,pe){return new lc(lc.buildMessage(D,j),D,j,pe)}function Us(){var D;return D=Eg(),D}function Ul(){var D,j,pe;for(D=G,j=[],pe=wA();pe!==t;)j.push(pe),pe=wA();return j!==t&&(Et=D,j=s(j)),D=j,D}function wA(){var D,j,pe,Le,ke;return D=G,j=da(),j!==t?(r.charCodeAt(G)===45?(pe=o,G++):(pe=t,ze===0&&Ne(a)),pe!==t?(Le=Lr(),Le!==t?(ke=pa(),ke!==t?(Et=D,j=l(ke),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t),D}function Eg(){var D,j,pe;for(D=G,j=[],pe=Ig();pe!==t;)j.push(pe),pe=Ig();return j!==t&&(Et=D,j=c(j)),D=j,D}function Ig(){var D,j,pe,Le,ke,Je,pt,Xt,Ea;if(D=G,j=Lr(),j===t&&(j=null),j!==t){if(pe=G,r.charCodeAt(G)===35?(Le=u,G++):(Le=t,ze===0&&Ne(g)),Le!==t){if(ke=[],Je=G,pt=G,ze++,Xt=Gs(),ze--,Xt===t?pt=void 0:(G=pt,pt=t),pt!==t?(r.length>G?(Xt=r.charAt(G),G++):(Xt=t,ze===0&&Ne(h)),Xt!==t?(pt=[pt,Xt],Je=pt):(G=Je,Je=t)):(G=Je,Je=t),Je!==t)for(;Je!==t;)ke.push(Je),Je=G,pt=G,ze++,Xt=Gs(),ze--,Xt===t?pt=void 0:(G=pt,pt=t),pt!==t?(r.length>G?(Xt=r.charAt(G),G++):(Xt=t,ze===0&&Ne(h)),Xt!==t?(pt=[pt,Xt],Je=pt):(G=Je,Je=t)):(G=Je,Je=t);else ke=t;ke!==t?(Le=[Le,ke],pe=Le):(G=pe,pe=t)}else G=pe,pe=t;if(pe===t&&(pe=null),pe!==t){if(Le=[],ke=Hs(),ke!==t)for(;ke!==t;)Le.push(ke),ke=Hs();else Le=t;Le!==t?(Et=D,j=p(),D=j):(G=D,D=t)}else G=D,D=t}else G=D,D=t;if(D===t&&(D=G,j=da(),j!==t?(pe=Fp(),pe!==t?(Le=Lr(),Le===t&&(Le=null),Le!==t?(r.charCodeAt(G)===58?(ke=d,G++):(ke=t,ze===0&&Ne(m)),ke!==t?(Je=Lr(),Je===t&&(Je=null),Je!==t?(pt=pa(),pt!==t?(Et=D,j=y(pe,pt),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t),D===t&&(D=G,j=da(),j!==t?(pe=Ca(),pe!==t?(Le=Lr(),Le===t&&(Le=null),Le!==t?(r.charCodeAt(G)===58?(ke=d,G++):(ke=t,ze===0&&Ne(m)),ke!==t?(Je=Lr(),Je===t&&(Je=null),Je!==t?(pt=pa(),pt!==t?(Et=D,j=y(pe,pt),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t),D===t))){if(D=G,j=da(),j!==t)if(pe=Ca(),pe!==t)if(Le=Lr(),Le!==t)if(ke=Gl(),ke!==t){if(Je=[],pt=Hs(),pt!==t)for(;pt!==t;)Je.push(pt),pt=Hs();else Je=t;Je!==t?(Et=D,j=y(pe,ke),D=j):(G=D,D=t)}else G=D,D=t;else G=D,D=t;else G=D,D=t;else G=D,D=t;if(D===t)if(D=G,j=da(),j!==t)if(pe=Ca(),pe!==t){if(Le=[],ke=G,Je=Lr(),Je===t&&(Je=null),Je!==t?(r.charCodeAt(G)===44?(pt=B,G++):(pt=t,ze===0&&Ne(S)),pt!==t?(Xt=Lr(),Xt===t&&(Xt=null),Xt!==t?(Ea=Ca(),Ea!==t?(Et=ke,Je=P(pe,Ea),ke=Je):(G=ke,ke=t)):(G=ke,ke=t)):(G=ke,ke=t)):(G=ke,ke=t),ke!==t)for(;ke!==t;)Le.push(ke),ke=G,Je=Lr(),Je===t&&(Je=null),Je!==t?(r.charCodeAt(G)===44?(pt=B,G++):(pt=t,ze===0&&Ne(S)),pt!==t?(Xt=Lr(),Xt===t&&(Xt=null),Xt!==t?(Ea=Ca(),Ea!==t?(Et=ke,Je=P(pe,Ea),ke=Je):(G=ke,ke=t)):(G=ke,ke=t)):(G=ke,ke=t)):(G=ke,ke=t);else Le=t;Le!==t?(ke=Lr(),ke===t&&(ke=null),ke!==t?(r.charCodeAt(G)===58?(Je=d,G++):(Je=t,ze===0&&Ne(m)),Je!==t?(pt=Lr(),pt===t&&(pt=null),pt!==t?(Xt=pa(),Xt!==t?(Et=D,j=F(pe,Le,Xt),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)}else G=D,D=t;else G=D,D=t}return D}function pa(){var D,j,pe,Le,ke,Je,pt;if(D=G,j=G,ze++,pe=G,Le=Gs(),Le!==t?(ke=tt(),ke!==t?(r.charCodeAt(G)===45?(Je=o,G++):(Je=t,ze===0&&Ne(a)),Je!==t?(pt=Lr(),pt!==t?(Le=[Le,ke,Je,pt],pe=Le):(G=pe,pe=t)):(G=pe,pe=t)):(G=pe,pe=t)):(G=pe,pe=t),ze--,pe!==t?(G=j,j=void 0):j=t,j!==t?(pe=Hs(),pe!==t?(Le=Bo(),Le!==t?(ke=Ul(),ke!==t?(Je=BA(),Je!==t?(Et=D,j=H(ke),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t),D===t&&(D=G,j=Gs(),j!==t?(pe=Bo(),pe!==t?(Le=Eg(),Le!==t?(ke=BA(),ke!==t?(Et=D,j=H(Le),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t),D===t))if(D=G,j=Hl(),j!==t){if(pe=[],Le=Hs(),Le!==t)for(;Le!==t;)pe.push(Le),Le=Hs();else pe=t;pe!==t?(Et=D,j=q(j),D=j):(G=D,D=t)}else G=D,D=t;return D}function da(){var D,j,pe;for(ze++,D=G,j=[],r.charCodeAt(G)===32?(pe=X,G++):(pe=t,ze===0&&Ne(W));pe!==t;)j.push(pe),r.charCodeAt(G)===32?(pe=X,G++):(pe=t,ze===0&&Ne(W));return j!==t?(Et=G,pe=Z(j),pe?pe=void 0:pe=t,pe!==t?(j=[j,pe],D=j):(G=D,D=t)):(G=D,D=t),ze--,D===t&&(j=t,ze===0&&Ne(_)),D}function tt(){var D,j,pe;for(D=G,j=[],r.charCodeAt(G)===32?(pe=X,G++):(pe=t,ze===0&&Ne(W));pe!==t;)j.push(pe),r.charCodeAt(G)===32?(pe=X,G++):(pe=t,ze===0&&Ne(W));return j!==t?(Et=G,pe=A(j),pe?pe=void 0:pe=t,pe!==t?(j=[j,pe],D=j):(G=D,D=t)):(G=D,D=t),D}function Bo(){var D;return Et=G,D=se(),D?D=void 0:D=t,D}function BA(){var D;return Et=G,D=ue(),D?D=void 0:D=t,D}function Fp(){var D;return D=Yl(),D===t&&(D=QA()),D}function Ca(){var D,j,pe;if(D=Yl(),D===t){if(D=G,j=[],pe=ma(),pe!==t)for(;pe!==t;)j.push(pe),pe=ma();else j=t;j!==t&&(Et=D,j=ee()),D=j}return D}function Hl(){var D;return D=Np(),D===t&&(D=HE(),D===t&&(D=Yl(),D===t&&(D=QA()))),D}function Gl(){var D;return D=Np(),D===t&&(D=Yl(),D===t&&(D=ma())),D}function QA(){var D,j,pe,Le,ke,Je;if(ze++,D=G,N.test(r.charAt(G))?(j=r.charAt(G),G++):(j=t,ze===0&&Ne(ce)),j!==t){for(pe=[],Le=G,ke=Lr(),ke===t&&(ke=null),ke!==t?(he.test(r.charAt(G))?(Je=r.charAt(G),G++):(Je=t,ze===0&&Ne(Pe)),Je!==t?(ke=[ke,Je],Le=ke):(G=Le,Le=t)):(G=Le,Le=t);Le!==t;)pe.push(Le),Le=G,ke=Lr(),ke===t&&(ke=null),ke!==t?(he.test(r.charAt(G))?(Je=r.charAt(G),G++):(Je=t,ze===0&&Ne(Pe)),Je!==t?(ke=[ke,Je],Le=ke):(G=Le,Le=t)):(G=Le,Le=t);pe!==t?(Et=D,j=De(),D=j):(G=D,D=t)}else G=D,D=t;return ze--,D===t&&(j=t,ze===0&&Ne(O)),D}function ma(){var D,j,pe,Le,ke;if(D=G,r.substr(G,2)===Re?(j=Re,G+=2):(j=t,ze===0&&Ne(oe)),j===t&&(j=null),j!==t)if(Ae.test(r.charAt(G))?(pe=r.charAt(G),G++):(pe=t,ze===0&&Ne(ye)),pe!==t){for(Le=[],ge.test(r.charAt(G))?(ke=r.charAt(G),G++):(ke=t,ze===0&&Ne(ae));ke!==t;)Le.push(ke),ge.test(r.charAt(G))?(ke=r.charAt(G),G++):(ke=t,ze===0&&Ne(ae));Le!==t?(Et=D,j=De(),D=j):(G=D,D=t)}else G=D,D=t;else G=D,D=t;return D}function Np(){var D,j;return D=G,r.substr(G,4)===je?(j=je,G+=4):(j=t,ze===0&&Ne(ie)),j!==t&&(Et=D,j=Y()),D=j,D}function HE(){var D,j;return D=G,r.substr(G,4)===fe?(j=fe,G+=4):(j=t,ze===0&&Ne(re)),j!==t&&(Et=D,j=de()),D=j,D===t&&(D=G,r.substr(G,5)===Ze?(j=Ze,G+=5):(j=t,ze===0&&Ne(vt)),j!==t&&(Et=D,j=mt()),D=j),D}function Yl(){var D,j,pe,Le;return ze++,D=G,r.charCodeAt(G)===34?(j=ei,G++):(j=t,ze===0&&Ne(ci)),j!==t?(r.charCodeAt(G)===34?(pe=ei,G++):(pe=t,ze===0&&Ne(ci)),pe!==t?(Et=D,j=gr(),D=j):(G=D,D=t)):(G=D,D=t),D===t&&(D=G,r.charCodeAt(G)===34?(j=ei,G++):(j=t,ze===0&&Ne(ci)),j!==t?(pe=GE(),pe!==t?(r.charCodeAt(G)===34?(Le=ei,G++):(Le=t,ze===0&&Ne(ci)),Le!==t?(Et=D,j=ui(pe),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)),ze--,D===t&&(j=t,ze===0&&Ne(Tr)),D}function GE(){var D,j,pe;if(D=G,j=[],pe=Tp(),pe!==t)for(;pe!==t;)j.push(pe),pe=Tp();else j=t;return j!==t&&(Et=D,j=ti(j)),D=j,D}function Tp(){var D,j,pe,Le,ke,Je;return Ms.test(r.charAt(G))?(D=r.charAt(G),G++):(D=t,ze===0&&Ne(fr)),D===t&&(D=G,r.substr(G,2)===Ei?(j=Ei,G+=2):(j=t,ze===0&&Ne(ts)),j!==t&&(Et=D,j=ua()),D=j,D===t&&(D=G,r.substr(G,2)===CA?(j=CA,G+=2):(j=t,ze===0&&Ne(gg)),j!==t&&(Et=D,j=rs()),D=j,D===t&&(D=G,r.substr(G,2)===mA?(j=mA,G+=2):(j=t,ze===0&&Ne(ga)),j!==t&&(Et=D,j=Bp()),D=j,D===t&&(D=G,r.substr(G,2)===EA?(j=EA,G+=2):(j=t,ze===0&&Ne(IA)),j!==t&&(Et=D,j=Ir()),D=j,D===t&&(D=G,r.substr(G,2)===Nl?(j=Nl,G+=2):(j=t,ze===0&&Ne(fg)),j!==t&&(Et=D,j=Io()),D=j,D===t&&(D=G,r.substr(G,2)===hg?(j=hg,G+=2):(j=t,ze===0&&Ne(Qp)),j!==t&&(Et=D,j=bp()),D=j,D===t&&(D=G,r.substr(G,2)===br?(j=br,G+=2):(j=t,ze===0&&Ne(ne)),j!==t&&(Et=D,j=yo()),D=j,D===t&&(D=G,r.substr(G,2)===Fn?(j=Fn,G+=2):(j=t,ze===0&&Ne(pg)),j!==t&&(Et=D,j=yt()),D=j,D===t&&(D=G,r.substr(G,2)===Tl?(j=Tl,G+=2):(j=t,ze===0&&Ne(Nn)),j!==t?(pe=jl(),pe!==t?(Le=jl(),Le!==t?(ke=jl(),ke!==t?(Je=jl(),Je!==t?(Et=D,j=is(pe,Le,ke,Je),D=j):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)):(G=D,D=t)))))))))),D}function jl(){var D;return ns.test(r.charAt(G))?(D=r.charAt(G),G++):(D=t,ze===0&&Ne(ut)),D}function Lr(){var D,j;if(ze++,D=[],At.test(r.charAt(G))?(j=r.charAt(G),G++):(j=t,ze===0&&Ne(An)),j!==t)for(;j!==t;)D.push(j),At.test(r.charAt(G))?(j=r.charAt(G),G++):(j=t,ze===0&&Ne(An));else D=t;return ze--,D===t&&(j=t,ze===0&&Ne(wo)),D}function YE(){var D,j;if(ze++,D=[],Ft.test(r.charAt(G))?(j=r.charAt(G),G++):(j=t,ze===0&&Ne(dg)),j!==t)for(;j!==t;)D.push(j),Ft.test(r.charAt(G))?(j=r.charAt(G),G++):(j=t,ze===0&&Ne(dg));else D=t;return ze--,D===t&&(j=t,ze===0&&Ne(b)),D}function Hs(){var D,j,pe,Le,ke,Je;if(D=G,j=Gs(),j!==t){for(pe=[],Le=G,ke=Lr(),ke===t&&(ke=null),ke!==t?(Je=Gs(),Je!==t?(ke=[ke,Je],Le=ke):(G=Le,Le=t)):(G=Le,Le=t);Le!==t;)pe.push(Le),Le=G,ke=Lr(),ke===t&&(ke=null),ke!==t?(Je=Gs(),Je!==t?(ke=[ke,Je],Le=ke):(G=Le,Le=t)):(G=Le,Le=t);pe!==t?(j=[j,pe],D=j):(G=D,D=t)}else G=D,D=t;return D}function Gs(){var D;return r.substr(G,2)===Ll?(D=Ll,G+=2):(D=t,ze===0&&Ne(Sp)),D===t&&(r.charCodeAt(G)===10?(D=vp,G++):(D=t,ze===0&&Ne(xp)),D===t&&(r.charCodeAt(G)===13?(D=Pp,G++):(D=t,ze===0&&Ne(kp)))),D}let yg=2,bA=0;if(fa=n(),fa!==t&&G===r.length)return fa;throw fa!==t&&G{"use strict";var yde=r=>{let e=!1,t=!1,i=!1;for(let n=0;n{if(!(typeof r=="string"||Array.isArray(r)))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);let t=n=>e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;return Array.isArray(r)?r=r.map(n=>n.trim()).filter(n=>n.length).join("-"):r=r.trim(),r.length===0?"":r.length===1?e.pascalCase?r.toUpperCase():r.toLowerCase():(r!==r.toLowerCase()&&(r=yde(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(n,s)=>s.toUpperCase()).replace(/\d+(\w|$)/g,n=>n.toUpperCase()),t(r))};tv.exports=mH;tv.exports.default=mH});var IH=I((d_e,wde)=>{wde.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:"NOW_BUILDER"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"}]});var cc=I(Kn=>{"use strict";var wH=IH(),xo=process.env;Object.defineProperty(Kn,"_vendors",{value:wH.map(function(r){return r.constant})});Kn.name=null;Kn.isPR=null;wH.forEach(function(r){let t=(Array.isArray(r.env)?r.env:[r.env]).every(function(i){return yH(i)});if(Kn[r.constant]=t,t)switch(Kn.name=r.name,typeof r.pr){case"string":Kn.isPR=!!xo[r.pr];break;case"object":"env"in r.pr?Kn.isPR=r.pr.env in xo&&xo[r.pr.env]!==r.pr.ne:"any"in r.pr?Kn.isPR=r.pr.any.some(function(i){return!!xo[i]}):Kn.isPR=yH(r.pr);break;default:Kn.isPR=null}});Kn.isCI=!!(xo.CI||xo.CONTINUOUS_INTEGRATION||xo.BUILD_NUMBER||xo.RUN_ID||Kn.name);function yH(r){return typeof r=="string"?!!xo[r]:Object.keys(r).every(function(e){return xo[e]===r[e]})}});var hn={};ct(hn,{KeyRelationship:()=>uc,applyCascade:()=>Ad,base64RegExp:()=>vH,colorStringAlphaRegExp:()=>SH,colorStringRegExp:()=>bH,computeKey:()=>DA,getPrintable:()=>Jr,hasExactLength:()=>RH,hasForbiddenKeys:()=>eCe,hasKeyRelationship:()=>Av,hasMaxLength:()=>Ode,hasMinLength:()=>Lde,hasMutuallyExclusiveKeys:()=>tCe,hasRequiredKeys:()=>$de,hasUniqueItems:()=>Mde,isArray:()=>xde,isAtLeast:()=>Hde,isAtMost:()=>Gde,isBase64:()=>Zde,isBoolean:()=>bde,isDate:()=>vde,isDict:()=>kde,isEnum:()=>Xi,isHexColor:()=>Xde,isISO8601:()=>Vde,isInExclusiveRange:()=>jde,isInInclusiveRange:()=>Yde,isInstanceOf:()=>Rde,isInteger:()=>qde,isJSON:()=>_de,isLiteral:()=>Bde,isLowerCase:()=>Jde,isNegative:()=>Kde,isNullable:()=>Tde,isNumber:()=>Sde,isObject:()=>Dde,isOneOf:()=>Fde,isOptional:()=>Nde,isPositive:()=>Ude,isString:()=>ad,isTuple:()=>Pde,isUUID4:()=>zde,isUnknown:()=>DH,isUpperCase:()=>Wde,iso8601RegExp:()=>av,makeCoercionFn:()=>gc,makeSetter:()=>kH,makeTrait:()=>PH,makeValidator:()=>Bt,matchesRegExp:()=>ld,plural:()=>RI,pushError:()=>ht,simpleKeyRegExp:()=>QH,uuid4RegExp:()=>xH});function Bt({test:r}){return PH(r)()}function Jr(r){return r===null?"null":r===void 0?"undefined":r===""?"an empty string":JSON.stringify(r)}function DA(r,e){var t,i,n;return typeof e=="number"?`${(t=r==null?void 0:r.p)!==null&&t!==void 0?t:"."}[${e}]`:QH.test(e)?`${(i=r==null?void 0:r.p)!==null&&i!==void 0?i:""}.${e}`:`${(n=r==null?void 0:r.p)!==null&&n!==void 0?n:"."}[${JSON.stringify(e)}]`}function gc(r,e){return t=>{let i=r[e];return r[e]=t,gc(r,e).bind(null,i)}}function kH(r,e){return t=>{r[e]=t}}function RI(r,e,t){return r===1?e:t}function ht({errors:r,p:e}={},t){return r==null||r.push(`${e!=null?e:"."}: ${t}`),!1}function Bde(r){return Bt({test:(e,t)=>e!==r?ht(t,`Expected a literal (got ${Jr(r)})`):!0})}function Xi(r){let e=Array.isArray(r)?r:Object.values(r),t=new Set(e);return Bt({test:(i,n)=>t.has(i)?!0:ht(n,`Expected a valid enumeration value (got ${Jr(i)})`)})}var QH,bH,SH,vH,xH,av,PH,DH,ad,Qde,bde,Sde,vde,xde,Pde,kde,Dde,Rde,Fde,Ad,Nde,Tde,Lde,Ode,RH,Mde,Kde,Ude,Hde,Gde,Yde,jde,qde,ld,Jde,Wde,zde,Vde,Xde,Zde,_de,$de,eCe,tCe,uc,rCe,Av,as=Uge(()=>{QH=/^[a-zA-Z_][a-zA-Z0-9_]*$/,bH=/^#[0-9a-f]{6}$/i,SH=/^#[0-9a-f]{6}([0-9a-f]{2})?$/i,vH=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,xH=/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/i,av=/^(?:[1-9]\d{3}(-?)(?:(?:0[1-9]|1[0-2])\1(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])\1(?:29|30)|(?:0[13578]|1[02])(?:\1)31|00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[0-5]))|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)(?:(-?)02(?:\2)29|-?366))T(?:[01]\d|2[0-3])(:?)[0-5]\d(?:\3[0-5]\d)?(?:Z|[+-][01]\d(?:\3[0-5]\d)?)$/,PH=r=>()=>r;DH=()=>Bt({test:(r,e)=>!0});ad=()=>Bt({test:(r,e)=>typeof r!="string"?ht(e,`Expected a string (got ${Jr(r)})`):!0});Qde=new Map([["true",!0],["True",!0],["1",!0],[1,!0],["false",!1],["False",!1],["0",!1],[0,!1]]),bde=()=>Bt({test:(r,e)=>{var t;if(typeof r!="boolean"){if(typeof(e==null?void 0:e.coercions)<"u"){if(typeof(e==null?void 0:e.coercion)>"u")return ht(e,"Unbound coercion result");let i=Qde.get(r);if(typeof i<"u")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return ht(e,`Expected a boolean (got ${Jr(r)})`)}return!0}}),Sde=()=>Bt({test:(r,e)=>{var t;if(typeof r!="number"){if(typeof(e==null?void 0:e.coercions)<"u"){if(typeof(e==null?void 0:e.coercion)>"u")return ht(e,"Unbound coercion result");let i;if(typeof r=="string"){let n;try{n=JSON.parse(r)}catch{}if(typeof n=="number")if(JSON.stringify(n)===r)i=n;else return ht(e,`Received a number that can't be safely represented by the runtime (${r})`)}if(typeof i<"u")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return ht(e,`Expected a number (got ${Jr(r)})`)}return!0}}),vde=()=>Bt({test:(r,e)=>{var t;if(!(r instanceof Date)){if(typeof(e==null?void 0:e.coercions)<"u"){if(typeof(e==null?void 0:e.coercion)>"u")return ht(e,"Unbound coercion result");let i;if(typeof r=="string"&&av.test(r))i=new Date(r);else{let n;if(typeof r=="string"){let s;try{s=JSON.parse(r)}catch{}typeof s=="number"&&(n=s)}else typeof r=="number"&&(n=r);if(typeof n<"u")if(Number.isSafeInteger(n)||!Number.isSafeInteger(n*1e3))i=new Date(n*1e3);else return ht(e,`Received a timestamp that can't be safely represented by the runtime (${r})`)}if(typeof i<"u")return e.coercions.push([(t=e.p)!==null&&t!==void 0?t:".",e.coercion.bind(null,i)]),!0}return ht(e,`Expected a date (got ${Jr(r)})`)}return!0}}),xde=(r,{delimiter:e}={})=>Bt({test:(t,i)=>{var n;if(typeof t=="string"&&typeof e<"u"&&typeof(i==null?void 0:i.coercions)<"u"){if(typeof(i==null?void 0:i.coercion)>"u")return ht(i,"Unbound coercion result");t=t.split(e),i.coercions.push([(n=i.p)!==null&&n!==void 0?n:".",i.coercion.bind(null,t)])}if(!Array.isArray(t))return ht(i,`Expected an array (got ${Jr(t)})`);let s=!0;for(let o=0,a=t.length;o{let t=RH(r.length);return Bt({test:(i,n)=>{var s;if(typeof i=="string"&&typeof e<"u"&&typeof(n==null?void 0:n.coercions)<"u"){if(typeof(n==null?void 0:n.coercion)>"u")return ht(n,"Unbound coercion result");i=i.split(e),n.coercions.push([(s=n.p)!==null&&s!==void 0?s:".",n.coercion.bind(null,i)])}if(!Array.isArray(i))return ht(n,`Expected a tuple (got ${Jr(i)})`);let o=t(i,Object.assign({},n));for(let a=0,l=i.length;aBt({test:(t,i)=>{if(typeof t!="object"||t===null)return ht(i,`Expected an object (got ${Jr(t)})`);let n=Object.keys(t),s=!0;for(let o=0,a=n.length;o{let t=Object.keys(r);return Bt({test:(i,n)=>{if(typeof i!="object"||i===null)return ht(n,`Expected an object (got ${Jr(i)})`);let s=new Set([...t,...Object.keys(i)]),o={},a=!0;for(let l of s){if(l==="constructor"||l==="__proto__")a=ht(Object.assign(Object.assign({},n),{p:DA(n,l)}),"Unsafe property name");else{let c=Object.prototype.hasOwnProperty.call(r,l)?r[l]:void 0,u=Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;typeof c<"u"?a=c(u,Object.assign(Object.assign({},n),{p:DA(n,l),coercion:gc(i,l)}))&&a:e===null?a=ht(Object.assign(Object.assign({},n),{p:DA(n,l)}),`Extraneous property (got ${Jr(u)})`):Object.defineProperty(o,l,{enumerable:!0,get:()=>u,set:kH(i,l)})}if(!a&&(n==null?void 0:n.errors)==null)break}return e!==null&&(a||(n==null?void 0:n.errors)!=null)&&(a=e(o,n)&&a),a}})},Rde=r=>Bt({test:(e,t)=>e instanceof r?!0:ht(t,`Expected an instance of ${r.name} (got ${Jr(e)})`)}),Fde=(r,{exclusive:e=!1}={})=>Bt({test:(t,i)=>{var n,s,o;let a=[],l=typeof(i==null?void 0:i.errors)<"u"?[]:void 0;for(let c=0,u=r.length;c1?ht(i,`Expected to match exactly a single predicate (matched ${a.join(", ")})`):(o=i==null?void 0:i.errors)===null||o===void 0||o.push(...l),!1}}),Ad=(r,e)=>Bt({test:(t,i)=>{var n,s;let o={value:t},a=typeof(i==null?void 0:i.coercions)<"u"?gc(o,"value"):void 0,l=typeof(i==null?void 0:i.coercions)<"u"?[]:void 0;if(!r(t,Object.assign(Object.assign({},i),{coercion:a,coercions:l})))return!1;let c=[];if(typeof l<"u")for(let[,u]of l)c.push(u());try{if(typeof(i==null?void 0:i.coercions)<"u"){if(o.value!==t){if(typeof(i==null?void 0:i.coercion)>"u")return ht(i,"Unbound coercion result");i.coercions.push([(n=i.p)!==null&&n!==void 0?n:".",i.coercion.bind(null,o.value)])}(s=i==null?void 0:i.coercions)===null||s===void 0||s.push(...l)}return e.every(u=>u(o.value,i))}finally{for(let u of c)u()}}}),Nde=r=>Bt({test:(e,t)=>typeof e>"u"?!0:r(e,t)}),Tde=r=>Bt({test:(e,t)=>e===null?!0:r(e,t)}),Lde=r=>Bt({test:(e,t)=>e.length>=r?!0:ht(t,`Expected to have a length of at least ${r} elements (got ${e.length})`)}),Ode=r=>Bt({test:(e,t)=>e.length<=r?!0:ht(t,`Expected to have a length of at most ${r} elements (got ${e.length})`)}),RH=r=>Bt({test:(e,t)=>e.length!==r?ht(t,`Expected to have a length of exactly ${r} elements (got ${e.length})`):!0}),Mde=({map:r}={})=>Bt({test:(e,t)=>{let i=new Set,n=new Set;for(let s=0,o=e.length;sBt({test:(r,e)=>r<=0?!0:ht(e,`Expected to be negative (got ${r})`)}),Ude=()=>Bt({test:(r,e)=>r>=0?!0:ht(e,`Expected to be positive (got ${r})`)}),Hde=r=>Bt({test:(e,t)=>e>=r?!0:ht(t,`Expected to be at least ${r} (got ${e})`)}),Gde=r=>Bt({test:(e,t)=>e<=r?!0:ht(t,`Expected to be at most ${r} (got ${e})`)}),Yde=(r,e)=>Bt({test:(t,i)=>t>=r&&t<=e?!0:ht(i,`Expected to be in the [${r}; ${e}] range (got ${t})`)}),jde=(r,e)=>Bt({test:(t,i)=>t>=r&&tBt({test:(e,t)=>e!==Math.round(e)?ht(t,`Expected to be an integer (got ${e})`):Number.isSafeInteger(e)?!0:ht(t,`Expected to be a safe integer (got ${e})`)}),ld=r=>Bt({test:(e,t)=>r.test(e)?!0:ht(t,`Expected to match the pattern ${r.toString()} (got ${Jr(e)})`)}),Jde=()=>Bt({test:(r,e)=>r!==r.toLowerCase()?ht(e,`Expected to be all-lowercase (got ${r})`):!0}),Wde=()=>Bt({test:(r,e)=>r!==r.toUpperCase()?ht(e,`Expected to be all-uppercase (got ${r})`):!0}),zde=()=>Bt({test:(r,e)=>xH.test(r)?!0:ht(e,`Expected to be a valid UUID v4 (got ${Jr(r)})`)}),Vde=()=>Bt({test:(r,e)=>av.test(r)?!1:ht(e,`Expected to be a valid ISO 8601 date string (got ${Jr(r)})`)}),Xde=({alpha:r=!1})=>Bt({test:(e,t)=>(r?bH.test(e):SH.test(e))?!0:ht(t,`Expected to be a valid hexadecimal color string (got ${Jr(e)})`)}),Zde=()=>Bt({test:(r,e)=>vH.test(r)?!0:ht(e,`Expected to be a valid base 64 string (got ${Jr(r)})`)}),_de=(r=DH())=>Bt({test:(e,t)=>{let i;try{i=JSON.parse(e)}catch{return ht(t,`Expected to be a valid JSON string (got ${Jr(e)})`)}return r(i,t)}}),$de=r=>{let e=new Set(r);return Bt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)||s.push(o);return s.length>0?ht(i,`Missing required ${RI(s.length,"property","properties")} ${s.map(o=>`"${o}"`).join(", ")}`):!0}})},eCe=r=>{let e=new Set(r);return Bt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)&&s.push(o);return s.length>0?ht(i,`Forbidden ${RI(s.length,"property","properties")} ${s.map(o=>`"${o}"`).join(", ")}`):!0}})},tCe=r=>{let e=new Set(r);return Bt({test:(t,i)=>{let n=new Set(Object.keys(t)),s=[];for(let o of e)n.has(o)&&s.push(o);return s.length>1?ht(i,`Mutually exclusive properties ${s.map(o=>`"${o}"`).join(", ")}`):!0}})};(function(r){r.Forbids="Forbids",r.Requires="Requires"})(uc||(uc={}));rCe={[uc.Forbids]:{expect:!1,message:"forbids using"},[uc.Requires]:{expect:!0,message:"requires using"}},Av=(r,e,t,{ignore:i=[]}={})=>{let n=new Set(i),s=new Set(t),o=rCe[e];return Bt({test:(a,l)=>{let c=new Set(Object.keys(a));if(!c.has(r)||n.has(a[r]))return!0;let u=[];for(let g of s)(c.has(g)&&!n.has(a[g]))!==o.expect&&u.push(g);return u.length>=1?ht(l,`Property "${r}" ${o.message} ${RI(u.length,"property","properties")} ${u.map(g=>`"${g}"`).join(", ")}`):!0}})}});var VH=I((d$e,zH)=>{"use strict";zH.exports=(r,...e)=>new Promise(t=>{t(r(...e))})});var Wg=I((C$e,dv)=>{"use strict";var ECe=VH(),XH=r=>{if(r<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=[],t=0,i=()=>{t--,e.length>0&&e.shift()()},n=(a,l,...c)=>{t++;let u=ECe(a,...c);l(u),u.then(i,i)},s=(a,l,...c)=>{tnew Promise(c=>s(a,c,...l));return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.length}}),o};dv.exports=XH;dv.exports.default=XH});var hd=I((E$e,ZH)=>{var ICe="2.0.0",yCe=Number.MAX_SAFE_INTEGER||9007199254740991,wCe=16;ZH.exports={SEMVER_SPEC_VERSION:ICe,MAX_LENGTH:256,MAX_SAFE_INTEGER:yCe,MAX_SAFE_COMPONENT_LENGTH:wCe}});var pd=I((I$e,_H)=>{var BCe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};_H.exports=BCe});var fc=I((FA,$H)=>{var{MAX_SAFE_COMPONENT_LENGTH:Cv}=hd(),QCe=pd();FA=$H.exports={};var bCe=FA.re=[],$e=FA.src=[],et=FA.t={},SCe=0,Qt=(r,e,t)=>{let i=SCe++;QCe(i,e),et[r]=i,$e[i]=e,bCe[i]=new RegExp(e,t?"g":void 0)};Qt("NUMERICIDENTIFIER","0|[1-9]\\d*");Qt("NUMERICIDENTIFIERLOOSE","[0-9]+");Qt("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");Qt("MAINVERSION",`(${$e[et.NUMERICIDENTIFIER]})\\.(${$e[et.NUMERICIDENTIFIER]})\\.(${$e[et.NUMERICIDENTIFIER]})`);Qt("MAINVERSIONLOOSE",`(${$e[et.NUMERICIDENTIFIERLOOSE]})\\.(${$e[et.NUMERICIDENTIFIERLOOSE]})\\.(${$e[et.NUMERICIDENTIFIERLOOSE]})`);Qt("PRERELEASEIDENTIFIER",`(?:${$e[et.NUMERICIDENTIFIER]}|${$e[et.NONNUMERICIDENTIFIER]})`);Qt("PRERELEASEIDENTIFIERLOOSE",`(?:${$e[et.NUMERICIDENTIFIERLOOSE]}|${$e[et.NONNUMERICIDENTIFIER]})`);Qt("PRERELEASE",`(?:-(${$e[et.PRERELEASEIDENTIFIER]}(?:\\.${$e[et.PRERELEASEIDENTIFIER]})*))`);Qt("PRERELEASELOOSE",`(?:-?(${$e[et.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$e[et.PRERELEASEIDENTIFIERLOOSE]})*))`);Qt("BUILDIDENTIFIER","[0-9A-Za-z-]+");Qt("BUILD",`(?:\\+(${$e[et.BUILDIDENTIFIER]}(?:\\.${$e[et.BUILDIDENTIFIER]})*))`);Qt("FULLPLAIN",`v?${$e[et.MAINVERSION]}${$e[et.PRERELEASE]}?${$e[et.BUILD]}?`);Qt("FULL",`^${$e[et.FULLPLAIN]}$`);Qt("LOOSEPLAIN",`[v=\\s]*${$e[et.MAINVERSIONLOOSE]}${$e[et.PRERELEASELOOSE]}?${$e[et.BUILD]}?`);Qt("LOOSE",`^${$e[et.LOOSEPLAIN]}$`);Qt("GTLT","((?:<|>)?=?)");Qt("XRANGEIDENTIFIERLOOSE",`${$e[et.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Qt("XRANGEIDENTIFIER",`${$e[et.NUMERICIDENTIFIER]}|x|X|\\*`);Qt("XRANGEPLAIN",`[v=\\s]*(${$e[et.XRANGEIDENTIFIER]})(?:\\.(${$e[et.XRANGEIDENTIFIER]})(?:\\.(${$e[et.XRANGEIDENTIFIER]})(?:${$e[et.PRERELEASE]})?${$e[et.BUILD]}?)?)?`);Qt("XRANGEPLAINLOOSE",`[v=\\s]*(${$e[et.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[et.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[et.XRANGEIDENTIFIERLOOSE]})(?:${$e[et.PRERELEASELOOSE]})?${$e[et.BUILD]}?)?)?`);Qt("XRANGE",`^${$e[et.GTLT]}\\s*${$e[et.XRANGEPLAIN]}$`);Qt("XRANGELOOSE",`^${$e[et.GTLT]}\\s*${$e[et.XRANGEPLAINLOOSE]}$`);Qt("COERCE",`(^|[^\\d])(\\d{1,${Cv}})(?:\\.(\\d{1,${Cv}}))?(?:\\.(\\d{1,${Cv}}))?(?:$|[^\\d])`);Qt("COERCERTL",$e[et.COERCE],!0);Qt("LONETILDE","(?:~>?)");Qt("TILDETRIM",`(\\s*)${$e[et.LONETILDE]}\\s+`,!0);FA.tildeTrimReplace="$1~";Qt("TILDE",`^${$e[et.LONETILDE]}${$e[et.XRANGEPLAIN]}$`);Qt("TILDELOOSE",`^${$e[et.LONETILDE]}${$e[et.XRANGEPLAINLOOSE]}$`);Qt("LONECARET","(?:\\^)");Qt("CARETTRIM",`(\\s*)${$e[et.LONECARET]}\\s+`,!0);FA.caretTrimReplace="$1^";Qt("CARET",`^${$e[et.LONECARET]}${$e[et.XRANGEPLAIN]}$`);Qt("CARETLOOSE",`^${$e[et.LONECARET]}${$e[et.XRANGEPLAINLOOSE]}$`);Qt("COMPARATORLOOSE",`^${$e[et.GTLT]}\\s*(${$e[et.LOOSEPLAIN]})$|^$`);Qt("COMPARATOR",`^${$e[et.GTLT]}\\s*(${$e[et.FULLPLAIN]})$|^$`);Qt("COMPARATORTRIM",`(\\s*)${$e[et.GTLT]}\\s*(${$e[et.LOOSEPLAIN]}|${$e[et.XRANGEPLAIN]})`,!0);FA.comparatorTrimReplace="$1$2$3";Qt("HYPHENRANGE",`^\\s*(${$e[et.XRANGEPLAIN]})\\s+-\\s+(${$e[et.XRANGEPLAIN]})\\s*$`);Qt("HYPHENRANGELOOSE",`^\\s*(${$e[et.XRANGEPLAINLOOSE]})\\s+-\\s+(${$e[et.XRANGEPLAINLOOSE]})\\s*$`);Qt("STAR","(<|>)?=?\\s*\\*");Qt("GTE0","^\\s*>=\\s*0.0.0\\s*$");Qt("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var dd=I((y$e,eG)=>{var vCe=["includePrerelease","loose","rtl"],xCe=r=>r?typeof r!="object"?{loose:!0}:vCe.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};eG.exports=xCe});var MI=I((w$e,iG)=>{var tG=/^[0-9]+$/,rG=(r,e)=>{let t=tG.test(r),i=tG.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:rrG(e,r);iG.exports={compareIdentifiers:rG,rcompareIdentifiers:PCe}});var Li=I((B$e,aG)=>{var KI=pd(),{MAX_LENGTH:nG,MAX_SAFE_INTEGER:UI}=hd(),{re:sG,t:oG}=fc(),kCe=dd(),{compareIdentifiers:Cd}=MI(),Gn=class{constructor(e,t){if(t=kCe(t),e instanceof Gn){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>nG)throw new TypeError(`version is longer than ${nG} characters`);KI("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?sG[oG.LOOSE]:sG[oG.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>UI||this.major<0)throw new TypeError("Invalid major version");if(this.minor>UI||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>UI||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let s=+n;if(s>=0&&s=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};aG.exports=Gn});var hc=I((Q$e,uG)=>{var{MAX_LENGTH:DCe}=hd(),{re:AG,t:lG}=fc(),cG=Li(),RCe=dd(),FCe=(r,e)=>{if(e=RCe(e),r instanceof cG)return r;if(typeof r!="string"||r.length>DCe||!(e.loose?AG[lG.LOOSE]:AG[lG.FULL]).test(r))return null;try{return new cG(r,e)}catch{return null}};uG.exports=FCe});var fG=I((b$e,gG)=>{var NCe=hc(),TCe=(r,e)=>{let t=NCe(r,e);return t?t.version:null};gG.exports=TCe});var pG=I((S$e,hG)=>{var LCe=hc(),OCe=(r,e)=>{let t=LCe(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};hG.exports=OCe});var CG=I((v$e,dG)=>{var MCe=Li(),KCe=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new MCe(r,t).inc(e,i).version}catch{return null}};dG.exports=KCe});var As=I((x$e,EG)=>{var mG=Li(),UCe=(r,e,t)=>new mG(r,t).compare(new mG(e,t));EG.exports=UCe});var HI=I((P$e,IG)=>{var HCe=As(),GCe=(r,e,t)=>HCe(r,e,t)===0;IG.exports=GCe});var BG=I((k$e,wG)=>{var yG=hc(),YCe=HI(),jCe=(r,e)=>{if(YCe(r,e))return null;{let t=yG(r),i=yG(e),n=t.prerelease.length||i.prerelease.length,s=n?"pre":"",o=n?"prerelease":"";for(let a in t)if((a==="major"||a==="minor"||a==="patch")&&t[a]!==i[a])return s+a;return o}};wG.exports=jCe});var bG=I((D$e,QG)=>{var qCe=Li(),JCe=(r,e)=>new qCe(r,e).major;QG.exports=JCe});var vG=I((R$e,SG)=>{var WCe=Li(),zCe=(r,e)=>new WCe(r,e).minor;SG.exports=zCe});var PG=I((F$e,xG)=>{var VCe=Li(),XCe=(r,e)=>new VCe(r,e).patch;xG.exports=XCe});var DG=I((N$e,kG)=>{var ZCe=hc(),_Ce=(r,e)=>{let t=ZCe(r,e);return t&&t.prerelease.length?t.prerelease:null};kG.exports=_Ce});var FG=I((T$e,RG)=>{var $Ce=As(),eme=(r,e,t)=>$Ce(e,r,t);RG.exports=eme});var TG=I((L$e,NG)=>{var tme=As(),rme=(r,e)=>tme(r,e,!0);NG.exports=rme});var GI=I((O$e,OG)=>{var LG=Li(),ime=(r,e,t)=>{let i=new LG(r,t),n=new LG(e,t);return i.compare(n)||i.compareBuild(n)};OG.exports=ime});var KG=I((M$e,MG)=>{var nme=GI(),sme=(r,e)=>r.sort((t,i)=>nme(t,i,e));MG.exports=sme});var HG=I((K$e,UG)=>{var ome=GI(),ame=(r,e)=>r.sort((t,i)=>ome(i,t,e));UG.exports=ame});var md=I((U$e,GG)=>{var Ame=As(),lme=(r,e,t)=>Ame(r,e,t)>0;GG.exports=lme});var YI=I((H$e,YG)=>{var cme=As(),ume=(r,e,t)=>cme(r,e,t)<0;YG.exports=ume});var mv=I((G$e,jG)=>{var gme=As(),fme=(r,e,t)=>gme(r,e,t)!==0;jG.exports=fme});var jI=I((Y$e,qG)=>{var hme=As(),pme=(r,e,t)=>hme(r,e,t)>=0;qG.exports=pme});var qI=I((j$e,JG)=>{var dme=As(),Cme=(r,e,t)=>dme(r,e,t)<=0;JG.exports=Cme});var Ev=I((q$e,WG)=>{var mme=HI(),Eme=mv(),Ime=md(),yme=jI(),wme=YI(),Bme=qI(),Qme=(r,e,t,i)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return mme(r,t,i);case"!=":return Eme(r,t,i);case">":return Ime(r,t,i);case">=":return yme(r,t,i);case"<":return wme(r,t,i);case"<=":return Bme(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};WG.exports=Qme});var VG=I((J$e,zG)=>{var bme=Li(),Sme=hc(),{re:JI,t:WI}=fc(),vme=(r,e)=>{if(r instanceof bme)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(JI[WI.COERCE]);else{let i;for(;(i=JI[WI.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),JI[WI.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;JI[WI.COERCERTL].lastIndex=-1}return t===null?null:Sme(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};zG.exports=vme});var ZG=I((W$e,XG)=>{"use strict";XG.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var zI=I((z$e,_G)=>{"use strict";_G.exports=Mt;Mt.Node=pc;Mt.create=Mt;function Mt(r){var e=this;if(e instanceof Mt||(e=new Mt),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)t=r(t,i.value,n),i=i.next;return t};Mt.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)t=r(t,i.value,n),i=i.prev;return t};Mt.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};Mt.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};Mt.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new Mt;if(ethis.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&ithis.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>r;i--,n=n.prev)t.push(n.value);return t};Mt.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,n=this.head;n!==null&&i{"use strict";var Dme=zI(),dc=Symbol("max"),xa=Symbol("length"),zg=Symbol("lengthCalculator"),Id=Symbol("allowStale"),Cc=Symbol("maxAge"),va=Symbol("dispose"),$G=Symbol("noDisposeOnSet"),hi=Symbol("lruList"),Xs=Symbol("cache"),tY=Symbol("updateAgeOnGet"),Iv=()=>1,wv=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[dc]=e.max||1/0,i=e.length||Iv;if(this[zg]=typeof i!="function"?Iv:i,this[Id]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Cc]=e.maxAge||0,this[va]=e.dispose,this[$G]=e.noDisposeOnSet||!1,this[tY]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[dc]=e||1/0,Ed(this)}get max(){return this[dc]}set allowStale(e){this[Id]=!!e}get allowStale(){return this[Id]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Cc]=e,Ed(this)}get maxAge(){return this[Cc]}set lengthCalculator(e){typeof e!="function"&&(e=Iv),e!==this[zg]&&(this[zg]=e,this[xa]=0,this[hi].forEach(t=>{t.length=this[zg](t.value,t.key),this[xa]+=t.length})),Ed(this)}get lengthCalculator(){return this[zg]}get length(){return this[xa]}get itemCount(){return this[hi].length}rforEach(e,t){t=t||this;for(let i=this[hi].tail;i!==null;){let n=i.prev;eY(this,e,i,t),i=n}}forEach(e,t){t=t||this;for(let i=this[hi].head;i!==null;){let n=i.next;eY(this,e,i,t),i=n}}keys(){return this[hi].toArray().map(e=>e.key)}values(){return this[hi].toArray().map(e=>e.value)}reset(){this[va]&&this[hi]&&this[hi].length&&this[hi].forEach(e=>this[va](e.key,e.value)),this[Xs]=new Map,this[hi]=new Dme,this[xa]=0}dump(){return this[hi].map(e=>VI(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[hi]}set(e,t,i){if(i=i||this[Cc],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let n=i?Date.now():0,s=this[zg](t,e);if(this[Xs].has(e)){if(s>this[dc])return Vg(this,this[Xs].get(e)),!1;let l=this[Xs].get(e).value;return this[va]&&(this[$G]||this[va](e,l.value)),l.now=n,l.maxAge=i,l.value=t,this[xa]+=s-l.length,l.length=s,this.get(e),Ed(this),!0}let o=new Bv(e,t,s,n,i);return o.length>this[dc]?(this[va]&&this[va](e,t),!1):(this[xa]+=o.length,this[hi].unshift(o),this[Xs].set(e,this[hi].head),Ed(this),!0)}has(e){if(!this[Xs].has(e))return!1;let t=this[Xs].get(e).value;return!VI(this,t)}get(e){return yv(this,e,!0)}peek(e){return yv(this,e,!1)}pop(){let e=this[hi].tail;return e?(Vg(this,e),e.value):null}del(e){Vg(this,this[Xs].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let n=e[i],s=n.e||0;if(s===0)this.set(n.k,n.v);else{let o=s-t;o>0&&this.set(n.k,n.v,o)}}}prune(){this[Xs].forEach((e,t)=>yv(this,t,!1))}},yv=(r,e,t)=>{let i=r[Xs].get(e);if(i){let n=i.value;if(VI(r,n)){if(Vg(r,i),!r[Id])return}else t&&(r[tY]&&(i.value.now=Date.now()),r[hi].unshiftNode(i));return n.value}},VI=(r,e)=>{if(!e||!e.maxAge&&!r[Cc])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Cc]&&t>r[Cc]},Ed=r=>{if(r[xa]>r[dc])for(let e=r[hi].tail;r[xa]>r[dc]&&e!==null;){let t=e.prev;Vg(r,e),e=t}},Vg=(r,e)=>{if(e){let t=e.value;r[va]&&r[va](t.key,t.value),r[xa]-=t.length,r[Xs].delete(t.key),r[hi].removeNode(e)}},Bv=class{constructor(e,t,i,n,s){this.key=e,this.value=t,this.length=i,this.now=n,this.maxAge=s||0}},eY=(r,e,t,i)=>{let n=t.value;VI(r,n)&&(Vg(r,t),r[Id]||(n=void 0)),n&&e.call(i,n.value,n.key,r)};rY.exports=wv});var ls=I((X$e,aY)=>{var mc=class{constructor(e,t){if(t=Fme(t),e instanceof mc)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new mc(e.raw,t);if(e instanceof Qv)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!sY(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Mme(n[0])){this.set=[n];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=nY.get(i);if(n)return n;let s=this.options.loose,o=s?Oi[bi.HYPHENRANGELOOSE]:Oi[bi.HYPHENRANGE];e=e.replace(o,zme(this.options.includePrerelease)),Mr("hyphen replace",e),e=e.replace(Oi[bi.COMPARATORTRIM],Tme),Mr("comparator trim",e,Oi[bi.COMPARATORTRIM]),e=e.replace(Oi[bi.TILDETRIM],Lme),e=e.replace(Oi[bi.CARETTRIM],Ome),e=e.split(/\s+/).join(" ");let a=s?Oi[bi.COMPARATORLOOSE]:Oi[bi.COMPARATOR],l=e.split(" ").map(h=>Kme(h,this.options)).join(" ").split(/\s+/).map(h=>Wme(h,this.options)).filter(this.options.loose?h=>!!h.match(a):()=>!0).map(h=>new Qv(h,this.options)),c=l.length,u=new Map;for(let h of l){if(sY(h))return[h];u.set(h.value,h)}u.size>1&&u.has("")&&u.delete("");let g=[...u.values()];return nY.set(i,g),g}intersects(e,t){if(!(e instanceof mc))throw new TypeError("a Range is required");return this.set.some(i=>oY(i,t)&&e.set.some(n=>oY(n,t)&&i.every(s=>n.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Nme(e,this.options)}catch{return!1}for(let t=0;tr.value==="<0.0.0-0",Mme=r=>r.value==="",oY=(r,e)=>{let t=!0,i=r.slice(),n=i.pop();for(;t&&i.length;)t=i.every(s=>n.intersects(s,e)),n=i.pop();return t},Kme=(r,e)=>(Mr("comp",r,e),r=Gme(r,e),Mr("caret",r),r=Ume(r,e),Mr("tildes",r),r=jme(r,e),Mr("xrange",r),r=Jme(r,e),Mr("stars",r),r),_i=r=>!r||r.toLowerCase()==="x"||r==="*",Ume=(r,e)=>r.trim().split(/\s+/).map(t=>Hme(t,e)).join(" "),Hme=(r,e)=>{let t=e.loose?Oi[bi.TILDELOOSE]:Oi[bi.TILDE];return r.replace(t,(i,n,s,o,a)=>{Mr("tilde",r,i,n,s,o,a);let l;return _i(n)?l="":_i(s)?l=`>=${n}.0.0 <${+n+1}.0.0-0`:_i(o)?l=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:a?(Mr("replaceTilde pr",a),l=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`):l=`>=${n}.${s}.${o} <${n}.${+s+1}.0-0`,Mr("tilde return",l),l})},Gme=(r,e)=>r.trim().split(/\s+/).map(t=>Yme(t,e)).join(" "),Yme=(r,e)=>{Mr("caret",r,e);let t=e.loose?Oi[bi.CARETLOOSE]:Oi[bi.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(n,s,o,a,l)=>{Mr("caret",r,n,s,o,a,l);let c;return _i(s)?c="":_i(o)?c=`>=${s}.0.0${i} <${+s+1}.0.0-0`:_i(a)?s==="0"?c=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:l?(Mr("replaceCaret pr",l),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${l} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${l} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${l} <${+s+1}.0.0-0`):(Mr("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${i} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${i} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Mr("caret return",c),c})},jme=(r,e)=>(Mr("replaceXRanges",r,e),r.split(/\s+/).map(t=>qme(t,e)).join(" ")),qme=(r,e)=>{r=r.trim();let t=e.loose?Oi[bi.XRANGELOOSE]:Oi[bi.XRANGE];return r.replace(t,(i,n,s,o,a,l)=>{Mr("xRange",r,i,n,s,o,a,l);let c=_i(s),u=c||_i(o),g=u||_i(a),h=g;return n==="="&&h&&(n=""),l=e.includePrerelease?"-0":"",c?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&h?(u&&(o=0),a=0,n===">"?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):n==="<="&&(n="<",u?s=+s+1:o=+o+1),n==="<"&&(l="-0"),i=`${n+s}.${o}.${a}${l}`):u?i=`>=${s}.0.0${l} <${+s+1}.0.0-0`:g&&(i=`>=${s}.${o}.0${l} <${s}.${+o+1}.0-0`),Mr("xRange return",i),i})},Jme=(r,e)=>(Mr("replaceStars",r,e),r.trim().replace(Oi[bi.STAR],"")),Wme=(r,e)=>(Mr("replaceGTE0",r,e),r.trim().replace(Oi[e.includePrerelease?bi.GTE0PRE:bi.GTE0],"")),zme=r=>(e,t,i,n,s,o,a,l,c,u,g,h,p)=>(_i(i)?t="":_i(n)?t=`>=${i}.0.0${r?"-0":""}`:_i(s)?t=`>=${i}.${n}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,_i(c)?l="":_i(u)?l=`<${+c+1}.0.0-0`:_i(g)?l=`<${c}.${+u+1}.0-0`:h?l=`<=${c}.${u}.${g}-${h}`:r?l=`<${c}.${u}.${+g+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Vme=(r,e,t)=>{for(let i=0;i0){let n=r[i].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var yd=I((Z$e,gY)=>{var wd=Symbol("SemVer ANY"),Xg=class{static get ANY(){return wd}constructor(e,t){if(t=Xme(t),e instanceof Xg){if(e.loose===!!t.loose)return e;e=e.value}Sv("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===wd?this.value="":this.value=this.operator+this.semver.version,Sv("comp",this)}parse(e){let t=this.options.loose?AY[lY.COMPARATORLOOSE]:AY[lY.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new cY(i[2],this.options.loose):this.semver=wd}toString(){return this.value}test(e){if(Sv("Comparator.test",e,this.options.loose),this.semver===wd||e===wd)return!0;if(typeof e=="string")try{e=new cY(e,this.options)}catch{return!1}return bv(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Xg))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new uY(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new uY(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=bv(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=bv(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||s&&o||a||l}};gY.exports=Xg;var Xme=dd(),{re:AY,t:lY}=fc(),bv=Ev(),Sv=pd(),cY=Li(),uY=ls()});var Bd=I((_$e,fY)=>{var Zme=ls(),_me=(r,e,t)=>{try{e=new Zme(e,t)}catch{return!1}return e.test(r)};fY.exports=_me});var pY=I(($$e,hY)=>{var $me=ls(),eEe=(r,e)=>new $me(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));hY.exports=eEe});var CY=I((eet,dY)=>{var tEe=Li(),rEe=ls(),iEe=(r,e,t)=>{let i=null,n=null,s=null;try{s=new rEe(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!i||n.compare(o)===-1)&&(i=o,n=new tEe(i,t))}),i};dY.exports=iEe});var EY=I((tet,mY)=>{var nEe=Li(),sEe=ls(),oEe=(r,e,t)=>{let i=null,n=null,s=null;try{s=new sEe(e,t)}catch{return null}return r.forEach(o=>{s.test(o)&&(!i||n.compare(o)===1)&&(i=o,n=new nEe(i,t))}),i};mY.exports=oEe});var wY=I((ret,yY)=>{var vv=Li(),aEe=ls(),IY=md(),AEe=(r,e)=>{r=new aEe(r,e);let t=new vv("0.0.0");if(r.test(t)||(t=new vv("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i{let a=new vv(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||IY(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!t||IY(t,s))&&(t=s)}return t&&r.test(t)?t:null};yY.exports=AEe});var QY=I((iet,BY)=>{var lEe=ls(),cEe=(r,e)=>{try{return new lEe(r,e).range||"*"}catch{return null}};BY.exports=cEe});var XI=I((net,xY)=>{var uEe=Li(),vY=yd(),{ANY:gEe}=vY,fEe=ls(),hEe=Bd(),bY=md(),SY=YI(),pEe=qI(),dEe=jI(),CEe=(r,e,t,i)=>{r=new uEe(r,i),e=new fEe(e,i);let n,s,o,a,l;switch(t){case">":n=bY,s=pEe,o=SY,a=">",l=">=";break;case"<":n=SY,s=dEe,o=bY,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hEe(r,e,i))return!1;for(let c=0;c{p.semver===gEe&&(p=new vY(">=0.0.0")),g=g||p,h=h||p,n(p.semver,g.semver,i)?g=p:o(p.semver,h.semver,i)&&(h=p)}),g.operator===a||g.operator===l||(!h.operator||h.operator===a)&&s(r,h.semver))return!1;if(h.operator===l&&o(r,h.semver))return!1}return!0};xY.exports=CEe});var kY=I((set,PY)=>{var mEe=XI(),EEe=(r,e,t)=>mEe(r,e,">",t);PY.exports=EEe});var RY=I((oet,DY)=>{var IEe=XI(),yEe=(r,e,t)=>IEe(r,e,"<",t);DY.exports=yEe});var TY=I((aet,NY)=>{var FY=ls(),wEe=(r,e,t)=>(r=new FY(r,t),e=new FY(e,t),r.intersects(e));NY.exports=wEe});var OY=I((Aet,LY)=>{var BEe=Bd(),QEe=As();LY.exports=(r,e,t)=>{let i=[],n=null,s=null,o=r.sort((u,g)=>QEe(u,g,t));for(let u of o)BEe(u,e,t)?(s=u,n||(n=u)):(s&&i.push([n,s]),s=null,n=null);n&&i.push([n,null]);let a=[];for(let[u,g]of i)u===g?a.push(u):!g&&u===o[0]?a.push("*"):g?u===o[0]?a.push(`<=${g}`):a.push(`${u} - ${g}`):a.push(`>=${u}`);let l=a.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length{var MY=ls(),ZI=yd(),{ANY:xv}=ZI,Qd=Bd(),Pv=As(),bEe=(r,e,t={})=>{if(r===e)return!0;r=new MY(r,t),e=new MY(e,t);let i=!1;e:for(let n of r.set){for(let s of e.set){let o=SEe(n,s,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},SEe=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===xv){if(e.length===1&&e[0].semver===xv)return!0;t.includePrerelease?r=[new ZI(">=0.0.0-0")]:r=[new ZI(">=0.0.0")]}if(e.length===1&&e[0].semver===xv){if(t.includePrerelease)return!0;e=[new ZI(">=0.0.0")]}let i=new Set,n,s;for(let p of r)p.operator===">"||p.operator===">="?n=KY(n,p,t):p.operator==="<"||p.operator==="<="?s=UY(s,p,t):i.add(p.semver);if(i.size>1)return null;let o;if(n&&s){if(o=Pv(n.semver,s.semver,t),o>0)return null;if(o===0&&(n.operator!==">="||s.operator!=="<="))return null}for(let p of i){if(n&&!Qd(p,String(n),t)||s&&!Qd(p,String(s),t))return null;for(let d of e)if(!Qd(p,String(d),t))return!1;return!0}let a,l,c,u,g=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1;g&&g.prerelease.length===1&&s.operator==="<"&&g.prerelease[0]===0&&(g=!1);for(let p of e){if(u=u||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",n){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(a=KY(n,p,t),a===p&&a!==n)return!1}else if(n.operator===">="&&!Qd(n.semver,String(p),t))return!1}if(s){if(g&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===g.major&&p.semver.minor===g.minor&&p.semver.patch===g.patch&&(g=!1),p.operator==="<"||p.operator==="<="){if(l=UY(s,p,t),l===p&&l!==s)return!1}else if(s.operator==="<="&&!Qd(s.semver,String(p),t))return!1}if(!p.operator&&(s||n)&&o!==0)return!1}return!(n&&c&&!s&&o!==0||s&&u&&!n&&o!==0||h||g)},KY=(r,e,t)=>{if(!r)return e;let i=Pv(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},UY=(r,e,t)=>{if(!r)return e;let i=Pv(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};HY.exports=bEe});var Wr=I((uet,YY)=>{var kv=fc();YY.exports={re:kv.re,src:kv.src,tokens:kv.t,SEMVER_SPEC_VERSION:hd().SEMVER_SPEC_VERSION,SemVer:Li(),compareIdentifiers:MI().compareIdentifiers,rcompareIdentifiers:MI().rcompareIdentifiers,parse:hc(),valid:fG(),clean:pG(),inc:CG(),diff:BG(),major:bG(),minor:vG(),patch:PG(),prerelease:DG(),compare:As(),rcompare:FG(),compareLoose:TG(),compareBuild:GI(),sort:KG(),rsort:HG(),gt:md(),lt:YI(),eq:HI(),neq:mv(),gte:jI(),lte:qI(),cmp:Ev(),coerce:VG(),Comparator:yd(),Range:ls(),satisfies:Bd(),toComparators:pY(),maxSatisfying:CY(),minSatisfying:EY(),minVersion:wY(),validRange:QY(),outside:XI(),gtr:kY(),ltr:RY(),intersects:TY(),simplifyRange:OY(),subset:GY()}});var Dv=I(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.VERSION=void 0;_I.VERSION="9.1.0"});var Kt=I((exports,module)=>{"use strict";var __spreadArray=exports&&exports.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,s;i{(function(r,e){typeof define=="function"&&define.amd?define([],e):typeof $I=="object"&&$I.exports?$I.exports=e():r.regexpToAst=e()})(typeof self<"u"?self:jY,function(){function r(){}r.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},r.prototype.restoreState=function(d){this.idx=d.idx,this.input=d.input,this.groupIdx=d.groupIdx},r.prototype.pattern=function(d){this.idx=0,this.input=d,this.groupIdx=0,this.consumeChar("/");var m=this.disjunction();this.consumeChar("/");for(var y={type:"Flags",loc:{begin:this.idx,end:d.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":o(y,"global");break;case"i":o(y,"ignoreCase");break;case"m":o(y,"multiLine");break;case"u":o(y,"unicode");break;case"y":o(y,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:y,value:m,loc:this.loc(0)}},r.prototype.disjunction=function(){var d=[],m=this.idx;for(d.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),d.push(this.alternative());return{type:"Disjunction",value:d,loc:this.loc(m)}},r.prototype.alternative=function(){for(var d=[],m=this.idx;this.isTerm();)d.push(this.term());return{type:"Alternative",value:d,loc:this.loc(m)}},r.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},r.prototype.assertion=function(){var d=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(d)};case"$":return{type:"EndAnchor",loc:this.loc(d)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(d)};case"B":return{type:"NonWordBoundary",loc:this.loc(d)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var m;switch(this.popChar()){case"=":m="Lookahead";break;case"!":m="NegativeLookahead";break}a(m);var y=this.disjunction();return this.consumeChar(")"),{type:m,value:y,loc:this.loc(d)}}l()},r.prototype.quantifier=function(d){var m,y=this.idx;switch(this.popChar()){case"*":m={atLeast:0,atMost:1/0};break;case"+":m={atLeast:1,atMost:1/0};break;case"?":m={atLeast:0,atMost:1};break;case"{":var B=this.integerIncludingZero();switch(this.popChar()){case"}":m={atLeast:B,atMost:B};break;case",":var S;this.isDigit()?(S=this.integerIncludingZero(),m={atLeast:B,atMost:S}):m={atLeast:B,atMost:1/0},this.consumeChar("}");break}if(d===!0&&m===void 0)return;a(m);break}if(!(d===!0&&m===void 0))return a(m),this.peekChar(0)==="?"?(this.consumeChar("?"),m.greedy=!1):m.greedy=!0,m.type="Quantifier",m.loc=this.loc(y),m},r.prototype.atom=function(){var d,m=this.idx;switch(this.peekChar()){case".":d=this.dotAll();break;case"\\":d=this.atomEscape();break;case"[":d=this.characterClass();break;case"(":d=this.group();break}return d===void 0&&this.isPatternCharacter()&&(d=this.patternCharacter()),a(d),d.loc=this.loc(m),this.isQuantifier()&&(d.quantifier=this.quantifier()),d},r.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[n(` -`),n("\r"),n("\u2028"),n("\u2029")]}},r.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},r.prototype.decimalEscapeAtom=function(){var d=this.positiveInteger();return{type:"GroupBackReference",value:d}},r.prototype.characterClassEscape=function(){var d,m=!1;switch(this.popChar()){case"d":d=u;break;case"D":d=u,m=!0;break;case"s":d=h;break;case"S":d=h,m=!0;break;case"w":d=g;break;case"W":d=g,m=!0;break}return a(d),{type:"Set",value:d,complement:m}},r.prototype.controlEscapeAtom=function(){var d;switch(this.popChar()){case"f":d=n("\f");break;case"n":d=n(` -`);break;case"r":d=n("\r");break;case"t":d=n(" ");break;case"v":d=n("\v");break}return a(d),{type:"Character",value:d}},r.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var d=this.popChar();if(/[a-zA-Z]/.test(d)===!1)throw Error("Invalid ");var m=d.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:m}},r.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:n("\0")}},r.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},r.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},r.prototype.identityEscapeAtom=function(){var d=this.popChar();return{type:"Character",value:n(d)}},r.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case` -`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var d=this.popChar();return{type:"Character",value:n(d)}}},r.prototype.characterClass=function(){var d=[],m=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),m=!0);this.isClassAtom();){var y=this.classAtom(),B=y.type==="Character";if(B&&this.isRangeDash()){this.consumeChar("-");var S=this.classAtom(),P=S.type==="Character";if(P){if(S.value=this.input.length)throw Error("Unexpected end of input");this.idx++},r.prototype.loc=function(d){return{begin:d,end:this.idx}};var e=/[0-9a-fA-F]/,t=/[0-9]/,i=/[1-9]/;function n(d){return d.charCodeAt(0)}function s(d,m){d.length!==void 0?d.forEach(function(y){m.push(y)}):m.push(d)}function o(d,m){if(d[m]===!0)throw"duplicate flag "+m;d[m]=!0}function a(d){if(d===void 0)throw Error("Internal Error - Should never get here!")}function l(){throw Error("Internal Error - Should never get here!")}var c,u=[];for(c=n("0");c<=n("9");c++)u.push(c);var g=[n("_")].concat(u);for(c=n("a");c<=n("z");c++)g.push(c);for(c=n("A");c<=n("Z");c++)g.push(c);var h=[n(" "),n("\f"),n(` -`),n("\r"),n(" "),n("\v"),n(" "),n("\xA0"),n("\u1680"),n("\u2000"),n("\u2001"),n("\u2002"),n("\u2003"),n("\u2004"),n("\u2005"),n("\u2006"),n("\u2007"),n("\u2008"),n("\u2009"),n("\u200A"),n("\u2028"),n("\u2029"),n("\u202F"),n("\u205F"),n("\u3000"),n("\uFEFF")];function p(){}return p.prototype.visitChildren=function(d){for(var m in d){var y=d[m];d.hasOwnProperty(m)&&(y.type!==void 0?this.visit(y):Array.isArray(y)&&y.forEach(function(B){this.visit(B)},this))}},p.prototype.visit=function(d){switch(d.type){case"Pattern":this.visitPattern(d);break;case"Flags":this.visitFlags(d);break;case"Disjunction":this.visitDisjunction(d);break;case"Alternative":this.visitAlternative(d);break;case"StartAnchor":this.visitStartAnchor(d);break;case"EndAnchor":this.visitEndAnchor(d);break;case"WordBoundary":this.visitWordBoundary(d);break;case"NonWordBoundary":this.visitNonWordBoundary(d);break;case"Lookahead":this.visitLookahead(d);break;case"NegativeLookahead":this.visitNegativeLookahead(d);break;case"Character":this.visitCharacter(d);break;case"Set":this.visitSet(d);break;case"Group":this.visitGroup(d);break;case"GroupBackReference":this.visitGroupBackReference(d);break;case"Quantifier":this.visitQuantifier(d);break}this.visitChildren(d)},p.prototype.visitPattern=function(d){},p.prototype.visitFlags=function(d){},p.prototype.visitDisjunction=function(d){},p.prototype.visitAlternative=function(d){},p.prototype.visitStartAnchor=function(d){},p.prototype.visitEndAnchor=function(d){},p.prototype.visitWordBoundary=function(d){},p.prototype.visitNonWordBoundary=function(d){},p.prototype.visitLookahead=function(d){},p.prototype.visitNegativeLookahead=function(d){},p.prototype.visitCharacter=function(d){},p.prototype.visitSet=function(d){},p.prototype.visitGroup=function(d){},p.prototype.visitGroupBackReference=function(d){},p.prototype.visitQuantifier=function(d){},{RegExpParser:r,BaseRegExpVisitor:p,VERSION:"0.5.0"}})});var ry=I(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.clearRegExpParserCache=Zg.getRegExpAst=void 0;var vEe=ey(),ty={},xEe=new vEe.RegExpParser;function PEe(r){var e=r.toString();if(ty.hasOwnProperty(e))return ty[e];var t=xEe.pattern(e);return ty[e]=t,t}Zg.getRegExpAst=PEe;function kEe(){ty={}}Zg.clearRegExpParserCache=kEe});var VY=I(Cn=>{"use strict";var DEe=Cn&&Cn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.canMatchCharCode=Cn.firstCharOptimizedIndices=Cn.getOptimizedStartCodesIndices=Cn.failedOptimizationPrefixMsg=void 0;var JY=ey(),cs=Kt(),WY=ry(),Pa=Fv(),zY="Complement Sets are not supported for first char optimization";Cn.failedOptimizationPrefixMsg=`Unable to use "first char" lexer optimizations: -`;function REe(r,e){e===void 0&&(e=!1);try{var t=(0,WY.getRegExpAst)(r),i=ny(t.value,{},t.flags.ignoreCase);return i}catch(s){if(s.message===zY)e&&(0,cs.PRINT_WARNING)(""+Cn.failedOptimizationPrefixMsg+(" Unable to optimize: < "+r.toString()+` > -`)+` Complement Sets cannot be automatically optimized. - This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var n="";e&&(n=` - This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),(0,cs.PRINT_ERROR)(Cn.failedOptimizationPrefixMsg+` -`+(" Failed parsing: < "+r.toString()+` > -`)+(" Using the regexp-to-ast library version: "+JY.VERSION+` -`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}Cn.getOptimizedStartCodesIndices=REe;function ny(r,e,t){switch(r.type){case"Disjunction":for(var i=0;i=Pa.minOptimizationVal)for(var h=u.from>=Pa.minOptimizationVal?u.from:Pa.minOptimizationVal,p=u.to,d=(0,Pa.charCodeToOptimizedIndex)(h),m=(0,Pa.charCodeToOptimizedIndex)(p),y=d;y<=m;y++)e[y]=y}}});break;case"Group":ny(o.value,e,t);break;default:throw Error("Non Exhaustive Match")}var a=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&Rv(o)===!1||o.type!=="Group"&&a===!1)break}break;default:throw Error("non exhaustive match!")}return(0,cs.values)(e)}Cn.firstCharOptimizedIndices=ny;function iy(r,e,t){var i=(0,Pa.charCodeToOptimizedIndex)(r);e[i]=i,t===!0&&FEe(r,e)}function FEe(r,e){var t=String.fromCharCode(r),i=t.toUpperCase();if(i!==t){var n=(0,Pa.charCodeToOptimizedIndex)(i.charCodeAt(0));e[n]=n}else{var s=t.toLowerCase();if(s!==t){var n=(0,Pa.charCodeToOptimizedIndex)(s.charCodeAt(0));e[n]=n}}}function qY(r,e){return(0,cs.find)(r.value,function(t){if(typeof t=="number")return(0,cs.contains)(e,t);var i=t;return(0,cs.find)(e,function(n){return i.from<=n&&n<=i.to})!==void 0})}function Rv(r){return r.quantifier&&r.quantifier.atLeast===0?!0:r.value?(0,cs.isArray)(r.value)?(0,cs.every)(r.value,Rv):Rv(r.value):!1}var NEe=function(r){DEe(e,r);function e(t){var i=r.call(this)||this;return i.targetCharCodes=t,i.found=!1,i}return e.prototype.visitChildren=function(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}r.prototype.visitChildren.call(this,t)}},e.prototype.visitCharacter=function(t){(0,cs.contains)(this.targetCharCodes,t.value)&&(this.found=!0)},e.prototype.visitSet=function(t){t.complement?qY(t,this.targetCharCodes)===void 0&&(this.found=!0):qY(t,this.targetCharCodes)!==void 0&&(this.found=!0)},e}(JY.BaseRegExpVisitor);function TEe(r,e){if(e instanceof RegExp){var t=(0,WY.getRegExpAst)(e),i=new NEe(r);return i.visit(t),i.found}else return(0,cs.find)(e,function(n){return(0,cs.contains)(r,n.charCodeAt(0))})!==void 0}Cn.canMatchCharCode=TEe});var Fv=I(We=>{"use strict";var XY=We&&We.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(We,"__esModule",{value:!0});We.charCodeToOptimizedIndex=We.minOptimizationVal=We.buildLineBreakIssueMessage=We.LineTerminatorOptimizedTester=We.isShortPattern=We.isCustomPattern=We.cloneEmptyGroups=We.performWarningRuntimeChecks=We.performRuntimeChecks=We.addStickyFlag=We.addStartOfInput=We.findUnreachablePatterns=We.findModesThatDoNotExist=We.findInvalidGroupType=We.findDuplicatePatterns=We.findUnsupportedFlags=We.findStartOfInputAnchor=We.findEmptyMatchRegExps=We.findEndOfInputAnchor=We.findInvalidPatterns=We.findMissingPatterns=We.validatePatterns=We.analyzeTokenTypes=We.enableSticky=We.disableSticky=We.SUPPORT_STICKY=We.MODES=We.DEFAULT_MODE=void 0;var ZY=ey(),tr=bd(),Se=Kt(),_g=VY(),_Y=ry(),ko="PATTERN";We.DEFAULT_MODE="defaultMode";We.MODES="modes";We.SUPPORT_STICKY=typeof new RegExp("(?:)").sticky=="boolean";function LEe(){We.SUPPORT_STICKY=!1}We.disableSticky=LEe;function OEe(){We.SUPPORT_STICKY=!0}We.enableSticky=OEe;function MEe(r,e){e=(0,Se.defaults)(e,{useSticky:We.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` -`],tracer:function(S,P){return P()}});var t=e.tracer;t("initCharCodeToOptimizedIndexMap",function(){zEe()});var i;t("Reject Lexer.NA",function(){i=(0,Se.reject)(r,function(S){return S[ko]===tr.Lexer.NA})});var n=!1,s;t("Transform Patterns",function(){n=!1,s=(0,Se.map)(i,function(S){var P=S[ko];if((0,Se.isRegExp)(P)){var F=P.source;return F.length===1&&F!=="^"&&F!=="$"&&F!=="."&&!P.ignoreCase?F:F.length===2&&F[0]==="\\"&&!(0,Se.contains)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],F[1])?F[1]:e.useSticky?Lv(P):Tv(P)}else{if((0,Se.isFunction)(P))return n=!0,{exec:P};if((0,Se.has)(P,"exec"))return n=!0,P;if(typeof P=="string"){if(P.length===1)return P;var H=P.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),q=new RegExp(H);return e.useSticky?Lv(q):Tv(q)}else throw Error("non exhaustive match")}})});var o,a,l,c,u;t("misc mapping",function(){o=(0,Se.map)(i,function(S){return S.tokenTypeIdx}),a=(0,Se.map)(i,function(S){var P=S.GROUP;if(P!==tr.Lexer.SKIPPED){if((0,Se.isString)(P))return P;if((0,Se.isUndefined)(P))return!1;throw Error("non exhaustive match")}}),l=(0,Se.map)(i,function(S){var P=S.LONGER_ALT;if(P){var F=(0,Se.isArray)(P)?(0,Se.map)(P,function(H){return(0,Se.indexOf)(i,H)}):[(0,Se.indexOf)(i,P)];return F}}),c=(0,Se.map)(i,function(S){return S.PUSH_MODE}),u=(0,Se.map)(i,function(S){return(0,Se.has)(S,"POP_MODE")})});var g;t("Line Terminator Handling",function(){var S=gj(e.lineTerminatorCharacters);g=(0,Se.map)(i,function(P){return!1}),e.positionTracking!=="onlyOffset"&&(g=(0,Se.map)(i,function(P){if((0,Se.has)(P,"LINE_BREAKS"))return P.LINE_BREAKS;if(cj(P,S)===!1)return(0,_g.canMatchCharCode)(S,P.PATTERN)}))});var h,p,d,m;t("Misc Mapping #2",function(){h=(0,Se.map)(i,Mv),p=(0,Se.map)(s,lj),d=(0,Se.reduce)(i,function(S,P){var F=P.GROUP;return(0,Se.isString)(F)&&F!==tr.Lexer.SKIPPED&&(S[F]=[]),S},{}),m=(0,Se.map)(s,function(S,P){return{pattern:s[P],longerAlt:l[P],canLineTerminator:g[P],isCustom:h[P],short:p[P],group:a[P],push:c[P],pop:u[P],tokenTypeIdx:o[P],tokenType:i[P]}})});var y=!0,B=[];return e.safeMode||t("First Char Optimization",function(){B=(0,Se.reduce)(i,function(S,P,F){if(typeof P.PATTERN=="string"){var H=P.PATTERN.charCodeAt(0),q=Ov(H);Nv(S,q,m[F])}else if((0,Se.isArray)(P.START_CHARS_HINT)){var _;(0,Se.forEach)(P.START_CHARS_HINT,function(W){var Z=typeof W=="string"?W.charCodeAt(0):W,A=Ov(Z);_!==A&&(_=A,Nv(S,A,m[F]))})}else if((0,Se.isRegExp)(P.PATTERN))if(P.PATTERN.unicode)y=!1,e.ensureOptimizations&&(0,Se.PRINT_ERROR)(""+_g.failedOptimizationPrefixMsg+(" Unable to analyze < "+P.PATTERN.toString()+` > pattern. -`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library. - This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var X=(0,_g.getOptimizedStartCodesIndices)(P.PATTERN,e.ensureOptimizations);(0,Se.isEmpty)(X)&&(y=!1),(0,Se.forEach)(X,function(W){Nv(S,W,m[F])})}else e.ensureOptimizations&&(0,Se.PRINT_ERROR)(""+_g.failedOptimizationPrefixMsg+(" TokenType: <"+P.name+`> is using a custom token pattern without providing parameter. -`)+` This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return S},[])}),t("ArrayPacking",function(){B=(0,Se.packArray)(B)}),{emptyGroups:d,patternIdxToConfig:m,charCodeToPatternIdxToConfig:B,hasCustom:n,canBeOptimized:y}}We.analyzeTokenTypes=MEe;function KEe(r,e){var t=[],i=$Y(r);t=t.concat(i.errors);var n=ej(i.valid),s=n.valid;return t=t.concat(n.errors),t=t.concat(UEe(s)),t=t.concat(oj(s)),t=t.concat(aj(s,e)),t=t.concat(Aj(s)),t}We.validatePatterns=KEe;function UEe(r){var e=[],t=(0,Se.filter)(r,function(i){return(0,Se.isRegExp)(i[ko])});return e=e.concat(tj(t)),e=e.concat(ij(t)),e=e.concat(nj(t)),e=e.concat(sj(t)),e=e.concat(rj(t)),e}function $Y(r){var e=(0,Se.filter)(r,function(n){return!(0,Se.has)(n,ko)}),t=(0,Se.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:tr.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[n]}}),i=(0,Se.difference)(r,e);return{errors:t,valid:i}}We.findMissingPatterns=$Y;function ej(r){var e=(0,Se.filter)(r,function(n){var s=n[ko];return!(0,Se.isRegExp)(s)&&!(0,Se.isFunction)(s)&&!(0,Se.has)(s,"exec")&&!(0,Se.isString)(s)}),t=(0,Se.map)(e,function(n){return{message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:tr.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[n]}}),i=(0,Se.difference)(r,e);return{errors:t,valid:i}}We.findInvalidPatterns=ej;var HEe=/[^\\][\$]/;function tj(r){var e=function(n){XY(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitEndAnchor=function(o){this.found=!0},s}(ZY.BaseRegExpVisitor),t=(0,Se.filter)(r,function(n){var s=n[ko];try{var o=(0,_Y.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch{return HEe.test(s.source)}}),i=(0,Se.map)(t,function(n){return{message:`Unexpected RegExp Anchor Error: - Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:tr.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}We.findEndOfInputAnchor=tj;function rj(r){var e=(0,Se.filter)(r,function(i){var n=i[ko];return n.test("")}),t=(0,Se.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:tr.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return t}We.findEmptyMatchRegExps=rj;var GEe=/[^\\[][\^]|^\^/;function ij(r){var e=function(n){XY(s,n);function s(){var o=n!==null&&n.apply(this,arguments)||this;return o.found=!1,o}return s.prototype.visitStartAnchor=function(o){this.found=!0},s}(ZY.BaseRegExpVisitor),t=(0,Se.filter)(r,function(n){var s=n[ko];try{var o=(0,_Y.getRegExpAst)(s),a=new e;return a.visit(o),a.found}catch{return GEe.test(s.source)}}),i=(0,Se.map)(t,function(n){return{message:`Unexpected RegExp Anchor Error: - Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:tr.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[n]}});return i}We.findStartOfInputAnchor=ij;function nj(r){var e=(0,Se.filter)(r,function(i){var n=i[ko];return n instanceof RegExp&&(n.multiline||n.global)}),t=(0,Se.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:tr.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return t}We.findUnsupportedFlags=nj;function sj(r){var e=[],t=(0,Se.map)(r,function(s){return(0,Se.reduce)(r,function(o,a){return s.PATTERN.source===a.PATTERN.source&&!(0,Se.contains)(e,a)&&a.PATTERN!==tr.Lexer.NA&&(e.push(a),o.push(a)),o},[])});t=(0,Se.compact)(t);var i=(0,Se.filter)(t,function(s){return s.length>1}),n=(0,Se.map)(i,function(s){var o=(0,Se.map)(s,function(l){return l.name}),a=(0,Se.first)(s).PATTERN;return{message:"The same RegExp pattern ->"+a+"<-"+("has been used in all of the following Token Types: "+o.join(", ")+" <-"),type:tr.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}});return n}We.findDuplicatePatterns=sj;function oj(r){var e=(0,Se.filter)(r,function(i){if(!(0,Se.has)(i,"GROUP"))return!1;var n=i.GROUP;return n!==tr.Lexer.SKIPPED&&n!==tr.Lexer.NA&&!(0,Se.isString)(n)}),t=(0,Se.map)(e,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:tr.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return t}We.findInvalidGroupType=oj;function aj(r,e){var t=(0,Se.filter)(r,function(n){return n.PUSH_MODE!==void 0&&!(0,Se.contains)(e,n.PUSH_MODE)}),i=(0,Se.map)(t,function(n){var s="Token Type: ->"+n.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+n.PUSH_MODE+"<-which does not exist";return{message:s,type:tr.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[n]}});return i}We.findModesThatDoNotExist=aj;function Aj(r){var e=[],t=(0,Se.reduce)(r,function(i,n,s){var o=n.PATTERN;return o===tr.Lexer.NA||((0,Se.isString)(o)?i.push({str:o,idx:s,tokenType:n}):(0,Se.isRegExp)(o)&&jEe(o)&&i.push({str:o.source,idx:s,tokenType:n})),i},[]);return(0,Se.forEach)(r,function(i,n){(0,Se.forEach)(t,function(s){var o=s.str,a=s.idx,l=s.tokenType;if(n"+i.name+"<-")+`in the lexer's definition. -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:c,type:tr.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),e}We.findUnreachablePatterns=Aj;function YEe(r,e){if((0,Se.isRegExp)(e)){var t=e.exec(r);return t!==null&&t.index===0}else{if((0,Se.isFunction)(e))return e(r,0,[],{});if((0,Se.has)(e,"exec"))return e.exec(r,0,[],{});if(typeof e=="string")return e===r;throw Error("non exhaustive match")}}function jEe(r){var e=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return(0,Se.find)(e,function(t){return r.source.indexOf(t)!==-1})===void 0}function Tv(r){var e=r.ignoreCase?"i":"";return new RegExp("^(?:"+r.source+")",e)}We.addStartOfInput=Tv;function Lv(r){var e=r.ignoreCase?"iy":"y";return new RegExp(""+r.source,e)}We.addStickyFlag=Lv;function qEe(r,e,t){var i=[];return(0,Se.has)(r,We.DEFAULT_MODE)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+We.DEFAULT_MODE+`> property in its definition -`,type:tr.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,Se.has)(r,We.MODES)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+We.MODES+`> property in its definition -`,type:tr.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,Se.has)(r,We.MODES)&&(0,Se.has)(r,We.DEFAULT_MODE)&&!(0,Se.has)(r.modes,r.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+We.DEFAULT_MODE+": <"+r.defaultMode+`>which does not exist -`,type:tr.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,Se.has)(r,We.MODES)&&(0,Se.forEach)(r.modes,function(n,s){(0,Se.forEach)(n,function(o,a){(0,Se.isUndefined)(o)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+s+"> at index: <"+a+`> -`),type:tr.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}We.performRuntimeChecks=qEe;function JEe(r,e,t){var i=[],n=!1,s=(0,Se.compact)((0,Se.flatten)((0,Se.mapValues)(r.modes,function(l){return l}))),o=(0,Se.reject)(s,function(l){return l[ko]===tr.Lexer.NA}),a=gj(t);return e&&(0,Se.forEach)(o,function(l){var c=cj(l,a);if(c!==!1){var u=uj(l,c),g={message:u,type:c.issue,tokenType:l};i.push(g)}else(0,Se.has)(l,"LINE_BREAKS")?l.LINE_BREAKS===!0&&(n=!0):(0,_g.canMatchCharCode)(a,l.PATTERN)&&(n=!0)}),e&&!n&&i.push({message:`Warning: No LINE_BREAKS Found. - This Lexer has been defined to track line and column information, - But none of the Token Types can be identified as matching a line terminator. - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS - for details.`,type:tr.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),i}We.performWarningRuntimeChecks=JEe;function WEe(r){var e={},t=(0,Se.keys)(r);return(0,Se.forEach)(t,function(i){var n=r[i];if((0,Se.isArray)(n))e[i]=[];else throw Error("non exhaustive match")}),e}We.cloneEmptyGroups=WEe;function Mv(r){var e=r.PATTERN;if((0,Se.isRegExp)(e))return!1;if((0,Se.isFunction)(e))return!0;if((0,Se.has)(e,"exec"))return!0;if((0,Se.isString)(e))return!1;throw Error("non exhaustive match")}We.isCustomPattern=Mv;function lj(r){return(0,Se.isString)(r)&&r.length===1?r.charCodeAt(0):!1}We.isShortPattern=lj;We.LineTerminatorOptimizedTester={test:function(r){for(var e=r.length,t=this.lastIndex;t Token Type -`)+(" Root cause: "+e.errMsg+`. -`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(e.issue===tr.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. -`+(" The problem is in the <"+r.name+`> Token Type -`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}We.buildLineBreakIssueMessage=uj;function gj(r){var e=(0,Se.map)(r,function(t){return(0,Se.isString)(t)&&t.length>0?t.charCodeAt(0):t});return e}function Nv(r,e,t){r[e]===void 0?r[e]=[t]:r[e].push(t)}We.minOptimizationVal=256;var sy=[];function Ov(r){return r255?255+~~(r/255):r}}});var $g=I(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.isTokenType=Dt.hasExtendingTokensTypesMapProperty=Dt.hasExtendingTokensTypesProperty=Dt.hasCategoriesProperty=Dt.hasShortKeyProperty=Dt.singleAssignCategoriesToksMap=Dt.assignCategoriesMapProp=Dt.assignCategoriesTokensProp=Dt.assignTokenDefaultProps=Dt.expandCategories=Dt.augmentTokenTypes=Dt.tokenIdxToClass=Dt.tokenShortNameIdx=Dt.tokenStructuredMatcherNoCategories=Dt.tokenStructuredMatcher=void 0;var zr=Kt();function VEe(r,e){var t=r.tokenTypeIdx;return t===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[t]===!0}Dt.tokenStructuredMatcher=VEe;function XEe(r,e){return r.tokenTypeIdx===e.tokenTypeIdx}Dt.tokenStructuredMatcherNoCategories=XEe;Dt.tokenShortNameIdx=1;Dt.tokenIdxToClass={};function ZEe(r){var e=fj(r);hj(e),dj(e),pj(e),(0,zr.forEach)(e,function(t){t.isParent=t.categoryMatches.length>0})}Dt.augmentTokenTypes=ZEe;function fj(r){for(var e=(0,zr.cloneArr)(r),t=r,i=!0;i;){t=(0,zr.compact)((0,zr.flatten)((0,zr.map)(t,function(s){return s.CATEGORIES})));var n=(0,zr.difference)(t,e);e=e.concat(n),(0,zr.isEmpty)(n)?i=!1:t=n}return e}Dt.expandCategories=fj;function hj(r){(0,zr.forEach)(r,function(e){Cj(e)||(Dt.tokenIdxToClass[Dt.tokenShortNameIdx]=e,e.tokenTypeIdx=Dt.tokenShortNameIdx++),Kv(e)&&!(0,zr.isArray)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Kv(e)||(e.CATEGORIES=[]),mj(e)||(e.categoryMatches=[]),Ej(e)||(e.categoryMatchesMap={})})}Dt.assignTokenDefaultProps=hj;function pj(r){(0,zr.forEach)(r,function(e){e.categoryMatches=[],(0,zr.forEach)(e.categoryMatchesMap,function(t,i){e.categoryMatches.push(Dt.tokenIdxToClass[i].tokenTypeIdx)})})}Dt.assignCategoriesTokensProp=pj;function dj(r){(0,zr.forEach)(r,function(e){Uv([],e)})}Dt.assignCategoriesMapProp=dj;function Uv(r,e){(0,zr.forEach)(r,function(t){e.categoryMatchesMap[t.tokenTypeIdx]=!0}),(0,zr.forEach)(e.CATEGORIES,function(t){var i=r.concat(e);(0,zr.contains)(i,t)||Uv(i,t)})}Dt.singleAssignCategoriesToksMap=Uv;function Cj(r){return(0,zr.has)(r,"tokenTypeIdx")}Dt.hasShortKeyProperty=Cj;function Kv(r){return(0,zr.has)(r,"CATEGORIES")}Dt.hasCategoriesProperty=Kv;function mj(r){return(0,zr.has)(r,"categoryMatches")}Dt.hasExtendingTokensTypesProperty=mj;function Ej(r){return(0,zr.has)(r,"categoryMatchesMap")}Dt.hasExtendingTokensTypesMapProperty=Ej;function _Ee(r){return(0,zr.has)(r,"tokenTypeIdx")}Dt.isTokenType=_Ee});var Hv=I(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.defaultLexerErrorProvider=void 0;oy.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(r){return"Unable to pop Lexer Mode after encountering Token ->"+r.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(r,e,t,i,n){return"unexpected character: ->"+r.charAt(e)+"<- at offset: "+e+","+(" skipped "+t+" characters.")}}});var bd=I(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.Lexer=Ec.LexerDefinitionErrorType=void 0;var Zs=Fv(),rr=Kt(),$Ee=$g(),eIe=Hv(),tIe=ry(),rIe;(function(r){r[r.MISSING_PATTERN=0]="MISSING_PATTERN",r[r.INVALID_PATTERN=1]="INVALID_PATTERN",r[r.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",r[r.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",r[r.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",r[r.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",r[r.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",r[r.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",r[r.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",r[r.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",r[r.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",r[r.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",r[r.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",r[r.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",r[r.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",r[r.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",r[r.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(rIe=Ec.LexerDefinitionErrorType||(Ec.LexerDefinitionErrorType={}));var Sd={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:eIe.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(Sd);var iIe=function(){function r(e,t){var i=this;if(t===void 0&&(t=Sd),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. -a boolean 2nd argument is no longer supported`);this.config=(0,rr.merge)(Sd,t);var n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var s,o=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Sd.lineTerminatorsPattern)i.config.lineTerminatorsPattern=Zs.LineTerminatorOptimizedTester;else if(i.config.lineTerminatorCharacters===Sd.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),(0,rr.isArray)(e)?(s={modes:{}},s.modes[Zs.DEFAULT_MODE]=(0,rr.cloneArr)(e),s[Zs.DEFAULT_MODE]=Zs.DEFAULT_MODE):(o=!1,s=(0,rr.cloneObj)(e))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,Zs.performRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat((0,Zs.performWarningRuntimeChecks)(s,i.trackStartLines,i.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},(0,rr.forEach)(s.modes,function(u,g){s.modes[g]=(0,rr.reject)(u,function(h){return(0,rr.isUndefined)(h)})});var a=(0,rr.keys)(s.modes);if((0,rr.forEach)(s.modes,function(u,g){i.TRACE_INIT("Mode: <"+g+"> processing",function(){if(i.modes.push(g),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((0,Zs.validatePatterns)(u,a))}),(0,rr.isEmpty)(i.lexerDefinitionErrors)){(0,$Ee.augmentTokenTypes)(u);var h;i.TRACE_INIT("analyzeTokenTypes",function(){h=(0,Zs.analyzeTokenTypes)(u,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[g]=h.patternIdxToConfig,i.charCodeToPatternIdxToConfig[g]=h.charCodeToPatternIdxToConfig,i.emptyGroups=(0,rr.merge)(i.emptyGroups,h.emptyGroups),i.hasCustom=h.hasCustom||i.hasCustom,i.canModeBeOptimized[g]=h.canBeOptimized}})}),i.defaultMode=s.defaultMode,!(0,rr.isEmpty)(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var l=(0,rr.map)(i.lexerDefinitionErrors,function(u){return u.message}),c=l.join(`----------------------- -`);throw new Error(`Errors detected in definition of Lexer: -`+c)}(0,rr.forEach)(i.lexerDefinitionWarning,function(u){(0,rr.PRINT_WARNING)(u.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(Zs.SUPPORT_STICKY?(i.chopInput=rr.IDENTITY,i.match=i.matchWithTest):(i.updateLastIndex=rr.NOOP,i.match=i.matchWithExec),o&&(i.handleModes=rr.NOOP),i.trackStartLines===!1&&(i.computeNewColumn=rr.IDENTITY),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=rr.NOOP),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var u=(0,rr.reduce)(i.canModeBeOptimized,function(g,h,p){return h===!1&&g.push(p),g},[]);if(t.ensureOptimizations&&!(0,rr.isEmpty)(u))throw Error("Lexer Modes: < "+u.join(", ")+` > cannot be optimized. - Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. - Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){(0,tIe.clearRegExpParserCache)()}),i.TRACE_INIT("toFastProperties",function(){(0,rr.toFastProperties)(i)})})}return r.prototype.tokenize=function(e,t){if(t===void 0&&(t=this.defaultMode),!(0,rr.isEmpty)(this.lexerDefinitionErrors)){var i=(0,rr.map)(this.lexerDefinitionErrors,function(o){return o.message}),n=i.join(`----------------------- -`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+n)}var s=this.tokenizeInternal(e,t);return s},r.prototype.tokenizeInternal=function(e,t){var i=this,n,s,o,a,l,c,u,g,h,p,d,m,y,B,S,P,F=e,H=F.length,q=0,_=0,X=this.hasCustom?0:Math.floor(e.length/10),W=new Array(X),Z=[],A=this.trackStartLines?1:void 0,se=this.trackStartLines?1:void 0,ue=(0,Zs.cloneEmptyGroups)(this.emptyGroups),ee=this.trackStartLines,O=this.config.lineTerminatorsPattern,N=0,ce=[],he=[],Pe=[],De=[];Object.freeze(De);var Re=void 0;function oe(){return ce}function Ae(fr){var Ei=(0,Zs.charCodeToOptimizedIndex)(fr),ts=he[Ei];return ts===void 0?De:ts}var ye=function(fr){if(Pe.length===1&&fr.tokenType.PUSH_MODE===void 0){var Ei=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(fr);Z.push({offset:fr.startOffset,line:fr.startLine!==void 0?fr.startLine:void 0,column:fr.startColumn!==void 0?fr.startColumn:void 0,length:fr.image.length,message:Ei})}else{Pe.pop();var ts=(0,rr.last)(Pe);ce=i.patternIdxToConfig[ts],he=i.charCodeToPatternIdxToConfig[ts],N=ce.length;var ua=i.canModeBeOptimized[ts]&&i.config.safeMode===!1;he&&ua?Re=Ae:Re=oe}};function ge(fr){Pe.push(fr),he=this.charCodeToPatternIdxToConfig[fr],ce=this.patternIdxToConfig[fr],N=ce.length,N=ce.length;var Ei=this.canModeBeOptimized[fr]&&this.config.safeMode===!1;he&&Ei?Re=Ae:Re=oe}ge.call(this,t);for(var ae;qc.length){c=a,u=g,ae=Ze;break}}}break}}if(c!==null){if(h=c.length,p=ae.group,p!==void 0&&(d=ae.tokenTypeIdx,m=this.createTokenInstance(c,q,d,ae.tokenType,A,se,h),this.handlePayload(m,u),p===!1?_=this.addToken(W,_,m):ue[p].push(m)),e=this.chopInput(e,h),q=q+h,se=this.computeNewColumn(se,h),ee===!0&&ae.canLineTerminator===!0){var mt=0,Tr=void 0,ei=void 0;O.lastIndex=0;do Tr=O.test(c),Tr===!0&&(ei=O.lastIndex-1,mt++);while(Tr===!0);mt!==0&&(A=A+mt,se=h-ei,this.updateTokenEndLineColumnLocation(m,p,ei,mt,A,se,h))}this.handleModes(ae,ye,ge,m)}else{for(var ci=q,gr=A,ui=se,ti=!1;!ti&&q <"+e+">");var n=(0,rr.timer)(t),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent time: "+s+"ms"),this.traceInitIndent--,o}else return t()},r.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",r.NA=/NOT_APPLICABLE/,r}();Ec.Lexer=iIe});var NA=I(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.tokenMatcher=Si.createTokenInstance=Si.EOF=Si.createToken=Si.hasTokenLabel=Si.tokenName=Si.tokenLabel=void 0;var _s=Kt(),nIe=bd(),Gv=$g();function sIe(r){return xj(r)?r.LABEL:r.name}Si.tokenLabel=sIe;function oIe(r){return r.name}Si.tokenName=oIe;function xj(r){return(0,_s.isString)(r.LABEL)&&r.LABEL!==""}Si.hasTokenLabel=xj;var aIe="parent",Ij="categories",yj="label",wj="group",Bj="push_mode",Qj="pop_mode",bj="longer_alt",Sj="line_breaks",vj="start_chars_hint";function Pj(r){return AIe(r)}Si.createToken=Pj;function AIe(r){var e=r.pattern,t={};if(t.name=r.name,(0,_s.isUndefined)(e)||(t.PATTERN=e),(0,_s.has)(r,aIe))throw`The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return(0,_s.has)(r,Ij)&&(t.CATEGORIES=r[Ij]),(0,Gv.augmentTokenTypes)([t]),(0,_s.has)(r,yj)&&(t.LABEL=r[yj]),(0,_s.has)(r,wj)&&(t.GROUP=r[wj]),(0,_s.has)(r,Qj)&&(t.POP_MODE=r[Qj]),(0,_s.has)(r,Bj)&&(t.PUSH_MODE=r[Bj]),(0,_s.has)(r,bj)&&(t.LONGER_ALT=r[bj]),(0,_s.has)(r,Sj)&&(t.LINE_BREAKS=r[Sj]),(0,_s.has)(r,vj)&&(t.START_CHARS_HINT=r[vj]),t}Si.EOF=Pj({name:"EOF",pattern:nIe.Lexer.NA});(0,Gv.augmentTokenTypes)([Si.EOF]);function lIe(r,e,t,i,n,s,o,a){return{image:e,startOffset:t,endOffset:i,startLine:n,endLine:s,startColumn:o,endColumn:a,tokenTypeIdx:r.tokenTypeIdx,tokenType:r}}Si.createTokenInstance=lIe;function cIe(r,e){return(0,Gv.tokenStructuredMatcher)(r,e)}Si.tokenMatcher=cIe});var mn=I(qt=>{"use strict";var ka=qt&&qt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(qt,"__esModule",{value:!0});qt.serializeProduction=qt.serializeGrammar=qt.Terminal=qt.Alternation=qt.RepetitionWithSeparator=qt.Repetition=qt.RepetitionMandatoryWithSeparator=qt.RepetitionMandatory=qt.Option=qt.Alternative=qt.Rule=qt.NonTerminal=qt.AbstractProduction=void 0;var or=Kt(),uIe=NA(),Do=function(){function r(e){this._definition=e}return Object.defineProperty(r.prototype,"definition",{get:function(){return this._definition},set:function(e){this._definition=e},enumerable:!1,configurable:!0}),r.prototype.accept=function(e){e.visit(this),(0,or.forEach)(this.definition,function(t){t.accept(e)})},r}();qt.AbstractProduction=Do;var kj=function(r){ka(e,r);function e(t){var i=r.call(this,[])||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this)},e}(Do);qt.NonTerminal=kj;var Dj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.orgText="",(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.Rule=Dj;var Rj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.ignoreAmbiguities=!1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.Alternative=Rj;var Fj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.Option=Fj;var Nj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.RepetitionMandatory=Nj;var Tj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.RepetitionMandatoryWithSeparator=Tj;var Lj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.Repetition=Lj;var Oj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return e}(Do);qt.RepetitionWithSeparator=Oj;var Mj=function(r){ka(e,r);function e(t){var i=r.call(this,t.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,(0,or.assign)(i,(0,or.pick)(t,function(n){return n!==void 0})),i}return Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e}(Do);qt.Alternation=Mj;var ay=function(){function r(e){this.idx=1,(0,or.assign)(this,(0,or.pick)(e,function(t){return t!==void 0}))}return r.prototype.accept=function(e){e.visit(this)},r}();qt.Terminal=ay;function gIe(r){return(0,or.map)(r,vd)}qt.serializeGrammar=gIe;function vd(r){function e(s){return(0,or.map)(s,vd)}if(r instanceof kj){var t={type:"NonTerminal",name:r.nonTerminalName,idx:r.idx};return(0,or.isString)(r.label)&&(t.label=r.label),t}else{if(r instanceof Rj)return{type:"Alternative",definition:e(r.definition)};if(r instanceof Fj)return{type:"Option",idx:r.idx,definition:e(r.definition)};if(r instanceof Nj)return{type:"RepetitionMandatory",idx:r.idx,definition:e(r.definition)};if(r instanceof Tj)return{type:"RepetitionMandatoryWithSeparator",idx:r.idx,separator:vd(new ay({terminalType:r.separator})),definition:e(r.definition)};if(r instanceof Oj)return{type:"RepetitionWithSeparator",idx:r.idx,separator:vd(new ay({terminalType:r.separator})),definition:e(r.definition)};if(r instanceof Lj)return{type:"Repetition",idx:r.idx,definition:e(r.definition)};if(r instanceof Mj)return{type:"Alternation",idx:r.idx,definition:e(r.definition)};if(r instanceof ay){var i={type:"Terminal",name:r.terminalType.name,label:(0,uIe.tokenLabel)(r.terminalType),idx:r.idx};(0,or.isString)(r.label)&&(i.terminalLabel=r.label);var n=r.terminalType.PATTERN;return r.terminalType.PATTERN&&(i.pattern=(0,or.isRegExp)(n)?n.source:n),i}else{if(r instanceof Dj)return{type:"Rule",name:r.name,orgText:r.orgText,definition:e(r.definition)};throw Error("non exhaustive match")}}}qt.serializeProduction=vd});var ly=I(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.RestWalker=void 0;var Yv=Kt(),En=mn(),fIe=function(){function r(){}return r.prototype.walk=function(e,t){var i=this;t===void 0&&(t=[]),(0,Yv.forEach)(e.definition,function(n,s){var o=(0,Yv.drop)(e.definition,s+1);if(n instanceof En.NonTerminal)i.walkProdRef(n,o,t);else if(n instanceof En.Terminal)i.walkTerminal(n,o,t);else if(n instanceof En.Alternative)i.walkFlat(n,o,t);else if(n instanceof En.Option)i.walkOption(n,o,t);else if(n instanceof En.RepetitionMandatory)i.walkAtLeastOne(n,o,t);else if(n instanceof En.RepetitionMandatoryWithSeparator)i.walkAtLeastOneSep(n,o,t);else if(n instanceof En.RepetitionWithSeparator)i.walkManySep(n,o,t);else if(n instanceof En.Repetition)i.walkMany(n,o,t);else if(n instanceof En.Alternation)i.walkOr(n,o,t);else throw Error("non exhaustive match")})},r.prototype.walkTerminal=function(e,t,i){},r.prototype.walkProdRef=function(e,t,i){},r.prototype.walkFlat=function(e,t,i){var n=t.concat(i);this.walk(e,n)},r.prototype.walkOption=function(e,t,i){var n=t.concat(i);this.walk(e,n)},r.prototype.walkAtLeastOne=function(e,t,i){var n=[new En.Option({definition:e.definition})].concat(t,i);this.walk(e,n)},r.prototype.walkAtLeastOneSep=function(e,t,i){var n=Kj(e,t,i);this.walk(e,n)},r.prototype.walkMany=function(e,t,i){var n=[new En.Option({definition:e.definition})].concat(t,i);this.walk(e,n)},r.prototype.walkManySep=function(e,t,i){var n=Kj(e,t,i);this.walk(e,n)},r.prototype.walkOr=function(e,t,i){var n=this,s=t.concat(i);(0,Yv.forEach)(e.definition,function(o){var a=new En.Alternative({definition:[o]});n.walk(a,s)})},r}();Ay.RestWalker=fIe;function Kj(r,e,t){var i=[new En.Option({definition:[new En.Terminal({terminalType:r.separator})].concat(r.definition)})],n=i.concat(e,t);return n}});var ef=I(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.GAstVisitor=void 0;var Ro=mn(),hIe=function(){function r(){}return r.prototype.visit=function(e){var t=e;switch(t.constructor){case Ro.NonTerminal:return this.visitNonTerminal(t);case Ro.Alternative:return this.visitAlternative(t);case Ro.Option:return this.visitOption(t);case Ro.RepetitionMandatory:return this.visitRepetitionMandatory(t);case Ro.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case Ro.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case Ro.Repetition:return this.visitRepetition(t);case Ro.Alternation:return this.visitAlternation(t);case Ro.Terminal:return this.visitTerminal(t);case Ro.Rule:return this.visitRule(t);default:throw Error("non exhaustive match")}},r.prototype.visitNonTerminal=function(e){},r.prototype.visitAlternative=function(e){},r.prototype.visitOption=function(e){},r.prototype.visitRepetition=function(e){},r.prototype.visitRepetitionMandatory=function(e){},r.prototype.visitRepetitionMandatoryWithSeparator=function(e){},r.prototype.visitRepetitionWithSeparator=function(e){},r.prototype.visitAlternation=function(e){},r.prototype.visitTerminal=function(e){},r.prototype.visitRule=function(e){},r}();cy.GAstVisitor=hIe});var Pd=I(Mi=>{"use strict";var pIe=Mi&&Mi.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.collectMethods=Mi.DslMethodsCollectorVisitor=Mi.getProductionDslName=Mi.isBranchingProd=Mi.isOptionalProd=Mi.isSequenceProd=void 0;var xd=Kt(),wr=mn(),dIe=ef();function CIe(r){return r instanceof wr.Alternative||r instanceof wr.Option||r instanceof wr.Repetition||r instanceof wr.RepetitionMandatory||r instanceof wr.RepetitionMandatoryWithSeparator||r instanceof wr.RepetitionWithSeparator||r instanceof wr.Terminal||r instanceof wr.Rule}Mi.isSequenceProd=CIe;function jv(r,e){e===void 0&&(e=[]);var t=r instanceof wr.Option||r instanceof wr.Repetition||r instanceof wr.RepetitionWithSeparator;return t?!0:r instanceof wr.Alternation?(0,xd.some)(r.definition,function(i){return jv(i,e)}):r instanceof wr.NonTerminal&&(0,xd.contains)(e,r)?!1:r instanceof wr.AbstractProduction?(r instanceof wr.NonTerminal&&e.push(r),(0,xd.every)(r.definition,function(i){return jv(i,e)})):!1}Mi.isOptionalProd=jv;function mIe(r){return r instanceof wr.Alternation}Mi.isBranchingProd=mIe;function EIe(r){if(r instanceof wr.NonTerminal)return"SUBRULE";if(r instanceof wr.Option)return"OPTION";if(r instanceof wr.Alternation)return"OR";if(r instanceof wr.RepetitionMandatory)return"AT_LEAST_ONE";if(r instanceof wr.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(r instanceof wr.RepetitionWithSeparator)return"MANY_SEP";if(r instanceof wr.Repetition)return"MANY";if(r instanceof wr.Terminal)return"CONSUME";throw Error("non exhaustive match")}Mi.getProductionDslName=EIe;var Uj=function(r){pIe(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitTerminal=function(t){var i=t.terminalType.name+this.separator+"Terminal";(0,xd.has)(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(t)},e.prototype.visitNonTerminal=function(t){var i=t.nonTerminalName+this.separator+"Terminal";(0,xd.has)(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(t)},e.prototype.visitOption=function(t){this.dslMethods.option.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.dslMethods.repetitionWithSeparator.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.dslMethods.repetitionMandatory.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)},e.prototype.visitRepetition=function(t){this.dslMethods.repetition.push(t)},e.prototype.visitAlternation=function(t){this.dslMethods.alternation.push(t)},e}(dIe.GAstVisitor);Mi.DslMethodsCollectorVisitor=Uj;var uy=new Uj;function IIe(r){uy.reset(),r.accept(uy);var e=uy.dslMethods;return uy.reset(),e}Mi.collectMethods=IIe});var Jv=I(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.firstForTerminal=Fo.firstForBranching=Fo.firstForSequence=Fo.first=void 0;var gy=Kt(),Hj=mn(),qv=Pd();function fy(r){if(r instanceof Hj.NonTerminal)return fy(r.referencedRule);if(r instanceof Hj.Terminal)return jj(r);if((0,qv.isSequenceProd)(r))return Gj(r);if((0,qv.isBranchingProd)(r))return Yj(r);throw Error("non exhaustive match")}Fo.first=fy;function Gj(r){for(var e=[],t=r.definition,i=0,n=t.length>i,s,o=!0;n&&o;)s=t[i],o=(0,qv.isOptionalProd)(s),e=e.concat(fy(s)),i=i+1,n=t.length>i;return(0,gy.uniq)(e)}Fo.firstForSequence=Gj;function Yj(r){var e=(0,gy.map)(r.definition,function(t){return fy(t)});return(0,gy.uniq)((0,gy.flatten)(e))}Fo.firstForBranching=Yj;function jj(r){return[r.terminalType]}Fo.firstForTerminal=jj});var Wv=I(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.IN=void 0;hy.IN="_~IN~_"});var Vj=I(us=>{"use strict";var yIe=us&&us.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(us,"__esModule",{value:!0});us.buildInProdFollowPrefix=us.buildBetweenProdsFollowPrefix=us.computeAllProdsFollows=us.ResyncFollowsWalker=void 0;var wIe=ly(),BIe=Jv(),qj=Kt(),Jj=Wv(),QIe=mn(),Wj=function(r){yIe(e,r);function e(t){var i=r.call(this)||this;return i.topProd=t,i.follows={},i}return e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(t,i,n){},e.prototype.walkProdRef=function(t,i,n){var s=zj(t.referencedRule,t.idx)+this.topProd.name,o=i.concat(n),a=new QIe.Alternative({definition:o}),l=(0,BIe.first)(a);this.follows[s]=l},e}(wIe.RestWalker);us.ResyncFollowsWalker=Wj;function bIe(r){var e={};return(0,qj.forEach)(r,function(t){var i=new Wj(t).startWalking();(0,qj.assign)(e,i)}),e}us.computeAllProdsFollows=bIe;function zj(r,e){return r.name+e+Jj.IN}us.buildBetweenProdsFollowPrefix=zj;function SIe(r){var e=r.terminalType.name;return e+r.idx+Jj.IN}us.buildInProdFollowPrefix=SIe});var kd=I(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.defaultGrammarValidatorErrorProvider=Da.defaultGrammarResolverErrorProvider=Da.defaultParserErrorProvider=void 0;var tf=NA(),vIe=Kt(),$s=Kt(),zv=mn(),Xj=Pd();Da.defaultParserErrorProvider={buildMismatchTokenMessage:function(r){var e=r.expected,t=r.actual,i=r.previous,n=r.ruleName,s=(0,tf.hasTokenLabel)(e),o=s?"--> "+(0,tf.tokenLabel)(e)+" <--":"token of type --> "+e.name+" <--",a="Expecting "+o+" but found --> '"+t.image+"' <--";return a},buildNotAllInputParsedMessage:function(r){var e=r.firstRedundant,t=r.ruleName;return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage:function(r){var e=r.expectedPathsPerAlt,t=r.actual,i=r.previous,n=r.customUserDescription,s=r.ruleName,o="Expecting: ",a=(0,$s.first)(t).image,l=` -but found: '`+a+"'";if(n)return o+n+l;var c=(0,$s.reduce)(e,function(p,d){return p.concat(d)},[]),u=(0,$s.map)(c,function(p){return"["+(0,$s.map)(p,function(d){return(0,tf.tokenLabel)(d)}).join(", ")+"]"}),g=(0,$s.map)(u,function(p,d){return" "+(d+1)+". "+p}),h=`one of these possible Token sequences: -`+g.join(` -`);return o+h+l},buildEarlyExitMessage:function(r){var e=r.expectedIterationPaths,t=r.actual,i=r.customUserDescription,n=r.ruleName,s="Expecting: ",o=(0,$s.first)(t).image,a=` -but found: '`+o+"'";if(i)return s+i+a;var l=(0,$s.map)(e,function(u){return"["+(0,$s.map)(u,function(g){return(0,tf.tokenLabel)(g)}).join(",")+"]"}),c=`expecting at least one iteration which starts with one of these possible Token sequences:: - `+("<"+l.join(" ,")+">");return s+c+a}};Object.freeze(Da.defaultParserErrorProvider);Da.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(r,e){var t="Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- -inside top level rule: ->`+r.name+"<-";return t}};Da.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(r,e){function t(u){return u instanceof zv.Terminal?u.terminalType.name:u instanceof zv.NonTerminal?u.nonTerminalName:""}var i=r.name,n=(0,$s.first)(e),s=n.idx,o=(0,Xj.getProductionDslName)(n),a=t(n),l=s>0,c="->"+o+(l?s:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+` - appears more than once (`+e.length+" times) in the top level rule: ->"+i+`<-. - For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES - `;return c=c.replace(/[ \t]+/g," "),c=c.replace(/\s\s+/g,` -`),c},buildNamespaceConflictError:function(r){var e=`Namespace conflict found in grammar. -`+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+r.name+`>. -`)+`To resolve this make sure each Terminal and Non-Terminal names are unique -This is easy to accomplish by using the convention that Terminal names start with an uppercase letter -and Non-Terminal names start with a lower case letter.`;return e},buildAlternationPrefixAmbiguityError:function(r){var e=(0,$s.map)(r.prefixPath,function(n){return(0,tf.tokenLabel)(n)}).join(", "),t=r.alternation.idx===0?"":r.alternation.idx,i="Ambiguous alternatives: <"+r.ambiguityIndices.join(" ,")+`> due to common lookahead prefix -`+("in inside <"+r.topLevelRule.name+`> Rule, -`)+("<"+e+`> may appears as a prefix path in all these alternatives. -`)+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX -For Further details.`;return i},buildAlternationAmbiguityError:function(r){var e=(0,$s.map)(r.prefixPath,function(n){return(0,tf.tokenLabel)(n)}).join(", "),t=r.alternation.idx===0?"":r.alternation.idx,i="Ambiguous Alternatives Detected: <"+r.ambiguityIndices.join(" ,")+"> in "+(" inside <"+r.topLevelRule.name+`> Rule, -`)+("<"+e+`> may appears as a prefix path in all these alternatives. -`);return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,i},buildEmptyRepetitionError:function(r){var e=(0,Xj.getProductionDslName)(r.repetition);r.repetition.idx!==0&&(e+=r.repetition.idx);var t="The repetition <"+e+"> within Rule <"+r.topLevelRule.name+`> can never consume any tokens. -This could lead to an infinite loop.`;return t},buildTokenNameError:function(r){return"deprecated"},buildEmptyAlternationError:function(r){var e="Ambiguous empty alternative: <"+(r.emptyChoiceIdx+1)+">"+(" in inside <"+r.topLevelRule.name+`> Rule. -`)+"Only the last alternative may be an empty alternative.";return e},buildTooManyAlternativesError:function(r){var e=`An Alternation cannot have more than 256 alternatives: -`+(" inside <"+r.topLevelRule.name+`> Rule. - has `+(r.alternation.definition.length+1)+" alternatives.");return e},buildLeftRecursionError:function(r){var e=r.topLevelRule.name,t=vIe.map(r.leftRecursionPath,function(s){return s.name}),i=e+" --> "+t.concat([e]).join(" --> "),n=`Left Recursion found in grammar. -`+("rule: <"+e+`> can be invoked from itself (directly or indirectly) -`)+(`without consuming any Tokens. The grammar path that causes this is: - `+i+` -`)+` To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return n},buildInvalidRuleNameError:function(r){return"deprecated"},buildDuplicateRuleNameError:function(r){var e;r.topLevelRule instanceof zv.Rule?e=r.topLevelRule.name:e=r.topLevelRule;var t="Duplicate definition, rule: ->"+e+"<- is already defined in the grammar: ->"+r.grammarName+"<-";return t}}});var $j=I(TA=>{"use strict";var xIe=TA&&TA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(TA,"__esModule",{value:!0});TA.GastRefResolverVisitor=TA.resolveGrammar=void 0;var PIe=Yn(),Zj=Kt(),kIe=ef();function DIe(r,e){var t=new _j(r,e);return t.resolveRefs(),t.errors}TA.resolveGrammar=DIe;var _j=function(r){xIe(e,r);function e(t,i){var n=r.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=i,n.errors=[],n}return e.prototype.resolveRefs=function(){var t=this;(0,Zj.forEach)((0,Zj.values)(this.nameToTopRule),function(i){t.currTopLevel=i,i.accept(t)})},e.prototype.visitNonTerminal=function(t){var i=this.nameToTopRule[t.nonTerminalName];if(i)t.referencedRule=i;else{var n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:n,type:PIe.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}},e}(kIe.GAstVisitor);TA.GastRefResolverVisitor=_j});var Rd=I(Rr=>{"use strict";var Ic=Rr&&Rr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.nextPossibleTokensAfter=Rr.possiblePathsFrom=Rr.NextTerminalAfterAtLeastOneSepWalker=Rr.NextTerminalAfterAtLeastOneWalker=Rr.NextTerminalAfterManySepWalker=Rr.NextTerminalAfterManyWalker=Rr.AbstractNextTerminalAfterProductionWalker=Rr.NextAfterTokenWalker=Rr.AbstractNextPossibleTokensWalker=void 0;var eq=ly(),Lt=Kt(),RIe=Jv(),Pt=mn(),tq=function(r){Ic(e,r);function e(t,i){var n=r.call(this)||this;return n.topProd=t,n.path=i,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,Lt.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,Lt.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(t,i){i===void 0&&(i=[]),this.found||r.prototype.walk.call(this,t,i)},e.prototype.walkProdRef=function(t,i,n){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){var s=i.concat(n);this.updateExpectedNext(),this.walk(t.referencedRule,s)}},e.prototype.updateExpectedNext=function(){(0,Lt.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(eq.RestWalker);Rr.AbstractNextPossibleTokensWalker=tq;var FIe=function(r){Ic(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.path=i,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return e.prototype.walkTerminal=function(t,i,n){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){var s=i.concat(n),o=new Pt.Alternative({definition:s});this.possibleTokTypes=(0,RIe.first)(o),this.found=!0}},e}(tq);Rr.NextAfterTokenWalker=FIe;var Dd=function(r){Ic(e,r);function e(t,i){var n=r.call(this)||this;return n.topRule=t,n.occurrence=i,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(eq.RestWalker);Rr.AbstractNextTerminalAfterProductionWalker=Dd;var NIe=function(r){Ic(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkMany=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Lt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Pt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkMany.call(this,t,i,n)},e}(Dd);Rr.NextTerminalAfterManyWalker=NIe;var TIe=function(r){Ic(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkManySep=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Lt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Pt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkManySep.call(this,t,i,n)},e}(Dd);Rr.NextTerminalAfterManySepWalker=TIe;var LIe=function(r){Ic(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkAtLeastOne=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Lt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Pt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkAtLeastOne.call(this,t,i,n)},e}(Dd);Rr.NextTerminalAfterAtLeastOneWalker=LIe;var OIe=function(r){Ic(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.walkAtLeastOneSep=function(t,i,n){if(t.idx===this.occurrence){var s=(0,Lt.first)(i.concat(n));this.result.isEndOfRule=s===void 0,s instanceof Pt.Terminal&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else r.prototype.walkAtLeastOneSep.call(this,t,i,n)},e}(Dd);Rr.NextTerminalAfterAtLeastOneSepWalker=OIe;function rq(r,e,t){t===void 0&&(t=[]),t=(0,Lt.cloneArr)(t);var i=[],n=0;function s(c){return c.concat((0,Lt.drop)(r,n+1))}function o(c){var u=rq(s(c),e,t);return i.concat(u)}for(;t.length=0;ue--){var ee=B.definition[ue],O={idx:d,def:ee.definition.concat((0,Lt.drop)(p)),ruleStack:m,occurrenceStack:y};g.push(O),g.push(o)}else if(B instanceof Pt.Alternative)g.push({idx:d,def:B.definition.concat((0,Lt.drop)(p)),ruleStack:m,occurrenceStack:y});else if(B instanceof Pt.Rule)g.push(KIe(B,d,m,y));else throw Error("non exhaustive match")}}return u}Rr.nextPossibleTokensAfter=MIe;function KIe(r,e,t,i){var n=(0,Lt.cloneArr)(t);n.push(r.name);var s=(0,Lt.cloneArr)(i);return s.push(1),{idx:e,def:r.definition,ruleStack:n,occurrenceStack:s}}});var Fd=I(zt=>{"use strict";var sq=zt&&zt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(zt,"__esModule",{value:!0});zt.areTokenCategoriesNotUsed=zt.isStrictPrefixOfPath=zt.containsPath=zt.getLookaheadPathsForOptionalProd=zt.getLookaheadPathsForOr=zt.lookAheadSequenceFromAlternatives=zt.buildSingleAlternativeLookaheadFunction=zt.buildAlternativesLookAheadFunc=zt.buildLookaheadFuncForOptionalProd=zt.buildLookaheadFuncForOr=zt.getProdType=zt.PROD_TYPE=void 0;var ir=Kt(),iq=Rd(),UIe=ly(),py=$g(),LA=mn(),HIe=ef(),ni;(function(r){r[r.OPTION=0]="OPTION",r[r.REPETITION=1]="REPETITION",r[r.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",r[r.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",r[r.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",r[r.ALTERNATION=5]="ALTERNATION"})(ni=zt.PROD_TYPE||(zt.PROD_TYPE={}));function GIe(r){if(r instanceof LA.Option)return ni.OPTION;if(r instanceof LA.Repetition)return ni.REPETITION;if(r instanceof LA.RepetitionMandatory)return ni.REPETITION_MANDATORY;if(r instanceof LA.RepetitionMandatoryWithSeparator)return ni.REPETITION_MANDATORY_WITH_SEPARATOR;if(r instanceof LA.RepetitionWithSeparator)return ni.REPETITION_WITH_SEPARATOR;if(r instanceof LA.Alternation)return ni.ALTERNATION;throw Error("non exhaustive match")}zt.getProdType=GIe;function YIe(r,e,t,i,n,s){var o=aq(r,e,t),a=Zv(o)?py.tokenStructuredMatcherNoCategories:py.tokenStructuredMatcher;return s(o,i,a,n)}zt.buildLookaheadFuncForOr=YIe;function jIe(r,e,t,i,n,s){var o=Aq(r,e,n,t),a=Zv(o)?py.tokenStructuredMatcherNoCategories:py.tokenStructuredMatcher;return s(o[0],a,i)}zt.buildLookaheadFuncForOptionalProd=jIe;function qIe(r,e,t,i){var n=r.length,s=(0,ir.every)(r,function(l){return(0,ir.every)(l,function(c){return c.length===1})});if(e)return function(l){for(var c=(0,ir.map)(l,function(P){return P.GATE}),u=0;u{"use strict";var _v=Jt&&Jt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.checkPrefixAlternativesAmbiguities=Jt.validateSomeNonEmptyLookaheadPath=Jt.validateTooManyAlts=Jt.RepetionCollector=Jt.validateAmbiguousAlternationAlternatives=Jt.validateEmptyOrAlternative=Jt.getFirstNoneTerminal=Jt.validateNoLeftRecursion=Jt.validateRuleIsOverridden=Jt.validateRuleDoesNotAlreadyExist=Jt.OccurrenceValidationCollector=Jt.identifyProductionForDuplicates=Jt.validateGrammar=void 0;var _t=Kt(),Br=Kt(),No=Yn(),$v=Pd(),rf=Fd(),XIe=Rd(),eo=mn(),ex=ef();function ZIe(r,e,t,i,n){var s=_t.map(r,function(p){return _Ie(p,i)}),o=_t.map(r,function(p){return tx(p,p,i)}),a=[],l=[],c=[];(0,Br.every)(o,Br.isEmpty)&&(a=(0,Br.map)(r,function(p){return hq(p,i)}),l=(0,Br.map)(r,function(p){return pq(p,e,i)}),c=mq(r,e,i));var u=tye(r,t,i),g=(0,Br.map)(r,function(p){return Cq(p,i)}),h=(0,Br.map)(r,function(p){return fq(p,r,n,i)});return _t.flatten(s.concat(c,o,a,l,u,g,h))}Jt.validateGrammar=ZIe;function _Ie(r,e){var t=new gq;r.accept(t);var i=t.allProductions,n=_t.groupBy(i,cq),s=_t.pick(n,function(a){return a.length>1}),o=_t.map(_t.values(s),function(a){var l=_t.first(a),c=e.buildDuplicateFoundError(r,a),u=(0,$v.getProductionDslName)(l),g={message:c,type:No.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:r.name,dslName:u,occurrence:l.idx},h=uq(l);return h&&(g.parameter=h),g});return o}function cq(r){return(0,$v.getProductionDslName)(r)+"_#_"+r.idx+"_#_"+uq(r)}Jt.identifyProductionForDuplicates=cq;function uq(r){return r instanceof eo.Terminal?r.terminalType.name:r instanceof eo.NonTerminal?r.nonTerminalName:""}var gq=function(r){_v(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allProductions=[],t}return e.prototype.visitNonTerminal=function(t){this.allProductions.push(t)},e.prototype.visitOption=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e.prototype.visitAlternation=function(t){this.allProductions.push(t)},e.prototype.visitTerminal=function(t){this.allProductions.push(t)},e}(ex.GAstVisitor);Jt.OccurrenceValidationCollector=gq;function fq(r,e,t,i){var n=[],s=(0,Br.reduce)(e,function(a,l){return l.name===r.name?a+1:a},0);if(s>1){var o=i.buildDuplicateRuleNameError({topLevelRule:r,grammarName:t});n.push({message:o,type:No.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:r.name})}return n}Jt.validateRuleDoesNotAlreadyExist=fq;function $Ie(r,e,t){var i=[],n;return _t.contains(e,r)||(n="Invalid rule override, rule: ->"+r+"<- cannot be overridden in the grammar: ->"+t+"<-as it is not defined in any of the super grammars ",i.push({message:n,type:No.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:r})),i}Jt.validateRuleIsOverridden=$Ie;function tx(r,e,t,i){i===void 0&&(i=[]);var n=[],s=Nd(e.definition);if(_t.isEmpty(s))return[];var o=r.name,a=_t.contains(s,r);a&&n.push({message:t.buildLeftRecursionError({topLevelRule:r,leftRecursionPath:i}),type:No.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:o});var l=_t.difference(s,i.concat([r])),c=_t.map(l,function(u){var g=_t.cloneArr(i);return g.push(u),tx(r,u,t,g)});return n.concat(_t.flatten(c))}Jt.validateNoLeftRecursion=tx;function Nd(r){var e=[];if(_t.isEmpty(r))return e;var t=_t.first(r);if(t instanceof eo.NonTerminal)e.push(t.referencedRule);else if(t instanceof eo.Alternative||t instanceof eo.Option||t instanceof eo.RepetitionMandatory||t instanceof eo.RepetitionMandatoryWithSeparator||t instanceof eo.RepetitionWithSeparator||t instanceof eo.Repetition)e=e.concat(Nd(t.definition));else if(t instanceof eo.Alternation)e=_t.flatten(_t.map(t.definition,function(o){return Nd(o.definition)}));else if(!(t instanceof eo.Terminal))throw Error("non exhaustive match");var i=(0,$v.isOptionalProd)(t),n=r.length>1;if(i&&n){var s=_t.drop(r);return e.concat(Nd(s))}else return e}Jt.getFirstNoneTerminal=Nd;var rx=function(r){_v(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.alternations=[],t}return e.prototype.visitAlternation=function(t){this.alternations.push(t)},e}(ex.GAstVisitor);function hq(r,e){var t=new rx;r.accept(t);var i=t.alternations,n=_t.reduce(i,function(s,o){var a=_t.dropRight(o.definition),l=_t.map(a,function(c,u){var g=(0,XIe.nextPossibleTokensAfter)([c],[],null,1);return _t.isEmpty(g)?{message:e.buildEmptyAlternationError({topLevelRule:r,alternation:o,emptyChoiceIdx:u}),type:No.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:r.name,occurrence:o.idx,alternative:u+1}:null});return s.concat(_t.compact(l))},[]);return n}Jt.validateEmptyOrAlternative=hq;function pq(r,e,t){var i=new rx;r.accept(i);var n=i.alternations;n=(0,Br.reject)(n,function(o){return o.ignoreAmbiguities===!0});var s=_t.reduce(n,function(o,a){var l=a.idx,c=a.maxLookahead||e,u=(0,rf.getLookaheadPathsForOr)(l,r,c,a),g=eye(u,a,r,t),h=Eq(u,a,r,t);return o.concat(g,h)},[]);return s}Jt.validateAmbiguousAlternationAlternatives=pq;var dq=function(r){_v(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allProductions=[],t}return e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e}(ex.GAstVisitor);Jt.RepetionCollector=dq;function Cq(r,e){var t=new rx;r.accept(t);var i=t.alternations,n=_t.reduce(i,function(s,o){return o.definition.length>255&&s.push({message:e.buildTooManyAlternativesError({topLevelRule:r,alternation:o}),type:No.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:r.name,occurrence:o.idx}),s},[]);return n}Jt.validateTooManyAlts=Cq;function mq(r,e,t){var i=[];return(0,Br.forEach)(r,function(n){var s=new dq;n.accept(s);var o=s.allProductions;(0,Br.forEach)(o,function(a){var l=(0,rf.getProdType)(a),c=a.maxLookahead||e,u=a.idx,g=(0,rf.getLookaheadPathsForOptionalProd)(u,n,l,c),h=g[0];if((0,Br.isEmpty)((0,Br.flatten)(h))){var p=t.buildEmptyRepetitionError({topLevelRule:n,repetition:a});i.push({message:p,type:No.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:n.name})}})}),i}Jt.validateSomeNonEmptyLookaheadPath=mq;function eye(r,e,t,i){var n=[],s=(0,Br.reduce)(r,function(a,l,c){return e.definition[c].ignoreAmbiguities===!0||(0,Br.forEach)(l,function(u){var g=[c];(0,Br.forEach)(r,function(h,p){c!==p&&(0,rf.containsPath)(h,u)&&e.definition[p].ignoreAmbiguities!==!0&&g.push(p)}),g.length>1&&!(0,rf.containsPath)(n,u)&&(n.push(u),a.push({alts:g,path:u}))}),a},[]),o=_t.map(s,function(a){var l=(0,Br.map)(a.alts,function(u){return u+1}),c=i.buildAlternationAmbiguityError({topLevelRule:t,alternation:e,ambiguityIndices:l,prefixPath:a.path});return{message:c,type:No.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:t.name,occurrence:e.idx,alternatives:[a.alts]}});return o}function Eq(r,e,t,i){var n=[],s=(0,Br.reduce)(r,function(o,a,l){var c=(0,Br.map)(a,function(u){return{idx:l,path:u}});return o.concat(c)},[]);return(0,Br.forEach)(s,function(o){var a=e.definition[o.idx];if(a.ignoreAmbiguities!==!0){var l=o.idx,c=o.path,u=(0,Br.findAll)(s,function(h){return e.definition[h.idx].ignoreAmbiguities!==!0&&h.idx{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.validateGrammar=nf.resolveGrammar=void 0;var nx=Kt(),rye=$j(),iye=ix(),Iq=kd();function nye(r){r=(0,nx.defaults)(r,{errMsgProvider:Iq.defaultGrammarResolverErrorProvider});var e={};return(0,nx.forEach)(r.rules,function(t){e[t.name]=t}),(0,rye.resolveGrammar)(e,r.errMsgProvider)}nf.resolveGrammar=nye;function sye(r){return r=(0,nx.defaults)(r,{errMsgProvider:Iq.defaultGrammarValidatorErrorProvider}),(0,iye.validateGrammar)(r.rules,r.maxLookahead,r.tokenTypes,r.errMsgProvider,r.grammarName)}nf.validateGrammar=sye});var sf=I(In=>{"use strict";var Td=In&&In.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(In,"__esModule",{value:!0});In.EarlyExitException=In.NotAllInputParsedException=In.NoViableAltException=In.MismatchedTokenException=In.isRecognitionException=void 0;var oye=Kt(),wq="MismatchedTokenException",Bq="NoViableAltException",Qq="EarlyExitException",bq="NotAllInputParsedException",Sq=[wq,Bq,Qq,bq];Object.freeze(Sq);function aye(r){return(0,oye.contains)(Sq,r.name)}In.isRecognitionException=aye;var dy=function(r){Td(e,r);function e(t,i){var n=this.constructor,s=r.call(this,t)||this;return s.token=i,s.resyncedTokens=[],Object.setPrototypeOf(s,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,s.constructor),s}return e}(Error),Aye=function(r){Td(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=wq,s}return e}(dy);In.MismatchedTokenException=Aye;var lye=function(r){Td(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=Bq,s}return e}(dy);In.NoViableAltException=lye;var cye=function(r){Td(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name=bq,n}return e}(dy);In.NotAllInputParsedException=cye;var uye=function(r){Td(e,r);function e(t,i,n){var s=r.call(this,t,i)||this;return s.previousToken=n,s.name=Qq,s}return e}(dy);In.EarlyExitException=uye});var ox=I(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.attemptInRepetitionRecovery=Ki.Recoverable=Ki.InRuleRecoveryException=Ki.IN_RULE_RECOVERY_EXCEPTION=Ki.EOF_FOLLOW_KEY=void 0;var Cy=NA(),gs=Kt(),gye=sf(),fye=Wv(),hye=Yn();Ki.EOF_FOLLOW_KEY={};Ki.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";function sx(r){this.name=Ki.IN_RULE_RECOVERY_EXCEPTION,this.message=r}Ki.InRuleRecoveryException=sx;sx.prototype=Error.prototype;var pye=function(){function r(){}return r.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,gs.has)(e,"recoveryEnabled")?e.recoveryEnabled:hye.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=vq)},r.prototype.getTokenToInsert=function(e){var t=(0,Cy.createTokenInstance)(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},r.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},r.prototype.tryInRepetitionRecovery=function(e,t,i,n){for(var s=this,o=this.findReSyncTokenType(),a=this.exportLexerState(),l=[],c=!1,u=this.LA(1),g=this.LA(1),h=function(){var p=s.LA(0),d=s.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:u,previous:p,ruleName:s.getCurrRuleFullName()}),m=new gye.MismatchedTokenException(d,u,s.LA(0));m.resyncedTokens=(0,gs.dropRight)(l),s.SAVE_ERROR(m)};!c;)if(this.tokenMatcher(g,n)){h();return}else if(i.call(this)){h(),e.apply(this,t);return}else this.tokenMatcher(g,o)?c=!0:(g=this.SKIP_TOKEN(),this.addToResyncTokens(g,l));this.importLexerState(a)},r.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,i){return!(i===!1||e===void 0||t===void 0||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))},r.prototype.getFollowsForInRuleRecovery=function(e,t){var i=this.getCurrentGrammarPath(e,t),n=this.getNextPossibleTokenTypes(i);return n},r.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t)){var i=this.getTokenToInsert(e);return i}if(this.canRecoverWithSingleTokenDeletion(e)){var n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new sx("sad sad panda")},r.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},r.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(e)||(0,gs.isEmpty)(t))return!1;var n=this.LA(1),s=(0,gs.find)(t,function(o){return i.tokenMatcher(n,o)})!==void 0;return s},r.prototype.canRecoverWithSingleTokenDeletion=function(e){var t=this.tokenMatcher(this.LA(2),e);return t},r.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(t);return(0,gs.contains)(i,e)},r.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),i=2;;){var n=t.tokenType;if((0,gs.contains)(e,n))return n;t=this.LA(i),i++}},r.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return Ki.EOF_FOLLOW_KEY;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(i)}},r.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return(0,gs.map)(t,function(n,s){return s===0?Ki.EOF_FOLLOW_KEY:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:i[s],inRule:e.shortRuleNameToFullName(t[s-1])}})},r.prototype.flattenFollowSet=function(){var e=this,t=(0,gs.map)(this.buildFullFollowKeyStack(),function(i){return e.getFollowSetFromFollowKey(i)});return(0,gs.flatten)(t)},r.prototype.getFollowSetFromFollowKey=function(e){if(e===Ki.EOF_FOLLOW_KEY)return[Cy.EOF];var t=e.ruleName+e.idxInCallingRule+fye.IN+e.inRule;return this.resyncFollows[t]},r.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,Cy.EOF)||t.push(e),t},r.prototype.reSyncTo=function(e){for(var t=[],i=this.LA(1);this.tokenMatcher(i,e)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,t);return(0,gs.dropRight)(t)},r.prototype.attemptInRepetitionRecovery=function(e,t,i,n,s,o,a){},r.prototype.getCurrentGrammarPath=function(e,t){var i=this.getHumanReadableRuleStack(),n=(0,gs.cloneArr)(this.RULE_OCCURRENCE_STACK),s={ruleStack:i,occurrenceStack:n,lastTok:e,lastTokOccurrence:t};return s},r.prototype.getHumanReadableRuleStack=function(){var e=this;return(0,gs.map)(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)})},r}();Ki.Recoverable=pye;function vq(r,e,t,i,n,s,o){var a=this.getKeyForAutomaticLookahead(i,n),l=this.firstAfterRepMap[a];if(l===void 0){var c=this.getCurrRuleFullName(),u=this.getGAstProductions()[c],g=new s(u,n);l=g.startWalking(),this.firstAfterRepMap[a]=l}var h=l.token,p=l.occurrence,d=l.isEndOfRule;this.RULE_STACK.length===1&&d&&h===void 0&&(h=Cy.EOF,p=1),this.shouldInRepetitionRecoveryBeTried(h,p,o)&&this.tryInRepetitionRecovery(r,e,t,h)}Ki.attemptInRepetitionRecovery=vq});var my=I(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getKeyForAutomaticLookahead=Yt.AT_LEAST_ONE_SEP_IDX=Yt.MANY_SEP_IDX=Yt.AT_LEAST_ONE_IDX=Yt.MANY_IDX=Yt.OPTION_IDX=Yt.OR_IDX=Yt.BITS_FOR_ALT_IDX=Yt.BITS_FOR_RULE_IDX=Yt.BITS_FOR_OCCURRENCE_IDX=Yt.BITS_FOR_METHOD_TYPE=void 0;Yt.BITS_FOR_METHOD_TYPE=4;Yt.BITS_FOR_OCCURRENCE_IDX=8;Yt.BITS_FOR_RULE_IDX=12;Yt.BITS_FOR_ALT_IDX=8;Yt.OR_IDX=1<{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.LooksAhead=void 0;var Ra=Fd(),to=Kt(),xq=Yn(),Fa=my(),yc=Pd(),Cye=function(){function r(){}return r.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=(0,to.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:xq.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,to.has)(e,"maxLookahead")?e.maxLookahead:xq.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=(0,to.isES2015MapSupported)()?new Map:[],(0,to.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},r.prototype.preComputeLookaheadFunctions=function(e){var t=this;(0,to.forEach)(e,function(i){t.TRACE_INIT(i.name+" Rule Lookahead",function(){var n=(0,yc.collectMethods)(i),s=n.alternation,o=n.repetition,a=n.option,l=n.repetitionMandatory,c=n.repetitionMandatoryWithSeparator,u=n.repetitionWithSeparator;(0,to.forEach)(s,function(g){var h=g.idx===0?"":g.idx;t.TRACE_INIT(""+(0,yc.getProductionDslName)(g)+h,function(){var p=(0,Ra.buildLookaheadFuncForOr)(g.idx,i,g.maxLookahead||t.maxLookahead,g.hasPredicates,t.dynamicTokensEnabled,t.lookAheadBuilderForAlternatives),d=(0,Fa.getKeyForAutomaticLookahead)(t.fullRuleNameToShort[i.name],Fa.OR_IDX,g.idx);t.setLaFuncCache(d,p)})}),(0,to.forEach)(o,function(g){t.computeLookaheadFunc(i,g.idx,Fa.MANY_IDX,Ra.PROD_TYPE.REPETITION,g.maxLookahead,(0,yc.getProductionDslName)(g))}),(0,to.forEach)(a,function(g){t.computeLookaheadFunc(i,g.idx,Fa.OPTION_IDX,Ra.PROD_TYPE.OPTION,g.maxLookahead,(0,yc.getProductionDslName)(g))}),(0,to.forEach)(l,function(g){t.computeLookaheadFunc(i,g.idx,Fa.AT_LEAST_ONE_IDX,Ra.PROD_TYPE.REPETITION_MANDATORY,g.maxLookahead,(0,yc.getProductionDslName)(g))}),(0,to.forEach)(c,function(g){t.computeLookaheadFunc(i,g.idx,Fa.AT_LEAST_ONE_SEP_IDX,Ra.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,g.maxLookahead,(0,yc.getProductionDslName)(g))}),(0,to.forEach)(u,function(g){t.computeLookaheadFunc(i,g.idx,Fa.MANY_SEP_IDX,Ra.PROD_TYPE.REPETITION_WITH_SEPARATOR,g.maxLookahead,(0,yc.getProductionDslName)(g))})})})},r.prototype.computeLookaheadFunc=function(e,t,i,n,s,o){var a=this;this.TRACE_INIT(""+o+(t===0?"":t),function(){var l=(0,Ra.buildLookaheadFuncForOptionalProd)(t,e,s||a.maxLookahead,a.dynamicTokensEnabled,n,a.lookAheadBuilderForOptional),c=(0,Fa.getKeyForAutomaticLookahead)(a.fullRuleNameToShort[e.name],i,t);a.setLaFuncCache(c,l)})},r.prototype.lookAheadBuilderForOptional=function(e,t,i){return(0,Ra.buildSingleAlternativeLookaheadFunction)(e,t,i)},r.prototype.lookAheadBuilderForAlternatives=function(e,t,i,n){return(0,Ra.buildAlternativesLookAheadFunc)(e,t,i,n)},r.prototype.getKeyForAutomaticLookahead=function(e,t){var i=this.getLastExplicitRuleShortName();return(0,Fa.getKeyForAutomaticLookahead)(i,e,t)},r.prototype.getLaFuncFromCache=function(e){},r.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},r.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},r.prototype.setLaFuncCache=function(e,t){},r.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},r.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},r}();Ey.LooksAhead=Cye});var kq=I(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.addNoneTerminalToCst=To.addTerminalToCst=To.setNodeLocationFull=To.setNodeLocationOnlyOffset=void 0;function mye(r,e){isNaN(r.startOffset)===!0?(r.startOffset=e.startOffset,r.endOffset=e.endOffset):r.endOffset{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});OA.defineNameProp=OA.functionName=OA.classNameFromInstance=void 0;var wye=Kt();function Bye(r){return Rq(r.constructor)}OA.classNameFromInstance=Bye;var Dq="name";function Rq(r){var e=r.name;return e||"anonymous"}OA.functionName=Rq;function Qye(r,e){var t=Object.getOwnPropertyDescriptor(r,Dq);return(0,wye.isUndefined)(t)||t.configurable?(Object.defineProperty(r,Dq,{enumerable:!1,configurable:!0,writable:!1,value:e}),!0):!1}OA.defineNameProp=Qye});var Oq=I(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.validateRedundantMethods=vi.validateMissingCstMethods=vi.validateVisitor=vi.CstVisitorDefinitionError=vi.createBaseVisitorConstructorWithDefaults=vi.createBaseSemanticVisitorConstructor=vi.defaultVisit=void 0;var fs=Kt(),Ld=ax();function Fq(r,e){for(var t=(0,fs.keys)(r),i=t.length,n=0;n: - `+(""+s.join(` - -`).replace(/\n/g,` - `)))}}};return t.prototype=i,t.prototype.constructor=t,t._RULE_NAMES=e,t}vi.createBaseSemanticVisitorConstructor=bye;function Sye(r,e,t){var i=function(){};(0,Ld.defineNameProp)(i,r+"BaseSemanticsWithDefaults");var n=Object.create(t.prototype);return(0,fs.forEach)(e,function(s){n[s]=Fq}),i.prototype=n,i.prototype.constructor=i,i}vi.createBaseVisitorConstructorWithDefaults=Sye;var Ax;(function(r){r[r.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",r[r.MISSING_METHOD=1]="MISSING_METHOD"})(Ax=vi.CstVisitorDefinitionError||(vi.CstVisitorDefinitionError={}));function Nq(r,e){var t=Tq(r,e),i=Lq(r,e);return t.concat(i)}vi.validateVisitor=Nq;function Tq(r,e){var t=(0,fs.map)(e,function(i){if(!(0,fs.isFunction)(r[i]))return{msg:"Missing visitor method: <"+i+"> on "+(0,Ld.functionName)(r.constructor)+" CST Visitor.",type:Ax.MISSING_METHOD,methodName:i}});return(0,fs.compact)(t)}vi.validateMissingCstMethods=Tq;var vye=["constructor","visit","validateVisitor"];function Lq(r,e){var t=[];for(var i in r)(0,fs.isFunction)(r[i])&&!(0,fs.contains)(vye,i)&&!(0,fs.contains)(e,i)&&t.push({msg:"Redundant visitor method: <"+i+"> on "+(0,Ld.functionName)(r.constructor)+` CST Visitor -There is no Grammar Rule corresponding to this method's name. -`,type:Ax.REDUNDANT_METHOD,methodName:i});return t}vi.validateRedundantMethods=Lq});var Kq=I(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.TreeBuilder=void 0;var of=kq(),Vr=Kt(),Mq=Oq(),xye=Yn(),Pye=function(){function r(){}return r.prototype.initTreeBuilder=function(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(0,Vr.has)(e,"nodeLocationTracking")?e.nodeLocationTracking:xye.DEFAULT_PARSER_CONFIG.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Vr.NOOP,this.cstFinallyStateUpdate=Vr.NOOP,this.cstPostTerminal=Vr.NOOP,this.cstPostNonTerminal=Vr.NOOP,this.cstPostRule=Vr.NOOP;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=of.setNodeLocationFull,this.setNodeLocationFromNode=of.setNodeLocationFull,this.cstPostRule=Vr.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Vr.NOOP,this.setNodeLocationFromNode=Vr.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=of.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=of.setNodeLocationOnlyOffset,this.cstPostRule=Vr.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Vr.NOOP,this.setNodeLocationFromNode=Vr.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Vr.NOOP,this.setNodeLocationFromNode=Vr.NOOP,this.cstPostRule=Vr.NOOP,this.setInitialNodeLocation=Vr.NOOP;else throw Error('Invalid config option: "'+e.nodeLocationTracking+'"')},r.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},r.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},r.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},r.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},r.prototype.cstInvocationStateUpdate=function(e,t){var i={name:e,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},r.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},r.prototype.cstPostRuleFull=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset?(i.endOffset=t.endOffset,i.endLine=t.endLine,i.endColumn=t.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},r.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset?i.endOffset=t.endOffset:i.startOffset=NaN},r.prototype.cstPostTerminal=function(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];(0,of.addTerminalToCst)(i,t,e),this.setNodeLocationFromToken(i.location,t)},r.prototype.cstPostNonTerminal=function(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];(0,of.addNoneTerminalToCst)(i,t,e),this.setNodeLocationFromNode(i.location,e.location)},r.prototype.getBaseCstVisitorConstructor=function(){if((0,Vr.isUndefined)(this.baseCstVisitorConstructor)){var e=(0,Mq.createBaseSemanticVisitorConstructor)(this.className,(0,Vr.keys)(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor},r.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,Vr.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=(0,Mq.createBaseVisitorConstructorWithDefaults)(this.className,(0,Vr.keys)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},r.prototype.getLastExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-1]},r.prototype.getPreviousExplicitRuleShortName=function(){var e=this.RULE_STACK;return e[e.length-2]},r.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},r}();Iy.TreeBuilder=Pye});var Hq=I(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.LexerAdapter=void 0;var Uq=Yn(),kye=function(){function r(){}return r.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(r.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!1,configurable:!0}),r.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Uq.END_OF_FILE},r.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Uq.END_OF_FILE:this.tokVector[t]},r.prototype.consumeToken=function(){this.currIdx++},r.prototype.exportLexerState=function(){return this.currIdx},r.prototype.importLexerState=function(e){this.currIdx=e},r.prototype.resetLexerState=function(){this.currIdx=-1},r.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},r.prototype.getLexerPosition=function(){return this.exportLexerState()},r}();yy.LexerAdapter=kye});var Yq=I(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.RecognizerApi=void 0;var Gq=Kt(),Dye=sf(),lx=Yn(),Rye=kd(),Fye=ix(),Nye=mn(),Tye=function(){function r(){}return r.prototype.ACTION=function(e){return e.call(this)},r.prototype.consume=function(e,t,i){return this.consumeInternal(t,e,i)},r.prototype.subrule=function(e,t,i){return this.subruleInternal(t,e,i)},r.prototype.option=function(e,t){return this.optionInternal(t,e)},r.prototype.or=function(e,t){return this.orInternal(t,e)},r.prototype.many=function(e,t){return this.manyInternal(e,t)},r.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},r.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},r.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},r.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},r.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},r.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},r.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},r.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},r.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},r.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},r.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},r.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},r.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},r.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},r.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},r.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},r.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},r.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},r.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},r.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},r.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},r.prototype.OPTION=function(e){return this.optionInternal(e,0)},r.prototype.OPTION1=function(e){return this.optionInternal(e,1)},r.prototype.OPTION2=function(e){return this.optionInternal(e,2)},r.prototype.OPTION3=function(e){return this.optionInternal(e,3)},r.prototype.OPTION4=function(e){return this.optionInternal(e,4)},r.prototype.OPTION5=function(e){return this.optionInternal(e,5)},r.prototype.OPTION6=function(e){return this.optionInternal(e,6)},r.prototype.OPTION7=function(e){return this.optionInternal(e,7)},r.prototype.OPTION8=function(e){return this.optionInternal(e,8)},r.prototype.OPTION9=function(e){return this.optionInternal(e,9)},r.prototype.OR=function(e){return this.orInternal(e,0)},r.prototype.OR1=function(e){return this.orInternal(e,1)},r.prototype.OR2=function(e){return this.orInternal(e,2)},r.prototype.OR3=function(e){return this.orInternal(e,3)},r.prototype.OR4=function(e){return this.orInternal(e,4)},r.prototype.OR5=function(e){return this.orInternal(e,5)},r.prototype.OR6=function(e){return this.orInternal(e,6)},r.prototype.OR7=function(e){return this.orInternal(e,7)},r.prototype.OR8=function(e){return this.orInternal(e,8)},r.prototype.OR9=function(e){return this.orInternal(e,9)},r.prototype.MANY=function(e){this.manyInternal(0,e)},r.prototype.MANY1=function(e){this.manyInternal(1,e)},r.prototype.MANY2=function(e){this.manyInternal(2,e)},r.prototype.MANY3=function(e){this.manyInternal(3,e)},r.prototype.MANY4=function(e){this.manyInternal(4,e)},r.prototype.MANY5=function(e){this.manyInternal(5,e)},r.prototype.MANY6=function(e){this.manyInternal(6,e)},r.prototype.MANY7=function(e){this.manyInternal(7,e)},r.prototype.MANY8=function(e){this.manyInternal(8,e)},r.prototype.MANY9=function(e){this.manyInternal(9,e)},r.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},r.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},r.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},r.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},r.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},r.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},r.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},r.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},r.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},r.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},r.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},r.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},r.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},r.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},r.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},r.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},r.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},r.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},r.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},r.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},r.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},r.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},r.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},r.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},r.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},r.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},r.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},r.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},r.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},r.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},r.prototype.RULE=function(e,t,i){if(i===void 0&&(i=lx.DEFAULT_RULE_CONFIG),(0,Gq.contains)(this.definedRulesNames,e)){var n=Rye.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),s={message:n,type:lx.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);var o=this.defineRule(e,t,i);return this[e]=o,o},r.prototype.OVERRIDE_RULE=function(e,t,i){i===void 0&&(i=lx.DEFAULT_RULE_CONFIG);var n=[];n=n.concat((0,Fye.validateRuleIsOverridden)(e,this.definedRulesNames,this.className)),this.definitionErrors=this.definitionErrors.concat(n);var s=this.defineRule(e,t,i);return this[e]=s,s},r.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if((0,Dye.isRecognitionException)(n))return!1;throw n}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},r.prototype.getGAstProductions=function(){return this.gastProductionsCache},r.prototype.getSerializedGastProductions=function(){return(0,Nye.serializeGrammar)((0,Gq.values)(this.gastProductionsCache))},r}();wy.RecognizerApi=Tye});var Wq=I(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.RecognizerEngine=void 0;var xr=Kt(),jn=my(),By=sf(),jq=Fd(),af=Rd(),qq=Yn(),Lye=ox(),Jq=NA(),Od=$g(),Oye=ax(),Mye=function(){function r(){}return r.prototype.initRecognizerEngine=function(e,t){if(this.className=(0,Oye.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Od.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,xr.has)(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. - See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 - For Further details.`);if((0,xr.isArray)(e)){if((0,xr.isEmpty)(e))throw Error(`A Token Vocabulary cannot be empty. - Note that the first argument for the parser constructor - is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. - See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 - For Further details.`)}if((0,xr.isArray)(e))this.tokensMap=(0,xr.reduce)(e,function(o,a){return o[a.name]=a,o},{});else if((0,xr.has)(e,"modes")&&(0,xr.every)((0,xr.flatten)((0,xr.values)(e.modes)),Od.isTokenType)){var i=(0,xr.flatten)((0,xr.values)(e.modes)),n=(0,xr.uniq)(i);this.tokensMap=(0,xr.reduce)(n,function(o,a){return o[a.name]=a,o},{})}else if((0,xr.isObject)(e))this.tokensMap=(0,xr.cloneObj)(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Jq.EOF;var s=(0,xr.every)((0,xr.values)(e),function(o){return(0,xr.isEmpty)(o.categoryMatches)});this.tokenMatcher=s?Od.tokenStructuredMatcherNoCategories:Od.tokenStructuredMatcher,(0,Od.augmentTokenTypes)((0,xr.values)(this.tokensMap))},r.prototype.defineRule=function(e,t,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+`> may not be defined after the 'performSelfAnalysis' method has been called' -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var n=(0,xr.has)(i,"resyncEnabled")?i.resyncEnabled:qq.DEFAULT_RULE_CONFIG.resyncEnabled,s=(0,xr.has)(i,"recoveryValueFunc")?i.recoveryValueFunc:qq.DEFAULT_RULE_CONFIG.recoveryValueFunc,o=this.ruleShortNameIdx<t},r.prototype.orInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(jn.OR_IDX,t),n=(0,xr.isArray)(e)?e:e.DEF,s=this.getLaFuncFromCache(i),o=s.call(this,n);if(o!==void 0){var a=n[o];return a.ALT.call(this)}this.raiseNoAltException(t,e.ERR_MSG)},r.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new By.NotAllInputParsedException(t,e))}},r.prototype.subruleInternal=function(e,t,i){var n;try{var s=i!==void 0?i.ARGS:void 0;return n=e.call(this,t,s),this.cstPostNonTerminal(n,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),n}catch(o){this.subruleInternalError(o,i,e.ruleName)}},r.prototype.subruleInternalError=function(e,t,i){throw(0,By.isRecognitionException)(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:i),delete e.partialCstResult),e},r.prototype.consumeInternal=function(e,t,i){var n;try{var s=this.LA(1);this.tokenMatcher(s,e)===!0?(this.consumeToken(),n=s):this.consumeInternalError(e,s,i)}catch(o){n=this.consumeInternalRecovery(e,t,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,n),n},r.prototype.consumeInternalError=function(e,t,i){var n,s=this.LA(0);throw i!==void 0&&i.ERR_MSG?n=i.ERR_MSG:n=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new By.MismatchedTokenException(n,t,s))},r.prototype.consumeInternalRecovery=function(e,t,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(s){throw s.name===Lye.IN_RULE_RECOVERY_EXCEPTION?i:s}}else throw i},r.prototype.saveRecogState=function(){var e=this.errors,t=(0,xr.cloneArr)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}},r.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},r.prototype.ruleInvocationStateUpdate=function(e,t,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},r.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},r.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},r.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},r.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Jq.EOF)},r.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},r}();Qy.RecognizerEngine=Mye});var Vq=I(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.ErrorHandler=void 0;var cx=sf(),ux=Kt(),zq=Fd(),Kye=Yn(),Uye=function(){function r(){}return r.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=(0,ux.has)(e,"errorMessageProvider")?e.errorMessageProvider:Kye.DEFAULT_PARSER_CONFIG.errorMessageProvider},r.prototype.SAVE_ERROR=function(e){if((0,cx.isRecognitionException)(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ux.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(r.prototype,"errors",{get:function(){return(0,ux.cloneArr)(this._errors)},set:function(e){this._errors=e},enumerable:!1,configurable:!0}),r.prototype.raiseEarlyExitException=function(e,t,i){for(var n=this.getCurrRuleFullName(),s=this.getGAstProductions()[n],o=(0,zq.getLookaheadPathsForOptionalProd)(e,s,t,this.maxLookahead),a=o[0],l=[],c=1;c<=this.maxLookahead;c++)l.push(this.LA(c));var u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:l,previous:this.LA(0),customUserDescription:i,ruleName:n});throw this.SAVE_ERROR(new cx.EarlyExitException(u,this.LA(1),this.LA(0)))},r.prototype.raiseNoAltException=function(e,t){for(var i=this.getCurrRuleFullName(),n=this.getGAstProductions()[i],s=(0,zq.getLookaheadPathsForOr)(e,n,this.maxLookahead),o=[],a=1;a<=this.maxLookahead;a++)o.push(this.LA(a));var l=this.LA(0),c=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:s,actual:o,previous:l,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new cx.NoViableAltException(c,this.LA(1),l))},r}();by.ErrorHandler=Uye});var _q=I(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.ContentAssist=void 0;var Xq=Rd(),Zq=Kt(),Hye=function(){function r(){}return r.prototype.initContentAssist=function(){},r.prototype.computeContentAssist=function(e,t){var i=this.gastProductionsCache[e];if((0,Zq.isUndefined)(i))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return(0,Xq.nextPossibleTokensAfter)([i],t,this.tokenMatcher,this.maxLookahead)},r.prototype.getNextPossibleTokenTypes=function(e){var t=(0,Zq.first)(e.ruleStack),i=this.getGAstProductions(),n=i[t],s=new Xq.NextAfterTokenWalker(n,e).startWalking();return s},r}();Sy.ContentAssist=Hye});var oJ=I(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.GastRecorder=void 0;var yn=Kt(),Lo=mn(),Gye=bd(),rJ=$g(),iJ=NA(),Yye=Yn(),jye=my(),xy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(xy);var $q=!0,eJ=Math.pow(2,jye.BITS_FOR_OCCURRENCE_IDX)-1,nJ=(0,iJ.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:Gye.Lexer.NA});(0,rJ.augmentTokenTypes)([nJ]);var sJ=(0,iJ.createTokenInstance)(nJ,`This IToken indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(sJ);var qye={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Jye=function(){function r(){}return r.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},r.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(n){var s=n>0?n:"";e["CONSUME"+s]=function(o,a){return this.consumeInternalRecord(o,n,a)},e["SUBRULE"+s]=function(o,a){return this.subruleInternalRecord(o,n,a)},e["OPTION"+s]=function(o){return this.optionInternalRecord(o,n)},e["OR"+s]=function(o){return this.orInternalRecord(o,n)},e["MANY"+s]=function(o){this.manyInternalRecord(n,o)},e["MANY_SEP"+s]=function(o){this.manySepFirstInternalRecord(n,o)},e["AT_LEAST_ONE"+s]=function(o){this.atLeastOneInternalRecord(n,o)},e["AT_LEAST_ONE_SEP"+s]=function(o){this.atLeastOneSepFirstInternalRecord(n,o)}},i=0;i<10;i++)t(i);e.consume=function(n,s,o){return this.consumeInternalRecord(s,n,o)},e.subrule=function(n,s,o){return this.subruleInternalRecord(s,n,o)},e.option=function(n,s){return this.optionInternalRecord(s,n)},e.or=function(n,s){return this.orInternalRecord(s,n)},e.many=function(n,s){this.manyInternalRecord(n,s)},e.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},r.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var i=t>0?t:"";delete e["CONSUME"+i],delete e["SUBRULE"+i],delete e["OPTION"+i],delete e["OR"+i],delete e["MANY"+i],delete e["MANY_SEP"+i],delete e["AT_LEAST_ONE"+i],delete e["AT_LEAST_ONE_SEP"+i]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},r.prototype.ACTION_RECORD=function(e){},r.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},r.prototype.LA_RECORD=function(e){return Yye.END_OF_FILE},r.prototype.topLevelRuleRecord=function(e,t){try{var i=new Lo.Rule({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),t.call(this),this.recordingProdStack.pop(),i}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` - This error was thrown during the "grammar recording phase" For more info see: - https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}},r.prototype.optionInternalRecord=function(e,t){return Md.call(this,Lo.Option,e,t)},r.prototype.atLeastOneInternalRecord=function(e,t){Md.call(this,Lo.RepetitionMandatory,t,e)},r.prototype.atLeastOneSepFirstInternalRecord=function(e,t){Md.call(this,Lo.RepetitionMandatoryWithSeparator,t,e,$q)},r.prototype.manyInternalRecord=function(e,t){Md.call(this,Lo.Repetition,t,e)},r.prototype.manySepFirstInternalRecord=function(e,t){Md.call(this,Lo.RepetitionWithSeparator,t,e,$q)},r.prototype.orInternalRecord=function(e,t){return Wye.call(this,e,t)},r.prototype.subruleInternalRecord=function(e,t,i){if(vy(t),!e||(0,yn.has)(e,"ruleName")===!1){var n=new Error(" argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(e)+">")+(` - inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,yn.peek)(this.recordingProdStack),o=e.ruleName,a=new Lo.NonTerminal({idx:t,nonTerminalName:o,label:i==null?void 0:i.LABEL,referencedRule:void 0});return s.definition.push(a),this.outputCst?qye:xy},r.prototype.consumeInternalRecord=function(e,t,i){if(vy(t),!(0,rJ.hasShortKeyProperty)(e)){var n=new Error(" argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(e)+">")+(` - inside top level rule: <`+this.recordingProdStack[0].name+">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var s=(0,yn.peek)(this.recordingProdStack),o=new Lo.Terminal({idx:t,terminalType:e,label:i==null?void 0:i.LABEL});return s.definition.push(o),sJ},r}();Py.GastRecorder=Jye;function Md(r,e,t,i){i===void 0&&(i=!1),vy(t);var n=(0,yn.peek)(this.recordingProdStack),s=(0,yn.isFunction)(e)?e:e.DEF,o=new r({definition:[],idx:t});return i&&(o.separator=e.SEP),(0,yn.has)(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),n.definition.push(o),this.recordingProdStack.pop(),xy}function Wye(r,e){var t=this;vy(e);var i=(0,yn.peek)(this.recordingProdStack),n=(0,yn.isArray)(r)===!1,s=n===!1?r:r.DEF,o=new Lo.Alternation({definition:[],idx:e,ignoreAmbiguities:n&&r.IGNORE_AMBIGUITIES===!0});(0,yn.has)(r,"MAX_LOOKAHEAD")&&(o.maxLookahead=r.MAX_LOOKAHEAD);var a=(0,yn.some)(s,function(l){return(0,yn.isFunction)(l.GATE)});return o.hasPredicates=a,i.definition.push(o),(0,yn.forEach)(s,function(l){var c=new Lo.Alternative({definition:[]});o.definition.push(c),(0,yn.has)(l,"IGNORE_AMBIGUITIES")?c.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:(0,yn.has)(l,"GATE")&&(c.ignoreAmbiguities=!0),t.recordingProdStack.push(c),l.ALT.call(t),t.recordingProdStack.pop()}),xy}function tJ(r){return r===0?"":""+r}function vy(r){if(r<0||r>eJ){var e=new Error("Invalid DSL Method idx value: <"+r+`> - `+("Idx value must be a none negative value smaller than "+(eJ+1)));throw e.KNOWN_RECORDER_ERROR=!0,e}}});var AJ=I(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.PerformanceTracer=void 0;var aJ=Kt(),zye=Yn(),Vye=function(){function r(){}return r.prototype.initPerformanceTracer=function(e){if((0,aJ.has)(e,"traceInitPerf")){var t=e.traceInitPerf,i=typeof t=="number";this.traceInitMaxIdent=i?t:1/0,this.traceInitPerf=i?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=zye.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},r.prototype.TRACE_INIT=function(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <"+e+">");var n=(0,aJ.timer)(t),s=n.time,o=n.value,a=s>10?console.warn:console.log;return this.traceInitIndent time: "+s+"ms"),this.traceInitIndent--,o}else return t()},r}();ky.PerformanceTracer=Vye});var lJ=I(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.applyMixins=void 0;function Xye(r,e){e.forEach(function(t){var i=t.prototype;Object.getOwnPropertyNames(i).forEach(function(n){if(n!=="constructor"){var s=Object.getOwnPropertyDescriptor(i,n);s&&(s.get||s.set)?Object.defineProperty(r.prototype,n,s):r.prototype[n]=t.prototype[n]}})})}Dy.applyMixins=Xye});var Yn=I(hr=>{"use strict";var gJ=hr&&hr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(hr,"__esModule",{value:!0});hr.EmbeddedActionsParser=hr.CstParser=hr.Parser=hr.EMPTY_ALT=hr.ParserDefinitionErrorType=hr.DEFAULT_RULE_CONFIG=hr.DEFAULT_PARSER_CONFIG=hr.END_OF_FILE=void 0;var $i=Kt(),Zye=Vj(),cJ=NA(),fJ=kd(),uJ=yq(),_ye=ox(),$ye=Pq(),ewe=Kq(),twe=Hq(),rwe=Yq(),iwe=Wq(),nwe=Vq(),swe=_q(),owe=oJ(),awe=AJ(),Awe=lJ();hr.END_OF_FILE=(0,cJ.createTokenInstance)(cJ.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(hr.END_OF_FILE);hr.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fJ.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1});hr.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});var lwe;(function(r){r[r.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",r[r.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",r[r.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",r[r.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",r[r.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",r[r.LEFT_RECURSION=5]="LEFT_RECURSION",r[r.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",r[r.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",r[r.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",r[r.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",r[r.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",r[r.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",r[r.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(lwe=hr.ParserDefinitionErrorType||(hr.ParserDefinitionErrorType={}));function cwe(r){return r===void 0&&(r=void 0),function(){return r}}hr.EMPTY_ALT=cwe;var Ry=function(){function r(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(t),i.initLexerAdapter(),i.initLooksAhead(t),i.initRecognizerEngine(e,t),i.initRecoverable(t),i.initTreeBuilder(t),i.initContentAssist(),i.initGastRecorder(t),i.initPerformanceTracer(t),(0,$i.has)(t,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. - Please use the flag on the relevant DSL method instead. - See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES - For further details.`);this.skipValidations=(0,$i.has)(t,"skipValidations")?t.skipValidations:hr.DEFAULT_PARSER_CONFIG.skipValidations}return r.performSelfAnalysis=function(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},r.prototype.performSelfAnalysis=function(){var e=this;this.TRACE_INIT("performSelfAnalysis",function(){var t;e.selfAnalysisDone=!0;var i=e.className;e.TRACE_INIT("toFastProps",function(){(0,$i.toFastProperties)(e)}),e.TRACE_INIT("Grammar Recording",function(){try{e.enableRecording(),(0,$i.forEach)(e.definedRulesNames,function(s){var o=e[s],a=o.originalGrammarAction,l=void 0;e.TRACE_INIT(s+" Rule",function(){l=e.topLevelRuleRecord(s,a)}),e.gastProductionsCache[s]=l})}finally{e.disableRecording()}});var n=[];if(e.TRACE_INIT("Grammar Resolving",function(){n=(0,uJ.resolveGrammar)({rules:(0,$i.values)(e.gastProductionsCache)}),e.definitionErrors=e.definitionErrors.concat(n)}),e.TRACE_INIT("Grammar Validations",function(){if((0,$i.isEmpty)(n)&&e.skipValidations===!1){var s=(0,uJ.validateGrammar)({rules:(0,$i.values)(e.gastProductionsCache),maxLookahead:e.maxLookahead,tokenTypes:(0,$i.values)(e.tokensMap),errMsgProvider:fJ.defaultGrammarValidatorErrorProvider,grammarName:i});e.definitionErrors=e.definitionErrors.concat(s)}}),(0,$i.isEmpty)(e.definitionErrors)&&(e.recoveryEnabled&&e.TRACE_INIT("computeAllProdsFollows",function(){var s=(0,Zye.computeAllProdsFollows)((0,$i.values)(e.gastProductionsCache));e.resyncFollows=s}),e.TRACE_INIT("ComputeLookaheadFunctions",function(){e.preComputeLookaheadFunctions((0,$i.values)(e.gastProductionsCache))})),!r.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,$i.isEmpty)(e.definitionErrors))throw t=(0,$i.map)(e.definitionErrors,function(s){return s.message}),new Error(`Parser Definition Errors detected: - `+t.join(` -------------------------------- -`))})},r.DEFER_DEFINITION_ERRORS_HANDLING=!1,r}();hr.Parser=Ry;(0,Awe.applyMixins)(Ry,[_ye.Recoverable,$ye.LooksAhead,ewe.TreeBuilder,twe.LexerAdapter,iwe.RecognizerEngine,rwe.RecognizerApi,nwe.ErrorHandler,swe.ContentAssist,owe.GastRecorder,awe.PerformanceTracer]);var uwe=function(r){gJ(e,r);function e(t,i){i===void 0&&(i=hr.DEFAULT_PARSER_CONFIG);var n=this,s=(0,$i.cloneObj)(i);return s.outputCst=!0,n=r.call(this,t,s)||this,n}return e}(Ry);hr.CstParser=uwe;var gwe=function(r){gJ(e,r);function e(t,i){i===void 0&&(i=hr.DEFAULT_PARSER_CONFIG);var n=this,s=(0,$i.cloneObj)(i);return s.outputCst=!1,n=r.call(this,t,s)||this,n}return e}(Ry);hr.EmbeddedActionsParser=gwe});var pJ=I(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.createSyntaxDiagramsCode=void 0;var hJ=Dv();function fwe(r,e){var t=e===void 0?{}:e,i=t.resourceBase,n=i===void 0?"https://unpkg.com/chevrotain@"+hJ.VERSION+"/diagrams/":i,s=t.css,o=s===void 0?"https://unpkg.com/chevrotain@"+hJ.VERSION+"/diagrams/diagrams.css":s,a=` - - - - - -`,l=` - -`,c=` -