hummin-cli 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-MFD3YQEX.js → chunk-FUXEF6JQ.js} +1 -1
- package/dist/bundle/chunks/chunk-Q56DP2AA.js +1607 -0
- package/dist/bundle/chunks/chunk-ZBVBFG4N.js +2 -0
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{google-generative-ai-DS3DOLEI.js → google-generative-ai-IMS5EK2Y.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-TWD5HIQW.js → google-vertex-O4YJEQUW.js} +1 -1
- package/dist/bundle/chunks/{https-proxy-agent-NITCU2PD.js → https-proxy-agent-2VXB7436.js} +1 -1
- package/dist/bundle/chunks/jiti-loader-C3NU2SDH.js +21 -0
- package/dist/bundle/chunks/jiti-static-loader-E6ANQD5T.js +2 -0
- package/dist/bundle/chunks/meta.js +2 -0
- package/dist/bundle/chunks/{openai-completions-KQPOPEVM.js → openai-completions-XHML6MTL.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-VG374B4T.js +2 -0
- package/dist/bundle/cli-runtime.js +3 -0
- package/dist/bundle/cli.js +4 -2
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunks/chunk-S5MOG42W.js +0 -1558
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
+
import{__commonJS,__require,__toESM}from"./chunk-4L3WN2XY.js";var require_jiti=__commonJS({"node_modules/jiti/dist/jiti.cjs"(exports,module){(()=>{var e={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(e2){function webpackEmptyAsyncContext(e3){return Promise.resolve().then(function(){var t2=new Error("Cannot find module '"+e3+"'");throw t2.code="MODULE_NOT_FOUND",t2})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",e2.exports=webpackEmptyAsyncContext},fs(e2){"use strict";e2.exports=__require("fs")},"node:fs"(e2){"use strict";e2.exports=__require("node:fs")},"node:module"(e2){"use strict";e2.exports=__require("node:module")},"node:path"(e2){"use strict";e2.exports=__require("node:path")},os(e2){"use strict";e2.exports=__require("os")},path(e2){"use strict";e2.exports=__require("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(e2,t2,i2){"use strict";var n=Object.defineProperty,r=(e3,t3)=>n(e3,"name",{value:t3,configurable:!0}),a=i2("node:path"),c=i2("node:fs"),l=i2("node:module"),y=i2("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),E=i2("fs"),w=i2("os"),C=i2("path");function h(e3){return e3.startsWith("\\\\?\\")?e3:e3.replace(/\\/g,"/")}r(h,"slash");let S=r(e3=>{let t3=c[e3];return(i3,...n2)=>{let a2=`${e3}:${n2.join(":")}`,l2=i3?.get(a2);return l2===void 0&&(l2=Reflect.apply(t3,c,n2),i3?.set(a2,l2)),l2}},"cacheFs"),I=S("existsSync"),N=S("readFileSync"),O=S("statSync"),j=r((e3,t3,i3)=>{for(;;){let n2=a.posix.join(e3,t3);if(I(i3,n2))return n2;let c2=a.dirname(e3);if(c2===e3)return;e3=c2}},"findUp"),F=/^\.{1,2}(\/.*)?$/,B=r(e3=>{let t3=h(e3);return F.test(t3)?t3:`./${t3}`},"normalizeRelativePath");function Ne(e3,t3=!1){let i3=e3.length,n2=0,a2="",c2=0,l2=16,y2=0,E2=0,w2=0,C2=0,S2=0;function _(t4,i4){let a3=0,c3=0;for(;a3<t4;){let t5=e3.charCodeAt(n2);if(t5>=48&&t5<=57)c3=16*c3+t5-48;else if(t5>=65&&t5<=70)c3=16*c3+t5-65+10;else{if(!(t5>=97&&t5<=102))break;c3=16*c3+t5-97+10}n2++,a3++}return a3<t4&&(c3=-1),c3}function b(e4){n2=e4,a2="",c2=0,l2=16,S2=0}function p(){let t4=n2;if(e3.charCodeAt(n2)===48)n2++;else for(n2++;n2<e3.length&&R(e3.charCodeAt(n2));)n2++;if(n2<e3.length&&e3.charCodeAt(n2)===46){if(n2++,!(n2<e3.length&&R(e3.charCodeAt(n2))))return S2=3,e3.substring(t4,n2);for(n2++;n2<e3.length&&R(e3.charCodeAt(n2));)n2++}let i4=n2;if(n2<e3.length&&(e3.charCodeAt(n2)===69||e3.charCodeAt(n2)===101))if(n2++,(n2<e3.length&&e3.charCodeAt(n2)===43||e3.charCodeAt(n2)===45)&&n2++,n2<e3.length&&R(e3.charCodeAt(n2))){for(n2++;n2<e3.length&&R(e3.charCodeAt(n2));)n2++;i4=n2}else S2=3;return e3.substring(t4,i4)}function L(){let t4="",a3=n2;for(;;){if(n2>=i3){t4+=e3.substring(a3,n2),S2=2;break}let c3=e3.charCodeAt(n2);if(c3===34){t4+=e3.substring(a3,n2),n2++;break}if(c3!==92){if(c3>=0&&c3<=31){if(M(c3)){t4+=e3.substring(a3,n2),S2=2;break}S2=6}n2++}else{if(t4+=e3.substring(a3,n2),n2++,n2>=i3){S2=2;break}switch(e3.charCodeAt(n2++)){case 34:t4+='"';break;case 92:t4+="\\";break;case 47:t4+="/";break;case 98:t4+="\b";break;case 102:t4+="\f";break;case 110:t4+=`
|
|
3
|
+
`;break;case 114:t4+="\r";break;case 116:t4+=" ";break;case 117:let e4=_(4);e4>=0?t4+=String.fromCharCode(e4):S2=4;break;default:S2=5}a3=n2}}return t4}function A(){if(a2="",S2=0,c2=n2,E2=y2,C2=w2,n2>=i3)return c2=i3,l2=17;let t4=e3.charCodeAt(n2);if(ee(t4)){do n2++,a2+=String.fromCharCode(t4),t4=e3.charCodeAt(n2);while(ee(t4));return l2=15}if(M(t4))return n2++,a2+=String.fromCharCode(t4),t4===13&&e3.charCodeAt(n2)===10&&(n2++,a2+=`
|
|
4
|
+
`),y2++,w2=n2,l2=14;switch(t4){case 123:return n2++,l2=1;case 125:return n2++,l2=2;case 91:return n2++,l2=3;case 93:return n2++,l2=4;case 58:return n2++,l2=6;case 44:return n2++,l2=5;case 34:return n2++,a2=L(),l2=10;case 47:let E3=n2-1;if(e3.charCodeAt(n2+1)===47){for(n2+=2;n2<i3&&!M(e3.charCodeAt(n2));)n2++;return a2=e3.substring(E3,n2),l2=12}if(e3.charCodeAt(n2+1)===42){n2+=2;let t5=i3-1,c3=!1;for(;n2<t5;){let t6=e3.charCodeAt(n2);if(t6===42&&e3.charCodeAt(n2+1)===47){n2+=2,c3=!0;break}n2++,M(t6)&&(t6===13&&e3.charCodeAt(n2)===10&&n2++,y2++,w2=n2)}return c3||(n2++,S2=1),a2=e3.substring(E3,n2),l2=13}return a2+=String.fromCharCode(t4),n2++,l2=16;case 45:if(a2+=String.fromCharCode(t4),n2++,n2===i3||!R(e3.charCodeAt(n2)))return l2=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a2+=p(),l2=11;default:for(;n2<i3&&D(t4);)n2++,t4=e3.charCodeAt(n2);if(c2!==n2){switch(a2=e3.substring(c2,n2),a2){case"true":return l2=8;case"false":return l2=9;case"null":return l2=7}return l2=16}return a2+=String.fromCharCode(t4),n2++,l2=16}}function D(e4){if(ee(e4)||M(e4))return!1;switch(e4){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function x(){let e4;do e4=A();while(e4>=12&&e4<=15);return e4}return r(_,"scanHexDigits"),r(b,"setPosition"),r(p,"scanNumber"),r(L,"scanString"),r(A,"scanNext"),r(D,"isUnknownContentCharacter"),r(x,"scanNextNonTrivia"),{setPosition:b,getPosition:r(()=>n2,"getPosition"),scan:t3?x:A,getToken:r(()=>l2,"getToken"),getTokenValue:r(()=>a2,"getTokenValue"),getTokenOffset:r(()=>c2,"getTokenOffset"),getTokenLength:r(()=>n2-c2,"getTokenLength"),getTokenStartLine:r(()=>E2,"getTokenStartLine"),getTokenStartCharacter:r(()=>c2-C2,"getTokenStartCharacter"),getTokenError:r(()=>S2,"getTokenError")}}function ee(e3){return e3===32||e3===9}function M(e3){return e3===10||e3===13}function R(e3){return e3>=48&&e3<=57}var $,q;r(Ne,"createScanner"),r(ee,"isWhiteSpace"),r(M,"isLineBreak"),r(R,"isDigit"),(q=$||($={}))[q.lineFeed=10]="lineFeed",q[q.carriageReturn=13]="carriageReturn",q[q.space=32]="space",q[q._0=48]="_0",q[q._1=49]="_1",q[q._2=50]="_2",q[q._3=51]="_3",q[q._4=52]="_4",q[q._5=53]="_5",q[q._6=54]="_6",q[q._7=55]="_7",q[q._8=56]="_8",q[q._9=57]="_9",q[q.a=97]="a",q[q.b=98]="b",q[q.c=99]="c",q[q.d=100]="d",q[q.e=101]="e",q[q.f=102]="f",q[q.g=103]="g",q[q.h=104]="h",q[q.i=105]="i",q[q.j=106]="j",q[q.k=107]="k",q[q.l=108]="l",q[q.m=109]="m",q[q.n=110]="n",q[q.o=111]="o",q[q.p=112]="p",q[q.q=113]="q",q[q.r=114]="r",q[q.s=115]="s",q[q.t=116]="t",q[q.u=117]="u",q[q.v=118]="v",q[q.w=119]="w",q[q.x=120]="x",q[q.y=121]="y",q[q.z=122]="z",q[q.A=65]="A",q[q.B=66]="B",q[q.C=67]="C",q[q.D=68]="D",q[q.E=69]="E",q[q.F=70]="F",q[q.G=71]="G",q[q.H=72]="H",q[q.I=73]="I",q[q.J=74]="J",q[q.K=75]="K",q[q.L=76]="L",q[q.M=77]="M",q[q.N=78]="N",q[q.O=79]="O",q[q.P=80]="P",q[q.Q=81]="Q",q[q.R=82]="R",q[q.S=83]="S",q[q.T=84]="T",q[q.U=85]="U",q[q.V=86]="V",q[q.W=87]="W",q[q.X=88]="X",q[q.Y=89]="Y",q[q.Z=90]="Z",q[q.asterisk=42]="asterisk",q[q.backslash=92]="backslash",q[q.closeBrace=125]="closeBrace",q[q.closeBracket=93]="closeBracket",q[q.colon=58]="colon",q[q.comma=44]="comma",q[q.dot=46]="dot",q[q.doubleQuote=34]="doubleQuote",q[q.minus=45]="minus",q[q.openBrace=123]="openBrace",q[q.openBracket=91]="openBracket",q[q.plus=43]="plus",q[q.slash=47]="slash",q[q.formFeed=12]="formFeed",q[q.tab=9]="tab",new Array(20).fill(0).map((e3,t3)=>" ".repeat(t3));let W=200;var K,H,Y;function Pe(e3,t3=[],i3=K.DEFAULT){let n2=null,a2=[],c2=[];function o(e4){Array.isArray(a2)?a2.push(e4):n2!==null&&(a2[n2]=e4)}return r(o,"onValue"),We(e3,{onObjectBegin:r(()=>{let e4={};o(e4),c2.push(a2),a2=e4,n2=null},"onObjectBegin"),onObjectProperty:r(e4=>{n2=e4},"onObjectProperty"),onObjectEnd:r(()=>{a2=c2.pop()},"onObjectEnd"),onArrayBegin:r(()=>{let e4=[];o(e4),c2.push(a2),a2=e4,n2=null},"onArrayBegin"),onArrayEnd:r(()=>{a2=c2.pop()},"onArrayEnd"),onLiteralValue:o,onError:r((e4,i4,n3)=>{t3.push({error:e4,offset:i4,length:n3})},"onError")},i3),a2[0]}function We(e3,t3,i3=K.DEFAULT){let n2=Ne(e3,!1),a2=[],c2=0;function o(e4){return e4?()=>c2===0&&e4(n2.getTokenOffset(),n2.getTokenLength(),n2.getTokenStartLine(),n2.getTokenStartCharacter()):()=>!0}function f(e4){return e4?t4=>c2===0&&e4(t4,n2.getTokenOffset(),n2.getTokenLength(),n2.getTokenStartLine(),n2.getTokenStartCharacter()):()=>!0}function u(e4){return e4?t4=>c2===0&&e4(t4,n2.getTokenOffset(),n2.getTokenLength(),n2.getTokenStartLine(),n2.getTokenStartCharacter(),()=>a2.slice()):()=>!0}function g(e4){return e4?()=>{c2>0?c2++:e4(n2.getTokenOffset(),n2.getTokenLength(),n2.getTokenStartLine(),n2.getTokenStartCharacter(),()=>a2.slice())===!1&&(c2=1)}:()=>!0}function m(e4){return e4?()=>{c2>0&&c2--,c2===0&&e4(n2.getTokenOffset(),n2.getTokenLength(),n2.getTokenStartLine(),n2.getTokenStartCharacter())}:()=>!0}r(o,"toNoArgVisit"),r(f,"toOneArgVisit"),r(u,"toOneArgVisitWithPath"),r(g,"toBeginVisit"),r(m,"toEndVisit");let l2=g(t3.onObjectBegin),y2=u(t3.onObjectProperty),E2=m(t3.onObjectEnd),w2=g(t3.onArrayBegin),C2=m(t3.onArrayEnd),S2=u(t3.onLiteralValue),I2=f(t3.onSeparator),N2=o(t3.onComment),O2=f(t3.onError),j2=i3&&i3.disallowComments,F2=i3&&i3.allowTrailingComma;function T(){for(;;){let e4=n2.scan();switch(n2.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:j2||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e4){case 12:case 13:j2?k(10):N2();break;case 16:k(1);break;case 15:case 14:break;default:return e4}}}function k(e4,t4=[],i4=[]){if(O2(e4),t4.length+i4.length>0){let e5=n2.getToken();for(;e5!==17;){if(t4.indexOf(e5)!==-1){T();break}if(i4.indexOf(e5)!==-1)break;e5=T()}}}function P(e4){let t4=n2.getTokenValue();return e4?S2(t4):(y2(t4),a2.push(t4)),T(),!0}function J(){switch(n2.getToken()){case 11:let e4=n2.getTokenValue(),t4=Number(e4);isNaN(t4)&&(k(2),t4=0),S2(t4);break;case 7:S2(null);break;case 8:S2(!0);break;case 9:S2(!1);break;default:return!1}return T(),!0}function V(){return n2.getToken()!==10?(k(3,[],[2,5]),!1):(P(!1),n2.getToken()===6?(I2(":"),T(),U()||k(4,[],[2,5])):k(5,[],[2,5]),a2.pop(),!0)}function z(){l2(),T();let e4=!1;for(;n2.getToken()!==2&&n2.getToken()!==17;){if(n2.getToken()===5){if(e4||k(4,[],[]),I2(","),T(),n2.getToken()===2&&F2)break}else e4&&k(6,[],[]);V()||k(4,[],[2,5]),e4=!0}return E2(),n2.getToken()!==2?k(7,[2],[]):T(),!0}function G(){w2(),T();let e4=!0,t4=!1;for(;n2.getToken()!==4&&n2.getToken()!==17;){if(n2.getToken()===5){if(t4||k(4,[],[]),I2(","),T(),n2.getToken()===4&&F2)break}else t4&&k(6,[],[]);e4?(a2.push(0),e4=!1):a2[a2.length-1]++,U()||k(4,[],[4,5]),t4=!0}return C2(),e4||a2.pop(),n2.getToken()!==4?k(8,[4],[]):T(),!0}function U(){switch(n2.getToken()){case 3:return G();case 1:return z();case 10:return P(!0);default:return J()}}return r(T,"scanNext"),r(k,"handleError"),r(P,"parseString"),r(J,"parseLiteral"),r(V,"parseProperty"),r(z,"parseObject"),r(G,"parseArray"),r(U,"parseValue"),T(),n2.getToken()===17?!!i3.allowEmptyContent||(k(4,[],[]),!1):U()?(n2.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}new Array(W).fill(0).map((e3,t3)=>`
|
|
5
|
+
`+" ".repeat(t3)),new Array(W).fill(0).map((e3,t3)=>"\r"+" ".repeat(t3)),new Array(W).fill(0).map((e3,t3)=>`\r
|
|
6
|
+
`+" ".repeat(t3)),new Array(W).fill(0).map((e3,t3)=>`
|
|
7
|
+
`+" ".repeat(t3)),new Array(W).fill(0).map((e3,t3)=>"\r"+" ".repeat(t3)),new Array(W).fill(0).map((e3,t3)=>`\r
|
|
8
|
+
`+" ".repeat(t3)),(function(e3){e3.DEFAULT={allowTrailingComma:!1}})(K||(K={})),r(Pe,"parse$1"),r(We,"visit"),(function(e3){e3[e3.None=0]="None",e3[e3.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e3[e3.UnexpectedEndOfString=2]="UnexpectedEndOfString",e3[e3.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e3[e3.InvalidUnicode=4]="InvalidUnicode",e3[e3.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e3[e3.InvalidCharacter=6]="InvalidCharacter"})(H||(H={})),(function(e3){e3[e3.OpenBraceToken=1]="OpenBraceToken",e3[e3.CloseBraceToken=2]="CloseBraceToken",e3[e3.OpenBracketToken=3]="OpenBracketToken",e3[e3.CloseBracketToken=4]="CloseBracketToken",e3[e3.CommaToken=5]="CommaToken",e3[e3.ColonToken=6]="ColonToken",e3[e3.NullKeyword=7]="NullKeyword",e3[e3.TrueKeyword=8]="TrueKeyword",e3[e3.FalseKeyword=9]="FalseKeyword",e3[e3.StringLiteral=10]="StringLiteral",e3[e3.NumericLiteral=11]="NumericLiteral",e3[e3.LineCommentTrivia=12]="LineCommentTrivia",e3[e3.BlockCommentTrivia=13]="BlockCommentTrivia",e3[e3.LineBreakTrivia=14]="LineBreakTrivia",e3[e3.Trivia=15]="Trivia",e3[e3.Unknown=16]="Unknown",e3[e3.EOF=17]="EOF"})(Y||(Y={}));let Q=Pe;var Z;(function(e3){e3[e3.InvalidSymbol=1]="InvalidSymbol",e3[e3.InvalidNumberFormat=2]="InvalidNumberFormat",e3[e3.PropertyNameExpected=3]="PropertyNameExpected",e3[e3.ValueExpected=4]="ValueExpected",e3[e3.ColonExpected=5]="ColonExpected",e3[e3.CommaExpected=6]="CommaExpected",e3[e3.CloseBraceExpected=7]="CloseBraceExpected",e3[e3.CloseBracketExpected=8]="CloseBracketExpected",e3[e3.EndOfFileExpected=9]="EndOfFileExpected",e3[e3.InvalidCommentToken=10]="InvalidCommentToken",e3[e3.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e3[e3.UnexpectedEndOfString=12]="UnexpectedEndOfString",e3[e3.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e3[e3.InvalidUnicode=14]="InvalidUnicode",e3[e3.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e3[e3.InvalidCharacter=16]="InvalidCharacter"})(Z||(Z={}));let X=r((e3,t3)=>Q(N(t3,e3,"utf8")),"readJsonc"),te=Symbol("implicitBaseUrl"),ie="${configDir}",se=r(()=>{let{findPnpApi:e3}=l;return e3&&e3(process.cwd())},"getPnpApi"),re=r((e3,t3,i3,n2)=>{let c2=`resolveFromPackageJsonPath:${e3}:${t3}:${i3}`;if(n2!=null&&n2.has(c2))return n2.get(c2);let l2=X(e3,n2);if(!l2)return;let E2=t3||"tsconfig.json";if(!i3&&l2.exports)try{let[e4]=y.resolveExports(l2.exports,t3,["require","types"]);E2=e4}catch{return!1}else!t3&&l2.tsconfig&&(E2=l2.tsconfig);return E2=a.join(e3,"..",E2),n2?.set(c2,E2),E2},"resolveFromPackageJsonPath"),ne="package.json",ae="tsconfig.json",oe=r((e3,t3,i3)=>{let n2=e3;if(e3===".."&&(n2=a.join(n2,ae)),e3[0]==="."&&(n2=a.resolve(t3,n2)),a.isAbsolute(n2)){if(I(i3,n2)){if(O(i3,n2).isFile())return n2}else if(!n2.endsWith(".json")){let e4=`${n2}.json`;if(I(i3,e4))return e4}return}let[c2,...l2]=e3.split("/"),y2=c2[0]==="@"?`${c2}/${l2.shift()}`:c2,E2=l2.join("/"),w2=se();if(w2){let{resolveRequest:n3}=w2;try{if(y2===e3){let e4=n3(a.join(y2,ne),t3);if(e4){let t4=re(e4,E2,!1,i3);if(t4&&I(i3,t4))return t4}}else{let i4;try{i4=n3(e3,t3,{extensions:[".json"]})}catch{i4=n3(a.join(e3,ae),t3)}if(i4)return i4}}catch{}}let C2=j(a.resolve(t3),a.join("node_modules",y2),i3);if(!C2||!O(i3,C2).isDirectory())return;let S2=a.join(C2,ne);if(I(i3,S2)){let e4=re(S2,E2,!1,i3);if(e4===!1)return;if(e4&&I(i3,e4)&&O(i3,e4).isFile())return e4}let N2=a.join(C2,E2),F2=N2.endsWith(".json");if(!F2){let e4=`${N2}.json`;if(I(i3,e4))return e4}if(I(i3,N2)){if(O(i3,N2).isDirectory()){let e4=a.join(N2,ne);if(I(i3,e4)){let t5=re(e4,"",!0,i3);if(t5&&I(i3,t5))return t5}let t4=a.join(N2,ae);if(I(i3,t4))return t4}else if(F2)return N2}},"resolveExtendsPath"),ce=r((e3,t3)=>B(a.relative(e3,t3)),"pathRelative"),he=["files","include","exclude"],le=r((e3,t3,i3)=>{let n2=a.join(t3,i3);return h(a.relative(e3,n2))||"./"},"resolveAndRelativize"),pe=r((e3,t3,i3)=>{let n2=a.relative(e3,t3);return n2?h(`${n2}/${i3.startsWith("./")?i3.slice(2):i3}`):i3},"prefixPattern"),ue=r((e3,t3,i3,n2)=>{let c2=oe(e3,t3,n2);if(!c2)throw new Error(`File '${e3}' not found.`);if(i3.has(c2))throw new Error(`Circularity detected while resolving configuration: ${c2}`);i3.add(c2);let l2=a.dirname(c2),y2=fe(c2,n2,i3);delete y2.references;let{compilerOptions:E2}=y2;if(E2){let{baseUrl:e4}=E2;e4&&!e4.startsWith(ie)&&(E2.baseUrl=le(t3,l2,e4));let{outDir:i4}=E2;i4&&!i4.startsWith(ie)&&(E2.outDir=le(t3,l2,i4));let{declarationDir:n3}=E2;n3&&!n3.startsWith(ie)&&(E2.declarationDir=le(t3,l2,n3));let{rootDir:a2}=E2;a2&&!a2.startsWith(ie)&&(E2.rootDir=le(t3,l2,a2));let{rootDirs:c3}=E2;c3&&(E2.rootDirs=c3.map(e5=>e5.startsWith(ie)?e5:le(t3,l2,e5)));let{typeRoots:y3}=E2;y3&&(E2.typeRoots=y3.map(e5=>e5.startsWith(ie)?e5:le(t3,l2,e5)))}for(let e4 of he){let i4=y2[e4];i4&&(y2[e4]=i4.map(e5=>e5.startsWith(ie)?e5:pe(t3,l2,e5)))}return y2},"resolveExtends"),de=["outDir","declarationDir"],fe=r((e3,t3,i3=new Set)=>{let n2;try{n2=X(e3,t3)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e3}`)}if(typeof n2!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e3}`);let c2=a.dirname(e3);if(n2.compilerOptions){let{compilerOptions:e4}=n2;e4.paths&&!e4.baseUrl&&(e4[te]=c2)}if(n2.extends){let e4=Array.isArray(n2.extends)?n2.extends:[n2.extends];delete n2.extends;for(let a2 of e4.reverse()){let e5=ue(a2,c2,new Set(i3),t3),l2={...e5,...n2,compilerOptions:{...e5.compilerOptions,...n2.compilerOptions}};e5.watchOptions&&(l2.watchOptions={...e5.watchOptions,...n2.watchOptions}),n2=l2}}if(n2.compilerOptions){let{compilerOptions:e4}=n2,t4=["baseUrl","rootDir"];for(let i4 of t4){let t5=e4[i4];if(t5&&!t5.startsWith(ie)){let n3=a.resolve(c2,t5),l2=ce(c2,n3);e4[i4]=l2}}for(let t5 of de){let i4=e4[t5];i4&&(Array.isArray(n2.exclude)||(n2.exclude=de.map(t6=>e4[t6]).filter(Boolean)),i4.startsWith(ie)||(i4=B(i4)),e4[t5]=i4)}}else n2.compilerOptions={};if(n2.include&&(n2.include=n2.include.map(h)),n2.files&&(n2.files=n2.files.map(e4=>e4.startsWith(ie)?e4:B(e4))),n2.watchOptions){let{watchOptions:e4}=n2;e4.excludeDirectories&&(e4.excludeDirectories=e4.excludeDirectories.map(e5=>h(a.resolve(c2,e5)))),e4.excludeFiles&&(e4.excludeFiles=e4.excludeFiles.map(e5=>h(a.resolve(c2,e5)))),e4.watchFile&&(e4.watchFile=e4.watchFile.toLowerCase()),e4.watchDirectory&&(e4.watchDirectory=e4.watchDirectory.toLowerCase()),e4.fallbackPolling&&(e4.fallbackPolling=e4.fallbackPolling.toLowerCase())}return n2},"_parseTsconfig"),me=r((e3,t3)=>{if(e3.startsWith(ie))return h(a.join(t3,e3.slice(12)))},"interpolateConfigDir"),ge=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],xe=r(e3=>{if(e3.strict){let t3=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let i3 of t3)e3[i3]===void 0&&(e3[i3]=!0)}if(e3.composite&&(e3.declaration!=null||(e3.declaration=!0),e3.incremental!=null||(e3.incremental=!0)),e3.target){let t3=e3.target.toLowerCase();t3==="es2015"&&(t3="es6"),e3.target=t3,t3==="esnext"&&(e3.module!=null||(e3.module="es6"),e3.useDefineForClassFields!=null||(e3.useDefineForClassFields=!0)),(t3==="es6"||t3==="es2016"||t3==="es2017"||t3==="es2018"||t3==="es2019"||t3==="es2020"||t3==="es2021"||t3==="es2022"||t3==="es2023"||t3==="es2024")&&(e3.module!=null||(e3.module="es6")),(t3==="es2022"||t3==="es2023"||t3==="es2024")&&(e3.useDefineForClassFields!=null||(e3.useDefineForClassFields=!0))}if(e3.module){let t3=e3.module.toLowerCase();if(t3==="es2015"&&(t3="es6"),e3.module=t3,(t3==="es6"||t3==="es2020"||t3==="es2022"||t3==="esnext"||t3==="none"||t3==="system"||t3==="umd"||t3==="amd")&&(e3.moduleResolution!=null||(e3.moduleResolution="classic")),t3==="system"&&(e3.allowSyntheticDefaultImports!=null||(e3.allowSyntheticDefaultImports=!0)),(t3==="node16"||t3==="node18"||t3==="node20"||t3==="nodenext"||t3==="preserve")&&(e3.esModuleInterop!=null||(e3.esModuleInterop=!0),e3.allowSyntheticDefaultImports!=null||(e3.allowSyntheticDefaultImports=!0)),(t3==="node16"||t3==="node18"||t3==="node20"||t3==="nodenext")&&(e3.moduleDetection!=null||(e3.moduleDetection="force")),t3==="node16"&&(e3.target!=null||(e3.target="es2022"),e3.moduleResolution!=null||(e3.moduleResolution="node16")),t3==="node18"&&(e3.target!=null||(e3.target="es2022"),e3.moduleResolution!=null||(e3.moduleResolution="node16")),t3==="node20"&&(e3.target!=null||(e3.target="es2023"),e3.moduleResolution!=null||(e3.moduleResolution="node16"),e3.resolveJsonModule!=null||(e3.resolveJsonModule=!0)),t3==="nodenext"&&(e3.target!=null||(e3.target="esnext"),e3.moduleResolution!=null||(e3.moduleResolution="nodenext"),e3.resolveJsonModule!=null||(e3.resolveJsonModule=!0)),t3==="node16"||t3==="node18"||t3==="node20"||t3==="nodenext"){let t4=e3.target;(t4==="es3"||t4==="es2022"||t4==="es2023"||t4==="es2024"||t4==="esnext")&&(e3.useDefineForClassFields!=null||(e3.useDefineForClassFields=!0))}t3==="preserve"&&(e3.moduleResolution!=null||(e3.moduleResolution="bundler"))}if(e3.moduleResolution){let t3=e3.moduleResolution.toLowerCase();t3==="node"&&(t3="node10"),e3.moduleResolution=t3,(t3==="node16"||t3==="nodenext"||t3==="bundler")&&(e3.resolvePackageJsonExports!=null||(e3.resolvePackageJsonExports=!0),e3.resolvePackageJsonImports!=null||(e3.resolvePackageJsonImports=!0)),t3==="bundler"&&(e3.allowSyntheticDefaultImports!=null||(e3.allowSyntheticDefaultImports=!0),e3.resolveJsonModule!=null||(e3.resolveJsonModule=!0))}e3.jsx&&(e3.jsx=e3.jsx.toLowerCase()),e3.moduleDetection&&(e3.moduleDetection=e3.moduleDetection.toLowerCase()),e3.importsNotUsedAsValues&&(e3.importsNotUsedAsValues=e3.importsNotUsedAsValues.toLowerCase()),e3.newLine&&(e3.newLine=e3.newLine.toLowerCase()),e3.esModuleInterop&&(e3.allowSyntheticDefaultImports!=null||(e3.allowSyntheticDefaultImports=!0)),e3.verbatimModuleSyntax&&(e3.isolatedModules!=null||(e3.isolatedModules=!0),e3.preserveConstEnums!=null||(e3.preserveConstEnums=!0)),e3.isolatedModules&&(e3.preserveConstEnums!=null||(e3.preserveConstEnums=!0)),e3.rewriteRelativeImportExtensions&&(e3.allowImportingTsExtensions!=null||(e3.allowImportingTsExtensions=!0)),e3.lib&&(e3.lib=e3.lib.map(e4=>e4.toLowerCase())),e3.checkJs&&(e3.allowJs!=null||(e3.allowJs=!0))},"normalizeCompilerOptions"),ve=r((e3,t3=new Map)=>{let i3=a.resolve(e3),n2=fe(i3,t3),c2=a.dirname(i3),{compilerOptions:l2}=n2;if(l2){for(let e5 of ge){let t4=l2[e5];if(t4){let i4=me(t4,c2);l2[e5]=i4?ce(c2,i4):t4}}for(let e5 of["rootDirs","typeRoots"]){let t4=l2[e5];t4&&(l2[e5]=t4.map(e6=>{let t5=me(e6,c2);return t5?ce(c2,t5):B(e6)}))}let{paths:e4}=l2;if(e4)for(let t4 of Object.keys(e4))e4[t4]=e4[t4].map(e5=>{var t5;return(t5=me(e5,c2))!=null?t5:e5});xe(l2)}for(let e4 of he){let t4=n2[e4];t4&&(n2[e4]=t4.map(e5=>{var t5;return(t5=me(e5,c2))!=null?t5:e5}))}return n2},"parseTsconfig");var ye=Object.defineProperty,_e=r((e3,t3)=>ye(e3,"name",{value:t3,configurable:!0}),"s");let Ee=_e(e3=>{let t3="";for(let i3=0;i3<e3.length;i3+=1){let n2=e3[i3],a2=n2.toUpperCase();t3+=n2===a2?n2.toLowerCase():a2}return t3},"invertCase"),be=new Map,ke=_e((e3,t3)=>{let i3=C.join(e3,`.is-fs-case-sensitive-test-${process.pid}`);try{return t3.writeFileSync(i3,""),!t3.existsSync(Ee(i3))}finally{try{t3.unlinkSync(i3)}catch{}}},"checkDirectoryCaseWithWrite"),we=_e((e3,t3,i3)=>{try{return ke(e3,i3)}catch(e4){if(t3===void 0)return ke(w.tmpdir(),i3);throw e4}},"checkDirectoryCaseWithFallback"),Ce=_e((e3,t3=E,i3=!0)=>{let n2=e3??process.cwd();if(i3&&be.has(n2))return be.get(n2);let a2,c2=Ee(n2);return a2=c2!==n2&&t3.existsSync(n2)?!t3.existsSync(c2):we(n2,e3,t3),i3&&be.set(n2,a2),a2},"isFsCaseSensitive"),{join:Se}=a.posix,Ie={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Te=r(e3=>{let t3=[...Ie.ts],i3=[...Ie.cts],n2=[...Ie.mts];return e3!=null&&e3.allowJs&&(t3.push(".js",".jsx"),i3.push(".cjs"),n2.push(".mjs")),[...t3,...i3,...n2]},"getSupportedExtensions"),Re=r(e3=>{let t3=[];if(!e3)return t3;let{outDir:i3,declarationDir:n2}=e3;return i3&&t3.push(i3),n2&&t3.push(n2),t3},"getDefaultExcludeSpec"),Ae=r(e3=>e3.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Le=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Oe=/(?:^|\/)[^.*?]+$/,De="**/*",Ve="[^/]",Ue="[^./]",Me=process.platform==="win32",je=r(({config:e3,path:t3},i3=Ce())=>{if("extends"in e3)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!a.isAbsolute(t3))throw new Error("The tsconfig path must be absolute");Me&&(t3=h(t3));let n2=a.dirname(t3),{files:c2,include:l2,exclude:y2,compilerOptions:E2}=e3,w2=r(e4=>a.isAbsolute(e4)?e4:Se(n2,e4),"resolvePattern"),C2=c2?.map(w2),S2=Te(E2),I2=i3?"":"i",N2=(y2||Re(E2)).map(e4=>{let t4=w2(e4),i4=Ae(t4).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${Ve}*`).replaceAll(String.raw`\?`,Ve);return new RegExp(`^${i4}($|/)`,I2)}),O2=c2||l2?l2:[De],j2=O2?O2.map(e4=>{let t4=w2(e4);Oe.test(t4)&&(t4=Se(t4,De));let i4=Ae(t4).replaceAll(String.raw`/\*\*`,`(/${Le}${Ue}${Ve}*)*?`).replaceAll(/(\/)?\\\*/g,(e5,t5)=>{let i5=`(${Ue}|(\\.(?!min\\.js$))?)*`;return t5?`/${Le}${Ue}${i5}`:i5}).replaceAll(/(\/)?\\\?/g,(e5,t5)=>t5?`/${Le}${Ve}`:Ve);return new RegExp(`^${i4}$`,I2)}):void 0;return t4=>{if(!a.isAbsolute(t4))throw new Error("filePath must be absolute");return Me&&(t4=h(t4)),C2!=null&&C2.includes(t4)||S2.some(e4=>t4.endsWith(e4))&&!N2.some(e4=>e4.test(t4))&&j2&&j2.some(e4=>e4.test(t4))?e3:void 0}},"createFilesMatcher"),Fe=r((e3,t3,i3)=>{let n2=a.resolve(e3),c2=h(e3);for(;;){let e4=j(c2,t3,i3);if(!e4)return;let l2=a.resolve(e4),y2=ve(l2,i3),E2={path:h(l2),config:y2};if(je(E2)(n2))return E2;let w2=a.dirname(e4),C2=a.dirname(w2);if(C2===w2)return;c2=C2}},"findConfigApplicable"),Be=r((e3=process.cwd(),t3="tsconfig.json",i3=new Map,n2=!1)=>{var a2;return n2?(a2=Fe(e3,t3,i3))==null?void 0:a2.path:j(h(e3),t3,i3)},"findTsconfig"),$e=r((e3=process.cwd(),t3="tsconfig.json",i3=new Map,n2=!1)=>{var a2;if(!n2){let n3=Be(e3,t3,i3);return n3?{path:n3,config:ve(n3,i3)}:null}return(a2=Fe(e3,t3,i3))!=null?a2:null},"getTsconfig"),qe=/\*/g,Ge=r((e3,t3)=>{let i3=e3.match(qe);if(i3&&i3.length>1)throw new Error(t3)},"assertStarCount"),Ke=r(e3=>{if(e3.includes("*")){let[t3,i3]=e3.split("*");return{prefix:t3,suffix:i3}}return e3},"parsePattern"),He=r(({prefix:e3,suffix:t3},i3)=>i3.startsWith(e3)&&i3.endsWith(t3),"isPatternMatch"),ze=r((e3,t3,i3)=>Object.entries(e3).map(([e4,n2])=>(Ge(e4,`Pattern '${e4}' can have at most one '*' character.`),{pattern:Ke(e4),substitutions:n2.map(n3=>{if(Ge(n3,`Substitution '${n3}' in pattern '${e4}' can have at most one '*' character.`),!t3&&!F.test(n3)&&!a.isAbsolute(n3))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return a.resolve(i3,n3)})})),"parsePaths"),Je=r(e3=>{let{compilerOptions:t3}=e3.config;if(!t3)return null;let{baseUrl:i3,paths:n2}=t3;if(!i3&&!n2)return null;let c2=te in t3&&t3[te],l2=a.resolve(a.dirname(e3.path),i3||c2||"."),y2=n2?ze(n2,i3,l2):[];return e4=>{if(F.test(e4))return[];let t4=[];for(let i4 of y2){if(i4.pattern===e4)return i4.substitutions.map(h);typeof i4.pattern!="string"&&t4.push(i4)}let n3,c3=-1;for(let i4 of t4)He(i4.pattern,e4)&&i4.pattern.prefix.length>c3&&(c3=i4.pattern.prefix.length,n3=i4);if(!n3)return i3?[h(a.join(l2,e4))]:[];let E2=e4.slice(n3.pattern.prefix.length,e4.length-n3.pattern.suffix.length);return n3.substitutions.map(e5=>h(e5.replace("*",E2)))}},"createPathsMatcher");t2.createPathsMatcher=Je,t2.getTsconfig=$e},"./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"(e2,t2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0});let d=e3=>e3!==null&&typeof e3=="object",s=(e3,t3)=>Object.assign(new Error(`[${e3}]: ${t3}`),{code:e3}),i2="ERR_INVALID_PACKAGE_CONFIG",n="ERR_INVALID_PACKAGE_TARGET",a=/^\d+$/,c=/^(\.{1,2}|node_modules)$/i,l=/\/|\\/;var y,E=((y=E||{}).Export="exports",y.Import="imports",y);let f=(e3,t3,y2,E2,w2)=>{if(t3==null)return[];if(typeof t3=="string"){let[i3,...a2]=t3.split(l);if(i3===".."||a2.some(e4=>c.test(e4)))throw s(n,`Invalid "${e3}" target "${t3}" defined in the package config`);return[w2?t3.replace(/\*/g,w2):t3]}if(Array.isArray(t3))return t3.flatMap(t4=>f(e3,t4,y2,E2,w2));if(d(t3)){for(let n2 of Object.keys(t3)){if(a.test(n2))throw s(i2,"Cannot contain numeric property keys");if(n2==="default"||E2.includes(n2))return f(e3,t3[n2],y2,E2,w2)}return[]}throw s(n,`Invalid "${e3}" target "${t3}"`)},w="*",v=(e3,t3)=>{let i3=e3.indexOf(w),n2=t3.indexOf(w);return i3===n2?t3.length>e3.length:n2>i3};function A(e3,t3){if(!t3.includes(w)&&e3.hasOwnProperty(t3))return[t3];let i3,n2;for(let a2 of Object.keys(e3))if(a2.includes(w)){let[e4,c2,l2]=a2.split(w);if(l2===void 0&&t3.startsWith(e4)&&t3.endsWith(c2)){let l3=t3.slice(e4.length,-c2.length||void 0);l3&&(!i3||v(i3,a2))&&(i3=a2,n2=l3)}}return[i3,n2]}let C=/^\w+:/;t2.resolveExports=(e3,t3,a2)=>{if(!e3)throw new Error('"exports" is required');t3=t3===""?".":`./${t3}`,(typeof e3=="string"||Array.isArray(e3)||d(e3)&&(e4=>Object.keys(e4).reduce((e5,t4)=>{let n2=t4===""||t4[0]!==".";if(e5===void 0||e5===n2)return n2;throw s(i2,'"exports" cannot contain some keys starting with "." and some not')},void 0))(e3))&&(e3={".":e3});let[c2,l2]=A(e3,t3),y2=f(E.Export,e3[c2],t3,a2,l2);if(y2.length===0)throw s("ERR_PACKAGE_PATH_NOT_EXPORTED",t3==="."?'No "exports" main defined':`Package subpath '${t3}' is not defined by "exports"`);for(let e4 of y2)if(!e4.startsWith("./")&&!C.test(e4))throw s(n,`Invalid "exports" target "${e4}" defined in the package config`);return y2},t2.resolveImports=(e3,t3,i3)=>{if(!e3)throw new Error('"imports" is required');let[n2,a2]=A(e3,t3),c2=f(E.Import,e3[n2],t3,i3,a2);if(c2.length===0)throw s("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${t3}" is not defined in package`);return c2}}},t={};function __webpack_require__(i2){var n=t[i2];if(n!==void 0)return n.exports;var a=t[i2]={exports:{}};return e[i2](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e2=>{var t2=e2&&e2.__esModule?()=>e2.default:()=>e2;return __webpack_require__.d(t2,{a:t2}),t2},__webpack_require__.d=(e2,t2)=>{for(var i2 in t2)__webpack_require__.o(t2,i2)&&!__webpack_require__.o(e2,i2)&&Object.defineProperty(e2,i2,{enumerable:!0,get:t2[i2]})},__webpack_require__.o=(e2,t2)=>Object.prototype.hasOwnProperty.call(e2,t2);var i={};(()=>{"use strict";__webpack_require__.d(i,{default:()=>createJiti2});let e2=__require("node:os");var t2=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",c={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",y={5:l,"5module":l+" export import",6:l+" const class extends export import super"},E=/^in(stanceof)?$/,w=new RegExp("["+a+"]"),C=new RegExp("["+a+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");function isInAstralSet(e3,t3){for(var i2=65536,n2=0;n2<t3.length;n2+=2){if((i2+=t3[n2])>e3)return!1;if((i2+=t3[n2+1])>=e3)return!0}return!1}function isIdentifierStart(e3,t3){return e3<65?e3===36:e3<91||(e3<97?e3===95:e3<123||(e3<=65535?e3>=170&&w.test(String.fromCharCode(e3)):t3!==!1&&isInAstralSet(e3,n)))}function isIdentifierChar(e3,i2){return e3<48?e3===36:e3<58||!(e3<65)&&(e3<91||(e3<97?e3===95:e3<123||(e3<=65535?e3>=170&&C.test(String.fromCharCode(e3)):i2!==!1&&(isInAstralSet(e3,n)||isInAstralSet(e3,t2)))))}var acorn_TokenType=function(e3,t3){t3===void 0&&(t3={}),this.label=e3,this.keyword=t3.keyword,this.beforeExpr=!!t3.beforeExpr,this.startsExpr=!!t3.startsExpr,this.isLoop=!!t3.isLoop,this.isAssign=!!t3.isAssign,this.prefix=!!t3.prefix,this.postfix=!!t3.postfix,this.binop=t3.binop||null,this.updateContext=null};function binop(e3,t3){return new acorn_TokenType(e3,{beforeExpr:!0,binop:t3})}var S={beforeExpr:!0},I={startsExpr:!0},N={};function kw(e3,t3){return t3===void 0&&(t3={}),t3.keyword=e3,N[e3]=new acorn_TokenType(e3,t3)}var O={num:new acorn_TokenType("num",I),regexp:new acorn_TokenType("regexp",I),string:new acorn_TokenType("string",I),name:new acorn_TokenType("name",I),privateId:new acorn_TokenType("privateId",I),eof:new acorn_TokenType("eof"),bracketL:new acorn_TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new acorn_TokenType("]"),braceL:new acorn_TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new acorn_TokenType("}"),parenL:new acorn_TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new acorn_TokenType(")"),comma:new acorn_TokenType(",",S),semi:new acorn_TokenType(";",S),colon:new acorn_TokenType(":",S),dot:new acorn_TokenType("."),question:new acorn_TokenType("?",S),questionDot:new acorn_TokenType("?."),arrow:new acorn_TokenType("=>",S),template:new acorn_TokenType("template"),invalidTemplate:new acorn_TokenType("invalidTemplate"),ellipsis:new acorn_TokenType("...",S),backQuote:new acorn_TokenType("`",I),dollarBraceL:new acorn_TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new acorn_TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new acorn_TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new acorn_TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new acorn_TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new acorn_TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new acorn_TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",S),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",S),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",S),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",I),_if:kw("if"),_return:kw("return",S),_switch:kw("switch"),_throw:kw("throw",S),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",I),_super:kw("super",I),_class:kw("class",I),_extends:kw("extends",S),_export:kw("export"),_import:kw("import",I),_null:kw("null",I),_true:kw("true",I),_false:kw("false",I),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,F=new RegExp(j.source,"g");function isNewLine(e3){return e3===10||e3===13||e3===8232||e3===8233}function nextLineBreak(e3,t3,i2){i2===void 0&&(i2=e3.length);for(var n2=t3;n2<i2;n2++){var a2=e3.charCodeAt(n2);if(isNewLine(a2))return n2<i2-1&&a2===13&&e3.charCodeAt(n2+1)===10?n2+2:n2+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,$=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,q=Object.prototype,W=q.hasOwnProperty,K=q.toString,H=Object.hasOwn||function(e3,t3){return W.call(e3,t3)},Y=Array.isArray||function(e3){return K.call(e3)==="[object Array]"},Q=Object.create(null);function wordsRegexp(e3){return Q[e3]||(Q[e3]=new RegExp("^(?:"+e3.replace(/ /g,"|")+")$"))}function codePointToString(e3){return e3<=65535?String.fromCharCode(e3):(e3-=65536,String.fromCharCode(55296+(e3>>10),56320+(1023&e3)))}var Z=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,acorn_Position=function(e3,t3){this.line=e3,this.column=t3};acorn_Position.prototype.offset=function(e3){return new acorn_Position(this.line,this.column+e3)};var acorn_SourceLocation=function(e3,t3,i2){this.start=t3,this.end=i2,e3.sourceFile!==null&&(this.source=e3.sourceFile)};function getLineInfo(e3,t3){for(var i2=1,n2=0;;){var a2=nextLineBreak(e3,n2,t3);if(a2<0)return new acorn_Position(i2,t3-n2);++i2,n2=a2}}var X={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},te=!1;function getOptions(e3){var t3={};for(var i2 in X)t3[i2]=e3&&H(e3,i2)?e3[i2]:X[i2];if(t3.ecmaVersion==="latest"?t3.ecmaVersion=1e8:t3.ecmaVersion==null?(!te&&typeof console=="object"&&console.warn&&(te=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
9
|
+
Defaulting to 2020, but this will stop working in the future.`)),t3.ecmaVersion=11):t3.ecmaVersion>=2015&&(t3.ecmaVersion-=2009),t3.allowReserved==null&&(t3.allowReserved=t3.ecmaVersion<5),e3&&e3.allowHashBang!=null||(t3.allowHashBang=t3.ecmaVersion>=14),Y(t3.onToken)){var n2=t3.onToken;t3.onToken=function(e4){return n2.push(e4)}}if(Y(t3.onComment)&&(t3.onComment=(function(e4,t4){return function(i3,n3,a2,c2,l2,y2){var E2={type:i3?"Block":"Line",value:n3,start:a2,end:c2};e4.locations&&(E2.loc=new acorn_SourceLocation(this,l2,y2)),e4.ranges&&(E2.range=[a2,c2]),t4.push(E2)}})(t3,t3.onComment)),t3.sourceType==="commonjs"&&t3.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t3}var ie=256,se=259;function functionFlags(e3,t3){return 2|(e3?4:0)|(t3?8:0)}var acorn_Parser=function(e3,t3,i2){this.options=e3=getOptions(e3),this.sourceFile=e3.sourceFile,this.keywords=wordsRegexp(y[e3.ecmaVersion>=6?6:e3.sourceType==="module"?"5module":5]);var n2="";e3.allowReserved!==!0&&(n2=c[e3.ecmaVersion>=6?6:e3.ecmaVersion===5?5:3],e3.sourceType==="module"&&(n2+=" await")),this.reservedWords=wordsRegexp(n2);var a2=(n2?n2+" ":"")+c.strict;this.reservedWordsStrict=wordsRegexp(a2),this.reservedWordsStrictBind=wordsRegexp(a2+" "+c.strictBind),this.input=String(t3),this.containsEsc=!1,i2?(this.pos=i2,this.lineStart=this.input.lastIndexOf(`
|
|
10
|
+
`,i2-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e3.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e3.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?2:1),this.regexpState=null,this.privateNameStack=[]},re={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};acorn_Parser.prototype.parse=function(){var e3=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e3)},re.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},re.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},re.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},re.canAwait.get=function(){for(var e3=this.scopeStack.length-1;e3>=0;e3--){var t3=this.scopeStack[e3].flags;if(768&t3)return!1;if(2&t3)return(4&t3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},re.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},re.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},re.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},re.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},re.allowNewDotTarget.get=function(){for(var e3=this.scopeStack.length-1;e3>=0;e3--){var t3=this.scopeStack[e3].flags;if(768&t3||2&t3&&!(16&t3))return!0}return!1},re.allowUsing.get=function(){var e3=this.currentScope().flags;return!(1024&e3)&&!(!this.inModule&&1&e3)},re.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ie)>0},acorn_Parser.extend=function(){for(var e3=[],t3=arguments.length;t3--;)e3[t3]=arguments[t3];for(var i2=this,n2=0;n2<e3.length;n2++)i2=e3[n2](i2);return i2},acorn_Parser.parse=function(e3,t3){return new this(t3,e3).parse()},acorn_Parser.parseExpressionAt=function(e3,t3,i2){var n2=new this(i2,e3,t3);return n2.nextToken(),n2.parseExpression()},acorn_Parser.tokenizer=function(e3,t3){return new this(t3,e3)},Object.defineProperties(acorn_Parser.prototype,re);var ne=acorn_Parser.prototype,ae=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ne.strictDirective=function(e3){if(this.options.ecmaVersion<5)return!1;for(;;){$.lastIndex=e3,e3+=$.exec(this.input)[0].length;var t3=ae.exec(this.input.slice(e3));if(!t3)return!1;if((t3[1]||t3[2])==="use strict"){$.lastIndex=e3+t3[0].length;var i2=$.exec(this.input),n2=i2.index+i2[0].length,a2=this.input.charAt(n2);return a2===";"||a2==="}"||j.test(i2[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(a2)||a2==="!"&&this.input.charAt(n2+1)==="=")}e3+=t3[0].length,$.lastIndex=e3,e3+=$.exec(this.input)[0].length,this.input[e3]===";"&&e3++}},ne.eat=function(e3){return this.type===e3&&(this.next(),!0)},ne.isContextual=function(e3){return this.type===O.name&&this.value===e3&&!this.containsEsc},ne.eatContextual=function(e3){return!!this.isContextual(e3)&&(this.next(),!0)},ne.expectContextual=function(e3){this.eatContextual(e3)||this.unexpected()},ne.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},ne.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ne.semicolon=function(){this.eat(O.semi)||this.insertSemicolon()||this.unexpected()},ne.afterTrailingComma=function(e3,t3){if(this.type===e3)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t3||this.next(),!0},ne.expect=function(e3){this.eat(e3)||this.unexpected()},ne.unexpected=function(e3){this.raise(e3??this.start,"Unexpected token")};var acorn_DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ne.checkPatternErrors=function(e3,t3){if(e3){e3.trailingComma>-1&&this.raiseRecoverable(e3.trailingComma,"Comma is not permitted after the rest element");var i2=t3?e3.parenthesizedAssign:e3.parenthesizedBind;i2>-1&&this.raiseRecoverable(i2,t3?"Assigning to rvalue":"Parenthesized pattern")}},ne.checkExpressionErrors=function(e3,t3){if(!e3)return!1;var i2=e3.shorthandAssign,n2=e3.doubleProto;if(!t3)return i2>=0||n2>=0;i2>=0&&this.raise(i2,"Shorthand property assignments are valid only in destructuring patterns"),n2>=0&&this.raiseRecoverable(n2,"Redefinition of __proto__ property")},ne.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ne.isSimpleAssignTarget=function(e3){return e3.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e3.expression):e3.type==="Identifier"||e3.type==="MemberExpression"};var oe=acorn_Parser.prototype;oe.parseTopLevel=function(e3){var t3=Object.create(null);for(e3.body||(e3.body=[]);this.type!==O.eof;){var i2=this.parseStatement(null,!0,t3);e3.body.push(i2)}if(this.inModule)for(var n2=0,a2=Object.keys(this.undefinedExports);n2<a2.length;n2+=1){var c2=a2[n2];this.raiseRecoverable(this.undefinedExports[c2].start,"Export '"+c2+"' is not defined")}return this.adaptDirectivePrologue(e3.body),this.next(),e3.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e3,"Program")};var ce={kind:"loop"},he={kind:"switch"};oe.isLet=function(e3){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;$.lastIndex=this.pos;var t3=$.exec(this.input),i2=this.pos+t3[0].length,n2=this.fullCharCodeAt(i2);if(n2===91||n2===92)return!0;if(e3)return!1;if(n2===123)return!0;if(isIdentifierStart(n2)){var a2=i2;do i2+=n2<=65535?1:2;while(isIdentifierChar(n2=this.fullCharCodeAt(i2)));if(n2===92)return!0;var c2=this.input.slice(a2,i2);if(!E.test(c2))return!0}return!1},oe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;$.lastIndex=this.pos;var e3,t3=$.exec(this.input),i2=this.pos+t3[0].length;return!(j.test(this.input.slice(this.pos,i2))||this.input.slice(i2,i2+8)!=="function"||i2+8!==this.input.length&&(isIdentifierChar(e3=this.fullCharCodeAt(i2+8))||e3===92))},oe.isUsingKeyword=function(e3,t3){if(this.options.ecmaVersion<17||!this.isContextual(e3?"await":"using"))return!1;$.lastIndex=this.pos;var i2=$.exec(this.input),n2=this.pos+i2[0].length;if(j.test(this.input.slice(this.pos,n2)))return!1;if(e3){var a2,c2=n2+5;if(this.input.slice(n2,c2)!=="using"||c2===this.input.length||isIdentifierChar(a2=this.fullCharCodeAt(c2))||a2===92)return!1;$.lastIndex=c2;var l2=$.exec(this.input);if(n2=c2+l2[0].length,l2&&j.test(this.input.slice(c2,n2)))return!1}var y2=this.fullCharCodeAt(n2);if(!isIdentifierStart(y2)&&y2!==92)return!1;var w2=n2;do n2+=y2<=65535?1:2;while(isIdentifierChar(y2=this.fullCharCodeAt(n2)));if(y2===92)return!0;var C2=this.input.slice(w2,n2);return!(E.test(C2)||t3&&C2==="of")},oe.isAwaitUsing=function(e3){return this.isUsingKeyword(!0,e3)},oe.isUsing=function(e3){return this.isUsingKeyword(!1,e3)},oe.parseStatement=function(e3,t3,i2){var n2,a2=this.type,c2=this.startNode();switch(this.isLet(e3)&&(a2=O._var,n2="let"),a2){case O._break:case O._continue:return this.parseBreakContinueStatement(c2,a2.keyword);case O._debugger:return this.parseDebuggerStatement(c2);case O._do:return this.parseDoStatement(c2);case O._for:return this.parseForStatement(c2);case O._function:return e3&&(this.strict||e3!=="if"&&e3!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(c2,!1,!e3);case O._class:return e3&&this.unexpected(),this.parseClass(c2,!0);case O._if:return this.parseIfStatement(c2);case O._return:return this.parseReturnStatement(c2);case O._switch:return this.parseSwitchStatement(c2);case O._throw:return this.parseThrowStatement(c2);case O._try:return this.parseTryStatement(c2);case O._const:case O._var:return n2=n2||this.value,e3&&n2!=="var"&&this.unexpected(),this.parseVarStatement(c2,n2);case O._while:return this.parseWhileStatement(c2);case O._with:return this.parseWithStatement(c2);case O.braceL:return this.parseBlock(!0,c2);case O.semi:return this.parseEmptyStatement(c2);case O._export:case O._import:if(this.options.ecmaVersion>10&&a2===O._import){$.lastIndex=this.pos;var l2=$.exec(this.input),y2=this.pos+l2[0].length,E2=this.input.charCodeAt(y2);if(E2===40||E2===46)return this.parseExpressionStatement(c2,this.parseExpression())}return this.options.allowImportExportEverywhere||(t3||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),a2===O._import?this.parseImport(c2):this.parseExport(c2,i2);default:if(this.isAsyncFunction())return e3&&this.unexpected(),this.next(),this.parseFunctionStatement(c2,!0,!e3);var w2=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(w2)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),w2==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(c2,!1,w2),this.semicolon(),this.finishNode(c2,"VariableDeclaration");var C2=this.value,S2=this.parseExpression();return a2===O.name&&S2.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(c2,C2,S2,e3):this.parseExpressionStatement(c2,S2)}},oe.parseBreakContinueStatement=function(e3,t3){var i2=t3==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?e3.label=null:this.type!==O.name?this.unexpected():(e3.label=this.parseIdent(),this.semicolon());for(var n2=0;n2<this.labels.length;++n2){var a2=this.labels[n2];if((e3.label==null||a2.name===e3.label.name)&&(a2.kind!=null&&(i2||a2.kind==="loop")||e3.label&&i2))break}return n2===this.labels.length&&this.raise(e3.start,"Unsyntactic "+t3),this.finishNode(e3,i2?"BreakStatement":"ContinueStatement")},oe.parseDebuggerStatement=function(e3){return this.next(),this.semicolon(),this.finishNode(e3,"DebuggerStatement")},oe.parseDoStatement=function(e3){return this.next(),this.labels.push(ce),e3.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),e3.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(O.semi):this.semicolon(),this.finishNode(e3,"DoWhileStatement")},oe.parseForStatement=function(e3){this.next();var t3=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ce),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return t3>-1&&this.unexpected(t3),this.parseFor(e3,null);var i2=this.isLet();if(this.type===O._var||this.type===O._const||i2){var n2=this.startNode(),a2=i2?"let":this.value;return this.next(),this.parseVar(n2,!0,a2),this.finishNode(n2,"VariableDeclaration"),this.parseForAfterInit(e3,n2,t3)}var c2=this.isContextual("let"),l2=!1,y2=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(y2){var E2=this.startNode();return this.next(),y2==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(E2,!0,y2),this.finishNode(E2,"VariableDeclaration"),this.parseForAfterInit(e3,E2,t3)}var w2=this.containsEsc,C2=new acorn_DestructuringErrors,S2=this.start,I2=t3>-1?this.parseExprSubscripts(C2,"await"):this.parseExpression(!0,C2);return this.type===O._in||(l2=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t3>-1?(this.type===O._in&&this.unexpected(t3),e3.await=!0):l2&&this.options.ecmaVersion>=8&&(I2.start!==S2||w2||I2.type!=="Identifier"||I2.name!=="async"?this.options.ecmaVersion>=9&&(e3.await=!1):this.unexpected()),c2&&l2&&this.raise(I2.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(I2,!1,C2),this.checkLValPattern(I2),this.parseForIn(e3,I2)):(this.checkExpressionErrors(C2,!0),t3>-1&&this.unexpected(t3),this.parseFor(e3,I2))},oe.parseForAfterInit=function(e3,t3,i2){return(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t3.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?i2>-1&&this.unexpected(i2):e3.await=i2>-1),this.parseForIn(e3,t3)):(i2>-1&&this.unexpected(i2),this.parseFor(e3,t3))},oe.parseFunctionStatement=function(e3,t3,i2){return this.next(),this.parseFunction(e3,pe|(i2?0:ue),!1,t3)},oe.parseIfStatement=function(e3){return this.next(),e3.test=this.parseParenExpression(),e3.consequent=this.parseStatement("if"),e3.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(e3,"IfStatement")},oe.parseReturnStatement=function(e3){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?e3.argument=null:(e3.argument=this.parseExpression(),this.semicolon()),this.finishNode(e3,"ReturnStatement")},oe.parseSwitchStatement=function(e3){var t3;this.next(),e3.discriminant=this.parseParenExpression(),e3.cases=[],this.expect(O.braceL),this.labels.push(he),this.enterScope(1024);for(var i2=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var n2=this.type===O._case;t3&&this.finishNode(t3,"SwitchCase"),e3.cases.push(t3=this.startNode()),t3.consequent=[],this.next(),n2?t3.test=this.parseExpression():(i2&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i2=!0,t3.test=null),this.expect(O.colon)}else t3||this.unexpected(),t3.consequent.push(this.parseStatement(null));return this.exitScope(),t3&&this.finishNode(t3,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e3,"SwitchStatement")},oe.parseThrowStatement=function(e3){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e3.argument=this.parseExpression(),this.semicolon(),this.finishNode(e3,"ThrowStatement")};var le=[];oe.parseCatchClauseParam=function(){var e3=this.parseBindingAtom(),t3=e3.type==="Identifier";return this.enterScope(t3?32:0),this.checkLValPattern(e3,t3?4:2),this.expect(O.parenR),e3},oe.parseTryStatement=function(e3){if(this.next(),e3.block=this.parseBlock(),e3.handler=null,this.type===O._catch){var t3=this.startNode();this.next(),this.eat(O.parenL)?t3.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t3.param=null,this.enterScope(0)),t3.body=this.parseBlock(!1),this.exitScope(),e3.handler=this.finishNode(t3,"CatchClause")}return e3.finalizer=this.eat(O._finally)?this.parseBlock():null,e3.handler||e3.finalizer||this.raise(e3.start,"Missing catch or finally clause"),this.finishNode(e3,"TryStatement")},oe.parseVarStatement=function(e3,t3,i2){return this.next(),this.parseVar(e3,!1,t3,i2),this.semicolon(),this.finishNode(e3,"VariableDeclaration")},oe.parseWhileStatement=function(e3){return this.next(),e3.test=this.parseParenExpression(),this.labels.push(ce),e3.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e3,"WhileStatement")},oe.parseWithStatement=function(e3){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e3.object=this.parseParenExpression(),e3.body=this.parseStatement("with"),this.finishNode(e3,"WithStatement")},oe.parseEmptyStatement=function(e3){return this.next(),this.finishNode(e3,"EmptyStatement")},oe.parseLabeledStatement=function(e3,t3,i2,n2){for(var a2=0,c2=this.labels;a2<c2.length;a2+=1)c2[a2].name===t3&&this.raise(i2.start,"Label '"+t3+"' is already declared");for(var l2=this.type.isLoop?"loop":this.type===O._switch?"switch":null,y2=this.labels.length-1;y2>=0;y2--){var E2=this.labels[y2];if(E2.statementStart!==e3.start)break;E2.statementStart=this.start,E2.kind=l2}return this.labels.push({name:t3,kind:l2,statementStart:this.start}),e3.body=this.parseStatement(n2?n2.indexOf("label")===-1?n2+"label":n2:"label"),this.labels.pop(),e3.label=i2,this.finishNode(e3,"LabeledStatement")},oe.parseExpressionStatement=function(e3,t3){return e3.expression=t3,this.semicolon(),this.finishNode(e3,"ExpressionStatement")},oe.parseBlock=function(e3,t3,i2){for(e3===void 0&&(e3=!0),t3===void 0&&(t3=this.startNode()),t3.body=[],this.expect(O.braceL),e3&&this.enterScope(0);this.type!==O.braceR;){var n2=this.parseStatement(null);t3.body.push(n2)}return i2&&(this.strict=!1),this.next(),e3&&this.exitScope(),this.finishNode(t3,"BlockStatement")},oe.parseFor=function(e3,t3){return e3.init=t3,this.expect(O.semi),e3.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),e3.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),e3.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e3,"ForStatement")},oe.parseForIn=function(e3,t3){var i2=this.type===O._in;return this.next(),t3.type==="VariableDeclaration"&&t3.declarations[0].init!=null&&(!i2||this.options.ecmaVersion<8||this.strict||t3.kind!=="var"||t3.declarations[0].id.type!=="Identifier")&&this.raise(t3.start,(i2?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e3.left=t3,e3.right=i2?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),e3.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e3,i2?"ForInStatement":"ForOfStatement")},oe.parseVar=function(e3,t3,i2,n2){for(e3.declarations=[],e3.kind=i2;;){var a2=this.startNode();if(this.parseVarId(a2,i2),this.eat(O.eq)?a2.init=this.parseMaybeAssign(t3):n2||i2!=="const"||this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n2||i2!=="using"&&i2!=="await using"||!(this.options.ecmaVersion>=17)||this.type===O._in||this.isContextual("of")?n2||a2.id.type==="Identifier"||t3&&(this.type===O._in||this.isContextual("of"))?a2.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i2+" declaration"):this.unexpected(),e3.declarations.push(this.finishNode(a2,"VariableDeclarator")),!this.eat(O.comma))break}return e3},oe.parseVarId=function(e3,t3){e3.id=t3==="using"||t3==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e3.id,t3==="var"?1:2,!1)};var pe=1,ue=2;function isPrivateNameConflicted(e3,t3){var i2=t3.key.name,n2=e3[i2],a2="true";return t3.type!=="MethodDefinition"||t3.kind!=="get"&&t3.kind!=="set"||(a2=(t3.static?"s":"i")+t3.kind),n2==="iget"&&a2==="iset"||n2==="iset"&&a2==="iget"||n2==="sget"&&a2==="sset"||n2==="sset"&&a2==="sget"?(e3[i2]="true",!1):!!n2||(e3[i2]=a2,!1)}function checkKeyName(e3,t3){var i2=e3.computed,n2=e3.key;return!i2&&(n2.type==="Identifier"&&n2.name===t3||n2.type==="Literal"&&n2.value===t3)}oe.parseFunction=function(e3,t3,i2,n2,a2){this.initFunction(e3),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n2)&&(this.type===O.star&&t3&ue&&this.unexpected(),e3.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(e3.async=!!n2),t3&pe&&(e3.id=4&t3&&this.type!==O.name?null:this.parseIdent(),!e3.id||t3&ue||this.checkLValSimple(e3.id,this.strict||e3.generator||e3.async?this.treatFunctionsAsVar?1:2:3));var c2=this.yieldPos,l2=this.awaitPos,y2=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e3.async,e3.generator)),t3&pe||(e3.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(e3),this.parseFunctionBody(e3,i2,!1,a2),this.yieldPos=c2,this.awaitPos=l2,this.awaitIdentPos=y2,this.finishNode(e3,t3&pe?"FunctionDeclaration":"FunctionExpression")},oe.parseFunctionParams=function(e3){this.expect(O.parenL),e3.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},oe.parseClass=function(e3,t3){this.next();var i2=this.strict;this.strict=!0,this.parseClassId(e3,t3),this.parseClassSuper(e3);var n2=this.enterClassBody(),a2=this.startNode(),c2=!1;for(a2.body=[],this.expect(O.braceL);this.type!==O.braceR;){var l2=this.parseClassElement(e3.superClass!==null);l2&&(a2.body.push(l2),l2.type==="MethodDefinition"&&l2.kind==="constructor"?(c2&&this.raiseRecoverable(l2.start,"Duplicate constructor in the same class"),c2=!0):l2.key&&l2.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(n2,l2)&&this.raiseRecoverable(l2.key.start,"Identifier '#"+l2.key.name+"' has already been declared"))}return this.strict=i2,this.next(),e3.body=this.finishNode(a2,"ClassBody"),this.exitClassBody(),this.finishNode(e3,t3?"ClassDeclaration":"ClassExpression")},oe.parseClassElement=function(e3){if(this.eat(O.semi))return null;var t3=this.options.ecmaVersion,i2=this.startNode(),n2="",a2=!1,c2=!1,l2="method",y2=!1;if(this.eatContextual("static")){if(t3>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(i2),i2;this.isClassElementNameStart()||this.type===O.star?y2=!0:n2="static"}if(i2.static=y2,!n2&&t3>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==O.star||this.canInsertSemicolon()?n2="async":c2=!0),!n2&&(t3>=9||!c2)&&this.eat(O.star)&&(a2=!0),!n2&&!c2&&!a2){var E2=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l2=E2:n2=E2)}if(n2?(i2.computed=!1,i2.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i2.key.name=n2,this.finishNode(i2.key,"Identifier")):this.parseClassElementName(i2),t3<13||this.type===O.parenL||l2!=="method"||a2||c2){var w2=!i2.static&&checkKeyName(i2,"constructor"),C2=w2&&e3;w2&&l2!=="method"&&this.raise(i2.key.start,"Constructor can't have get/set modifier"),i2.kind=w2?"constructor":l2,this.parseClassMethod(i2,a2,c2,C2)}else this.parseClassField(i2);return i2},oe.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword},oe.parseClassElementName=function(e3){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e3.computed=!1,e3.key=this.parsePrivateIdent()):this.parsePropertyName(e3)},oe.parseClassMethod=function(e3,t3,i2,n2){var a2=e3.key;e3.kind==="constructor"?(t3&&this.raise(a2.start,"Constructor can't be a generator"),i2&&this.raise(a2.start,"Constructor can't be an async method")):e3.static&&checkKeyName(e3,"prototype")&&this.raise(a2.start,"Classes may not have a static property named prototype");var c2=e3.value=this.parseMethod(t3,i2,n2);return e3.kind==="get"&&c2.params.length!==0&&this.raiseRecoverable(c2.start,"getter should have no params"),e3.kind==="set"&&c2.params.length!==1&&this.raiseRecoverable(c2.start,"setter should have exactly one param"),e3.kind==="set"&&c2.params[0].type==="RestElement"&&this.raiseRecoverable(c2.params[0].start,"Setter cannot use rest params"),this.finishNode(e3,"MethodDefinition")},oe.parseClassField=function(e3){return checkKeyName(e3,"constructor")?this.raise(e3.key.start,"Classes can't have a field named 'constructor'"):e3.static&&checkKeyName(e3,"prototype")&&this.raise(e3.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)?(this.enterScope(576),e3.value=this.parseMaybeAssign(),this.exitScope()):e3.value=null,this.semicolon(),this.finishNode(e3,"PropertyDefinition")},oe.parseClassStaticBlock=function(e3){e3.body=[];var t3=this.labels;for(this.labels=[],this.enterScope(320);this.type!==O.braceR;){var i2=this.parseStatement(null);e3.body.push(i2)}return this.next(),this.exitScope(),this.labels=t3,this.finishNode(e3,"StaticBlock")},oe.parseClassId=function(e3,t3){this.type===O.name?(e3.id=this.parseIdent(),t3&&this.checkLValSimple(e3.id,2,!1)):(t3===!0&&this.unexpected(),e3.id=null)},oe.parseClassSuper=function(e3){e3.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null},oe.enterClassBody=function(){var e3={declared:Object.create(null),used:[]};return this.privateNameStack.push(e3),e3.declared},oe.exitClassBody=function(){var e3=this.privateNameStack.pop(),t3=e3.declared,i2=e3.used;if(this.options.checkPrivateFields)for(var n2=this.privateNameStack.length,a2=n2===0?null:this.privateNameStack[n2-1],c2=0;c2<i2.length;++c2){var l2=i2[c2];H(t3,l2.name)||(a2?a2.used.push(l2):this.raiseRecoverable(l2.start,"Private field '#"+l2.name+"' must be declared in an enclosing class"))}},oe.parseExportAllDeclaration=function(e3,t3){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e3.exported=this.parseModuleExportName(),this.checkExport(t3,e3.exported,this.lastTokStart)):e3.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),e3.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e3.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e3,"ExportAllDeclaration")},oe.parseExport=function(e3,t3){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(e3,t3);if(this.eat(O._default))return this.checkExport(t3,"default",this.lastTokStart),e3.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e3,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e3.declaration=this.parseExportDeclaration(e3),e3.declaration.type==="VariableDeclaration"?this.checkVariableExport(t3,e3.declaration.declarations):this.checkExport(t3,e3.declaration.id,e3.declaration.id.start),e3.specifiers=[],e3.source=null,this.options.ecmaVersion>=16&&(e3.attributes=[]);else{if(e3.declaration=null,e3.specifiers=this.parseExportSpecifiers(t3),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),e3.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e3.attributes=this.parseWithClause());else{for(var i2=0,n2=e3.specifiers;i2<n2.length;i2+=1){var a2=n2[i2];this.checkUnreserved(a2.local),this.checkLocalExport(a2.local),a2.local.type==="Literal"&&this.raise(a2.local.start,"A string literal cannot be used as an exported binding without `from`.")}e3.source=null,this.options.ecmaVersion>=16&&(e3.attributes=[])}this.semicolon()}return this.finishNode(e3,"ExportNamedDeclaration")},oe.parseExportDeclaration=function(e3){return this.parseStatement(null)},oe.parseExportDefaultDeclaration=function(){var e3;if(this.type===O._function||(e3=this.isAsyncFunction())){var t3=this.startNode();return this.next(),e3&&this.next(),this.parseFunction(t3,4|pe,!1,e3)}if(this.type===O._class){var i2=this.startNode();return this.parseClass(i2,"nullableID")}var n2=this.parseMaybeAssign();return this.semicolon(),n2},oe.checkExport=function(e3,t3,i2){e3&&(typeof t3!="string"&&(t3=t3.type==="Identifier"?t3.name:t3.value),H(e3,t3)&&this.raiseRecoverable(i2,"Duplicate export '"+t3+"'"),e3[t3]=!0)},oe.checkPatternExport=function(e3,t3){var i2=t3.type;if(i2==="Identifier")this.checkExport(e3,t3,t3.start);else if(i2==="ObjectPattern")for(var n2=0,a2=t3.properties;n2<a2.length;n2+=1){var c2=a2[n2];this.checkPatternExport(e3,c2)}else if(i2==="ArrayPattern")for(var l2=0,y2=t3.elements;l2<y2.length;l2+=1){var E2=y2[l2];E2&&this.checkPatternExport(e3,E2)}else i2==="Property"?this.checkPatternExport(e3,t3.value):i2==="AssignmentPattern"?this.checkPatternExport(e3,t3.left):i2==="RestElement"&&this.checkPatternExport(e3,t3.argument)},oe.checkVariableExport=function(e3,t3){if(e3)for(var i2=0,n2=t3;i2<n2.length;i2+=1){var a2=n2[i2];this.checkPatternExport(e3,a2.id)}},oe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},oe.parseExportSpecifier=function(e3){var t3=this.startNode();return t3.local=this.parseModuleExportName(),t3.exported=this.eatContextual("as")?this.parseModuleExportName():t3.local,this.checkExport(e3,t3.exported,t3.exported.start),this.finishNode(t3,"ExportSpecifier")},oe.parseExportSpecifiers=function(e3){var t3=[],i2=!0;for(this.expect(O.braceL);!this.eat(O.braceR);){if(i2)i2=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;t3.push(this.parseExportSpecifier(e3))}return t3},oe.parseImport=function(e3){return this.next(),this.type===O.string?(e3.specifiers=le,e3.source=this.parseExprAtom()):(e3.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e3.source=this.type===O.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e3.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e3,"ImportDeclaration")},oe.parseImportSpecifier=function(){var e3=this.startNode();return e3.imported=this.parseModuleExportName(),this.eatContextual("as")?e3.local=this.parseIdent():(this.checkUnreserved(e3.imported),e3.local=e3.imported),this.checkLValSimple(e3.local,2),this.finishNode(e3,"ImportSpecifier")},oe.parseImportDefaultSpecifier=function(){var e3=this.startNode();return e3.local=this.parseIdent(),this.checkLValSimple(e3.local,2),this.finishNode(e3,"ImportDefaultSpecifier")},oe.parseImportNamespaceSpecifier=function(){var e3=this.startNode();return this.next(),this.expectContextual("as"),e3.local=this.parseIdent(),this.checkLValSimple(e3.local,2),this.finishNode(e3,"ImportNamespaceSpecifier")},oe.parseImportSpecifiers=function(){var e3=[],t3=!0;if(this.type===O.name&&(e3.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma)))return e3;if(this.type===O.star)return e3.push(this.parseImportNamespaceSpecifier()),e3;for(this.expect(O.braceL);!this.eat(O.braceR);){if(t3)t3=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;e3.push(this.parseImportSpecifier())}return e3},oe.parseWithClause=function(){var e3=[];if(!this.eat(O._with))return e3;this.expect(O.braceL);for(var t3={},i2=!0;!this.eat(O.braceR);){if(i2)i2=!1;else if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break;var n2=this.parseImportAttribute(),a2=n2.key.type==="Identifier"?n2.key.name:n2.key.value;H(t3,a2)&&this.raiseRecoverable(n2.key.start,"Duplicate attribute key '"+a2+"'"),t3[a2]=!0,e3.push(n2)}return e3},oe.parseImportAttribute=function(){var e3=this.startNode();return e3.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string&&this.unexpected(),e3.value=this.parseExprAtom(),this.finishNode(e3,"ImportAttribute")},oe.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var e3=this.parseLiteral(this.value);return Z.test(e3.value)&&this.raise(e3.start,"An export name cannot include a lone surrogate."),e3}return this.parseIdent(!0)},oe.adaptDirectivePrologue=function(e3){for(var t3=0;t3<e3.length&&this.isDirectiveCandidate(e3[t3]);++t3)e3[t3].directive=e3[t3].expression.raw.slice(1,-1)},oe.isDirectiveCandidate=function(e3){return this.options.ecmaVersion>=5&&e3.type==="ExpressionStatement"&&e3.expression.type==="Literal"&&typeof e3.expression.value=="string"&&(this.input[e3.start]==='"'||this.input[e3.start]==="'")};var de=acorn_Parser.prototype;de.toAssignable=function(e3,t3,i2){if(this.options.ecmaVersion>=6&&e3)switch(e3.type){case"Identifier":this.inAsync&&e3.name==="await"&&this.raise(e3.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e3.type="ObjectPattern",i2&&this.checkPatternErrors(i2,!0);for(var n2=0,a2=e3.properties;n2<a2.length;n2+=1){var c2=a2[n2];this.toAssignable(c2,t3),c2.type!=="RestElement"||c2.argument.type!=="ArrayPattern"&&c2.argument.type!=="ObjectPattern"||this.raise(c2.argument.start,"Unexpected token")}break;case"Property":e3.kind!=="init"&&this.raise(e3.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e3.value,t3);break;case"ArrayExpression":e3.type="ArrayPattern",i2&&this.checkPatternErrors(i2,!0),this.toAssignableList(e3.elements,t3);break;case"SpreadElement":e3.type="RestElement",this.toAssignable(e3.argument,t3),e3.argument.type==="AssignmentPattern"&&this.raise(e3.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e3.operator!=="="&&this.raise(e3.left.end,"Only '=' operator can be used for specifying default value."),e3.type="AssignmentPattern",delete e3.operator,this.toAssignable(e3.left,t3);break;case"ParenthesizedExpression":this.toAssignable(e3.expression,t3,i2);break;case"ChainExpression":this.raiseRecoverable(e3.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t3)break;default:this.raise(e3.start,"Assigning to rvalue")}else i2&&this.checkPatternErrors(i2,!0);return e3},de.toAssignableList=function(e3,t3){for(var i2=e3.length,n2=0;n2<i2;n2++){var a2=e3[n2];a2&&this.toAssignable(a2,t3)}if(i2){var c2=e3[i2-1];this.options.ecmaVersion===6&&t3&&c2&&c2.type==="RestElement"&&c2.argument.type!=="Identifier"&&this.unexpected(c2.argument.start)}return e3},de.parseSpread=function(e3){var t3=this.startNode();return this.next(),t3.argument=this.parseMaybeAssign(!1,e3),this.finishNode(t3,"SpreadElement")},de.parseRestBinding=function(){var e3=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==O.name&&this.unexpected(),e3.argument=this.parseBindingAtom(),this.finishNode(e3,"RestElement")},de.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var e3=this.startNode();return this.next(),e3.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(e3,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()},de.parseBindingList=function(e3,t3,i2,n2){for(var a2=[],c2=!0;!this.eat(e3);)if(c2?c2=!1:this.expect(O.comma),t3&&this.type===O.comma)a2.push(null);else{if(i2&&this.afterTrailingComma(e3))break;if(this.type===O.ellipsis){var l2=this.parseRestBinding();this.parseBindingListItem(l2),a2.push(l2),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e3);break}a2.push(this.parseAssignableListItem(n2))}return a2},de.parseAssignableListItem=function(e3){var t3=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t3),t3},de.parseBindingListItem=function(e3){return e3},de.parseMaybeDefault=function(e3,t3,i2){if(i2=i2||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return i2;var n2=this.startNodeAt(e3,t3);return n2.left=i2,n2.right=this.parseMaybeAssign(),this.finishNode(n2,"AssignmentPattern")},de.checkLValSimple=function(e3,t3,i2){t3===void 0&&(t3=0);var n2=t3!==0;switch(e3.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e3.name)&&this.raiseRecoverable(e3.start,(n2?"Binding ":"Assigning to ")+e3.name+" in strict mode"),n2&&(t3===2&&e3.name==="let"&&this.raiseRecoverable(e3.start,"let is disallowed as a lexically bound name"),i2&&(H(i2,e3.name)&&this.raiseRecoverable(e3.start,"Argument name clash"),i2[e3.name]=!0),t3!==5&&this.declareName(e3.name,t3,e3.start));break;case"ChainExpression":this.raiseRecoverable(e3.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n2&&this.raiseRecoverable(e3.start,"Binding member expression");break;case"ParenthesizedExpression":return n2&&this.raiseRecoverable(e3.start,"Binding parenthesized expression"),this.checkLValSimple(e3.expression,t3,i2);default:this.raise(e3.start,(n2?"Binding":"Assigning to")+" rvalue")}},de.checkLValPattern=function(e3,t3,i2){switch(t3===void 0&&(t3=0),e3.type){case"ObjectPattern":for(var n2=0,a2=e3.properties;n2<a2.length;n2+=1){var c2=a2[n2];this.checkLValInnerPattern(c2,t3,i2)}break;case"ArrayPattern":for(var l2=0,y2=e3.elements;l2<y2.length;l2+=1){var E2=y2[l2];E2&&this.checkLValInnerPattern(E2,t3,i2)}break;default:this.checkLValSimple(e3,t3,i2)}},de.checkLValInnerPattern=function(e3,t3,i2){switch(t3===void 0&&(t3=0),e3.type){case"Property":this.checkLValInnerPattern(e3.value,t3,i2);break;case"AssignmentPattern":this.checkLValPattern(e3.left,t3,i2);break;case"RestElement":this.checkLValPattern(e3.argument,t3,i2);break;default:this.checkLValPattern(e3,t3,i2)}};var acorn_TokContext=function(e3,t3,i2,n2,a2){this.token=e3,this.isExpr=!!t3,this.preserveSpace=!!i2,this.override=n2,this.generator=!!a2},fe={b_stat:new acorn_TokContext("{",!1),b_expr:new acorn_TokContext("{",!0),b_tmpl:new acorn_TokContext("${",!1),p_stat:new acorn_TokContext("(",!1),p_expr:new acorn_TokContext("(",!0),q_tmpl:new acorn_TokContext("`",!0,!0,function(e3){return e3.tryReadTemplateToken()}),f_stat:new acorn_TokContext("function",!1),f_expr:new acorn_TokContext("function",!0),f_expr_gen:new acorn_TokContext("function",!0,!1,null,!0),f_gen:new acorn_TokContext("function",!1,!1,null,!0)},me=acorn_Parser.prototype;me.initialContext=function(){return[fe.b_stat]},me.curContext=function(){return this.context[this.context.length-1]},me.braceIsBlock=function(e3){var t3=this.curContext();return t3===fe.f_expr||t3===fe.f_stat||(e3!==O.colon||t3!==fe.b_stat&&t3!==fe.b_expr?e3===O._return||e3===O.name&&this.exprAllowed?j.test(this.input.slice(this.lastTokEnd,this.start)):e3===O._else||e3===O.semi||e3===O.eof||e3===O.parenR||e3===O.arrow||(e3===O.braceL?t3===fe.b_stat:e3!==O._var&&e3!==O._const&&e3!==O.name&&!this.exprAllowed):!t3.isExpr)},me.inGeneratorContext=function(){for(var e3=this.context.length-1;e3>=1;e3--){var t3=this.context[e3];if(t3.token==="function")return t3.generator}return!1},me.updateContext=function(e3){var t3,i2=this.type;i2.keyword&&e3===O.dot?this.exprAllowed=!1:(t3=i2.updateContext)?t3.call(this,e3):this.exprAllowed=i2.beforeExpr},me.overrideContext=function(e3){this.curContext()!==e3&&(this.context[this.context.length-1]=e3)},O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length!==1){var e3=this.context.pop();e3===fe.b_stat&&this.curContext().token==="function"&&(e3=this.context.pop()),this.exprAllowed=!e3.isExpr}else this.exprAllowed=!0},O.braceL.updateContext=function(e3){this.context.push(this.braceIsBlock(e3)?fe.b_stat:fe.b_expr),this.exprAllowed=!0},O.dollarBraceL.updateContext=function(){this.context.push(fe.b_tmpl),this.exprAllowed=!0},O.parenL.updateContext=function(e3){var t3=e3===O._if||e3===O._for||e3===O._with||e3===O._while;this.context.push(t3?fe.p_stat:fe.p_expr),this.exprAllowed=!0},O.incDec.updateContext=function(){},O._function.updateContext=O._class.updateContext=function(e3){!e3.beforeExpr||e3===O._else||e3===O.semi&&this.curContext()!==fe.p_stat||e3===O._return&&j.test(this.input.slice(this.lastTokEnd,this.start))||(e3===O.colon||e3===O.braceL)&&this.curContext()===fe.b_stat?this.context.push(fe.f_stat):this.context.push(fe.f_expr),this.exprAllowed=!1},O.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},O.backQuote.updateContext=function(){this.curContext()===fe.q_tmpl?this.context.pop():this.context.push(fe.q_tmpl),this.exprAllowed=!1},O.star.updateContext=function(e3){if(e3===O._function){var t3=this.context.length-1;this.context[t3]===fe.f_expr?this.context[t3]=fe.f_expr_gen:this.context[t3]=fe.f_gen}this.exprAllowed=!0},O.name.updateContext=function(e3){var t3=!1;this.options.ecmaVersion>=6&&e3!==O.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t3=!0),this.exprAllowed=t3};var ge=acorn_Parser.prototype;function isLocalVariableAccess(e3){return e3.type==="Identifier"||e3.type==="ParenthesizedExpression"&&isLocalVariableAccess(e3.expression)}function isPrivateFieldAccess(e3){return e3.type==="MemberExpression"&&e3.property.type==="PrivateIdentifier"||e3.type==="ChainExpression"&&isPrivateFieldAccess(e3.expression)||e3.type==="ParenthesizedExpression"&&isPrivateFieldAccess(e3.expression)}ge.checkPropClash=function(e3,t3,i2){if(!(this.options.ecmaVersion>=9&&e3.type==="SpreadElement"||this.options.ecmaVersion>=6&&(e3.computed||e3.method||e3.shorthand))){var n2,a2=e3.key;switch(a2.type){case"Identifier":n2=a2.name;break;case"Literal":n2=String(a2.value);break;default:return}var c2=e3.kind;if(this.options.ecmaVersion>=6)n2==="__proto__"&&c2==="init"&&(t3.proto&&(i2?i2.doubleProto<0&&(i2.doubleProto=a2.start):this.raiseRecoverable(a2.start,"Redefinition of __proto__ property")),t3.proto=!0);else{var l2=t3[n2="$"+n2];l2?(c2==="init"?this.strict&&l2.init||l2.get||l2.set:l2.init||l2[c2])&&this.raiseRecoverable(a2.start,"Redefinition of property"):l2=t3[n2]={init:!1,get:!1,set:!1},l2[c2]=!0}}},ge.parseExpression=function(e3,t3){var i2=this.start,n2=this.startLoc,a2=this.parseMaybeAssign(e3,t3);if(this.type===O.comma){var c2=this.startNodeAt(i2,n2);for(c2.expressions=[a2];this.eat(O.comma);)c2.expressions.push(this.parseMaybeAssign(e3,t3));return this.finishNode(c2,"SequenceExpression")}return a2},ge.parseMaybeAssign=function(e3,t3,i2){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e3);this.exprAllowed=!1}var n2=!1,a2=-1,c2=-1,l2=-1;t3?(a2=t3.parenthesizedAssign,c2=t3.trailingComma,l2=t3.doubleProto,t3.parenthesizedAssign=t3.trailingComma=-1):(t3=new acorn_DestructuringErrors,n2=!0);var y2=this.start,E2=this.startLoc;this.type!==O.parenL&&this.type!==O.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e3==="await");var w2=this.parseMaybeConditional(e3,t3);if(i2&&(w2=i2.call(this,w2,y2,E2)),this.type.isAssign){var C2=this.startNodeAt(y2,E2);return C2.operator=this.value,this.type===O.eq&&(w2=this.toAssignable(w2,!1,t3)),n2||(t3.parenthesizedAssign=t3.trailingComma=t3.doubleProto=-1),t3.shorthandAssign>=w2.start&&(t3.shorthandAssign=-1),this.type===O.eq?this.checkLValPattern(w2):this.checkLValSimple(w2),C2.left=w2,this.next(),C2.right=this.parseMaybeAssign(e3),l2>-1&&(t3.doubleProto=l2),this.finishNode(C2,"AssignmentExpression")}return n2&&this.checkExpressionErrors(t3,!0),a2>-1&&(t3.parenthesizedAssign=a2),c2>-1&&(t3.trailingComma=c2),w2},ge.parseMaybeConditional=function(e3,t3){var i2=this.start,n2=this.startLoc,a2=this.parseExprOps(e3,t3);if(this.checkExpressionErrors(t3))return a2;if(this.eat(O.question)){var c2=this.startNodeAt(i2,n2);return c2.test=a2,c2.consequent=this.parseMaybeAssign(),this.expect(O.colon),c2.alternate=this.parseMaybeAssign(e3),this.finishNode(c2,"ConditionalExpression")}return a2},ge.parseExprOps=function(e3,t3){var i2=this.start,n2=this.startLoc,a2=this.parseMaybeUnary(t3,!1,!1,e3);return this.checkExpressionErrors(t3)||a2.start===i2&&a2.type==="ArrowFunctionExpression"?a2:this.parseExprOp(a2,i2,n2,-1,e3)},ge.parseExprOp=function(e3,t3,i2,n2,a2){var c2=this.type.binop;if(c2!=null&&(!a2||this.type!==O._in)&&c2>n2){var l2=this.type===O.logicalOR||this.type===O.logicalAND,y2=this.type===O.coalesce;y2&&(c2=O.logicalAND.binop);var E2=this.value;this.next();var w2=this.start,C2=this.startLoc,S2=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,a2),w2,C2,c2,a2),I2=this.buildBinary(t3,i2,e3,S2,E2,l2||y2);return(l2&&this.type===O.coalesce||y2&&(this.type===O.logicalOR||this.type===O.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(I2,t3,i2,n2,a2)}return e3},ge.buildBinary=function(e3,t3,i2,n2,a2,c2){n2.type==="PrivateIdentifier"&&this.raise(n2.start,"Private identifier can only be left side of binary expression");var l2=this.startNodeAt(e3,t3);return l2.left=i2,l2.operator=a2,l2.right=n2,this.finishNode(l2,c2?"LogicalExpression":"BinaryExpression")},ge.parseMaybeUnary=function(e3,t3,i2,n2){var a2,c2=this.start,l2=this.startLoc;if(this.isContextual("await")&&this.canAwait)a2=this.parseAwait(n2),t3=!0;else if(this.type.prefix){var y2=this.startNode(),E2=this.type===O.incDec;y2.operator=this.value,y2.prefix=!0,this.next(),y2.argument=this.parseMaybeUnary(null,!0,E2,n2),this.checkExpressionErrors(e3,!0),E2?this.checkLValSimple(y2.argument):this.strict&&y2.operator==="delete"&&isLocalVariableAccess(y2.argument)?this.raiseRecoverable(y2.start,"Deleting local variable in strict mode"):y2.operator==="delete"&&isPrivateFieldAccess(y2.argument)?this.raiseRecoverable(y2.start,"Private fields can not be deleted"):t3=!0,a2=this.finishNode(y2,E2?"UpdateExpression":"UnaryExpression")}else if(t3||this.type!==O.privateId){if(a2=this.parseExprSubscripts(e3,n2),this.checkExpressionErrors(e3))return a2;for(;this.type.postfix&&!this.canInsertSemicolon();){var w2=this.startNodeAt(c2,l2);w2.operator=this.value,w2.prefix=!1,w2.argument=a2,this.checkLValSimple(a2),this.next(),a2=this.finishNode(w2,"UpdateExpression")}}else(n2||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a2=this.parsePrivateIdent(),this.type!==O._in&&this.unexpected();return i2||!this.eat(O.starstar)?a2:t3?void this.unexpected(this.lastTokStart):this.buildBinary(c2,l2,a2,this.parseMaybeUnary(null,!1,!1,n2),"**",!1)},ge.parseExprSubscripts=function(e3,t3){var i2=this.start,n2=this.startLoc,a2=this.parseExprAtom(e3,t3);if(a2.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return a2;var c2=this.parseSubscripts(a2,i2,n2,!1,t3);return e3&&c2.type==="MemberExpression"&&(e3.parenthesizedAssign>=c2.start&&(e3.parenthesizedAssign=-1),e3.parenthesizedBind>=c2.start&&(e3.parenthesizedBind=-1),e3.trailingComma>=c2.start&&(e3.trailingComma=-1)),c2},ge.parseSubscripts=function(e3,t3,i2,n2,a2){for(var c2=this.options.ecmaVersion>=8&&e3.type==="Identifier"&&e3.name==="async"&&this.lastTokEnd===e3.end&&!this.canInsertSemicolon()&&e3.end-e3.start===5&&this.potentialArrowAt===e3.start,l2=!1;;){var y2=this.parseSubscript(e3,t3,i2,n2,c2,l2,a2);if(y2.optional&&(l2=!0),y2===e3||y2.type==="ArrowFunctionExpression"){if(l2){var E2=this.startNodeAt(t3,i2);E2.expression=y2,y2=this.finishNode(E2,"ChainExpression")}return y2}e3=y2}},ge.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)},ge.parseSubscriptAsyncArrow=function(e3,t3,i2,n2){return this.parseArrowExpression(this.startNodeAt(e3,t3),i2,!0,n2)},ge.parseSubscript=function(e3,t3,i2,n2,a2,c2,l2){var y2=this.options.ecmaVersion>=11,E2=y2&&this.eat(O.questionDot);n2&&E2&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var w2=this.eat(O.bracketL);if(w2||E2&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var C2=this.startNodeAt(t3,i2);C2.object=e3,w2?(C2.property=this.parseExpression(),this.expect(O.bracketR)):this.type===O.privateId&&e3.type!=="Super"?C2.property=this.parsePrivateIdent():C2.property=this.parseIdent(this.options.allowReserved!=="never"),C2.computed=!!w2,y2&&(C2.optional=E2),e3=this.finishNode(C2,"MemberExpression")}else if(!n2&&this.eat(O.parenL)){var S2=new acorn_DestructuringErrors,I2=this.yieldPos,N2=this.awaitPos,j2=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var F2=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,S2);if(a2&&!E2&&this.shouldParseAsyncArrow())return this.checkPatternErrors(S2,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=I2,this.awaitPos=N2,this.awaitIdentPos=j2,this.parseSubscriptAsyncArrow(t3,i2,F2,l2);this.checkExpressionErrors(S2,!0),this.yieldPos=I2||this.yieldPos,this.awaitPos=N2||this.awaitPos,this.awaitIdentPos=j2||this.awaitIdentPos;var B2=this.startNodeAt(t3,i2);B2.callee=e3,B2.arguments=F2,y2&&(B2.optional=E2),e3=this.finishNode(B2,"CallExpression")}else if(this.type===O.backQuote){(E2||c2)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var $2=this.startNodeAt(t3,i2);$2.tag=e3,$2.quasi=this.parseTemplate({isTagged:!0}),e3=this.finishNode($2,"TaggedTemplateExpression")}return e3},ge.parseExprAtom=function(e3,t3,i2){this.type===O.slash&&this.readRegexp();var n2,a2=this.potentialArrowAt===this.start;switch(this.type){case O._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n2=this.startNode(),this.next(),this.type!==O.parenL||this.allowDirectSuper||this.raise(n2.start,"super() call outside constructor of a subclass"),this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL&&this.unexpected(),this.finishNode(n2,"Super");case O._this:return n2=this.startNode(),this.next(),this.finishNode(n2,"ThisExpression");case O.name:var c2=this.start,l2=this.startLoc,y2=this.containsEsc,E2=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!y2&&E2.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(fe.f_expr),this.parseFunction(this.startNodeAt(c2,l2),0,!1,!0,t3);if(a2&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(c2,l2),[E2],!1,t3);if(this.options.ecmaVersion>=8&&E2.name==="async"&&this.type===O.name&&!y2&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return E2=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(O.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(c2,l2),[E2],!0,t3)}return E2;case O.regexp:var w2=this.value;return(n2=this.parseLiteral(w2.value)).regex={pattern:w2.pattern,flags:w2.flags},n2;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return(n2=this.startNode()).value=this.type===O._null?null:this.type===O._true,n2.raw=this.type.keyword,this.next(),this.finishNode(n2,"Literal");case O.parenL:var C2=this.start,S2=this.parseParenAndDistinguishExpression(a2,t3);return e3&&(e3.parenthesizedAssign<0&&!this.isSimpleAssignTarget(S2)&&(e3.parenthesizedAssign=C2),e3.parenthesizedBind<0&&(e3.parenthesizedBind=C2)),S2;case O.bracketL:return n2=this.startNode(),this.next(),n2.elements=this.parseExprList(O.bracketR,!0,!0,e3),this.finishNode(n2,"ArrayExpression");case O.braceL:return this.overrideContext(fe.b_expr),this.parseObj(!1,e3);case O._function:return n2=this.startNode(),this.next(),this.parseFunction(n2,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(i2):this.unexpected();default:return this.parseExprAtomDefault()}},ge.parseExprAtomDefault=function(){this.unexpected()},ge.parseExprImport=function(e3){var t3=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!e3)return this.parseDynamicImport(t3);if(this.type===O.dot){var i2=this.startNodeAt(t3.start,t3.loc&&t3.loc.start);return i2.name="import",t3.meta=this.finishNode(i2,"Identifier"),this.parseImportMeta(t3)}this.unexpected()},ge.parseDynamicImport=function(e3){if(this.next(),e3.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(O.parenR)?e3.options=null:(this.expect(O.comma),this.afterTrailingComma(O.parenR)?e3.options=null:(e3.options=this.parseMaybeAssign(),this.eat(O.parenR)||(this.expect(O.comma),this.afterTrailingComma(O.parenR)||this.unexpected())));else if(!this.eat(O.parenR)){var t3=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(t3,"Trailing comma is not allowed in import()"):this.unexpected(t3)}return this.finishNode(e3,"ImportExpression")},ge.parseImportMeta=function(e3){this.next();var t3=this.containsEsc;return e3.property=this.parseIdent(!0),e3.property.name!=="meta"&&this.raiseRecoverable(e3.property.start,"The only valid meta property for import is 'import.meta'"),t3&&this.raiseRecoverable(e3.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(e3.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e3,"MetaProperty")},ge.parseLiteral=function(e3){var t3=this.startNode();return t3.value=e3,t3.raw=this.input.slice(this.start,this.end),t3.raw.charCodeAt(t3.raw.length-1)===110&&(t3.bigint=t3.value!=null?t3.value.toString():t3.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t3,"Literal")},ge.parseParenExpression=function(){this.expect(O.parenL);var e3=this.parseExpression();return this.expect(O.parenR),e3},ge.shouldParseArrow=function(e3){return!this.canInsertSemicolon()},ge.parseParenAndDistinguishExpression=function(e3,t3){var i2,n2=this.start,a2=this.startLoc,c2=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l2,y2=this.start,E2=this.startLoc,w2=[],C2=!0,S2=!1,I2=new acorn_DestructuringErrors,N2=this.yieldPos,j2=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;){if(C2?C2=!1:this.expect(O.comma),c2&&this.afterTrailingComma(O.parenR,!0)){S2=!0;break}if(this.type===O.ellipsis){l2=this.start,w2.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}w2.push(this.parseMaybeAssign(!1,I2,this.parseParenItem))}var F2=this.lastTokEnd,B2=this.lastTokEndLoc;if(this.expect(O.parenR),e3&&this.shouldParseArrow(w2)&&this.eat(O.arrow))return this.checkPatternErrors(I2,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=N2,this.awaitPos=j2,this.parseParenArrowList(n2,a2,w2,t3);w2.length&&!S2||this.unexpected(this.lastTokStart),l2&&this.unexpected(l2),this.checkExpressionErrors(I2,!0),this.yieldPos=N2||this.yieldPos,this.awaitPos=j2||this.awaitPos,w2.length>1?((i2=this.startNodeAt(y2,E2)).expressions=w2,this.finishNodeAt(i2,"SequenceExpression",F2,B2)):i2=w2[0]}else i2=this.parseParenExpression();if(this.options.preserveParens){var $2=this.startNodeAt(n2,a2);return $2.expression=i2,this.finishNode($2,"ParenthesizedExpression")}return i2},ge.parseParenItem=function(e3){return e3},ge.parseParenArrowList=function(e3,t3,i2,n2){return this.parseArrowExpression(this.startNodeAt(e3,t3),i2,!1,n2)};var xe=[];ge.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e3=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var t3=this.startNodeAt(e3.start,e3.loc&&e3.loc.start);t3.name="new",e3.meta=this.finishNode(t3,"Identifier"),this.next();var i2=this.containsEsc;return e3.property=this.parseIdent(!0),e3.property.name!=="target"&&this.raiseRecoverable(e3.property.start,"The only valid meta property for new is 'new.target'"),i2&&this.raiseRecoverable(e3.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e3.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e3,"MetaProperty")}var n2=this.start,a2=this.startLoc;return e3.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n2,a2,!0,!1),this.eat(O.parenL)?e3.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):e3.arguments=xe,this.finishNode(e3,"NewExpression")},ge.parseTemplateElement=function(e3){var t3=e3.isTagged,i2=this.startNode();return this.type===O.invalidTemplate?(t3||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i2.value={raw:this.value.replace(/\r\n?/g,`
|
|
11
|
+
`),cooked:null}):i2.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
12
|
+
`),cooked:this.value},this.next(),i2.tail=this.type===O.backQuote,this.finishNode(i2,"TemplateElement")},ge.parseTemplate=function(e3){e3===void 0&&(e3={});var t3=e3.isTagged;t3===void 0&&(t3=!1);var i2=this.startNode();this.next(),i2.expressions=[];var n2=this.parseTemplateElement({isTagged:t3});for(i2.quasis=[n2];!n2.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),i2.expressions.push(this.parseExpression()),this.expect(O.braceR),i2.quasis.push(n2=this.parseTemplateElement({isTagged:t3}));return this.next(),this.finishNode(i2,"TemplateLiteral")},ge.isAsyncProp=function(e3){return!e3.computed&&e3.key.type==="Identifier"&&e3.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},ge.parseObj=function(e3,t3){var i2=this.startNode(),n2=!0,a2={};for(i2.properties=[],this.next();!this.eat(O.braceR);){if(n2)n2=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var c2=this.parseProperty(e3,t3);e3||this.checkPropClash(c2,a2,t3),i2.properties.push(c2)}return this.finishNode(i2,e3?"ObjectPattern":"ObjectExpression")},ge.parseProperty=function(e3,t3){var i2,n2,a2,c2,l2=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return e3?(l2.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(l2,"RestElement")):(l2.argument=this.parseMaybeAssign(!1,t3),this.type===O.comma&&t3&&t3.trailingComma<0&&(t3.trailingComma=this.start),this.finishNode(l2,"SpreadElement"));this.options.ecmaVersion>=6&&(l2.method=!1,l2.shorthand=!1,(e3||t3)&&(a2=this.start,c2=this.startLoc),e3||(i2=this.eat(O.star)));var y2=this.containsEsc;return this.parsePropertyName(l2),!e3&&!y2&&this.options.ecmaVersion>=8&&!i2&&this.isAsyncProp(l2)?(n2=!0,i2=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(l2)):n2=!1,this.parsePropertyValue(l2,e3,i2,n2,a2,c2,t3,y2),this.finishNode(l2,"Property")},ge.parseGetterSetter=function(e3){var t3=e3.key.name;this.parsePropertyName(e3),e3.value=this.parseMethod(!1),e3.kind=t3;var i2=e3.kind==="get"?0:1;if(e3.value.params.length!==i2){var n2=e3.value.start;e3.kind==="get"?this.raiseRecoverable(n2,"getter should have no params"):this.raiseRecoverable(n2,"setter should have exactly one param")}else e3.kind==="set"&&e3.value.params[0].type==="RestElement"&&this.raiseRecoverable(e3.value.params[0].start,"Setter cannot use rest params")},ge.parsePropertyValue=function(e3,t3,i2,n2,a2,c2,l2,y2){(i2||n2)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(e3.value=t3?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l2),e3.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(t3&&this.unexpected(),e3.method=!0,e3.value=this.parseMethod(i2,n2),e3.kind="init"):t3||y2||!(this.options.ecmaVersion>=5)||e3.computed||e3.key.type!=="Identifier"||e3.key.name!=="get"&&e3.key.name!=="set"||this.type===O.comma||this.type===O.braceR||this.type===O.eq?this.options.ecmaVersion>=6&&!e3.computed&&e3.key.type==="Identifier"?((i2||n2)&&this.unexpected(),this.checkUnreserved(e3.key),e3.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=a2),t3?e3.value=this.parseMaybeDefault(a2,c2,this.copyNode(e3.key)):this.type===O.eq&&l2?(l2.shorthandAssign<0&&(l2.shorthandAssign=this.start),e3.value=this.parseMaybeDefault(a2,c2,this.copyNode(e3.key))):e3.value=this.copyNode(e3.key),e3.kind="init",e3.shorthand=!0):this.unexpected():((i2||n2)&&this.unexpected(),this.parseGetterSetter(e3))},ge.parsePropertyName=function(e3){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return e3.computed=!0,e3.key=this.parseMaybeAssign(),this.expect(O.bracketR),e3.key;e3.computed=!1}return e3.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},ge.initFunction=function(e3){e3.id=null,this.options.ecmaVersion>=6&&(e3.generator=e3.expression=!1),this.options.ecmaVersion>=8&&(e3.async=!1)},ge.parseMethod=function(e3,t3,i2){var n2=this.startNode(),a2=this.yieldPos,c2=this.awaitPos,l2=this.awaitIdentPos;return this.initFunction(n2),this.options.ecmaVersion>=6&&(n2.generator=e3),this.options.ecmaVersion>=8&&(n2.async=!!t3),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(t3,n2.generator)|(i2?128:0)),this.expect(O.parenL),n2.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n2,!1,!0,!1),this.yieldPos=a2,this.awaitPos=c2,this.awaitIdentPos=l2,this.finishNode(n2,"FunctionExpression")},ge.parseArrowExpression=function(e3,t3,i2,n2){var a2=this.yieldPos,c2=this.awaitPos,l2=this.awaitIdentPos;return this.enterScope(16|functionFlags(i2,!1)),this.initFunction(e3),this.options.ecmaVersion>=8&&(e3.async=!!i2),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e3.params=this.toAssignableList(t3,!0),this.parseFunctionBody(e3,!0,!1,n2),this.yieldPos=a2,this.awaitPos=c2,this.awaitIdentPos=l2,this.finishNode(e3,"ArrowFunctionExpression")},ge.parseFunctionBody=function(e3,t3,i2,n2){var a2=t3&&this.type!==O.braceL,c2=this.strict,l2=!1;if(a2)e3.body=this.parseMaybeAssign(n2),e3.expression=!0,this.checkParams(e3,!1);else{var y2=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e3.params);c2&&!y2||(l2=this.strictDirective(this.end))&&y2&&this.raiseRecoverable(e3.start,"Illegal 'use strict' directive in function with non-simple parameter list");var E2=this.labels;this.labels=[],l2&&(this.strict=!0),this.checkParams(e3,!c2&&!l2&&!t3&&!i2&&this.isSimpleParamList(e3.params)),this.strict&&e3.id&&this.checkLValSimple(e3.id,5),e3.body=this.parseBlock(!1,void 0,l2&&!c2),e3.expression=!1,this.adaptDirectivePrologue(e3.body.body),this.labels=E2}this.exitScope()},ge.isSimpleParamList=function(e3){for(var t3=0,i2=e3;t3<i2.length;t3+=1)if(i2[t3].type!=="Identifier")return!1;return!0},ge.checkParams=function(e3,t3){for(var i2=Object.create(null),n2=0,a2=e3.params;n2<a2.length;n2+=1){var c2=a2[n2];this.checkLValInnerPattern(c2,1,t3?null:i2)}},ge.parseExprList=function(e3,t3,i2,n2){for(var a2=[],c2=!0;!this.eat(e3);){if(c2)c2=!1;else if(this.expect(O.comma),t3&&this.afterTrailingComma(e3))break;var l2=void 0;i2&&this.type===O.comma?l2=null:this.type===O.ellipsis?(l2=this.parseSpread(n2),n2&&this.type===O.comma&&n2.trailingComma<0&&(n2.trailingComma=this.start)):l2=this.parseMaybeAssign(!1,n2),a2.push(l2)}return a2},ge.checkUnreserved=function(e3){var t3=e3.start,i2=e3.end,n2=e3.name;this.inGenerator&&n2==="yield"&&this.raiseRecoverable(t3,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n2==="await"&&this.raiseRecoverable(t3,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&se||n2!=="arguments"||this.raiseRecoverable(t3,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||n2!=="arguments"&&n2!=="await"||this.raise(t3,"Cannot use "+n2+" in class static initialization block"),this.keywords.test(n2)&&this.raise(t3,"Unexpected keyword '"+n2+"'"),this.options.ecmaVersion<6&&this.input.slice(t3,i2).indexOf("\\")!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n2)&&(this.inAsync||n2!=="await"||this.raiseRecoverable(t3,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t3,"The keyword '"+n2+"' is reserved"))},ge.parseIdent=function(e3){var t3=this.parseIdentNode();return this.next(!!e3),this.finishNode(t3,"Identifier"),e3||(this.checkUnreserved(t3),t3.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=t3.start)),t3},ge.parseIdentNode=function(){var e3=this.startNode();return this.type===O.name?e3.name=this.value:this.type.keyword?(e3.name=this.type.keyword,e3.name!=="class"&&e3.name!=="function"||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=O.name):this.unexpected(),e3},ge.parsePrivateIdent=function(){var e3=this.startNode();return this.type===O.privateId?e3.name=this.value:this.unexpected(),this.next(),this.finishNode(e3,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e3.start,"Private field '#"+e3.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e3)),e3},ge.parseYield=function(e3){this.yieldPos||(this.yieldPos=this.start);var t3=this.startNode();return this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr?(t3.delegate=!1,t3.argument=null):(t3.delegate=this.eat(O.star),t3.argument=this.parseMaybeAssign(e3)),this.finishNode(t3,"YieldExpression")},ge.parseAwait=function(e3){this.awaitPos||(this.awaitPos=this.start);var t3=this.startNode();return this.next(),t3.argument=this.parseMaybeUnary(null,!0,!1,e3),this.finishNode(t3,"AwaitExpression")};var ve=acorn_Parser.prototype;ve.raise=function(e3,t3){var i2=getLineInfo(this.input,e3);t3+=" ("+i2.line+":"+i2.column+")",this.sourceFile&&(t3+=" in "+this.sourceFile);var n2=new SyntaxError(t3);throw n2.pos=e3,n2.loc=i2,n2.raisedAt=this.pos,n2},ve.raiseRecoverable=ve.raise,ve.curPosition=function(){if(this.options.locations)return new acorn_Position(this.curLine,this.pos-this.lineStart)};var ye=acorn_Parser.prototype,acorn_Scope=function(e3){this.flags=e3,this.var=[],this.lexical=[],this.functions=[]};ye.enterScope=function(e3){this.scopeStack.push(new acorn_Scope(e3))},ye.exitScope=function(){this.scopeStack.pop()},ye.treatFunctionsAsVarInScope=function(e3){return 2&e3.flags||!this.inModule&&1&e3.flags},ye.declareName=function(e3,t3,i2){var n2=!1;if(t3===2){var a2=this.currentScope();n2=a2.lexical.indexOf(e3)>-1||a2.functions.indexOf(e3)>-1||a2.var.indexOf(e3)>-1,a2.lexical.push(e3),this.inModule&&1&a2.flags&&delete this.undefinedExports[e3]}else if(t3===4)this.currentScope().lexical.push(e3);else if(t3===3){var c2=this.currentScope();n2=this.treatFunctionsAsVar?c2.lexical.indexOf(e3)>-1:c2.lexical.indexOf(e3)>-1||c2.var.indexOf(e3)>-1,c2.functions.push(e3)}else for(var l2=this.scopeStack.length-1;l2>=0;--l2){var y2=this.scopeStack[l2];if(y2.lexical.indexOf(e3)>-1&&!(32&y2.flags&&y2.lexical[0]===e3)||!this.treatFunctionsAsVarInScope(y2)&&y2.functions.indexOf(e3)>-1){n2=!0;break}if(y2.var.push(e3),this.inModule&&1&y2.flags&&delete this.undefinedExports[e3],y2.flags&se)break}n2&&this.raiseRecoverable(i2,"Identifier '"+e3+"' has already been declared")},ye.checkLocalExport=function(e3){this.scopeStack[0].lexical.indexOf(e3.name)===-1&&this.scopeStack[0].var.indexOf(e3.name)===-1&&(this.undefinedExports[e3.name]=e3)},ye.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ye.currentVarScope=function(){for(var e3=this.scopeStack.length-1;;e3--){var t3=this.scopeStack[e3];if(771&t3.flags)return t3}},ye.currentThisScope=function(){for(var e3=this.scopeStack.length-1;;e3--){var t3=this.scopeStack[e3];if(771&t3.flags&&!(16&t3.flags))return t3}};var acorn_Node=function(e3,t3,i2){this.type="",this.start=t3,this.end=0,e3.options.locations&&(this.loc=new acorn_SourceLocation(e3,i2)),e3.options.directSourceFile&&(this.sourceFile=e3.options.directSourceFile),e3.options.ranges&&(this.range=[t3,0])},_e=acorn_Parser.prototype;function finishNodeAt(e3,t3,i2,n2){return e3.type=t3,e3.end=i2,this.options.locations&&(e3.loc.end=n2),this.options.ranges&&(e3.range[1]=i2),e3}_e.startNode=function(){return new acorn_Node(this,this.start,this.startLoc)},_e.startNodeAt=function(e3,t3){return new acorn_Node(this,e3,t3)},_e.finishNode=function(e3,t3){return finishNodeAt.call(this,e3,t3,this.lastTokEnd,this.lastTokEndLoc)},_e.finishNodeAt=function(e3,t3,i2,n2){return finishNodeAt.call(this,e3,t3,i2,n2)},_e.copyNode=function(e3){var t3=new acorn_Node(this,e3.start,this.startLoc);for(var i2 in e3)t3[i2]=e3[i2];return t3};var Ee="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",be=Ee+" Extended_Pictographic",ke=be+" EBase EComp EMod EPres ExtPict",we={9:Ee,10:be,11:be,12:ke,13:ke,14:ke},Ce={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Se="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ie="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Te=Ie+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Re=Te+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ae=Re+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Le=Ae+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oe={9:Ie,10:Te,11:Re,12:Ae,13:Le,14:Le+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},De={};function buildUnicodeData(e3){var t3=De[e3]={binary:wordsRegexp(we[e3]+" "+Se),binaryOfStrings:wordsRegexp(Ce[e3]),nonBinary:{General_Category:wordsRegexp(Se),Script:wordsRegexp(Oe[e3])}};t3.nonBinary.Script_Extensions=t3.nonBinary.Script,t3.nonBinary.gc=t3.nonBinary.General_Category,t3.nonBinary.sc=t3.nonBinary.Script,t3.nonBinary.scx=t3.nonBinary.Script_Extensions}for(var Ve=0,Ue=[9,10,11,12,13,14];Ve<Ue.length;Ve+=1)buildUnicodeData(Ue[Ve]);var Me=acorn_Parser.prototype,acorn_BranchID=function(e3,t3){this.parent=e3,this.base=t3||this};acorn_BranchID.prototype.separatedFrom=function(e3){for(var t3=this;t3;t3=t3.parent)for(var i2=e3;i2;i2=i2.parent)if(t3.base===i2.base&&t3!==i2)return!0;return!1},acorn_BranchID.prototype.sibling=function(){return new acorn_BranchID(this.parent,this.base)};var acorn_RegExpValidationState=function(e3){this.parser=e3,this.validFlags="gim"+(e3.options.ecmaVersion>=6?"uy":"")+(e3.options.ecmaVersion>=9?"s":"")+(e3.options.ecmaVersion>=13?"d":"")+(e3.options.ecmaVersion>=15?"v":""),this.unicodeProperties=De[e3.options.ecmaVersion>=14?14:e3.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function isRegularExpressionModifier(e3){return e3===105||e3===109||e3===115}function isSyntaxCharacter(e3){return e3===36||e3>=40&&e3<=43||e3===46||e3===63||e3>=91&&e3<=94||e3>=123&&e3<=125}function isControlLetter(e3){return e3>=65&&e3<=90||e3>=97&&e3<=122}acorn_RegExpValidationState.prototype.reset=function(e3,t3,i2){var n2=i2.indexOf("v")!==-1,a2=i2.indexOf("u")!==-1;this.start=0|e3,this.source=t3+"",this.flags=i2,n2&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a2&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a2&&this.parser.options.ecmaVersion>=9)},acorn_RegExpValidationState.prototype.raise=function(e3){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e3)},acorn_RegExpValidationState.prototype.at=function(e3,t3){t3===void 0&&(t3=!1);var i2=this.source,n2=i2.length;if(e3>=n2)return-1;var a2=i2.charCodeAt(e3);if(!t3&&!this.switchU||a2<=55295||a2>=57344||e3+1>=n2)return a2;var c2=i2.charCodeAt(e3+1);return c2>=56320&&c2<=57343?(a2<<10)+c2-56613888:a2},acorn_RegExpValidationState.prototype.nextIndex=function(e3,t3){t3===void 0&&(t3=!1);var i2=this.source,n2=i2.length;if(e3>=n2)return n2;var a2,c2=i2.charCodeAt(e3);return!t3&&!this.switchU||c2<=55295||c2>=57344||e3+1>=n2||(a2=i2.charCodeAt(e3+1))<56320||a2>57343?e3+1:e3+2},acorn_RegExpValidationState.prototype.current=function(e3){return e3===void 0&&(e3=!1),this.at(this.pos,e3)},acorn_RegExpValidationState.prototype.lookahead=function(e3){return e3===void 0&&(e3=!1),this.at(this.nextIndex(this.pos,e3),e3)},acorn_RegExpValidationState.prototype.advance=function(e3){e3===void 0&&(e3=!1),this.pos=this.nextIndex(this.pos,e3)},acorn_RegExpValidationState.prototype.eat=function(e3,t3){return t3===void 0&&(t3=!1),this.current(t3)===e3&&(this.advance(t3),!0)},acorn_RegExpValidationState.prototype.eatChars=function(e3,t3){t3===void 0&&(t3=!1);for(var i2=this.pos,n2=0,a2=e3;n2<a2.length;n2+=1){var c2=a2[n2],l2=this.at(i2,t3);if(l2===-1||l2!==c2)return!1;i2=this.nextIndex(i2,t3)}return this.pos=i2,!0},Me.validateRegExpFlags=function(e3){for(var t3=e3.validFlags,i2=e3.flags,n2=!1,a2=!1,c2=0;c2<i2.length;c2++){var l2=i2.charAt(c2);t3.indexOf(l2)===-1&&this.raise(e3.start,"Invalid regular expression flag"),i2.indexOf(l2,c2+1)>-1&&this.raise(e3.start,"Duplicate regular expression flag"),l2==="u"&&(n2=!0),l2==="v"&&(a2=!0)}this.options.ecmaVersion>=15&&n2&&a2&&this.raise(e3.start,"Invalid regular expression flag")},Me.validateRegExpPattern=function(e3){this.regexp_pattern(e3),!e3.switchN&&this.options.ecmaVersion>=9&&(function(e4){for(var t3 in e4)return!0;return!1})(e3.groupNames)&&(e3.switchN=!0,this.regexp_pattern(e3))},Me.regexp_pattern=function(e3){e3.pos=0,e3.lastIntValue=0,e3.lastStringValue="",e3.lastAssertionIsQuantifiable=!1,e3.numCapturingParens=0,e3.maxBackReference=0,e3.groupNames=Object.create(null),e3.backReferenceNames.length=0,e3.branchID=null,this.regexp_disjunction(e3),e3.pos!==e3.source.length&&(e3.eat(41)&&e3.raise("Unmatched ')'"),(e3.eat(93)||e3.eat(125))&&e3.raise("Lone quantifier brackets")),e3.maxBackReference>e3.numCapturingParens&&e3.raise("Invalid escape");for(var t3=0,i2=e3.backReferenceNames;t3<i2.length;t3+=1){var n2=i2[t3];e3.groupNames[n2]||e3.raise("Invalid named capture referenced")}},Me.regexp_disjunction=function(e3){var t3=this.options.ecmaVersion>=16;for(t3&&(e3.branchID=new acorn_BranchID(e3.branchID,null)),this.regexp_alternative(e3);e3.eat(124);)t3&&(e3.branchID=e3.branchID.sibling()),this.regexp_alternative(e3);t3&&(e3.branchID=e3.branchID.parent),this.regexp_eatQuantifier(e3,!0)&&e3.raise("Nothing to repeat"),e3.eat(123)&&e3.raise("Lone quantifier brackets")},Me.regexp_alternative=function(e3){for(;e3.pos<e3.source.length&&this.regexp_eatTerm(e3););},Me.regexp_eatTerm=function(e3){return this.regexp_eatAssertion(e3)?(e3.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e3)&&e3.switchU&&e3.raise("Invalid quantifier"),!0):!!(e3.switchU?this.regexp_eatAtom(e3):this.regexp_eatExtendedAtom(e3))&&(this.regexp_eatQuantifier(e3),!0)},Me.regexp_eatAssertion=function(e3){var t3=e3.pos;if(e3.lastAssertionIsQuantifiable=!1,e3.eat(94)||e3.eat(36))return!0;if(e3.eat(92)){if(e3.eat(66)||e3.eat(98))return!0;e3.pos=t3}if(e3.eat(40)&&e3.eat(63)){var i2=!1;if(this.options.ecmaVersion>=9&&(i2=e3.eat(60)),e3.eat(61)||e3.eat(33))return this.regexp_disjunction(e3),e3.eat(41)||e3.raise("Unterminated group"),e3.lastAssertionIsQuantifiable=!i2,!0}return e3.pos=t3,!1},Me.regexp_eatQuantifier=function(e3,t3){return t3===void 0&&(t3=!1),!!this.regexp_eatQuantifierPrefix(e3,t3)&&(e3.eat(63),!0)},Me.regexp_eatQuantifierPrefix=function(e3,t3){return e3.eat(42)||e3.eat(43)||e3.eat(63)||this.regexp_eatBracedQuantifier(e3,t3)},Me.regexp_eatBracedQuantifier=function(e3,t3){var i2=e3.pos;if(e3.eat(123)){var n2=0,a2=-1;if(this.regexp_eatDecimalDigits(e3)&&(n2=e3.lastIntValue,e3.eat(44)&&this.regexp_eatDecimalDigits(e3)&&(a2=e3.lastIntValue),e3.eat(125)))return a2!==-1&&a2<n2&&!t3&&e3.raise("numbers out of order in {} quantifier"),!0;e3.switchU&&!t3&&e3.raise("Incomplete quantifier"),e3.pos=i2}return!1},Me.regexp_eatAtom=function(e3){return this.regexp_eatPatternCharacters(e3)||e3.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e3)||this.regexp_eatCharacterClass(e3)||this.regexp_eatUncapturingGroup(e3)||this.regexp_eatCapturingGroup(e3)},Me.regexp_eatReverseSolidusAtomEscape=function(e3){var t3=e3.pos;if(e3.eat(92)){if(this.regexp_eatAtomEscape(e3))return!0;e3.pos=t3}return!1},Me.regexp_eatUncapturingGroup=function(e3){var t3=e3.pos;if(e3.eat(40)){if(e3.eat(63)){if(this.options.ecmaVersion>=16){var i2=this.regexp_eatModifiers(e3),n2=e3.eat(45);if(i2||n2){for(var a2=0;a2<i2.length;a2++){var c2=i2.charAt(a2);i2.indexOf(c2,a2+1)>-1&&e3.raise("Duplicate regular expression modifiers")}if(n2){var l2=this.regexp_eatModifiers(e3);i2||l2||e3.current()!==58||e3.raise("Invalid regular expression modifiers");for(var y2=0;y2<l2.length;y2++){var E2=l2.charAt(y2);(l2.indexOf(E2,y2+1)>-1||i2.indexOf(E2)>-1)&&e3.raise("Duplicate regular expression modifiers")}}}}if(e3.eat(58)){if(this.regexp_disjunction(e3),e3.eat(41))return!0;e3.raise("Unterminated group")}}e3.pos=t3}return!1},Me.regexp_eatCapturingGroup=function(e3){if(e3.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e3):e3.current()===63&&e3.raise("Invalid group"),this.regexp_disjunction(e3),e3.eat(41))return e3.numCapturingParens+=1,!0;e3.raise("Unterminated group")}return!1},Me.regexp_eatModifiers=function(e3){for(var t3="",i2=0;(i2=e3.current())!==-1&&isRegularExpressionModifier(i2);)t3+=codePointToString(i2),e3.advance();return t3},Me.regexp_eatExtendedAtom=function(e3){return e3.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e3)||this.regexp_eatCharacterClass(e3)||this.regexp_eatUncapturingGroup(e3)||this.regexp_eatCapturingGroup(e3)||this.regexp_eatInvalidBracedQuantifier(e3)||this.regexp_eatExtendedPatternCharacter(e3)},Me.regexp_eatInvalidBracedQuantifier=function(e3){return this.regexp_eatBracedQuantifier(e3,!0)&&e3.raise("Nothing to repeat"),!1},Me.regexp_eatSyntaxCharacter=function(e3){var t3=e3.current();return!!isSyntaxCharacter(t3)&&(e3.lastIntValue=t3,e3.advance(),!0)},Me.regexp_eatPatternCharacters=function(e3){for(var t3=e3.pos,i2=0;(i2=e3.current())!==-1&&!isSyntaxCharacter(i2);)e3.advance();return e3.pos!==t3},Me.regexp_eatExtendedPatternCharacter=function(e3){var t3=e3.current();return!(t3===-1||t3===36||t3>=40&&t3<=43||t3===46||t3===63||t3===91||t3===94||t3===124)&&(e3.advance(),!0)},Me.regexp_groupSpecifier=function(e3){if(e3.eat(63)){this.regexp_eatGroupName(e3)||e3.raise("Invalid group");var t3=this.options.ecmaVersion>=16,i2=e3.groupNames[e3.lastStringValue];if(i2)if(t3)for(var n2=0,a2=i2;n2<a2.length;n2+=1)a2[n2].separatedFrom(e3.branchID)||e3.raise("Duplicate capture group name");else e3.raise("Duplicate capture group name");t3?(i2||(e3.groupNames[e3.lastStringValue]=[])).push(e3.branchID):e3.groupNames[e3.lastStringValue]=!0}},Me.regexp_eatGroupName=function(e3){if(e3.lastStringValue="",e3.eat(60)){if(this.regexp_eatRegExpIdentifierName(e3)&&e3.eat(62))return!0;e3.raise("Invalid capture group name")}return!1},Me.regexp_eatRegExpIdentifierName=function(e3){if(e3.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e3)){for(e3.lastStringValue+=codePointToString(e3.lastIntValue);this.regexp_eatRegExpIdentifierPart(e3);)e3.lastStringValue+=codePointToString(e3.lastIntValue);return!0}return!1},Me.regexp_eatRegExpIdentifierStart=function(e3){var t3=e3.pos,i2=this.options.ecmaVersion>=11,n2=e3.current(i2);return e3.advance(i2),n2===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e3,i2)&&(n2=e3.lastIntValue),(function(e4){return isIdentifierStart(e4,!0)||e4===36||e4===95})(n2)?(e3.lastIntValue=n2,!0):(e3.pos=t3,!1)},Me.regexp_eatRegExpIdentifierPart=function(e3){var t3=e3.pos,i2=this.options.ecmaVersion>=11,n2=e3.current(i2);return e3.advance(i2),n2===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e3,i2)&&(n2=e3.lastIntValue),(function(e4){return isIdentifierChar(e4,!0)||e4===36||e4===95||e4===8204||e4===8205})(n2)?(e3.lastIntValue=n2,!0):(e3.pos=t3,!1)},Me.regexp_eatAtomEscape=function(e3){return!!(this.regexp_eatBackReference(e3)||this.regexp_eatCharacterClassEscape(e3)||this.regexp_eatCharacterEscape(e3)||e3.switchN&&this.regexp_eatKGroupName(e3))||(e3.switchU&&(e3.current()===99&&e3.raise("Invalid unicode escape"),e3.raise("Invalid escape")),!1)},Me.regexp_eatBackReference=function(e3){var t3=e3.pos;if(this.regexp_eatDecimalEscape(e3)){var i2=e3.lastIntValue;if(e3.switchU)return i2>e3.maxBackReference&&(e3.maxBackReference=i2),!0;if(i2<=e3.numCapturingParens)return!0;e3.pos=t3}return!1},Me.regexp_eatKGroupName=function(e3){if(e3.eat(107)){if(this.regexp_eatGroupName(e3))return e3.backReferenceNames.push(e3.lastStringValue),!0;e3.raise("Invalid named reference")}return!1},Me.regexp_eatCharacterEscape=function(e3){return this.regexp_eatControlEscape(e3)||this.regexp_eatCControlLetter(e3)||this.regexp_eatZero(e3)||this.regexp_eatHexEscapeSequence(e3)||this.regexp_eatRegExpUnicodeEscapeSequence(e3,!1)||!e3.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e3)||this.regexp_eatIdentityEscape(e3)},Me.regexp_eatCControlLetter=function(e3){var t3=e3.pos;if(e3.eat(99)){if(this.regexp_eatControlLetter(e3))return!0;e3.pos=t3}return!1},Me.regexp_eatZero=function(e3){return e3.current()===48&&!isDecimalDigit(e3.lookahead())&&(e3.lastIntValue=0,e3.advance(),!0)},Me.regexp_eatControlEscape=function(e3){var t3=e3.current();return t3===116?(e3.lastIntValue=9,e3.advance(),!0):t3===110?(e3.lastIntValue=10,e3.advance(),!0):t3===118?(e3.lastIntValue=11,e3.advance(),!0):t3===102?(e3.lastIntValue=12,e3.advance(),!0):t3===114&&(e3.lastIntValue=13,e3.advance(),!0)},Me.regexp_eatControlLetter=function(e3){var t3=e3.current();return!!isControlLetter(t3)&&(e3.lastIntValue=t3%32,e3.advance(),!0)},Me.regexp_eatRegExpUnicodeEscapeSequence=function(e3,t3){t3===void 0&&(t3=!1);var i2,n2=e3.pos,a2=t3||e3.switchU;if(e3.eat(117)){if(this.regexp_eatFixedHexDigits(e3,4)){var c2=e3.lastIntValue;if(a2&&c2>=55296&&c2<=56319){var l2=e3.pos;if(e3.eat(92)&&e3.eat(117)&&this.regexp_eatFixedHexDigits(e3,4)){var y2=e3.lastIntValue;if(y2>=56320&&y2<=57343)return e3.lastIntValue=1024*(c2-55296)+(y2-56320)+65536,!0}e3.pos=l2,e3.lastIntValue=c2}return!0}if(a2&&e3.eat(123)&&this.regexp_eatHexDigits(e3)&&e3.eat(125)&&(i2=e3.lastIntValue)>=0&&i2<=1114111)return!0;a2&&e3.raise("Invalid unicode escape"),e3.pos=n2}return!1},Me.regexp_eatIdentityEscape=function(e3){if(e3.switchU)return!!this.regexp_eatSyntaxCharacter(e3)||!!e3.eat(47)&&(e3.lastIntValue=47,!0);var t3=e3.current();return!(t3===99||e3.switchN&&t3===107)&&(e3.lastIntValue=t3,e3.advance(),!0)},Me.regexp_eatDecimalEscape=function(e3){e3.lastIntValue=0;var t3=e3.current();if(t3>=49&&t3<=57){do e3.lastIntValue=10*e3.lastIntValue+(t3-48),e3.advance();while((t3=e3.current())>=48&&t3<=57);return!0}return!1};function isUnicodePropertyNameCharacter(e3){return isControlLetter(e3)||e3===95}function isUnicodePropertyValueCharacter(e3){return isUnicodePropertyNameCharacter(e3)||isDecimalDigit(e3)}function isDecimalDigit(e3){return e3>=48&&e3<=57}function isHexDigit(e3){return e3>=48&&e3<=57||e3>=65&&e3<=70||e3>=97&&e3<=102}function hexToInt(e3){return e3>=65&&e3<=70?e3-65+10:e3>=97&&e3<=102?e3-97+10:e3-48}function isOctalDigit(e3){return e3>=48&&e3<=55}Me.regexp_eatCharacterClassEscape=function(e3){var t3=e3.current();if((function(e4){return e4===100||e4===68||e4===115||e4===83||e4===119||e4===87})(t3))return e3.lastIntValue=-1,e3.advance(),1;var i2=!1;if(e3.switchU&&this.options.ecmaVersion>=9&&((i2=t3===80)||t3===112)){var n2;if(e3.lastIntValue=-1,e3.advance(),e3.eat(123)&&(n2=this.regexp_eatUnicodePropertyValueExpression(e3))&&e3.eat(125))return i2&&n2===2&&e3.raise("Invalid property name"),n2;e3.raise("Invalid property name")}return 0},Me.regexp_eatUnicodePropertyValueExpression=function(e3){var t3=e3.pos;if(this.regexp_eatUnicodePropertyName(e3)&&e3.eat(61)){var i2=e3.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e3)){var n2=e3.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e3,i2,n2),1}}if(e3.pos=t3,this.regexp_eatLoneUnicodePropertyNameOrValue(e3)){var a2=e3.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e3,a2)}return 0},Me.regexp_validateUnicodePropertyNameAndValue=function(e3,t3,i2){H(e3.unicodeProperties.nonBinary,t3)||e3.raise("Invalid property name"),e3.unicodeProperties.nonBinary[t3].test(i2)||e3.raise("Invalid property value")},Me.regexp_validateUnicodePropertyNameOrValue=function(e3,t3){return e3.unicodeProperties.binary.test(t3)?1:e3.switchV&&e3.unicodeProperties.binaryOfStrings.test(t3)?2:void e3.raise("Invalid property name")},Me.regexp_eatUnicodePropertyName=function(e3){var t3=0;for(e3.lastStringValue="";isUnicodePropertyNameCharacter(t3=e3.current());)e3.lastStringValue+=codePointToString(t3),e3.advance();return e3.lastStringValue!==""},Me.regexp_eatUnicodePropertyValue=function(e3){var t3=0;for(e3.lastStringValue="";isUnicodePropertyValueCharacter(t3=e3.current());)e3.lastStringValue+=codePointToString(t3),e3.advance();return e3.lastStringValue!==""},Me.regexp_eatLoneUnicodePropertyNameOrValue=function(e3){return this.regexp_eatUnicodePropertyValue(e3)},Me.regexp_eatCharacterClass=function(e3){if(e3.eat(91)){var t3=e3.eat(94),i2=this.regexp_classContents(e3);return e3.eat(93)||e3.raise("Unterminated character class"),t3&&i2===2&&e3.raise("Negated character class may contain strings"),!0}return!1},Me.regexp_classContents=function(e3){return e3.current()===93?1:e3.switchV?this.regexp_classSetExpression(e3):(this.regexp_nonEmptyClassRanges(e3),1)},Me.regexp_nonEmptyClassRanges=function(e3){for(;this.regexp_eatClassAtom(e3);){var t3=e3.lastIntValue;if(e3.eat(45)&&this.regexp_eatClassAtom(e3)){var i2=e3.lastIntValue;!e3.switchU||t3!==-1&&i2!==-1||e3.raise("Invalid character class"),t3!==-1&&i2!==-1&&t3>i2&&e3.raise("Range out of order in character class")}}},Me.regexp_eatClassAtom=function(e3){var t3=e3.pos;if(e3.eat(92)){if(this.regexp_eatClassEscape(e3))return!0;if(e3.switchU){var i2=e3.current();(i2===99||isOctalDigit(i2))&&e3.raise("Invalid class escape"),e3.raise("Invalid escape")}e3.pos=t3}var n2=e3.current();return n2!==93&&(e3.lastIntValue=n2,e3.advance(),!0)},Me.regexp_eatClassEscape=function(e3){var t3=e3.pos;if(e3.eat(98))return e3.lastIntValue=8,!0;if(e3.switchU&&e3.eat(45))return e3.lastIntValue=45,!0;if(!e3.switchU&&e3.eat(99)){if(this.regexp_eatClassControlLetter(e3))return!0;e3.pos=t3}return this.regexp_eatCharacterClassEscape(e3)||this.regexp_eatCharacterEscape(e3)},Me.regexp_classSetExpression=function(e3){var t3,i2=1;if(!this.regexp_eatClassSetRange(e3))if(t3=this.regexp_eatClassSetOperand(e3)){t3===2&&(i2=2);for(var n2=e3.pos;e3.eatChars([38,38]);)e3.current()!==38&&(t3=this.regexp_eatClassSetOperand(e3))?t3!==2&&(i2=1):e3.raise("Invalid character in character class");if(n2!==e3.pos)return i2;for(;e3.eatChars([45,45]);)this.regexp_eatClassSetOperand(e3)||e3.raise("Invalid character in character class");if(n2!==e3.pos)return i2}else e3.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e3)){if(!(t3=this.regexp_eatClassSetOperand(e3)))return i2;t3===2&&(i2=2)}},Me.regexp_eatClassSetRange=function(e3){var t3=e3.pos;if(this.regexp_eatClassSetCharacter(e3)){var i2=e3.lastIntValue;if(e3.eat(45)&&this.regexp_eatClassSetCharacter(e3)){var n2=e3.lastIntValue;return i2!==-1&&n2!==-1&&i2>n2&&e3.raise("Range out of order in character class"),!0}e3.pos=t3}return!1},Me.regexp_eatClassSetOperand=function(e3){return this.regexp_eatClassSetCharacter(e3)?1:this.regexp_eatClassStringDisjunction(e3)||this.regexp_eatNestedClass(e3)},Me.regexp_eatNestedClass=function(e3){var t3=e3.pos;if(e3.eat(91)){var i2=e3.eat(94),n2=this.regexp_classContents(e3);if(e3.eat(93))return i2&&n2===2&&e3.raise("Negated character class may contain strings"),n2;e3.pos=t3}if(e3.eat(92)){var a2=this.regexp_eatCharacterClassEscape(e3);if(a2)return a2;e3.pos=t3}return null},Me.regexp_eatClassStringDisjunction=function(e3){var t3=e3.pos;if(e3.eatChars([92,113])){if(e3.eat(123)){var i2=this.regexp_classStringDisjunctionContents(e3);if(e3.eat(125))return i2}else e3.raise("Invalid escape");e3.pos=t3}return null},Me.regexp_classStringDisjunctionContents=function(e3){for(var t3=this.regexp_classString(e3);e3.eat(124);)this.regexp_classString(e3)===2&&(t3=2);return t3},Me.regexp_classString=function(e3){for(var t3=0;this.regexp_eatClassSetCharacter(e3);)t3++;return t3===1?1:2},Me.regexp_eatClassSetCharacter=function(e3){var t3=e3.pos;if(e3.eat(92))return!(!this.regexp_eatCharacterEscape(e3)&&!this.regexp_eatClassSetReservedPunctuator(e3))||(e3.eat(98)?(e3.lastIntValue=8,!0):(e3.pos=t3,!1));var i2=e3.current();return!(i2<0||i2===e3.lookahead()&&(function(e4){return e4===33||e4>=35&&e4<=38||e4>=42&&e4<=44||e4===46||e4>=58&&e4<=64||e4===94||e4===96||e4===126})(i2))&&!(function(e4){return e4===40||e4===41||e4===45||e4===47||e4>=91&&e4<=93||e4>=123&&e4<=125})(i2)&&(e3.advance(),e3.lastIntValue=i2,!0)},Me.regexp_eatClassSetReservedPunctuator=function(e3){var t3=e3.current();return!!(function(e4){return e4===33||e4===35||e4===37||e4===38||e4===44||e4===45||e4>=58&&e4<=62||e4===64||e4===96||e4===126})(t3)&&(e3.lastIntValue=t3,e3.advance(),!0)},Me.regexp_eatClassControlLetter=function(e3){var t3=e3.current();return!(!isDecimalDigit(t3)&&t3!==95)&&(e3.lastIntValue=t3%32,e3.advance(),!0)},Me.regexp_eatHexEscapeSequence=function(e3){var t3=e3.pos;if(e3.eat(120)){if(this.regexp_eatFixedHexDigits(e3,2))return!0;e3.switchU&&e3.raise("Invalid escape"),e3.pos=t3}return!1},Me.regexp_eatDecimalDigits=function(e3){var t3=e3.pos,i2=0;for(e3.lastIntValue=0;isDecimalDigit(i2=e3.current());)e3.lastIntValue=10*e3.lastIntValue+(i2-48),e3.advance();return e3.pos!==t3},Me.regexp_eatHexDigits=function(e3){var t3=e3.pos,i2=0;for(e3.lastIntValue=0;isHexDigit(i2=e3.current());)e3.lastIntValue=16*e3.lastIntValue+hexToInt(i2),e3.advance();return e3.pos!==t3},Me.regexp_eatLegacyOctalEscapeSequence=function(e3){if(this.regexp_eatOctalDigit(e3)){var t3=e3.lastIntValue;if(this.regexp_eatOctalDigit(e3)){var i2=e3.lastIntValue;t3<=3&&this.regexp_eatOctalDigit(e3)?e3.lastIntValue=64*t3+8*i2+e3.lastIntValue:e3.lastIntValue=8*t3+i2}else e3.lastIntValue=t3;return!0}return!1},Me.regexp_eatOctalDigit=function(e3){var t3=e3.current();return isOctalDigit(t3)?(e3.lastIntValue=t3-48,e3.advance(),!0):(e3.lastIntValue=0,!1)},Me.regexp_eatFixedHexDigits=function(e3,t3){var i2=e3.pos;e3.lastIntValue=0;for(var n2=0;n2<t3;++n2){var a2=e3.current();if(!isHexDigit(a2))return e3.pos=i2,!1;e3.lastIntValue=16*e3.lastIntValue+hexToInt(a2),e3.advance()}return!0};var acorn_Token=function(e3){this.type=e3.type,this.value=e3.value,this.start=e3.start,this.end=e3.end,e3.options.locations&&(this.loc=new acorn_SourceLocation(e3,e3.startLoc,e3.endLoc)),e3.options.ranges&&(this.range=[e3.start,e3.end])},je=acorn_Parser.prototype;function stringToBigInt(e3){return typeof BigInt!="function"?null:BigInt(e3.replace(/_/g,""))}je.next=function(e3){!e3&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new acorn_Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},je.getToken=function(){return this.next(),new acorn_Token(this)},typeof Symbol<"u"&&(je[Symbol.iterator]=function(){var e3=this;return{next:function(){var t3=e3.getToken();return{done:t3.type===O.eof,value:t3}}}}),je.nextToken=function(){var e3=this.curContext();return e3&&e3.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(O.eof):e3.override?e3.override(this):void this.readToken(this.fullCharCodeAtPos())},je.readToken=function(e3){return isIdentifierStart(e3,this.options.ecmaVersion>=6)||e3===92?this.readWord():this.getTokenFromCode(e3)},je.fullCharCodeAt=function(e3){var t3=this.input.charCodeAt(e3);if(t3<=55295||t3>=56320)return t3;var i2=this.input.charCodeAt(e3+1);return i2<=56319||i2>=57344?t3:(t3<<10)+i2-56613888},je.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},je.skipBlockComment=function(){var e3=this.options.onComment&&this.curPosition(),t3=this.pos,i2=this.input.indexOf("*/",this.pos+=2);if(i2===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i2+2,this.options.locations)for(var n2=void 0,a2=t3;(n2=nextLineBreak(this.input,a2,this.pos))>-1;)++this.curLine,a2=this.lineStart=n2;this.options.onComment&&this.options.onComment(!0,this.input.slice(t3+2,i2),t3,this.pos,e3,this.curPosition())},je.skipLineComment=function(e3){for(var t3=this.pos,i2=this.options.onComment&&this.curPosition(),n2=this.input.charCodeAt(this.pos+=e3);this.pos<this.input.length&&!isNewLine(n2);)n2=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t3+e3,this.pos),t3,this.pos,i2,this.curPosition())},je.skipSpace=function(){e:for(;this.pos<this.input.length;){var e3=this.input.charCodeAt(this.pos);switch(e3){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e3>8&&e3<14||e3>=5760&&B.test(String.fromCharCode(e3))))break e;++this.pos}}},je.finishToken=function(e3,t3){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i2=this.type;this.type=e3,this.value=t3,this.updateContext(i2)},je.readToken_dot=function(){var e3=this.input.charCodeAt(this.pos+1);if(e3>=48&&e3<=57)return this.readNumber(!0);var t3=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e3===46&&t3===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))},je.readToken_slash=function(){var e3=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e3===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)},je.readToken_mult_modulo_exp=function(e3){var t3=this.input.charCodeAt(this.pos+1),i2=1,n2=e3===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&e3===42&&t3===42&&(++i2,n2=O.starstar,t3=this.input.charCodeAt(this.pos+2)),t3===61?this.finishOp(O.assign,i2+1):this.finishOp(n2,i2)},je.readToken_pipe_amp=function(e3){var t3=this.input.charCodeAt(this.pos+1);return t3===e3?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(O.assign,3):this.finishOp(e3===124?O.logicalOR:O.logicalAND,2):t3===61?this.finishOp(O.assign,2):this.finishOp(e3===124?O.bitwiseOR:O.bitwiseAND,1)},je.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)},je.readToken_plus_min=function(e3){var t3=this.input.charCodeAt(this.pos+1);return t3===e3?t3!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!j.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(O.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):t3===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)},je.readToken_lt_gt=function(e3){var t3=this.input.charCodeAt(this.pos+1),i2=1;return t3===e3?(i2=e3===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i2)===61?this.finishOp(O.assign,i2+1):this.finishOp(O.bitShift,i2)):t3!==33||e3!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(t3===61&&(i2=2),this.finishOp(O.relational,i2)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},je.readToken_eq_excl=function(e3){var t3=this.input.charCodeAt(this.pos+1);return t3===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e3===61&&t3===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(e3===61?O.eq:O.prefix,1)},je.readToken_question=function(){var e3=this.options.ecmaVersion;if(e3>=11){var t3=this.input.charCodeAt(this.pos+1);if(t3===46){var i2=this.input.charCodeAt(this.pos+2);if(i2<48||i2>57)return this.finishOp(O.questionDot,2)}if(t3===63)return e3>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(O.assign,3):this.finishOp(O.coalesce,2)}return this.finishOp(O.question,1)},je.readToken_numberSign=function(){var e3=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(e3=this.fullCharCodeAtPos(),!0)||e3===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(e3)+"'")},je.getTokenFromCode=function(e3){switch(e3){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var t3=this.input.charCodeAt(this.pos+1);if(t3===120||t3===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t3===111||t3===79)return this.readRadixNumber(8);if(t3===98||t3===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e3);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e3);case 124:case 38:return this.readToken_pipe_amp(e3);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e3);case 60:case 62:return this.readToken_lt_gt(e3);case 61:case 33:return this.readToken_eq_excl(e3);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(e3)+"'")},je.finishOp=function(e3,t3){var i2=this.input.slice(this.pos,this.pos+t3);return this.pos+=t3,this.finishToken(e3,i2)},je.readRegexp=function(){for(var e3,t3,i2=this.pos;;){this.pos>=this.input.length&&this.raise(i2,"Unterminated regular expression");var n2=this.input.charAt(this.pos);if(j.test(n2)&&this.raise(i2,"Unterminated regular expression"),e3)e3=!1;else{if(n2==="[")t3=!0;else if(n2==="]"&&t3)t3=!1;else if(n2==="/"&&!t3)break;e3=n2==="\\"}++this.pos}var a2=this.input.slice(i2,this.pos);++this.pos;var c2=this.pos,l2=this.readWord1();this.containsEsc&&this.unexpected(c2);var y2=this.regexpState||(this.regexpState=new acorn_RegExpValidationState(this));y2.reset(i2,a2,l2),this.validateRegExpFlags(y2),this.validateRegExpPattern(y2);var E2=null;try{E2=new RegExp(a2,l2)}catch{}return this.finishToken(O.regexp,{pattern:a2,flags:l2,value:E2})},je.readInt=function(e3,t3,i2){for(var n2=this.options.ecmaVersion>=12&&t3===void 0,a2=i2&&this.input.charCodeAt(this.pos)===48,c2=this.pos,l2=0,y2=0,E2=0,w2=t3??1/0;E2<w2;++E2,++this.pos){var C2=this.input.charCodeAt(this.pos),S2=void 0;if(n2&&C2===95)a2&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),y2===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),E2===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),y2=C2;else{if((S2=C2>=97?C2-97+10:C2>=65?C2-65+10:C2>=48&&C2<=57?C2-48:1/0)>=e3)break;y2=C2,l2=l2*e3+S2}}return n2&&y2===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===c2||t3!=null&&this.pos-c2!==t3?null:l2},je.readRadixNumber=function(e3){var t3=this.pos;this.pos+=2;var i2=this.readInt(e3);return i2==null&&this.raise(this.start+2,"Expected number in radix "+e3),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i2=stringToBigInt(this.input.slice(t3,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,i2)},je.readNumber=function(e3){var t3=this.pos;e3||this.readInt(10,void 0,!0)!==null||this.raise(t3,"Invalid number");var i2=this.pos-t3>=2&&this.input.charCodeAt(t3)===48;i2&&this.strict&&this.raise(t3,"Invalid number");var n2=this.input.charCodeAt(this.pos);if(!i2&&!e3&&this.options.ecmaVersion>=11&&n2===110){var a2=stringToBigInt(this.input.slice(t3,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,a2)}i2&&/[89]/.test(this.input.slice(t3,this.pos))&&(i2=!1),n2!==46||i2||(++this.pos,this.readInt(10),n2=this.input.charCodeAt(this.pos)),n2!==69&&n2!==101||i2||((n2=this.input.charCodeAt(++this.pos))!==43&&n2!==45||++this.pos,this.readInt(10)===null&&this.raise(t3,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var c2,l2=(c2=this.input.slice(t3,this.pos),i2?parseInt(c2,8):parseFloat(c2.replace(/_/g,"")));return this.finishToken(O.num,l2)},je.readCodePoint=function(){var e3;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var t3=++this.pos;e3=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e3>1114111&&this.invalidStringToken(t3,"Code point out of bounds")}else e3=this.readHexChar(4);return e3},je.readString=function(e3){for(var t3="",i2=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n2=this.input.charCodeAt(this.pos);if(n2===e3)break;n2===92?(t3+=this.input.slice(i2,this.pos),t3+=this.readEscapedChar(!1),i2=this.pos):n2===8232||n2===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(n2)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t3+=this.input.slice(i2,this.pos++),this.finishToken(O.string,t3)};var Fe={};je.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e3){if(e3!==Fe)throw e3;this.readInvalidTemplateToken()}this.inTemplateElement=!1},je.invalidStringToken=function(e3,t3){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Fe;this.raise(e3,t3)},je.readTmplToken=function(){for(var e3="",t3=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i2=this.input.charCodeAt(this.pos);if(i2===96||i2===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==O.template&&this.type!==O.invalidTemplate?(e3+=this.input.slice(t3,this.pos),this.finishToken(O.template,e3)):i2===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote));if(i2===92)e3+=this.input.slice(t3,this.pos),e3+=this.readEscapedChar(!0),t3=this.pos;else if(isNewLine(i2)){switch(e3+=this.input.slice(t3,this.pos),++this.pos,i2){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e3+=`
|
|
13
|
+
`;break;default:e3+=String.fromCharCode(i2)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t3=this.pos}else++this.pos}},je.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(O.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
14
|
+
`&&++this.pos;case`
|
|
15
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},je.readEscapedChar=function(e3){var t3=this.input.charCodeAt(++this.pos);switch(++this.pos,t3){case 110:return`
|
|
16
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e3){var i2=this.pos-1;this.invalidStringToken(i2,"Invalid escape sequence in template string")}default:if(t3>=48&&t3<=55){var n2=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a2=parseInt(n2,8);return a2>255&&(n2=n2.slice(0,-1),a2=parseInt(n2,8)),this.pos+=n2.length-1,t3=this.input.charCodeAt(this.pos),n2==="0"&&t3!==56&&t3!==57||!this.strict&&!e3||this.invalidStringToken(this.pos-1-n2.length,e3?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(a2)}return isNewLine(t3)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t3)}},je.readHexChar=function(e3){var t3=this.pos,i2=this.readInt(16,e3);return i2===null&&this.invalidStringToken(t3,"Bad character escape sequence"),i2},je.readWord1=function(){this.containsEsc=!1;for(var e3="",t3=!0,i2=this.pos,n2=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a2=this.fullCharCodeAtPos();if(isIdentifierChar(a2,n2))this.pos+=a2<=65535?1:2;else{if(a2!==92)break;this.containsEsc=!0,e3+=this.input.slice(i2,this.pos);var c2=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var l2=this.readCodePoint();(t3?isIdentifierStart:isIdentifierChar)(l2,n2)||this.invalidStringToken(c2,"Invalid Unicode escape"),e3+=codePointToString(l2),i2=this.pos}t3=!1}return e3+this.input.slice(i2,this.pos)},je.readWord=function(){var e3=this.readWord1(),t3=O.name;return this.keywords.test(e3)&&(t3=N[e3]),this.finishToken(t3,e3)},acorn_Parser.acorn={Parser:acorn_Parser,version:"8.16.0",defaultOptions:X,Position:acorn_Position,SourceLocation:acorn_SourceLocation,getLineInfo,Node:acorn_Node,TokenType:acorn_TokenType,tokTypes:O,keywordTypes:N,TokContext:acorn_TokContext,tokContexts:fe,isIdentifierChar,isIdentifierStart,Token:acorn_Token,isNewLine,lineBreak:j,lineBreakG:F,nonASCIIwhitespace:B};var Be=__webpack_require__("node:module"),$e=__webpack_require__("node:fs");String.fromCharCode;let qe=/\/$|\/\?|\/#/,Ge=/^\.?\//;function hasTrailingSlash(e3="",t3){return t3?qe.test(e3):e3.endsWith("/")}function withTrailingSlash(e3="",t3){if(!t3)return e3.endsWith("/")?e3:e3+"/";if(hasTrailingSlash(e3,!0))return e3||"/";let i2=e3,n2="",a2=e3.indexOf("#");if(a2!==-1&&(i2=e3.slice(0,a2),n2=e3.slice(a2),!i2))return n2;let[c2,...l2]=i2.split("?");return c2+"/"+(l2.length>0?`?${l2.join("?")}`:"")+n2}function isNonEmptyURL(e3){return e3&&e3!=="/"}function dist_joinURL(e3,...t3){let i2=e3||"";for(let e4 of t3.filter(e5=>isNonEmptyURL(e5)))if(i2){let t4=e4.replace(Ge,"");i2=withTrailingSlash(i2)+t4}else i2=e4;return i2}let Ke=/^[A-Za-z]:\//;function pathe_M_eThtNZ_normalizeWindowsPath(e3=""){return e3&&e3.replace(/\\/g,"/").replace(Ke,e4=>e4.toUpperCase())}let He=/^[/\\]{2}/,ze=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Je=/^[A-Za-z]:$/,Ye=/.(\.[^./]+|\.)$/,pathe_M_eThtNZ_normalize=function(e3){if(e3.length===0)return".";let t3=(e3=pathe_M_eThtNZ_normalizeWindowsPath(e3)).match(He),i2=isAbsolute(e3),n2=e3[e3.length-1]==="/";return(e3=normalizeString(e3,!i2)).length===0?i2?"/":n2?"./":".":(n2&&(e3+="/"),Je.test(e3)&&(e3+="/"),t3?i2?`//${e3}`:`//./${e3}`:i2&&!isAbsolute(e3)?`/${e3}`:e3)},pathe_M_eThtNZ_join=function(...e3){let t3="";for(let i2 of e3)if(i2)if(t3.length>0){let e4=t3[t3.length-1]==="/",n2=i2[0]==="/";t3+=e4&&n2?i2.slice(1):e4||n2?i2:`/${i2}`}else t3+=i2;return pathe_M_eThtNZ_normalize(t3)};function pathe_M_eThtNZ_cwd(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let pathe_M_eThtNZ_resolve=function(...e3){let t3="",i2=!1;for(let n2=(e3=e3.map(e4=>pathe_M_eThtNZ_normalizeWindowsPath(e4))).length-1;n2>=-1&&!i2;n2--){let a2=n2>=0?e3[n2]:pathe_M_eThtNZ_cwd();a2&&a2.length!==0&&(t3=`${a2}/${t3}`,i2=isAbsolute(a2))}return t3=normalizeString(t3,!i2),i2&&!isAbsolute(t3)?`/${t3}`:t3.length>0?t3:"."};function normalizeString(e3,t3){let i2="",n2=0,a2=-1,c2=0,l2=null;for(let y2=0;y2<=e3.length;++y2){if(y2<e3.length)l2=e3[y2];else{if(l2==="/")break;l2="/"}if(l2==="/"){if(!(a2===y2-1||c2===1))if(c2===2){if(i2.length<2||n2!==2||i2[i2.length-1]!=="."||i2[i2.length-2]!=="."){if(i2.length>2){let e4=i2.lastIndexOf("/");e4===-1?(i2="",n2=0):(i2=i2.slice(0,e4),n2=i2.length-1-i2.lastIndexOf("/")),a2=y2,c2=0;continue}if(i2.length>0){i2="",n2=0,a2=y2,c2=0;continue}}t3&&(i2+=i2.length>0?"/..":"..",n2=2)}else i2.length>0?i2+=`/${e3.slice(a2+1,y2)}`:i2=e3.slice(a2+1,y2),n2=y2-a2-1;a2=y2,c2=0}else l2==="."&&c2!==-1?++c2:c2=-1}return i2}let isAbsolute=function(e3){return ze.test(e3)},extname=function(e3){if(e3==="..")return"";let t3=Ye.exec(pathe_M_eThtNZ_normalizeWindowsPath(e3));return t3&&t3[1]||""},pathe_M_eThtNZ_dirname=function(e3){let t3=pathe_M_eThtNZ_normalizeWindowsPath(e3).replace(/\/$/,"").split("/").slice(0,-1);return t3.length===1&&Je.test(t3[0])&&(t3[0]+="/"),t3.join("/")||(isAbsolute(e3)?"/":".")},basename=function(e3,t3){let i2=pathe_M_eThtNZ_normalizeWindowsPath(e3).split("/"),n2="";for(let e4=i2.length-1;e4>=0;e4--){let t4=i2[e4];if(t4){n2=t4;break}}return t3&&n2.endsWith(t3)?n2.slice(0,-t3.length):n2},Qe=__require("node:url"),Ze=__require("node:assert"),Xe=__require("node:process");var et=__webpack_require__("node:path");let tt=__require("node:v8"),it=__require("node:util"),st=new Set(Be.builtinModules);function normalizeSlash(e3){return e3.replace(/\\/g,"/")}let rt={}.hasOwnProperty,nt=/^([A-Z][a-z\d]*)+$/,at=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),ot={};function formatList(e3,t3="and"){return e3.length<3?e3.join(` ${t3} `):`${e3.slice(0,-1).join(", ")}, ${t3} ${e3[e3.length-1]}`}let ct=new Map,ht;function createError(e3,t3,i2){return ct.set(e3,t3),(function(e4,t4){return NodeError;function NodeError(...i3){let n2=Error.stackTraceLimit;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=0);let a2=new e4;isErrorStackTraceLimitWritable()&&(Error.stackTraceLimit=n2);let c2=(function(e5,t5,i4){let n3=ct.get(e5);if(Ze.ok(n3!==void 0,"expected `message` to be found"),typeof n3=="function")return Ze.ok(n3.length<=t5.length,`Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${n3.length}).`),Reflect.apply(n3,i4,t5);let a3=/%[dfijoOs]/g,c3=0;for(;a3.exec(n3)!==null;)c3++;return Ze.ok(c3===t5.length,`Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${c3}).`),t5.length===0?n3:(t5.unshift(n3),Reflect.apply(it.format,null,t5))})(t4,i3,a2);return Object.defineProperties(a2,{message:{value:c2,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t4}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),lt(a2),a2.code=t4,a2}})(i2,e3)}function isErrorStackTraceLimitWritable(){try{if(tt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e3=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e3===void 0?Object.isExtensible(Error):rt.call(e3,"writable")&&e3.writable!==void 0?e3.writable:e3.set!==void 0}ot.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",(e3,t3,i2)=>{Ze.ok(typeof e3=="string","'name' must be a string"),Array.isArray(t3)||(t3=[t3]);let n2="The ";if(e3.endsWith(" argument"))n2+=`${e3} `;else{let t4=e3.includes(".")?"property":"argument";n2+=`"${e3}" ${t4} `}n2+="must be ";let a2=[],c2=[],l2=[];for(let e4 of t3)Ze.ok(typeof e4=="string","All expected entries have to be of type string"),at.has(e4)?a2.push(e4.toLowerCase()):nt.exec(e4)===null?(Ze.ok(e4!=="object",'The value "object" should be written as "Object"'),l2.push(e4)):c2.push(e4);if(c2.length>0){let e4=a2.indexOf("object");e4!==-1&&(a2.slice(e4,1),c2.push("Object"))}return a2.length>0&&(n2+=`${a2.length>1?"one of type":"of type"} ${formatList(a2,"or")}`,(c2.length>0||l2.length>0)&&(n2+=" or ")),c2.length>0&&(n2+=`an instance of ${formatList(c2,"or")}`,l2.length>0&&(n2+=" or ")),l2.length>0&&(l2.length>1?n2+=`one of ${formatList(l2,"or")}`:(l2[0].toLowerCase()!==l2[0]&&(n2+="an "),n2+=`${l2[0]}`)),n2+=`. Received ${(function(e4){if(e4==null)return String(e4);if(typeof e4=="function"&&e4.name)return`function ${e4.name}`;if(typeof e4=="object")return e4.constructor&&e4.constructor.name?`an instance of ${e4.constructor.name}`:`${(0,it.inspect)(e4,{depth:-1})}`;let t4=(0,it.inspect)(e4,{colors:!1});return t4.length>28&&(t4=`${t4.slice(0,25)}...`),`type ${typeof e4} (${t4})`})(i2)}`,n2},TypeError),ot.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",(e3,t3,i2=void 0)=>`Invalid module "${e3}" ${t3}${i2?` imported from ${i2}`:""}`,TypeError),ot.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",(e3,t3,i2)=>`Invalid package config ${e3}${t3?` while importing ${t3}`:""}${i2?`. ${i2}`:""}`,Error),ot.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",(e3,t3,i2,n2=!1,a2=void 0)=>{let c2=typeof i2=="string"&&!n2&&i2.length>0&&!i2.startsWith("./");return t3==="."?(Ze.ok(n2===!1),`Invalid "exports" main target ${JSON.stringify(i2)} defined in the package config ${e3}package.json${a2?` imported from ${a2}`:""}${c2?'; targets must start with "./"':""}`):`Invalid "${n2?"imports":"exports"}" target ${JSON.stringify(i2)} defined for '${t3}' in the package config ${e3}package.json${a2?` imported from ${a2}`:""}${c2?'; targets must start with "./"':""}`},Error),ot.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",(e3,t3,i2=!1)=>`Cannot find ${i2?"module":"package"} '${e3}' imported from ${t3}`,Error),ot.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),ot.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e3,t3,i2)=>`Package import specifier "${e3}" is not defined${t3?` in package ${t3}package.json`:""} imported from ${i2}`,TypeError),ot.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",(e3,t3,i2=void 0)=>t3==="."?`No "exports" main defined in ${e3}package.json${i2?` imported from ${i2}`:""}`:`Package subpath '${t3}' is not defined by "exports" in ${e3}package.json${i2?` imported from ${i2}`:""}`,Error),ot.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),ot.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),ot.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",(e3,t3)=>`Unknown file extension "${e3}" for ${t3}`,TypeError),ot.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",(e3,t3,i2="is invalid")=>{let n2=(0,it.inspect)(t3);return n2.length>128&&(n2=`${n2.slice(0,128)}...`),`The ${e3.includes(".")?"property":"argument"} '${e3}' ${i2}. Received ${n2}`},TypeError);let lt=(function(e3){let t3="__node_internal_"+e3.name;return Object.defineProperty(e3,"name",{value:t3}),e3})(function(e3){let t3=isErrorStackTraceLimitWritable();return t3&&(ht=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e3),t3&&(Error.stackTraceLimit=ht),e3}),pt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:ut}=ot,dt=new Map;function read(e3,{base:t3,specifier:i2}){let n2=dt.get(e3);if(n2)return n2;let a2;try{a2=$e.readFileSync(et.toNamespacedPath(e3),"utf8")}catch(e4){let t4=e4;if(t4.code!=="ENOENT")throw t4}let c2={exists:!1,pjsonPath:e3,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(a2!==void 0){let n3;try{n3=JSON.parse(a2)}catch(n4){let a3=n4,c3=new ut(e3,(t3?`"${i2}" from `:"")+(0,Qe.fileURLToPath)(t3||i2),a3.message);throw c3.cause=a3,c3}c2.exists=!0,pt.call(n3,"name")&&typeof n3.name=="string"&&(c2.name=n3.name),pt.call(n3,"main")&&typeof n3.main=="string"&&(c2.main=n3.main),pt.call(n3,"exports")&&(c2.exports=n3.exports),pt.call(n3,"imports")&&(c2.imports=n3.imports),!pt.call(n3,"type")||n3.type!=="commonjs"&&n3.type!=="module"||(c2.type=n3.type)}return dt.set(e3,c2),c2}function getPackageScopeConfig(e3){let t3=new URL("package.json",e3);for(;!t3.pathname.endsWith("node_modules/package.json");){let i2=read((0,Qe.fileURLToPath)(t3),{specifier:e3});if(i2.exists)return i2;let n2=t3;if(t3=new URL("../package.json",t3),t3.pathname===n2.pathname)break}return{pjsonPath:(0,Qe.fileURLToPath)(t3),exists:!1,type:"none"}}function getPackageType(e3){return getPackageScopeConfig(e3).type}let{ERR_UNKNOWN_FILE_EXTENSION:ft}=ot,mt={}.hasOwnProperty,gt={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},xt={__proto__:null,"data:":function(e3){let{1:t3}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e3.pathname)||[null,null,null];return(function(e4){return e4&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e4)?"module":e4==="application/json"?"json":null})(t3)},"file:":function(e3,t3,i2){let n2=(function(e4){let t4=e4.pathname,i3=t4.length;for(;i3--;){let e5=t4.codePointAt(i3);if(e5===47)return"";if(e5===46)return t4.codePointAt(i3-1)===47?"":t4.slice(i3)}return""})(e3);if(n2===".js"){let t4=getPackageType(e3);return t4!=="none"?t4:"commonjs"}if(n2===""){let t4=getPackageType(e3);return t4==="none"||t4==="commonjs"?"commonjs":"module"}let a2=gt[n2];if(a2)return a2;if(i2)return;let c2=(0,Qe.fileURLToPath)(e3);throw new ft(n2,c2)},"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:":()=>"builtin"};function getHttpProtocolModuleFormat(){}let vt=Object.freeze(["node","import"]),yt=new Set(vt);function getConditionsSet(e3){return yt}let _t=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:Et,ERR_INVALID_PACKAGE_CONFIG:bt,ERR_INVALID_PACKAGE_TARGET:kt,ERR_MODULE_NOT_FOUND:wt,ERR_PACKAGE_IMPORT_NOT_DEFINED:Ct,ERR_PACKAGE_PATH_NOT_EXPORTED:St,ERR_UNSUPPORTED_DIR_IMPORT:It,ERR_UNSUPPORTED_RESOLVE_REQUEST:Tt}=ot,Rt={}.hasOwnProperty,At=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Pt=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Lt=/^\.|%|\\/,Nt=/\*/g,Ot=/%2f|%5c/i,Dt=new Set,Vt=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e3,t3,i2,n2,a2,c2,l2){if(Xe.noDeprecation)return;let y2=(0,Qe.fileURLToPath)(n2),E2=Vt.exec(l2?e3:t3)!==null;Xe.emitWarning(`Use of deprecated ${E2?"double slash":"leading or trailing slash matching"} resolving "${e3}" for module request "${t3}" ${t3===i2?"":`matched to "${i2}" `}in the "${a2?"imports":"exports"}" field module resolution of the package at ${y2}${c2?` imported from ${(0,Qe.fileURLToPath)(c2)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e3,t3,i2,n2){if(Xe.noDeprecation||(function(e4,t4){let i3=e4.protocol;return mt.call(xt,i3)&&xt[i3](e4,t4,!0)||null})(e3,{parentURL:i2.href})!=="module")return;let c2=(0,Qe.fileURLToPath)(e3.href),l2=(0,Qe.fileURLToPath)(new URL(".",t3)),y2=(0,Qe.fileURLToPath)(i2);n2?et.resolve(l2,n2)!==c2&&Xe.emitWarning(`Package ${l2} has a "main" field set to "${n2}", excluding the full filename and extension to the resolved file at "${c2.slice(l2.length)}", imported from ${y2}.
|
|
17
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Xe.emitWarning(`No "main" or "exports" field defined in the package.json for ${l2} resolving the main entry point "${c2.slice(l2.length)}", imported from ${y2}.
|
|
18
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function tryStatSync(e3){try{return(0,$e.statSync)(e3)}catch{}}function fileExists(e3){let t3=(0,$e.statSync)(e3,{throwIfNoEntry:!1}),i2=t3?t3.isFile():void 0;return i2!=null&&i2}function legacyMainResolve(e3,t3,i2){let n2;if(t3.main!==void 0){if(n2=new URL(t3.main,e3),fileExists(n2))return n2;let a3=[`./${t3.main}.js`,`./${t3.main}.json`,`./${t3.main}.node`,`./${t3.main}/index.js`,`./${t3.main}/index.json`,`./${t3.main}/index.node`],c3=-1;for(;++c3<a3.length&&(n2=new URL(a3[c3],e3),!fileExists(n2));)n2=void 0;if(n2)return emitLegacyIndexDeprecation(n2,e3,i2,t3.main),n2}let a2=["./index.js","./index.json","./index.node"],c2=-1;for(;++c2<a2.length&&(n2=new URL(a2[c2],e3),!fileExists(n2));)n2=void 0;if(n2)return emitLegacyIndexDeprecation(n2,e3,i2,t3.main),n2;throw new wt((0,Qe.fileURLToPath)(new URL(".",e3)),(0,Qe.fileURLToPath)(i2))}function exportsNotFound(e3,t3,i2){return new St((0,Qe.fileURLToPath)(new URL(".",t3)),e3,i2&&(0,Qe.fileURLToPath)(i2))}function invalidPackageTarget(e3,t3,i2,n2,a2){return t3=typeof t3=="object"&&t3!==null?JSON.stringify(t3,null,""):`${t3}`,new kt((0,Qe.fileURLToPath)(new URL(".",i2)),e3,t3,n2,a2&&(0,Qe.fileURLToPath)(a2))}function resolvePackageTargetString(e3,t3,i2,n2,a2,c2,l2,y2,E2){if(t3!==""&&!c2&&e3[e3.length-1]!=="/")throw invalidPackageTarget(i2,e3,n2,l2,a2);if(!e3.startsWith("./")){if(l2&&!e3.startsWith("../")&&!e3.startsWith("/")){let i3=!1;try{new URL(e3),i3=!0}catch{}if(!i3)return packageResolve(c2?_t.call(Nt,e3,()=>t3):e3+t3,n2,E2)}throw invalidPackageTarget(i2,e3,n2,l2,a2)}if(At.exec(e3.slice(2))!==null){if(Pt.exec(e3.slice(2))!==null)throw invalidPackageTarget(i2,e3,n2,l2,a2);if(!y2){let y3=c2?i2.replace("*",()=>t3):i2+t3;emitInvalidSegmentDeprecation(c2?_t.call(Nt,e3,()=>t3):e3,y3,i2,n2,l2,a2,!0)}}let w2=new URL(e3,n2),C2=w2.pathname,S2=new URL(".",n2).pathname;if(!C2.startsWith(S2))throw invalidPackageTarget(i2,e3,n2,l2,a2);if(t3==="")return w2;if(At.exec(t3)!==null){let E3=c2?i2.replace("*",()=>t3):i2+t3;Pt.exec(t3)===null?y2||emitInvalidSegmentDeprecation(c2?_t.call(Nt,e3,()=>t3):e3,E3,i2,n2,l2,a2,!1):(function(e4,t4,i3,n3,a3){let c3=`request is not a valid match in pattern "${t4}" for the "${n3?"imports":"exports"}" resolution of ${(0,Qe.fileURLToPath)(i3)}`;throw new Et(e4,c3,a3&&(0,Qe.fileURLToPath)(a3))})(E3,i2,n2,l2,a2)}return c2?new URL(_t.call(Nt,w2.href,()=>t3)):new URL(t3,w2)}function isArrayIndex(e3){let t3=Number(e3);return`${t3}`===e3&&t3>=0&&t3<4294967295}function resolvePackageTarget(e3,t3,i2,n2,a2,c2,l2,y2,E2){if(typeof t3=="string")return resolvePackageTargetString(t3,i2,n2,e3,a2,c2,l2,y2,E2);if(Array.isArray(t3)){let w2=t3;if(w2.length===0)return null;let C2,S2=-1;for(;++S2<w2.length;){let t4=w2[S2],I2;try{I2=resolvePackageTarget(e3,t4,i2,n2,a2,c2,l2,y2,E2)}catch(e4){if(C2=e4,e4.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw e4}if(I2!==void 0){if(I2!==null)return I2;C2=null}}if(C2==null)return null;throw C2}if(typeof t3=="object"&&t3!==null){let w2=Object.getOwnPropertyNames(t3),C2=-1;for(;++C2<w2.length;)if(isArrayIndex(w2[C2]))throw new bt((0,Qe.fileURLToPath)(e3),a2,'"exports" cannot contain numeric property keys.');for(C2=-1;++C2<w2.length;){let S2=w2[C2];if(S2==="default"||E2&&E2.has(S2)){let w3=resolvePackageTarget(e3,t3[S2],i2,n2,a2,c2,l2,y2,E2);if(w3===void 0)continue;return w3}}return null}if(t3===null)return null;throw invalidPackageTarget(n2,t3,e3,l2,a2)}function emitTrailingSlashPatternDeprecation(e3,t3,i2){if(Xe.noDeprecation)return;let n2=(0,Qe.fileURLToPath)(t3);Dt.has(n2+"|"+e3)||(Dt.add(n2+"|"+e3),Xe.emitWarning(`Use of deprecated trailing slash pattern mapping "${e3}" in the "exports" field module resolution of the package at ${n2}${i2?` imported from ${(0,Qe.fileURLToPath)(i2)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function packageExportsResolve(e3,t3,i2,n2,a2){let c2=i2.exports;if((function(e4,t4,i3){if(typeof e4=="string"||Array.isArray(e4))return!0;if(typeof e4!="object"||e4===null)return!1;let n3=Object.getOwnPropertyNames(e4),a3=!1,c3=0,l3=-1;for(;++l3<n3.length;){let e5=n3[l3],y3=e5===""||e5[0]!==".";if(c3++===0)a3=y3;else if(a3!==y3)throw new bt((0,Qe.fileURLToPath)(t4),i3,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return a3})(c2,e3,n2)&&(c2={".":c2}),Rt.call(c2,t3)&&!t3.includes("*")&&!t3.endsWith("/")){let i3=resolvePackageTarget(e3,c2[t3],"",t3,n2,!1,!1,!1,a2);if(i3==null)throw exportsNotFound(t3,e3,n2);return i3}let l2="",y2="",E2=Object.getOwnPropertyNames(c2),w2=-1;for(;++w2<E2.length;){let i3=E2[w2],a3=i3.indexOf("*");if(a3!==-1&&t3.startsWith(i3.slice(0,a3))){t3.endsWith("/")&&emitTrailingSlashPatternDeprecation(t3,e3,n2);let c3=i3.slice(a3+1);t3.length>=i3.length&&t3.endsWith(c3)&&patternKeyCompare(l2,i3)===1&&i3.lastIndexOf("*")===a3&&(l2=i3,y2=t3.slice(a3,t3.length-c3.length))}}if(l2){let i3=resolvePackageTarget(e3,c2[l2],y2,l2,n2,!0,!1,t3.endsWith("/"),a2);if(i3==null)throw exportsNotFound(t3,e3,n2);return i3}throw exportsNotFound(t3,e3,n2)}function patternKeyCompare(e3,t3){let i2=e3.indexOf("*"),n2=t3.indexOf("*"),a2=i2===-1?e3.length:i2+1,c2=n2===-1?t3.length:n2+1;return a2>c2?-1:c2>a2||i2===-1?1:n2===-1||e3.length>t3.length?-1:t3.length>e3.length?1:0}function packageImportsResolve(e3,t3,i2){if(e3==="#"||e3.startsWith("#/")||e3.endsWith("/"))throw new Et(e3,"is not a valid internal imports specifier name",(0,Qe.fileURLToPath)(t3));let n2,a2=getPackageScopeConfig(t3);if(a2.exists){n2=(0,Qe.pathToFileURL)(a2.pjsonPath);let c2=a2.imports;if(c2)if(Rt.call(c2,e3)&&!e3.includes("*")){let a3=resolvePackageTarget(n2,c2[e3],"",e3,t3,!1,!0,!1,i2);if(a3!=null)return a3}else{let a3="",l2="",y2=Object.getOwnPropertyNames(c2),E2=-1;for(;++E2<y2.length;){let t4=y2[E2],i3=t4.indexOf("*");if(i3!==-1&&e3.startsWith(t4.slice(0,-1))){let n3=t4.slice(i3+1);e3.length>=t4.length&&e3.endsWith(n3)&&patternKeyCompare(a3,t4)===1&&t4.lastIndexOf("*")===i3&&(a3=t4,l2=e3.slice(i3,e3.length-n3.length))}}if(a3){let e4=resolvePackageTarget(n2,c2[a3],l2,a3,t3,!0,!0,!1,i2);if(e4!=null)return e4}}}throw(function(e4,t4,i3){return new Ct(e4,t4&&(0,Qe.fileURLToPath)(new URL(".",t4)),(0,Qe.fileURLToPath)(i3))})(e3,n2,t3)}function packageResolve(e3,t3,i2){if(Be.builtinModules.includes(e3))return new URL("node:"+e3);let{packageName:n2,packageSubpath:a2,isScoped:c2}=(function(e4,t4){let i3=e4.indexOf("/"),n3=!0,a3=!1;e4[0]==="@"&&(a3=!0,i3===-1||e4.length===0?n3=!1:i3=e4.indexOf("/",i3+1));let c3=i3===-1?e4:e4.slice(0,i3);if(Lt.exec(c3)!==null&&(n3=!1),!n3)throw new Et(e4,"is not a valid package name",(0,Qe.fileURLToPath)(t4));return{packageName:c3,packageSubpath:"."+(i3===-1?"":e4.slice(i3)),isScoped:a3}})(e3,t3),l2=getPackageScopeConfig(t3);if(l2.exists){let e4=(0,Qe.pathToFileURL)(l2.pjsonPath);if(l2.name===n2&&l2.exports!==void 0&&l2.exports!==null)return packageExportsResolve(e4,a2,l2,t3,i2)}let y2,E2=new URL("./node_modules/"+n2+"/package.json",t3),w2=(0,Qe.fileURLToPath)(E2);do{let l3=tryStatSync(w2.slice(0,-13));if(!l3||!l3.isDirectory()){y2=w2,E2=new URL((c2?"../../../../node_modules/":"../../../node_modules/")+n2+"/package.json",E2),w2=(0,Qe.fileURLToPath)(E2);continue}let C2=read(w2,{base:t3,specifier:e3});return C2.exports!==void 0&&C2.exports!==null?packageExportsResolve(E2,a2,C2,t3,i2):a2==="."?legacyMainResolve(E2,C2,t3):new URL(a2,E2)}while(w2.length!==y2.length)}function moduleResolve(e3,t3,i2,n2){i2===void 0&&(i2=getConditionsSet());let a2=t3.protocol,c2=a2==="data:"||a2==="http:"||a2==="https:",l2;if((function(e4){return e4!==""&&(e4[0]==="/"||(function(e5){return e5[0]==="."&&(e5.length===1||e5[1]==="/"||e5[1]==="."&&(e5.length===2||e5[2]==="/"))})(e4))})(e3))try{l2=new URL(e3,t3)}catch(i3){let n3=new Tt(e3,t3);throw n3.cause=i3,n3}else if(a2==="file:"&&e3[0]==="#")l2=packageImportsResolve(e3,t3,i2);else try{l2=new URL(e3)}catch(n3){if(c2&&!Be.builtinModules.includes(e3)){let i3=new Tt(e3,t3);throw i3.cause=n3,i3}l2=packageResolve(e3,t3,i2)}return Ze.ok(l2!==void 0,"expected to be defined"),l2.protocol!=="file:"?l2:(function(e4,t4){if(Ot.exec(e4.pathname)!==null)throw new Et(e4.pathname,'must not include encoded "/" or "\\" characters',(0,Qe.fileURLToPath)(t4));let i3;try{i3=(0,Qe.fileURLToPath)(e4)}catch(i4){let n4=i4;throw Object.defineProperty(n4,"input",{value:String(e4)}),Object.defineProperty(n4,"module",{value:String(t4)}),n4}let n3=tryStatSync(i3.endsWith("/")?i3.slice(-1):i3);if(n3&&n3.isDirectory()){let n4=new It(i3,(0,Qe.fileURLToPath)(t4));throw n4.url=String(e4),n4}if(!n3||!n3.isFile()){let n4=new wt(i3||e4.pathname,t4&&(0,Qe.fileURLToPath)(t4),!0);throw n4.url=String(e4),n4}{let t5=(0,$e.realpathSync)(i3),{search:n4,hash:a3}=e4;(e4=(0,Qe.pathToFileURL)(t5+(i3.endsWith(et.sep)?"/":""))).search=n4,e4.hash=a3}return e4})(l2,t3)}function fileURLToPath(e3){return typeof e3!="string"||e3.startsWith("file://")?normalizeSlash((0,Qe.fileURLToPath)(e3)):normalizeSlash(e3)}function pathToFileURL(e3){return(0,Qe.pathToFileURL)(fileURLToPath(e3)).toString()}let Ut=new Set(["node","import"]),Mt=[".mjs",".cjs",".js",".json"],jt=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function _tryModuleResolve(e3,t3,i2){try{return moduleResolve(e3,t3,i2)}catch(e4){if(!jt.has(e4?.code))throw e4}}function _resolve(e3,t3={}){if(typeof e3!="string"){if(!(e3 instanceof URL))throw new TypeError("input must be a `string` or `URL`");e3=fileURLToPath(e3)}if(/(?:node|data|http|https):/.test(e3))return e3;if(st.has(e3))return"node:"+e3;if(e3.startsWith("file://")&&(e3=fileURLToPath(e3)),isAbsolute(e3))try{if((0,$e.statSync)(e3).isFile())return pathToFileURL(e3)}catch(e4){if(e4?.code!=="ENOENT")throw e4}let i2=t3.conditions?new Set(t3.conditions):Ut,n2=(Array.isArray(t3.url)?t3.url:[t3.url]).filter(Boolean).map(e4=>new URL((function(e5){return typeof e5!="string"&&(e5=e5.toString()),/(?:node|data|http|https|file):/.test(e5)?e5:st.has(e5)?"node:"+e5:"file://"+encodeURI(normalizeSlash(e5))})(e4.toString())));n2.length===0&&n2.push(new URL(pathToFileURL(process.cwd())));let a2=[...n2];for(let e4 of n2)e4.protocol==="file:"&&a2.push(new URL("./",e4),new URL(dist_joinURL(e4.pathname,"_index.js"),e4),new URL("node_modules",e4));let c2;for(let n3 of a2){if(c2=_tryModuleResolve(e3,n3,i2),c2)break;for(let a3 of["","/index"]){for(let l2 of t3.extensions||Mt)if(c2=_tryModuleResolve(dist_joinURL(e3,a3)+l2,n3,i2),c2)break;if(c2)break}if(c2)break}if(!c2){let t4=new Error(`Cannot find module ${e3} imported from ${a2.join(", ")}`);throw t4.code="ERR_MODULE_NOT_FOUND",t4}return pathToFileURL(c2)}function resolveSync(e3,t3){return _resolve(e3,t3)}function resolvePathSync(e3,t3){return fileURLToPath(resolveSync(e3,t3))}let Ft=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Bt=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function hasESMSyntax(e3,t3={}){return t3.stripComments&&(e3=e3.replace(Bt,"")),Ft.test(e3)}function escapeStringRegexp(e3){if(typeof e3!="string")throw new TypeError("Expected a string");return e3.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let $t=new Set(["/","\\",void 0]),qt=Symbol.for("pathe:normalizedAlias"),Wt=/[/\\]/;function normalizeAliases(e3){if(e3[qt])return e3;let t3=Object.fromEntries(Object.entries(e3).sort(([e4],[t4])=>(function(e5,t5){return t5.split("/").length-e5.split("/").length})(e4,t4)));for(let e4 in t3)for(let i2 in t3)i2===e4||e4.startsWith(i2)||t3[e4]?.startsWith(i2)&&$t.has(t3[e4][i2.length])&&(t3[e4]=t3[i2]+t3[e4].slice(i2.length));return Object.defineProperty(t3,qt,{value:!0,enumerable:!1}),t3}function utils_hasTrailingSlash(e3="/"){let t3=e3[e3.length-1];return t3==="/"||t3==="\\"}var Gt={rE:"2.6.1"};let Kt=__require("node:crypto");var Ht=__webpack_require__.n(Kt);let zt=globalThis.process?.env||Object.create(null),Jt=globalThis.process||{env:zt},Yt=Jt!==void 0&&Jt.env&&Jt.env.NODE_ENV||void 0,Qt=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[dist_i("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[dist_i("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[dist_i("TERM_PROGRAM",/kiro/)]]];function dist_i(e3,t3){return()=>{let i2=zt[e3];return!!i2&&t3.test(i2)}}let Zt=(function(){let e3=zt.AI_AGENT;if(e3)return{name:e3.toLowerCase()};for(let[e4,t3]of Qt)for(let i2 of t3)if(typeof i2=="string"?zt[i2]:i2())return{name:e4};return{}})(),Xt=(Zt.name,Zt.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]),ei=(function(){for(let e3 of Xt)if(zt[e3[1]||e3[0]])return{name:e3[0].toLowerCase(),...e3[2]};return zt.SHELL==="/bin/jsh"&&Jt.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}})(),ti=(ei.name,Jt.platform||""),ii=!!zt.CI||ei.ci!==!1,si=!!Jt.stdout?.isTTY,ri=(zt.DEBUG,Yt==="test"||!!zt.TEST),ni=(Yt==="production"||zt.MODE,Yt==="dev"||Yt==="development"||zt.MODE,zt.MINIMAL,/^win/i.test(ti)),ai=(/^linux/i.test(ti),/^darwin/i.test(ti),!zt.NO_COLOR&&(zt.FORCE_COLOR||(si||ni)&&zt.TERM),(Jt.versions?.node||"").replace(/^v/,"")||null),oi=(Number(ai?.split(".")[0]),!!Jt?.versions?.node),ci="Bun"in globalThis,hi="Deno"in globalThis,li="fastly"in globalThis,pi=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[li,"fastly"],[hi,"deno"],[ci,"bun"],[oi,"node"]];(function(){let e3=pi.find(e4=>e4[0]);e3&&e3[1]})();let ui=__require("node:tty"),di=ui?.WriteStream?.prototype?.hasColors?.()??!1,base_format=(e3,t3)=>{if(!di)return e4=>e4;let i2=`\x1B[${e3}m`,n2=`\x1B[${t3}m`;return e4=>{let a2=e4+"",c2=a2.indexOf(n2);if(c2===-1)return i2+a2+n2;let l2=i2,y2=0,E2=(t3===22?n2:"")+i2;for(;c2!==-1;)l2+=a2.slice(y2,c2)+E2,y2=c2+n2.length,c2=a2.indexOf(n2,y2);return l2+=a2.slice(y2)+n2,l2}},fi=(base_format(0,0),base_format(1,22),base_format(2,22),base_format(3,23),base_format(4,24),base_format(53,55),base_format(7,27),base_format(8,28),base_format(9,29),base_format(30,39),base_format(31,39)),mi=base_format(32,39),gi=base_format(33,39),xi=base_format(34,39),vi=(base_format(35,39),base_format(36,39)),yi=(base_format(37,39),base_format(90,39));base_format(40,49),base_format(41,49),base_format(42,49),base_format(43,49),base_format(44,49),base_format(45,49),base_format(46,49),base_format(47,49),base_format(100,49),base_format(91,39),base_format(92,39),base_format(93,39),base_format(94,39),base_format(95,39),base_format(96,39),base_format(97,39),base_format(101,49),base_format(102,49),base_format(103,49),base_format(104,49),base_format(105,49),base_format(106,49),base_format(107,49);function isDir(e3){if(typeof e3!="string"||e3.startsWith("file://"))return!1;try{return(0,$e.lstatSync)(e3).isDirectory()}catch{return!1}}function utils_hash(e3,t3=8){return((function(){if(Ei!==void 0)return Ei;try{return Ei=!!Ht().getFips?.(),Ei}catch{return Ei=!1,Ei}})()?Ht().createHash("sha256"):Ht().createHash("md5")).update(e3).digest("hex").slice(0,t3)}let _i={true:mi("true"),false:gi("false"),"[rebuild]":gi("[rebuild]"),"[esm]":xi("[esm]"),"[cjs]":mi("[cjs]"),"[import]":xi("[import]"),"[require]":mi("[require]"),"[native]":vi("[native]"),"[transpile]":gi("[transpile]"),"[fallback]":fi("[fallback]"),"[unknown]":fi("[unknown]"),"[hit]":mi("[hit]"),"[miss]":gi("[miss]"),"[json]":mi("[json]"),"[data]":mi("[data]")};function debug(e3,...t3){if(!e3.opts.debug)return;let i2=process.cwd();console.log(yi(["[jiti]",...t3.map(e4=>e4 in _i?_i[e4]:typeof e4!="string"?JSON.stringify(e4):e4.replace(i2,"."))].join(" ")))}function jitiInteropDefault(e3,t3){return e3.opts.interopDefault?(function(e4){let t4=typeof e4;if(e4===null||t4!=="object"&&t4!=="function")return e4;let i2=e4.default,n2=typeof i2,a2=i2==null,c2=n2==="object"||n2==="function";if(a2&&e4 instanceof Promise)return e4;let l2=n2==="function"&&t4!=="function",y2=c2&&!(i2 instanceof Promise),E2=new Map;return new Proxy(e4,{get(t5,n3){if(E2.has(n3))return E2.get(n3);let c3;return n3==="__esModule"?c3=!0:n3==="default"?c3=a2?e4:typeof i2?.default=="function"&&e4.__esModule?i2.default:i2:n3 in t5?c3=t5[n3]:y2&&(c3=i2[n3],typeof c3=="function"&&(c3=c3.bind(i2))),E2.set(n3,c3),c3},apply:l2?(e5,t5,n3)=>Reflect.apply(i2,t5,n3):void 0})})(t3):t3}let Ei;function _booleanEnv(e3,t3){return!!_jsonEnv(e3,t3)}function _jsonEnv(e3,t3,i2){let n2=process.env[e3];if(!(e3 in process.env))return t3;try{return JSON.parse(n2)}catch{return i2?n2:t3}}let bi=/\.(c|m)?j(sx?)$/,ki=/\.(c|m)?t(sx?)$/;function jitiResolve(e3,t3,i2){let n2,a2;if(e3.isNativeRe.test(t3))return t3;if(e3.resolveTsConfigPaths&&!i2.skipTsConfigPaths){let n3=e3.resolveTsConfigPaths(t3);for(let t4 of n3){let n4=jitiResolve(e3,t4,{...i2,try:!0,skipTsConfigPaths:!0});if(n4)return n4}}e3.alias&&(t3=(function(e4,t4){let i3=pathe_M_eThtNZ_normalizeWindowsPath(e4);t4=normalizeAliases(t4);for(let[e5,n3]of Object.entries(t4)){if(!i3.startsWith(e5))continue;let t5=utils_hasTrailingSlash(e5)?e5.slice(0,-1):e5;if(utils_hasTrailingSlash(i3[t5.length]))return pathe_M_eThtNZ_join(n3,i3.slice(e5.length))}return i3})(t3,e3.alias));let c2=i2?.parentURL||e3.url;isDir(c2)&&(c2=pathe_M_eThtNZ_join(c2,"_index.js"));let l2=(i2?.async?[i2?.conditions,["node","import"],["node","require"]]:[i2?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let i3 of l2){try{n2=resolvePathSync(t3,{url:c2,conditions:i3,extensions:e3.opts.extensions})}catch(e4){a2=e4}if(n2)return n2}try{return e3.nativeRequire.resolve(t3,{paths:i2.paths})}catch(e4){a2=e4}for(let a3 of e3.additionalExts)if(n2=tryNativeRequireResolve(e3,t3+a3,c2,i2)||tryNativeRequireResolve(e3,t3+"/index"+a3,c2,i2),n2||(ki.test(e3.filename)||ki.test(e3.parentModule?.filename||"")||bi.test(t3))&&(n2=tryNativeRequireResolve(e3,t3.replace(bi,".$1t$2"),c2,i2),n2))return n2;if(!i2?.try)throw a2}function tryNativeRequireResolve(e3,t3,i2,n2){try{return e3.nativeRequire.resolve(t3,{...n2,paths:[pathe_M_eThtNZ_dirname(fileURLToPath(i2)),...n2?.paths||[]]})}catch{}}let wi=__require("node:fs/promises"),Ci=__require("node:perf_hooks"),Si=__require("node:vm");var Ii=__webpack_require__.n(Si);function jitiRequire(e3,t3,i2){let n2=e3.parentCache||{};if(t3.startsWith("node:"))return nativeImportOrRequire(e3,t3,i2.async);if(t3.startsWith("file:"))t3=(0,Qe.fileURLToPath)(t3);else if(t3.startsWith("data:")){if(!i2.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return debug(e3,"[native]","[data]","[import]",t3),nativeImportOrRequire(e3,t3,!0)}if(Be.builtinModules.includes(t3)||t3===".pnp.js")return nativeImportOrRequire(e3,t3,i2.async);if(e3.opts.virtualModules&&t3 in e3.opts.virtualModules){debug(e3,"[virtual]",t3);let n3=e3.opts.virtualModules[t3];return i2.async?Promise.resolve(jitiInteropDefault(e3,n3)):jitiInteropDefault(e3,n3)}if(e3.opts.tryNative&&!e3.opts.transformOptions)try{if(!(t3=jitiResolve(e3,t3,i2))&&i2.try)return;if(debug(e3,"[try-native]",i2.async&&e3.nativeImport?"[import]":"[require]",t3),i2.async&&e3.nativeImport)return e3.nativeImport(t3).then(i3=>(e3.opts.moduleCache===!1&&delete e3.nativeRequire.cache[t3],jitiInteropDefault(e3,i3))).catch(n3=>(debug(e3,`[try-native] Using fallback for ${t3} because of an error:`,n3),jitiRequire({...e3,opts:{...e3.opts,tryNative:!1}},t3,i2)));{let i3=e3.nativeRequire(t3);return e3.opts.moduleCache===!1&&delete e3.nativeRequire.cache[t3],jitiInteropDefault(e3,i3)}}catch(i3){debug(e3,`[try-native] Using fallback for ${t3} because of an error:`,i3)}let a2=jitiResolve(e3,t3,i2);if(!a2&&i2.try)return;let c2=extname(a2);if(c2===".json"){debug(e3,"[json]",a2);let t4=e3.nativeRequire(a2);return t4&&!("default"in t4)&&Object.defineProperty(t4,"default",{value:t4,enumerable:!1}),t4}if(c2&&!e3.opts.extensions.includes(c2))return debug(e3,"[native]","[unknown]",i2.async?"[import]":"[require]",a2),nativeImportOrRequire(e3,a2,i2.async);if(e3.isNativeRe.test(a2))return debug(e3,"[native]",i2.async?"[import]":"[require]",a2),nativeImportOrRequire(e3,a2,i2.async);if(n2[a2])return jitiInteropDefault(e3,n2[a2]?.exports);if(e3.opts.moduleCache){let t4=e3.nativeRequire.cache[a2];if(t4?.loaded)return jitiInteropDefault(e3,t4.exports)}let l2=(0,$e.readFileSync)(a2,"utf8");return eval_evalModule(e3,l2,{id:t3,filename:a2,ext:c2,cache:n2,async:i2.async})}function nativeImportOrRequire(e3,t3,i2){return i2&&e3.nativeImport?e3.nativeImport((function(e4){return ni&&isAbsolute(e4)?pathToFileURL(e4):e4})(t3)).then(t4=>jitiInteropDefault(e3,t4)):jitiInteropDefault(e3,e3.nativeRequire(t3))}let Ti="9";function getCache(e3,t3,i2){if(!e3.opts.fsCache||!t3.filename)return i2();let n2=` /* v${Ti}-${utils_hash(t3.source,16)} */
|
|
19
|
+
`,a2=`${basename(pathe_M_eThtNZ_dirname(t3.filename))}-${(function(e4){let t4=e4.split(Wt).pop();if(!t4)return;let i3=t4.lastIndexOf(".");return i3<=0?t4:t4.slice(0,i3)})(t3.filename)}`+(e3.opts.sourceMaps?"+map":"")+(t3.interopDefault?".i":"")+`.${utils_hash(t3.filename)}`+(t3.async?".mjs":".cjs");t3.jsx&&t3.filename.endsWith("x")&&(a2+="x");let c2=e3.opts.fsCache,l2=pathe_M_eThtNZ_join(c2,a2);if(!e3.opts.rebuildFsCache&&(0,$e.existsSync)(l2)){let i3=(0,$e.readFileSync)(l2,"utf8");if(i3.endsWith(n2))return debug(e3,"[cache]","[hit]",t3.filename,"~>",l2),i3}debug(e3,"[cache]","[miss]",t3.filename);let y2=i2();return y2.includes("__JITI_ERROR__")||((0,$e.writeFileSync)(l2,y2+n2,"utf8"),debug(e3,"[cache]","[store]",t3.filename,"~>",l2)),y2}function prepareCacheDir(t3){if(t3.opts.fsCache===!0&&(t3.opts.fsCache=(function(t4){let i2=t4.filename&&pathe_M_eThtNZ_resolve(t4.filename,"../node_modules");if(i2&&(0,$e.existsSync)(i2))return pathe_M_eThtNZ_join(i2,".cache/jiti");let n2=(0,e2.tmpdir)();if(process.env.TMPDIR&&n2===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let t5=process.env.TMPDIR;delete process.env.TMPDIR,n2=(0,e2.tmpdir)(),process.env.TMPDIR=t5}return pathe_M_eThtNZ_join(n2,"jiti")})(t3)),t3.opts.fsCache)try{if((0,$e.mkdirSync)(t3.opts.fsCache,{recursive:!0}),!(function(e3){try{return(0,$e.accessSync)(e3,$e.constants.W_OK),!0}catch{return!1}})(t3.opts.fsCache))throw new Error("directory is not writable!")}catch(e3){debug(t3,"Error creating cache directory at ",t3.opts.fsCache,e3),t3.opts.fsCache=!1}}function transform(e3,t3){let i2=getCache(e3,t3,()=>{let i3=e3.opts.transform({...e3.opts.transformOptions,babel:{...e3.opts.sourceMaps?{sourceFileName:t3.filename,sourceMaps:"inline"}:{},...e3.opts.transformOptions?.babel},interopDefault:e3.opts.interopDefault,...t3});return i3.error&&e3.opts.debug&&debug(e3,i3.error),i3.code});return i2.startsWith("#!")&&(i2="// "+i2),i2}function eval_evalModule(t3,i2,n2={}){let a2=n2.id||(n2.filename?basename(n2.filename):`_jitiEval.${n2.ext||(n2.async?"mjs":"js")}`),c2=n2.filename||jitiResolve(t3,a2,{async:n2.async}),l2=n2.ext||extname(c2),y2=n2.cache||t3.parentCache||{},E2=/\.[cm]?tsx?$/.test(l2),w2=l2===".mjs"||l2===".js"&&(function(e3){for(;e3&&e3!=="."&&e3!=="/";){e3=pathe_M_eThtNZ_join(e3,"..");try{let t4=(0,$e.readFileSync)(pathe_M_eThtNZ_join(e3,"package.json"),"utf8");try{return JSON.parse(t4)}catch{}break}catch{}}})(c2)?.type==="module",C2=l2===".cjs",S2=n2.forceTranspile??(!C2&&!(w2&&n2.async)&&(E2||w2||t3.isTransformRe.test(c2)||hasESMSyntax(i2))),I2=Ci.performance.now();if(S2){i2=transform(t3,{filename:c2,source:i2,ts:E2,async:n2.async??!1,jsx:t3.opts.jsx});let e3=Math.round(1e3*(Ci.performance.now()-I2))/1e3;debug(t3,"[transpile]",n2.async?"[esm]":"[cjs]",c2,`(${e3}ms)`)}else{if(debug(t3,"[native]",n2.async?"[import]":"[require]",c2),n2.async)return Promise.resolve(nativeImportOrRequire(t3,c2,n2.async)).catch(e3=>(debug(t3,"Native import error:",e3),debug(t3,"[fallback]",c2),eval_evalModule(t3,i2,{...n2,forceTranspile:!0})));try{return nativeImportOrRequire(t3,c2,n2.async)}catch(e3){debug(t3,"Native require error:",e3),debug(t3,"[fallback]",c2),i2=transform(t3,{filename:c2,source:i2,ts:E2,async:n2.async??!1,jsx:t3.opts.jsx})}}let N2=new Be.Module(c2);N2.filename=c2,t3.parentModule&&(N2.parent=t3.parentModule,Array.isArray(t3.parentModule.children)&&!t3.parentModule.children.includes(N2)&&t3.parentModule.children.push(N2));let O2=createJiti2(c2,t3.opts,{parentModule:N2,parentCache:y2,nativeImport:t3.nativeImport,onError:t3.onError,createRequire:t3.createRequire},!0),j2;N2.require=O2,N2.path=pathe_M_eThtNZ_dirname(c2),N2.paths=Be.Module._nodeModulePaths(N2.path),y2[c2]=N2,t3.opts.moduleCache&&(t3.nativeRequire.cache[c2]=N2);let F2=(function(e3,t4){return`(${t4?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e3}
|
|
20
|
+
});`})(i2,{async:n2.async});try{j2=Ii().runInThisContext(F2,{filename:c2,lineOffset:0,displayErrors:!1})}catch(i3){i3.name==="SyntaxError"&&n2.async&&t3.nativeImport?(debug(t3,"[esm]","[import]","[fallback]",c2),j2=(function(t4,i4,n3,a3,c3){let l3=`export default ${i4}`,y3=c3?void 0:`data:text/javascript;base64,${Buffer.from(l3).toString("base64")}`;return(...i5)=>{let c4,importViaTempFile=()=>(c4=(function(t5,i6){let n4=pathe_M_eThtNZ_join((0,e2.tmpdir)(),"jiti-esm");try{(0,$e.mkdirSync)(n4,{recursive:!0})}catch{}let a4=pathe_M_eThtNZ_join(n4,`${basename(i6,extname(i6))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,$e.writeFileSync)(a4,t5),a4})(l3,n3),debug(t4,"[esm]","[tempfile]",c4),a3(pathToFileURL(c4)));return(y3?a3(y3).catch(e3=>{if(e3?.code!=="ENAMETOOLONG")throw e3;return importViaTempFile()}):importViaTempFile()).then(e3=>e3.default(...i5)).finally(()=>{c4&&(0,wi.unlink)(c4).catch(()=>{})})}})(t3,F2,c2,t3.nativeImport,t3.opts.esmEvalTempFile)):(t3.opts.moduleCache&&delete t3.nativeRequire.cache[c2],t3.onError(i3))}let B2;try{B2=j2(N2.exports,N2.require,N2,N2.filename,pathe_M_eThtNZ_dirname(N2.filename),O2.import,O2.esmResolve)}catch(e3){t3.opts.moduleCache&&delete t3.nativeRequire.cache[c2],t3.onError(e3)}function next(){if(N2.exports&&N2.exports.__JITI_ERROR__){let{filename:e3,line:i3,column:n3,code:a3,message:c3}=N2.exports.__JITI_ERROR__,l3=new Error(`${a3}: ${c3}
|
|
21
|
+
${`${e3}:${i3}:${n3}`}`);Error.captureStackTrace(l3,jitiRequire),t3.onError(l3)}return N2.loaded=!0,jitiInteropDefault(t3,N2.exports)}return n2.async?Promise.resolve(B2).then(next):next()}let Ri=(0,e2.platform)()==="win32";function createJiti2(e3,t3={},i2,n2=!1){let a2=n2?t3:(function(e4){let t4={fsCache:_booleanEnv("JITI_FS_CACHE",_booleanEnv("JITI_CACHE",!0)),rebuildFsCache:_booleanEnv("JITI_REBUILD_FS_CACHE",!1),moduleCache:_booleanEnv("JITI_MODULE_CACHE",_booleanEnv("JITI_REQUIRE_CACHE",!0)),debug:_booleanEnv("JITI_DEBUG",!1),sourceMaps:_booleanEnv("JITI_SOURCE_MAPS",!1),interopDefault:_booleanEnv("JITI_INTEROP_DEFAULT",!0),extensions:_jsonEnv("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:_jsonEnv("JITI_ALIAS",{}),nativeModules:_jsonEnv("JITI_NATIVE_MODULES",[]),transformModules:_jsonEnv("JITI_TRANSFORM_MODULES",[]),tryNative:_jsonEnv("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:_booleanEnv("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:_booleanEnv("JITI_JSX",!1),tsconfigPaths:_jsonEnv("JITI_TSCONFIG_PATHS",!1,!0)};t4.jsx&&t4.extensions.push(".jsx",".tsx");let i3={};return e4.cache!==void 0&&(i3.fsCache=e4.cache),e4.requireCache!==void 0&&(i3.moduleCache=e4.requireCache),{...t4,...i3,...e4}})(t3);typeof e3=="string"&&e3.startsWith("file://")&&(e3=fileURLToPath(e3));let c2=a2.alias&&Object.keys(a2.alias).length>0?normalizeAliases(a2.alias||{}):void 0,l2;if(a2.tsconfigPaths){let{getTsconfig:t4,createPathsMatcher:i3}=__webpack_require__("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),n3=t4(typeof a2.tsconfigPaths=="string"?a2.tsconfigPaths:pathe_M_eThtNZ_dirname(e3));n3&&(l2=i3(n3))}let y2=["typescript","jiti",...a2.nativeModules||[]],E2=new RegExp(`node_modules/(${y2.map(e4=>escapeStringRegexp(e4)).join("|")})/`),w2=[...a2.transformModules||[]],C2=new RegExp(`node_modules/(${w2.map(e4=>escapeStringRegexp(e4)).join("|")})/`);e3||(e3=process.cwd()),!n2&&isDir(e3)&&(e3=pathe_M_eThtNZ_join(e3,"_index.js"));let S2=pathToFileURL(e3),I2=[...a2.extensions].filter(e4=>e4!==".js"),N2=i2.createRequire(Ri?e3.replace(/\//g,"\\"):e3),O2={filename:e3,url:S2,opts:a2,alias:c2,resolveTsConfigPaths:l2,nativeModules:y2,transformModules:w2,isNativeRe:E2,isTransformRe:C2,additionalExts:I2,nativeRequire:N2,onError:i2.onError,parentModule:i2.parentModule,parentCache:i2.parentCache,nativeImport:i2.nativeImport,createRequire:i2.createRequire};return n2||debug(O2,"[init]",...[["version:",Gt.rE],["module-cache:",a2.moduleCache],["fs-cache:",a2.fsCache],["rebuild-fs-cache:",a2.rebuildFsCache],["interop-defaults:",a2.interopDefault]].flat()),n2||prepareCacheDir(O2),Object.assign(function(e4){return jitiRequire(O2,e4,{async:!1})},{cache:a2.moduleCache?N2.cache:Object.create(null),extensions:N2.extensions,main:N2.main,options:a2,resolve:Object.assign(function(e4,t4){return jitiResolve(O2,e4,{...t4,async:!1})},{paths:N2.resolve.paths}),transform:e4=>transform(O2,e4),evalModule:(e4,t4)=>eval_evalModule(O2,e4,t4),async import(e4,t4){let i3=await jitiRequire(O2,e4,{...t4,async:!0});return t4?.default?i3?.default??i3:i3},esmResolve(e4,t4){typeof t4=="string"&&(t4={parentURL:t4});let i3=jitiResolve(O2,e4,{parentURL:S2,...t4,async:!0});return!i3||typeof i3!="string"||i3.startsWith("file://")?i3:pathToFileURL(i3)}})}})(),module.exports=i.default})()}});var import_jiti=__toESM(require_jiti(),1);import{createRequire}from"node:module";function onError(err){throw err}var nativeImport=id=>import(id),_transform;function lazyTransform(...args){return _transform||(_transform=createRequire(import.meta.url)("../dist/babel.cjs")),_transform(...args)}function createJiti(id,opts={}){return opts.transform||(opts={...opts,transform:lazyTransform}),(0,import_jiti.default)(id,opts,{onError,nativeImport,createRequire})}export{createJiti};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
+
import"./chunk-4L3WN2XY.js";import{createRequire}from"node:module";var require2=createRequire(import.meta.url),createJitiImpl;function createJiti(...args){return createJitiImpl??=require2("jiti").createJiti,createJitiImpl(...args)}export{createJiti};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
+
var CANCEL_MESSAGE="Login cancelled",TIMEOUT_MESSAGE="Device flow timed out",SLOW_DOWN_TIMEOUT_MESSAGE="Device flow timed out after one or more slow_down responses. This is often caused by clock drift in WSL or VM environments. Please sync or restart the VM clock and try again.";function abortableSleep(ms,signal,cancelMessage){return new Promise((resolve,reject)=>{if(signal.aborted){reject(new Error(cancelMessage));return}let onAbort=()=>{clearTimeout(timeout),reject(new Error(cancelMessage))},timeout=setTimeout(()=>{signal.removeEventListener("abort",onAbort),resolve()},ms);signal.addEventListener("abort",onAbort,{once:!0})})}async function pollOAuthDeviceCodeFlow(options){let deadline=typeof options.expiresInSeconds=="number"?Date.now()+options.expiresInSeconds*1e3:Number.POSITIVE_INFINITY,intervalMs=Math.max(1e3,Math.floor((options.intervalSeconds??5)*1e3)),slowDownResponses=0;if(options.waitBeforeFirstPoll){let remainingMs=deadline-Date.now();remainingMs>0&&await abortableSleep(Math.min(intervalMs,remainingMs),options.signal,CANCEL_MESSAGE)}for(;Date.now()<deadline;){if(options.signal.aborted)throw new Error(CANCEL_MESSAGE);let result=await options.poll();if(result.status==="complete")return result.value;if(result.status==="failed")throw new Error(result.message);result.status==="slow_down"&&(slowDownResponses+=1,intervalMs=typeof result.intervalSeconds=="number"&&Number.isFinite(result.intervalSeconds)&&result.intervalSeconds>0?Math.max(1e3,Math.floor(result.intervalSeconds*1e3)):Math.max(1e3,intervalMs+5e3));let remainingMs=deadline-Date.now();if(remainingMs<=0)break;await abortableSleep(Math.min(intervalMs,remainingMs),options.signal,CANCEL_MESSAGE)}throw new Error(slowDownResponses>0?SLOW_DOWN_TIMEOUT_MESSAGE:TIMEOUT_MESSAGE)}var CLIENT_ID="1031625952748946",AUTH_HOST="https://auth.meta.com",DEVICE_AUTHORIZATION_URL=`${AUTH_HOST}/oidc/device/authorization/`,DEVICE_TOKEN_URL=`${AUTH_HOST}/oidc/device/token/`,API_KEY_MINT_URL="https://api.meta.ai/muse-code/key",API_KEY_LIFETIME_MS=1440*60*1e3,REQUEST_TIMEOUT_MS=30*1e3;function requestSignal(signal){return AbortSignal.any([AbortSignal.timeout(REQUEST_TIMEOUT_MS),signal])}async function readJson(response){try{let json=await response.json();return json&&typeof json=="object"?json:null}catch{return null}}function errorDetail(json){for(let key of["error_description","detail","message","error"]){let value=json?.[key];if(typeof value=="string"&&value.trim())return`: ${value.trim()}`}return""}function trustedHttpUrl(value){if(typeof value!="string"||!value)return null;try{let url=new URL(value);return url.protocol!=="https:"&&url.protocol!=="http:"?null:url.href}catch{return null}}function positiveNumber(value){return typeof value=="number"&&Number.isFinite(value)&&value>0?value:void 0}async function startDeviceAuthorization(signal){let response=await fetch(DEVICE_AUTHORIZATION_URL,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:CLIENT_ID}).toString(),signal:requestSignal(signal)}),json=await readJson(response);if(!response.ok)throw new Error(`Meta device authorization failed with status ${response.status}${errorDetail(json)}`);let deviceCode=json?.device_code,userCode=json?.user_code,verificationUri=trustedHttpUrl(json?.verification_uri_complete)??trustedHttpUrl(json?.verification_uri);if(typeof deviceCode!="string"||!deviceCode||typeof userCode!="string"||!userCode||!verificationUri)throw new Error(`Invalid Meta device authorization response: ${JSON.stringify(json)}`);return{deviceCode,userCode,verificationUri,intervalSeconds:positiveNumber(json?.interval),expiresInSeconds:positiveNumber(json?.expires_in)}}async function pollForIdentityToken(device,signal){return pollOAuthDeviceCodeFlow({intervalSeconds:device.intervalSeconds,expiresInSeconds:device.expiresInSeconds,waitBeforeFirstPoll:!0,signal,poll:async()=>{let response=await fetch(DEVICE_TOKEN_URL,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:device.deviceCode,client_id:CLIENT_ID}).toString(),signal:requestSignal(signal)}),json=await readJson(response);if(response.ok&&typeof json?.access_token=="string"&&json.access_token)return{status:"complete",value:json.access_token};switch(json?.error){case"authorization_pending":return{status:"pending"};case"slow_down":return{status:"slow_down",intervalSeconds:positiveNumber(json?.interval)};case"access_denied":return{status:"failed",message:"Meta login was denied."};case"expired_token":return{status:"failed",message:"Meta device authorization expired. Please restart login."};default:return{status:"failed",message:`Meta device token request failed with status ${response.status}${errorDetail(json)}`}}}})}async function mintApiKey(identityToken,signal){let response=await fetch(API_KEY_MINT_URL,{method:"POST",headers:{Accept:"application/json",Authorization:`Bearer ${identityToken}`,"Content-Type":"application/json","x-api-version":"1.0.0"},body:"{}",signal:requestSignal(signal)}),json=await readJson(response);if(response.status===401||response.status===403)throw new Error(`Meta session expired (status ${response.status}). Run \`/login meta\` to sign in again.${errorDetail(json)}`);if(!response.ok)throw new Error(`Meta API key mint failed with status ${response.status}${errorDetail(json)}`);let apiKey=json?.api_key;if(typeof apiKey!="string"||!apiKey){let actionUrl=trustedHttpUrl(json?.action_url);throw new Error(`Meta did not issue an API key.${actionUrl?` Complete setup at ${actionUrl}`:""}`)}return{type:"oauth",refresh:identityToken,access:apiKey,expires:Date.now()+API_KEY_LIFETIME_MS}}async function loginMeta(interaction){try{let device=await startDeviceAuthorization(interaction.signal);interaction.notify({type:"device_code",userCode:device.userCode,verificationUri:device.verificationUri,intervalSeconds:device.intervalSeconds,expiresInSeconds:device.expiresInSeconds});let identityToken=await pollForIdentityToken(device,interaction.signal);return interaction.notify({type:"progress",message:"Enabling Meta Model API access..."}),await mintApiKey(identityToken,interaction.signal)}catch(e){throw interaction.signal.aborted?new Error("Login cancelled"):e}}var metaOAuth={name:"Meta (Muse subscription)",isSubscription:!0,loginLabel:"Sign in with Meta",login:loginMeta,refresh:(credential,signal)=>mintApiKey(credential.refresh,signal),async toAuth(credential){return{apiKey:credential.access}}};export{metaOAuth};
|